/* PlainQuant: one stylesheet, no scripts (CSP: style-src 'self').
   Scale: 4px grid; controls 36px (small 32px); text 14px, secondary 13px; panels radius 12px, controls 8px. */
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/newsreader-5.3.0-latin-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/newsreader-5.3.0-latin-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Palette: deep navy + white, one restrained accent (link blue). Serif (Newsreader, OFL) for headlines only. */
:root {
  --bg: #fff; --surface: #fff; --surface-2: #f4f6f9; --fg: #0f1b2d; --muted: #4a5566; --subtle: #5f6b7b;
  --line: #e2e6ec; --line-strong: #c9d0da; --navy: #0b2545; --accent: #0b2545; --accent-hover: #173a66; --accent-fg: #fff;
  --accent-soft: rgba(29, 78, 137, .06); --accent-soft-2: rgba(29, 78, 137, .14); --accent-text: #1d4e89;
  --good: #137a3a; --good-soft: rgba(19, 122, 58, .1); --warn: #a24b06; --warn-soft: rgba(180, 83, 9, .1);
  --bad: #b42020; --bad-soft: rgba(185, 28, 28, .08);
  --foot-bg: #0b2545; --foot-fg: #c5d0df; --foot-strong: #fff; --foot-line: rgba(255, 255, 255, .14);
  --r: 6px; --r-sm: 4px; --ring: 0 0 0 3px rgba(29, 78, 137, .28);
  --shadow: 0 1px 2px rgba(15, 27, 45, .05);
  --shadow-lift: 0 1px 2px rgba(15, 27, 45, .04), 0 6px 16px -6px rgba(15, 27, 45, .12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "PingFang TC", "Noto Sans TC", sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", "PingFang TC", "Noto Sans TC", serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --search-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.75' fill='none' stroke='%236b7280' stroke-width='1.5'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a111d; --surface: #0f1828; --surface-2: #162236; --fg: #e8edf4; --muted: #a9b4c4; --subtle: #8c98aa;
    --line: #1e2a3e; --line-strong: #2d3b53; --navy: #e8edf4; --accent: #a8c3ee; --accent-hover: #c2d5f4; --accent-fg: #0a111d;
    --accent-soft: rgba(168, 195, 238, .08); --accent-soft-2: rgba(168, 195, 238, .17); --accent-text: #a8c3ee;
    --good: #4ade80; --good-soft: rgba(74, 222, 128, .12); --warn: #fbbf24; --warn-soft: rgba(251, 191, 36, .1);
    --bad: #f87171; --bad-soft: rgba(248, 113, 113, .1); --ring: 0 0 0 3px rgba(168, 195, 238, .35);
    --foot-bg: #070c15; --foot-fg: #a9b4c4; --foot-strong: #e8edf4; --foot-line: #1e2a3e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --shadow-lift: 0 6px 16px -4px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* ---------- base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; font: 14px/1.55 var(--font); color: var(--fg);
  background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.011em; font-weight: 600; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; color: var(--navy); }
h1 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; }
h2 { font-size: 20px; margin: 0 0 12px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 8px; }
h3 { font-size: 14px; margin: 24px 0 8px; }
p { margin: 0 0 8px; }
ul, ol { margin: 0 0 8px; padding-left: 20px; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
s { text-decoration-thickness: 1.5px; }
strong { font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.note { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.note a { color: inherit; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.note a:hover { color: var(--fg); text-decoration-color: currentColor; }
.error { color: var(--bad); }
.up { color: var(--good); } .down { color: var(--bad); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
main { flex: 1 0 auto; width: 100%; max-width: 1100px; margin: 0 auto; padding: 32px 24px 64px; }
main.narrow { max-width: 420px; padding-top: 64px; }
main > section + section, main > section + p, main > p + section, main > .page-head + section { margin-top: 16px; }
.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.brand { display: inline-flex; align-items: center; min-height: 32px; font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--navy); letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { color: var(--navy); }
.top nav { display: flex; align-items: center; gap: 2px; }
.nav-link { display: inline-flex; align-items: center; height: 32px; color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 0 10px; border-radius: var(--r-sm); }
.nav-link:hover { color: var(--fg); background: var(--surface-2); }
.top nav .sep { width: 1px; height: 20px; background: var(--line); margin: 0 6px; }
.who { color: var(--subtle); font-size: 13px; padding: 0 8px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
footer { background: var(--foot-bg); color: var(--foot-fg); font-size: 12.5px; border-top: 1px solid var(--foot-line); }
footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; padding-top: 28px; padding-bottom: 32px; }
footer a, footer a:hover { color: var(--foot-strong); }
footer :focus-visible { outline-color: var(--foot-strong); }
footer p { margin: 0; max-width: 64ch; }
footer nav { display: flex; gap: 20px; }
footer nav a { text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
form.inline { display: inline-flex; }

/* ---------- buttons: 36px default, 32px small */
button, a.button, a.secondary, a.ghost { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px;
  padding: 0 14px; font: inherit; font-size: 14px; font-weight: 550; line-height: 1; border-radius: var(--r-sm);
  border: 1px solid transparent; background: var(--accent); color: var(--accent-fg); cursor: pointer; white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s, box-shadow .12s; text-decoration: none; }
button:hover, a.button:hover { background: var(--accent-hover); color: var(--accent-fg); }
button[disabled] { opacity: .5; cursor: not-allowed; }
a.secondary, button.secondary { background: var(--surface); color: var(--fg); border-color: var(--line-strong); box-shadow: var(--shadow); }
a.secondary:hover, button.secondary:hover { background: var(--surface-2); color: var(--fg); }
a.ghost, button.ghost { background: transparent; color: var(--muted); }
a.ghost:hover, button.ghost:hover { background: var(--surface-2); color: var(--fg); }
button.danger { background: transparent; color: var(--bad); }
button.danger:hover { background: var(--bad-soft); color: var(--bad); }
.top button, .top a.button, .btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.actions, form.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0; }
.tests { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }

/* ---------- inputs: 36px */
input[type=email], input[type=search], input[type=number], input[type=date], input[type=text], select, textarea {
  width: 100%; height: 36px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--fg); background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s; }
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select { appearance: none; -webkit-appearance: none; padding-right: 28px; background: var(--surface) var(--select-arrow) no-repeat right 10px center; }
input:hover, select:hover, textarea:hover { border-color: var(--subtle); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
input[type=number] { font-variant-numeric: tabular-nums; }
::placeholder { color: var(--subtle); opacity: 1; }
label { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
input[type=date]::-webkit-calendar-picker-indicator { opacity: .55; }

/* ---------- surfaces */
.panel, .honest, .echo, .stock { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; box-shadow: var(--shadow); }
.panel > :last-child, .honest > :last-child, .echo > :last-child, .stock > :last-child { margin-bottom: 0; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h2, .panel-head h1, .panel-head p { margin: 0; }
.callout { border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; margin: 0 0 12px; background: var(--surface-2); color: var(--muted); }
.errors, .callout.bad { background: var(--bad-soft); color: var(--bad); border-radius: var(--r-sm); padding: 10px 14px; margin: 0 0 16px; font-size: 13.5px; }
.errors p { margin: 0 0 4px; font-weight: 600; } .errors ul { margin: 0; padding-left: 18px; }
.stretched { background: var(--warn-soft); color: var(--fg); border-radius: var(--r-sm); padding: 10px 12px; margin: 12px 0; font-size: 13.5px; }
.echo { background: var(--accent-soft); border-color: var(--accent-soft-2); box-shadow: none; margin-top: 16px; }
.echo h2 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-text); margin: 0 0 4px; }
.echo p:not(.note) { font-size: 14.5px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head > div:first-child { flex: 1 1 360px; min-width: 0; }
.page-head .lede { color: var(--muted); margin: 0; max-width: 72ch; }
.status { display: flex; align-items: center; gap: 10px; font-size: 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 16px; margin: 0; }
.status[role=status]::before { content: ""; width: 14px; height: 14px; border-radius: 50%; flex: none;
  border: 2px solid var(--accent-soft-2); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.status.error { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .status[role=status]::before { animation: none; } }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px;
  font-weight: 550; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--subtle); }
.pill.b-strong::before { background: var(--good); } .pill.b-good::before { background: #3fa66b; }
.pill.b-mixed::before { background: var(--warn); } .pill.b-weak::before { background: var(--bad); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 0; }

/* ---------- home: hero, then bands separated by hairlines */
main.home { padding-top: 0; }
.hero { padding: 72px 0 64px; max-width: 760px; }
.hero h1 { font-size: 48px; line-height: 1.08; font-weight: 400; letter-spacing: -.02em; margin: 0 0 16px; max-width: 15em; text-wrap: balance; }
.tagline { font-size: 17px; color: var(--muted); margin: 0 0 28px; max-width: 36em; }
.tagline a { font-weight: 550; white-space: nowrap; }
form.check { display: flex; gap: 8px; max-width: 560px; margin: 0; }
form.check input { flex: 1; min-width: 0; height: 44px; padding: 0 12px 0 38px; font-size: 15px; background: var(--surface) var(--search-icon) no-repeat 13px center; box-shadow: var(--shadow-lift); }
form.check button { height: 44px; padding: 0 22px; }
form.check + .note { margin: 10px 0 0; }
.band { border-top: 1px solid var(--line); padding: 48px 0; }
main.home > section + section { margin-top: 0; }
.band-head { margin-bottom: 28px; }
.band-head h2 { font-size: 28px; font-weight: 400; margin: 0; letter-spacing: -.01em; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 16px; }
.steps li::before { content: "0" counter(step); display: block; font-family: var(--serif); font-size: 15px; color: var(--accent-text); margin-bottom: 8px; font-variant-numeric: lining-nums; }
.steps h3 { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 0 0 8px; letter-spacing: -.005em; }
.steps h3 a { color: var(--navy); display: inline-flex; align-items: center; min-height: 32px; }
.steps h3 a:hover { color: var(--accent-text); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.steps p { color: var(--muted); margin: 0; max-width: 34ch; }
.more-link { margin: 28px 0 0; font-weight: 550; }
.more-link a { display: inline-flex; align-items: center; min-height: 32px; }
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 20px; }
.figures > div { display: flex; flex-direction: column; padding: 0 32px; border-left: 1px solid var(--line); min-width: 0; }
.figures > div:first-child { padding-left: 0; border-left: 0; }
.figures dt { order: 2; font-weight: 600; font-size: 14px; color: var(--fg); margin: 6px 0 2px; }
.figures dd { margin: 0; }
.figures .figure { order: 1; font-family: var(--serif); font-size: 56px; line-height: 1; font-weight: 400; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.figures .note { order: 3; margin: 0; }
.figures-band > .note { margin: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 32px; }
.about .band-head { margin: 0; }
.about-body { border-left: 2px solid var(--navy); padding-left: 24px; }
.statement { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--fg); margin: 0 0 16px; max-width: 40em; }
.quiet { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.rule .section-head { margin-bottom: 16px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.section-head h2 { margin: 0; font-size: 28px; font-weight: 400; letter-spacing: -.01em; }
.section-head .note { margin: 0; }
.composer { display: flex; align-items: flex-end; gap: 8px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r);
  padding: 8px; box-shadow: var(--shadow); transition: border-color .12s, box-shadow .12s; }
.composer:focus-within { border-color: var(--accent-text); box-shadow: var(--ring); }
.composer textarea { flex: 1; border: 0; background: transparent; box-shadow: none; padding: 7px 6px; min-height: 52px; resize: none; }
.composer textarea:focus { box-shadow: none; }
.pick { margin: 24px 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color .12s, background-color .12s; }
.cards .card:has(a):hover { border-color: var(--line-strong); background: var(--surface-2); }
.card:has(a:focus-visible) { box-shadow: var(--ring); }
.card a:focus-visible { outline: none; }
.card h3 { margin: 0 0 2px; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; }
.card a { color: var(--fg); }
.card a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card a h3::after { content: "→"; color: var(--subtle); transition: color .12s, transform .12s; }
.card:hover a h3::after { color: var(--accent-text); transform: translateX(2px); }
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- stock check */
.check-head { margin-bottom: 16px; }
.check-head form.check { margin: 0; max-width: 560px; }
.check-head form.check input, .check-head form.check button { height: 36px; }
.check-head form.check input { box-shadow: var(--shadow); font-size: 14px; }
.check-head .note { margin: 6px 0 0; }
.stock h1 { font-size: 28px; margin: 0; }
.verdict { font-size: 15px; font-weight: 550; margin: 0 0 8px; }
.rows { list-style: none; padding: 0; margin: 0 -24px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rows li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 8px 24px; min-height: 44px; }
.rows li + li { border-top: 1px solid var(--line); }
.rows li:hover { background: var(--surface-2); }
.rows li > a { min-width: 72px; color: var(--fg); }
.rows li > a:hover { color: var(--accent-text); }
.rows .pills { margin: 0; }
.why { margin: 16px 0 0; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 12px; }
.why summary, details.more summary { cursor: pointer; color: var(--fg); font-weight: 500; font-size: 13px; list-style: none;
  display: inline-flex; align-items: center; min-height: 32px; }
.why summary::-webkit-details-marker, details.more summary::-webkit-details-marker { display: none; }
.why summary::after, details.more summary::after { content: ""; width: 12px; height: 12px; margin-left: 6px; background: var(--select-arrow) center / 12px no-repeat; transition: transform .15s; }
.why[open] summary::after, details.more[open] summary::after { transform: rotate(180deg); }
.why ul { padding-left: 18px; margin: 4px 0 0; display: grid; gap: 4px; }

/* ---------- result card */
.honest h2 { font-size: 22px; margin: 0 0 16px; }
.honest .numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.honest .numbers > div { padding: 14px 16px; min-width: 0; }
.honest .numbers > div + div { border-left: 1px solid var(--line); }
.honest .numbers .est { background: var(--accent-soft); }
.honest .label { display: block; color: var(--muted); font-size: 12.5px; font-weight: 500; margin-bottom: 2px; }
.honest .big { font-family: var(--serif); font-size: 40px; line-height: 1.1; font-weight: 400; letter-spacing: -.02em; font-variant-numeric: lining-nums tabular-nums; }
.honest .raw .big { color: var(--subtle); font-size: 30px; }
.honest .est .big { color: var(--navy); }
.honest .unit { color: var(--muted); font-size: 13px; }
.facts { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
.facts li { display: flex; gap: 8px; font-size: 13.5px; }
.facts li::before { content: ""; width: 4px; height: 4px; margin-top: 9px; border-radius: 50%; background: var(--subtle); flex: none; }
.range { margin: 0; }
.chips { display: grid; margin: 12px 0 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.chip + .chip { border-top: 1px solid var(--line); }
.chip summary { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; cursor: pointer; font-size: 13.5px; list-style: none; }
.chip summary b { font-weight: 550; }
.chip summary span { color: var(--muted); }
.chip summary::-webkit-details-marker { display: none; }
.chip summary::before { content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--subtle); }
.chip.pass summary::before { background: var(--good); box-shadow: 0 0 0 3px var(--good-soft); }
.chip.warn summary::before { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.chip summary::after { content: ""; width: 12px; height: 12px; margin-left: auto; flex: none; background: var(--select-arrow) center / 12px no-repeat; transition: transform .15s; }
.chip[open] summary::after { transform: rotate(180deg); }
.chip summary:hover { background: var(--surface-2); }
.chip p { margin: 0; padding: 0 12px 10px 30px; color: var(--muted); font-size: 13px; }
.chart { margin: 0; }
.chart figcaption { margin: 8px 0 0; }
.chart-narrow { display: none; }
svg.equity { width: 100%; height: auto; display: block; }
svg.equity .line { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
svg.equity .grid { stroke: var(--line); stroke-width: 1; }
svg.equity .axis { fill: var(--subtle); font-size: 11px; font-family: var(--font); }
svg.equity .fold0 { fill: var(--accent-soft); }
svg.equity .fold1 { fill: var(--accent-soft-2); }
svg.equity .unlock { stroke: var(--warn); stroke-width: 1; stroke-dasharray: 3 3; }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; border: 1px solid var(--accent); }
.swatch.fold0 { background: var(--accent-soft); } .swatch.fold1 { background: var(--accent-soft-2); }
.trades td.na { color: var(--subtle); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.stats > div { padding: 10px 14px; border-left: 1px solid var(--line); margin-left: -1px; }
.stats dt { color: var(--muted); font-size: 12.5px; }
.stats dd { text-align: left; font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }
dd { margin: 0; font-variant-numeric: tabular-nums; }
.scroll { overflow: auto; border: 1px solid var(--line); border-radius: var(--r-sm); }
.scroll.tall { max-height: 480px; }
table.trades { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
.trades th { position: sticky; top: 0; background: var(--surface-2); color: var(--muted); font-weight: 500; font-size: 12.5px; z-index: 1; }
.trades th, .trades td { text-align: left; padding: 0 14px; height: 36px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.trades th.r, .trades td.r { text-align: right; }
.trades tbody tr:last-child td { border-bottom: 0; }
.trades tbody tr:hover td { background: var(--surface-2); }
.trades td:first-child { font-weight: 550; }
.trades tr.total td { font-weight: 600; background: var(--surface-2); }
.tag { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
details.badge { display: inline-block; }
details.badge summary { cursor: pointer; font-size: 12px; color: var(--warn); }
details.badge p { font-size: 12.5px; margin: 4px 0; white-space: normal; max-width: 36ch; }
.unlocks-ahead ul { padding-left: 18px; }
details.more { margin-top: 12px; }
details.more .note { margin: 4px 0 0; font-size: 12.5px; }

/* ---------- rule form: one panel, label column + fields column */
.runform { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.runform > .verdict { margin: 0; padding: 14px 24px; border-bottom: 1px solid var(--line); font-size: 14px; }
.runform fieldset { margin: 0; border: 0; padding: 20px 24px; min-width: 0; display: grid; grid-template-columns: 240px minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 4px 32px; }
.runform fieldset + fieldset { border-top: 1px solid var(--line); }
.runform legend { float: left; padding: 0; margin: 0; align-self: start; font-size: 14px; font-weight: 600; color: var(--fg); }
.runform legend, .runform .side { grid-column: 1; }
.runform .side { margin: 0; font-size: 12.5px; }
.runform .body { grid-column: 2; grid-row: 1 / span 2; min-width: 0; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px 12px; }
.filter-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 72px minmax(0, 120px); gap: 8px; align-items: center; flex-direction: row; }
.filter-row + .filter-row { margin-top: 8px; }
.filter-row > span { font-size: 13px; font-weight: 500; color: var(--muted); }
.submit-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 24px;
  border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.submit-bar .note { margin: 0; }

/* ---------- plans */
.plans { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 720px; gap: 16px; }
.plans .card { padding: 20px; display: flex; flex-direction: column; gap: 8px; border-radius: var(--r); box-shadow: var(--shadow); }
.plans .card h3 { font-size: 14px; color: var(--muted); font-weight: 550; }
.plans .card p { font-size: 13.5px; display: block; overflow: visible; color: var(--fg); }
.plans .card p.note { color: var(--muted); font-size: 12.5px; }
.plans .card.featured { border-color: var(--navy); box-shadow: inset 0 3px 0 var(--navy); }
.plans .card .big { font-family: var(--serif); font-size: 36px; line-height: 1.1; font-weight: 400; letter-spacing: -.02em; color: var(--navy); }
.plans .card .big .unit { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plans form { margin-top: auto; padding-top: 8px; } .plans form button { width: 100%; }

/* ---------- editorial pages (method): eyebrow + serif lead, numbered chapters */
.lead { padding: 40px 0 32px; margin: 0; }
.lead h1 { font-size: 44px; font-weight: 400; letter-spacing: -.02em; margin: 0 0 16px; }
.lead .lede { font-size: 18px; line-height: 1.55; max-width: 44em; }
main.editorial > .chapter { margin-top: 0; }
.chapter { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px 48px; border-top: 1px solid var(--line); padding: 40px 0; }
.chapter > h2 { font-size: 24px; font-weight: 400; margin: 0; }
.chapter-body { min-width: 0; }
.chapter-body > p, .principles p { max-width: 68ch; }
.chapter-body > p { font-size: 15px; line-height: 1.65; }
.chapter-body h3 { font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--navy); margin: 32px 0 10px; }
.principles { list-style: none; padding: 0; margin: 16px 0 0; counter-reset: step; }
.principles li { counter-increment: step; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 8px; padding: 20px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.principles li::before { content: "0" counter(step); grid-row: 1 / span 2; font-family: var(--serif); font-size: 17px; color: var(--accent-text); line-height: 1.35; }
.principles h3 { margin: 0 0 6px; }
.principles p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.chapter .verdict { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.45; color: var(--navy); border-left: 2px solid var(--navy); padding: 2px 0 2px 16px; margin: 16px 0 20px; }
.chapter .scroll { margin: 0 0 8px; }
.chapter .trades th { white-space: normal; height: auto; padding-top: 8px; padding-bottom: 8px; line-height: 1.3; vertical-align: bottom; }
main.editorial > p:last-child { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 0; }

/* ---------- auth + messages */
.narrow h1 { font-size: 26px; }
.narrow .panel { display: grid; gap: 12px; padding: 24px; }
.narrow .panel > * { margin: 0; }
.narrow .panel form { display: grid; gap: 12px; }
.narrow .panel button, .narrow .panel a.button { width: 100%; }

@media (max-width: 760px) {
  .runform fieldset { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .runform legend, .runform .side, .runform .body { grid-column: 1; grid-row: auto; }
  .runform .body { margin-top: 8px; }
  .runform > .verdict, .submit-bar { padding: 12px 16px; }
}
@media (max-width: 640px) {
  main { padding: 20px 16px 48px; } .wrap { padding: 0 16px; } main.narrow { padding-top: 32px; }
  .who, .nav-link.wide, .top nav .sep { display: none; }
  .hero { padding: 32px 0 40px; } .hero h1 { font-size: 34px; } .tagline { font-size: 16px; margin-bottom: 20px; }
  form.check input, form.check button { height: 40px; } form.check button { padding: 0 16px; }
  .band { padding: 36px 0; } .band-head { margin-bottom: 20px; } .band-head h2, .section-head h2 { font-size: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .figures { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .figures { gap: 0; }
  .figures > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); align-items: baseline; gap: 0 12px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .figures > div:first-child { border-top: 0; padding-top: 0; }
  .figures .figure { grid-row: 1 / span 2; font-size: 40px; } .figures dt { margin: 0; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 16px; } .about-body { padding-left: 16px; } .statement { font-size: 19px; }
  h1 { font-size: 26px; } .lead { padding: 24px 0 20px; } .lead h1 { font-size: 34px; } .lead .lede { font-size: 16px; }
  .chapter { grid-template-columns: minmax(0, 1fr); padding: 28px 0; } .chapter > h2 { font-size: 22px; }
  .honest .big { font-size: 32px; } .honest .raw .big { font-size: 26px; }
  input[type=email], input[type=search], input[type=number], input[type=date], input[type=text], select, textarea { font-size: 16px; }
  .panel, .honest, .echo, .stock { padding: 16px; }
  .rows { margin: 0 -16px 12px; } .rows li { padding: 8px 16px; }
  .filter-row { grid-template-columns: 1fr 72px 1fr; } .filter-row > span { grid-column: 1 / -1; }
  .composer { flex-direction: column; align-items: stretch; } .composer button { width: 100%; }
  .submit-bar button { width: 100%; } .page-head .actions { width: 100%; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .chart:has(.chart-narrow) .chart-wide { display: none; } .chart-narrow { display: block; }
  .hide-sm { display: none; }
  .hero form.check input, .check-head form.check input { font-size: 16px; }
  footer .wrap { flex-direction: column; align-items: flex-start; }
}
