/* Selvrens: one stylesheet, no external fonts (nothing leaves the browser). */
:root {
  --bg: #F3F1EA; --surface: #FBFAF6; --sunk: #ECE9E0; --ink: #15211F; --muted: #56625F; --line: #D8D4C8;
  --accent: #0B6E68; --accent-ink: #FFFFFF; --accent-soft: #DCEDEA;
  --warn: #9A5806; --warn-soft: #F6E7CF; --danger: #A8251B; --danger-soft: #F7DEDA; --ok: #2F6B3A; --ok-soft: #E1EEDF;
  --glow-a: #0B6E68; --glow-b: #7FC8BF; --glow-c: #C9A227;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Charter, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;
  --r: 14px; --r-s: 9px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1413; --surface: #151D1C; --sunk: #0A0F0E; --ink: #E7EEEC; --muted: #9BA8A5; --line: #293432;
    --accent: #52C2B7; --accent-ink: #052220; --accent-soft: #12302D;
    --warn: #E3A64C; --warn-soft: #33260F; --danger: #F08A7E; --danger-soft: #3A1914; --ok: #7CC98A; --ok-soft: #15301B;
    --glow-a: #52C2B7; --glow-b: #1E6F68; --glow-c: #E3C25A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1413; --surface: #151D1C; --sunk: #0A0F0E; --ink: #E7EEEC; --muted: #9BA8A5; --line: #293432;
  --accent: #52C2B7; --accent-ink: #052220; --accent-soft: #12302D;
  --warn: #E3A64C; --warn-soft: #33260F; --danger: #F08A7E; --danger-soft: #3A1914; --ok: #7CC98A; --ok-soft: #15301B;
  --glow-a: #52C2B7; --glow-b: #1E6F68; --glow-c: #E3C25A;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--sans); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
img, svg { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4.2vw, 2.8rem); }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 12px; }

/* Shell */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding-block: 10px; padding-inline: 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand .mark { width: 26px; height: 26px; color: var(--accent); }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a { white-space: nowrap; padding: 7px 11px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.nav a:hover { color: var(--ink); background: var(--sunk); }
.nav a[aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
.tools { display: flex; gap: 6px; }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 10px; font: 600 .8rem var(--sans); cursor: pointer; min-width: 38px; }
.chip-btn:hover { border-color: var(--accent); }
main { outline: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; padding-block: 28px 56px; display: grid; gap: 28px; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.foot .wrap { padding-block: 22px 32px; gap: 8px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* Typography helpers */
.lede { font-size: 1.08rem; color: var(--muted); max-width: 64ch; }
.eyebrow { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.num { font-variant-numeric: tabular-nums; font-family: var(--mono); }
.prose { max-width: 68ch; display: grid; gap: 10px; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.quote { font-family: var(--serif); font-size: 1.2rem; font-style: italic; border-left: 3px solid var(--accent); padding-left: 14px; max-width: 60ch; }

/* Sections and surfaces */
.section { display: grid; gap: 14px; align-content: start; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px; }
.section-head > div { display: grid; gap: 4px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 12px; min-width: 0; align-content: start; }
.panel.sunk { background: var(--sunk); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 8px; align-content: start; }
.wrap > *, .section > *, .grid-2 > *, .grid-3 > *, .stack > *, .panel > * { min-width: 0; }

/* Page cards with a slow glowing edge */
.piece { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: grid; gap: 10px; text-decoration: none; color: inherit; min-width: 0; isolation: isolate; align-content: start; }
.piece::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--spin, 0deg), var(--glow-a), var(--glow-b), var(--glow-c), var(--glow-a)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; z-index: -1; pointer-events: none; }
.piece:hover::before, .piece:focus-visible::before { opacity: 1; animation: spin 4s linear infinite; }
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --spin: 360deg; } }
@media (prefers-reduced-motion: reduce) { .piece:hover::before { animation: none; } }
.piece .tag { justify-self: start; }
.piece h3 { font-size: 1.15rem; }
.piece-n { font-family: var(--mono); font-size: .78rem; color: var(--muted); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px; display: grid; gap: 2px; }
.stat b { font: 600 1.6rem var(--mono); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .84rem; }
.stat.danger b { color: var(--danger); } .stat.warn b { color: var(--warn); } .stat.ok b { color: var(--ok); }

/* Controls */
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); border-radius: 10px; padding: 8px 14px; font: 600 .9rem var(--sans); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.quiet { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.quiet:hover { border-color: var(--accent); }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn.sm { padding: 5px 10px; font-size: .82rem; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
label.field { display: grid; gap: 4px; align-content: start; font-size: .86rem; color: var(--muted); min-width: 0; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="month"], input[type="tel"], select, textarea {
  font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; width: 100%; min-width: 0; }
textarea { min-height: 90px; resize: vertical; }
textarea.letter { min-height: 280px; font: .9rem/1.5 var(--mono); background: var(--sunk); }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; color: var(--ink); }
.check input { margin-top: 3px; accent-color: var(--accent); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
details.fold { border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); }
details.fold > summary { cursor: pointer; padding: 11px 14px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
details.fold[open] > summary::after { content: "–"; }
details.fold > .fold-body { padding: 0 14px 14px; display: grid; gap: 10px; }

/* Tags and badges */
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--sunk); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tag.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }

/* Account list */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.toolbar > * { flex: 1 1 160px; }
.toolbar > .btn { flex: 0 0 auto; }
.list { display: grid; gap: 8px; }
.acct { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); }
.acct > summary { list-style: none; cursor: pointer; padding: 11px 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; }
.acct > summary::-webkit-details-marker { display: none; }
.acct-name { display: grid; gap: 1px; min-width: 0; }
.acct-name b { font-weight: 650; overflow-wrap: anywhere; }
.acct-name span { color: var(--muted); font-size: .84rem; overflow-wrap: anywhere; }
.acct-badges { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.acct-body { padding: 0 14px 14px; display: grid; gap: 12px; border-top: 1px dashed var(--line); padding-top: 12px; }
.acct.st-delete { border-left: 3px solid var(--warn); }
.acct.st-deleted { opacity: .62; }
.acct.st-keep { border-left: 3px solid var(--ok); }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 26px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }

/* Actions list */
.actions { display: grid; gap: 8px; counter-reset: act; }
.action { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 10px 14px; }
.action::before { counter-increment: act; content: counter(act); font: 600 .8rem var(--mono); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--sunk); color: var(--muted); }
.action.lvl-3::before { background: var(--danger-soft); color: var(--danger); }
.action.lvl-2::before { background: var(--warn-soft); color: var(--warn); }
.action p { overflow-wrap: anywhere; }
@media (max-width: 560px) { .action { grid-template-columns: auto minmax(0, 1fr); } .action > :last-child { grid-column: 2; justify-self: start; } }

/* Identity map */
.map-wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .map-wrap { grid-template-columns: 1fr; } }
.map { width: 100%; height: auto; aspect-ratio: 1; max-width: 560px; justify-self: center; }
.map .ring { fill: none; stroke: var(--line); }
.map .spoke { stroke: var(--line); stroke-dasharray: 2 4; }
.map .core { fill: var(--accent); }
.map .core-t { fill: var(--accent-ink); font: 600 13px var(--sans); }
.map .cat-t { fill: var(--muted); font: 600 11px var(--sans); letter-spacing: .06em; text-transform: uppercase; }
.map .dot { stroke: var(--surface); stroke-width: 1.5; cursor: pointer; }
.map .dot:hover { stroke: var(--ink); }
.map .d-ok { fill: var(--ok); } .map .d-risk { fill: var(--danger); } .map .d-pub { fill: var(--warn); } .map .d-del { fill: var(--muted); } .map .d-unk { fill: var(--accent); opacity: .55; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .84rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Visibility checklist */
.vis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 6px 14px; }
.meter { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.meter > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), var(--warn), var(--danger)); background-size: 300% 100%; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links a { font-size: .86rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }
.links a:hover { border-color: var(--accent); }

/* Steps */
.steps { display: grid; gap: 8px; counter-reset: st; margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.steps li .stepbox { margin-top: 4px; accent-color: var(--accent); width: 18px; height: 18px; }
.steps li.done .step-t { text-decoration: line-through; color: var(--muted); }

/* Notices */
.note { border-radius: var(--r-s); padding: 10px 14px; font-size: .9rem; background: var(--accent-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.note.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.note.danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 60; max-width: calc(100% - 32px); box-shadow: 0 8px 24px rgb(0 0 0 / .18); }

/* Hero */
.hero { display: grid; gap: 16px; padding-block: 18px 6px; }
.promise { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px; font: 600 .86rem var(--sans); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; font-size: .9rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.scroll-x { overflow-x: auto; }
table.tbl { border-collapse: collapse; width: 100%; font-size: .88rem; }
.tbl th, .tbl td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }

/* How-to box: the three things to do on this page, always at the top */
.howto { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: var(--r); padding: 14px 18px; display: grid; gap: 8px; max-width: 78ch; }
.howto > b { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: 6px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.howto li::before { content: counter(h); display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 .78rem var(--mono); transform: translateY(-1px); }
.steps-plain { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; font-size: .9rem; }
.steps-plain li::marker { color: var(--accent); font-weight: 700; }

/* Journey: one clear path, one "next step" button */
.journey { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 18px; }
.journey-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 14px; }
.journey-head > .stack { max-width: 62ch; }
.btn.big { padding: 11px 18px; font-size: 1rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.grid-4 > * { min-width: 0; }
.parts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.jsteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; }
.jsteps a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; color: var(--ink); background: var(--bg); height: 100%; font-size: .9rem; line-height: 1.3; }
.jsteps a:hover { border-color: var(--accent); }
.jn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); font: 700 .8rem var(--mono); color: var(--muted); }
.jsteps li.done .jn { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.jsteps li.done .jt { color: var(--muted); }
.jsteps li.now a { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.jsteps li.now .jn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Why: a short numbered essay */
.why { display: grid; gap: 0; border-top: 1px solid var(--line); }
.why-part { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding-block: 26px; border-bottom: 1px solid var(--line); }
.why-part h2 { font-size: 1.6rem; }
.why-part .prose p { font-size: 1.04rem; }
.why-n { font: 600 2.2rem/1 var(--serif); color: var(--accent); }
@media (max-width: 640px) { .why-part { grid-template-columns: 1fr; gap: 8px; } .why-n { font-size: 1.6rem; } }

/* Small screens: the module nav gets its own row */
@media (max-width: 640px) {
  .top-in { flex-wrap: wrap; row-gap: 6px; }
  .brand { flex: 1; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 2px; }
  .nav a { padding: 6px 10px; }
}

/* Guides in focus: one step at a time (0.4.0) */
.btn.xl { min-height: 52px; padding: 12px 20px; font-size: 1rem; border-radius: 12px; }
.focus-wrap { max-width: 760px; }
.focus { display: grid; gap: 18px; }
.focus .back { justify-self: start; font-weight: 600; text-decoration: none; padding: 10px 0; min-height: 44px; display: inline-flex; align-items: center; }
.focus .back:hover { text-decoration: underline; }
.focus h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.step-do { line-height: 1.3; }
.prog { display: grid; gap: 6px; }
.prog-bar { height: 8px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.prog-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.step-count { font: 600 .9rem var(--sans); color: var(--muted); }
.see, .alt { border-radius: var(--r-s); padding: 12px 16px; font-size: 1rem; line-height: 1.55; }
.see { background: var(--ok-soft); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }
.alt { background: var(--surface); border: 1px dashed var(--line); }
.focus-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.focus-actions .btn.quiet { min-height: 44px; }
.facts { display: grid; gap: 12px; margin: 0; }
.facts > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; min-width: 0; }
.facts ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
@media (max-width: 520px) { .facts > div { grid-template-columns: 1fr; gap: 2px; } }
.plan { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-b { width: 100%; text-align: left; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: center; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.plan-b:hover { border-color: var(--accent); }
.plan .pn { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); font: 700 .8rem var(--mono); color: var(--muted); }
.plan li.done .pn { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.plan li.done .plan-b > span:last-child { color: var(--muted); }
.plan li.now .plan-b { border-color: var(--accent); background: var(--accent-soft); }
.plan li.now .pn { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.guides { max-width: 760px; }
.guide-card { gap: 10px; }
.guide-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.guide-list a { display: grid; gap: 2px; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); text-decoration: none; color: var(--ink); background: var(--surface); }
.guide-list a:hover { border-color: var(--accent); }
.gl-t { font-weight: 600; }

/* The bar that brings you back to your guide */
.guidebar { background: var(--accent-soft); border-bottom: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.guidebar-in { max-width: 1120px; margin: 0 auto; padding-inline: 16px; padding-block: 8px; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.guidebar-in a { color: var(--ink); text-decoration: none; display: block; padding-block: 8px; flex: 1 1 240px; min-width: 0; }
.guidebar-in a:hover { text-decoration: underline; }

/* Calm and readability settings */
.comfort { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; }
.comfort-opt { align-items: start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--surface); min-height: 48px; cursor: pointer; }
.comfort-opt input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.comfort-opt > span { display: grid; gap: 2px; }
html.calm *, html.calm *::before, html.calm *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.calm .piece::before { display: none; }
html.calm .top { backdrop-filter: none; background: var(--bg); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
html.big-text { font-size: 118.75%; }
html.big-text body { font-size: 18px; }
html.airy body { line-height: 1.8; letter-spacing: .012em; word-spacing: .06em; }
html.airy .wrap { gap: 38px; }
html.airy .stack, html.airy .steps, html.airy .list { gap: 14px; }

/* Privacy page */
.privacy { max-width: 820px; }
.plain-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.foot-row a { white-space: nowrap; }

/* Email check results with details (0.5.0) */
.leaks { display: grid; gap: 8px; }
.fold.leak > summary { align-items: center; min-height: 48px; }
.fold.leak > summary::after { display: none; }
.leak-t { display: grid; gap: 2px; min-width: 0; }
.leak-facts { display: grid; gap: 6px; margin: 0; }
.leak-facts > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 10px; }
.leak-facts dt { font-weight: 600; color: var(--muted); }
.leak-facts dd { margin: 0; min-width: 0; }
@media (max-width: 520px) { .leak-facts > div { grid-template-columns: 1fr; gap: 0; } }
