/* Design tokens (§5.3). Palette avoids AI-default looks and Uber black/white.
   Light is the plan's spec verbatim; dark is designed for the post-shift,
   phone-at-night reader — same gray-green hue bias, never a naive inversion.
   Fonts are self-hosted subsets: zero runtime CDN, font-src 'self' (§3). */

@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/archivo-latin-800-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/public-sans-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/public-sans-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-latin-600-normal.woff2') format('woff2');
}

:root {
  color-scheme: light;

  --ground: #ebede8; /* cool pale gray-green, NOT cream */
  --ink: #10161c;    /* near-black navy */
  --slate: #5a6672;  /* secondary text */
  --money: #1b6e4a;  /* deep desaturated green — earnings */
  --flag: #c8462c;   /* rust — "this is costing you" */
  --wire: #c9cfc6;   /* rules, borders */
  --card: #f4f5f2;

  /* the reveal card is the one loud object; it stays dark in both themes */
  --reveal-bg: #10161c;
  --reveal-fg: #ebede8;
  --reveal-muted: #a7b2ab;
  --reveal-line: #39434d;
  --reveal-active: #1d2630;

  --stripe-a: #f4f5f2; /* demo-banner hatching */
  --stripe-b: #e3e0d0;

  --btn-bg: var(--ink);
  --btn-fg: var(--ground);

  --font-display: 'Archivo', system-ui, -apple-system, sans-serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-data: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --radius: 12px;
  --gap: 16px;
  --tap: 44px; /* §7.6 minimum target */
}

/* Dark tokens apply via OS preference OR the in-app toggle (data-theme).
   The toggle must win in both directions, so light is re-asserted under
   [data-theme="light"] too. Keep the three blocks in sync. */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;

    --ground: #131a21;
    --ink: #e6eae5;
    --slate: #94a0a9;
    --money: #4fb388;
    --flag: #e37356;
    --wire: #2b3540;
    --card: #1b242d;

    --reveal-bg: #0a0f14;
    --reveal-fg: #e6eae5;
    --reveal-muted: #8e9aa4;
    --reveal-line: #2b3540;
    --reveal-active: #17202a;

    --stripe-a: #1b242d;
    --stripe-b: #232c30;

    --btn-bg: #e6eae5;
    --btn-fg: #131a21;
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;

  --ground: #131a21;
  --ink: #e6eae5;
  --slate: #94a0a9;
  --money: #4fb388;
  --flag: #e37356;
  --wire: #2b3540;
  --card: #1b242d;

  --reveal-bg: #0a0f14;
  --reveal-fg: #e6eae5;
  --reveal-muted: #8e9aa4;
  --reveal-line: #2b3540;
  --reveal-active: #17202a;

  --stripe-a: #1b242d;
  --stripe-b: #232c30;

  --btn-bg: #e6eae5;
  --btn-fg: #131a21;
}

:root[data-theme='light'] {
  color-scheme: light;

  --ground: #ebede8;
  --ink: #10161c;
  --slate: #5a6672;
  --money: #1b6e4a;
  --flag: #c8462c;
  --wire: #c9cfc6;
  --card: #f4f5f2;

  --reveal-bg: #10161c;
  --reveal-fg: #ebede8;
  --reveal-muted: #a7b2ab;
  --reveal-line: #39434d;
  --reveal-active: #1d2630;

  --stripe-a: #f4f5f2;
  --stripe-b: #e3e0d0;

  --btn-bg: #10161c;
  --btn-fg: #ebede8;
}

/* Mobile-first (§5.1: phones, between trips, post-shift). One loud object —
   the reveal — and quiet, ledger-like calm everywhere else. Display type is
   reserved for headline numbers and the wordmark; digits are always mono. */

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

main {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 var(--gap) 56px;
}

h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 6vw, 2.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0.7em 0 0.35em;
}

/* section labels: mono eyebrows — structure as data, display stays reserved */
.eyebrow {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 2.2em 0 0.7em;
}

code {
  font-family: var(--font-data);
  font-size: 0.85em;
  background: var(--card);
  border: 1px solid var(--wire);
  padding: 1px 5px;
  border-radius: 5px;
  white-space: nowrap;
}

.num, .mono { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

a { color: inherit; text-decoration-color: var(--money); text-underline-offset: 2px; }

:focus-visible { outline: 2px solid var(--money); outline-offset: 2px; border-radius: 4px; }

/* ---------- header / footer ---------- */

.site-header {
  max-width: 640px;
  margin: 0 auto;
  padding: 18px var(--gap) 14px;
  border-bottom: 1px solid var(--wire);
}
.header-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.theme-btn {
  font-family: var(--font-data);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  background: none;
  border: 1px solid var(--wire);
  border-radius: 999px;
  padding: 5px 12px;
  min-height: 32px;
  cursor: pointer;
}
.theme-btn:hover { color: var(--ink); border-color: var(--slate); }
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
}
.brand-note {
  font-family: var(--font-data);
  font-size: 0.62rem;
  font-weight: 400;
  color: var(--slate);
  margin-left: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.privacy-line { color: var(--slate); font-size: 0.85rem; margin: 6px 0 0; max-width: 46ch; }

.site-footer {
  max-width: 640px;
  margin: 0 auto;
  padding: 26px var(--gap) calc(28px + env(safe-area-inset-bottom));
  color: var(--slate);
  font-size: 0.82rem;
  border-top: 1px solid var(--wire);
}
.site-footer p { max-width: 60ch; }
.site-footer .made-by {
  font-family: var(--font-data);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 20px;
}

.lede { color: var(--slate); max-width: 52ch; }

/* ---------- intro: demo CTA + architecture contrast ---------- */

.intro-cta { margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.intro-cta .hint { color: var(--slate); font-size: 0.85rem; max-width: 28ch; }
.contrast { max-width: 56ch; margin: 18px 0 0; }

/* ---------- privacy page ---------- */

.back-link {
  font-size: 0.85rem;
  color: var(--slate);
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.privacy-list { list-style: none; padding: 0; margin: 10px 0 0; }
.privacy-list li { padding: 10px 0; border-top: 1px solid var(--wire); font-size: 0.92rem; max-width: 62ch; }
.privacy-list strong { font-weight: 600; }
.privacy-body { font-size: 0.92rem; max-width: 62ch; margin: 8px 0; }
.privacy-cta { margin-top: 30px; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }

/* ---------- buttons ---------- */

.btn {
  min-height: var(--tap);
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid var(--btn-bg);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-quiet { background: transparent; color: var(--slate); border-color: var(--wire); }
.linklike {
  background: none; border: none; padding: 0;
  font: inherit; font-weight: 600; color: inherit;
  text-decoration: underline; text-decoration-color: var(--money); text-underline-offset: 2px;
  cursor: pointer; min-height: var(--tap);
}

/* ---------- dropzone ---------- */

.dropzone {
  margin-top: 22px;
  border: 1.5px dashed var(--wire);
  border-radius: var(--radius);
  background: var(--card);
  padding: 30px 18px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.dragover { border-color: var(--money); outline: none; }
.dropzone.dragover { background: color-mix(in srgb, var(--money) 6%, var(--card)); }
.dropzone strong { font-weight: 600; }
.dropzone .hint { color: var(--slate); font-size: 0.85rem; }

/* ---------- file checklist: the three reports, checked off as they land ---------- */

.file-checks {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.file-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; }
.file-checks .box {
  flex: 0 0 auto;
  width: 18px; height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--wire);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.file-checks li.have .box { background: var(--money); border-color: var(--money); color: var(--ground); }
.file-checks .fc-detail { color: var(--slate); }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- how-to checklist (§6.1: survives app-switching) ---------- */

.howto {
  margin-top: 18px;
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  background: var(--card);
  padding: 4px 18px 14px;
}
.howto summary {
  min-height: var(--tap);
  display: flex; align-items: center;
  font-weight: 600;
  cursor: pointer;
  list-style-position: inside;
}
.howto-note, .howto-stale { color: var(--slate); font-size: 0.85rem; max-width: 56ch; }
.howto-stale { font-size: 0.78rem; }
.checklist { list-style: none; padding: 0; margin: 10px 0 6px; }
.checklist li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--wire);
  font-size: 0.92rem;
}
.checklist input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--money); flex: 0 0 auto; }
.checklist .step-done { color: var(--slate); text-decoration: line-through; }
.resume-chip {
  display: inline-block;
  font-family: var(--font-data);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--money); color: var(--ground);
  border-radius: 999px;
  padding: 3px 12px;
  margin: 8px 0 2px;
}

/* ---------- demo banner ---------- */

.demo-banner {
  background: repeating-linear-gradient(-45deg, var(--stripe-a), var(--stripe-a) 12px, var(--stripe-b) 12px, var(--stripe-b) 24px);
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-top: 20px;
  font-size: 0.9rem;
}

/* ---------- announcements (§6.7 "Got it — …") ---------- */

.announcements { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.announce {
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--card);
  border-left: 3px solid var(--money);
}
.announce.err { border-left-color: var(--flag); }
/* skipped-file tally: present, countable, not an event */
.announce.quiet {
  background: none;
  border-left-color: var(--wire);
  color: var(--slate);
  font-size: 0.85rem;
  padding-block: 4px;
}

/* ---------- coverage strip (§6.7 primary progress UI) ---------- */

.coverage { overflow-x: auto; }
.coverage table { border-collapse: separate; border-spacing: 3px; font-size: 0.8rem; }
.coverage th {
  font-family: var(--font-data);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--slate);
  text-align: left;
  padding: 3px 10px 3px 0;
  white-space: nowrap;
}
.coverage td {
  font-family: var(--font-data);
  padding: 4px 12px;
  text-align: center;
  border-radius: 6px;
}
.cov-yes { background: var(--money); color: var(--ground); }
.cov-no { color: var(--slate); border: 1px dashed var(--wire); }
.coverage-note { color: var(--slate); font-size: 0.82rem; max-width: 56ch; }

/* ---------- the rate reveal (§5.4): the one loud object ---------- */

.reveal {
  margin-top: 22px;
  background: var(--reveal-bg);
  color: var(--reveal-fg);
  border: 1px solid var(--reveal-line);
  border-radius: 16px;
  padding: 26px 20px 20px;
}
.reveal-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 15vw, 4.4rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  animation: reveal-in 0.25s ease;
}
.reveal-unit { font-size: 0.38em; font-weight: 800; color: var(--reveal-muted); letter-spacing: 0; }
.reveal-label { font-size: 1rem; font-weight: 600; margin-top: 8px; }
.reveal-label .num { color: var(--reveal-muted); font-weight: 400; }
.reveal-honest { color: var(--reveal-muted); font-size: 0.88rem; margin-top: 6px; min-height: 2.6em; max-width: 48ch; }
.reveal-total { color: var(--reveal-muted); font-size: 0.8rem; margin-top: 14px; }

@keyframes reveal-in { from { opacity: 0; } to { opacity: 1; } }

.seg { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.seg label {
  flex: 1 1 0; min-height: var(--tap); min-width: 104px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid var(--reveal-line);
  border-radius: 10px;
  padding: 8px 6px;
  cursor: pointer;
  font-size: 0.75rem;
  color: var(--reveal-muted);
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.seg label .seg-rate {
  font-family: var(--font-data);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--reveal-fg);
  font-variant-numeric: tabular-nums;
}
.seg input { position: absolute; opacity: 0; }
.seg input:checked + label { border-color: var(--reveal-fg); background: var(--reveal-active); color: var(--reveal-fg); }
.seg input:focus-visible + label { outline: 2px solid var(--reveal-fg); outline-offset: 2px; }
.seg label.locked { opacity: 0.5; cursor: default; border-style: dashed; }
.seg-small { margin-top: 10px; }
.seg-small label { padding: 4px 12px; font-size: 0.8rem; }

/* ---------- share card (§9) ---------- */
.share { margin-top: 28px; display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.share .eyebrow { width: 100%; }
.share-preview {
  width: 180px;
  height: auto;
  border: 1px solid var(--wire);
  border-radius: 6px;
  background: #ebede8; /* card is always light — it has to read in a feed */
}
.share-actions { display: flex; flex-direction: column; gap: 10px; max-width: 32ch; }

/* ---------- A2HS strip (§7.6) ---------- */
.a2hs {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--wire);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--slate);
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}
.a2hs p { margin: 0; max-width: 56ch; }

.reveal-locked {
  margin-top: 22px;
  border: 1.5px dashed var(--wire);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--slate);
}
.reveal-locked strong { color: var(--ink); }

/* ---------- panels (§6.4 partial credit) ---------- */

.panels { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 560px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel {
  background: var(--card);
  border: 1px solid var(--wire);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.panel h3 {
  font-family: var(--font-data);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 10px;
}
.panel dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 5px 12px; font-size: 0.9rem; }
.panel dt { color: var(--slate); }
.panel dd { margin: 0; text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.panel .flag { color: var(--flag); }
.panel.ghost { border-style: dashed; color: var(--slate); background: transparent; }
.panel.ghost h3 { color: var(--slate); }
.panel .note { color: var(--slate); font-size: 0.8rem; margin: 10px 0 0; line-height: 1.5; }
.panel .note strong { color: var(--ink); }

/* ---------- insights (§2.6) ---------- */

.insight {
  background: var(--card);
  border: 1px solid var(--wire);
  border-left: 3px solid var(--money);
  border-radius: 10px;
  padding: 12px 16px;
  margin: 8px 0;
  font-size: 0.92rem;
  max-width: 60ch;
}
.insight.cost { border-left-color: var(--flag); }
.refusal { color: var(--slate); font-size: 0.85rem; font-style: italic; margin: 8px 0; max-width: 60ch; }
.monthly { margin-top: 12px; overflow-x: auto; }
.monthly table { border-collapse: collapse; font-size: 0.85rem; }
.monthly th {
  font-family: var(--font-data);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate);
}
.monthly th, .monthly td { padding: 5px 14px 5px 0; border-bottom: 1px solid var(--wire); text-align: right; }
.monthly th:first-child, .monthly td:first-child { text-align: left; }

/* ---------- checks: a quiet ledger (§2) ---------- */

.check { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--wire); font-size: 0.88rem; }
.check .mark { font-family: var(--font-data); font-weight: 600; flex: 0 0 auto; }
.check.ok .mark { color: var(--money); }
.check.warn .mark { color: var(--flag); }
.check strong { font-weight: 600; }
.check .detail { color: var(--slate); display: block; max-width: 58ch; }
/* error-level failures (analyze.js `level`) read louder than warnings: a
   flag-colored rail, not just a flag-colored mark */
.check.err { border-left: 3px solid var(--flag); padding-left: 10px; }
.check.err .mark { color: var(--flag); }
.check.err strong { color: var(--flag); }

/* ---------- in-page dialogs (replace window.prompt/confirm — iOS
   standalone PWAs can suppress those) ---------- */

.dlg {
  background: var(--ground);
  color: var(--ink);
  border: 1px solid var(--wire);
  border-radius: 12px;
  padding: 20px;
  max-width: 26rem;
  width: calc(100vw - 48px);
}
.dlg::backdrop { background: rgba(16, 22, 28, 0.55); }
.dlg h2 { font-size: 1.05rem; margin: 0 0 8px; }
.dlg p { margin: 0 0 12px; font-size: 0.92rem; max-width: 48ch; }
.dlg-note { color: var(--slate); }
.dlg label { display: block; font-size: 0.85rem; margin: 10px 0; }
.dlg input {
  width: 100%;
  margin-top: 4px;
  padding: 8px 10px;
  font: inherit;
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--wire);
  border-radius: 8px;
}
.dlg input:focus { outline: 2px solid var(--money); outline-offset: 1px; }
.dlg-err { color: var(--flag); font-size: 0.85rem; }
.dlg-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }

/* ---------- storage + actions ---------- */

.storage-note { color: var(--slate); font-size: 0.85rem; margin-top: 18px; max-width: 56ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .reveal-value { animation: none; }
  .btn, .dropzone, .seg label { transition: none; }
}

/* ---------- heat calendar (§WeekShape coarse, 2nd signature) ----------
   Same visual grammar as the mapless map to come: ramp ground→money,
   hatched refusal, --flag rust reserved for net<0. */
.week { margin-top: var(--gap); }
.wk-grid {
  display: grid;
  grid-template-columns: minmax(52px, auto) repeat(7, 1fr);
  gap: 3px;
  margin-top: 10px;
}
.wk-head, .wk-band {
  font-family: var(--font-data);
  font-size: 0.68rem;
  color: var(--slate);
  align-self: center;
}
.wk-head { text-align: center; padding-bottom: 2px; }
.wk-band { padding-right: 6px; text-align: right; }
.wk-cell {
  aspect-ratio: 1.5;
  min-height: 34px;
  border: 1px solid var(--wire);
  border-radius: 6px;
  background: color-mix(in oklab, var(--money) calc(var(--heat, 0) * 0.85%), var(--card));
  font-family: var(--font-data);
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}
.wk-cell .wk-rate { pointer-events: none; }
.wk-cell[data-heat] { font-weight: 600; }
/* past ~55% of max the green runs deep enough to need inverted ink;
   --ground opposes --ink in both themes, so this holds in dark mode too */
.wk-deep { color: var(--ground); }
.wk-empty { background: transparent; border-style: dashed; opacity: 0.45; cursor: default; }
.wk-gated {
  background: repeating-linear-gradient(-45deg, var(--card) 0 4px, var(--wire) 4px 6px);
  opacity: 0.8;
}
.wk-cost {
  background: color-mix(in oklab, var(--flag) 18%, var(--card));
  border-color: var(--flag);
  color: var(--flag);
}
.wk-legend { max-width: 60ch; }
@media (max-width: 480px) {
  .wk-grid { grid-template-columns: minmax(44px, auto) repeat(7, 1fr); gap: 2px; }
  .wk-cell { font-size: 0.62rem; min-height: 30px; }
}

/* ---------- passphrase opt-in on the backup (REFERENCE §Security) ---------- */
.encrypt-opt {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--slate);
  max-width: 46ch;
  cursor: pointer;
}
.encrypt-opt input { accent-color: var(--money); }
.encrypt-warn { color: var(--slate); font-style: italic; }

/* ---------- mapless map (§5.4 signature): bold here, quiet elsewhere ---------- */
.mappanel { margin-top: var(--gap); }
.map-mount svg { width: 100%; height: auto; display: block; margin-top: 10px; }
.map-cell {
  fill: color-mix(in oklab, var(--money) calc(var(--heat, 0) * 0.85%), var(--card));
  stroke: var(--ground);
  stroke-width: 1.5;
  cursor: pointer;
}
.map-cell:hover, .map-cell:focus-visible { stroke: var(--ink); stroke-width: 2; outline: none; }
.map-gated { fill: url(#mapHatch); }
.map-hatch-bg { fill: var(--card); }
.map-hatch-line { stroke: var(--wire); stroke-width: 2; }
.map-hull { fill: none; stroke: var(--slate); stroke-width: 1; opacity: 0.5; pointer-events: none; }
.map-word { max-width: 60ch; }
