:root {
  --text: #171717;
  --text-soft: #454545;
  --muted: #686868;
  --muted-light: #737373;
  --border: #e5e5e5;
  --border-strong: #d4d4d4;
  --canvas: #ffffff;
  --sidebar: #f5f5f5;
  --subtle: #fafafa;
  --accent: #3153b8;
  --accent-hover: #254298;
  --accent-soft: #f0f3fc;
  --success: #15744f;
  --success-soft: #eaf7f1;
  --danger: #b83b35;
  --warning: #946200;
  --code: #181b20;
  --radius: 8px;
  --sidebar-width: 232px;
  color: var(--text);
  background: var(--canvas);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-synthesis: none;
}

.service-notice { max-width: 1400px; margin: 0 auto 24px; padding: 14px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--text-soft); font-size: 13px; line-height: 1.6; }
.service-notice a:not(.button), .connection-settings a:not(.button) { color: var(--accent); }
.connection-settings { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }
.connection-settings h2, .sessions-panel h2, .edit-key-panel h2 { margin: 0; font-size: 18px; letter-spacing: -.02em; }
.connection-settings > p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.connection-settings .secret-field { margin: 8px 0 20px; }
.key-next-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.edit-key-panel .compact-form, .sessions-panel .compact-form { margin-top: 24px; }
.key-edit-link { display: inline-block; margin-bottom: 10px; }
.sessions-panel { max-width: 1080px; margin-top: 28px; }
.sessions-panel form { max-width: 380px; }
.setup-guide ol { flex-wrap: wrap; }
.setup-guide > div { max-width: 350px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body { min-height: 100vh; margin: 0; background: var(--canvas); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: 3px; }
svg { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-size: 18px; font-weight: 600; letter-spacing: -.025em; text-decoration: none; }
.brand-logo { width: 24px; height: 24px; flex: none; }
.button { display: inline-flex; min-height: 38px; padding: 0 14px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 500; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, transform .15s; }
.button:hover:not(:disabled) { border-color: #b5b5b5; }
.button-primary { border-color: var(--text); background: var(--text); color: white; }
.button-primary:hover:not(:disabled) { border-color: #333; background: #333; }
.button-secondary { border-color: var(--border-strong); background: var(--canvas); color: var(--text); }
.button-secondary:hover:not(:disabled) { border-color: #aeb5c0; background: var(--subtle); }
.button-small { min-height: 36px; padding-inline: 14px; font-size: 13px; }
.button-full { width: 100%; }
.text-button { padding: 0; border: 0; background: none; color: var(--accent); font-size: 13px; font-weight: 600; cursor: pointer; }
.text-button.danger { color: var(--danger); }
.icon-button { display: grid; width: 32px; height: 32px; padding: 0; place-items: center; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
.icon-button:hover { background: var(--border); color: var(--text); }
.icon-button svg { width: 18px; height: 18px; }

/* Public website: separate from the signed-in workspace. */
.public-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--border); background: var(--canvas); }
.public-header-inner { display: flex; width: min(1200px, calc(100% - 48px)); min-height: 76px; margin: auto; align-items: center; justify-content: space-between; gap: 28px; }
.public-navigation { display: flex; align-items: center; gap: 28px; }.public-navigation > a:not(.button) { color: var(--text-soft); font-size: 14px; text-decoration: none; }.public-navigation > a:not(.button):hover, .public-navigation > a[aria-current="page"]:not(.button) { color: var(--text); text-decoration: underline; }.public-login-link { padding-left: 28px; border-left: 1px solid var(--border); }
.public-main { width: min(1200px, calc(100% - 48px)); min-height: calc(100vh - 77px); margin: auto; padding: 64px 0 80px; }.public-main.public-home { padding-top: 0; }

.public-footer { display: grid; width: min(1200px, calc(100% - 48px)); margin: auto; padding: 40px 0 48px; grid-template-columns: 2fr repeat(3, 1fr); gap: 48px; border-top: 1px solid var(--border); }
.public-footer > div p { max-width: 290px; margin: 14px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.public-footer nav { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.public-footer nav strong { margin-bottom: 4px; font-size: 13px; }
.public-footer nav a:not(.button) { color: var(--muted); font-size: 13px; text-decoration: none; }
.public-footer nav a:not(.button):hover { color: var(--text); }

/* Developer code example */
.code-demo { overflow: hidden; border: 1px solid var(--border); border-radius: 8px; background: var(--canvas); box-shadow: 0 3px 14px rgba(20, 20, 20, .04); }
.code-demo-toolbar { display: flex; min-height: 48px; padding: 0 15px; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.code-demo-tabs { display: flex; height: 48px; align-items: center; gap: 24px; color: var(--muted); font-size: 13px; }
.code-demo-tabs > button:not(.copy-button) { display: flex; height: 100%; padding: 0; align-items: center; border: 0; border-bottom: 2px solid transparent; background: transparent; color: inherit; font-size: inherit; cursor: pointer; }
.code-demo-tabs > button:not(.copy-button):hover { color: var(--text); }
.code-demo-tabs > button.active:not(.copy-button) { border-bottom-color: var(--accent); color: var(--accent); font-weight: 650; }
.copy-button { margin-left: auto; padding: 5px 8px; border: 0; border-radius: 5px; background: transparent; color: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.copy-button:hover { background: var(--subtle); color: var(--accent); }
.code-demo pre { height: 260px; margin: 0; padding: 20px; overflow: auto; color: var(--text-soft); font-size: 13px; line-height: 1.65; white-space: pre; }

/* Application shell */
.app-sidebar { overflow-y: auto; position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: var(--sidebar-width); padding: 12px 8px 12px; flex-direction: column; border-right: 1px solid var(--border); background: var(--sidebar); }
.app-brand { min-height: 32px; margin: 4px 10px 24px; font-size: 16px; }
.app-nav { display: flex; flex: 1; flex-direction: column; gap: 2px; }
.app-nav a, .app-sidebar-footer > a { display: flex; min-height: 38px; padding: 0 12px; align-items: center; gap: 12px; border-radius: 8px; color: var(--text-soft); font-size: 14px; font-weight: 520; text-decoration: none; }
.app-nav a:hover, .app-sidebar-footer > a:hover { background: var(--border); color: var(--text); }
.app-nav a.active { background: var(--border); color: var(--text); font-weight: 500; }
.app-nav svg, .app-sidebar-footer svg { width: 19px; height: 19px; flex: 0 0 auto; }
.app-sidebar-footer { padding-top: 12px; border-top: 1px solid var(--border); }
.account-row { display: grid; margin-top: 7px; padding: 10px 8px; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.account-avatar { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--canvas); font-size: 12px; font-weight: 650; }
.account-row strong, .account-row small { display: block; }.account-row strong { font-size: 12px; }.account-row small { margin-top: 2px; color: var(--muted); font-size: 10px; }.account-row form { margin: 0; }
.mobile-menu-button { display: none; }
.app-main { min-height: calc(100vh - 57px); padding: 36px clamp(24px, 3vw, 48px) 64px; }
.page-heading { display: flex; max-width: 1400px; margin: 0 auto 28px; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-heading h1 { margin: 0; font-size: 26px; font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.page-heading p { margin: 10px 0 0; color: var(--muted); font-size: 14px; }

/* Forms */
label { display: block; color: var(--text-soft); font-size: 13px; font-weight: 600; }
label > small { float: right; color: var(--muted); font-size: 11px; font-weight: 450; }
input { width: 100%; height: 42px; margin-top: 8px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 6px; outline: none; background: var(--canvas); color: var(--text); font-size: 14px; }
input::placeholder { color: var(--muted-light); }
input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(49,83,237,.12); }

/* Overview and usage */
.setup-guide { display: flex; max-width: 1400px; margin: 0 auto 30px; padding: 18px 20px; align-items: center; justify-content: space-between; gap: 24px; border: 1px solid var(--border); border-radius: var(--radius); }
.setup-guide strong { font-size: 14px; }.setup-guide p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.setup-guide ol { display: flex; margin: 0; padding: 0; gap: 24px; list-style: none; }.setup-guide li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }.setup-guide li span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 11px; }.setup-guide li.complete span { border-color: var(--success); background: var(--success-soft); color: var(--success); }.setup-guide a:not(.button) { color: var(--accent); font-weight: 600; }
.metrics-row { display: grid; max-width: 1400px; margin: 0 auto 24px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.metrics-row article { min-width: 0; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.metrics-row span, .metrics-row strong, .metrics-row small { display: block; }.metrics-row span { color: var(--muted); font-size: 13px; }.metrics-row strong { margin: 15px 0 7px; font-size: 28px; font-weight: 500; letter-spacing: -.035em; }.metrics-row strong em { color: var(--muted); font-size: 13px; font-style: normal; font-weight: 500; }.metrics-row small { color: var(--muted); font-size: 11px; }
.overview-grid { display: grid; max-width: 1400px; margin: 0 auto 24px; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 20px; }
.section-panel { min-width: 0; background: var(--canvas); }.overview-grid .section-panel { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }
.section-panel > header, .data-section > header { display: flex; min-height: 68px; padding: 17px 20px; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.section-panel h2, .data-section h2 { margin: 0; font-size: 16px; font-weight: 500; letter-spacing: -.015em; }.section-panel header p, .data-section header p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.section-panel header a:not(.button), .data-section header a:not(.button), .row-link, .inline-link { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: 12px; font-weight: 600; text-decoration: none; }.section-panel header a:not(.button) svg, .data-section header a:not(.button) svg, .row-link svg, .inline-link svg { width: 14px; height: 14px; }
.spend-chart { display: grid; min-height: 250px; padding: 28px 24px 20px; grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
.chart-scale { display: flex; padding-bottom: 42px; flex-direction: column; justify-content: space-between; color: var(--muted-light); font-size: 10px; }
.chart-bars { display: flex; align-items: stretch; gap: clamp(8px, 2.2vw, 28px); }
.chart-bars > div { display: flex; min-width: 0; flex: 1; flex-direction: column; justify-content: flex-end; gap: 9px; text-align: center; }
.chart-track { display: flex; height: 180px; align-items: flex-end; border-bottom: 1px solid var(--border); }
.chart-bar { display: block; width: min(30px, 72%); height: 180px; margin: 0 auto; color: var(--accent); }.chart-bar rect { fill: currentColor; stroke: none; }
.chart-bars span { color: var(--muted); font-size: 11px; }.chart-bars span small { display: block; margin-top: 4px; color: var(--muted-light); font-size: 9px; }
.compact-form { display: grid; padding: 22px 20px; grid-template-columns: 1fr 1fr; gap: 16px; }.compact-form button { grid-column: 1 / -1; justify-self: start; }
.data-section { max-width: 1400px; margin: 0 auto 30px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--canvas); }
.table-scroll { position: relative; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { height: 54px; padding: 0 18px; border-bottom: 1px solid var(--border); text-align: left; color: var(--text-soft); font-size: 13px; white-space: nowrap; }
th { height: 42px; background: var(--subtle); color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: var(--subtle); }
td strong { color: var(--text); } td a:not(.button) { color: var(--accent); font-weight: 600; text-decoration: none; } td code { padding: 4px 6px; border-radius: 4px; background: var(--subtle); color: var(--text-soft); font-size: 11px; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--success); font-size: 12px; }.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }.status.revoked { color: var(--muted); }
.empty-row { display: flex; min-height: 150px; padding: 30px; align-items: center; justify-content: center; gap: 16px; text-align: left; }.empty-row > svg { width: 31px; height: 31px; color: var(--muted-light); }.empty-row strong { font-size: 14px; }.empty-row p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }.empty-row a:not(.button) { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 13px; font-weight: 600; }.empty-tall { min-height: 260px; }
.usage-wide-chart { max-width: 1400px; margin: 0 auto 30px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); }.usage-wide-chart .spend-chart { min-height: 320px; }

/* API keys */
.key-layout { display: grid; max-width: 1400px; margin: auto; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.key-table-section { margin: 0; }.cell-note { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 450; }
.create-key-aside { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); }.create-key-aside h2 { margin: 0; font-size: 18px; }.create-key-aside > p { margin: 8px 0 24px; color: var(--muted); font-size: 13px; line-height: 1.55; }.create-key-aside form { display: grid; gap: 18px; }.create-key-aside button { justify-self: start; }
.aside-note { display: flex; margin-top: 24px; padding-top: 20px; gap: 10px; border-top: 1px solid var(--border); }.aside-note svg { width: 19px; height: 19px; flex: 0 0 auto; color: var(--muted); }.aside-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }

/* Models */

.model-toolbar { display: flex; max-width: 1400px; margin: 0 auto 24px; align-items: center; gap: 14px; }
.search-input { position: relative; width: min(460px, 100%); }.search-input svg { position: absolute; z-index: 1; width: 18px; height: 18px; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }.search-input input { margin: 0; padding-left: 40px; }
.filter-group { display: flex; gap: 6px; }.filter-group button { min-height: 42px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--canvas); color: var(--text-soft); font-size: 13px; cursor: pointer; }.filter-group button:hover { background: var(--subtle); }.filter-group button.active { border-color: #c7c7c7; color: var(--text); background: #f0f0f0; }
.model-table-wrap { position: relative; max-width: 1400px; margin: auto; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
.model-table { min-width: 760px; table-layout: fixed; }
.model-table th { height: 48px; background: var(--sidebar); letter-spacing: 0; font-size: 12px; }
.model-table th:first-child { width: 34%; }.model-table th:nth-child(2) { width: 15%; }.model-table th:last-child { width: 15%; }
.model-table td { height: auto; padding: 22px 18px; vertical-align: top; line-height: 1.5; white-space: normal; }
.model-identity strong { display: block; color: var(--text); font-size: 14px; font-weight: 650; }
.model-identity p { max-width: 40ch; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.model-table .price-cell { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.provider-name { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 12px; }
.provider-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }.provider-openai { background: #18865f; }.provider-anthropic { background: #ae6144; }
.model-card[hidden] { display: none; }
.model-pricing-note, .model-footnote { max-width: 1400px; margin: 0 auto 16px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.model-pricing-note { display: flex; align-items: end; justify-content: space-between; gap: 24px; }.model-pricing-note p { max-width: 740px; margin: 0; }.model-pricing-note > span { flex-shrink: 0; font-variant-numeric: tabular-nums; }.model-footnote { margin-top: 16px; }

.model-detail-toggle { display: inline-flex; min-height: 28px; margin-top: -4px; padding: 4px 6px; align-items: center; gap: 5px; border: 0; border-radius: 4px; background: transparent; color: var(--accent); font-size: 12px; font-weight: 600; cursor: pointer; }.model-detail-toggle:hover { background: var(--accent-soft); }.model-detail-toggle svg { width: 14px; height: 14px; }.model-detail-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.model-table .model-expanded-row > td { padding: 26px; background: var(--sidebar); }
.model-detail-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }.model-detail-grid h3 { margin: 0; font-size: 13px; color: var(--text); }.model-detail-grid p { margin: 10px 0; color: var(--muted); font-size: 12px; }.model-id-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }.model-id-copy .copy-button { margin: 0; min-height: 30px; border: 1px solid var(--border-strong); background: var(--canvas); }.model-id-copy .model-id { padding: 0; overflow-wrap: anywhere; background: transparent; }
.model-rates { margin: 14px 0 0; font-size: 12px; }.model-rates > div { display: flex; justify-content: space-between; gap: 20px; padding-block: 5px; }.model-rates dt { color: var(--muted); }.model-rates dd { margin: 0; font-variant-numeric: tabular-nums; }.model-api-notes { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; }.model-api-notes summary { cursor: pointer; }.model-api-notes p { max-width: 85ch; margin-bottom: 0; line-height: 1.7; overflow-wrap: anywhere; }

.filter-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 70px 24px; border-top: 1px solid var(--border); text-align: center; }.filter-empty strong { font-size: 15px; }.filter-empty p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }.filter-empty > .button { margin-top: 18px; }
.model-empty { display: flex; max-width: 1400px; min-height: 380px; margin: auto; padding: 40px; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; }.model-empty > svg { width: 48px; height: 48px; color: var(--muted-light); }.model-empty h2 { margin: 24px 0 8px; font-size: 21px; }.model-empty p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }.model-empty a:not(.button) { margin-top: 20px; color: var(--accent); font-size: 13px; font-weight: 600; }

/* Documentation */
.docs-shell { display: grid; max-width: 1180px; margin: auto; grid-template-columns: 175px minmax(0, 820px); gap: 56px; }

.docs-nav { position: sticky; top: 96px; align-self: start; }.docs-nav div { display: flex; margin-bottom: 28px; flex-direction: column; gap: 4px; }.docs-nav strong { margin: 0 9px 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0; }.docs-nav a { padding: 7px 9px; border-left: 2px solid transparent; color: var(--text-soft); font-size: 13px; text-decoration: none; }.docs-nav a:hover { color: var(--accent); }.docs-nav a.active { border-color: var(--accent); color: var(--accent); font-weight: 620; }
.docs-content { min-width: 0; }.docs-content > header { padding-bottom: 34px; border-bottom: 1px solid var(--border); }.docs-content h1 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.025em; }.docs-content > header p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }.docs-content section { padding: 42px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 96px; }.docs-content section:last-child { border-bottom: 0; }.docs-content h2 { margin: 0; font-size: 24px; letter-spacing: -.03em; }.docs-content h3 { margin: 28px 0 8px; font-size: 16px; }.docs-content section > p { margin: 12px 0 0; color: var(--text-soft); font-size: 15px; line-height: 1.7; }.docs-content section > p code { padding: 2px 5px; border-radius: 4px; background: var(--subtle); font-size: 13px; }
.code-block { margin-top: 22px; overflow: hidden; border: 1px solid #2a2e35; border-radius: var(--radius); background: var(--code); color: #d9dee7; }.code-block > header { display: flex; height: 42px; padding: 0 14px; align-items: center; justify-content: space-between; border-bottom: 1px solid #31353d; color: #9da5b1; font-size: 12px; }.code-block .copy-button:hover { background: #292d34; color: white; }.code-block pre { margin: 0; padding: 22px; overflow: auto; font-size: 13px; line-height: 1.7; }
.header-example { display: flex; margin-top: 20px; padding: 13px 14px; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: 6px; background: var(--subtle); color: var(--text-soft); font-size: 13px; }.header-example .copy-button { margin-left: 20px; }
.endpoint { display: flex; margin-top: 20px; padding: 12px; align-items: center; gap: 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--subtle); }.method { padding: 4px 7px; border-radius: 4px; color: white; font-size: 10px; font-weight: 700; }.method.get { background: var(--accent); }.method.post { background: var(--success); }.endpoint code { font-size: 13px; }
.docs-models { margin-top: 20px; border: 1px solid var(--border); border-radius: var(--radius); }.docs-models > div { display: flex; min-height: 62px; padding: 0 16px; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); }.docs-models > div:last-child { border-bottom: 0; }.docs-models p, .docs-models strong, .docs-models small { display: block; margin: 0; }.docs-models strong { font-size: 13px; }.docs-models small { margin-top: 4px; color: var(--muted); font-size: 11px; }.docs-models > div > span { color: var(--muted); font-size: 12px; }
.inline-notice { display: flex; margin-top: 20px; padding: 14px; gap: 11px; border: 1px solid var(--border); border-radius: 6px; background: var(--subtle); }.inline-notice svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--muted); }.inline-notice p { margin: 0; color: var(--text-soft); font-size: 13px; line-height: 1.5; }.inline-notice strong { display: block; margin-bottom: 3px; }.inline-notice.warning { border-color: #ead9aa; background: #fffaf0; }.inline-notice.warning svg { color: var(--warning); }
.docs-error-table { margin-top: 18px; border: 1px solid var(--border); }.docs-error-table th { background: var(--subtle); }.docs-error-table td { padding-block: 14px; white-space: normal; }.docs-error-table td:first-child { width: 90px; font-family: monospace; }.inline-link { margin-top: 18px; }

/* Billing */
.balance-summary { display: flex; max-width: 1400px; min-height: 150px; margin: 0 auto; padding: 26px 30px; align-items: center; justify-content: space-between; border: 1px solid var(--border); border-radius: var(--radius); }.balance-summary span, .balance-summary strong { display: block; }.balance-summary span { color: var(--muted); font-size: 13px; }.balance-summary strong { margin: 8px 0 4px; font-size: 42px; letter-spacing: -.05em; }.balance-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.checkout-note { display: flex; max-width: 1400px; margin: 14px auto 32px; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; }.checkout-note svg { width: 16px; height: 16px; }
.billing-layout { display: grid; max-width: 1400px; margin: auto; grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; align-items: start; }.credit-purchase { border: 1px solid var(--border); border-radius: var(--radius); }.credit-purchase > header { padding: 20px; border-bottom: 1px solid var(--border); }.credit-purchase h2, .billing-help h2 { margin: 0; font-size: 17px; }.credit-purchase header p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.purchase-terms { margin: 18px 20px 0; color: var(--muted); font-size: 12px; line-height: 1.65; }.purchase-terms a { color: var(--accent); }
.purchase-action { display: flex; flex-wrap: wrap; padding: 18px 20px; align-items: center; gap: 16px; }.purchase-action .button { padding-block: 10px; }.purchase-action p { flex: 1; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.topup-amount { padding: 24px 20px; border-bottom: 1px solid var(--border); }.topup-amount > label { display: block; margin-bottom: 10px; color: var(--text); font-size: 13px; font-weight: 600; }.amount-input { display: flex; max-width: 390px; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid var(--border-strong); border-radius: 7px; background: var(--canvas, #fff); }.amount-input:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }.amount-input > span:first-child { color: var(--text); font-size: 24px; }.amount-input > span:last-child { color: var(--muted); font-size: 12px; font-weight: 600; }.amount-input input { margin-top: 0; min-width: 0; width: 100%; height: 62px; padding: 0; border: 0; outline: 0; box-shadow: none; color: var(--text); font-size: 30px; font-weight: 600; background: transparent; }.topup-amount > p { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }.amount-presets { display: flex; margin-top: 20px; gap: 10px; flex-wrap: wrap; }.amount-presets .button { min-width: 72px; justify-content: center; }.amount-presets .button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: #f4f5ff; }.amount-presets .button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.billing-help { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); }.billing-help p { color: var(--muted); font-size: 12px; line-height: 1.6; }.billing-help hr { margin: 22px 0; border: 0; border-top: 1px solid var(--border); }.billing-help h3 { margin: 0; font-size: 14px; }.billing-help a:not(.button) { display: block; margin-top: 10px; color: var(--accent); font-size: 12px; font-weight: 600; }
.configuration-empty { display: flex; max-width: 1400px; min-height: 130px; margin: 0 auto 30px; padding: 24px; align-items: center; gap: 18px; border: 1px dashed var(--border-strong); border-radius: var(--radius); }.configuration-empty > svg { width: 32px; height: 32px; color: var(--muted); }.configuration-empty h2 { margin: 0; font-size: 16px; }.configuration-empty p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }.configuration-empty > a:not(.button) { margin-left: auto; color: var(--accent); font-size: 13px; font-weight: 600; }.billing-history { margin-top: 32px; }.positive { color: var(--success); }

/* Authentication and utility */
.auth-shell { display: grid; min-height: 600px; padding: 24px 0 48px; place-items: start center; }.auth-card { width: min(400px, 100%); padding: 24px 4px; border: 0; }.auth-card h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }.auth-card > p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }.auth-card form { display: grid; margin-top: 28px; gap: 18px; }.auth-card label a:not(.button) { float: right; color: var(--accent); font-size: 12px; text-decoration: none; }.auth-card label small { float: none; display: block; margin-top: 6px; }.form-alert { margin-top: 20px; padding: 11px 12px; border-radius: 6px; font-size: 13px; }.form-alert.error { border: 1px solid #efc7c3; background: #fff6f5; color: var(--danger); }.auth-alternate, .terms-copy { text-align: center; }.auth-card .auth-alternate { margin-top: 22px; }.auth-card a:not(.button) { color: var(--accent); font-weight: 600; }.terms-copy { padding-top: 18px; border-top: 1px solid var(--border); font-size: 11px !important; }.message-card { text-align: center; }.message-card > svg { width: 42px; height: 42px; margin-bottom: 22px; color: var(--success); }.message-card .button { margin-top: 24px; }
.form-alert.success { border: 1px solid #b8dfcb; background: var(--success-soft); color: var(--success); }
.settings-layout { display: grid; max-width: 1080px; margin: auto; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }.settings-account { margin: 0; }.account-facts { margin: 0; }.account-facts > div { display: grid; min-height: 64px; padding: 14px 20px; grid-template-columns: 160px 1fr; align-items: center; border-bottom: 1px solid var(--border); }.account-facts dt { color: var(--muted); font-size: 12px; }.account-facts dd { margin: 0; color: var(--text); font-size: 13px; font-weight: 600; }.settings-signout { padding: 20px; }.settings-signout input { display: none; }.settings-password .form-alert { margin: 18px 0 0; }
.error-page { max-width: 620px; margin: 70px auto; text-align: center; }.error-page > span { color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .08em; }.error-page h1 { margin: 14px 0 0; font-size: 42px; letter-spacing: -.05em; }.error-page p { margin: 14px auto 26px; color: var(--muted); line-height: 1.65; }
.key-reveal { max-width: 660px; margin: 20px auto; padding: 36px; border: 1px solid var(--border); border-radius: var(--radius); }.success-icon { width: 40px; height: 40px; color: var(--success); }.key-reveal h1 { margin: 22px 0 0; font-size: 30px; letter-spacing: -.04em; }.key-reveal > p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }.secret-field { display: flex; margin: 26px 0 14px; padding: 10px 10px 10px 14px; align-items: center; gap: 15px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--subtle); }.secret-field code { flex: 1; min-width: 0; overflow: hidden; color: var(--text-soft); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }.key-reveal > .secret-field code { white-space: normal; overflow-wrap: anywhere; }
.secret-field .copy-button { flex-shrink: 0; min-height: 32px; margin-left: 0; border: 1px solid var(--border-strong); background: var(--canvas); }.key-reveal > .button { margin-top: 22px; }
.legal { width: min(760px, 100%); margin: auto; padding: 0 0 40px; }.legal .eyebrow { margin: 0 0 18px; color: var(--warning); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }.legal h1 { margin: 0 0 25px; font-size: 44px; letter-spacing: -.05em; }.legal h2 { margin: 38px 0 10px; font-size: 20px; }.legal p, .legal li { color: var(--text-soft); font-size: 14px; line-height: 1.75; }.legal a:not(.button) { color: var(--accent); }
.admin-metrics { grid-template-columns: repeat(3, 1fr); }


/* Customer setup and developer paths */
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 18px; border-radius: 6px; background: var(--accent); color: white; }.skip-link:focus { top: 12px; }
.nav-group-label { margin: 24px 12px 6px; padding-top: 0; color: var(--muted); font-size: 11px; font-weight: 600; }
.token-keyword { color: #8a319c; }.token-string { color: #206641; }.token-property { color: #125f91; }.token-number, .token-variable { color: #955016; }.token-comment { color: #667085; }
.code-block .token-keyword { color: #dca5f0; }.code-block .token-string { color: #a1d8b1; }.code-block .token-property { color: #91cbf7; }.code-block .token-number, .code-block .token-variable { color: #f4c58c; }.code-block .token-comment { color: #a5acb8; }
.spend-empty { display: flex; min-height: 250px; padding: 32px 24px; flex-direction: column; justify-content: center; align-items: center; text-align: center; }.spend-empty > svg { width: 28px; height: 28px; margin-bottom: 16px; color: var(--muted); }.spend-empty strong { font-size: 14px; }.spend-empty p { max-width: 330px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-help { grid-column: 1 / -1; margin: -4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.connect-page { max-width: 1100px; margin: auto; }.page-heading p { max-width: 76ch; line-height: 1.6; }.page-heading > .button { flex-shrink: 0; }
.connection-guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.connection-steps { margin: 0; padding: 0; list-style: none; }.connection-steps li { display: flex; padding: 28px 0; gap: 18px; border-bottom: 1px solid var(--border); }.connection-steps li:first-child { padding-top: 0; }.connection-steps li:last-child { border-bottom: 0; }.step-number { display: grid; width: 32px; height: 32px; flex-shrink: 0; place-items: center; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-size: 13px; font-weight: 600; }
.connection-steps h2 { margin: 3px 0 12px; font-size: 20px; letter-spacing: -.02em; }.connection-steps p, .connection-help-card p { margin: 10px 0 0; color: var(--text-soft); font-size: 14px; line-height: 1.7; }.connection-steps .button { margin-top: 20px; }.connection-steps a:not(.button), .connection-help-card a { color: var(--accent); }.connection-steps .guide-note { color: var(--muted); font-size: 12px; }
.connection-help-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--sidebar); }.connection-help-card h2 { margin: 0; font-size: 18px; }.connection-help-card h3 { margin: 24px 0 0; font-size: 14px; }.connection-help-card p { color: var(--muted); font-size: 13px; }
.connection-options { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--radius); }.connection-options > summary { padding: 18px 20px; color: var(--text-soft); font-size: 13px; font-weight: 600; cursor: pointer; }.connection-options .connection-settings { margin: 0; padding: 0 20px 4px; border: 0; }.field-label { color: var(--text-soft); font-size: 12px; font-weight: 600; }.connection-settings .field-label { margin-bottom: 0; }
.key-connect-next { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); }.key-connect-next h2 { margin: 0; font-size: 18px; }.key-connect-next p { margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.docs-content header .section-label { margin: 0 0 12px; color: var(--accent); font-size: 13px; font-weight: 600; }.docs-content > header > p { line-height: 1.65; }.audience-note { margin-top: 22px; padding: 14px 16px; border-radius: 6px; background: var(--subtle); color: var(--text-soft); font-size: 13px; line-height: 1.6; }.audience-note a { color: var(--accent); }

/* Platform workspace */
.app-frame { margin-left: var(--sidebar-width); }
.workspace-header { position: sticky; top: 0; z-index: 20; display: flex; height: 57px; padding: 0 28px; align-items: center; gap: 16px; border-bottom: 1px solid var(--border); background: var(--canvas); }
.workspace-title { color: var(--text); font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.workspace-help { display: inline-flex; margin-left: auto; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; text-decoration: none; }.workspace-help:hover { color: var(--text); }.workspace-help svg { width: 16px; height: 16px; }
/* Public landing page */
.landing-hero { display: grid; padding: 100px 0 88px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.customer-hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); text-align: left; }.customer-hero .landing-copy h1 { max-width: 660px; font-size: clamp(44px, 4.6vw, 64px); }.customer-hero .landing-copy > p { max-width: 500px; }.customer-hero .landing-actions { justify-content: flex-start; }.customer-hero .landing-copy > .landing-compatibility { max-width: 500px; }.landing-compatibility a { text-underline-offset: 3px; }
.landing-copy h1 { max-width: 540px; margin: 0; text-wrap: balance; font-size: clamp(44px, 4.4vw, 62px); font-weight: 550; line-height: 1.06; letter-spacing: -.055em; }.landing-copy > p { max-width: 500px; margin: 24px 0 0; color: var(--text-soft); font-size: 17px; line-height: 1.7; }
.landing-actions { display: flex; margin-top: 30px; gap: 24px; align-items: center; flex-wrap: wrap; }.landing-actions .button { min-height: 44px; padding-inline: 20px; }.landing-text-link { display: inline-flex; min-height: 40px; gap: 8px; align-items: center; font-size: 14px; font-weight: 500; text-decoration: none; }.landing-text-link:hover { text-decoration: underline; }.landing-text-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.landing-copy > .landing-compatibility { max-width: 430px; margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.landing-code { min-width: 0; }.landing-code .code-demo { box-shadow: 0 16px 48px rgba(20,20,20,.06); }.landing-code .code-demo pre { height: 300px; padding: 24px; }
.code-eyebrow { display: flex; margin-bottom: 12px; justify-content: space-between; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; }.code-eyebrow > a { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; text-decoration: none; }.code-eyebrow > a:hover { text-decoration: underline; }.code-eyebrow svg { width: 13px; height: 13px; }
.landing-providers { display: flex; padding: 28px 0; align-items: center; justify-content: space-between; gap: 32px; border-block: 1px solid var(--border); }.landing-providers p { margin: 0; color: var(--muted); font-size: 14px; }.landing-providers > div { display: flex; gap: 48px; }.landing-providers span { font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.landing-steps { padding: 88px 0; }.landing-steps h2, .landing-benefits h2 { margin: 0; font-size: 34px; font-weight: 500; line-height: 1.2; letter-spacing: -.04em; }.landing-steps header p, .landing-benefits header p { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.landing-steps ol { display: grid; margin: 36px 0 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; list-style: none; }.landing-steps li { padding-top: 22px; border-top: 1px solid var(--border); }.landing-step-number { color: var(--muted); font-size: 13px; }.landing-steps h3 { margin: 20px 0 12px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }.landing-steps li p { min-height: 72px; margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.landing-benefits { display: grid; padding: 72px 0 88px; grid-template-columns: 1fr 1.2fr; gap: 80px; border-top: 1px solid var(--border); }.landing-benefit-list article { display: flex; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--border); }.landing-benefit-list article:first-child { padding-top: 0; }.landing-benefit-list article:last-child { padding-bottom: 0; border-bottom: 0; }.landing-benefit-list article > svg { flex: 0 0 24px; width: 24px; height: 24px; }.landing-benefit-list h3 { margin: 0 0 10px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }.landing-benefit-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }.landing-benefit-list .landing-text-link { margin-top: 10px; }
.landing-developers { display: flex; padding: 36px; align-items: center; justify-content: space-between; gap: 36px; border-radius: 10px; background: var(--subtle); }.landing-developers h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.025em; }.landing-developers p { max-width: 600px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7; }.landing-developers .button { flex-shrink: 0; }

@media (max-width: 1080px) {
  .public-navigation { gap: 18px; }.public-login-link { padding-left: 18px; }
  .landing-hero { gap: 36px; padding-block: 72px; }.landing-code .code-demo pre { padding: 20px; font-size: 12px; }.landing-steps ol { gap: 28px; }.landing-benefits { gap: 48px; }


  :root { --sidebar-width: 220px; }
  .connection-guide-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 260px; }
  .overview-grid, .key-layout, .billing-layout, .settings-layout { grid-template-columns: 1fr; }.create-key-aside, .billing-help { max-width: 600px; }
  .docs-shell { grid-template-columns: 155px minmax(0, 1fr); gap: 38px; }
  .credit-option { grid-template-columns: auto minmax(150px, 1fr) 80px minmax(170px, 1fr); }
}

@media (max-width: 760px) {
  .public-header-inner { width: calc(100% - 36px); min-height: 68px; }.public-header .brand { font-size: 17px; }.public-navigation { position: absolute; top: 67px; left: 0; right: 0; display: none; max-height: calc(100dvh - 68px); overflow-y: auto; padding: 16px 18px 20px; flex-direction: column; align-items: stretch; gap: 4px; border-bottom: 1px solid var(--border); background: var(--canvas); box-shadow: 0 12px 18px rgba(0,0,0,.04); }.menu-open .public-navigation { display: flex; }.public-navigation > a:not(.button) { padding: 14px 10px; }.public-navigation .button { min-height: 44px; margin-top: 8px; }.public-login-link { border: 0; }.is-public.menu-open::after { top: 68px; }
  .public-main { width: calc(100% - 36px); padding: 36px 0 56px; min-height: calc(100vh - 69px); }
  .landing-hero { grid-template-columns: 1fr; gap: 42px; padding: 56px 0 48px; }.customer-hero .landing-copy h1 { font-size: clamp(40px, 8vw, 52px); }.landing-copy h1 { max-width: 520px; font-size: clamp(40px, 8vw, 52px); }.landing-copy > p { margin-top: 20px; font-size: 16px; }.landing-actions { gap: 20px; }.landing-code .code-demo pre { height: 270px; padding: 18px; font-size: 12px; }.code-demo-tabs { gap: 18px; }.code-demo-toolbar { gap: 8px; padding-inline: 12px; }
  .landing-providers { align-items: flex-start; flex-direction: column; gap: 20px; }.landing-providers > div { justify-content: space-between; width: 100%; gap: 20px; }.landing-providers span { font-size: 18px; }
  .landing-steps { padding: 56px 0; }.landing-steps h2, .landing-benefits h2 { font-size: 28px; }.landing-steps ol { grid-template-columns: 1fr; gap: 26px; }.landing-steps li p { min-height: 0; }.landing-steps h3 { margin-top: 16px; }
  .landing-benefits { grid-template-columns: 1fr; gap: 36px; padding: 48px 0 56px; }.landing-developers { align-items: flex-start; flex-direction: column; gap: 24px; padding: 28px 22px; }.landing-developers .button { width: 100%; min-height: 44px; padding-block: 10px; }.workspace-help { font-size: 11px; }


  .connection-guide-layout { grid-template-columns: 1fr; gap: 24px; }.key-reveal { padding: 24px; }.key-next-actions .button { width: 100%; line-height: 1.4; padding-block: 12px; }

  .app-sidebar { top: 58px; visibility: hidden; width: min(310px, 86vw); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 18px 0 45px rgba(20,28,48,.12); }.menu-open { overflow: hidden; }.menu-open::after { position: fixed; z-index: 25; inset: 58px 0 0; background: rgba(17,19,24,.18); content: ""; pointer-events: none; }.menu-open .app-sidebar { visibility: visible; transform: translateX(0); }
  .workspace-header { height: 58px; padding: 0 14px; gap: 12px; }.workspace-title { font-size: 17px; }.workspace-help { margin-left: auto; }.workspace-help svg { display: none; }.mobile-menu-button { display: grid; width: 44px; height: 44px; padding: 0; place-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--canvas); }.mobile-menu-button svg { width: 19px; }
  .app-frame { margin-left: 0; }.app-main { padding: 24px 18px 48px; }.page-heading { margin-bottom: 30px; align-items: flex-start; flex-direction: column; }.page-heading .button { width: 100%; }.page-heading h1 { font-size: 24px; }
  .metrics-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }.metrics-row article { padding: 16px; }.metrics-row strong { font-size: 24px; }
  .setup-guide { align-items: flex-start; flex-direction: column; }.setup-guide ol { width: 100%; flex-direction: column; gap: 10px; }
  .compact-form { grid-template-columns: 1fr; }.compact-form button { grid-column: auto; width: 100%; }
  .docs-shell { display: block; }.docs-nav { position: static; display: flex; margin-bottom: 30px; overflow-x: auto; gap: 20px; border-bottom: 1px solid var(--border); }.docs-nav div { min-width: 145px; margin-bottom: 12px; }.docs-content h1 { font-size: 26px; }.docs-content section { scroll-margin-top: 75px; }
  .purchase-action { align-items: stretch; flex-direction: column; }.purchase-action .button { width: 100%; }
  .model-toolbar { align-items: stretch; flex-direction: column; }.search-input { width: 100%; }.filter-group { overflow-x: auto; }.filter-group button { min-height: 44px; padding-inline: 12px; flex: 1; }
  .model-pricing-note { align-items: start; flex-direction: column; gap: 8px; }
  .model-table { display: block; min-width: 0; }.model-table thead { display: none; }.model-table tbody { display: block; }
  .model-table tr { display: grid; padding: 22px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 12px; border-bottom: 1px solid var(--border); }.model-table tr:last-child { border-bottom: 0; }
  .model-table td { display: block; padding: 0; border: 0; }.model-table td.model-identity { grid-column: 1 / -1; }.model-table td:nth-child(2) { grid-column: 1 / -1; margin-top: -8px; }
  .model-table .price-cell { text-align: left; }.model-table td[data-label]::before { display: block; min-height: 30px; margin-bottom: 5px; color: var(--muted); font-size: 10px; content: attr(data-label); white-space: normal; }
  .model-table .model-detail-cell { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--border); }.model-detail-toggle { min-height: 40px; }.model-table .model-expanded-row { display: block; padding: 0; }.model-table .model-expanded-row > td { padding: 22px 18px; }.model-detail-grid { grid-template-columns: 1fr; gap: 24px; }

  .public-footer { width: calc(100% - 36px); grid-template-columns: 1fr 1fr; gap: 28px; }.public-footer > div { grid-column: 1 / -1; }
  .auth-shell { min-height: 0; padding: 0; }.auth-card { padding: 25px; }
  .configuration-empty { align-items: flex-start; flex-wrap: wrap; }.configuration-empty > a:not(.button) { margin-left: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Administration */
.admin-flash { max-width: 1400px; margin: 0 auto 24px; }
.inline-action { display: flex; align-items: center; gap: 8px; }
.inline-action input { min-width: 0; padding: 6px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: 12px; }
.inline-action input[name="dollars"] { width: 72px; }
.inline-action input[name="reference"], .inline-action input[name="note"] { width: 150px; }
.data-section > header .status { flex: 0 0 auto; }

/* Operator setup and checkout states */
.setup-checks article { display: flex; padding: 24px; align-items: start; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--border); }
.setup-checks article:last-child { border-bottom: 0; }
.setup-checks h2 { margin: 0 0 8px; font-size: 16px; }
.setup-checks p { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

.social-login { display: grid; gap: 10px; margin-top: 24px; }
.auth-card .social-login form { margin: 0; }
@font-face { font-family: 'Google Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/static/google-sans-medium.ttf') format('truetype'); }
.social-button { min-height: 44px; padding: 0 12px; justify-content: flex-start; gap: 10px; border-color: #747775; color: var(--text); }
.social-button picture { display: flex; flex: 0 0 20px; }
.social-button img { flex: 0 0 20px; object-fit: contain; }
.social-label { flex: 1; padding-right: 30px; text-align: center; }
.social-google { background: #fff; border-color: #747775; color: #1f1f1f; font-family: 'Google Sans', sans-serif; font-weight: 500; line-height: 20px; }
.social-google img { width: 18px; height: 18px; flex-basis: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.connections-panel { max-width: none; margin: 24px 0; }
.connected-account { padding: 20px 0; border-bottom: 1px solid var(--border); }
.connected-account h3 { margin: 0 0 14px; font-size: 16px; }
.connected-account h3 span { margin-left: 8px; font-size: 12px; font-weight: 400; }
.connection-auth-form, .connection-remove-form, .connect-account { display: grid; justify-items: start; gap: 12px; margin: 0; }
.connection-remove-form { margin-top: 20px; }
.connection-remove-form label, .connect-account label { width: min(100%, 380px); }
.connect-account { padding: 24px 0; border-bottom: 1px solid var(--border); }
.connect-account:last-child { padding-bottom: 0; border-bottom: 0; }
.connect-account h3 { margin: 0; font-size: 16px; }
.connections-panel .connection-action-label { margin: 0; color: var(--muted); font-size: 13px; }
.connections-panel .social-button { width: min(100%, 320px); }
.connections-panel .social-label { padding-right: 0; }
.connection-help { margin-top: 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
@media (max-width: 640px) {
  .setup-checks article { flex-direction: column-reverse; gap: 12px; }
  .connection-settings .secret-field { align-items: stretch; flex-direction: column; }
  .connection-settings .secret-field code { white-space: normal; overflow-wrap: anywhere; }
  .setup-guide ol { gap: 14px; }
}

/* Shared interaction states: labels remain readable in every button context. */
.message-card.message-warning > svg { color: var(--warning); }
.button:focus-visible, .text-button:focus-visible, .copy-button:focus-visible,
.icon-button:focus-visible, .mobile-menu-button:focus-visible,
.filter-group button:focus-visible, .code-demo-tabs > button:focus-visible,
.model-detail-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.code-block .copy-button:focus-visible { outline-color: #d9dee7; }
.social-button:hover:not(:disabled) { border-color: #5e625f; background: var(--subtle); }
.button:disabled { border-color: var(--border-strong); background: var(--subtle); color: var(--muted); cursor: not-allowed; transform: none; }

/* Visible progress without blocking the current page or shifting its layout. */
.page-progress { position: fixed; z-index: 1000; inset: 0 0 auto; height: 3px; overflow: hidden; background: var(--accent-soft); pointer-events: none; }
.page-progress::after { content: ""; display: block; width: 35%; height: 100%; background: var(--accent); animation: page-progress 1.4s ease-in-out infinite; }
.page-status { display: flex; align-items: center; gap: 12px; position: fixed; z-index: 1000; right: 20px; bottom: 20px; max-width: min(360px, calc(100vw - 40px)); padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--canvas); color: var(--text-soft); font-size: 13px; pointer-events: none; }
.page-status button { flex: 0 0 auto; min-height: 32px; padding: 4px 8px; border: 1px solid var(--border-strong); border-radius: 5px; background: var(--canvas); color: var(--text); font-size: 12px; cursor: pointer; pointer-events: auto; }
.is-pending { opacity: .65; cursor: progress; }
@keyframes page-progress { from { transform: translateX(-100%); } to { transform: translateX(386%); } }
@media (prefers-reduced-motion: reduce) { .page-progress::after { width: 100%; animation: none; } }

.admin-customer-search { padding: 20px 24px; border-bottom: 1px solid var(--border); }
.admin-customer-search label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.admin-customer-search > div { display: flex; align-items: center; gap: 10px; }
.admin-customer-search input { width: min(360px, 100%); min-width: 0; }
.admin-customer-search small { display: block; margin-top: 10px; color: var(--muted); }
.admin-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.admin-pagination > div { display: flex; gap: 8px; }
@media (max-width: 600px) {
  .admin-customer-search { padding: 16px; }
  .admin-customer-search > div { flex-wrap: wrap; }
  .admin-customer-search input { flex: 1; }
  .admin-pagination { padding: 16px; }
}

/* Provider-cost billing administration */
.billing-reconciliation { padding: 20px 24px; border-top: 1px solid var(--border, #ddd); }
.billing-reconciliation summary { cursor: pointer; overflow-wrap: anywhere; }
.billing-reconciliation form { display: grid; gap: 16px; margin-top: 16px; }
.billing-reconciliation label { display: grid; gap: 6px; }
.billing-count-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.billing-reconciliation input { width: 100%; min-width: 0; }
.billing-reconciliation button { justify-self: start; }

/* Workspace system: quiet surfaces, clear actions, one set of shared controls. */
:root { --primary-bg: #171717; --primary-fg: #fff; --primary-hover: #303030; --warning-bg: #fffaf0; --warning-border: #ead9aa; --error-bg: #fff6f5; }
.button-primary { background: var(--primary-bg); border-color: var(--primary-bg); color: var(--primary-fg); }
.button-primary:hover:not(:disabled) { background: var(--primary-hover); border-color: var(--primary-hover); }
.button svg { width: 17px; height: 17px; flex: 0 0 auto; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
input, button, select, textarea { font-family: inherit; }
input { scroll-margin-top: 90px; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.app-sidebar { padding: 16px 10px 10px; border-right: 0; }
.app-brand { font-weight: 600; font-size: 16px; gap: 8px; }
.app-brand .brand-logo { width: 24px; height: 24px; }
.app-nav { gap: 4px; }
.app-nav a { min-height: 40px; border-radius: 7px; font-weight: 450; }
.app-nav a.active { font-weight: 550; }
.nav-divider { height: 1px; margin: 18px 12px; background: var(--border); }
.nav-group-label { margin: 22px 12px 8px; color: var(--muted); font-size: 12px; }
.account-identity { min-width: 0; }.account-row small { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
.workspace-title { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; letter-spacing: 0; font-weight: 400; }
.workspace-title > span:last-child { color: var(--text); }.breadcrumb-divider { color: var(--border-strong); }
.workspace-header { height: 64px; padding-inline: clamp(24px, 3vw, 48px); }
.page-heading { align-items: center; margin-bottom: 30px; }.page-heading h1 { font-size: 28px; font-weight: 550; letter-spacing: -.035em; }
.page-heading p { margin-top: 8px; font-size: 14px; }.page-heading .button { min-height: 38px; }
.metrics-row { gap: 0; margin-bottom: 36px; border-block: 1px solid var(--border); }.metrics-row article { margin-block: 22px; padding: 0 24px; border: 0; border-right: 1px solid var(--border); border-radius: 0; }.metrics-row article:first-child { padding-left: 0; }.metrics-row article:last-child { border-right: 0; }.metrics-row strong { font-size: 30px; margin-top: 8px; }.metrics-row small { font-size: 12px; }
.data-section { border-inline: 0; border-radius: 0; }.data-section > header { padding-left: 0; padding-right: 0; border-bottom: 0; }
.data-section th:first-child, .data-section td:first-child { padding-left: 0; }.data-section th { background: transparent; border-block: 1px solid var(--border); }
.key-intro { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin: -8px auto 30px; max-width: 1400px; color: var(--muted); font-size: 13px; }.key-intro p { max-width: 660px; margin: 0; line-height: 1.7; }.key-intro a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; text-decoration: none; color: var(--text-soft); }.key-intro svg { width: 14px; height: 14px; }
.key-create-panel { max-width: 1400px; margin: 0 auto 32px; border: 1px solid var(--border); border-radius: 10px; scroll-margin-top: 84px; }.key-create-panel > summary { display: flex; min-height: 60px; padding: 16px 24px; align-items: center; gap: 12px; font-size: 14px; font-weight: 550; cursor: pointer; list-style: none; }.key-create-panel > summary::-webkit-details-marker { display: none; }.key-create-panel > summary::after { content: '+'; margin-left: auto; font-size: 20px; font-weight: 400; color: var(--muted); }.key-create-panel[open] > summary::after { content: '−'; }.key-create-panel > summary svg { width: 20px; height: 20px; }.key-create-panel > summary span { color: var(--muted); font-size: 12px; font-weight: 400; }.key-create-panel[open] > summary { border-bottom: 1px solid var(--border); }
.key-create-body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 28px; max-width: 960px; }.key-create-body h2 { margin: 0 0 10px; font-size: 19px; font-weight: 550; }.key-create-body p { max-width: 36ch; color: var(--muted); font-size: 13px; line-height: 1.65; }.key-create-body .form-alert { margin: 0 0 18px; }
.key-create-form { display: grid; gap: 14px; }.key-create-form > .button { justify-self: start; margin-top: 2px; }.key-create-form .form-help { max-width: none; margin: -5px 0 0; font-size: 12px; }.key-options { margin: 4px 0; font-size: 13px; }.key-options summary { cursor: pointer; color: var(--text-soft); }.key-options summary span { margin-left: 6px; color: var(--muted); font-size: 12px; }.key-options > div { padding-block: 16px 4px; }.key-options .form-help { margin-top: 10px; }
.keys-list { max-width: 1400px; margin: auto; }.keys-toolbar { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }.keys-toolbar .search-input { width: 280px; }.keys-toolbar input { height: 36px; border-radius: 20px; font-size: 13px; }.keys-toolbar > span { font-size: 12px; color: var(--muted); }.keys-list th { background: var(--subtle); }.keys-list th, .keys-list td { padding-inline: 16px; }.keys-list td { height: 72px; }.keys-list td:last-child { display: flex; align-items: center; justify-content: end; gap: 20px; }.keys-list .key-edit-link { margin: 0; }.keys-list .text-button { min-height: 32px; display: inline-flex; align-items: center; }.keys-list td code { background: transparent; font-size: 12px; padding: 0; }.keys-list .cell-note { font-size: 11px; }
.guided-workspace { max-width: 1100px; margin: 12px auto 0; }.guided-workspace > .page-heading { margin-bottom: 44px; }.guided-workspace h1 { font-size: 32px; }.guided-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: clamp(36px, 5vw, 88px); align-items: start; }
.guided-step { display: flex; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--border); }.guided-step:first-child { padding-top: 0; }.guided-step:last-child { border-bottom: 0; }.guided-step > .step-number { width: 30px; height: 30px; border-color: var(--border-strong); color: var(--text-soft); background: var(--canvas); }.step-current > .step-number { background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); }.step-complete > .step-number { background: var(--success-soft); border-color: transparent; color: var(--success); }.step-number svg { width: 17px; height: 17px; }.guided-step-content { flex: 1; min-width: 0; }.guided-step h2 { margin: 0; font-size: 18px; font-weight: 550; letter-spacing: -.02em; }.guided-step-content > p { margin: 10px 0 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }.guided-step .key-create-form { margin-top: 24px; max-width: 430px; }.step-heading { display: flex; gap: 14px; align-items: center; }.guided-step .connection-options { margin-top: 20px; }.guided-step .connection-options summary { font-weight: 450; padding: 14px 16px; }.guided-step .inline-link { margin-top: 0; font-size: 13px; }
.setup-summary .balance-summary { display: block; padding: 24px; min-height: 0; background: var(--subtle); border-radius: 10px; }.setup-summary .balance-summary strong { margin: 10px 0; font-size: 36px; font-weight: 500; }.setup-summary .balance-summary p { line-height: 1.65; }.setup-summary a { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-soft); text-decoration: none; }.setup-summary .balance-summary a { margin-top: 24px; }.setup-summary a:hover { text-decoration: underline; }.setup-summary a svg { width: 14px; height: 14px; }.setup-help { margin-top: 30px; padding-inline: 4px; }.setup-help h3 { margin: 0; font-size: 13px; font-weight: 550; }.setup-help p { margin: 10px 0; color: var(--muted); font-size: 13px; line-height: 1.7; }.guide-note { font-size: 12px !important; color: var(--muted); line-height: 1.7; }
.key-reveal { max-width: 680px; padding: 36px; border-radius: 12px; }.key-reveal > .secret-field { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }.key-reveal > .secret-field code { font-size: 14px; line-height: 1.8; }.key-reveal > .secret-field .copy-button { align-self: start; min-width: 112px; min-height: 40px; background: var(--primary-bg); color: var(--primary-fg); border-color: var(--primary-bg); font-size: 13px; }.key-reveal > .secret-field .copy-button:hover { background: var(--primary-hover); }.inline-notice.warning { background: var(--warning-bg); border-color: var(--warning-border); }
.auth-mode { display: block; margin-bottom: 16px; color: var(--muted); font-size: 13px; }.auth-card h1 { font-size: 30px; font-weight: 550; }.auth-card form { gap: 20px; }.auth-card .button { min-height: 44px; }.auth-card input { height: 46px; border-radius: 8px; }.auth-card .terms-copy { font-size: 12px !important; line-height: 1.7; }
.landing-copy h1 { line-height: 1.12; }.landing-providers { padding-block: 24px; }.landing-providers span { font-size: 18px; }.landing-steps { padding-block: 72px; }.landing-benefits { padding-block: 64px; }.landing-code .code-demo { box-shadow: none; }.public-header-inner { min-height: 72px; }.public-footer { gap: 32px; }
.settings-layout, .sessions-panel, .connections-panel { max-width: 1100px; }.sessions-panel, .connections-panel { margin-inline: auto; }.settings-account .account-facts dd { overflow-wrap: anywhere; }.configuration-empty { margin-top: 24px; }.billing-help { background: var(--subtle); border: 0; }.balance-summary strong { font-weight: 500; }.docs-content h2 { font-weight: 550; }.docs-content > header p { font-size: 14px; }.code-demo, .code-block { border-radius: 10px; }
.form-alert.error { background: var(--error-bg); }
@media (max-width: 1100px) {
  .guided-layout { grid-template-columns: minmax(0, 1fr) 230px; gap: 30px; }.guided-step { gap: 16px; }.customer-hero { gap: 40px; }.landing-copy h1 { font-size: 48px; }
}
@media (max-width: 900px) {
  .guided-layout { grid-template-columns: 1fr; }.setup-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }.setup-summary .setup-help { margin-top: 0; }.setup-summary .setup-help:last-child { grid-column: 1 / -1; }.key-create-body { gap: 24px; }.key-intro { flex-direction: column; gap: 12px; }.customer-hero { grid-template-columns: 1fr; gap: 40px; }.customer-hero .landing-copy h1 { max-width: 680px; }
}
@media (max-width: 760px) {
  .workspace-header { height: 58px; padding-inline: 12px; }.workspace-title { font-size: 12px; gap: 9px; }.workspace-help { font-size: 12px; }.app-nav a { min-height: 44px; }.account-identity small { max-width: 180px; }.app-main { padding-top: 28px; }.page-heading { align-items: stretch; }.page-heading .button { min-height: 44px; }.guided-workspace { margin-top: 0; }.guided-workspace h1 { font-size: 28px; }.guided-workspace > .page-heading { margin-bottom: 30px; }.guided-step { gap: 14px; }.guided-step > .step-number { width: 26px; height: 26px; font-size: 12px; }.guided-step h2 { font-size: 17px; }.guided-step .key-create-form .button { min-height: 44px; width: 100%; }.guided-step-content > p { font-size: 13px; }.setup-summary { grid-template-columns: 1fr; }.key-create-body { grid-template-columns: 1fr; padding: 20px; gap: 12px; }.key-create-panel > summary { padding: 16px; }.key-create-panel > summary span { display: none; }.key-create-form > .button { width: 100%; min-height: 44px; }.keys-toolbar input { height: 44px; }.keys-toolbar .search-input { width: min(280px, 78%); }.key-intro a { min-height: 30px; }.key-reveal { padding: 24px 20px; margin-top: 0; }.key-reveal > .secret-field .copy-button { width: 100%; min-height: 44px; }.copy-button { min-height: 36px; }.metrics-row { gap: 0; }.metrics-row article { padding: 0 16px; }.metrics-row article:nth-child(3) { padding-left: 0; }.metrics-row article:nth-child(2) { border-right: 0; }.metrics-row strong { font-size: 26px; }.metrics-row small { font-size: 11px; }.auth-card { padding: 16px 4px; }.customer-hero { grid-template-columns: 1fr; }.landing-copy h1 { font-size: 44px; }.landing-steps { padding-block: 48px; }.account-facts > div { grid-template-columns: 110px minmax(0, 1fr); gap: 12px; }.secret-field code, .header-example code { overflow-wrap: anywhere; }.header-example { min-width: 0; }.header-example code { min-width: 0; }.billing-layout { margin-top: 24px; }
}
@media (max-width: 380px) { .workspace-title { font-size: 11px; gap: 6px; }.workspace-help { display: none; } }
@media all { /* dark is the only theme */
  :root { --text: #ededed; --text-soft: #d0d0d0; --muted: #a3a3a3; --muted-light: #9b9b9b; --border: #343434; --border-strong: #525252; --canvas: #191919; --sidebar: #222; --subtle: #232323; --accent: #a3b5ff; --accent-hover: #c6d1ff; --accent-soft: #262d44; --success: #80d6ac; --success-soft: #18362b; --danger: #ffaaa0; --warning: #e9c171; --primary-bg: #ededed; --primary-fg: #191919; --primary-hover: #d3d3d3; --warning-bg: #302819; --warning-border: #5a4828; --error-bg: #352421; }
  .code-demo .token-string { color: #abd69e; }.code-demo .token-keyword { color: #b7baf9; }.code-demo .token-property { color: #91cbf7; }.code-demo .token-number, .code-demo .token-variable { color: #f4c58c; }.code-demo .token-comment { color: #a5acb8; }
  .button-secondary:hover:not(:disabled), .icon-button:hover { background: var(--border); }.filter-group button.active { background: var(--border); color: var(--text); border-color: var(--border-strong); }.amount-presets .button[aria-pressed="true"] { background: var(--accent-soft); }.method.get { color: #191919; }.method.post { color: #191919; }.social-google:hover:not(:disabled) { background: #f2f2f2; }.account-avatar { border-color: var(--border-strong); }
}

@media (max-width: 760px) {
  .keys-list table, .keys-list tbody { display: block; }.keys-list thead { display: none; }.keys-list tr { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 22px 0; border-block-start: 1px solid var(--border); }.keys-list td { display: block; height: auto; padding: 0; border: 0; white-space: normal; }.keys-list td:first-child { grid-column: 1 / -1; font-size: 15px; }.keys-list td[data-label="Secret key"] { grid-column: 1 / -1; }.keys-list td[data-label]::before { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; content: attr(data-label); }.keys-list td:last-child { justify-content: start; align-items: end; gap: 24px; }.keys-list .text-button { min-height: 44px; }.keys-list td code { overflow-wrap: anywhere; }
}

/* Public product page: useful information, one clear starting point. */
.product-home { max-width: 1000px; margin: auto; }
.product-intro { padding: 88px 20px 64px; text-align: center; }
.product-intro h1 { margin: 0; font-size: clamp(40px, 4.5vw, 62px); font-weight: 550; letter-spacing: -.05em; line-height: 1.12; text-wrap: balance; }
.product-intro > p { max-width: 530px; margin: 24px auto 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.product-intro > .button { min-height: 46px; margin-top: 30px; padding-inline: 24px; }
.product-intro .intro-signin { margin-top: 16px; font-size: 12px; }.intro-signin a { color: var(--text); }
.product-providers { display: flex; justify-content: center; flex-wrap: wrap; gap: 40px; margin-top: 54px; color: var(--text-soft); font-size: 17px; font-weight: 550; letter-spacing: -.03em; }
.product-how { padding: 56px 0; border-top: 1px solid var(--border); }
.product-home h2 { margin: 0; font-size: 28px; line-height: 1.3; font-weight: 500; letter-spacing: -.03em; }
.product-how > header p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.product-how ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin: 38px 0; padding: 0; list-style: none; }
.product-step-number { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--muted); font-size: 12px; }
.product-how h3 { margin: 18px 0 10px; font-size: 16px; font-weight: 550; letter-spacing: -.02em; }.product-how li p { max-width: 30ch; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.compatibility-note { display: flex; gap: 16px; align-items: center; padding: 22px 24px; background: var(--subtle); border-radius: 8px; }.compatibility-note > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--muted); }.compatibility-note strong { font-size: 13px; font-weight: 550; }.compatibility-note p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }.compatibility-note a { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 8px; margin-left: auto; color: var(--text-soft); font-size: 12px; text-decoration: none; }.compatibility-note a svg, .product-link svg, .product-developer-note svg { width: 15px; height: 15px; }
.product-details { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; padding: 56px 0 64px; border-top: 1px solid var(--border); }.product-details > div > p { max-width: 38ch; margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }.product-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--text); font-size: 13px; text-decoration: none; }.product-details dl { margin: 0; }.product-details dl > div { margin-top: 26px; }.product-details dl > div:first-child { margin-top: 0; }.product-details dt { font-size: 14px; font-weight: 550; }.product-details dd { margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.product-questions { display: grid; grid-template-columns: 1fr 1.35fr; gap: 64px; padding: 56px 0; border-top: 1px solid var(--border); }.product-questions h2 { font-size: 24px; }.product-questions details { border-bottom: 1px solid var(--border); }.product-questions details:first-child { margin-top: -18px; }.product-questions summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; cursor: pointer; font-size: 14px; list-style: none; }.product-questions summary::-webkit-details-marker { display: none; }.product-questions summary::after { content: '+'; color: var(--muted); font-size: 20px; }.product-questions details[open] summary::after { content: '−'; }.product-questions details p { margin: 0; padding: 0 24px 20px 0; color: var(--muted); font-size: 13px; line-height: 1.8; }.product-questions a { color: var(--text); }
.product-developer-note { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 20px 0 8px; font-size: 13px; }.product-developer-note p { margin: 0; color: var(--muted); }.product-developer-note a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }.product-home a:not(.button):hover { text-decoration: underline; }
@media (max-width: 760px) {
  .product-intro { padding: 56px 0 44px; }.product-intro h1 { font-size: clamp(38px, 8vw, 48px); }.product-intro > p { max-width: 40ch; font-size: 16px; }.product-providers { gap: 32px; margin-top: 40px; font-size: 16px; }.product-home h2 { font-size: 25px; }.product-how { padding-block: 36px; }.product-how ol { grid-template-columns: 1fr; gap: 26px; margin-block: 28px; }.product-how li { position: relative; padding-left: 44px; }.product-step-number { position: absolute; left: 0; top: 0; }.product-how h3 { margin-top: 2px; }.product-how li p { max-width: 48ch; }.compatibility-note { flex-wrap: wrap; gap: 12px; padding: 20px; }.compatibility-note > div { flex: 1; }.compatibility-note a { margin-left: 32px; min-height: 30px; }.product-details { grid-template-columns: 1fr; gap: 32px; padding-block: 36px; }.product-details > div > p { max-width: 48ch; }.product-questions { grid-template-columns: 1fr; gap: 32px; padding-block: 36px; }.product-questions details:first-child { margin-top: 0; }.product-developer-note { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 8px; }
}

/* ==========================================================================
   Midnight theme: deep black canvas, serif display type, framed sections.
   Loaded last on purpose so it overrides the earlier light-era rules.
   ========================================================================== */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 300 500; font-display: swap; src: url("fonts/newsreader-latin.woff2") format("woff2"); }

:root {
  --canvas: #000;
  --sidebar: #050506;
  --subtle: #0b0b0d;
  --surface: #0b0b0d;
  --surface-raised: #121215;
  --border: #1d1d21;
  --border-strong: #2e2e34;
  --hairline: rgba(255, 255, 255, .07);
  --text: #f0f0f0;
  --text-soft: #c4c6c8;
  --muted: #a1a4a5;
  --muted-light: #85888a;
  --accent: #9db1ff;
  --accent-hover: #c6d1ff;
  --accent-soft: #10172c;
  --success: #7fd6ab;
  --success-soft: #0f2a1f;
  --danger: #ff9f95;
  --warning: #e9c171;
  --warning-bg: #1d1709;
  --warning-border: #4a3a1c;
  --error-bg: #2a1512;
  --primary-bg: #f0f0f0;
  --primary-fg: #000;
  --primary-hover: #fff;
  --code: #070708;
  --radius: 12px;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --display-gradient: linear-gradient(to right bottom, #fff 30%, rgba(255, 255, 255, .5));
  color-scheme: dark;
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body { background: var(--canvas); color: var(--text); }
::selection { background: rgba(157, 177, 255, .3); }
a:focus-visible, summary:focus-visible, [tabindex="0"]:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Display type */
.display-title, .page-heading h1, .docs-content h1, .auth-card h1, .legal h1, .error-page h1, .key-reveal h1, .guided-workspace h1 {
  font-family: var(--font-display); font-weight: 400; letter-spacing: -.02em;
  background: var(--display-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-heading h2, .product-home h2, .landing-page h2 {
  font-family: var(--font-sans); font-weight: 500; letter-spacing: -.045em; text-wrap: balance;
  background: var(--display-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.button { min-height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 500; }
.button-primary { border-color: var(--primary-bg); background: var(--primary-bg); color: var(--primary-fg); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 8px 30px -12px rgba(255,255,255,.35); }
.button-primary:hover:not(:disabled) { border-color: var(--primary-hover); background: var(--primary-hover); }
.button-secondary { border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); color: var(--text); }
.button-secondary:hover:not(:disabled) { border-color: #45454d; background: rgba(255,255,255,.07); }
.button-ghost { border: 1px solid transparent; background: transparent; color: var(--text-soft); }
.button-ghost:hover:not(:disabled) { border-color: var(--hairline); background: rgba(255,255,255,.05); color: var(--text); }
.button-large { min-height: 48px; padding-inline: 22px; font-size: 15px; border-radius: 14px; }
.icon-button:hover { background: rgba(255,255,255,.08); }

/* Forms */
input:where(:not([type="checkbox"]):not([type="radio"]):not([type="hidden"])), select, textarea {
  border-color: var(--border-strong); background: var(--surface); color: var(--text); color-scheme: dark;
}
input:where(:not([type="checkbox"]):not([type="radio"])):focus, select:focus, textarea:focus { border-color: #5a6aa8; outline: 0; box-shadow: 0 0 0 3px rgba(157,177,255,.18); }
input::placeholder, textarea::placeholder { color: #6b6e70; }

/* Public header + footer */
.public-header { border-bottom: 1px solid transparent; background: rgba(0,0,0,.6); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.public-header-inner { min-height: 68px; width: min(1180px, calc(100% - 48px)); }
.public-navigation { gap: 30px; }
.public-navigation > a:not(.button) { color: var(--muted); font-size: 14px; transition: color .15s; }
.public-navigation > a:not(.button):hover, .public-navigation > a[aria-current="page"]:not(.button) { color: var(--text); text-decoration: none; }
.public-login-link { border-left-color: var(--border-strong); }
.public-navigation .button-primary { min-height: 36px; border-radius: 11px; box-shadow: none; }
.brand { color: var(--text); font-weight: 600; }
.brand-logo { border-radius: 6px; }
.public-main { width: min(1180px, calc(100% - 48px)); padding-top: 72px; }
.public-footer { width: min(1180px, calc(100% - 48px)); margin-top: 40px; padding: 56px 0 72px; border-top: 1px solid var(--border); }
.public-footer nav strong { color: var(--text); font-weight: 500; }
.public-footer nav a:not(.button) { font-size: 14px; }

/* Ambient light behind the landing pages */
.public-home { position: relative; isolation: isolate; }
.public-home::before { position: absolute; z-index: -1; top: -140px; left: 50%; width: 100vw; height: 1100px; transform: translateX(-50%); content: ""; pointer-events: none;
  background:
    radial-gradient(60% 45% at 78% 22%, rgba(120, 140, 255, .10), transparent 70%),
    radial-gradient(40% 35% at 10% 0%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(160deg, transparent 52%, rgba(255,255,255,.045) 58%, transparent 64%),
    linear-gradient(160deg, transparent 66%, rgba(255,255,255,.03) 70%, transparent 75%);
}

/* Hero */
.hero { display: grid; min-height: min(760px, calc(100vh - 68px)); padding: 72px 0 96px; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; text-align: left; }
.hero-copy { min-width: 0; }
.hero .display-title, .landing-copy h1.display-title, .product-intro h1.display-title { max-width: 11ch; margin: 28px 0 0; font-size: clamp(56px, 7.2vw, 100px); font-weight: 400; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero-copy > p:not(.intro-signin):not(.landing-compatibility) { max-width: 470px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; align-items: center; }
.hero .intro-signin, .hero .landing-compatibility { margin: 22px 0 0; color: var(--muted-light); font-size: 13px; }
.hero .intro-signin a, .hero .landing-compatibility a { color: var(--text-soft); }
.hero-pill { display: inline-flex; min-height: 32px; padding: 0 12px 0 14px; align-items: center; gap: 8px; border: 1px solid rgba(157,177,255,.28); border-radius: 999px; background: linear-gradient(90deg, rgba(157,177,255,.10), rgba(255,255,255,.03)); color: var(--text-soft); font-size: 13px; text-decoration: none; transition: border-color .15s, color .15s; }
.hero-pill:hover { border-color: rgba(157,177,255,.55); color: var(--text); text-decoration: none !important; }
.hero-pill svg { width: 14px; height: 14px; }
.hero-centered { grid-template-columns: 1fr; min-height: 0; padding: 96px 0 72px; justify-items: center; text-align: center; }
.hero-centered .hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-centered .display-title { max-width: 14ch !important; }
.hero-centered .hero-copy > p:not(.landing-compatibility) { margin-inline: auto; }
.hero-centered .hero-actions { justify-content: center; }


/* Section rhythm */
.section-heading { max-width: 680px; margin: 0 auto; text-align: center; }
.section-heading h2, .product-home .section-heading h2, .landing-page .section-heading h2 { margin: 0; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.1; }
.section-heading p { max-width: 560px; margin: 18px auto 0 !important; color: var(--muted); font-size: 18px; line-height: 1.6; }
.framed-section { position: relative; margin-top: 40px; padding: 96px clamp(24px, 5vw, 72px) 72px !important; border: 1px solid var(--border) !important; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 260px); }
.framed-section::before { position: absolute; top: -1px; left: 50%; width: min(420px, 60%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); content: ""; }
.framed-section::after { position: absolute; top: 0; left: 50%; width: min(360px, 50%); height: 90px; transform: translateX(-50%); background: radial-gradient(50% 100% at 50% 0%, rgba(255,255,255,.08), transparent); content: ""; pointer-events: none; }

/* Steps grid (home + developers) */
.product-how ol, .landing-steps ol { display: grid; margin: 56px 0 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; list-style: none; }
.product-how li, .landing-steps li { padding: 32px 30px 34px; border: 0; border-left: 1px solid var(--border); background: rgba(255,255,255,.012); }
.product-how li:first-child, .landing-steps li:first-child { border-left: 0; }
.product-step-number, .landing-step-number { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-raised); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); color: var(--text); font-size: 13px; font-weight: 500; }
.product-how h3, .landing-steps h3 { margin: 22px 0 10px; color: var(--text); font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.product-how li p, .landing-steps li p { max-width: 32ch; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.landing-steps li .landing-text-link { margin-top: 14px; color: var(--text-soft); }
.landing-steps { padding: 0; }
.compatibility-note { margin-top: 24px; padding: 22px 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.compatibility-note strong { color: var(--text); font-size: 14px; }
.compatibility-note p { font-size: 13px; }

/* Details: copy + feature cells */
.product-details { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; padding: 140px 0 40px; border-top: 0; align-items: center; }
.product-details .section-heading { max-width: none; margin: 0; text-align: left; }
.product-details .section-heading h2 { font-size: clamp(36px, 4vw, 52px); }
.product-details .section-heading p { margin: 20px 0 0 !important; font-size: 17px; }
.product-details dl { display: grid; margin: 0; gap: 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--surface); }
.product-details dl > div { padding: 26px 28px; border-top: 1px solid var(--border); }
.product-details dl > div:first-child { border-top: 0; }
.product-details dt { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 16px; font-weight: 500; }
.product-details dt svg { width: 18px; height: 18px; color: var(--accent); }
.product-details dd { margin: 8px 0 0 30px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.product-link { color: var(--text) !important; font-size: 14px !important; }

/* FAQ */
.product-questions { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; padding: 120px 0 40px; border-top: 0; }
.product-questions h2 { font-size: clamp(32px, 3.4vw, 44px) !important; line-height: 1.1; }
.product-questions details { border-bottom: 1px solid var(--border); }
.product-questions summary { min-height: 68px; color: var(--text); font-size: 17px; font-weight: 500; cursor: pointer; }
.product-questions details p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.product-questions a { color: var(--accent); }

/* Closing call to action */
.closing-cta { position: relative; margin: 120px 0 40px; padding: 110px 24px 120px; overflow: hidden; border: 1px solid var(--border); border-radius: 28px; text-align: center;
  background: radial-gradient(70% 90% at 50% 0%, rgba(120,140,255,.14), transparent 70%), linear-gradient(180deg, rgba(255,255,255,.03), transparent); }
.closing-cta::before { position: absolute; top: -1px; left: 50%; width: min(520px, 70%); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(157,177,255,.8), transparent); content: ""; }
.closing-cta h2.display-title { max-width: 16ch; margin: 0 auto; font-family: var(--font-display); font-size: clamp(44px, 6vw, 80px); font-weight: 400; line-height: 1; letter-spacing: -.03em; }
.closing-cta > p { max-width: 520px; margin: 22px auto 0; color: var(--muted); font-size: 18px; line-height: 1.6; }
.closing-cta .hero-actions { justify-content: center; }

/* Developer page */
.landing-providers { margin: 0; padding: 32px 0; border-block: 1px solid var(--border); }
.landing-providers p { color: var(--muted); font-size: 15px; }
.landing-providers span { color: var(--text-soft); font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.landing-showcase { padding: 140px 0 120px; }
.landing-showcase .landing-code { max-width: 900px; margin: 56px auto 0; }
.code-eyebrow { color: var(--muted); font-size: 13px; }
.code-eyebrow a { color: var(--text-soft); }

/* Code panels everywhere */
.code-demo, .code-block { border: 1px solid var(--border-strong); border-radius: 18px; background: linear-gradient(180deg, #0d0d10, #070708); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 120px -40px rgba(110,130,255,.25); }
.landing-code .code-demo { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 40px 120px -40px rgba(110,130,255,.3); }
.code-demo-toolbar { min-height: 52px; padding: 0 12px; border-bottom-color: var(--border); }
.code-demo-tabs { gap: 4px; }
.code-demo-tabs > button:not(.copy-button) { height: 32px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; }
.code-demo-tabs > button.active:not(.copy-button) { border-color: var(--border-strong); border-bottom-color: var(--border-strong); background: rgba(255,255,255,.06); color: var(--text); font-weight: 500; }
.code-demo pre, .landing-code .code-demo pre { color: #d6d7d9; font-size: 13.5px; line-height: 1.75; }
.landing-showcase .code-demo pre { height: 340px; padding: 28px; }
.code-demo .token-string { color: #f2b97c; }
.code-demo .token-keyword { color: #a9b8ff; }
.code-demo .token-property { color: #8fd0f2; }
.copy-button { border-radius: 9px; }
code { font-family: "SF Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace; }

/* Inner public pages (models, docs, connect, legal, auth) */
.public-main:not(.public-home) > :first-child h1:not(.display-title), .docs-content h1, .legal h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
.auth-shell { padding-top: 40px; }
.auth-card { width: min(420px, 100%); padding: 40px 36px !important; border: 1px solid var(--border) !important; border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.auth-card h1 { font-size: 40px !important; line-height: 1.1; }
.auth-card input { border-radius: 12px !important; }
.legal { padding-top: 8px; }
.legal h1 { margin-bottom: 32px; }
.docs-nav a { color: var(--muted); }
.docs-nav a:hover, .docs-nav a[aria-current] { color: var(--text); }

/* Tables */
table { border-color: var(--border); }
th { color: var(--muted); font-weight: 500; }
tbody tr:hover { background: rgba(255,255,255,.015); }

/* Signed-in workspace */
.app-sidebar { border-right: 1px solid var(--border); background: var(--sidebar); }
.app-nav a, .app-sidebar-footer > a { border-radius: 10px; color: var(--muted); font-weight: 450; transition: background .12s, color .12s; }
.app-nav a:hover, .app-sidebar-footer > a:hover { background: rgba(255,255,255,.05); color: var(--text); }
.app-nav a.active { background: rgba(255,255,255,.07); color: var(--text); box-shadow: inset 0 0 0 1px var(--hairline); }
.app-nav a.active svg { color: var(--accent); }
.workspace-header { border-bottom-color: var(--border); background: rgba(0,0,0,.7); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.app-main { background: radial-gradient(900px 400px at 70% -120px, rgba(120,140,255,.07), transparent 70%); }
.page-heading h1, .guided-workspace h1 { font-size: clamp(34px, 3.4vw, 44px) !important; line-height: 1.1; }
.account-avatar { border-color: var(--border-strong); background: var(--surface-raised); color: var(--text); }
.mobile-menu-button { border-color: var(--border-strong) !important; background: var(--surface) !important; color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding: 48px 0 64px; gap: 40px; }
  .product-details, .product-questions { grid-template-columns: 1fr; gap: 40px; padding-top: 96px; }
}
@media (max-width: 760px) {
  .public-main { padding-top: 40px; }
  .hero .display-title, .landing-copy h1.display-title, .product-intro h1.display-title { font-size: clamp(46px, 13vw, 64px); }
  .hero-copy > p:not(.intro-signin):not(.landing-compatibility) { font-size: 16px; }
  .hero-actions .button { flex: 1 1 auto; }
  .framed-section { padding: 64px 20px 28px !important; border-radius: 22px; }
  .product-how ol, .landing-steps ol { grid-template-columns: 1fr; margin-top: 40px; }
  .product-how li, .landing-steps li { border-left: 0; border-top: 1px solid var(--border); padding: 24px 22px; }
  .product-how li:first-child, .landing-steps li:first-child { border-top: 0; }
  .section-heading p { font-size: 16px; }
  .landing-showcase { padding: 88px 0 72px; }
  .landing-showcase .code-demo pre { height: 300px; padding: 18px; font-size: 12px; }
  .closing-cta { margin-top: 80px; padding: 72px 20px 80px; border-radius: 22px; }
  .closing-cta > p { font-size: 16px; }
  .auth-card { padding: 28px 22px !important; }
}
@media (prefers-reduced-motion: reduce) { .hero-pill, .app-nav a { transition: none; } }
.product-home { max-width: none; }
.hero .display-title, .landing-copy h1.display-title, .product-intro h1.display-title { max-width: 12.5ch; font-size: clamp(56px, 6.6vw, 92px); }
.product-home .section-heading > p, .landing-page .section-heading > p { margin-inline: auto; color: var(--muted); font-size: 18px; line-height: 1.6; }
.product-details dd { font-size: 15px; }
@media (max-width: 760px) { .product-home .section-heading > p, .landing-page .section-heading > p { font-size: 16px; } }
.hero-centered .hero-copy > p:not(.landing-compatibility):not(.intro-signin) { max-width: 580px; }
/* Neutral base for buttons without a variant (dark color-scheme UA buttons are mid-grey) */
:where(.button, .copy-button, .filter-group button) { border: 1px solid var(--border-strong); background: rgba(255,255,255,.03); color: var(--text); }
.amount-presets .button:not([aria-pressed="true"]):hover { border-color: #45454d; background: rgba(255,255,255,.07); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text); caret-color: var(--text); box-shadow: 0 0 0 1000px var(--surface-raised) inset; transition: background-color 9999s; }
.skip-link { color: #000; }

/* Breadcrumb divider was below 3:1 contrast */
.breadcrumb-divider { color: var(--muted-light); }

/* Full-screen sign-in / sign-up screens */
.auth-screen { position: relative; min-height: 100vh; overflow-x: hidden; isolation: isolate; }
.auth-screen::before, .auth-screen::after { position: fixed; z-index: -1; border-radius: 50%; content: ""; pointer-events: none; }
/* top-right: a large lit curve sweeping off the corner */
.auth-screen::before { top: -62vh; right: -38vw; width: 92vw; height: 120vh; transform: rotate(-24deg);
  background: radial-gradient(closest-side, transparent 72%, rgba(255,255,255,.05) 82%, rgba(214,222,255,.34) 92%, rgba(255,255,255,.08) 97%, transparent 100%);
  filter: blur(6px); }
/* bottom-left: a softer echo */
.auth-screen::after { bottom: -78vh; left: -46vw; width: 96vw; height: 120vh; transform: rotate(-24deg);
  background: radial-gradient(closest-side, transparent 74%, rgba(255,255,255,.04) 84%, rgba(200,210,255,.26) 93%, rgba(255,255,255,.05) 97%, transparent 100%);
  filter: blur(8px); }
.auth-screen .public-frame { position: relative; min-height: 100vh; background: radial-gradient(50% 45% at 50% 38%, rgba(110,130,255,.07), transparent 70%); }
.auth-topbar { position: absolute; z-index: 5; top: 0; left: 0; padding: 28px 32px; }
.auth-home-link { display: inline-flex; min-height: 36px; align-items: center; gap: 4px; padding: 0 10px 0 6px; border-radius: 10px; color: var(--text-soft); font-size: 14px; font-weight: 500; text-decoration: none; }
.auth-home-link:hover { background: rgba(255,255,255,.06); color: var(--text); }
.auth-home-link svg { width: 16px; height: 16px; }
.public-main.auth-main { display: grid; width: min(1180px, calc(100% - 32px)); min-height: 100vh; padding: 96px 0 64px; place-items: center; }
.auth-main .auth-shell { display: block; width: 100%; min-height: 0; padding: 0; }
.auth-main .auth-card { width: min(440px, 100%); margin: 0 auto; padding: 0 !important; border: 0 !important; border-radius: 0; background: none; box-shadow: none; text-align: center; }
.auth-mark { display: grid; width: 56px; height: 56px; margin: 0 auto 26px; place-items: center; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 18px 50px -14px rgba(110,130,255,.6); }
.auth-mark img { width: 56px; height: 56px; border-radius: 14px; }
.auth-mark:focus-visible { outline-offset: 4px; }
.auth-main .auth-mode { display: inline-flex; min-height: 26px; margin: 0 0 14px; padding: 0 11px; align-items: center; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--muted); font-size: 12px; }
.auth-main .auth-card h1 { font-size: clamp(38px, 5vw, 48px) !important; line-height: 1.05; }
.auth-main .auth-card > p:not(.auth-alternate):not(.terms-copy):not(.auth-switch) { max-width: 380px; margin: 14px auto 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.auth-switch { margin: 14px 0 0; color: var(--muted); font-size: 15px; }
.auth-main .auth-card a:not(.button):not(.auth-mark) { color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.auth-main .auth-card a:not(.button):not(.auth-mark):hover { text-decoration-color: currentColor; }
.auth-main .terms-copy { margin: 26px 0 0; color: var(--muted-light); font-size: 12.5px !important; line-height: 1.7; }
.auth-main .social-login { display: grid; margin-top: 22px; gap: 10px; }
.auth-main .social-button { position: relative; min-height: 48px; border-color: var(--border-strong); border-radius: 14px; background: rgba(28,28,32,.75); font-size: 15px; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.auth-main .social-button:hover:not(:disabled) { border-color: #4a4a52; background: rgba(40,40,46,.85); }
.auth-main .auth-divider { margin-top: 26px; color: var(--muted-light); font-size: 13px; }
.auth-main .auth-card form { margin-top: 24px; gap: 18px; text-align: left; }
.auth-main .auth-card label { color: var(--text-soft); font-size: 14px; font-weight: 500; }
.auth-main .auth-card label a:not(.button) { float: right; font-size: 13px; text-decoration: none !important; color: var(--muted) !important; }
.auth-main .auth-card label a:not(.button):hover { color: var(--text) !important; }
.auth-main .auth-card input { height: 50px; margin-top: 8px; border-color: #2f2f35; border-radius: 14px !important; background: rgba(24,24,28,.8); font-size: 15px; }
.auth-main .auth-card .button-primary { min-height: 50px; margin-top: 4px; border-radius: 14px; font-size: 15px; }
.auth-main .auth-alternate { margin-top: 26px; color: var(--muted); font-size: 14px; }
.auth-main .form-alert { margin-top: 20px; text-align: left; }
.auth-main .message-card > svg { margin-bottom: 18px; }
@media (max-width: 760px) {
  .auth-topbar { padding: 16px; }
  .public-main.auth-main { padding: 76px 0 48px; place-items: start center; }
  .auth-screen::before { top: -40vh; right: -90vw; width: 160vw; height: 80vh; }
  .auth-screen::after { bottom: -46vh; left: -100vw; width: 170vw; height: 80vh; }
}
/* auth corner light: arcs centred on the corners so they never cross the form */
.auth-screen::before { top: -48vw; right: -48vw; width: 96vw; height: 96vw; transform: none; filter: blur(5px);
  background: radial-gradient(closest-side, transparent 78%, rgba(255,255,255,.035) 86%, rgba(214,222,255,.30) 94.5%, rgba(255,255,255,.07) 98%, transparent 100%); }
.auth-screen::after { top: auto; bottom: -46vw; left: -46vw; width: 92vw; height: 92vw; transform: none; filter: blur(7px);
  background: radial-gradient(closest-side, transparent 80%, rgba(255,255,255,.03) 88%, rgba(200,210,255,.22) 95%, rgba(255,255,255,.05) 98%, transparent 100%); }
.auth-main .auth-card .social-login form { margin: 0; }
@media (max-width: 760px) {
  .auth-screen::before { top: -70vw; right: -70vw; width: 140vw; height: 140vw; }
  .auth-screen::after { bottom: -80vw; left: -80vw; width: 150vw; height: 150vw; }
}
.auth-screen::before { top: -30vw; right: -30vw; width: 60vw; height: 60vw; filter: blur(4px);
  background: radial-gradient(closest-side, rgba(225,230,255,.13) 0%, rgba(225,230,255,.07) 62%, rgba(225,230,255,.10) 80%, rgba(235,238,255,.42) 93%, rgba(255,255,255,.08) 97.5%, transparent 100%); }
.auth-screen::after { bottom: -24vw; left: -24vw; width: 48vw; height: 48vw; filter: blur(5px);
  background: radial-gradient(closest-side, rgba(225,230,255,.10) 0%, rgba(225,230,255,.05) 62%, rgba(225,230,255,.08) 80%, rgba(225,230,255,.32) 93%, rgba(255,255,255,.05) 97.5%, transparent 100%); }
@media (max-width: 760px) {
  .auth-screen::before { top: -42vw; right: -42vw; width: 84vw; height: 84vw; }
  .auth-screen::after { bottom: -36vw; left: -36vw; width: 72vw; height: 72vw; }
}
.auth-main .message-card .button { margin-top: 30px; }
/* keys table: keep the actions cell a real table cell so row borders line up */
@media (min-width: 761px) {
  .keys-list td:last-child { display: table-cell; text-align: right; white-space: nowrap; }
  .keys-list td:last-child > * { display: inline-block; margin: 0 0 0 20px; vertical-align: middle; }
  .keys-list td:last-child > :first-child { margin-left: 0; }
}
@media (min-width: 761px) {
  .keys-list td:last-child > * { display: inline-flex; height: 28px; align-items: center; }
  .keys-list td:last-child .text-button { line-height: 28px; }
}
.amount-presets .button:not([aria-pressed="true"]) { border-color: var(--border-strong); background: rgba(255,255,255,.03); color: var(--text); }
.amount-input { border-radius: 14px; background: var(--surface); }
.balance-summary .button, .page-heading .button { white-space: nowrap; flex-shrink: 0; }

/* Home hero: React Bits "Grainient" flowing gradient in a rounded panel (static/grainient.js) */
.public-main.public-home { padding-top: 12px; }
.hero.hero-flow { display: block; min-height: 0; padding: 0 0 72px; text-align: left; }
.flow-panel { position: relative; isolation: isolate; display: flex; width: calc(100vw - 24px); height: clamp(560px, calc(100vh - 92px), 880px); margin-left: calc(50% - 50vw + 12px);
  padding: clamp(28px, 4.5vw, 64px); flex-direction: column; justify-content: space-between; gap: 32px; overflow: hidden; border-radius: 28px;
  /* Shown until (or without) WebGL: a still version of the palette. */
  background: radial-gradient(80% 90% at 75% 30%, #2246d8 0%, #0a1640 55%, #04060d 100%); }
.flow-bg { position: absolute; z-index: -2; inset: 0; }
.flow-bg canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1s ease; }
.flow-bg.is-ready canvas { opacity: 1; }
/* Gentle shade behind the text so it stays readable over bright bands. */
.flow-panel::after { position: absolute; z-index: -1; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(to top, rgba(2,4,12,.55), transparent 42%), radial-gradient(60% 55% at 18% 20%, rgba(2,4,12,.35), transparent 70%); }
.flow-top { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.hero-flow .flow-title { max-width: 12ch; margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(54px, 7.4vw, 120px); font-weight: 400; line-height: .96; letter-spacing: -.035em; text-wrap: balance; }
.flow-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.flow-lead { max-width: 460px; margin: 0; color: rgba(255,255,255,.86); font-size: 18px; line-height: 1.55; }
.flow-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.flow-actions .hero-actions { margin: 0; }
.flow-actions .intro-signin { margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }
.flow-actions .intro-signin a { color: #fff; }
.hero-flow .button-ghost { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.hero-flow .button-ghost:hover:not(:disabled) { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.45); }
.hero-flow .hero-pill { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
@media (max-width: 760px) {
  .public-main.public-home { padding-top: 8px; }
  .flow-panel { width: calc(100vw - 16px); height: auto; min-height: clamp(560px, calc(100svh - 84px), 760px); margin-left: calc(50% - 50vw + 8px); padding: 24px 20px; border-radius: 22px; }
  .hero-flow .flow-title { font-size: clamp(44px, 12.5vw, 64px); }
  .flow-bottom { flex-direction: column; align-items: stretch; }
  .flow-lead { font-size: 16px; }
  .flow-actions { align-items: stretch; }
  .flow-actions .intro-signin { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .flow-bg canvas { transition: none; } }

/* ---- Flow design, applied beyond the home hero ---------------------------------- */

/* Gradient banner headers on public inner pages (models, connection guide) */
.page-heading.flow-banner { position: relative; isolation: isolate; min-height: 280px; margin-bottom: 40px; padding: clamp(28px, 4vw, 52px); overflow: hidden; align-items: flex-end; border-radius: 26px;
  background: radial-gradient(80% 100% at 70% 20%, #1b3db8 0%, #081233 60%, #03050b 100%); }
.page-heading.flow-banner::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(2,4,12,.55), transparent 60%); content: ""; pointer-events: none; }
.page-heading.flow-banner h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; font-size: clamp(44px, 5.4vw, 76px) !important; line-height: 1; }
.page-heading.flow-banner p { max-width: 560px; color: rgba(255,255,255,.82); font-size: 17px; }
.connect-page .page-heading.flow-banner { margin-inline: 0; }

/* Sign-in screens: gradient panel on the left, form on the right (desktop) */
.auth-art { display: none; }
@media (min-width: 961px) {
  .auth-screen::before, .auth-screen::after { display: none; }
  .auth-screen .public-frame { background: none; }
  .public-main.auth-main { display: grid; width: 100%; min-height: 100vh; padding: 12px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); place-items: stretch; }
  .auth-art { position: sticky; top: 12px; isolation: isolate; display: flex; height: calc(100vh - 24px); padding: clamp(32px, 4vw, 56px); overflow: hidden; align-items: flex-end; border-radius: 26px;
    background: radial-gradient(80% 90% at 70% 30%, #2246d8 0%, #0a1640 55%, #04060d 100%); }
  .auth-art::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(2,4,12,.55), transparent 55%); content: ""; pointer-events: none; }
  .auth-art .flow-bg { z-index: -2; }
  .auth-art-copy { max-width: 460px; }
  .auth-art-title { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(40px, 4.2vw, 64px); line-height: 1.02; letter-spacing: -.03em; }
  .auth-art-copy p:not(.auth-art-title) { margin: 16px 0 0; color: rgba(255,255,255,.82); font-size: 17px; line-height: 1.55; }
  .auth-main .auth-shell { display: grid; padding: 72px clamp(24px, 4vw, 64px); place-items: center; }
  .auth-topbar { padding: 32px 40px; }
  .auth-home-link { color: #fff; background: rgba(0,0,0,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}

@media (max-width: 760px) {
  .page-heading.flow-banner { min-height: 220px; border-radius: 22px; }
}

/* ==========================================================================
   Public page language: label tags, split buttons, pinned statement, light
   crop-mark grid, inverted-first cards, numbered FAQ, gradient banner, footer
   ========================================================================== */
:root { --canvas: #09090b; --ink: #0b0b0c; --paper: #f4f4f2; --dim: #8e9095; }
.lx-page h2, .lx-footer-title { margin: 0; color: #f2f2f2; font-family: var(--font-sans); font-weight: 500; letter-spacing: -.04em; background: none; -webkit-background-clip: initial; background-clip: initial; }
.lx-dim { color: var(--dim); }

/* Small bordered label naming a section */
.lx-tag { display: inline-flex; min-height: 24px; padding: 0 9px; align-items: center; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--muted); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }

/* Split call to action: label button + square arrow button */
.lx-cta { display: inline-flex; gap: 4px; text-decoration: none; }
.lx-cta-label, .lx-cta-arrow { display: inline-flex; height: 42px; align-items: center; justify-content: center; border-radius: 5px; transition: background .15s, color .15s; }
.lx-cta-label { padding: 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.lx-cta[href^="mailto:"] .lx-cta-label { text-transform: none; letter-spacing: .02em; font-size: 13px; }
.lx-cta-arrow { width: 42px; }
.lx-cta-arrow svg { width: 16px; height: 16px; stroke-width: 2; }
.lx-cta-light .lx-cta-label, .lx-cta-light .lx-cta-arrow { background: #fff; color: var(--ink); }
.lx-cta-light:hover .lx-cta-label, .lx-cta-light:hover .lx-cta-arrow { background: #e6e6e4; }
.lx-cta-dark .lx-cta-label, .lx-cta-dark .lx-cta-arrow { background: var(--ink); color: #fff; }
.lx-cta-dark:hover .lx-cta-label, .lx-cta-dark:hover .lx-cta-arrow { background: #2a2a2d; }
.lx-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.lx-link-button { display: inline-flex; height: 42px; padding: 0 16px; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,.22); border-radius: 5px; background: rgba(0,0,0,.18); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lx-link-button:hover { border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.lx-link-button svg { width: 14px; height: 14px; }
.lx-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* Section intro: tag in the left column, headline + copy in the right */
.lx-section { padding: 150px 0 0; }
.lx-intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 40px; }
.lx-intro-tag { padding-top: 10px; }
.lx-intro-copy h2 { max-width: 20ch; font-size: clamp(36px, 4.2vw, 60px); line-height: 1.04; }
.lx-intro-copy > p { max-width: 520px; margin: 24px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.lx-intro-copy > p a { color: var(--text); }
.lx-intro-copy .lx-cta { margin-top: 30px; }

/* Pinned "how it works" statement (static/statement.js) */
.lx-statement { padding-top: 150px; }
.lx-statement-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.lx-statement-head h2 { max-width: 20ch; font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.03em; }
.lx-statement-body { display: grid; margin-top: 64px; grid-template-columns: minmax(150px, .55fr) minmax(0, 1.6fr); gap: 40px; }
.lx-statement-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 10px; }
.lx-statement-label { color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.lx-statement-steps { display: grid; margin: 0; padding: 0; gap: 48px; list-style: none; counter-reset: lx-step; }
.lx-statement-steps p { margin: 0; color: #f2f2f2; font-size: clamp(28px, 3.5vw, 52px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.lx-statement:not(.is-pinned) .lx-statement-meta { display: none; }
.lx-statement:not(.is-pinned) .lx-statement-body { grid-template-columns: 1fr; }
.lx-statement:not(.is-pinned) .lx-statement-steps li { counter-increment: lx-step; }
.lx-statement:not(.is-pinned) .lx-statement-steps li::before { display: inline-flex; margin-bottom: 14px; padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--muted); font-size: 11px; letter-spacing: .14em; content: "0" counter(lx-step) " / 03"; }
.lx-statement.is-pinned { height: 330vh; padding-top: 0; margin-top: 110px; }
.lx-statement.is-pinned .lx-statement-sticky { position: sticky; top: 68px; display: flex; height: calc(100vh - 68px); padding: 56px 0 72px; flex-direction: column; justify-content: center; }
.lx-statement.is-pinned .lx-statement-steps li { display: none; }
.lx-statement.is-pinned .lx-statement-steps li.is-active { display: block; }
.lx-word { color: #46484d; transition: color .2s ease; }
.lx-word.is-lit { color: #f4f4f4; }

/* Light section: rounded paper panel with a crop-mark grid */
.lx-light { position: relative; isolation: isolate; margin-top: 150px; padding: 110px 0 120px; color: var(--ink); }
.lx-light::before { position: absolute; z-index: -1; inset: 0 auto 0 50%; width: calc(100vw - 24px); transform: translateX(-50%); border-radius: 32px; background: var(--paper); content: ""; }
.lx-light h2 { color: var(--ink); }
.lx-light .lx-dim { color: #8b8d90; }
.lx-light .lx-intro-copy > p { color: #55575b; }
.lx-light .lx-tag { border-color: rgba(0,0,0,.14); color: #6b6d70; }
.lx-provider-grid { display: grid; margin-top: 72px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lx-provider-col { display: grid; align-content: start; gap: 16px; }
.lx-cell { --mark: #b9b9b6; display: flex; min-height: 92px; padding: 0 20px; align-items: center; justify-content: center; text-align: center;
  background:
    linear-gradient(var(--mark), var(--mark)) top left / 12px 1px no-repeat, linear-gradient(var(--mark), var(--mark)) top left / 1px 12px no-repeat,
    linear-gradient(var(--mark), var(--mark)) top right / 12px 1px no-repeat, linear-gradient(var(--mark), var(--mark)) top right / 1px 12px no-repeat,
    linear-gradient(var(--mark), var(--mark)) bottom left / 12px 1px no-repeat, linear-gradient(var(--mark), var(--mark)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--mark), var(--mark)) bottom right / 12px 1px no-repeat, linear-gradient(var(--mark), var(--mark)) bottom right / 1px 12px no-repeat; }
.lx-cell-name { min-height: 128px; }
.lx-wordmark { color: var(--ink); font-size: 30px; letter-spacing: -.03em; }
.lx-wordmark-openai { font-weight: 600; }
.lx-wordmark-anthropic { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.lx-wordmark-google { font-weight: 500; letter-spacing: -.02em; }
.lx-model { color: #3b3d40; font-size: 15px; }
.lx-cell-soon span { color: #66686c; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Card row: the first card is inverted */
.lx-cards { display: grid; margin: 72px 0 0; padding: 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; list-style: none; }
.lx-card { display: flex; min-height: 300px; padding: 22px 22px 26px; flex-direction: column; border: 1px solid rgba(255,255,255,.06); border-radius: 12px; background: #141416; }
.lx-card-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 7px; background: rgba(255,255,255,.08); color: #f2f2f2; }
.lx-card-icon svg { width: 17px; height: 17px; }
.lx-card-kicker { margin-top: auto; color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.lx-card h3 { margin: 12px 0 8px; color: #f2f2f2; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.lx-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.lx-card-invert { border-color: transparent; background: var(--paper); }
.lx-card-invert .lx-card-icon { background: rgba(0,0,0,.07); color: var(--ink); }
.lx-card-invert h3 { color: var(--ink); }
.lx-card-invert p { color: #55575b; }
.lx-card-invert .lx-card-kicker { color: #626468; }

/* Numbered FAQ */
.lx-faq { margin-top: 72px; border-top: 1px solid var(--border); }
.lx-faq details { border-bottom: 1px solid var(--border); }
.lx-faq summary { display: grid; min-height: 78px; grid-template-columns: 64px minmax(0, 1fr) 32px; align-items: center; cursor: pointer; list-style: none; }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq-num { color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }
.lx-faq-q { color: #f2f2f2; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.lx-faq-toggle { position: relative; width: 30px; height: 30px; border: 1px solid var(--border-strong); border-radius: 50%; transition: transform .2s ease, background .2s; }
.lx-faq-toggle::before, .lx-faq-toggle::after { position: absolute; top: 50%; left: 50%; width: 11px; height: 1.5px; transform: translate(-50%, -50%); background: #e8e8e8; content: ""; }
.lx-faq-toggle::after { transform: translate(-50%, -50%) rotate(90deg); }
.lx-faq details[open] .lx-faq-toggle { transform: rotate(45deg); background: rgba(255,255,255,.06); }
.lx-faq summary:hover .lx-faq-toggle { border-color: #55565b; }
.lx-faq details p { max-width: 640px; margin: -6px 0 30px 64px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.lx-faq details p a { color: var(--text); }

/* Gradient banner (closing call to action) */
.lx-banner { position: relative; isolation: isolate; display: flex; min-height: 440px; margin: 150px 0 40px; padding: clamp(32px, 4.5vw, 60px); overflow: hidden; flex-direction: column; justify-content: space-between; gap: 48px; border-radius: 20px;
  background: radial-gradient(80% 90% at 60% 30%, #2b62ea 0%, #160f3a 60%, #05040e 100%); }
.lx-banner::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(2,4,12,.5), transparent 50%), radial-gradient(55% 60% at 20% 25%, rgba(2,4,12,.35), transparent 70%); content: ""; pointer-events: none; }
.lx-banner .flow-bg { z-index: -2; }
.lx-banner h2 { max-width: 12ch; color: #fff; font-family: var(--font-display); font-size: clamp(44px, 5.6vw, 88px); font-weight: 400; line-height: .98; letter-spacing: -.03em; }
.lx-banner-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.lx-banner-bottom p { max-width: 420px; margin: 0; color: rgba(255,255,255,.86); font-size: 17px; line-height: 1.55; }

/* Footer: a closing statement, then link columns */
.public-footer.lx-footer { margin-top: 40px; padding-top: 110px; border-top: 0; }
.lx-footer-top { display: flex; padding: 0 0 96px; flex-direction: column; align-items: flex-start; gap: 22px; grid-column: 1 / -1; border-bottom: 1px solid var(--border); }
.public-footer .lx-footer-title { max-width: none; margin: 0; color: #f2f2f2; font-size: clamp(40px, 5.2vw, 78px); line-height: 1.02; letter-spacing: -.045em; }
.lx-footer-brand p { max-width: 300px; }
.lx-footer nav strong { color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.public-footer.lx-footer > :not(.lx-footer-top) { padding-top: 48px; }

/* Header: navigation in a light pill (desktop) */
@media (min-width: 761px) {
  .public-header { border-bottom: 0; background: rgba(9,9,11,.72); }
  .public-navigation { padding: 5px 5px 5px 20px; gap: 22px; border-radius: 8px; background: var(--paper); }
  .public-navigation > a:not(.button) { color: #3b3d40; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
  .public-navigation > a:not(.button):hover, .public-navigation > a[aria-current="page"]:not(.button) { color: var(--ink); }
  .public-login-link { padding-left: 22px; border-left-color: rgba(0,0,0,.14); }
  .public-navigation .button-primary { min-height: 34px; padding: 0 14px; border-color: var(--ink); border-radius: 5px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; box-shadow: none; }
  .public-navigation .button-primary:hover:not(:disabled) { border-color: #2a2a2d; background: #2a2a2d; }
}

@media (max-width: 900px) {
  .lx-intro, .lx-statement-body { grid-template-columns: 1fr; gap: 20px; }
  .lx-cards, .lx-provider-grid { grid-template-columns: 1fr; }
  .lx-provider-col { gap: 10px; }
}
@media (max-width: 760px) {
  .lx-section, .lx-statement:not(.is-pinned) { padding-top: 100px; }
  .lx-light { margin-top: 100px; padding: 72px 0 80px; }
  .lx-light::before { width: calc(100vw - 16px); border-radius: 24px; }
  .lx-statement.is-pinned { margin-top: 80px; }
  .lx-statement-head { flex-direction: column; }
  .lx-statement-body { margin-top: 36px; }
  .lx-card { min-height: 220px; }
  .lx-faq summary { grid-template-columns: 44px minmax(0, 1fr) 32px; min-height: 70px; }
  .lx-faq-q { font-size: 16px; }
  .lx-faq details p { margin-left: 44px; }
  .lx-banner { min-height: 400px; margin-top: 100px; border-radius: 18px; }
  .lx-banner-bottom { flex-direction: column; align-items: stretch; }
  .lx-cta { width: 100%; }
  .lx-cta-label { flex: 1; }
  .lx-footer-top { padding-bottom: 64px; }
}
@media (prefers-reduced-motion: reduce) { .lx-word, .lx-faq-toggle { transition: none; } }

.lx-section-first { padding-top: 120px; }
.lx-code { max-width: none; margin: 64px 0 0; }
.lx-code .code-demo pre { height: 320px; padding: 28px; }
.lx-card-link { display: inline-flex; margin-top: 18px; align-items: center; gap: 8px; color: #f2f2f2; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.lx-card-link svg { width: 14px; height: 14px; }
.lx-card-invert .lx-card-link { color: var(--ink); }
.lx-card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ==========================================================================
   Signed-in app in the public design language (calmer: no animation)
   ========================================================================== */
.is-authenticated { --panel: #121214; --panel-line: rgba(255,255,255,.07); }

/* Page header: slim banner in the hero's palette, with grain; text over a soft shade */
.is-authenticated .page-heading { position: relative; isolation: isolate; max-width: 1400px; min-height: 172px; margin: 0 auto 28px; padding: 30px 34px; overflow: hidden; align-items: flex-end; border-radius: 18px;
  background:
    radial-gradient(55% 120% at 88% -10%, rgba(127,184,255,.55), transparent 62%),
    radial-gradient(50% 120% at 58% 115%, rgba(13,108,128,.8), transparent 66%),
    radial-gradient(70% 150% at 18% -30%, rgba(34,70,216,.95), transparent 70%),
    linear-gradient(120deg, #04060d 0%, #0a1640 48%, #11307f 100%); }
.is-authenticated .page-heading::before { position: absolute; z-index: -1; inset: 0; opacity: .22; mix-blend-mode: overlay; content: ""; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.is-authenticated .page-heading::after { position: absolute; z-index: -1; inset: 0; background: linear-gradient(to top, rgba(2,4,12,.5), transparent 70%); content: ""; pointer-events: none; }
.is-authenticated .page-heading h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: #fff; font-size: clamp(32px, 3vw, 44px) !important; line-height: 1.05; }
.is-authenticated .page-heading p { color: rgba(255,255,255,.8); }
.is-authenticated .page-heading .button-secondary { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.is-authenticated .page-heading .button-secondary:hover:not(:disabled) { border-color: rgba(255,255,255,.5); background: rgba(255,255,255,.16); }
.is-authenticated .page-heading .button-primary { border-color: #fff; background: #fff; color: var(--ink); }
.is-authenticated .page-heading a:not(.button) { color: #fff; }
.is-authenticated .page-heading .heading-kicker { margin: 0 0 12px; }
.is-authenticated .page-heading .status { color: rgba(255,255,255,.88); }

/* Buttons: the small uppercase label style from the public pages */
.is-authenticated .button { min-height: 40px; padding: 0 16px; border-radius: 5px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; box-shadow: none; }
.is-authenticated .button-small { min-height: 34px; padding: 0 12px; font-size: 11px; }
.is-authenticated .button-primary { border-color: #f2f2f2; background: #f2f2f2; color: var(--ink); }
.is-authenticated .button-primary:hover:not(:disabled) { border-color: #fff; background: #fff; }
.is-authenticated .button-secondary { border-color: rgba(255,255,255,.18); background: transparent; color: #f2f2f2; }
.is-authenticated .button-secondary:hover:not(:disabled) { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.is-authenticated .social-button, .is-authenticated .amount-preset { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }

/* Stat tiles: inverted-first card row */
.is-authenticated .metrics-row { gap: 12px; }
.is-authenticated .metrics-row article { display: flex; min-height: 156px; padding: 20px 22px; flex-direction: column; border: 1px solid var(--panel-line); border-radius: 12px; background: var(--panel); }
.is-authenticated .metrics-row span { color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.is-authenticated .metrics-row strong { margin: auto 0 6px; color: #f2f2f2; font-size: clamp(24px, 2.3vw, 34px); letter-spacing: -.04em; overflow-wrap: anywhere; }
.is-authenticated .metrics-row strong em { color: var(--muted); font-size: 16px; font-style: normal; }
.is-authenticated .metrics-row small { color: var(--muted); font-size: 12px; }
.is-authenticated .metrics-row article:first-child { border-color: transparent; background: var(--paper); }
.is-authenticated .metrics-row article:first-child span { color: #626468; }
.is-authenticated .metrics-row article:first-child strong { color: var(--ink); }
.is-authenticated .metrics-row article:first-child small, .is-authenticated .metrics-row article:first-child em { color: #55575b; }

/* Panels: card surfaces with a small bordered label for the title */
.is-authenticated .section-panel, .is-authenticated .data-section, .is-authenticated .balance-summary, .is-authenticated .setup-guide,
.is-authenticated .key-reveal, .is-authenticated .key-create-panel, .is-authenticated .credit-purchase, .is-authenticated .billing-help, .is-authenticated .settings-password, .is-authenticated .sessions-panel, .is-authenticated .connections-panel {
  border: 1px solid var(--panel-line); border-radius: 12px; background: var(--panel); }
.is-authenticated .section-panel { overflow: hidden; }
.is-authenticated .section-panel > header, .is-authenticated .data-section > header { min-height: 72px; padding: 18px 22px; border-bottom-color: var(--panel-line); }
.is-authenticated .section-panel h2, .is-authenticated .data-section h2 { display: inline-flex; min-height: 24px; padding: 0 9px; align-items: center; border: 1px solid var(--border-strong); border-radius: 4px; color: #d8d9db; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.is-authenticated .section-panel header p, .is-authenticated .data-section header p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.is-authenticated .section-panel header a:not(.button), .is-authenticated .data-section header a:not(.button) { color: #f2f2f2; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }

/* Tables: hairlines and quiet uppercase column headings */
.is-authenticated th { color: var(--dim); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.is-authenticated td, .is-authenticated th { border-bottom-color: var(--panel-line); }

/* Sidebar: active item in the light pill, like the public navigation */
.is-authenticated .app-sidebar { background: #09090b; }
.is-authenticated .app-nav a.active { background: var(--paper); color: var(--ink); box-shadow: none; }
.is-authenticated .app-nav a.active svg { color: var(--ink); }
.is-authenticated .nav-group-label { color: var(--dim); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.is-authenticated .workspace-header { background: rgba(9,9,11,.8); }
.is-authenticated .workspace-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.is-authenticated .workspace-help { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.is-authenticated .app-main { background: none; }

@media (max-width: 760px) {
  .is-authenticated .page-heading { min-height: 0; padding: 24px 20px; border-radius: 14px; }
  .is-authenticated .metrics-row article { min-height: 124px; padding: 16px; }
  .is-authenticated .metrics-row strong { font-size: 26px; }
}
.is-authenticated .metrics-row { gap: 12px; margin-bottom: 28px; border-block: 0; }
.is-authenticated .metrics-row article { margin-block: 0; }
.is-authenticated .data-section th:first-child, .is-authenticated .data-section td:first-child { padding-left: 22px; }
.is-authenticated .data-section th:last-child, .is-authenticated .data-section td:last-child { padding-right: 22px; }
/* The credits page's balance reads like the first stat tile: inverted */
.is-authenticated .balance-summary { border-color: transparent; background: var(--paper); }
.is-authenticated .balance-summary span { color: #626468; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.is-authenticated .balance-summary strong { color: var(--ink); }
.is-authenticated .balance-summary p { color: #55575b; }
.is-authenticated .balance-summary a:not(.button) { color: var(--ink); }
.is-authenticated .balance-summary a:not(.button):hover { text-decoration: underline; text-underline-offset: 4px; }
.is-authenticated .balance-summary .button-primary { border-color: var(--ink); background: var(--ink); color: #fff; }
.is-authenticated .balance-summary .button-primary:hover:not(:disabled) { border-color: #2a2a2d; background: #2a2a2d; }
/* Phones: the uppercase breadcrumb is too wide; show only its last part */
@media (max-width: 760px) {
  .is-authenticated .workspace-title { font-size: 0; letter-spacing: 0; }
  .is-authenticated .workspace-title .breadcrumb-divider { display: none; }
  .is-authenticated .workspace-title > span:last-child { font-size: 11px; letter-spacing: .14em; }
}

/* One site for app users and developers: the docs carry the code, other pages point to them quietly. */
.connect-page > .audience-note { margin-top: 32px; }
.docs-code-demo { margin-top: 18px; }
.docs-code-demo .code-demo { border: 1px solid var(--border-strong); }
.docs-steps { margin: 18px 0 0; padding-left: 20px; color: var(--text-soft); font-size: 15px; line-height: 1.7; }
.docs-steps li + li { margin-top: 8px; }
.docs-steps strong { color: var(--text); font-weight: 550; }
.docs-steps code { padding: 2px 5px; border-radius: 4px; background: var(--subtle); font-size: 13px; }
.docs-content a code { color: inherit; }
.docs-content #quickstart > .field-label { margin-top: 26px; }
.docs-content #quickstart > .secret-field { margin-top: 8px; }
/* Developers get a pointer on the home page, not a second hero. */
.lx-builders .lx-intro-copy h2 { font-size: clamp(26px, 3vw, 38px); }
.lx-builders .lx-link-button { margin-top: 26px; }
