/* AnnuityHQ: the trail map.
   The business is a climb (Associate to base camp to the summit), so the console borrows from trail maps
   and wayfinding: a route for navigation with a "you are here" marker, contour lines for scale, rivers for money.
   Color has fixed jobs: river blue is money flowing to you, guide green is people producing and the action you
   take next, trail red is where you are now and any target or deadline, contour brown is scale and levels.
   One typeface, Overpass (descended from US highway signage); italic labels anything that flows or names a place on a map. */

@font-face { font-family: "Overpass"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/overpass-latin-wght-normal.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: "Overpass"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/fonts/overpass-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Overpass"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(/fonts/overpass-latin-wght-italic.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: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }

:root {
  --sheet: #EEF1EA; --field: #FBFCF9; --field-2: #F4F6F1;
  --ink: #1C2A2E; --ink-2: #56656A; --ink-3: #8A9799;
  --line: #C3CCC4; --line-2: #DCE2DB;
  --contour: #A9774C; --contour-soft: rgba(169, 119, 76, .30);
  --river: #2A6CA6; --river-soft: #DDE8F2;
  --trail: #C23B2B; --trail-soft: #F5E0DB;
  --guide: #10664B; --guide-ink: #FFFFFF; --guide-soft: #DCECE3;
  --ochre: #A86A12; --ochre-soft: #F2E5CC;
  --c1: #2A6CA6; --c2: #C27A10; --c3: #A93E8F; --c4: #2B8A57; --c5: #6B4FC2;
  --sans: "Overpass", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --shadow-lift: 0 18px 50px rgba(20, 34, 38, .22), 0 2px 6px rgba(20, 34, 38, .10);
  color-scheme: light;
  /* Older names still used by inline styles and the public pages. */
  --bg: var(--sheet); --surface: var(--field); --surface-2: var(--field-2); --muted: var(--ink-2);
  --brand: var(--guide); --brand-ink: var(--guide-ink); --brand-soft: var(--guide-soft);
  --brass: var(--ochre); --brass-soft: var(--ochre-soft);
  --good: var(--guide); --good-soft: var(--guide-soft); --warn: var(--ochre); --warn-soft: var(--ochre-soft); --bad: var(--trail); --bad-soft: var(--trail-soft);
  --side: #1C2A2E; --side-ink: #C9D4D0; --side-dim: #8FA19E; --side-active: #2A3B40;
  --display: var(--sans); --body: var(--sans); --num: var(--sans); --r: 4px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --sheet: #10171A; --field: #152024; --field-2: #1A272B;
  --ink: #E2E9E5; --ink-2: #9AA9AA; --ink-3: #66777A;
  --line: #2E3E42; --line-2: #233135;
  --contour: #A3805F; --contour-soft: rgba(163, 128, 95, .30);
  --river: #6AA6DB; --river-soft: #17324A;
  --trail: #EE6E5E; --trail-soft: #3A1F1B;
  --guide: #3FAE83; --guide-ink: #05211A; --guide-soft: #143428;
  --ochre: #D9A441; --ochre-soft: #33281A;
  --c1: #4F8FCF; --c2: #B97D1C; --c3: #CC5FA6; --c4: #2D9064; --c5: #8573DA;
  --shadow-lift: 0 18px 50px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);
  --side: #0B1113; --side-ink: #B8C6C2; --side-dim: #7C8E8B; --side-active: #1B282C;
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --sheet: #10171A; --field: #152024; --field-2: #1A272B;
  --ink: #E2E9E5; --ink-2: #9AA9AA; --ink-3: #66777A;
  --line: #2E3E42; --line-2: #233135;
  --contour: #A3805F; --contour-soft: rgba(163, 128, 95, .30);
  --river: #6AA6DB; --river-soft: #17324A;
  --trail: #EE6E5E; --trail-soft: #3A1F1B;
  --guide: #3FAE83; --guide-ink: #05211A; --guide-soft: #143428;
  --ochre: #D9A441; --ochre-soft: #33281A;
  --c1: #4F8FCF; --c2: #B97D1C; --c3: #CC5FA6; --c4: #2D9064; --c5: #8573DA;
  --shadow-lift: 0 18px 50px rgba(0, 0, 0, .55), 0 2px 6px rgba(0, 0, 0, .35);
  --side: #0B1113; --side-ink: #B8C6C2; --side-dim: #7C8E8B; --side-active: #1B282C;
  color-scheme: dark; }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--sheet); color: var(--ink); font: 400 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.022em; }
h2 { font-size: 19px; font-weight: 750; letter-spacing: -0.01em; }
h3 { font-size: 16px; font-weight: 700; }
p { margin: 0 0 .65em; }
a { color: var(--river); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
small { font-size: 13px; }
.muted { color: var(--ink-2); }
.num, td.num, th.num { font-variant-numeric: tabular-nums; }
.mono { font-variant-numeric: tabular-nums; }
.code { font-family: var(--mono); font-size: .88em; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--river); outline-offset: 2px; }
::selection { background: var(--river-soft); }
kbd { font: 600 11.5px var(--sans); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; color: var(--ink-2); background: var(--field); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Shell: the route rail ---------- */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100%; }
.rail { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; padding: 22px 16px 18px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; background: var(--sheet); scrollbar-width: thin; }
.mark { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; }
.mark svg { width: 34px; height: 34px; flex: none; }
.mark b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.mark small { display: block; font-style: italic; color: var(--ink-2); font-size: 13px; line-height: 1.2; }
.find { display: flex; align-items: center; gap: 8px; width: 100%; border: 1px solid var(--line); background: var(--field); color: var(--ink-2); border-radius: 6px; padding: 7px 8px 7px 10px; font: 500 13.5px var(--sans); cursor: pointer; text-align: left; }
.find:hover { border-color: var(--ink-2); color: var(--ink); }
.find svg { width: 15px; height: 15px; flex: none; }
.find span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route { position: relative; padding-left: 0; }
.route::before { content: ""; position: absolute; left: 6px; top: 34px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--ink); opacity: .9; }
.leg + .leg { margin-top: 10px; }
.leg-name { margin: 0 0 2px 26px; font-style: italic; font-size: 13px; color: var(--ink-2); }
.stops { list-style: none; margin: 0; padding: 0; }
.stops a { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 6px 4px 0; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 14.5px; border-radius: 4px; }
.stop { position: relative; z-index: 1; width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--sheet); border: 2px solid var(--ink); transition: background .15s; }
.stops a:hover .stop { background: var(--ink); }
.stops a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.stops a[aria-current="page"] { font-weight: 750; }
.stops a[aria-current="page"] .stop { background: var(--trail); border-color: var(--trail); box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4.5px var(--trail); }
.stops .count { margin-left: auto; min-width: 22px; text-align: center; font: 700 12px/1.6 var(--sans); font-variant-numeric: tabular-nums; color: #fff; background: var(--trail); border-radius: 10px; padding: 0 6px; }
.rail-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-2); }
.rail-foot .row { gap: 8px; }
.rail-foot button { appearance: none; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 5px; padding: 4px 9px; font: 600 12.5px var(--sans); cursor: pointer; }
.rail-foot button:hover { border-color: var(--ink); }
.main { min-width: 0; padding-block: 30px 72px; padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); }
.main > * { max-width: 1360px; }
.topbar { display: none; }
.rail .rail-close { display: none; }
.main:focus { outline: none; }

/* Page transitions between stops on the route */
@supports (view-transition-name: none) {
  .main { view-transition-name: main; }
  ::view-transition-old(main) { animation: 120ms ease-in both vt-out; }
  ::view-transition-new(main) { animation: 200ms ease-out both vt-in; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
}

/* ---------- Page head ---------- */
.page-head { display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { font-size: 36px; }
.page-head p { margin: 8px 0 0; color: var(--ink-2); max-width: 66ch; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.banner { display: block; border: 1px solid var(--line); border-left: 4px solid var(--ochre); background: var(--field); padding: 10px 14px; margin-bottom: 18px; font-size: 14px; border-radius: 0 4px 4px 0; }
.banner b { color: var(--ink); font-weight: 750; margin-right: 6px; }
.banner .btn, .banner a { margin-left: 6px; }

/* ---------- Insets: framed regions on one sheet, titled on the frame like a map inset ---------- */
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.stack { display: grid; gap: 18px; align-content: start; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > select, .row > input:not([type=checkbox]) { width: auto; max-width: 100%; }
.card { position: relative; min-width: 0; background: var(--sheet); border: 1px solid var(--line); border-radius: 3px; padding: 22px 22px 20px; }
.card > header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; min-height: 6px; }
.card > header:first-child > h2:first-child, .card > h2:first-child, .card > h3:first-child, .card.stack > h2:first-child {
  position: absolute; top: 0; left: 14px; transform: translateY(-55%); margin: 0; padding: 0 8px; background: var(--sheet); font-size: 15.5px; font-weight: 750; line-height: 1.3; max-width: calc(100% - 28px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card > h3:first-child { font-size: 15px; }
/* Cards that scroll sideways would clip a title on the frame, so their title stays inside. */
.card.table-wrap > header:first-child > h2:first-child, .card.table-wrap > h2:first-child { position: static; transform: none; padding: 0; background: none; }
.card.table-wrap { padding-top: 16px; }
.card > header:first-child:has(> h2:only-child) { margin-bottom: 4px; }
.card > header .spacer + * { margin-left: auto; }
.card h2 { font-size: 15.5px; }
.card.stack { padding-top: 24px; }
.card > p.muted:first-of-type { font-size: 14px; }

/* A row of figures reads as one readout strip, not separate tiles */
.grid:has(> .card.kpi) { gap: 0; border: 1px solid var(--line); border-radius: 3px; }
.grid > .card.kpi { border: 0; border-left: 1px solid var(--line-2); border-radius: 0; padding: 14px 20px 16px; }
.grid > .card.kpi:first-child { border-left: 0; }
.kpi { display: grid; gap: 2px; align-content: start; }
.kpi .label { font-size: 13.5px; color: var(--ink-2); }
.kpi .value { font-size: 34px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.kpi .delta { font-size: 13px; color: var(--ink-2); }
.kpi .delta.up { color: var(--guide); } .kpi .delta.down { color: var(--trail); }
.kpi .spark { width: 100%; height: 30px; margin-top: 6px; }

/* ---------- Buttons: sign plates ---------- */
.btn { appearance: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 5px; background: transparent; color: var(--ink); font: 650 14px/1.3 var(--sans); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, color .12s; }
.btn:hover { background: var(--ink); color: var(--sheet); }
.btn.primary { background: var(--guide); border-color: var(--guide); color: var(--guide-ink); box-shadow: inset 0 0 0 1.5px var(--guide), inset 0 0 0 2.5px color-mix(in srgb, var(--guide-ink) 70%, transparent); }
.btn.primary:hover { background: color-mix(in srgb, var(--guide) 86%, #000); border-color: color-mix(in srgb, var(--guide) 86%, #000); color: var(--guide-ink); }
.btn.ghost { border-color: transparent; }
.btn.ghost:hover { background: var(--field-2); color: var(--ink); }
.btn.danger { background: var(--trail); border-color: var(--trail); color: #fff; }
.btn.danger:hover { background: color-mix(in srgb, var(--trail) 85%, #000); }
.btn.danger-ghost { border-color: transparent; color: var(--trail); }
.btn.danger-ghost:hover { background: var(--trail-soft); color: var(--trail); }
.btn.small { padding: 3px 10px; font-size: 13px; border-width: 1px; }
.btn:disabled, .btn[disabled] { opacity: .5; cursor: default; }
.btn:disabled:hover { background: transparent; color: var(--ink); }
.btn.primary:disabled:hover { background: var(--guide); color: var(--guide-ink); }
.icon-btn { border: 0; background: transparent; color: var(--ink-2); font-size: 24px; line-height: 1; cursor: pointer; padding: 2px 8px; border-radius: 5px; }
.icon-btn:hover { color: var(--ink); background: var(--field-2); }
button.link { appearance: none; border: 0; background: none; padding: 0; font: 600 13px var(--sans); color: var(--river); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
button.link:hover { color: var(--ink); }

/* ---------- Inputs ---------- */
input[type=checkbox], input[type=radio] { width: auto; flex: none; accent-color: var(--guide); margin-top: 3px; }
input:not([type=checkbox]):not([type=radio]), select, textarea { font: inherit; font-size: 14.5px; color: var(--ink); background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 7px 10px; width: 100%; min-width: 0; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 3px color-mix(in srgb, var(--river) 22%, transparent); }
label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field { display: grid; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field.check { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; }
.field.check input { width: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-error { color: var(--trail); min-height: 1em; margin: 8px 0 0; font-size: 13.5px; font-weight: 600; }
.seg { display: inline-flex; border: 1.5px solid var(--ink); border-radius: 5px; overflow: hidden; flex-wrap: wrap; }
.seg button { border: 0; border-left: 1px solid var(--line); background: transparent; padding: 5px 12px; font: 600 13.5px var(--sans); color: var(--ink); cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--field-2); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 13px; color: var(--ink-2); font-weight: 650; padding: 8px 12px; border-bottom: 1.5px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: color-mix(in srgb, var(--river) 7%, transparent); }
td.num, th.num { text-align: right; white-space: nowrap; }
.card > table, .card > .table-wrap > table { margin-top: 2px; }

/* Status markers: a painted trail blaze beside the word, never color alone */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; line-height: 1.3; }
.pill::before { content: ""; width: 11px; height: 7px; border-radius: 2px; background: transparent; border: 1.5px solid var(--ink-3); flex: none; }
.pill.good { color: var(--ink); } .pill.good::before { background: var(--guide); border-color: var(--guide); }
.pill.warn { color: var(--ink); } .pill.warn::before { background: var(--ochre); border-color: var(--ochre); }
.pill.bad { color: var(--ink); } .pill.bad::before { background: var(--trail); border-color: var(--trail); }
.pill.brand { color: var(--ink); } .pill.brand::before { background: var(--river); border-color: var(--river); }
.empty { padding: 28px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: 3px; }

/* ---------- Lists ---------- */
.list { display: grid; }
.list-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.list-item:last-child { border-bottom: 0; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 650; }
.list-item small { color: var(--ink-2); }
.overdue { color: var(--trail); font-weight: 650; }

/* ---------- Charts ---------- */
.chart { margin: 0; }
.chart figcaption { font-size: 14px; font-weight: 650; color: var(--ink); margin-bottom: 8px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--contour-soft); stroke-width: 1; }
.chart .tick { fill: var(--ink-2); font: 500 11.5px var(--sans); font-variant-numeric: tabular-nums; }
.chart .tick.strong { fill: var(--ink); font-weight: 650; font-style: italic; }
.chart .target { stroke: var(--trail); stroke-width: 1.5; stroke-dasharray: 6 5; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.legend i { display: inline-block; width: 12px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.funnel-rows { display: grid; gap: 7px; }
.funnel-row { display: grid; grid-template-columns: 110px 1fr 46px 42px; gap: 10px; align-items: center; font-size: 13.5px; }
.f-bar { background: var(--field-2); border-radius: 2px; height: 16px; overflow: hidden; }
.f-bar i { display: block; height: 100%; background: var(--guide); border-radius: 0 3px 3px 0; }
.f-num { font-variant-numeric: tabular-nums; text-align: right; font-weight: 650; } .f-conv { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 12.5px; text-align: right; }

/* ---------- Boards ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(214px, 1fr); gap: 0; overflow-x: auto; padding-bottom: 10px; border-top: 1.5px solid var(--ink); }
.lane { padding: 10px 10px 14px; min-height: 140px; display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--line-2); }
.lane:first-child { border-left: 0; padding-left: 0; }
.lane h3 { font-size: 14px; display: flex; justify-content: space-between; align-items: baseline; color: var(--ink); padding: 2px 2px 6px; }
.lane h3 span:last-child { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.lane.drop { background: color-mix(in srgb, var(--guide) 8%, transparent); outline: 2px dashed var(--guide); outline-offset: -2px; }
.rcard { background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 9px 11px; cursor: grab; font-size: 13.5px; display: grid; gap: 4px; transition: border-color .12s, box-shadow .12s; }
.rcard:hover { border-color: var(--ink-2); box-shadow: 0 2px 0 var(--line); }
.rcard b { font-weight: 700; font-size: 14px; }
.rcard .meta { display: flex; gap: 6px 10px; flex-wrap: wrap; color: var(--ink-2); font-size: 12.5px; }
.rcard small { font-size: 12.5px; }

/* ---------- Dialogs ---------- */
dialog.modal { border: 1.5px solid var(--ink); border-radius: 6px; padding: 0; width: min(660px, calc(100vw - 32px)); background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-lift); }
dialog.modal::backdrop { background: rgba(14, 24, 27, .48); }
.modal-form { padding: 22px 24px; display: grid; gap: 14px; }
.modal-form header, .modal-form footer { display: flex; align-items: center; gap: 8px; }
.modal-form header h2 { flex: 1; font-size: 22px; font-weight: 800; }
.modal-form footer { padding-top: 6px; }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 30px); background: var(--ink); color: var(--sheet); padding: 10px 18px; border-radius: 6px; font-weight: 600; opacity: 0; pointer-events: none; transition: .22s; z-index: 60; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast[data-kind="error"] { background: var(--trail); color: #fff; }

/* ---------- Finder (Ctrl K) ---------- */
dialog.finder { margin: 12vh auto auto; border: 1.5px solid var(--ink); border-radius: 8px; padding: 0; width: min(620px, calc(100vw - 28px)); background: var(--sheet); color: var(--ink); box-shadow: var(--shadow-lift); }
dialog.finder::backdrop { background: rgba(14, 24, 27, .42); }
.finder-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.finder-in svg { width: 18px; height: 18px; color: var(--ink-2); flex: none; }
.finder-in input { border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 18px !important; padding: 4px 0 !important; }
.finder ul { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow-y: auto; }
.finder li a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: baseline; padding: 8px 12px; border-radius: 5px; color: var(--ink); text-decoration: none; }
.finder li a b { font-weight: 650; }
.finder li a small { grid-column: 1; color: var(--ink-2); }
.finder li a em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 12.5px; color: var(--ink-2); }
.finder li a[aria-selected="true"] { background: var(--ink); color: var(--sheet); }
.finder li a[aria-selected="true"] small, .finder li a[aria-selected="true"] em { color: color-mix(in srgb, var(--sheet) 75%, transparent); }
.finder .none { padding: 18px 14px; color: var(--ink-2); }
.finder-foot { display: flex; gap: 14px; padding: 8px 16px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); }
.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--trail); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* ---------- Coach ---------- */
.coach { display: grid; grid-template-columns: 250px minmax(0, 1fr) 280px; gap: 22px; align-items: start; }
.persona { text-align: left; width: 100%; border: 1px solid var(--line); background: var(--sheet); border-radius: 4px; padding: 10px 12px; cursor: pointer; display: grid; gap: 1px; font: inherit; color: var(--ink); }
.persona:hover { border-color: var(--ink-2); }
.persona[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 4px 0 0 var(--trail); background: var(--field); }
.persona small { color: var(--ink-2); }
.chat { display: flex; flex-direction: column; gap: 12px; min-height: 440px; }
.chat-log { flex: 1; display: flex; flex-direction: column; gap: 10px; max-height: 540px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 82%; padding: 9px 14px; border-radius: 12px; line-height: 1.5; white-space: pre-wrap; }
.bubble.agent { align-self: flex-end; background: var(--ink); color: var(--sheet); border-bottom-right-radius: 3px; }
.bubble.prospect { align-self: flex-start; background: var(--field); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.bubble.note { align-self: center; background: none; color: var(--ink-2); font-size: 13px; font-style: italic; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { min-height: 46px; }
.meter { padding: 0; margin: 0; }
.meter li { display: flex; gap: 9px; align-items: baseline; padding: 3px 0; font-size: 13.5px; list-style: none; }
.meter .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink-3); flex: none; transform: translateY(1px); }
.meter li.hit .dot { background: var(--guide); border-color: var(--guide); }
.meter li.flag .dot { background: var(--trail); border-color: var(--trail); }
.score-big { font-size: 48px; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.02em; }
.bar5 { display: flex; gap: 3px; } .bar5 i { width: 16px; height: 6px; border-radius: 2px; background: var(--line); } .bar5 i.on { background: var(--guide); }
.ai-out h4 { margin: 12px 0 4px; font-size: 15px; } .ai-out ul, .ai-out ol { margin: 0 0 8px; padding-left: 20px; } .ai-out p { margin: 0 0 6px; }

/* ---------- Talk tracks ---------- */
.track { border-left: 3px solid var(--contour); padding: 4px 0 4px 14px; margin: 10px 0; }
.script { background: var(--field); border: 1px solid var(--line-2); border-left: 3px solid var(--contour); border-radius: 0 4px 4px 0; padding: 11px 72px 11px 14px; white-space: pre-wrap; font-size: 14px; line-height: 1.55; position: relative; }
.script .btn { position: absolute; top: 7px; right: 7px; }

/* ---------- Playbook deck ---------- */
.deck { --night: #172328; --night-ink: #E6ECE8; background: var(--night); border-radius: 8px; padding: 16px; }
.deck-stage { aspect-ratio: 16 / 9; background: var(--sheet); border-radius: 4px; overflow: hidden; position: relative; container-type: inline-size; }
.slide { position: absolute; inset: 0; padding: 5cqw 6cqw; display: flex; flex-direction: column; gap: 2.2cqw; font-size: 1.75cqw; }
.slide .eyebrow { font: italic 600 1.5cqw var(--sans); color: var(--contour); }
.slide h2 { font-size: 3.7cqw; font-weight: 800; letter-spacing: -0.022em; max-width: 34ch; line-height: 1.1; }
.slide h3 { font-size: 2.05cqw; font-weight: 750; }
.slide p, .slide li { font-size: 1.85cqw; line-height: 1.42; }
.slide ul { margin: 0; padding-left: 2.2cqw; display: grid; gap: .8cqw; }
.slide .cols { display: grid; grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); gap: 2.4cqw; }
.slide .box { border: 1px solid var(--line); border-radius: .4cqw; padding: 1.6cqw 1.8cqw; background: var(--field); }
.slide .box.hl { border-color: var(--guide); box-shadow: inset .35cqw 0 0 var(--guide); }
.slide .big { font-size: 6.4cqw; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -0.03em; }
.slide .stat { display: grid; gap: .6cqw; }
.slide .stat small { font-size: 1.5cqw; color: var(--ink-2); }
.slide table { font-size: 1.6cqw; } .slide th { font-size: 1.25cqw; white-space: normal; vertical-align: bottom; border-bottom-width: .12cqw; } .slide td, .slide th { padding: .7cqw 1cqw; }
.slide .foot { margin-top: auto; font-size: 1.25cqw; color: var(--ink-2); }
.slide.title-slide { background: var(--night); color: var(--night-ink); justify-content: center; }
.slide.title-slide::before { content: ""; position: absolute; inset: 0; background: var(--contour); opacity: .45; -webkit-mask: url(/img/topo.svg) center / cover no-repeat; mask: url(/img/topo.svg) center / cover no-repeat; pointer-events: none; }
.slide.title-slide > * { position: relative; }
.slide.title-slide h2 { font-size: 5.2cqw; color: var(--night-ink); max-width: 20ch; }
.slide.title-slide p { color: color-mix(in srgb, var(--night-ink) 80%, transparent); font-size: 2.1cqw; max-width: 60ch; }
.slide.title-slide .eyebrow { color: color-mix(in srgb, var(--night-ink) 72%, transparent); }
.flow { display: flex; gap: 1cqw; align-items: stretch; }
.flow .step { flex: 1; border: 1px solid var(--line); border-radius: .4cqw; padding: 1.4cqw; background: var(--field); display: grid; gap: .5cqw; align-content: start; }
.flow .step b { font: 800 2cqw var(--sans); color: var(--ink); }
.flow .step span { font-size: 1.5cqw; color: var(--ink-2); }
.flow .arrow { align-self: center; color: var(--trail); font-size: 2.4cqw; }
.deck-bar { display: flex; align-items: center; gap: 10px; color: color-mix(in srgb, var(--night-ink) 80%, transparent); padding-top: 12px; flex-wrap: wrap; }
.deck-bar .btn { border-color: color-mix(in srgb, var(--night-ink) 45%, transparent); color: var(--night-ink); }
.deck-bar .btn:hover { background: var(--night-ink); color: var(--night); }
.deck-progress { flex: 1; height: 4px; background: color-mix(in srgb, var(--night-ink) 20%, transparent); border-radius: 2px; overflow: hidden; min-width: 80px; }
.deck-progress i { display: block; height: 100%; background: var(--trail); }
.deck:fullscreen { display: grid; place-content: center; padding: 2vh 2vw; border-radius: 0; }
.deck:fullscreen .deck-stage { width: min(96vw, 160vh); }

/* ---------- Sign in ---------- */
.auth { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 30px max(16px, env(safe-area-inset-right, 0px)) 30px max(16px, env(safe-area-inset-left, 0px)); background: var(--sheet); overflow: hidden; }
.auth::before { content: ""; position: absolute; inset: 0; background: var(--contour); opacity: .42; -webkit-mask: url(/img/topo.svg) center / cover no-repeat; mask: url(/img/topo.svg) center / cover no-repeat; pointer-events: none; }
.auth .card { width: min(500px, 100%); padding: 30px 30px 26px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 6px; box-shadow: var(--shadow-lift); }
.auth .card.wide { width: min(680px, 100%); }
.privacy-list { margin: 8px 0 0; padding-left: 1.15em; display: grid; gap: 8px; }
.privacy-list li { color: var(--ink); }
.demo-banner { border: 1px solid var(--line); border-left: 4px solid var(--ochre); background: var(--field); padding: 10px 14px; margin: 0 0 18px; font-size: 14px; border-radius: 0 4px 4px 0; }
#view:focus { outline: none; }
.auth h1 { font-size: 26px; margin: 18px 0 4px; }
.lockup { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.lockup svg, .lockup img { width: 46px; height: 46px; flex: none; }
.lockup b { font-size: 27px; font-weight: 800; letter-spacing: -0.025em; }
.auth .stack { gap: 14px; }
.auth .btn.primary { width: 100%; padding: 10px 14px; font-size: 15px; }

/* ---------- Scale plan ---------- */
.plan { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 22px; align-items: start; }
.inputs { display: grid; gap: 14px; }
.inputs fieldset { border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px 14px; display: grid; gap: 9px; margin: 0; }
.inputs legend { font-size: 13.5px; font-weight: 750; color: var(--ink); padding: 0 6px; }
.inrow { display: grid; grid-template-columns: 1fr 100px; gap: 10px; align-items: center; }
.inrow label { font-weight: 500; color: var(--ink); font-size: 13.5px; }
.inrow input { text-align: right; font-variant-numeric: tabular-nums; padding: 5px 8px; }
.verdict { padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid var(--ink-3); border-radius: 0 4px 4px 0; background: var(--field); }
.verdict.good { border-left-color: var(--guide); }
.verdict.warn { border-left-color: var(--ochre); }

/* ---------- Agents: promotions and width ---------- */
.promo-list { display: grid; margin-top: 4px; }
.promo { padding: 13px 0; border-top: 1px solid var(--line-2); }
.promo:first-child { border-top: 0; }
.p-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.p-head b { font-size: 15px; }
.p-head .muted { font-size: 13.5px; }
.p-items { display: grid; gap: 7px; }
.p-item { display: grid; grid-template-columns: minmax(150px, 1.2fr) minmax(80px, 1fr) minmax(110px, auto); gap: 12px; align-items: center; font-size: 13.5px; }
.p-item small { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
.p-or { font-size: 12.5px; font-style: italic; color: var(--ink-2); padding: 1px 0; }
.meter.thin { display: block; height: 6px; border-radius: 3px; background: var(--field-2); border: 1px solid var(--line-2); overflow: hidden; }
.meter.thin i { display: block; height: 100%; min-width: 2px; border-radius: 3px; background: var(--guide); transition: width .6s cubic-bezier(.2, .7, .2, 1); }
.meter.thin.over i { background: var(--trail); }
.list-item .meter.thin { margin-top: 6px; max-width: 260px; }

/* ---------- Case prep ---------- */
.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.cat { border: 1px solid var(--line); border-left: 4px solid var(--river); border-radius: 0 4px 4px 0; padding: 11px 13px; background: var(--field); }
.cat b { font-size: 15px; font-weight: 800; }
.cat p { margin: 4px 0 6px; font-size: 14px; }
.cat small { color: var(--ink-2); font-size: 13px; }
.flags { margin: 6px 0 0; padding-left: 18px; }
.flags li { margin: 5px 0; font-size: 14px; }
.flags li::marker { color: var(--trail); }

/* ---------- Coach fast track ---------- */
.fast h3 { margin-bottom: 4px; }
.fast p { font-size: 13px; margin: 0 0 8px; }
.fast-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; }
.fast-row b { font-size: 28px; font-weight: 800; color: var(--ink); }
.voice-row { flex-wrap: wrap; gap: 10px; margin: 8px 0; font-size: 13.5px; }
.voice-row select { width: auto; max-width: 220px; }
.voice-row small { flex-basis: 100%; }

/* ---------- Partnership ---------- */
.roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 4px; }
.role { border: 1px solid var(--line); border-top: 4px solid var(--guide); border-radius: 3px; padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.role:nth-child(2) { border-top-color: var(--river); }
.role p { margin: 0; font-size: 15px; }
.role button.link { justify-self: start; }
.todo, .decided { list-style: none; margin: 6px 0 0; padding: 0; }
.todo li, .decided li { padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.todo li:last-child, .decided li:last-child { border-bottom: 0; }
.todo label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14.5px; font-weight: 400; color: var(--ink); }
.todo input { margin-top: 4px; }
.todo li > small { margin-left: 26px; }
.todo li > button.link, .decided li > button.link { margin-left: 8px; }
.todo li.is-done label span { text-decoration: line-through; color: var(--ink-2); }
.todo.done { opacity: .75; }
.decided p { margin: 0 0 2px; font-size: 14.5px; }

/* ---------- Settings ---------- */
table.mini { width: 100%; border-collapse: collapse; font-size: 14px; }
table.mini th { font-size: 12.5px; padding: 0 8px 6px 0; border-bottom: 0; }
table.mini td { padding: 3px 8px 3px 0; border: 0; }
table.mini .num { text-align: right; }
table.mini input { width: 100%; }
fieldset.field { border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px 10px; margin: 0; }
fieldset.field legend { font-size: 13.5px; font-weight: 650; padding: 0 4px; color: var(--ink); }
fieldset.field .check { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
fieldset.field .check input { width: auto; }

/* =====================================================================
   Dashboard
   ===================================================================== */
.dash { display: grid; gap: 34px; }
.d-head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.d-head h1 { font-size: 36px; }
.d-head p { margin: 6px 0 0; color: var(--ink-2); }
.d-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.brand-mark { width: 30px; height: 30px; border-radius: 6px; background: var(--guide); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--guide), inset 0 0 0 2.5px rgba(255, 255, 255, .7); }
.sample-tag { font-size: 13px; font-weight: 650; color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 4px 4px; }
.sample-tag::before { content: ""; width: 11px; height: 7px; border-radius: 2px; background: var(--ochre); }

/* The route profile: monthly partner income drawn like an elevation profile */
.profile .pf-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 26px; align-items: stretch; }
.pf-chart { position: relative; min-height: 300px; overflow: hidden; }
.pf-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pf-hit { position: absolute; top: 0; bottom: 30px; appearance: none; background: transparent; border: 0; padding: 0; cursor: pointer; }
.pf-hit:focus-visible { outline: none; }
.pf-hit:focus-visible::after { content: ""; position: absolute; inset: 0 2px; border: 2px solid var(--river); border-radius: 3px; }
.pf .contour { stroke: var(--contour-soft); stroke-width: 1; fill: none; }
.pf .contour.index { stroke: var(--contour); stroke-opacity: .55; stroke-width: 1.3; }
.pf .clabel { fill: var(--ink-2); font: italic 500 12px var(--sans); font-variant-numeric: tabular-nums; }
.pf .xlabel { fill: var(--ink-2); font: 500 12.5px var(--sans); }
.pf .xlabel.cur { fill: var(--ink); font-weight: 800; }
.pf .terrain { fill: var(--river); fill-opacity: .10; }
.pf .ridge { fill: none; stroke: var(--river); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.pf .pt { fill: var(--river); stroke: var(--sheet); stroke-width: 2; }
.pf .gate { stroke: var(--trail); stroke-width: 1.6; stroke-dasharray: 7 5; }
.pf .glabel { fill: var(--ink); font: italic 650 12.5px var(--sans); }
.pf .pace { stroke: var(--trail); stroke-width: 2; stroke-dasharray: 2 4; stroke-linecap: round; }
.pf .pace-pt { fill: var(--sheet); stroke: var(--trail); stroke-width: 2; }
.pf .here { fill: var(--trail); stroke: var(--sheet); stroke-width: 2.5; }
.pf .here-ring { fill: none; stroke: var(--trail); stroke-width: 1.6; }
.pf .sel-line { stroke: var(--ink); stroke-opacity: .35; stroke-width: 1; }
.pf .sel-pt { fill: var(--sheet); stroke: var(--ink); stroke-width: 2.5; }
.pf .summit { fill: var(--ink); }
.pf .slabel { fill: var(--ink-2); font: italic 500 12.5px var(--sans); }
.pf.intro .ridge { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s cubic-bezier(.3, .6, .2, 1) .1s forwards; }
.pf.intro .terrain, .pf.intro .pt, .pf.intro .here, .pf.intro .here-ring, .pf.intro .pace, .pf.intro .pace-pt { opacity: 0; animation: appear .4s ease-out 1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }

.pf-callout { display: flex; flex-direction: column; justify-content: flex-end; padding: 4px 0 30px; border-left: 1px solid var(--line-2); padding-left: 24px; }
.co-month { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 650; font-size: 14.5px; }
.co-month .here-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--trail); box-shadow: 0 0 0 2px var(--sheet), 0 0 0 3.5px var(--trail); flex: none; }
.co-fig { margin: 4px 0 0; font-size: 54px; font-weight: 800; letter-spacing: -0.035em; line-height: 1; }
.co-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.co-gate { margin: 12px 0 0; font-weight: 700; font-size: 15px; display: flex; gap: 8px; align-items: baseline; }
.co-gate::before { content: ""; width: 11px; height: 7px; border-radius: 2px; flex: none; transform: translateY(-1px); }
.co-gate.over::before { background: var(--guide); }
.co-gate.under::before { background: var(--trail); }
.co-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2); }
.co-stats dt { font-size: 12.5px; color: var(--ink-2); }
.co-stats dd { margin: 0; font-weight: 750; font-size: 17px; font-variant-numeric: tabular-nums; }
.co-stats dd.neg { color: var(--trail); }
.co-back { appearance: none; border: 0; background: none; color: var(--river); font: 600 13px var(--sans); cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; margin-left: auto; }

/* Readouts: gate, pace and producers, each drawn the way a map would show it */
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 3px; }
.ro { display: grid; gap: 8px; align-content: start; padding: 18px 22px 18px; border-left: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.ro:first-child { border-left: 0; }
.ro:hover .ro-title { text-decoration: underline; text-underline-offset: 3px; }
.ro-title { font-size: 14px; font-weight: 750; }
.ro-value { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.ro-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.blazes { display: flex; gap: 10px; }
.blaze { display: grid; gap: 4px; justify-items: center; font-size: 12px; color: var(--ink-2); }
.blaze i { width: 46px; height: 14px; border-radius: 3px; border: 2px solid var(--ink-3); }
.blaze.on i { background: var(--guide); border-color: var(--guide); }
.blaze.cur i { border-style: dashed; }
.scalebar { position: relative; padding-top: 16px; }
.scalebar .bar { display: grid; grid-template-columns: repeat(4, 1fr); height: 9px; border: 1.5px solid var(--ink); }
.scalebar .bar i:nth-child(odd) { background: var(--ink); }
.scalebar .ticks { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.scalebar .pin { position: absolute; top: 0; width: 2px; height: 27px; background: var(--trail); transform: translateX(-1px); }
.scalebar .pin::before { content: ""; position: absolute; top: -2px; left: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--trail); box-shadow: 0 0 0 2px var(--sheet); transform: translateX(-50%); }
.dotfield { display: grid; grid-template-columns: repeat(var(--cols, 25), 1fr); gap: 3px; max-width: 320px; }
.dotfield i { aspect-ratio: 1; border-radius: 50%; border: 1.2px solid var(--line); }
.dotfield i.on { background: var(--guide); border-color: var(--guide); }

/* The engine: people moving along the route, drawn as one band that narrows and widens */
.engine-card .stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.engine-card .stages li { min-width: 0; }
.stage { appearance: none; width: 100%; height: 100%; display: grid; align-content: start; gap: 2px; text-align: left; border: 0; border-left: 1px solid var(--line-2); background: transparent; color: var(--ink); padding: 4px 16px 10px; font: inherit; cursor: pointer; }
.engine-card .stages li:first-child .stage { border-left: 0; padding-left: 4px; }
.stage:hover .s-name, .stage.open .s-name { text-decoration: underline; text-underline-offset: 3px; }
.stage.open { background: color-mix(in srgb, var(--guide) 7%, transparent); }
.s-name { font-weight: 750; font-size: 14.5px; display: flex; gap: 7px; align-items: baseline; }
.s-name em { font-style: normal; font-weight: 600; color: var(--ink-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.s-value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-top: 4px; }
.s-unit { font-size: 13px; color: var(--ink-2); }
.s-note { font-size: 13px; color: var(--ink); margin-top: 6px; }
.band { display: block; width: 100%; height: 86px; margin-top: 4px; overflow: visible; }
.band .flowband { fill: var(--guide); fill-opacity: .16; stroke: var(--guide); stroke-width: 1.6; }
.band .loss { fill: none; stroke: var(--trail); stroke-width: 1.4; stroke-dasharray: 3 3; }
.band .loss-label { fill: var(--ink-2); font: italic 500 12px var(--sans); }
.band .count { fill: var(--ink); font: 750 13px var(--sans); font-variant-numeric: tabular-nums; }
.drawer { margin-top: 12px; border-top: 1.5px solid var(--ink); padding-top: 4px; animation: drawer .18s ease-out; }
.drawer td { padding: 9px 10px 9px 0; }
.drawer a { display: inline-block; margin-top: 10px; font-weight: 650; font-size: 14px; }
@keyframes drawer { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Needs you, the climb */
.d-cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; margin-left: auto; }
.tabs button { appearance: none; border: 0; background: none; padding: 5px 10px; border-radius: 4px; font: 650 13.5px var(--sans); color: var(--ink-2); cursor: pointer; }
.tabs button:hover { color: var(--ink); background: var(--field-2); }
.tabs button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2.5px 0 var(--trail); border-radius: 0; }
.tabs .n { display: inline-block; min-width: 20px; margin-left: 3px; padding: 0 6px; border-radius: 9px; background: var(--ink); color: var(--sheet); font-size: 11.5px; line-height: 1.6; text-align: center; font-variant-numeric: tabular-nums; }
.mine { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 2px; cursor: pointer; font-weight: 500; }
.mine input { width: auto; margin: 0; }
.tasks, .drafts, .activity { list-style: none; margin: 0; padding: 0; }
.task { display: grid; gap: 1px; padding: 10px 0; border-bottom: 1px solid var(--line-2); transition: opacity .3s ease, transform .3s ease; }
.task:last-child, .drafts li:last-child, .activity li:last-child { border-bottom: 0; }
.task label { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; color: var(--ink); font-weight: 500; font-size: 14.5px; }
.task input { appearance: none; flex: none; width: 16px; height: 16px; margin: 2px 0 0; border: 2px solid var(--ink); border-radius: 50%; background: var(--sheet); cursor: pointer; display: grid; place-items: center; }
.task input:hover { background: var(--field-2); }
.task input:checked { background: var(--guide); border-color: var(--guide); }
.t-meta { font-size: 13px; color: var(--ink-2); padding-left: 28px; }
.t-meta.late { color: var(--trail); font-weight: 650; }
.task.done { opacity: .35; transform: translateX(8px); }
.task.done .t-title { text-decoration: line-through; }
.drafts li { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.d-ch { flex: none; font-size: 12.5px; font-weight: 750; width: 44px; color: var(--ink-2); }
.d-body { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity li { display: grid; gap: 1px; padding: 9px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.activity small { color: var(--ink-2); font-size: 12.5px; }
.calm { color: var(--ink-2); margin: 12px 0 4px; max-width: 52ch; }
.more { display: inline-block; margin-top: 12px; font-weight: 650; font-size: 14px; }

.climb-svg { display: block; width: 100%; height: auto; overflow: visible; }
.climb .ridge-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.climb .slope { fill: var(--contour); fill-opacity: .10; }
.climb .camp { fill: var(--sheet); stroke: var(--contour); stroke-width: 2; }
.climb .camp.reached { fill: var(--contour); }
.climb .camp-label { fill: var(--ink); font: 650 12.5px var(--sans); }
.climb .camp-pct { fill: var(--ink-2); font: italic 500 12px var(--sans); font-variant-numeric: tabular-nums; }
.climb .who { fill: var(--trail); stroke: var(--sheet); stroke-width: 2.5; }
.climb .who.alt { fill: var(--river); }
.climb .who-init { fill: #fff; font: 800 11px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.climb .who-label { fill: var(--ink); font: 750 12.5px var(--sans); }
.climb-notes { display: grid; gap: 10px; margin-top: 6px; }
.climb-notes p { margin: 0; font-size: 13.5px; color: var(--ink-2); }
.climb-notes b { color: var(--ink); }
.sprint { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.sprint-title { font-weight: 750; font-size: 14.5px; }
.sprint-pips { display: flex; gap: 5px; flex-wrap: wrap; }
.sprint-pips i { width: 22px; height: 12px; border-radius: 2px; border: 2px solid var(--ink-3); }
.sprint-pips i.on { background: var(--guide); border-color: var(--guide); }
.sprint-note { font-size: 13.5px; color: var(--ink-2); }

/* Two engines */
.engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.eng { display: grid; gap: 7px; align-content: start; padding: 2px 22px 4px; border-left: 1px solid var(--line-2); color: var(--ink); text-decoration: none; }
.eng:first-child { border-left: 0; padding-left: 0; }
.eng:hover .e-name { text-decoration: underline; text-underline-offset: 3px; }
.e-name { font-weight: 750; font-size: 14.5px; }
.e-line { font-size: 14px; }
.e-line b { font-size: 24px; font-weight: 800; margin-right: 3px; }
.e-note { font-size: 13px; color: var(--ink-2); }
.slots { display: flex; gap: 4px; flex-wrap: wrap; }
.slots i { width: 18px; height: 12px; border-radius: 2px; border: 2px solid var(--ink-3); }
.slots i.full { background: var(--river); border-color: var(--river); }
.slots i.over { background: var(--trail); border-color: var(--trail); }
.niche-list { display: flex; gap: 6px 12px; flex-wrap: wrap; }
.chip { font-size: 13.5px; }
.chip em { font-style: italic; color: var(--ink-2); }

/* =====================================================================
   The agent tree, drawn as a watershed: each agent is a stream, its width is the
   points flowing from that branch toward you in the last 90 days
   ===================================================================== */
.ws { position: relative; }
.ws-scroll { overflow-x: auto; overflow-y: hidden; }
.ws svg { display: block; overflow: visible; }
.ws .col-line { stroke: var(--contour-soft); stroke-width: 1; }
.ws .col-label { fill: var(--ink-2); font: italic 500 12px var(--sans); }
.ws .col-label.goal { fill: var(--contour); font-weight: 650; }
.ws .stream { fill: none; stroke: var(--river); stroke-opacity: .55; stroke-linecap: round; transition: stroke-opacity .15s; }
.ws .stream.dry { stroke-opacity: .55; stroke-dasharray: 3 4; stroke-width: 1.4; }
.ws .node { cursor: pointer; }
.ws .node:focus { outline: none; }
.ws .node:focus-visible .dot, .ws .node:focus-visible .ring-focus { stroke: var(--river); stroke-width: 3; }
.ws .dot { fill: var(--river); stroke: var(--sheet); stroke-width: 2; }
.ws .dot.idle { fill: var(--sheet); stroke: var(--ink-2); stroke-width: 1.6; }
.ws .dot.partner { fill: var(--ink); stroke: var(--sheet); stroke-width: 2.5; }
.ws .init { fill: var(--sheet); font: 800 11px var(--sans); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ws .rising { fill: none; stroke: var(--trail); stroke-width: 1.8; }
.ws .name, .ws .col-label, .ws .more-label { paint-order: stroke; stroke: var(--sheet); stroke-width: 4px; stroke-linejoin: round; }
.ws .name { fill: var(--ink); font: italic 600 12.5px var(--sans); }
.ws .name.partner { font-style: normal; font-weight: 800; font-size: 13.5px; }
.ws .pts { fill: var(--ink-2); font: 500 11.5px var(--sans); font-variant-numeric: tabular-nums; }
.ws .more-label { fill: var(--ink-2); font: italic 500 11.5px var(--sans); }
.ws.tracing .stream { stroke-opacity: .14; }
.ws.tracing .stream.on { stroke-opacity: .95; stroke: var(--river); }
.ws.tracing .node { opacity: .38; }
.ws.tracing .node.on { opacity: 1; }
.ws-tip { position: absolute; z-index: 5; width: 270px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: 5px; padding: 12px 14px; box-shadow: var(--shadow-lift); font-size: 13.5px; pointer-events: none; }
.ws-tip b { font-size: 15px; }
.ws-tip .tip-sub { color: var(--ink-2); margin: 2px 0 8px; }
.ws-tip table { font-size: 13px; }
.ws-tip td { padding: 3px 0; border-bottom: 1px solid var(--line-2); }
.ws-tip td.num { padding-left: 10px; }
.ws-tip .tip-total td { font-weight: 750; border-bottom: 0; }
.ws-key { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.ws-key span { display: inline-flex; align-items: center; gap: 7px; }
.ws-key svg { flex: none; }

/* =====================================================================
   Small screens: the route collapses into a map you open from the top bar
   ===================================================================== */
@media (max-width: 1180px) {
  .coach { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.g4 > .card.kpi:nth-child(3) { border-left: 0; }
  .grid.g4 > .card.kpi:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .profile .pf-body { grid-template-columns: 1fr; }
  .pf-callout { border-left: 0; padding-left: 0; padding-bottom: 0; border-top: 1px solid var(--line-2); padding-top: 16px; }
  .d-cols { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 30; align-items: center; gap: 10px; padding: 10px max(14px, env(safe-area-inset-right, 0px)) 10px max(14px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--sheet) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
  .topbar .mark svg { width: 28px; height: 28px; }
  .topbar .mark b { font-size: 16px; }
  .topbar .btn svg { width: 16px; height: 16px; }
  .find kbd { display: none; }
  .topbar .here-name { font-weight: 700; font-size: 14.5px; display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .topbar .here-name::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--trail); flex: none; }
  .topbar .tb-actions { margin-left: auto; display: flex; gap: 6px; }
  .rail { display: none; }
  .rail.open { display: flex; position: fixed; inset: 0; z-index: 40; height: 100dvh; width: 100%; border: 0; padding: 18px 22px 22px; box-shadow: none; animation: open-map .18s ease-out; }
  .rail.open .rail-close { display: inline-flex; position: absolute; top: 14px; right: 14px; }
  @keyframes open-map { from { opacity: 0; transform: translateY(8px); } }
  .main { padding-top: 20px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .g2, .g3, .g4, .g-2-1 { grid-template-columns: 1fr; }
  .grid.g4 > .card.kpi { border-left: 0; border-top: 1px solid var(--line-2); }
  .grid.g4 > .card.kpi:first-child { border-top: 0; }
  .grid:has(> .card.kpi):not(.g4) { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .funnel-row { grid-template-columns: 86px 1fr 40px 36px; }
  .page-head h1, .d-head h1 { font-size: 29px; }
  .readouts { grid-template-columns: 1fr; }
  .ro { border-left: 0; border-top: 1px solid var(--line-2); }
  .ro:first-child { border-top: 0; }
  .engine-card .stages { grid-template-columns: 1fr 1fr; }
  .engine-card .stages li:last-child { grid-column: 1 / -1; }
  .stage { border-left: 0; border-top: 1px solid var(--line-2); padding: 10px 6px; }
  .band { display: none; }
  .engines { grid-template-columns: 1fr; gap: 14px; }
  .eng { border-left: 0; padding: 12px 0 0; border-top: 1px solid var(--line-2); }
  .eng:first-child { border-top: 0; padding-top: 0; }
  .co-fig { font-size: 46px; }
  .p-item { grid-template-columns: 1fr; gap: 3px; }
  .p-item small { text-align: left; }
}
@media (max-width: 520px) {
  .card { padding: 20px 14px 16px; }
  .card > header:first-child > h2:first-child, .card > h2:first-child, .card > h3:first-child { left: 8px; }
  .kanban { grid-auto-columns: minmax(80vw, 1fr); }
}

/* =====================================================================
   The Dump: capture fast, then sort into a queue
   ===================================================================== */
.find.dump-it { margin-top: -10px; color: var(--ink); border-style: dashed; }
.find.dump-it svg { color: var(--guide); }
.topbar [data-dump] svg { width: 14px; height: 14px; }

.dump-cap { padding-top: 26px; margin-bottom: 30px; }
.cap-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: stretch; }
.cap-row textarea { font-size: 17px; line-height: 1.45; padding: 11px 14px; min-height: 58px; }
.cap-row .btn { padding: 0 24px; font-size: 15px; }
.cap-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; margin-top: 10px; font-size: 13.5px; }
.cap-foot p { margin: 0; }
.cap-addr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.cap-addr > span { color: var(--ink-2); }
.cap-addr .code { font-size: 14px; }
.cap-addr small { flex-basis: 100%; font-size: 12.5px; }

.dump-board { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .85fr); border-top: 1.5px solid var(--ink); }
.dcol { padding: 16px 22px 28px; border-left: 1px solid var(--line-2); min-height: 280px; min-width: 0; transition: background .12s; }
.dcol:first-child { border-left: 0; padding-left: 0; }
.dcol:last-child { padding-right: 0; }
.dcol.drop, .parked.drop { background: color-mix(in srgb, var(--guide) 7%, transparent); outline: 2px dashed var(--guide); outline-offset: -2px; }
.dcol-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.dcol-h h2 { font-size: 19px; font-weight: 800; }
.dcol-h .n { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 650; }
.dcol-h .link { margin-left: auto; text-align: right; }

/* Just dumped: loose index cards */
.ideas { display: grid; gap: 12px; }
.idea { position: relative; background: var(--field); border: 1px solid var(--line); border-radius: 4px; padding: 12px 14px; display: grid; gap: 6px; cursor: grab; transition: border-color .12s, box-shadow .12s; }
.idea:hover { border-color: var(--ink-2); box-shadow: 0 2px 0 var(--line); }
.idea.hot { border-left: 4px solid var(--trail); padding-left: 11px; }
.i-meta { margin: 0; font-size: 12.5px; color: var(--ink-2); }
.i-meta b { color: var(--ink); font-weight: 700; }
.hot-tag { margin-left: 8px; color: var(--trail); font-weight: 750; }
.i-title { font-size: 15.5px; font-weight: 750; line-height: 1.35; margin: 0; overflow-wrap: anywhere; }
.i-notes { margin: 0; color: var(--ink-2); font-size: 13.5px; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.i-tags { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12.5px; color: var(--ink-2); }
.stage-tag { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 7px; }
.stage-tag::before { content: ""; width: 7px; height: 7px; border: 1.5px solid var(--ink-2); transform: rotate(45deg); }
.hint { color: var(--ochre); font-weight: 650; }
.i-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* The queue: a trail of numbered stops, next up in guide green */
.qtrail { list-style: none; margin: 0; padding: 0; position: relative; }
.qtrail::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 18px; width: 2px; background: var(--ink); border-radius: 2px; }
.qtrail > li:only-child::before { display: none; }
.q { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 8px 0 12px; cursor: grab; }
.q-n { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--sheet); border: 2px solid var(--ink); font-weight: 800; font-size: 13px; font-variant-numeric: tabular-nums; }
.q.next .q-n { background: var(--guide); border-color: var(--guide); color: var(--guide-ink); box-shadow: 0 0 0 3px var(--sheet), 0 0 0 4.5px var(--guide); }
.q-next { display: block; font-size: 12.5px; font-weight: 750; color: var(--guide); font-style: italic; }
.q-body { min-width: 0; padding-top: 3px; }
.q-meta { margin: 3px 0 0; font-size: 12.5px; color: var(--ink-2); }
.q-meta .hint { margin-left: 8px; }
.q-actions { display: flex; align-items: center; gap: 2px; }
.q-steps { display: grid; gap: 0; align-content: start; }
.q-steps .step { font-size: 0; padding: 4px 5px; color: var(--ink-2); }
.q-steps .step:disabled { opacity: .28; cursor: default; background: none; }
.q-start { margin-left: 10px; font-size: 12.5px; white-space: nowrap; }
.q-go { margin-top: 8px; }
.hot-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--trail); margin-right: 7px; vertical-align: 2px; }
.q.ins-before::after { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 3px; background: var(--guide); border-radius: 2px; }
.qtrail.ins-end::after { content: ""; display: block; height: 3px; background: var(--guide); border-radius: 2px; margin-top: 4px; }
.dragging { opacity: .45; }

/* Doing now, done and parked */
.dlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.drow { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 2px 10px; align-items: start; padding: 8px 0; }
.drow[draggable] { cursor: grab; }
.drow .q-actions { grid-column: 2; padding-top: 6px; flex-wrap: wrap; gap: 6px; }
.drow .q-actions .btn { margin-left: 0; }
.d-stop { width: 14px; height: 14px; border-radius: 50%; margin-top: 4px; background: var(--trail); box-shadow: 0 0 0 2.5px var(--sheet), 0 0 0 4px var(--trail); }
.d-stop.done { background: var(--ink-3); box-shadow: none; }
.d-stop.parked { background: transparent; border: 2px dashed var(--ink-3); box-shadow: none; }
.faded .i-title { color: var(--ink-2); font-weight: 650; font-size: 14.5px; }
.after { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line-2); display: grid; gap: 12px; justify-items: start; }
.after > .dlist, .parked { width: 100%; }
.parked { padding: 10px 12px; border: 1px dashed var(--line); border-radius: 4px; display: grid; gap: 6px; justify-items: start; }

.held { border: 1px solid var(--line); border-left: 4px solid var(--ochre); background: var(--field); border-radius: 0 4px 4px 0; padding: 10px 14px; margin-bottom: 14px; display: grid; gap: 10px; font-size: 13.5px; }
.held p { margin: 0; }
.held-row { display: grid; gap: 6px; padding-top: 9px; border-top: 1px solid var(--line-2); cursor: pointer; }
.dump-board [data-id]:focus-visible { outline: 2px solid var(--river); outline-offset: 2px; border-radius: 4px; }

.hint-list { margin: 0; padding: 10px 14px 10px 30px; border-left: 4px solid var(--ochre); background: var(--field); font-size: 13.5px; display: grid; gap: 4px; }
.orig summary { cursor: pointer; font-weight: 650; font-size: 13.5px; }
.orig p { white-space: pre-line; margin: 8px 0 0; padding: 10px 12px; background: var(--field); border: 1px solid var(--line-2); border-radius: 4px; font-size: 13.5px; max-height: 220px; overflow: auto; overflow-wrap: anywhere; }

.dump-set .ds-cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 34px; }
.dump-set p { margin: 0; }
.dump-set h3 { font-size: 15.5px; font-weight: 750; margin: 0; }
.ds-steps { margin: 0; padding-left: 22px; display: grid; gap: 9px; }
.ds-steps li::marker { font-weight: 800; }
.ds-tips { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.ds-status { padding: 8px 12px; background: var(--field); border: 1px solid var(--line); border-left: 4px solid var(--ink-3); border-radius: 0 4px 4px 0; }
.ds-status.good { border-left-color: var(--guide); }
.ds-status.bad { border-left-color: var(--trail); }
.senders { display: grid; gap: 6px; }
.sender { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 6px; }
.ds-more summary { cursor: pointer; font-weight: 650; }
.ds-more[open] { display: grid; gap: 10px; }
.ds-more p { font-size: 13.5px; }
.ds-url { overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .dump-board { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .dcol[data-zone="doing"] { grid-column: 1 / -1; border-left: 0; padding-left: 0; padding-right: 0; border-top: 1px solid var(--line-2); min-height: 0; }
  .dcol:nth-child(2) { padding-right: 0; }
}
@media (max-width: 900px) {
  .dump-board { grid-template-columns: 1fr; }
  .dcol, .dcol:nth-child(2) { border-left: 0; padding: 16px 0 24px; border-top: 1px solid var(--line-2); min-height: 0; }
  .dcol:first-child { border-top: 0; }
  .cap-row { grid-template-columns: 1fr; }
  .cap-row .btn { padding: 10px; }
  .dump-set .ds-cols { grid-template-columns: 1fr; }
  .sender { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar [data-dump] span { display: none; }
}
.i-title { text-wrap: pretty; }
@media (max-width: 520px) { .quick-dump footer small { display: none; } }
