/* Valquia: tokens, base type and the page shell. Components live in ui.css (docs/ui.md).
   The accent (--primary, aliased as --price) marks what to act on and the entry and price. BUY --success, SELL --destructive. */

/* ------------------------------------------------------------------ tokens: light
   Look "Couture" (from the reference palette peach #FFDBBB, taupe #CCBEB1, mocha #997E67, brown #664930):
   a white page and black ink, like a luxury house; the warm tones are the neutrals. Colour jobs:
     neutrals  white, warm greys and the tones as surfaces, borders and secondary text (no meaning)
     action    ink (black in light, cream in dark): the primary action, selected states, slider thumbs,
               and the decision numbers, entry and price (--price and --warning alias it)
     selected  peach (--accent-surface, --highlight): the fill of the selected thing, text selection, marks
     up/down   green and crimson, only for BUY/SELL and above/below the price, always with a word or sign
     chart     mocha for data marks (bars, ranges); no meaning by colour
   Type: Inter Tight for titles, Inter for the interface and figures (tabular), Source Serif 4 only for long
   reading. Text at least 4.5:1, chart marks at least 3:1. */
:root {
  --background: #FFFFFF;
  --foreground: #141210;
  --card: #FFFFFF;            --card-foreground: #141210;
  --popover: #FFFFFF;         --popover-foreground: #141210;
  --muted: #F6F3F0;           --muted-foreground: #6E6259;   /* 6.3:1 on --background */
  --foreground-soft: #463C34;  /* body text a step below the ink: table cells, quotes */
  --border: #E9E2DA;          --input: #D6CBC0;
  --primary: #141210;         --primary-foreground: #FFFFFF;
  --secondary: #F3EEE9;       --secondary-foreground: #141210;
  --price: var(--primary);           --price-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --ring: var(--price);
  --destructive: #94212A;     --destructive-foreground: #FFF8F1;
  --success: #2E7344;         --success-foreground: #FFF8F1;
  --warning: var(--primary);         --warning-foreground: var(--primary-foreground);
  --highlight: #FFDBBB;       /* peach: selection, marks, the current place */
  --overlay: rgba(20, 18, 16, .4); --raised-border: transparent; --accent-surface: #FFDBBB;
  --shadow-xs: 0 1px 2px rgba(60, 40, 25, .06);
  --shadow-sm: 0 1px 3px rgba(60, 40, 25, .10), 0 1px 2px -1px rgba(60, 40, 25, .08);
  --shadow-md: 0 4px 6px -1px rgba(60, 40, 25, .10), 0 2px 4px -2px rgba(60, 40, 25, .08);
  --shadow-lg: 0 10px 15px -3px rgba(60, 40, 25, .12), 0 4px 6px -4px rgba(60, 40, 25, .10);

  --radius: .5rem; --radius-sm: 4px; --radius-md: 6px; --radius-lg: 8px; --radius-xl: 12px;

  /* Spectral for headings and reading (designed for on-screen editorial text); Karla for the interface;
     Geist Mono for figures only. */
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Inter", system-ui, sans-serif;      /* figures: Inter with tabular, lining numerals (see .num) */
  --display: "Inter Tight", "Inter", system-ui, sans-serif;   /* titles */
  --text-xs: 12px; --text-sm: 13px; --text-base: 14px; --text-md: 16px; --text-lg: 18px;
  --display-sm: 24px; --display-md: 32px; --display-lg: 40px;
  --reading: 19px;            /* reading prose; Settings → Appearance sets 17 / 19 / 21 */

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px;
  --space-7: 28px; --space-8: 32px; --space-9: 36px; --space-10: 40px; --space-11: 44px; --space-12: 48px;
  --container: 76rem; --measure: 42.5rem; --topbar-h: 56px;
  --gutter-l: max(16px, env(safe-area-inset-left)); --gutter-r: max(16px, env(safe-area-inset-right));

  color-scheme: light;
}
:root[data-reading="sm"] { --reading: 17px; }
:root[data-reading="lg"] { --reading: 21px; }

/* ------------------------------------------------------------------ tokens: dark (default for the owner)
   Charcoal, the dark counterpart of the white-and-ink Couture look: near-black page, off-white ink as the action colour, a peach-brown fill for selected things. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --background: #121212; --foreground: #F4F2EF;
    --card: #1A1A19; --card-foreground: #F4F2EF; --popover: #1F1E1D; --popover-foreground: #F4F2EF;
    --muted: #242322; --muted-foreground: #ACA49C;
    --border: #2F2D2B; --input: #45413D;
    --primary: #F4F2EF; --primary-foreground: #121212;
    --secondary: #262524; --secondary-foreground: #F4F2EF;
    --price: var(--primary); --price-soft: color-mix(in srgb, var(--primary) 12%, transparent);
    --destructive: #E8797A; --destructive-foreground: #130E0A;
    --success: #83D494; --success-foreground: #130E0A;
    --warning: var(--primary); --warning-foreground: var(--primary-foreground);
    --highlight: #5C4632;
    --overlay: rgba(0, 0, 0, .6); --raised-border: var(--input); --accent-surface: #3A2E25;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45), 0 1px 2px -1px rgba(0, 0, 0, .4);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .5), 0 2px 4px -2px rgba(0, 0, 0, .45);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .55), 0 4px 6px -4px rgba(0, 0, 0, .5);
    --foreground-soft: #DDD8D2;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --background: #121212; --foreground: #F4F2EF;
  --card: #1A1A19; --card-foreground: #F4F2EF; --popover: #1F1E1D; --popover-foreground: #F4F2EF;
  --muted: #242322; --muted-foreground: #ACA49C;
  --border: #2F2D2B; --input: #45413D;
  --primary: #F4F2EF; --primary-foreground: #121212;
  --secondary: #262524; --secondary-foreground: #F4F2EF;
  --price: var(--primary); --price-soft: color-mix(in srgb, var(--primary) 12%, transparent);
  --destructive: #E8797A; --destructive-foreground: #130E0A;
  --success: #83D494; --success-foreground: #130E0A;
  --warning: var(--primary); --warning-foreground: var(--primary-foreground);
  --highlight: #5C4632;
  --overlay: rgba(0, 0, 0, .6); --raised-border: var(--input); --accent-surface: #3A2E25;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .45), 0 1px 2px -1px rgba(0, 0, 0, .4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .5), 0 2px 4px -2px rgba(0, 0, 0, .45);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .55), 0 4px 6px -4px rgba(0, 0, 0, .5);
  --foreground-soft: #DDD8D2;
  color-scheme: dark;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar-h) + 8px); }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--background); color: var(--foreground);
  font-family: var(--sans); font-size: var(--text-base); line-height: 1.5; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: var(--radius-sm); }
::selection { background: color-mix(in srgb, var(--highlight) 70%, transparent); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; font-weight: 600; }
h1 { font-family: var(--display); font-size: var(--display-md); line-height: 1.1; letter-spacing: -.03em; font-weight: 600; }
h2 { font-family: var(--display); font-size: var(--display-sm); line-height: 1.2; letter-spacing: -.025em; font-weight: 600; }
h3 { font-size: var(--text-md); line-height: 1.4; }
h4 { font-size: var(--text-base); line-height: 1.4; }
p { margin: 0; }
img, svg { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
kbd { font-family: var(--sans); }
code, pre { font-family: var(--mono); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* type helpers (figures are mono; nothing else is) */
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums lining-nums; font-feature-settings: "tnum" 1, "lnum" 1; letter-spacing: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.num { font-size: inherit; }
.text-xs { font-size: var(--text-xs); } .text-sm { font-size: var(--text-sm); } .text-base { font-size: var(--text-base); }
.text-md { font-size: var(--text-md); } .text-lg { font-size: var(--text-lg); }
.display-sm, .display-md, .display-lg { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.display-sm { font-size: var(--display-sm); } .display-md { font-size: var(--display-md); } .display-lg { font-size: var(--display-lg); }
.muted { color: var(--muted-foreground); }
.price { color: var(--price); }
.strong { font-weight: 600; }
.reading { font-family: var(--serif); font-size: var(--reading); line-height: 1.65; }

/* ------------------------------------------------------------------ top bar (one sticky row) */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--background); border-bottom: 1px solid var(--border);
  padding-top: env(safe-area-inset-top); }
.topbar-inner { max-width: var(--container); margin: 0 auto; height: var(--topbar-h); padding: 0 var(--gutter-r) 0 var(--gutter-l);
  display: flex; align-items: center; gap: var(--space-2); }
.wordmark { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--foreground); text-decoration: none;
  letter-spacing: -.01em; margin-right: var(--space-4); white-space: nowrap; border-radius: var(--radius-sm); }
.topnav { display: flex; align-items: center; gap: var(--space-1); }
.topnav-link { display: inline-flex; align-items: center; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-md);
  font-size: var(--text-base); color: var(--muted-foreground); text-decoration: none; white-space: nowrap; transition: color .15s, background-color .15s; }
.topnav-link:hover { color: var(--foreground); background: var(--muted); text-decoration: none; }
.topnav-link[aria-current="page"] { color: var(--foreground); font-weight: 600; }
.topnav-link:focus-visible { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
.topbar-spacer { flex: 1; }
.topbar .search-trigger { width: 15rem; justify-content: flex-start; color: var(--muted-foreground); font-weight: 400; }
.topbar .search-trigger .kbd { margin-left: auto; }
.topbar-phone { display: none; }
.topbar .acct { display: flex; align-items: center; gap: var(--space-1); }
@media (max-width: 720px) {
  .topnav, .topbar .search-trigger, .topbar .topbar-more, .topbar .acct { display: none; }
  .topbar-phone { display: flex; gap: var(--space-1); }
  .wordmark { margin-right: auto; }
}
.nav-sheet-list { display: grid; gap: 2px; }
.nav-sheet-list a { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-md);
  color: var(--foreground); text-decoration: none; font-size: var(--text-md); }
.nav-sheet-list a:hover { background: var(--muted); }
.nav-sheet-list a[aria-current="page"] { background: var(--muted); font-weight: 600; }
.nav-sheet-list .separator { margin: var(--space-2) 0; }
.count-badge { margin-left: auto; }

/* ------------------------------------------------------------------ page layout */
main, main.container { flex: 1 0 auto; width: 100%; max-width: var(--container); margin: 0 auto;
  padding: var(--space-8) var(--gutter-r) var(--space-12) var(--gutter-l);
  display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: var(--space-8); }
@media (max-width: 720px) { main, main.container { padding-top: var(--space-6); gap: var(--space-6); } }

.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-6); flex-wrap: wrap; }
.page-header > :first-child { min-width: 0; display: grid; gap: var(--space-1); }
.page-header h1 { font-size: var(--display-md); }
.page-header .page-meta { color: var(--muted-foreground); font-size: var(--text-base); }
.page-header .page-actions { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
@media (max-width: 720px) { .page-header h1 { font-size: 28px; } }

.section { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); align-content: start; }
.section-header { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; min-height: 32px; }
.section-header > :first-child { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.section-header h2 { font-size: var(--display-sm); }
.section-header h2.sans, .section-header h3 { font-family: var(--sans); font-size: var(--text-lg); font-weight: 600; letter-spacing: 0; }
.section-header .section-actions { display: flex; align-items: center; gap: var(--space-2); }
.stack { display: grid; gap: var(--space-4); align-content: start; }
.cluster { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

.site-footer { width: 100%; max-width: var(--container); margin: 0 auto; padding: var(--space-6) var(--gutter-r) calc(var(--space-8) + env(safe-area-inset-bottom)) var(--gutter-l);
  border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--muted-foreground);
  display: flex; gap: var(--space-4); flex-wrap: wrap; justify-content: space-between; }
.site-footer .linkish { color: inherit; }

/* ------------------------------------------------------------------ base elements and small shared pieces */
.small { font-family: var(--sans); font-size: var(--text-sm); color: var(--foreground-soft); line-height: 1.5; }
section { display: grid; gap: var(--space-4); }
input[type=text]:not([class]), input[type=number]:not([class]), input[type=email]:not([class]), textarea:not([class]), select:not([class]) {
  font-family: var(--sans); font-size: var(--text-base); color: var(--foreground); background: var(--background);
  border: 1px solid var(--input); border-radius: var(--radius-md); padding: 0 var(--space-3); min-height: 36px; box-shadow: var(--shadow-xs); }
textarea:not([class]) { padding: var(--space-2) var(--space-3); }
input:not([class]):focus-visible, textarea:not([class]):focus-visible, select:not([class]):focus-visible {
  outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
textarea { width: 100%; resize: vertical; line-height: 1.5; }
.row { display: flex; gap: var(--space-2) var(--space-3); align-items: center; flex-wrap: wrap; }

/* tags and chips: small Badge-like labels inside prose and tables */
.tag, .chip { display: inline-flex; align-items: center; gap: 4px; font-family: var(--sans); font-size: var(--text-xs); font-weight: 600;
  line-height: 1; padding: 4px 8px; border-radius: var(--radius-md); border: 1px solid var(--border); color: var(--foreground);
  background: transparent; white-space: nowrap; text-decoration: none; vertical-align: middle; }
.tag { color: var(--muted-foreground); font-weight: 400; }
.tag.live { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
.tag.pro { color: var(--foreground); background: var(--secondary); border-color: transparent; font-weight: 600; }
.chip { font-family: var(--mono); font-weight: 400; color: var(--muted-foreground); padding: 2px 6px; border-radius: var(--radius-sm); }
a.chip:hover { color: var(--foreground); border-color: var(--muted-foreground); }

/* trigger states: glyph + word (+ colour) */
.state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: var(--text-xs); font-weight: 600; white-space: nowrap; }
.glyph { width: 10px; height: 10px; border-radius: 50%; flex: none; border: 2px solid currentColor; display: inline-block; }
.s-FIRED { color: var(--destructive); } .s-FIRED .glyph { background: currentColor; }
.s-PARTIAL { color: var(--warning); } .s-PARTIAL .glyph { background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.s-NOT-FIRED { color: var(--success); }
.s-UNRESOLVED { color: var(--muted-foreground); } .s-UNRESOLVED .glyph { border-style: dashed; }
.s-PENDING { color: var(--muted-foreground); } .s-PENDING .glyph { border-width: 1.5px; border-style: dotted; }

/* plates and cards */
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg text { font-family: var(--mono); }

/* library */
.tbl-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: var(--text-base); }
th { text-align: left; font-weight: 600; font-size: var(--text-xs); letter-spacing: .04em; text-transform: uppercase; color: var(--muted-foreground); padding: .5rem .75rem .5rem 0; border-bottom: 1px solid var(--border); vertical-align: bottom; }
td { padding: .55rem .75rem .55rem 0; border-bottom: 1px solid var(--border); vertical-align: top; color: var(--foreground-soft); }
td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: var(--text-sm); color: var(--foreground); white-space: nowrap; }
td.n, th.n { text-align: right; }
table.list td:first-child { color: var(--foreground); }
table.list tr:hover td { background: var(--muted); }
table.list a.t { color: var(--foreground); text-decoration: none; font-weight: 600; }
table.list a.t:hover { text-decoration: underline; }

/* report text */
.prose { display: grid; gap: .85rem; min-width: 0; overflow-wrap: break-word; }
/* Single shrinkable column all the way down, so one long token (a URL, a base64 image the
   renderer left as text) cannot widen the track past the screen. Tables scroll in .tbl-wrap. */
.prose { grid-template-columns: minmax(0, 1fr); }
.prose > * { min-width: 0; }
.prose p, .prose li, .prose blockquote, .prose h3, .prose h4, .prose code { overflow-wrap: anywhere; }
.prose > p, .prose > ul, .prose > ol, .prose > blockquote { max-width: var(--measure); }
.prose h3 { font-size: 1.12rem; font-weight: 600; margin-top: .6rem; }
.prose h4 { font-size: 1rem; font-weight: 600; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.prose blockquote { margin: 0; padding-left: 1rem; border-left: 2px solid var(--border); color: var(--foreground-soft); }
.prose em { color: var(--foreground-soft); }
.prose table { font-size: .82rem; }
.prose td, .prose th { padding: .45rem .7rem .45rem 0; }
.prose pre { background: var(--muted); border-radius: 8px; padding: .8rem 1rem; overflow-x: auto; font-size: .78rem; margin: 0; }
.prose img { max-width: 100%; height: auto; display: block; }
.prose hr { border: 0; border-top: 1px solid var(--border); width: 100%; }
.prose details.meta summary { font-family: var(--sans); font-size: .8rem; color: var(--muted-foreground); cursor: pointer; }
.cite { font: inherit; font-family: var(--mono); font-size: .9em; font-variant-numeric: tabular-nums; background: none; border: 0; padding: 0; color: inherit; cursor: pointer; border-bottom: 1px dotted var(--muted-foreground); }
.cite:hover, .cite[aria-expanded="true"] { color: var(--foreground); border-bottom-color: var(--foreground); }
.cite-chip { font-family: var(--mono); font-size: .66rem; color: var(--muted-foreground); background: none; border: 1px solid var(--border); border-radius: 4px; padding: 0 .25rem; cursor: pointer; vertical-align: .1em; }
.cite-chip:hover { color: var(--foreground); border-color: var(--muted-foreground); }
.dcpop { position: absolute; z-index: 40; width: min(26rem, calc(100vw - 2rem)); font-family: var(--sans); font-size: .8rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: .8rem .95rem; box-shadow: 0 8px 28px rgba(0,0,0,.14); display: grid; gap: .3rem; line-height: 1.45; }
.dcpop .row { color: var(--foreground-soft); gap: .3rem .9rem; }
.dcpop b { color: var(--foreground); }
.dcpop .src { overflow-wrap: anywhere; color: var(--muted-foreground); font-family: var(--mono); font-size: .7rem; }
.dcpop .x { position: absolute; top: .35rem; right: .5rem; border: 0; background: none; color: var(--muted-foreground); cursor: pointer; font-size: 1rem; }

/* ask */
.ask-form { display: grid; gap: .6rem; }
.qa { display: grid; gap: .5rem; border-top: 1px solid var(--border); padding-top: .9rem; }
.qa .q { font-family: var(--sans); font-weight: 600; font-size: .95rem; }
.qa .a { display: grid; gap: .7rem; font-size: 1.02rem; }
.qa .a table { font-size: .82rem; }
.qa .meta { font-family: var(--sans); font-size: .74rem; color: var(--muted-foreground); }
.status { font-family: var(--sans); font-size: .82rem; color: var(--foreground-soft); display: flex; gap: .5rem; align-items: center; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted-foreground); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .status::before { animation: none; } }
.note a { font-family: var(--mono); font-size: .68rem; text-decoration: none; padding: 0 .15rem; }
.sources { font-family: var(--sans); font-size: .78rem; color: var(--foreground-soft); display: grid; gap: .35rem; margin: 0; padding-left: 1.2rem; }
.sources q { color: var(--foreground); }
.examples { display: flex; gap: .4rem; flex-wrap: wrap; }
.examples button { font-family: var(--sans); font-size: .8rem; border: 1px solid var(--border); background: var(--card); color: var(--foreground-soft); border-radius: 999px; padding: .3rem .7rem; cursor: pointer; }
.examples button:hover { color: var(--foreground); border-color: var(--muted-foreground); }
.err { font-family: var(--sans); font-size: .86rem; color: var(--destructive); }

/* diff */
mark { background: color-mix(in srgb, var(--highlight) 65%, transparent); color: var(--foreground); padding: 0 .1em; border-radius: 2px; }

/* ---------------------------------------------------------------- platform: account, access, plans */
.acct { display: flex; align-items: center; gap: .5rem; font-family: var(--sans); font-size: .85rem; }
.acct a:not(.btn) { color: var(--muted-foreground); text-decoration: none; padding: .3rem .6rem; border-radius: 6px; }
.acct a.on, .acct a:not(.btn):hover { color: var(--foreground); background: var(--muted); }
.viewas { max-width: var(--container); margin: .6rem auto 0; padding: .5rem 1rem; display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; font-family: var(--sans); font-size: .8rem; color: var(--foreground-soft); background: var(--muted); border-radius: var(--radius-lg); }
form.inline { display: inline; }
.linkish { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pp-pay { margin: 1.4rem 0; }
.pp-pay p.pitch { font-family: var(--serif); font-size: 1.15rem; max-width: 36rem; margin: 0; }
.pp-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.pp-price { font-family: var(--serif); font-size: 1.9rem; margin: 0; }
.locked-row td { color: var(--foreground-soft); }
@media (max-width: 720px) { .pp-plans { grid-template-columns: minmax(0, 1fr); } }

/* legacy serif reading surfaces (body is sans now) */
.prose, .qa .a, .pp-pay p.pitch, .pp-price { font-family: var(--serif); }
.prose { font-size: var(--reading); line-height: 1.65; }
.prose h3, .prose h4 { font-family: var(--serif); }
.prose table, .prose .tbl-wrap { font-family: var(--sans); }
.topbar-more[data-current] { background: var(--accent-surface); }

/* settings and other narrow tool pages */
.settings { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); max-width: 48rem; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); flex-wrap: wrap; }
.narrow { max-width: 32rem; }
.narrow-md { max-width: 48rem; }

/* platform: plans, paywall, sign-in (migrated to components) */
.viewas { max-width: var(--container); margin: var(--space-3) auto 0; width: calc(100% - 32px); padding: var(--space-2) var(--space-4); font-size: var(--text-sm); color: var(--foreground); border: 1px solid var(--border); background: var(--card); }
.pp-pay { margin: var(--space-6) 0; }
.pp-pay .pitch { font-family: var(--serif); font-size: var(--text-lg); max-width: 36rem; }
.card-title svg { vertical-align: -2px; color: var(--muted-foreground); }
.pp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); align-items: stretch; }
.pp-plan:not(.card) { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-6); padding: var(--space-6) 0; }
.pp-plan h2.sans { font-family: var(--sans); font-size: var(--text-lg); font-weight: 600; letter-spacing: 0; }
.pp-price { font-family: var(--display); font-size: var(--display-md); font-weight: 600; line-height: 1.1; }
.pp-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.pp-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.pp-list li svg { margin-top: 3px; color: var(--success); flex: none; }
.input.code { font-family: var(--mono); font-size: var(--text-lg); letter-spacing: .3em; height: 44px; }
.btn.pp-wide { width: 100%; }
.topbar .acct .btn[aria-current="page"] { background: var(--muted); }
