:root {
  --ink: #2a2317; --muted: #8c8579; --line: #e7dfce;
  --bg: #faf7f0; --card: #ffffff; --accent: #a8802f;
  --ok: #1f7a45; --warn: #b4442e; --paper: #8a6516;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
       color: var(--ink); background: var(--bg); }
header { background: var(--card); border-bottom: 1px solid var(--line); }
nav { max-width: 960px; margin: 0 auto; padding: 0.7rem 1rem;
      display: flex; gap: 1.2rem; align-items: center; }
.brand { font-weight: 700; margin-right: auto; }
nav a { color: var(--ink); text-decoration: none; }
nav a:hover { color: var(--accent); }
main { max-width: 960px; margin: 1.5rem auto; padding: 0 1rem; }
footer { max-width: 960px; margin: 2rem auto 1rem; padding: 1rem;
         color: var(--muted); font-size: 0.85rem; border-top: 1px solid var(--line); }
h1 { font-size: 1.5rem; } h2 { font-size: 1.15rem; }
.card { background: var(--card); border: 1px solid var(--line);
        border-radius: 8px; padding: 1rem 1.25rem; margin-bottom: 1rem; }
.error { background: #f9ece8; border: 1px solid #e8bfb2; color: var(--warn);
         padding: 0.6rem 0.9rem; border-radius: 6px; }
.notice { background: #f7efde; border: 1px solid #e0b45c;
          padding: 0.6rem 0.9rem; border-radius: 6px; }
label { display: block; margin-top: 0.8rem; font-weight: 600; font-size: 0.9rem; }
input[type=text], input[type=email], input[type=password], input[type=number] {
  width: 100%; max-width: 26rem; padding: 0.45rem 0.6rem; margin-top: 0.2rem;
  border: 1px solid var(--line); border-radius: 6px; font-size: 1rem; }
button { margin-top: 1rem; padding: 0.5rem 1.1rem; border: 0; border-radius: 6px;
         background: var(--accent); color: #fff; font-size: 1rem; cursor: pointer; }
button.danger { background: var(--warn); }
button.linklike { background: none; color: var(--ink); padding: 0; margin: 0;
                  font-size: 1rem; }
button.linklike:hover { color: var(--accent); }
form.inline { display: inline; }
.badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 99px;
         font-size: 0.75rem; font-weight: 700; }
.badge.paper { background: #f7efde; color: var(--paper); }
.badge.live { background: #f9ece8; color: var(--warn); }
.badge.paused { background: #eee8db; color: var(--muted); }
.badge.running { background: #e8f3ec; color: var(--ok); }
table { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
th, td { text-align: left; padding: 0.35rem 0.5rem; border-bottom: 1px solid var(--line);
         font-size: 0.92rem; }
th { color: var(--muted); font-weight: 600; }
.feed { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.feed li { padding: 0.35rem 0; border-bottom: 1px solid var(--line);
           font-size: 0.92rem; }
.feed .ts { color: var(--muted); font-size: 0.8rem; margin-right: 0.5rem; }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, monospace; word-break: break-all;
        background: var(--bg); padding: 0.4rem 0.6rem; border-radius: 6px;
        display: block; margin: 0.4rem 0; }
.pnl-pos { color: var(--ok); } .pnl-neg { color: var(--warn); }
.presets { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
           gap: 1rem; }
.warnbox { background: #f7efde; border: 1px solid #e0b45c; padding: 0.6rem 0.9rem;
           border-radius: 6px; font-size: 0.9rem; }
textarea { width: 100%; max-width: 34rem; padding: 0.45rem 0.6rem;
           margin-top: 0.2rem; border: 1px solid var(--line);
           border-radius: 6px; font-family: ui-monospace, monospace;
           font-size: 0.85rem; }
/* Recovery codes: shown once, so they must be easy to read and copy. */
.codes { list-style: none; padding: 0; margin: 1rem 0;
         display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
         gap: 0.4rem; }
.codes li { font-family: ui-monospace, monospace; letter-spacing: 0.06em;
            background: var(--bg); border: 1px solid var(--line);
            padding: 0.45rem 0.6rem; border-radius: 6px; }

.brand-logo { height: 26px; vertical-align: middle; margin-right: 6px; }

/* ================= corporate polish layer (Aug 2026 onboarding rework) ==
   Extends the base sheet; existing class names untouched. */

body { -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.6rem; letter-spacing: -0.01em; margin: 1.2rem 0 0.8rem; }
header { box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
nav { padding: 0.85rem 1rem; }
nav a { font-size: 0.95rem; padding: 0.3rem 0.15rem; border-bottom: 2px solid transparent; }
nav a:hover { border-bottom-color: var(--accent); }
.card { border-radius: 10px; padding: 1.35rem 1.5rem;
        box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04); }
button { font-weight: 600; transition: background 0.15s ease; }
button:hover { background: #8a6516; }
button.danger:hover { background: #8f3524; }
button.linklike, button.linklike:hover { background: none; font-weight: 400; }
a { color: var(--accent); }
:where(a, button, input, summary, [type=checkbox]):focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
th, td { padding: 0.5rem 0.6rem; }
tbody tr:hover { background: #ffffff; }
footer { font-size: 0.8rem; line-height: 1.5; }

/* Onboarding step indicator */
.onboard-steps { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 1.2rem 0 0; }
.step { font-size: 0.8rem; font-weight: 600; color: var(--muted);
        background: var(--card); border: 1px solid var(--line);
        border-radius: 99px; padding: 0.25rem 0.8rem; }
.step.current { color: var(--accent); border-color: var(--accent);
                background: #f7efde; }
.step.done { color: var(--ok); border-color: #b6d9c2; background: #e8f3ec; }

/* Two-factor setup */
.totp-grid { display: grid; grid-template-columns: 240px 1fr; gap: 1.75rem;
             margin-top: 1rem; align-items: start; }
@media (max-width: 640px) { .totp-grid { grid-template-columns: 1fr; } }
.qr { background: #fff; border: 1px solid var(--line); border-radius: 10px;
      padding: 0.75rem; width: 240px; }
.qr svg { display: block; width: 100%; height: auto; }
.alt-key { margin-top: 0.8rem; font-size: 0.9rem; }
.alt-key summary { cursor: pointer; color: var(--accent); font-weight: 600; }
.alt-key[open] summary { margin-bottom: 0.4rem; }
.app-list { list-style: none; padding: 0.2rem 0 0; margin: 0.2rem 0 0.4rem;
            display: flex; flex-wrap: wrap; gap: 0.4rem 0.9rem; }
.app-list li { font-size: 0.9rem; }
.totp-how ol { padding-left: 1.2rem; margin: 0; }
.totp-how li { margin-bottom: 0.6rem; }
input.code-input { font-family: ui-monospace, monospace; font-size: 1.35rem;
              letter-spacing: 0.35em; max-width: 11rem; text-align: center; }

/* Recovery-codes acknowledgment */
.ack-form { margin-top: 1.2rem; border-top: 1px solid var(--line);
            padding-top: 1rem; }
.ack-row { display: flex; gap: 0.6rem; align-items: flex-start;
           font-weight: 400; font-size: 0.95rem; cursor: pointer; }
.ack-row input[type=checkbox] { margin-top: 0.25rem; width: 1.05rem;
                                height: 1.05rem; accent-color: var(--accent); }

/* ============ UI pass 2 (Sep 2026): tiles, slim notice, plan cards ===== */
.notice-slim { display: flex; gap: 0.8rem; align-items: baseline; flex-wrap: wrap;
  background: #f7efde; border: 1px solid #e0b45c; border-radius: 8px;
  padding: 0.45rem 0.9rem; font-size: 0.85rem; color: #8a6516; margin-bottom: 1rem; }
.notice-slim .linklike { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

.card-head { display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; }
.card-head h2, .card-head h1 { margin: 0; }
.card-head h2 a { text-decoration: none; color: var(--ink); }
.card-head h2 a:hover { color: var(--accent); }
.page-head { margin: 1.2rem 0 0.8rem; }
.badges { display: flex; gap: 0.4rem; }

.stat-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin: 0.9rem 0 0.4rem; }
.stat .k { display: block; font-size: 0.72rem; font-weight: 700; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.07em; }
.stat .v { display: block; font-size: 1.55rem; font-weight: 700; margin-top: 0.1rem; }
.stat .sub { display: block; font-size: 0.78rem; color: var(--muted); }

.btn-row { display: flex; gap: 0.7rem; align-items: center; flex-wrap: wrap;
  margin-top: 0.9rem; border-top: 1px solid var(--line); padding-top: 0.9rem; }
.btn-row button { margin-top: 0; }
.btn-link { display: inline-block; background: var(--accent); color: #fff;
  padding: 0.5rem 1.1rem; border-radius: 6px; font-weight: 600;
  text-decoration: none; }
.btn-link:hover { background: #8a6516; color: #fff; }
.btn-link.secondary { background: #fff; color: var(--ink);
  border: 1px solid var(--line); }
.btn-link.secondary:hover { border-color: var(--accent); color: var(--accent); }

td.ticker { font-weight: 700; letter-spacing: 0.02em; }
.h-sub { font-weight: 400; font-size: 0.8rem; margin-left: 0.4rem; }
.empty-state { text-align: center; padding: 2.2rem 1.5rem; }
.lede { color: var(--muted); max-width: 46rem; }

/* Plans */
.plan-grid { align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; }
.plan-card form, .plan-card > p:last-child { margin-top: auto; }
.plan-featured { border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 22px rgba(201, 154, 63, 0.16); }
.plan-flag { position: absolute; top: -0.7rem; left: 1.25rem;
  background: var(--accent); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; border-radius: 99px;
  padding: 0.18rem 0.7rem; }
ul.checks { list-style: none; padding: 0; margin: 0.7rem 0 1rem; }
ul.checks li { padding: 0.28rem 0 0.28rem 1.5rem; position: relative;
  font-size: 0.92rem; }
ul.checks li::before { content: "✓"; position: absolute; left: 0.15rem;
  color: var(--ok); font-weight: 700; }
.fineprint { font-size: 0.9rem; }

/* ============ Curmay brand pass (Sep 2026): purple/gold, broker cards === */
:root {
  --accent: #a8802f;            /* Curmay purple (logo primary)          */
  --accent-deep: #8a6516;       /* hover / pressed                        */
  --accent-tint: #f7efde;       /* selected/tinted backgrounds            */
  --gold: #a8802f;              /* Curmay gold (logo secondary)           */
  --gold-tint: #f7efde;
}
a { color: var(--accent); } a:hover { color: var(--accent-deep); }
button { background: var(--accent); }
button:hover { background: var(--accent-deep); }
button.linklike, button.linklike:hover { background: none; }
.btn-link { background: var(--accent); }
.btn-link:hover { background: var(--accent-deep); }
.btn-link.secondary { background: #fff; }
.btn-link.secondary:hover { border-color: var(--accent); color: var(--accent); }
:where(a, button, input, summary, [type=checkbox]):focus-visible {
  outline-color: var(--accent); }
.notice { background: var(--accent-tint); border-color: #e0b45c; }
.step.current { color: var(--accent-deep); border-color: var(--accent);
  background: var(--accent-tint); }
.alt-key summary { color: var(--accent); }
.plan-featured { border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 22px rgba(201, 154, 63, 0.16); }
.plan-flag { background: var(--accent); }
nav a:hover { border-bottom-color: var(--accent); color: var(--accent); }
.notice-slim .linklike { color: var(--accent); }
.ack-row input[type=checkbox] { accent-color: var(--accent); }

/* Broker picker */
.broker-grid { align-items: stretch; }
.broker-card { display: flex; flex-direction: column; }
.broker-icon { width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-tint); color: var(--accent-deep);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem; }
.broker-icon svg { width: 24px; height: 24px; }
.broker-tagline { margin: 0.35rem 0 0.6rem; }
.broker-details { font-size: 0.88rem; margin-bottom: 0.4rem; }
.broker-details p { color: var(--muted); margin: 0.4rem 0 0; }
.broker-cta { margin-top: auto; }
.broker-cta button { width: 100%; }
.key-note { font-size: 0.85rem; margin-top: 0.8rem; }

/* ============ Overall pass 4 (Sep 2026): nav, auth, settings, feeds ==== */
nav a.active { border-bottom-color: var(--accent); color: var(--accent);
  font-weight: 600; }
nav a { padding: 0.55rem 0.15rem; }
.auth-wrap { max-width: 27rem; margin: 3.5rem auto 0; }
.auth-wrap h1 { text-align: left; }
.auth-wrap .card { padding: 1.6rem 1.75rem; }
.auth-wrap input { max-width: 100%; }
.auth-wrap button[type=submit] { width: 100%; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.2rem 1.75rem; margin-bottom: 0.4rem; }
@media (max-width: 640px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-field input { max-width: 100%; }
.feed-scroll { max-height: 21rem; overflow-y: auto; margin-top: 0.5rem; }
.feed-scroll .feed { margin-top: 0; }

/* Visual layer: activity dots, sleeve chips, numeric alignment */
.feed li { display: flex; gap: 0.55rem; align-items: baseline; }
.dot { width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: var(--muted); flex: 0 0 auto; align-self: center; }
.dot-trade { background: var(--ok); }
.dot-alert { background: var(--warn); }
.dot-scan { background: #d8cfb9; }
.dot-skip, .dot-veto { background: var(--gold); }
.dot-regime, .dot-news { background: var(--accent); }
.sleeve { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 99px;
  font-size: 0.78rem; font-weight: 600; background: var(--accent-tint);
  color: var(--accent-deep); }
.sleeve-mr { background: #e8f3ec; color: var(--ok); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
th.num { text-align: right; }

/* P/L, progress chart, plan prices */
.pos { color: var(--ok); } .neg { color: var(--warn); }
.price-note { font-size: 0.8rem; margin: 0.5rem 0 0; }
.progress-chart svg { display: block; width: 100%; height: 76px; }
.plan-price { font-size: 1.7rem; font-weight: 750; margin: 0.5rem 0 0.1rem; }
.plan-price .plan-per { font-size: 0.8rem; font-weight: 500;
  color: var(--muted); margin-left: 0.45rem; }

/* ---- v7: stop-level column + footer links + info pages ---- */
td.stop-level { color: var(--muted); font-variant-numeric: tabular-nums; }
.footer-links { margin-bottom: 0.35rem; }
.footer-links a { color: var(--muted); text-decoration: none; margin: 0; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ================= v8 — design-canvas alignment ================= */
/* Self-hosted fonts (CSP stays 'self'; extracted latin subsets) */
@font-face { font-family: 'Public Sans'; font-style: normal; font-weight: 100 900;
  font-display: swap; src: url("/static/fonts/PublicSans-latin.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400;
  font-display: swap; src: url("/static/fonts/IBMPlexMono-400-latin.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500;
  font-display: swap; src: url("/static/fonts/IBMPlexMono-500-latin.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600;
  font-display: swap; src: url("/static/fonts/IBMPlexMono-600-latin.woff2") format('woff2'); }

:root {
  --bg: #faf7f0; --card: #ffffff; --line: #e7dfce; --line-soft: #f1ebdd;
  --ink: #2a2317; --muted: #8c8579; --body: #6b6458; --strong: #4e463a;
  --accent: #a8802f; --accent-deep: #8a6516; --accent-soft: #f7efde;
  --accent-mid: #e0b45c; --pos: #1f7a45; --pos-dot: #4a9d6b; --pos-bg: #e8f3ec;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
body { background: var(--bg); color: var(--ink);
  font-family: 'Public Sans', -apple-system, Helvetica, Arial, sans-serif; }

/* Header / nav pills */
header { background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5; box-shadow: none; }
nav { display: flex; align-items: center; gap: 4px; max-width: 1080px;
  margin: 0 auto; padding: 0 24px; height: 60px; }
nav .brand { margin-right: auto; font-weight: 700; font-size: 1.02rem;
  letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
nav a { color: var(--body); font-size: 0.9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; border-bottom: none; text-decoration: none; }
nav a:hover { background: #f4efe4; color: var(--ink); text-decoration: none; }
nav a.active { background: var(--accent-soft); color: var(--ink);
  font-weight: 600; border-bottom: none; }
nav form.inline { margin-left: 8px; padding-left: 12px; border-left: 1px solid var(--line); }
nav button.linklike { color: var(--body); font-size: 0.9rem; font-weight: 500;
  padding: 8px 12px; border-radius: 8px; }
nav button.linklike:hover { background: #f4efe4; color: var(--ink); text-decoration: none; }

main { max-width: 1080px; margin: 0 auto; padding: 0 24px 56px; }

/* Notices */
.notice-slim { border: 1px solid #e0b45c; background: #f7efde; border-radius: 10px;
  padding: 12px 16px; font-size: 0.85rem; color: #6d5210; align-items: center; }
.notice-slim::before { content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: #c99a3f; flex: none; }
.notice-slim .linklike { color: #6d5210; text-decoration: underline;
  text-underline-offset: 3px; font-weight: 600; }

/* Headings */
h1 { font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; margin: 2rem 0 1rem; }
.lede { color: var(--body); font-size: 0.92rem; line-height: 1.6; max-width: 640px; }

/* Cards */
.card { border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(60,45,20,0.05); }
.card-head { padding-bottom: 0.9rem; border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0; }
.card-head h2 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
.card-actions { display: flex; gap: 8px; align-items: center; }
.card-actions form { margin: 0; }
.btn-ghost { display: inline-block; font: inherit; font-size: 0.82rem; font-weight: 500;
  padding: 7px 12px; border-radius: 8px; border: 1px solid #e7dfce; background: #fff;
  color: var(--strong); cursor: pointer; text-decoration: none; width: auto; }
.btn-ghost:hover { background: var(--bg); color: var(--ink); text-decoration: none; }

/* Badges */
.badge { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 3px 8px; border-radius: 5px; }
.badge.paper { background: #f4efe4; color: var(--body); }
.badge.live { background: var(--accent-soft); color: var(--accent-deep); }
.badge.running { background: var(--pos-bg); color: var(--pos); }
.badge.running::before { content: ""; display: inline-block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--pos-dot); margin-right: 6px; vertical-align: 1px; }
.badge.paused { background: #f7efde; color: #8a6516; }

/* Stat band */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  margin: 0 -1.5rem; border-bottom: 1px solid var(--line-soft); }
.stat { padding: 18px 24px; border-right: 1px solid var(--line-soft); }
.stat:last-child { border-right: none; }
.stat .k { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); }
.stat .v { font-family: var(--mono); font-size: 1.75rem; font-weight: 600;
  letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.stat .v .v-pct { font-size: 0.8rem; font-weight: 500; margin-left: 8px; }
.stat .v .v-max { font-size: 0.85rem; color: var(--muted); font-weight: 400; }
.stat .sub { font-size: 0.78rem; color: var(--muted); margin-top: 4px;
  font-variant-numeric: tabular-nums; }
.pos-meter { display: flex; gap: 4px; margin-top: 10px; }
.pos-meter span { height: 4px; flex: 1; border-radius: 2px; background: var(--line); }
.pos-meter span.on { background: var(--accent); }

/* Tables */
table { font-size: 0.88rem; margin: 0 -1.5rem; width: calc(100% + 3rem); }
th { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); background: #faf7f0;
  border-bottom: 1px solid var(--line-soft); padding: 11px 14px; }
th:first-child, td:first-child { padding-left: 24px; }
th:last-child, td:last-child { padding-right: 24px; }
td { padding: 12px 14px; border-bottom: 1px solid #f4efe4; }
tr:hover td { background: #faf7f0; }
td.ticker { font-weight: 600; letter-spacing: -0.01em; }
td.num, th.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
td.stop-level { color: #8c8579; }
.sleeve { font-size: 0.75rem; font-weight: 500; padding: 3px 8px; border-radius: 5px; }
.sleeve-mom { background: var(--accent-soft); color: #8a6516; }
.sleeve-mr { background: var(--pos-bg); color: var(--pos); }

/* Stop-distance meter */
.room-cell { display: flex; align-items: center; gap: 8px; min-width: 110px; }
.room-bar { position: relative; flex: 1; height: 5px; border-radius: 3px;
  background: #f1ebdd; overflow: hidden; }
.room-bar i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px;
  background: var(--accent-mid); }
.room-label { font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Card footer status strip */
.card-strip { display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 0 -1.5rem -1.35rem; padding: 13px 24px;
  background: #faf7f0; border-top: 1px solid var(--line-soft);
  border-radius: 0 0 14px 14px; font-size: 0.79rem; color: var(--muted); }
.card-strip .strip-status { display: flex; align-items: center; gap: 10px; }
.card-strip .strip-status .ts { font-family: var(--mono); }
.card-strip .strip-status .dot-live { width: 5px; height: 5px; border-radius: 50%;
  background: var(--pos-dot); flex: none; }
.card-strip .strip-status .msg { color: var(--strong); }
.page-stamp { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); }
.h-row { display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; }

/* Info pages: balanced 2-column grid (no orphan hole) */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  align-items: stretch; margin: 1.4rem 0; }
.info-grid .card { margin: 0; }
.info-grid .card h2 { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em;
  margin-top: 0; }
.info-grid .card p, .info-grid .card li { font-size: 0.87rem; line-height: 1.6; }

/* Plans */
.plan-card { border-radius: 14px; }
.plan-featured { border-color: var(--accent); box-shadow: 0 4px 16px rgba(169,118,26,0.10); }
.plan-flag { background: var(--accent); color: #fff; border-radius: 999px;
  font-size: 0.66rem; letter-spacing: 0.07em; padding: 4px 10px; }
.plan-price { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
ul.checks li::before { content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); top: 0.72em; }

/* Footer */
footer { border-top: 1px solid var(--line); max-width: 1080px; margin: 40px auto 0;
  padding: 24px 24px 32px; color: var(--muted); font-size: 0.79rem; line-height: 1.6; }
.footer-links { display: flex; gap: 20px; font-size: 0.82rem; font-weight: 500; }
.footer-links a { color: var(--accent); }
.footer-links a:hover { color: var(--accent-deep); }

@media (max-width: 860px) {
  .stat-row { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line-soft); }
  .info-grid { grid-template-columns: 1fr; }
}

/* v8 subpages: numbered step cards + soft callout */
.step-card { display: flex; gap: 18px; padding: 24px; }
.step-chip { flex: none; width: 26px; height: 26px; border-radius: 7px;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--mono); font-size: 0.82rem; font-weight: 600;
  display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.step-card h2 { margin: 2px 0 0; font-size: 1rem; }
.step-card p { margin: 10px 0 0; }
.callout-soft { margin-top: 20px; padding: 18px 22px; background: var(--accent-soft);
  border-radius: 12px; font-size: 0.9rem; line-height: 1.6; color: var(--strong); }
.callout-soft a { font-weight: 600; }
.footnote { margin-top: 14px; font-size: 0.79rem; max-width: 760px; }
.info-grid .card ul.checks { border-top: 1px solid var(--line-soft);
  margin-top: 1rem; padding-top: 0.6rem; }

/* v8 polish: name + badges inline in card head */
.card-head h2, .page-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badges { display: inline-flex; gap: 6px; }

/* v8.1 broker cards — match design: tag top-right, equal heights, CTA at bottom */
.broker-grid { align-items: stretch; }
.broker-card { display: flex; flex-direction: column; padding: 22px; margin: 0; }
.broker-head { display: flex; align-items: center; justify-content: space-between;
  gap: 12px; }
.broker-card .broker-icon { width: 34px; height: 34px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent); display: flex;
  align-items: center; justify-content: center; margin: 0; }
.broker-card .broker-icon svg { width: 18px; height: 18px; }
.badge.broker-tag { background: #f4efe4; color: var(--body); }
.badge.broker-tag.tag-paper { background: #f7efde; color: #8a6516; }
.broker-name { margin: 16px 0 0; font-size: 1rem; font-weight: 600;
  letter-spacing: -0.01em; border: none; padding: 0; }
.broker-tagline { margin: 8px 0 0; font-size: 0.85rem; line-height: 1.55; }
.broker-meta { display: flex; align-items: center; gap: 8px; margin-top: 14px;
  font-size: 0.79rem; color: var(--muted); }
.broker-meta .meta-dot { width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent-mid); flex: none; }
.broker-details { margin-top: 6px; border: none; padding: 0; background: none; }
.broker-details summary { font-size: 0.82rem; font-weight: 500;
  color: var(--accent); cursor: pointer; }
.broker-details p { font-size: 0.82rem; line-height: 1.55; color: var(--body); }
.broker-cta { margin-top: auto; padding-top: 18px; }
.broker-cta button { width: 100%; font-size: 0.88rem; font-weight: 600;
  padding: 11px 14px; border-radius: 9px; border: 1px solid #e7dfce;
  background: #fff; color: var(--strong); }
.broker-cta button:hover { background: var(--bg); }
.broker-primary { border-color: #e0b45c; box-shadow: 0 2px 10px rgba(169,118,26,0.12); }
.broker-primary .broker-cta button { background: var(--accent); color: #fff;
  border-color: var(--accent); }
.broker-primary .broker-cta button:hover { background: var(--accent-deep); }
.broker-foot { display: flex; gap: 10px; margin-top: 18px; font-size: 0.82rem; }

/* Capital-at-work meter: how much of equity is in the market right now. */
.cap-bar { height: 4px; background: var(--line-soft); border-radius: 2px;
           margin-top: 0.45rem; overflow: hidden; max-width: 11rem; }
.cap-bar span { display: block; height: 100%; background: var(--accent);
                border-radius: 2px; }
