/* A quiet, readable portal. Base layout remains in portal.css. */
:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5f6368;
  --line: #e2e5e9;
  --accent: #1967d2;
  --surface: #f8f9fa;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Noto Sans", sans-serif;
}
body { background: #fff; }
[hidden] { display: none !important; }
::selection { color: #174ea6; background: #d2e3fc; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
a:hover { color: var(--accent); }
.container { width: min(1180px, calc(100% - 80px)); }
h1, h2, h3 { font-weight: 600; }
button, .button { min-height: 46px; padding: 11px 20px; border-radius: 6px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
button:hover, .button:hover { background: #185abc; color: #fff; }
button.secondary, .button.secondary { background: #fff; color: var(--accent); border-color: #dadce0; }
button.secondary:hover, .button.secondary:hover { color: #174ea6; border-color: #aecbfa; background: #f5f9ff; }
button.quiet { color: var(--muted); background: none; padding: 8px 0 8px 12px; font-size: 13px; }
button.quiet:hover { background: none; color: var(--ink); }
button.danger { color: #a50e0e; background: #fce8e6; border-color: #fad2cf; }
button.danger:hover { color: #a50e0e; background: #fad2cf; }
input, textarea { border-color: #dadce0; border-radius: 6px; background: #fff; color: var(--ink); font-size: 15px; }
input::placeholder, textarea::placeholder { color: #70757a; }
label, summary { color: var(--ink); font-size: 14px; }
summary::after { color: var(--muted); }
small { font-size: 13px; }
pre { background: var(--surface); }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.text-link { min-height: 44px; color: var(--accent); font-size: 14px; }
.text-link:hover { color: #174ea6; }
.skip-link { color: #fff; }
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-nav { min-height: 76px; }
.brand { gap: 9px; }
.brand-mark { width: 32px; height: 32px; padding: 0; object-fit: contain; }
.brand-name { color: var(--ink); font-size: 23px; font-weight: 650; letter-spacing: -.055em; }
.nav-links { gap: 28px; }
.nav-links a { color: var(--muted); font-size: 14px; }
.nav-links a:hover { color: var(--accent); }
.nav-links .nav-account { color: var(--ink); }

/* Landing: two actions, a compact explanation, then the actual setup steps. */
.portal-home .hero { display: block; padding: 84px 0 0; }
.hero-copy { max-width: 800px; }
.hero-copy > .eyebrow { color: var(--muted); margin-bottom: 24px; }
.portal-home .hero h1 { margin: 0; color: var(--ink); font-size: clamp(38px, 4.9vw, 64px); font-weight: 600; letter-spacing: -.05em; line-height: 1.24; }
.hero h1 span { color: var(--ink); }
.hero-description { color: var(--muted); font-size: 17px; line-height: 1.85; margin: 24px 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.hero-platforms { margin-top: 22px; color: var(--muted); font: 12px/1.8 var(--mono); }
.hero-platforms span { padding-inline: 12px; color: #bdc1c6; }
.product-scene { margin: 52px 0 0; padding: 26px 0 30px; border-block: 1px solid var(--line); }
.product-scene figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--muted); font-size: 14px; }
.product-scene figcaption span { font: 11px/1.8 var(--mono); }
.scene-flow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; list-style: none; padding: 0; margin: 24px 0 0; }
.scene-flow li { min-width: 0; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; }
.scene-index { grid-row: 1 / 3; color: #8c9299; font: 11px/2 var(--mono); }
.scene-flow strong { font-size: 15px; font-weight: 600; }
.scene-flow li > span:last-child { grid-column: 2; color: var(--muted); font-size: 13px; margin-top: 5px; }

/* Account data is server rendered. No illustrative balances or fake status. */
.visitor-account { margin-bottom: 76px; }
.account-panel { min-width: 0; border: 0; border-radius: 0; background: transparent; overflow: visible; }
.account-panel .panel-bar { padding: 0; border: 0; }
.status { color: var(--muted); font-size: 12px; }
.status::before { background: #9aa0a6; }
.status.signed-in { color: #137333; }
.status.signed-in::before { background: #188038; }
.account-body { padding: 22px 0 0; }
.account-body h2 { color: var(--ink); font-size: 25px; font-weight: 600; line-height: 1.4; letter-spacing: -.025em; }
.account-description { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.account-body .account-note { color: var(--muted); font-size: 12px; margin-top: 16px; }
.visitor-account .account-panel { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 40px; padding: 32px 0; border-bottom: 1px solid var(--line); }
.visitor-account .panel-bar { display: block; padding-top: 4px; }
.visitor-account .panel-bar .status { margin-top: 10px; }
.visitor-account .account-body { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 0 32px; padding: 0; }
.visitor-account .account-body h2 { grid-column: 1; font-size: 20px; }
.visitor-account .account-description { grid-column: 1; margin-top: 8px; }
.visitor-account .login-form { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; }
.visitor-account .account-note { grid-column: 1 / -1; }
.login-button { min-height: 46px; background: #202124; }
.login-button:hover { background: #3c4043; }
.account-workspace { padding: 52px 0 76px; }
.workspace-intro { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 40px; }
.workspace-intro > div { min-width: 0; }
.workspace-intro .eyebrow { margin-bottom: 14px; }
.workspace-intro h1 { color: var(--ink); font-size: clamp(34px, 4.5vw, 52px); font-weight: 600; line-height: 1.25; letter-spacing: -.045em; overflow-wrap: anywhere; }
.workspace-intro .hero-description { margin-top: 14px; font-size: 15px; }
.workspace-intro > .button { flex-shrink: 0; }
.workspace-overview { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.workspace-overview > .account-panel { padding-left: 36px; border-left: 1px solid var(--line); }
.workspace-overview > .account-panel:only-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; max-width: 620px; }
.identity-facts { margin: 20px 0; }
.identity-facts div { align-items: baseline; padding: 8px 0; border: 0; }
.identity-facts dt { color: var(--muted); font-size: 13px; }
.identity-facts dd { color: var(--ink); font-size: 14px; min-width: 0; }
.account-actions { gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
.account-shortcuts { border: 0; margin-top: 12px; padding: 0; gap: 20px; }
.account-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); margin-top: 16px; padding-top: 8px; }
.account-footer .account-note { margin: 0; }
.account-body .key-form { margin-bottom: 22px; }
.account-traffic { min-width: 0; }
.traffic-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.traffic-heading .eyebrow { margin-bottom: 10px; }
.traffic-heading h2 { font-size: 25px; letter-spacing: -.025em; }
.traffic-heading .text-link { font-size: 13px; }
.traffic-summary { margin: 30px 0 24px; }
.traffic-summary .account-facts, .account-traffic > .account-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 32px 0 26px; }
.traffic-summary .account-facts > div, .account-traffic > .account-facts > div { min-width: 0; display: flex; flex-direction: column; align-items: start; gap: 12px; padding: 0; border: 0; }
.account-traffic .account-facts dt { color: var(--muted); font-size: 13px; }
.account-traffic .account-facts dd { margin: 0; color: var(--ink); font-size: clamp(26px, 2.6vw, 38px); font-weight: 500; line-height: 1.2; letter-spacing: -.045em; text-align: left; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.traffic-meter { appearance: none; width: 100%; height: 5px; display: block; border: 0; border-radius: 3px; overflow: hidden; background: #e8eaed; color: var(--accent); }
.traffic-meter::-webkit-progress-bar { background: #e8eaed; }
.traffic-meter::-webkit-progress-value { background: var(--accent); }
.traffic-meter::-moz-progress-bar { background: var(--accent); }
.traffic-meter-caption { margin-top: 12px; font-size: 12px; color: var(--muted); }
.traffic-details { border: 0; padding: 0; margin-top: 14px; }
.traffic-details summary { width: fit-content; max-width: 100%; justify-content: start; gap: 18px; font-size: 13px; }
.traffic-details .dashboard-note { margin: 12px 0 16px; }
.traffic-alert { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0; color: #9a5700; font-size: 14px; }

/* Three plain sections, each with an action and an expected next step. */
.workspace-header { align-items: baseline; border: 0; padding: 0 0 28px; gap: 22px; flex-wrap: wrap; }
.workspace-header h2 { font-size: clamp(26px, 3.2vw, 34px); font-weight: 600; letter-spacing: -.035em; }
.workspace-header p:last-child { display: block; color: var(--muted); font-size: 14px; }
.setup-section { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding: 40px 0 44px; border-top: 1px solid var(--line); }
.setup-section .section-heading { margin: 0; }
.setup-section .section-heading .eyebrow { margin-bottom: 14px; color: var(--accent); }
.setup-section h2 { font-size: 23px; line-height: 1.4; letter-spacing: -.025em; }
.setup-section .section-description { font-size: 14px; line-height: 1.85; color: var(--muted); }
.section-content { min-width: 0; }
.install-options { display: grid; grid-template-columns: 1fr; gap: 24px; }
.install-option { min-width: 0; padding: 0; background: transparent; }
.install-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
.install-heading h3 { flex: 1; min-width: 120px; color: var(--ink); font-size: 15px; }
.install-heading .secondary { border: 0; padding: 8px 0 8px 8px; min-height: 44px; font-size: 12px; }
.install-heading .secondary:hover { background: transparent; }
.copy-status { flex-basis: 100%; color: #137333; font-size: 12px; }
.copy-status:empty { display: none; }
#install pre { margin: 8px 0 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--ink); font-size: 13px; line-height: 1.9; }
.install-next { color: var(--muted); font-size: 13px; line-height: 1.9; }
.terminal { margin: 0 0 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.terminal-bar { padding: 12px 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.terminal-label, .terminal-comment { color: var(--muted); }
.terminal-content { padding: 18px 20px 22px; }
.terminal pre { color: var(--ink); font-size: 16px; }
.terminal pre::before { color: var(--accent); }
.connect-actions { justify-content: flex-start; flex-wrap: wrap; gap: 12px 20px; }
.command-hint { flex: 1; min-width: 180px; color: var(--muted); font-size: 13px; }
.connect-actions .secondary { font-size: 13px; }
#copy-command-status { color: #137333; font-size: 12px; }
#connect .section-content > .section-description { margin-top: 20px; }
#connect details { margin-top: 16px; }
.connection-checklist { margin: 0; padding-left: 22px; display: grid; gap: 22px; font-size: 14px; }
.connection-checklist li { padding-left: 6px; }
.connection-checklist li::marker { color: var(--muted); font-family: var(--mono); }
.connection-checklist strong { font-weight: 600; }
.connection-checklist p { margin-top: 6px; color: var(--muted); line-height: 1.9; }
.connection-fields { margin: 12px 0 0; padding: 4px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.connection-fields div:last-child { border: 0; }
.connection-fields dt { font-size: 12px; }
.connection-fields dd { color: var(--ink); font-size: 13px; }
.guide-help { margin-top: 28px; }
.guide-help p { font-size: 14px; line-height: 1.85; }
.learn-more { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 64px; margin-top: 28px; padding: 40px 0 56px; border-top: 1px solid var(--line); }
.learn-more h2 { margin-top: 12px; font-size: 25px; }
.learn-more p:not(.eyebrow) { margin-top: 12px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.learn-more nav { display: grid; align-content: start; }
.learn-more nav a { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); color: var(--accent); font-size: 14px; text-decoration: none; }

/* Shared authenticated pages retain their server-rendered data and controls. */
.console-nav { gap: 28px; padding-top: 12px; }
.console-nav a { color: var(--muted); font-size: 14px; }
.console-nav a[aria-current="page"] { color: var(--accent); border-color: var(--accent); }
.dashboard-head { padding: 44px 0 32px; gap: 28px; }
.dashboard-head > div { min-width: 0; }
.dashboard-head h1 { font-size: clamp(32px, 4vw, 46px); letter-spacing: -.04em; }
.dashboard-head > div > p:last-child { max-width: 56em; font-size: 14px; }
.snapshot-meta { color: var(--muted); font-size: 12px; }
.metrics { gap: 28px; margin: 0 0 36px; }
.metric { padding: 12px 0 24px; }
.metric dt { color: var(--muted); font-size: 13px; }
.metric dd { color: var(--ink); font-size: 40px; }
.dashboard-section { margin-top: 40px; }
.dashboard-section-heading { gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.dashboard-section-heading h2 { font-size: 23px; letter-spacing: -.025em; }
.dashboard-note { color: var(--muted); font-size: 14px; line-height: 1.9; }
.console-empty, .session-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 28px; }
.session-card:target { border-color: #8ab4f8; }
.session-heading h3 { font-size: 19px; }
.session-heading p, .session-facts dt { color: var(--muted); font-size: 12px; }
.session-facts { gap: 20px; margin: 24px 0; }
.session-facts dd { color: var(--ink); font-size: 13px; }
.retention-notice { border-radius: 6px; background: #e8f0fe; padding: 22px; }
.retention-notice p { color: #3c4043; font-size: 13px; }
.retention-notice strong { color: #174ea6; }
.audit-row { padding: 22px 0; }
.audit-event strong { font-size: 14px; }
.audit-time, .audit-event code, .audit-context, .audit-id summary, .audit-id > code { color: var(--muted); }
.audit-time small { color: var(--muted); }
.audit-outcome.success { color: #137333; background: #e6f4ea; }
.audit-outcome.denied { color: #9a5700; background: #fef7e0; }
.audit-outcome.error { color: #a50e0e; background: #fce8e6; }
.audit-outcome.pending { color: var(--muted); background: #f1f3f4; }
.history-pagination { flex-wrap: wrap; }
.section-links a { color: var(--accent); font-size: 13px; }
.users-table thead, .users-table tbody td { color: var(--muted); }
.users-table tbody th { color: var(--ink); }
.users-table th, .users-table td { padding-block: 20px; }
.account-state.active { color: #137333; }
.account-state.banned, .key-remove > summary, .disconnect-control summary, .user-ban summary, .user-ban strong { color: #a50e0e; }
.user-connections a { color: var(--accent); }
.user-rate-form input { background: #fff; }
.card { max-width: 840px; margin: 48px auto; padding: 36px 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.card h1 { margin: 0 0 24px; font-size: 34px; letter-spacing: -.035em; }
.card h2 { font-size: 24px; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.9; }
.card li { padding: 10px 0; overflow-wrap: anywhere; line-height: 1.85; }
.card li + li { border-top: 1px solid var(--line); }
.card input[type="checkbox"] { display: inline-block; width: 18px; height: 18px; margin: 0 10px 0 0; vertical-align: -3px; accent-color: var(--accent); }
.card form > label + label { margin-top: 22px; }
.card form > button { margin-top: 22px; }
/* Pricing and the legal footer are supplied by the public reverse proxy. */
#pricing { max-width: 1180px; margin: 40px auto 0; border-top: 1px solid var(--line); padding-top: 32px; }
#pricing h2 { color: var(--ink); font-size: 25px; }
#pricing > p { margin-top: 16px; max-width: 72em; color: var(--muted); font-size: 14px; line-height: 1.9; }
.site-footer { color: var(--muted); margin-top: 36px; padding: 22px 0 28px; font-size: 12px; }
#pricing + .site-footer nav { color: var(--muted); line-height: 2; }
#pricing + .site-footer a { display: inline-flex; align-items: center; min-height: 44px; }


/* Billing: server prices and order states, with a separate checkout handoff. */
.commerce-page { max-width: 1040px; margin: 0 auto; padding-bottom: 48px; }
.account-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 13px; }
.account-breadcrumb a { color: var(--accent); min-height: 36px; display: inline-flex; align-items: center; text-decoration: none; }
.commerce-heading { padding: 32px 0; }
.commerce-heading h1 { font-size: clamp(32px, 4vw, 44px); margin-top: 12px; letter-spacing: -.035em; }
.commerce-heading > p:last-child { margin-top: 12px; font-size: 15px; color: var(--muted); }
.quota-overview { padding: 4px 0 28px; border-bottom: 1px solid var(--line); }
.quota-overview .account-facts { max-width: 760px; margin-top: 12px; }
.billing-unit { color: var(--muted); font-size: 12px; margin-top: 16px; }
.purchase-notice { margin: 28px 0 32px; padding: 16px 20px; border-left: 3px solid #f9ab00; border-radius: 0 6px 6px 0; background: #fef7e0; font-size: 14px; }
.purchase-notice p + p { margin-top: 4px; color: #68511c; font-size: 13px; }
.purchase-notice strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.commerce-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.purchase-card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; }
.purchase-card h2 { margin-top: 10px; font-size: 25px; }
.price-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 24px 0 20px; }
.price-facts dt, .checkout-summary dt, .verified-payment dt { color: var(--muted); font-size: 12px; }
.price-facts dd { margin: 6px 0 0; font: 500 16px/1.7 var(--mono); overflow-wrap: anywhere; }
.billing-note, .field-help { color: var(--muted); font-size: 13px; line-height: 1.85; }
.purchase-card form { margin-top: 28px; }
.amount-field label { font-size: 14px; font-weight: 500; }
.amount-field input { max-width: 300px; font-size: 28px; padding: 12px 16px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.field-help { margin-top: 10px; }
.month-consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; line-height: 1.85; }
.purchase-card input[type="checkbox"] { display: inline-block; flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; padding: 0; accent-color: var(--accent); }
.purchase-submit { margin-top: 24px; }
.purchase-submit button { min-width: 150px; }
.purchase-submit p { margin-top: 10px; color: var(--muted); font-size: 12px; }
.purchase-unavailable, .payment-test-notice { margin-top: 22px; padding: 14px 16px; border-radius: 6px; background: var(--surface); color: var(--muted); font-size: 14px; }
.payment-test-notice { background: #fef7e0; color: #8d4e00; }
.purchase-explainer { padding-top: 20px; }
.purchase-explainer h2 { font-size: 18px; }
.purchase-explainer ol { display: grid; gap: 24px; padding-left: 22px; margin: 24px 0; }
.purchase-explainer li { padding-left: 7px; }
.purchase-explainer li::marker { color: var(--accent); font: 12px var(--mono); }
.purchase-explainer strong { font-size: 14px; font-weight: 600; }
.purchase-explainer p { margin-top: 6px; font-size: 13px; color: var(--muted); line-height: 1.85; }
.purchase-explainer a { font-size: 13px; color: var(--accent); }
.orders-section { margin-top: 48px; }
.orders-heading { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; align-items: baseline; margin-bottom: 20px; }
.orders-heading h2 { font-size: 25px; }
.orders-heading p { color: var(--muted); font-size: 13px; }
.orders-empty { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; color: var(--muted); font-size: 14px; }
.order-list { margin: 0; padding: 0; list-style: none; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1fr) minmax(160px, 1.4fr) 16px; gap: 24px; align-items: center; border-top: 1px solid var(--line); padding: 22px 12px; text-decoration: none; }
.order-row:hover { color: var(--ink); background: var(--surface); }
.order-row strong { display: block; font-size: 15px; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.order-label { display: block; color: var(--muted); font-size: 11px; margin-block: 3px; }
.order-status { width: fit-content; max-width: 100%; border-radius: 5px; background: #f1f3f4; padding: 5px 9px; color: #3c4043; font-size: 12px; line-height: 1.7; }
.order-arrow { color: var(--muted); }
.commerce-unavailable { padding: 32px 0; }
.commerce-unavailable p { margin: 12px 0; color: var(--muted); }
.commerce-unavailable a { color: var(--accent); font-size: 14px; }
.checkout-card > .eyebrow, .order-detail > .eyebrow, .payment-error > .eyebrow { margin-bottom: 14px; }
.card .payment-steps { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; margin: 0 0 28px; padding: 0 0 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.card .payment-steps li { border: 0; padding: 0; }
.payment-steps [aria-current="step"] { color: var(--accent); font-weight: 600; }
.checkout-summary { margin: 24px 0; }
.checkout-summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.checkout-summary dd { margin: 0; font-size: 16px; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.checkout-summary .checkout-total dd { font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.card .billing-note { font-size: 13px; }
.card .payment-confirmation-note { padding: 14px 16px; background: #f8f9fa; border-left: 2px solid #dadce0; font-size: 13px; }
.checkout-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 28px; }
.checkout-actions > a:not(.button) { color: var(--accent); font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
.card .order-state { display: grid; gap: 8px; margin: 20px 0; padding: 18px 20px; background: var(--surface); border-radius: 6px; }
.order-state > span { color: var(--muted); font-size: 12px; }
.order-state strong { color: var(--ink); font-size: 18px; font-weight: 500; }
.card .order-state-help { font-size: 14px; }
.verified-payment { display: grid; gap: 14px; padding: 18px 20px; border: 1px solid #ceead6; border-radius: 6px; background: #f6fbf7; }
.verified-payment > div { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.verified-payment dd { margin: 0; color: #137333; font-size: 16px; font-variant-numeric: tabular-nums; }
.order-return { margin-top: 28px; border-top: 1px solid var(--line); padding-top: 18px; }
.order-return a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-size: 14px; }
@media (max-width: 760px) {
  .commerce-heading { padding: 22px 0 28px; }
  .commerce-grid { grid-template-columns: 1fr; gap: 30px; }
  .purchase-card { padding: 24px 20px; }
  .price-facts { gap: 12px; }
  .price-facts dd { font-size: 14px; }
  .purchase-explainer { padding-top: 0; }
  .order-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px 20px; padding-inline: 0; }
  .order-arrow { display: none; }
  .orders-heading { display: block; }
  .orders-heading p { margin-top: 8px; }
  .checkout-summary > div { gap: 16px; }
  .checkout-summary dt { min-width: 64px; }
  .checkout-summary dd { font-size: 14px; }
}

@media (max-width: 1000px) {
  .container { width: calc(100% - 56px); }
  .setup-section { grid-template-columns: 200px minmax(0, 1fr); gap: 32px; }
  .workspace-overview { gap: 32px; }
  .workspace-overview > .account-panel { padding-left: 28px; }
  .visitor-account .account-panel { grid-template-columns: 120px minmax(0, 1fr); gap: 28px; }
  .visitor-account .account-body { grid-template-columns: minmax(0, 1fr) 210px; gap: 0 24px; }
  .account-traffic .account-facts { gap: 16px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .site-nav { min-height: 68px; gap: 16px; }
  .brand-name { font-size: 21px; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12px; }
  .portal-home .hero { padding-top: 48px; }
  .portal-home .hero h1 { font-size: clamp(32px, 7vw, 48px); }
  .hero-description { font-size: 15px; }
  .hero-platforms { font-size: 11px; }
  .hero-platforms span { padding-inline: 6px; }
  .product-scene { margin-top: 38px; }
  .scene-flow { grid-template-columns: 1fr; gap: 20px; }
  .product-scene figcaption { display: grid; gap: 6px; }
  .visitor-account { margin-bottom: 48px; }
  .visitor-account .account-panel { display: block; padding: 26px 0; }
  .visitor-account .panel-bar { display: flex; padding: 0; }
  .visitor-account .panel-bar .status { margin: 0; }
  .visitor-account .account-body { display: block; padding-top: 18px; }
  .visitor-account .login-form { margin-top: 20px; max-width: 320px; }
  .account-workspace { padding: 36px 0 48px; }
  .workspace-intro { flex-direction: column; align-items: start; gap: 22px; margin-bottom: 32px; }
  .workspace-overview { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .workspace-overview > .account-panel { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .workspace-overview > .account-panel:only-child { border-top: 0; padding-top: 0; max-width: none; }
  .account-traffic .account-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .account-traffic .account-facts > div:first-child { grid-column: 1 / -1; }
  .account-traffic .account-facts > div:first-child dd { font-size: 44px; }
  .account-traffic .account-facts dd { font-size: 28px; }
  .workspace-header { align-items: start; flex-direction: column; gap: 10px; padding-bottom: 22px; }
  .workspace-header p:last-child { display: block; }
  .setup-section { grid-template-columns: 1fr; gap: 24px; padding: 30px 0 34px; }
  .setup-section .section-heading .eyebrow { margin-bottom: 10px; }
  .terminal pre { font-size: 14px; }
  .command-hint { min-width: 140px; }
  .learn-more { grid-template-columns: 1fr; gap: 24px; padding-block: 32px; }
  .console-nav { gap: 8px 22px; }
  .console-nav a { font-size: 13px; }
  .dashboard-head { padding: 30px 0; gap: 20px; }
  .dashboard-head h1 { font-size: 32px; }
  .metric dd { font-size: 32px; }
  .metrics { gap: 20px; }
  .session-card { padding: 22px 20px; }
  .session-facts { gap: 18px; }
  .dashboard-section-heading h2 { font-size: 22px; }
  .user-management-table th, .user-management-table td { padding: 0; }
  .card { margin-block: 28px; padding: 26px 22px; }
  .card h1 { font-size: 28px; }
}
@media (max-width: 400px) {
  .container { width: calc(100% - 32px); }
  .nav-links { gap: 12px; }
  .nav-links .arrow { display: none; }
  .brand-mark { width: 26px; height: 26px; }
  .portal-home .hero h1 { font-size: 30px; }
  .hero-actions { align-items: stretch; }
  .hero-actions .button { padding-inline: 14px; font-size: 13px; }
  .identity-facts div { flex-wrap: wrap; gap: 4px 14px; }
  .identity-facts dd { text-align: left; }
  .account-footer { gap: 12px; }
}
