/* Paper, ink, one accent. Light only: there is no dark theme. The landing (landing.css) reads these same tokens: keep the names. */
:root {
  --paper: #faf8f3;
  --ink: #141413;
  --ink-2: #4a4843;
  --muted: #8a877f;
  --accent: #4a2341;
  --on-accent: #faf8f3;
  --danger: #9a3a2c;
  --grain: .035;
  /* Derived: hairlines and washes follow the tokens. Light only, on every OS setting. */
  --line: color-mix(in oklab, var(--ink) 12%, var(--paper));
  --line-2: color-mix(in oklab, var(--ink) 26%, var(--paper));
  --wash: color-mix(in oklab, var(--ink) 4%, var(--paper));
  --faint: var(--muted);
  --hairline-shadow: 0 1px 0 0 color-mix(in oklab, var(--ink) 18%, transparent);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --radius: 8px;
  --sans: Geist, ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: Cormorant, "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --serif: var(--display);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --measure: 680px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; overflow-x: hidden; }
/* Paper grain: one cached SVG tile on a fixed layer behind everything. The landing draws its own. */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grain); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
body.is-bare::before { content: none; }
main { flex: 1; outline: none; }
main:focus-visible { outline: none; }
::selection { background: color-mix(in oklab, var(--accent) 22%, var(--paper)); color: var(--ink); }

/* Links: ink, with a faint rule that fills left to right on hover. Chrome links drop the faint rule. */
a { color: var(--ink); text-decoration: none; background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat, linear-gradient(var(--line-2), var(--line-2)) left bottom / 100% 1px no-repeat; transition: background-size 400ms var(--ease), color 300ms var(--ease); }
a:hover { background-size: 100% 1px, 100% 1px; }

h1, h2, h3 { margin: 0 0 .5em; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
h1 { font-size: clamp(40px, 6vw, 56px); line-height: 1.05; margin-bottom: 16px; }
h2 { font-size: 30px; line-height: 1.15; letter-spacing: -.01em; margin-top: 56px; margin-bottom: 12px; }
h3 { font-size: 16px; font-weight: 500; line-height: 1.4; margin-top: 32px; }
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { padding-left: 1.2em; }
li + li { margin-top: 4px; }
strong { font-weight: 500; }
code, pre { font-family: var(--mono); font-size: .84em; }
:not(pre) > code { background: var(--wash); padding: .12em .35em; border-radius: 4px; overflow-wrap: anywhere; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.muted { color: var(--ink-2); }
.faint { color: var(--muted); }
.small { font-size: 14px; }
.serif { font-family: var(--serif); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); padding: 6px 10px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: var(--measure); }
.page { padding-top: 56px; }

/* Header and footer, the same as the landing. */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 28px 40px; }
.wordmark { font-family: var(--display); font-size: 26px; font-weight: 400; letter-spacing: -.02em; line-height: 1; color: var(--ink); background: none; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav nav a:not(.btn), footer a, .chrome-link { background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; padding-bottom: 2px; }
.nav nav a:not(.btn):hover, footer a:hover, .chrome-link:hover, .nav nav a[aria-current=page] { background-size: 100% 1px; }
.nav .btn { font-size: 14px; padding: 8px 14px; }
footer { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; padding: 96px 24px 24px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); }
footer a:hover { color: var(--muted); }
[hidden] { display: none !important; }
body.is-bare > #nav, body.is-bare > #footer { display: none; }

/* Controls */
.btn { font: inherit; font-size: 15px; font-weight: 500; line-height: 1.4; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--line-2); background: transparent; color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; white-space: nowrap; transition: background-color 300ms var(--ease), box-shadow 300ms var(--ease), border-color 300ms var(--ease), opacity 300ms var(--ease); }
a.btn { background-image: none; }
.btn:hover { background-color: color-mix(in oklab, var(--ink) 5%, transparent); box-shadow: var(--hairline-shadow); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: color-mix(in oklab, var(--accent), #000 6%); border-color: color-mix(in oklab, var(--accent), #000 6%); }
.btn.sm { padding: 3px 10px; font-size: 13px; font-weight: 400; }
.btn:active { box-shadow: none; }
.link { font: inherit; background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; border: 0; padding: 0 0 1px; color: var(--ink); cursor: pointer; transition: background-size 400ms var(--ease), color 300ms var(--ease); }
.link:not(.quiet) { background-image: linear-gradient(currentColor, currentColor), linear-gradient(var(--line-2), var(--line-2)); background-size: 0% 1px, 100% 1px; background-position: left bottom, left bottom; background-repeat: no-repeat; }
.link:hover { background-size: 100% 1px; }
.link:not(.quiet):hover { background-size: 100% 1px, 100% 1px; }
.link.danger { background-image: linear-gradient(currentColor, currentColor), linear-gradient(color-mix(in oklab, var(--danger) 35%, transparent), color-mix(in oklab, var(--danger) 35%, transparent)); }
.link.danger { color: var(--danger); }
.btn[disabled], .link[disabled] { opacity: .4; cursor: default; box-shadow: none; }
.btn[disabled]:hover { background-color: transparent; }
.btn.primary[disabled]:hover { background: var(--accent); border-color: var(--accent); }
.link[disabled]:hover { background-size: 0% 1px, 100% 1px; }
[aria-busy=true] { cursor: progress; }
.btn[aria-busy=true], .link[aria-busy=true] { opacity: .6; animation: breathe 1.4s var(--ease) infinite alternate; }
@keyframes breathe { from { opacity: .7; } to { opacity: .4; } }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
label, legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field { margin-bottom: 20px; }
.hint { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
input:not([type]), input[type=text], input[type=email], select, textarea { width: 100%; font: inherit; font-size: 15px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; transition: border-color 300ms var(--ease); }
input:not([type]):hover, input[type=text]:hover, select:hover, textarea:hover { border-color: var(--line-2); }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select { appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%238a877f' stroke-width='1.2'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
select option { background: var(--paper); color: var(--ink); }
textarea { min-height: 96px; resize: vertical; font-family: var(--serif); font-size: 19px; line-height: 1.45; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-color: var(--line-2); border-radius: var(--radius); }
fieldset { border: 0; padding: 0; margin: 0; }

/* Tables and lists */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th:last-child, td:last-child { padding-right: 0; }
th { font-weight: 400; color: var(--muted); font-size: 13px; padding-top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: lining-nums tabular-nums; }
td.act { text-align: right; white-space: nowrap; }
td.act .link + .link { margin-left: 16px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 24px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; word-break: break-word; }
hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }

/* Code */
.code { position: relative; margin: 0 0 1.4em; }
.code pre { margin: 0; background: var(--wash); border-radius: var(--radius); padding: 14px 76px 14px 16px; overflow-x: auto; line-height: 1.6; }
.code .copy { position: absolute; right: 10px; top: 10px; }
.code:has(.label) .copy { top: 36px; }
.code .label { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.oneliner { display: flex; align-items: center; gap: 8px; background: var(--wash); border-radius: var(--radius); padding: 8px 8px 8px 16px; }
.oneliner code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; background: none; padding: 0; font-size: 13px; overflow-wrap: normal; scrollbar-width: none; }
.copy { background-color: var(--paper); }

/* Tabs */
.tabs [role=tablist] { display: flex; gap: 6px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs [role=tab] { font: inherit; font-size: 15px; background: none; border: 0; border-bottom: 1px solid transparent; padding: 8px 0; margin-bottom: -1px; color: var(--muted); cursor: pointer; transition: color 300ms var(--ease), border-color 300ms var(--ease); }
.tabs [role=tab]:hover { color: var(--ink); }
.tabs [role=tab][aria-selected=true] { color: var(--ink); border-bottom-color: var(--ink); }

/* States */
.state { padding: 56px 0; }
.state h2 { margin-top: 0; }
.state p { color: var(--ink-2); }
.loading { padding: 40px 0; color: var(--muted); font-size: 14px; animation: breathe 1.4s var(--ease) infinite alternate; }
.notice { border-left: 1px solid var(--ink); padding: 2px 0 2px 16px; margin: 0 0 24px; font-size: 15px; }
.notice p:last-child { margin-bottom: 0; }
.notice.danger { border-left-color: var(--danger); }
.notice.danger, p.notice.danger { color: var(--danger); }
.notice.danger a { color: var(--danger); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--radius); font-size: 14px; z-index: 20; max-width: calc(100vw - 32px); animation: rise 400ms var(--ease); }
.toast[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 6px); } to { opacity: 1; transform: translate(-50%, 0); } }

.section-label { font-size: 13px; color: var(--muted); margin: 48px 0 12px; font-weight: 400; }

/* Docs */
.lede { font-size: 17px; color: var(--ink-2); margin-bottom: 28px; }
.toc { font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.toc a { color: var(--ink-2); background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; }
.toc a:hover { color: var(--ink); background-size: 100% 1px; }
.docs h2, .docs h3 { scroll-margin-top: 24px; }
.endpoint { font-family: var(--mono); font-size: 15px; font-weight: 500; margin-top: 40px; }

/* Pricing */
.lead { font-size: 17px; color: var(--ink-2); margin-bottom: 40px; }
table.prices td { padding-top: 18px; padding-bottom: 18px; font-variant-numeric: lining-nums tabular-nums; vertical-align: baseline; }
table.prices td.num { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.01em; line-height: 1; }
table.prices td:first-child { font-weight: 500; }
.sub { display: block; font-weight: 400; color: var(--muted); font-size: 14px; margin-top: 2px; }
.amounts .amount { min-width: 80px; font-variant-numeric: lining-nums tabular-nums; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
ul.plain li:first-child { border-top: 1px solid var(--line); }

/* Dashboard shell */
.is-app .wrap { max-width: 1120px; }
.signin { padding-top: 72px; max-width: 620px; margin: 0 auto; text-align: center; }
.signin h1 { white-space: nowrap; font-size: clamp(34px, 5vw, 52px); }
.signin #signin { margin-top: 36px; display: flex; justify-content: center; text-align: left; }
.app { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 72px; padding-top: 32px; }
.side { position: sticky; top: 28px; align-self: start; display: flex; flex-direction: column; gap: 32px; font-size: 15px; }
.side-links { display: flex; flex-direction: column; align-items: flex-start; }
.side-links a { color: var(--muted); padding: 5px 0; background: none; transition: color 300ms var(--ease); }
.side-links a:hover { color: var(--ink); }
.side-links a[aria-current=page] { color: var(--ink); }
.side-balance { display: flex; flex-direction: column; color: var(--ink); padding-top: 20px; border-top: 1px solid var(--line); background: none; }
.side-balance .k { font-size: 13px; color: var(--muted); }
.side-balance .v { font-family: var(--display); font-size: 28px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; font-variant-numeric: lining-nums tabular-nums; background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; transition: background-size 400ms var(--ease); align-self: flex-start; }
.side-balance:hover .v { background-size: 100% 1px; }
.low, .side-balance .v.low { color: var(--danger); }
.user { min-height: 28px; }
.app-body { min-width: 0; }
.page-head { margin-bottom: 36px; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 44px); margin: 0 0 6px; }
.page-head p { color: var(--ink-2); margin: 0; }
.page-head + h2 { margin-top: 0; }
.app-body h2 { font-size: 26px; margin-top: 48px; }
.crumb { font-size: 14px; margin: 0 0 12px; }
.crumb a { color: var(--muted); background: linear-gradient(currentColor, currentColor) left bottom / 0% 1px no-repeat; }
.crumb a:hover { color: var(--ink); background-size: 100% 1px; }
.label { font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.output { white-space: pre-wrap; font-family: var(--serif); font-size: 22px; line-height: 1.45; margin: 0 0 18px; overflow-wrap: anywhere; }
.faint-ink { color: var(--ink-2); }
.key { font-family: var(--mono); font-size: 14px; word-break: break-all; }
.prose { white-space: pre-wrap; font-family: var(--serif); font-size: 20px; line-height: 1.5; }
.more { margin-top: 24px; }
.link.quiet { color: var(--muted); }
.link.quiet:hover { color: var(--ink); }
kbd { font: inherit; font-size: 12px; opacity: .65; margin-left: 4px; }

/* Playground */
.pg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: start; }
.draft { min-height: 300px; font-size: 21px; line-height: 1.45; padding: 16px 18px; margin-bottom: 20px; }
.pg-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.pg-go { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pg-out { padding-top: 16px; transition: opacity 400ms var(--ease); }
.pg-out.busy { opacity: .35; }
.pg-empty { font-family: var(--serif); font-size: 22px; line-height: 1.45; color: var(--muted); }
.output-edit { font-size: 22px; line-height: 1.45; min-height: 120px; padding: 10px 12px; margin: -11px -13px 18px; width: calc(100% + 26px); }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted); font-variant-numeric: lining-nums tabular-nums; margin: 0 0 8px; }
.meta .link { font-size: inherit; margin-left: auto; }
details.quiet { font-size: 14px; margin-bottom: 32px; }
details.quiet summary { color: var(--muted); cursor: pointer; list-style: none; width: fit-content; transition: color 300ms var(--ease); }
details.quiet summary::-webkit-details-marker { display: none; }
details.quiet summary::after { content: " +"; }
details.quiet[open] summary::after { content: " \2212"; }
details.quiet summary:hover { color: var(--ink); }
details.quiet[open] summary { margin-bottom: 14px; }
.fb { border-top: 1px solid var(--line); padding-top: 24px; }
.fb .hint { margin-top: 12px; }
.fb-done { margin: 0; font-size: 15px; }
.fb-reject { max-width: 420px; }

/* Activity */
.chart { margin: 0 0 32px; }
.chart-top, .chart-axis { display: flex; justify-content: space-between; }
.chart-top { margin-bottom: 10px; }
.chart-axis { margin-top: 0; border-top: 1px solid var(--line); padding-top: 8px; }
.chart-plot { position: relative; }
.chart svg { display: block; width: 100%; height: 160px; overflow: visible; }
.chart .hit { fill: transparent; transition: fill 300ms var(--ease); }
.chart .b { fill: var(--muted); transition: fill 300ms var(--ease); }
.chart .z { fill: var(--line); }
.chart .day { outline: none; }
.chart .day:focus-visible .hit { stroke: var(--accent); stroke-width: 2px; }
.chart .day.on .b { fill: var(--ink); }
.chart .day.on .hit { fill: var(--wash); }
.tip { position: absolute; bottom: calc(100% + 10px); transform: translateX(-50%); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; font-size: 13px; white-space: nowrap; pointer-events: none; display: flex; flex-direction: column; gap: 1px; z-index: 5; color: var(--ink-2); }
.tip strong { color: var(--ink); font-weight: 500; }
.tip .tip-cost { color: var(--ink); font-variant-numeric: lining-nums tabular-nums; font-family: var(--display); font-size: 22px; font-weight: 500; line-height: 1.2; }
.tip[hidden] { display: none; }
.totals { display: flex; flex-wrap: wrap; gap: 16px 48px; margin: 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.totals div { display: flex; flex-direction: column; }
.totals dt { font-size: 13px; color: var(--muted); }
.totals dd { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 500; line-height: 1.15; font-variant-numeric: lining-nums tabular-nums; letter-spacing: -.01em; }
.reqs { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.reqs li { border-bottom: 1px solid var(--line); margin: 0; }
a.req { display: block; padding: 16px 12px; margin: 0 -12px; color: var(--ink); background: transparent; border-radius: var(--radius); transition: background-color 300ms var(--ease); }
a.req:hover { background: var(--wash); }
.req-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.req-meta .cost { margin-left: auto; color: var(--ink-2); font-variant-numeric: lining-nums tabular-nums; }
.req-text { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; font-family: var(--serif); font-size: 19px; line-height: 1.4; }
.req-text > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.req-text .in { color: var(--muted); }
.req-text .arrow { color: var(--muted); font-family: var(--sans); font-size: 14px; align-self: center; }
.verdict { color: var(--ink-2); }
.v-approved { color: var(--ink); }
.v-edited { color: var(--ink-2); }
.v-rejected { color: var(--danger); }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin: 8px 0 24px; }
tr.total td { font-weight: 500; border-bottom: 0; }

/* Billing */
.bal { margin-bottom: 8px; }
.bal-num { font-family: var(--display); font-size: clamp(56px, 8vw, 80px); font-weight: 500; letter-spacing: -.02em; line-height: 1; margin: 4px 0 14px; font-variant-numeric: lining-nums tabular-nums; }
.ar { max-width: 520px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 400; margin-bottom: 16px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--ink); margin: 0; }
.check:has(input:disabled) { color: var(--muted); cursor: default; }
.ar-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; max-width: 420px; }
.ar-row label { font-weight: 400; color: var(--ink-2); }
td.pos { color: var(--ink); }
table.ledger td { font-variant-numeric: lining-nums tabular-nums; }

@media (max-width: 1080px) {
  .pg { grid-template-columns: 1fr; gap: 36px; }
  .pg-out { padding-top: 0; }
  .draft { min-height: 200px; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
  .side-balance { order: 1; flex-direction: row; align-items: baseline; gap: 8px; border: 0; padding: 0; }
  .side-balance .v { font-size: 22px; }
  .user { order: 2; margin-left: auto; min-height: 0; }
  .side-links { order: 3; width: 100%; flex-direction: row; gap: 22px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
  .side-links a { padding: 8px 0; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; }
  .side-links a[aria-current=page] { border-bottom-color: var(--ink); }
  .pair { grid-template-columns: 1fr; gap: 12px; }
  .req-text { grid-template-columns: 1fr; gap: 2px; }
  .req-text .arrow { display: none; }
  .req-text > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .totals { gap: 14px 32px; }
  .totals dd { font-size: 26px; }
  .chart svg { height: 120px; }
}
/* Setup prompt: the first thing a new account sees (/dashboard/start), and the top of /connect. */
.app.is-start { grid-template-columns: minmax(0, 1fr); gap: 0; }
.app.is-start .side { display: none; }
.start { max-width: 640px; margin: 0 auto; padding: 48px 0 32px; text-align: center; }
.start h1 { font-size: clamp(40px, 5.6vw, 60px); margin-bottom: 14px; animation: start-up 600ms var(--ease) both; }
.start-sub { font-size: 17px; color: var(--ink-2); margin: 0 auto 36px; max-width: 34em; text-wrap: balance; animation: start-up 600ms var(--ease) 100ms both; }
.start .prompt-card { animation: start-up 600ms var(--ease) 200ms both; }
.start-alt { margin: 36px 0 6px; font-size: 14px; color: var(--muted); }
.start-skip { margin: 0; font-size: 14px; }
.start-skip a { color: var(--muted); }
.start-skip a:hover { color: var(--ink); }
@keyframes start-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.btn.lg { font-size: 16px; padding: 14px 30px; border-radius: 10px; }
.prompt-card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.connect .prompt-card { align-items: flex-start; text-align: left; }
/* The Onboard pill (Hyperresearch pattern): solid, rounded, the agents' marks inside, a small lift on hover. */
.onboard { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 12px 26px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 500 16px/1.3 var(--sans); letter-spacing: -.01em; cursor: pointer; transition: background 180ms, border-color 180ms, box-shadow 180ms, transform 220ms var(--ease); }
.onboard:hover { background: color-mix(in oklab, var(--accent), #000 8%); border-color: color-mix(in oklab, var(--accent), #000 8%); box-shadow: 0 6px 18px -8px color-mix(in oklab, var(--accent) 55%, transparent); transform: translateY(-1px); }
.onboard:active { transform: translateY(0); box-shadow: none; }
.onboard:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.onboard-marks { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
.onboard-marks svg { display: block; flex: none; }
.onboard-hint { margin: 16px 0 0; max-width: 34em; font-size: 14px; line-height: 1.55; color: var(--muted); text-wrap: balance; }
.prompt-done { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); min-height: 1.5em; }
.onboard-fallback { user-select: all; color: var(--ink); }

@media (max-width: 640px) {
  .nav { padding: 20px; }
  .nav nav { gap: 16px; }
  .nav .btn { display: none; }
  .page { padding-top: 32px; }
  .start { padding-top: 24px; }
  .onboard { gap: 10px; padding: 12px 20px; font-size: 15px; }
  .onboard-marks { gap: 6px; }
  h2 { font-size: 27px; margin-top: 48px; }
  footer { padding-top: 72px; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 20px; }
}
@media (max-width: 420px) {
  .pg-opts { grid-template-columns: 1fr; }
  .nav nav { gap: 14px; font-size: 14px; }
  .nav { gap: 12px; }
  .ar-row { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation: none !important; }
}
/* Clerk renders its own links and buttons: keep the site link rule off them. */
a[class*="cl-"], [class*="cl-"] a { background: none; }
