[data-shell="header"] {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 80;
  display: block;
  isolation: isolate;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

[data-shell="header"] .topbar {
  position: static;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(110deg, var(--navy-950, #071c34), var(--navy-800, #173a5d));
}

[data-shell="header"] .topbar-main {
  min-height: 76px;
  display: grid;
  grid-template-columns: 240px minmax(280px, 1fr) auto;
  align-items: center;
  gap: 18px;
}

[data-shell="header"] .brand {
  width: 230px;
  height: 56px;
  position: relative;
  display: block;
  overflow: visible;
  line-height: 0;
}

[data-shell="header"] .official-logo-lockup {
  width: 104px;
  height: 34px;
  position: absolute;
  left: 5px;
  top: 50%;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translateY(-50%) scale(1.25);
  transform-origin: left center;
}

[data-shell="header"] .official-logo-mark,
[data-shell="header"] .official-logo-word {
  position: relative;
  display: block;
  overflow: hidden;
}

[data-shell="header"] .official-logo-mark {
  width: 31px;
  height: 32px;
  flex: 0 0 31px;
}

[data-shell="header"] .official-logo-word {
  width: 66px;
  height: 32px;
  flex: 0 0 66px;
}

[data-shell="header"] .official-logo-lockup img {
  width: 104px;
  height: 104px;
  max-width: none;
  position: absolute;
  display: block;
}

[data-shell="header"] .official-logo-mark img {
  width: 75px;
  height: 75px;
  left: -22px;
  top: -10px;
}

[data-shell="header"] .official-logo-word img {
  left: -22px;
  top: -61px;
  filter: brightness(0) invert(1);
}

[data-shell="header"] .brand-context {
  position: absolute;
  left: 143px;
  top: 50%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 12px;
  border-left: 1px solid rgba(255, 255, 255, .2);
  transform: translateY(-50%);
  white-space: nowrap;
  line-height: 1.2;
}

[data-shell="header"] .brand-context b {
  color: var(--gold-400, #ddc17f);
  font-size: 12px;
  font-weight: 700;
  line-height: 14.4px;
  letter-spacing: .08em;
}

[data-shell="header"] .brand-context small {
  color: rgba(255, 255, 255, .58);
  font-size: 9px;
  font-weight: 400;
  line-height: 10.8px;
}

[data-shell="header"] .search {
  height: 48px;
  display: flex;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, .12);
  border-radius: 25px;
  background: #fff;
}

[data-shell="header"] .search svg {
  width: 19px;
  margin: 0 10px 0 16px;
  flex: 0 0 auto;
  color: #7b8997;
}

[data-shell="header"] .search input {
  min-width: 0;
  flex: 1;
  color: #283b4c;
  border: 0;
  outline: 0;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

[data-shell="header"] .search button {
  width: 108px;
  color: #172c43;
  border: 0;
  background: linear-gradient(120deg, var(--gold-400, #ddc17f), #c38f37);
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  line-height: normal;
}

[data-shell="header"] .site-tools {
  display: flex;
  align-items: stretch;
}

[data-shell="header"] .site-tool {
  min-width: 72px;
  height: 48px;
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255, 255, 255, .78);
  border-left: 1px solid rgba(255, 255, 255, .12);
  background: transparent;
  font-family: inherit;
  font-size: 11px;
  font-weight: 400;
  line-height: normal;
  white-space: nowrap;
}

[data-shell="header"] .site-tool:first-child {
  border-left: 0;
}

[data-shell="header"] .site-tool:hover,
[data-shell="header"] .site-tool.active {
  color: var(--gold-400, #ddc17f);
  background: rgba(255, 255, 255, .04);
}

[data-shell="header"] .site-icon {
  display: grid;
  place-items: center;
  line-height: 1;
}

[data-shell="header"] .site-icon svg {
  width: 19px;
  height: 19px;
}

html {
  scroll-padding-top: 84px;
}

@media (max-width: 1250px) {
  [data-shell="header"] .topbar-main {
    grid-template-columns: 225px 1fr;
  }

  [data-shell="header"] .site-tools {
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-bottom: 10px;
  }

}

@media (max-width: 800px) {
  [data-shell="header"] .topbar-main {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 0;
  }

  [data-shell="header"] .brand {
    width: 230px;
    height: 44px;
  }

  [data-shell="header"] .search {
    height: 42px;
  }

  [data-shell="header"] .site-tools {
    grid-column: auto;
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  [data-shell="header"] .site-tool {
    min-width: 82px;
  }

}

/* The homepage mounts this shared modal after the shell is loaded. Keep its
   presentation here so a quota-exhausted catalog still opens as a complete,
   usable login dialog instead of unstyled markup. */
.pc-login-modal[hidden] {
  display: none !important;
}

.pc-login-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(12, 24, 38, .52);
}

.pc-login-dialog {
  position: relative;
  width: min(400px, 100%);
}

.pc-login-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f4f7;
  color: #5b6b78;
  font-size: 22px;
  line-height: 1;
}

.pc-login-close:hover,
.pc-login-close:focus-visible {
  background: #e4eaef;
}

.pc-login-card {
  margin: 0;
  padding: 28px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 22px 56px rgba(15, 32, 51, .2);
  text-align: center;
}

.pc-login-card h2 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 20px;
}

.pc-login-card > p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.pc-login-feedback.is-pending {
  color: var(--navy-800);
}

.pc-login-card > p.pc-login-feedback.is-error,
.pc-login-feedback.is-error {
  color: #bf4a44;
  font-weight: 600;
}

.pc-login-card .navy-btn,
.pc-login-card .ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.pc-login-card .navy-btn {
  border: 0;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-900));
  color: #fff;
}

.pc-login-card .ghost-btn {
  border: 1px solid #cbd5dd;
  background: #fff;
  color: #3b536b;
}

.pc-login-card .navy-btn:hover:not(:disabled),
.pc-login-card .ghost-btn:hover:not(:disabled),
.pc-login-card .navy-btn:focus-visible,
.pc-login-card .ghost-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(15, 43, 70, .12);
}

.pc-login-card .navy-btn:disabled,
.pc-login-card .ghost-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pc-login-mark {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  font-size: 22px;
}

.pc-login-stack {
  display: grid;
  gap: 12px;
  text-align: left;
}

.pc-login-field {
  display: grid;
  gap: 6px;
}

.pc-login-field > label {
  color: #667480;
  font-size: 12px;
}

.pc-login-field input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #d6dee5;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--ink);
}

.pc-login-field input:focus {
  border-color: var(--navy-800);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, .12);
}

.pc-login-phone-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 8px;
}

.pc-login-send {
  min-width: 118px;
  height: 46px;
  padding: 0 12px;
}

.pc-login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}

.pc-login-actions .navy-btn,
.pc-login-actions .ghost-btn {
  width: 100%;
  min-width: 0;
  height: 46px;
}

.pc-login-submit {
  width: 100%;
  min-width: 0;
  height: 46px;
}

.pc-login-secondary {
  width: 100%;
  height: auto;
  padding: 2px 0 0;
  border: 0;
  background: transparent;
  color: #667480;
  font-size: 12px;
  text-align: center;
}

.pc-login-secondary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pc-login-provider-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pc-login-provider-actions button {
  min-height: 38px;
  border: 1px solid #d6dee5;
  border-radius: 8px;
  background: #fff;
  color: #3b536b;
  font-size: 12px;
}

.pc-login-provider-actions button:hover:not(:disabled),
.pc-login-provider-actions button:focus-visible {
  border-color: #9aafc1;
  background: #f5f8fa;
}

.pc-login-provider-actions button:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.pc-login-stack > small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .pc-login-modal {
    padding: 12px;
  }

  .pc-login-card {
    padding: 26px 18px 20px;
  }

  .pc-login-phone-row {
    grid-template-columns: 1fr;
  }

  .pc-login-send {
    width: 100%;
  }
}
