:root {
  --ink: #202124;
  --muted: #5f6368;
  --subtle: #7a8088;
  --line: #dce1e8;
  --line-strong: #b8c0cc;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --page: #f2f5f8;
  --blue: #1967d2;
  --blue-hover: #1557b0;
  --blue-soft: #e8f0fe;
  --green: #188038;
  --green-soft: #e6f4ea;
  --red: #c5221f;
  --red-soft: #fce8e6;
  --yellow: #e37400;
  --yellow-soft: #fef7e0;
  --focus: #0b57d0;
  --shadow: 0 16px 42px rgba(32, 33, 36, 0.09);
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(#f7f9fb 0 210px, var(--page) 210px);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--blue);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 9px 12px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-12px);
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(220, 225, 232, 0.92);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.topbar-inner {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 70px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  gap: 3px;
  padding: 5px;
  border: 1px solid #c9d0da;
  border-radius: 8px;
  background: #fff;
  grid-template-columns: repeat(2, 1fr);
}

.brand-mark span {
  border-radius: 2px;
}

.brand-mark span:nth-child(1) {
  background: #4285f4;
}

.brand-mark span:nth-child(2) {
  background: #ea4335;
}

.brand-mark span:nth-child(3) {
  background: #fbbc04;
}

.brand-mark span:nth-child(4) {
  background: #34a853;
}

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-size: 17px;
  line-height: 1.15;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.secure-label {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 1px solid #b7dbbd;
  border-radius: 6px;
  background: #f3fbf5;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.secure-label svg {
  width: 16px;
  height: 16px;
}

.portal-shell {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  grid-template-columns: minmax(330px, 0.86fr) minmax(450px, 1.14fr);
}

.product-panel {
  min-width: 0;
  padding: 34px;
  border-right: 1px solid var(--line);
  background: var(--surface-soft);
}

.product-media {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf1fc;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-media figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  color: #3c4043;
  font-size: 12px;
  font-weight: 700;
}

.product-media figcaption svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--green);
}

.product-content {
  padding-top: 28px;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1.17;
}

h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.3;
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

.product-lede,
.panel-heading > p:last-child,
.section-summary {
  color: var(--muted);
  line-height: 1.72;
}

.product-lede {
  margin: 15px 0 0;
  font-size: 14px;
}

.product-facts {
  display: grid;
  margin: 24px 0 0;
  border-top: 1px solid var(--line);
}

.product-facts > div {
  display: grid;
  min-height: 50px;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: minmax(105px, 0.9fr) 1.1fr;
}

.product-facts dt {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.product-facts dt svg {
  width: 16px;
  height: 16px;
}

.product-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.independent-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
}

.independent-note svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--subtle);
}

.independent-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.independent-note strong {
  color: var(--ink);
}

.action-panel {
  min-width: 0;
  padding: 44px 48px;
}

.panel-heading > p:last-child {
  max-width: 590px;
  margin: 11px 0 0;
  font-size: 14px;
}

code {
  padding: 2px 5px;
  border: 1px solid #c6d8f7;
  border-radius: 4px;
  background: #edf3fe;
  color: #174ea6;
  font-size: 0.9em;
  white-space: nowrap;
}

.tabs {
  display: grid;
  margin: 28px 0 24px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tab-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.tab-button svg {
  width: 17px;
  height: 17px;
}

.tab-button:hover {
  background: #f7f9fc;
  color: var(--ink);
}

.tab-button.is-active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.form-stack {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
}

.optional {
  margin-left: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.field-hint {
  margin: -1px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.input-with-icon {
  position: relative;
}

.input-with-icon > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.input-with-icon input {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 43px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink);
}

.input-with-icon input::placeholder {
  color: #9399a1;
}

.input-with-icon input:hover {
  border-color: #8d96a3;
}

.input-with-icon input:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(11, 87, 208, 0.15);
}

.password-input input {
  padding-right: 54px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.password-toggle svg {
  width: 18px;
  height: 18px;
}

.password-toggle .icon-hide,
.password-toggle[aria-pressed="true"] .icon-show {
  display: none;
}

.password-toggle[aria-pressed="true"] .icon-hide {
  display: block;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 800;
}

.primary-button svg,
.secondary-button svg {
  width: 18px;
  height: 18px;
}

.primary-button {
  border: 1px solid var(--blue);
  background: var(--blue);
  color: #fff;
}

.primary-button:hover {
  border-color: var(--blue-hover);
  background: var(--blue-hover);
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: #8d96a3;
  background: #f7f8fa;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(11, 87, 208, 0.28);
  outline-offset: 2px;
}

button:disabled,
input:disabled {
  cursor: wait;
  opacity: 0.64;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #c6d8f7;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  background: #eef4ff;
  color: #174ea6;
  font-size: 13px;
  line-height: 1.55;
}

.notice svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.notice.is-error {
  border-color: #f1b7b3;
  border-left-color: var(--red);
  background: var(--red-soft);
  color: #a50e0e;
}

.notice.is-success {
  border-color: #b7dbbd;
  border-left-color: var(--green);
  background: var(--green-soft);
  color: #137333;
}

.unlocked-section {
  margin-top: 26px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.unlocked-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  padding: 13px 15px;
  border: 1px solid #b7dbbd;
  border-radius: 6px;
  background: var(--green-soft);
  color: #137333;
}

.unlocked-banner > svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.unlocked-banner strong,
.unlocked-banner span {
  display: block;
}

.unlocked-banner strong {
  font-size: 13px;
}

.unlocked-banner span {
  margin-top: 2px;
  font-size: 11px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.section-title .eyebrow {
  margin-bottom: 2px;
}

.section-summary {
  margin: 13px 0 17px 46px;
  font-size: 13px;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
}

.guide-list li {
  position: relative;
  min-height: 68px;
  padding: 14px 14px 14px 50px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  counter-increment: guide;
}

.guide-list li::before {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  color: #174ea6;
  content: counter(guide);
  font-size: 11px;
  font-weight: 800;
}

.guide-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.guide-list p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.guide-list a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.guide-list a svg {
  width: 14px;
  height: 14px;
}

.request-form {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.request-form .section-title {
  margin-bottom: 2px;
}

.credential-warning {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 13px;
  border-left: 3px solid var(--red);
  border-radius: 4px;
  background: #fff6f5;
  color: #8c1d18;
}

.credential-warning > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.credential-warning p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.credential-warning strong {
  color: #7a1712;
}

.consent-row {
  display: grid;
  align-items: start;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.62;
  grid-template-columns: 18px 1fr;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--blue);
}

.submission-result {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid #b7dbbd;
  border-radius: 6px;
  background: var(--green-soft);
  color: #174e26;
}

.submission-result > svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
}

.submission-result h3 {
  color: #137333;
}

.submission-result p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.6;
}

.text-button {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 5px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0d652d;
  font-size: 12px;
  font-weight: 800;
}

.text-button svg {
  width: 14px;
  height: 14px;
}

.status-result {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-soft);
}

.status-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(227, 116, 0, 0.14);
}

.status-dot.is-complete {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(24, 128, 56, 0.14);
}

.status-dot.is-error {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(197, 34, 31, 0.12);
}

.status-label,
.status-id,
.status-message,
.status-time {
  margin: 0;
}

.status-label {
  font-size: 15px;
  font-weight: 800;
}

.status-id,
.status-time {
  color: var(--muted);
  font-size: 11px;
}

.status-message {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.65;
}

.status-time {
  margin-top: 7px;
}

.security-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-top: 28px;
  padding: 14px;
  border: 1px solid #efd27a;
  border-radius: 6px;
  background: var(--yellow-soft);
}

.security-note > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: #a35d00;
}

.security-note strong {
  font-size: 13px;
}

.security-note p {
  margin: 4px 0 0;
  color: #684700;
  font-size: 11px;
  line-height: 1.65;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 28px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
  text-align: center;
}

footer p {
  margin: 0;
}

[hidden] {
  display: none !important;
}

@media (max-width: 920px) {
  .portal-shell {
    grid-template-columns: 1fr;
  }

  .product-panel {
    display: grid;
    gap: 28px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    grid-template-columns: minmax(230px, 0.72fr) minmax(0, 1.28fr);
  }

  .product-content {
    align-self: center;
    padding-top: 0;
  }

  h1 {
    font-size: 31px;
  }
}

@media (max-width: 640px) {
  body {
    background: var(--page);
  }

  .topbar {
    position: static;
  }

  .topbar-inner {
    width: calc(100% - 32px);
    min-height: 64px;
  }

  .secure-label {
    min-height: 32px;
    padding: 0 8px;
  }

  .secure-label span {
    display: none;
  }

  .portal-shell {
    width: 100%;
    margin: 0 0 20px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .product-panel {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 16px;
    padding: 18px 16px;
  }

  .product-media figcaption {
    display: none;
  }

  .product-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
  }

  .product-content > .eyebrow,
  .product-lede,
  .product-facts,
  .independent-note {
    display: none;
  }

  h1 {
    font-size: 21px;
    line-height: 1.28;
  }

  .action-panel {
    padding: 27px 18px 32px;
  }

  h2 {
    font-size: 22px;
  }

  .section-summary {
    margin-left: 0;
  }

  .guide-list li {
    padding-right: 12px;
    padding-left: 47px;
  }

  footer {
    width: calc(100% - 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
