/* Geminus campaign planner, version 2.
   Paper, ink and hairlines. One hue per audience (--h), vermilion (--acc) for actions and for what just changed. */
:root {
  --paper: #f5f2ea; --paper-2: #ebe6d9; --ink: #1a1814; --ink-2: #595447; --ink-3: #8e8775;
  --rule: #d9d3c3; --rule-2: #bcb4a0;
  --acc: #b93f26; --ochre: #8a6010; --h: #1e4d48;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", Consolas, "SF Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 62px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 14.5px/1.5 var(--sans); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
p { margin: 0 0 10px; }
h1, h2, h3 { margin: 0; font-weight: 400; }
ul { margin: 0; padding: 0; list-style: none; }
i, u, em.edited { font-style: normal; text-decoration: none; }
b { font-weight: 600; }

/* ---------- small type ---------- */
.cap { font: 500 10.5px/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.fine { font-size: 12.5px; color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: 12px; }
.lede { font: 400 17px/1.45 var(--serif); color: var(--ink-2); max-width: 60ch; margin-bottom: 16px; }
.ill { font: 500 10px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ochre); border-bottom: 1px dotted var(--ochre); padding-bottom: 1px; white-space: nowrap; }
.w { font: 500 10.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.w.ok { color: #1e4d48; } .w.warn { color: var(--ochre); } .w.bad { color: var(--acc); } .w.act { color: var(--ink); }
em.edited { font: 500 9.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--acc); margin-left: 6px; }

/* ---------- controls ---------- */
input, select, textarea { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--rule-2); border-radius: 0; padding: 3px 0 2px; outline: none; min-width: 0; }
select { padding-right: 4px; cursor: pointer; }
input:hover, select:hover, textarea:hover { border-bottom-color: var(--ink); }
input:focus, select:focus, textarea:focus { border-bottom-color: var(--acc); box-shadow: 0 1px 0 var(--acc); }
input[type=number] { font-variant-numeric: tabular-nums; }
input[type=file] { border: 0; font-size: 13px; }
button { font: inherit; color: inherit; }
button:focus-visible, [tabindex]:focus-visible, summary:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.btn { background: var(--ink); color: var(--paper); border: 1px solid var(--ink); padding: 8px 17px; font: 500 14px/1.25 var(--sans); border-radius: 2px; cursor: pointer; transition: background .15s, transform .15s; }
.btn:hover { background: #000; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn[disabled] { background: transparent; color: var(--ink-3); border-color: var(--rule-2); cursor: default; transform: none; }
.lnk { background: none; border: 0; border-bottom: 1px solid var(--rule-2); padding: 0 0 1px; cursor: pointer; font-size: 13.5px; }
.lnk:hover { border-bottom-color: var(--ink); }
.lnk.danger:hover { color: var(--acc); border-bottom-color: var(--acc); }
.acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: baseline; gap: 16px; padding: 13px 36px 11px; background: var(--paper); border-bottom: 1px solid var(--ink); }
.mark { font: 500 22px/1 var(--serif); letter-spacing: -.01em; }
.top .cap span { color: var(--ochre); margin-left: 6px; }
.top nav { margin-left: auto; display: flex; gap: 22px; }

/* ---------- dashboard ---------- */
.dash { max-width: 1040px; margin: 0 auto; padding: 56px 36px 96px; }
.dash-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--ink); }
.dash h1 { font: 400 52px/1 var(--serif); letter-spacing: -.025em; margin-bottom: 12px; }
.dash .lede { margin: 0; }
.dash .acts { margin: 0; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) 110px 150px 96px 150px 150px; gap: 18px; align-items: center; padding: 15px 0 14px; border-bottom: 1px solid var(--rule); cursor: pointer; transition: padding .18s var(--ease); }
.crow:hover { padding-left: 10px; }
.crow .c-name b { display: block; font: 500 19px/1.2 var(--serif); }
.crow .c-name span { font-size: 13px; color: var(--ink-2); }
.pips { display: flex; gap: 3px; }
.pips i { width: 9px; height: 9px; border: 1px solid var(--ink-3); }
.pips i.on { background: var(--ink); border-color: var(--ink); }
.crow .del { text-align: right; }
.empty { font: italic 400 17px/1.5 var(--serif); color: var(--ink-2); padding: 34px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.dash .foot { margin-top: 28px; max-width: 78ch; }

/* ---------- campaign frame: spine + thread ---------- */
.frame { display: grid; grid-template-columns: 236px minmax(0, 1fr); column-gap: 44px; max-width: 1400px; margin: 0 auto; padding: 0 36px 140px; }
.spine { position: sticky; top: 50px; align-self: start; max-height: calc(100vh - 50px); overflow: auto; padding: 22px 22px 16px 0; border-right: 1px solid var(--rule); scrollbar-width: thin; }
.sp-name { font: 500 21px/1.15 var(--serif); letter-spacing: -.01em; }
.sp-id { font: 400 11.5px/1.4 var(--mono); color: var(--ink-2); margin: 5px 0 12px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.sp-row { padding: 7px 0 6px; border-top: 1px solid var(--rule); }
.sp-row.new { animation: rise .3s var(--ease) both; }
.sp-row .cap { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.sp-row .cap span { font-family: var(--mono); letter-spacing: 0; text-transform: none; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.sp-v { font-size: 13.5px; line-height: 1.4; }
.sp-aud { display: grid; grid-template-columns: 24px 1fr auto; gap: 6px; align-items: center; font-size: 12.5px; }
.sp-aud .track { height: 5px; background: var(--paper-2); }
.sp-aud .track i { display: block; height: 100%; background: var(--h); transition: width .22s var(--ease); }
.sp-idx { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; }
.sp-idx button { width: 25px; height: 25px; background: none; border: 1px solid transparent; border-radius: 50%; padding: 0; font: 400 11.5px/1 var(--mono); color: var(--ink-3); cursor: pointer; transition: border-color .15s, color .15s; }
.sp-idx li.done button { color: var(--ink); border-color: var(--rule-2); }
.sp-idx li.on button { color: var(--acc); border-color: var(--acc); font-weight: 500; }
.sp-idx button:hover { border-color: var(--ink); color: var(--ink); }
.sp-foot { margin-top: 10px; display: grid; gap: 2px; font: 400 11px/1.5 var(--mono); color: var(--ink-3); }

.thread { padding-top: 12px; min-width: 0; }
.st { border-bottom: 1px solid var(--rule); }
.st-h { display: grid; grid-template-columns: 44px 232px minmax(0, 1fr) auto; column-gap: 0; align-items: baseline; width: 100%; text-align: left; background: none; border: 0; padding: 15px 0 13px; cursor: pointer; }
.st-n { font: 300 25px/1 var(--serif); color: var(--ink-3); }
.st-t { font: 500 17px/1.2 var(--serif); }
.st-s { font-size: 13.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.st-h:hover .st-t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.locked .st-n, .locked .st-t { color: var(--ink-3); }
.locked .st-s { font-style: italic; color: var(--ink-3); }
.open .st-h { grid-template-columns: 44px minmax(0, 1fr) auto; padding: 26px 0 10px; }
.open .st-n { font-size: 34px; color: var(--acc); }
.open .st-t { font: 400 34px/1.05 var(--serif); letter-spacing: -.02em; }
.open .st-s { display: none; }
.st-b { display: grid; grid-template-columns: minmax(0, 1fr) 190px; column-gap: 40px; padding: 4px 0 44px 44px; }
.fresh .st-b { animation: rise .3s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: none; } }
.st-main { min-width: 0; }
.st-b.wide { grid-template-columns: minmax(0, 1fr); }
.st-b.wide .st-side { border-left: 0; border-top: 1px solid var(--rule); padding: 14px 0 0; margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.st-b.wide .blk > .dl, .st-b.wide .blk > table, .st-b.wide .tabs { max-width: 860px; }
.st-side { align-self: start; border-left: 1px solid var(--rule); padding: 2px 0 0 16px; }
.mn { font: italic 400 14px/1.45 var(--serif); color: var(--ink-2); margin: 0 0 14px; }
.mn .ill { font-style: normal; margin-right: 4px; }
.need { font: italic 400 17px/1.5 var(--serif); color: var(--ink-2); }
h3.sub { font: 500 20px/1.2 var(--serif); margin: 30px 0 4px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.blk { margin-top: 26px; padding-top: 2px; }
.blk:first-child { margin-top: 0; }

/* ---------- stage 1 ---------- */
.brief { display: block; width: 100%; font: 400 19px/1.5 var(--serif); border: 0; border-left: 2px solid var(--ink); padding: 2px 0 2px 18px; resize: vertical; min-height: 118px; }
.brief:hover, .brief:focus { border-bottom: 0; box-shadow: none; border-left-color: var(--acc); }
select.quiet { font-size: 13.5px; color: var(--ink-2); }
.asks { margin-top: 22px; padding-left: 14px; border-left: 2px solid var(--ochre); }
.asks.miss { border-left-color: var(--acc); }
.asks li { padding: 3px 0; }
.sheet { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; border-top: 1px solid var(--ink); margin-top: 10px; }
.sheet label { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 7px 0 6px; border-bottom: 1px solid var(--rule); }
.sheet label.wide { grid-column: 1 / -1; }
.sheet label > span { font: 500 10.5px/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.sheet input, .sheet select, .sheet textarea { width: 100%; border-bottom-color: transparent; }
.sheet textarea { resize: vertical; line-height: 1.45; }
.sheet input:hover, .sheet select:hover, .sheet textarea:hover { border-bottom-color: var(--rule-2); }
.sheet input:focus, .sheet select:focus, .sheet textarea:focus { border-bottom-color: var(--acc); }

/* ---------- definition lists, strategies, audiences ---------- */
.dl { display: grid; grid-template-columns: 138px minmax(0, 1fr); gap: 5px 14px; margin: 10px 0 0; }
.dl dt { font: 500 10.5px/1.9 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); }
.dl dd { margin: 0; }
.item { padding: 18px 0 18px; border-top: 1px solid var(--rule); border-left: 3px solid var(--h); padding-left: 18px; margin-top: 14px; transition: opacity .2s; }
.item.removed { opacity: .45; border-left-color: var(--rule-2); }
.item.removed h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.item-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.item-h h3 { font: 500 22px/1.15 var(--serif); letter-spacing: -.01em; }
.item-h .sp { margin-left: auto; display: flex; gap: 14px; align-items: baseline; }
.item p { margin: 6px 0 0; max-width: 68ch; }
.dep { color: var(--ochre); font-size: 13px; margin-top: 6px; }
.tl { position: relative; margin: 16px 0 4px; height: 74px; max-width: 620px; }
.tl .ax { position: absolute; left: 0; right: 0; top: 52px; border-top: 1px solid var(--ink); }
.tl .tk { position: absolute; top: 52px; height: 5px; border-left: 1px solid var(--ink); }
.tl .tk u { position: absolute; top: 7px; left: -30px; width: 60px; text-align: center; font: 400 10px/1 var(--mono); color: var(--ink-2); }
.tl .win { position: absolute; height: 13px; font: 500 10px/13px var(--sans); letter-spacing: .04em; white-space: nowrap; }
.tl .win span { position: absolute; left: 5px; top: 0; padding: 0 4px; background: var(--paper); line-height: 11px; top: 1px; }
.tl .win.has { background: var(--h); top: 8px; }
.tl .win.has span { color: var(--h); }
.tl .win.none { top: 28px; border: 1px solid var(--h); background: repeating-linear-gradient(135deg, var(--h) 0 1px, transparent 1px 6px); }
.tl .win.goal { top: 8px; height: 33px; border: 1px dashed var(--acc); }
.tl .win.goal span { color: var(--acc); background: var(--paper); left: 3px; top: 10px; }

/* ---------- bars ---------- */
.split { display: flex; height: 24px; transition: width .22s var(--ease); }
.seg { position: relative; height: 100%; transition: width .22s var(--ease); min-width: 2px; }
.seg.t { background: var(--h); }
.seg.h { background: repeating-linear-gradient(135deg, var(--h) 0 1.2px, transparent 1.2px 5px); box-shadow: inset 0 0 0 1px var(--h); }
.seg.void { box-shadow: inset 0 0 0 1px var(--rule-2); background: none; border: 0; }
.seg .meas { position: absolute; left: 0; top: 0; bottom: 0; width: 5%; min-width: 3px; }
.seg.t .meas { background: var(--paper); opacity: .5; }
.seg.h .meas { background: var(--h); opacity: .75; }
.legend { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--ink-2); margin-top: 5px; }
.legend b { color: var(--ink); font-weight: 600; }
.abar { display: flex; height: 22px; margin: 6px 0 4px; }
.abar i { display: block; height: 100%; background: var(--h); transition: width .26s var(--ease); overflow: hidden; white-space: nowrap; border-right: 2px solid var(--paper); min-width: 0; }
.abar u { display: block; padding: 0 8px; font: 500 11.5px/22px var(--sans); color: var(--paper); }
.sp-v .abar { height: 6px; margin: 5px 0; } .sp-v .abar u { display: none; }
[data-num] { transition: background-size .5s, color .3s; background: linear-gradient(var(--acc), var(--acc)) no-repeat 0 100% / 0 2px; }
[data-num].moved { background-size: 100% 2px; }

/* ---------- stage 4 ---------- */
.aud { border-top: 1px solid var(--ink); padding: 16px 0 26px; margin-top: 18px; }
.aud-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.aud-h h3 { font: 500 22px/1.15 var(--serif); letter-spacing: -.01em; }
.aud-h .mono { margin-left: auto; color: var(--ink-2); }
.curve { position: relative; height: 104px; margin-top: 22px; }
.curve svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.curve .all path { fill: var(--paper-2); stroke: var(--rule-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.curve .sel { transition: clip-path .2s var(--ease); }
.curve .sel path { fill: color-mix(in srgb, var(--h) 24%, var(--paper)); stroke: var(--h); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.curve .cut { position: absolute; top: -18px; bottom: 0; width: 0; border-left: 1px solid var(--ink); transition: left .2s var(--ease); }
.curve .cut b { position: absolute; top: 0; left: 7px; white-space: nowrap; font: 500 11px/1.2 var(--mono); }
.curve .cut.flip b { left: auto; right: 7px; }
.curve .axl { position: absolute; bottom: 5px; font: 400 10px/1 var(--mono); color: var(--ink-2); }
.curve .axl.a { left: 6px; color: var(--ink); } .curve .axl.b { right: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 20px; margin: -1px 0 0; padding: 0; border: 0; background: transparent; cursor: ew-resize; }
input[type=range]:focus { box-shadow: none; }
input[type=range]::-webkit-slider-runnable-track { height: 1px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -7px; background: var(--ink); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--ink); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--acc); }
input[type=range]::-moz-range-track { height: 1px; background: var(--ink); }
input[type=range]::-moz-range-thumb { width: 9px; height: 9px; background: var(--ink); border: 3px solid var(--paper); border-radius: 50%; box-shadow: 0 0 0 1px var(--ink); }
.figs { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1fr; gap: 0 22px; margin-top: 12px; }
.fig b { display: block; font: 500 21px/1.2 var(--sans); letter-spacing: -.015em; }
.fig b input { width: 100%; font: inherit; letter-spacing: inherit; padding: 0; border-bottom-style: dashed; }
.fig > span { font-size: 12px; line-height: 1.35; color: var(--ink-2); display: block; margin-top: 2px; }
.eq { margin-top: 18px; padding: 11px 0 10px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; color: var(--ink-2); font-size: 13.5px; }
.eq label { color: var(--ink); display: inline-flex; align-items: baseline; gap: 4px; }
.eq input { width: 82px; font-weight: 600; }
.eq b { color: var(--ink); font-weight: 600; }
.eq b.big { font: 500 23px/1 var(--serif); letter-spacing: -.01em; }
.eq .res { color: var(--ink); }
.sum { margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--ink); }
.sum-l { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }

/* ---------- stage 5 and 6 ---------- */
.sentence { font: 400 18px/1.9 var(--serif); margin: 18px 0 2px; max-width: 64ch; }
.sentence select, .sentence input { font: 500 15px/1.2 var(--sans); }
.sentence input[type=number] { width: 44px; text-align: right; }
.exp { border-top: 1px solid var(--ink); margin-top: 22px; padding-top: 12px; }
.exp-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.exp-h b { font: 500 20px/1 var(--serif); }
.exp-h .w { margin-left: auto; }
.cell { margin-top: 14px; }
.cell-n { display: flex; gap: 10px; align-items: baseline; margin-bottom: 5px; font-weight: 500; }
.cell-n .mono { color: var(--ink-2); font-weight: 400; }
.arms { display: flex; height: 24px; gap: 2px; }
.arms i { display: block; background: var(--h); color: var(--paper); font: 500 11.5px/24px var(--sans); padding: 0 8px; white-space: nowrap; overflow: hidden; }
.arms i.lo { background: color-mix(in srgb, var(--h) 58%, var(--paper)); }
.verify { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; margin-top: 16px; }
.route { border-top: 1px solid var(--ink); margin-top: 22px; padding-top: 14px; }
.route-a { display: grid; grid-template-columns: 150px minmax(0, 1fr) 230px; gap: 5px 16px; align-items: center; padding: 10px 0 12px; border-bottom: 1px solid var(--rule); }
.route-a .who { font-size: 12.5px; color: var(--ink-2); }
.route-a .who b { color: var(--ink); display: block; font-size: 13.5px; }
.route-a .what { font-size: 12.5px; color: var(--ink-2); }
.route-a .what b { color: var(--ink); }
.route-a .split { height: 18px; }
.route-a .name { grid-column: 1 / -1; font: 500 17px/1.2 var(--serif); padding-bottom: 2px; display: flex; gap: 10px; align-items: baseline; }

/* ---------- tables ---------- */
table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 8px; }
th { font: 500 10px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); text-align: left; padding: 6px 10px 5px 0; border-bottom: 1px solid var(--ink); vertical-align: bottom; }
td { padding: 7px 10px 6px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td.n, th.n { text-align: right; }
td input { width: 100%; }
td .sm2 { font-size: 12px; color: var(--ink-2); }
.prob { color: var(--acc); font-size: 12.5px; } .warnl { color: var(--ochre); font-size: 12.5px; }

/* ---------- stage 7 ---------- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--rule); margin-top: 8px; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 6px 0 7px; margin-bottom: -1px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
details { margin-top: 12px; }
summary { cursor: pointer; font-size: 13.5px; color: var(--ink-2); list-style: none; display: inline-flex; gap: 8px; align-items: baseline; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "+"; font: 400 14px/1 var(--mono); color: var(--ink); width: 10px; }
details[open] > summary::before { content: "\2212"; }
summary:hover { color: var(--ink); }
textarea.mono { width: 100%; margin-top: 8px; border: 1px solid var(--rule-2); padding: 8px 10px; font-size: 11.5px; line-height: 1.5; white-space: pre; overflow: auto; resize: vertical; }
.mgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; margin: 8px 0 4px; }
.mgrid label { display: grid; gap: 1px; font-size: 11.5px; color: var(--ink-2); }
.mgrid input, .mgrid select { font-size: 13.5px; color: var(--ink); width: 100%; }
.res-row { display: grid; grid-template-columns: 38px minmax(0, 1.3fr) 70px minmax(0, 1.2fr) 120px 110px; gap: 12px; align-items: baseline; padding: 8px 0 7px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.res-row.sel { box-shadow: inset 2px 0 0 var(--acc); padding-left: 10px; }
.res-row:first-of-type { border-top: 1px solid var(--ink); }

.lift { margin-top: 18px; border-top: 1px solid var(--ink); }
.lrow { display: grid; grid-template-columns: 190px minmax(0, 1fr) 210px 176px; column-gap: 28px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--rule); }
.lrow.hd { padding: 7px 0 0; border-bottom: 0; align-items: end; }
.lname b { display: block; font: 500 17px/1.2 var(--serif); }
.lname span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.lname::before { content: ""; display: block; width: 22px; height: 3px; background: var(--h); margin-bottom: 6px; }
.plot { position: relative; height: 84px; }
.plot .axis { position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--ink); }
.plot .grid { position: absolute; top: 12px; bottom: 12px; border-left: 1px solid var(--rule); }
.scale { position: relative; height: 16px; }
.scale u { position: absolute; bottom: 2px; transform: translateX(-50%); font: 400 10px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.plot .ln { position: absolute; top: calc(50% - 1.5px); height: 3px; background: var(--h); transition: left .3s var(--ease), width .3s var(--ease); }
.plot .pt { position: absolute; top: calc(50% - 6px); width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; border: 2px solid var(--h); transition: left .3s var(--ease); }
.plot .pt.c { background: var(--paper); }
.plot .pt.t { background: var(--h); }
.plot .pt b { position: absolute; left: 50%; transform: translateX(-50%); font: 500 12px/1 var(--sans); white-space: nowrap; }
.plot .pt.t b { bottom: 17px; }
.plot .pt.c b { top: 17px; color: var(--ink-2); }
.plot .zero { position: absolute; top: 8px; bottom: 8px; border-left: 1px dashed var(--ink-2); }
.plot .ci { position: absolute; top: calc(50% - 5px); height: 10px; border-left: 1.5px solid var(--ink); border-right: 1.5px solid var(--ink); transition: left .3s var(--ease), width .3s var(--ease); }
.plot .ci::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; border-top: 1.5px solid var(--ink); }
.plot .est { position: absolute; top: calc(50% - 5px); width: 10px; height: 10px; margin-left: -5px; background: var(--ink); transform: rotate(45deg); transition: left .3s var(--ease); }
.plot .est.v-positive { background: #1e4d48; } .plot .est.v-negative { background: var(--acc); }
.plot-none { font: italic 400 14px/1.4 var(--serif); color: var(--ink-2); padding: 14px 0; }
.lnum b { display: block; font: 500 21px/1.15 var(--sans); letter-spacing: -.015em; }
.lnum span { display: block; font-size: 12px; color: var(--ink-2); line-height: 1.45; }
.lnum .w { margin-top: 3px; }
.v-positive { color: #1e4d48; } .v-negative { color: var(--acc); } .v-inconclusive, .v-no_uncertainty { color: var(--ink-2); } .v-invalid { color: var(--acc); }
.key { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--ink); vertical-align: -1px; margin-right: 5px; }
.key i.t { background: var(--ink); }

.rec { margin-top: 34px; border-top: 3px solid var(--ink); padding-top: 14px; }
.rec.k-negative { border-top-color: var(--acc); }
.rec-k { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.rec h3 { font: 400 28px/1.15 var(--serif); letter-spacing: -.015em; margin: 6px 0 10px; max-width: 30ch; }
.rec .lede { max-width: 66ch; margin-bottom: 12px; color: var(--ink); }
.pts li { padding: 6px 0 6px 16px; border-top: 1px solid var(--rule); position: relative; font-size: 13.5px; max-width: 86ch; }
.pts li::before { content: ""; position: absolute; left: 0; top: 15px; width: 7px; border-top: 1px solid var(--ink); }
.checks { margin-top: 20px; }
.checks li { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; padding: 6px 0; border-top: 1px solid var(--rule); font-size: 13.5px; }
.checks li div span { display: block; font-size: 12.5px; color: var(--ink-2); }
.range { margin-top: 20px; }
.rrow { display: grid; grid-template-columns: 190px minmax(0, 1fr) 176px; gap: 28px; align-items: center; max-width: 860px; }
.plot.rng { height: 58px; }
.plot.rng .band { position: absolute; top: calc(50% - 8px); height: 16px; background: repeating-linear-gradient(135deg, var(--ink-3) 0 1px, transparent 1px 5px); box-shadow: inset 0 0 0 1px var(--ink-2); }
.plot.rng .band u { position: absolute; top: 20px; font: 400 10px/1 var(--mono); color: var(--ink-2); white-space: nowrap; }
.plot.rng .band u.a { left: 0; transform: translateX(-50%); } .plot.rng .band u.b { right: 0; transform: translateX(50%); }
.plot.rng .pt { background: #1e4d48; border-color: #1e4d48; }
.plot.rng .pt.out { background: var(--acc); border-color: var(--acc); }
.plot.rng .pt b { bottom: 17px; }
.alloc { margin-top: 22px; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px 28px; align-items: center; max-width: 860px; }
.alloc .lab { font-size: 12.5px; color: var(--ink-2); }
.alloc .lab b { display: block; color: var(--ink); font-size: 13.5px; }
.alloc .imps { font-size: 12px; color: var(--ink-2); display: flex; gap: 18px; flex-wrap: wrap; }
.alloc .edit { display: flex; gap: 20px; flex-wrap: wrap; align-items: baseline; font-size: 13px; }
.alloc .edit .grp { display: inline-flex; gap: 10px; align-items: baseline; white-space: nowrap; }
.alloc .edit label { display: inline-flex; gap: 6px; align-items: baseline; }
.alloc .edit input { width: 84px; text-align: right; font-weight: 600; }
.auto { margin-top: 16px; font-size: 13px; color: var(--ink-2); padding-left: 14px; border-left: 2px solid var(--rule-2); max-width: 86ch; }
.auto.ok { border-left-color: #1e4d48; }
.dec { border-top: 1px solid var(--rule); padding: 12px 0 12px; }
.dec:first-of-type { border-top: 1px solid var(--ink); }
.dec-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.dec-h b { font: 500 18px/1 var(--serif); }
.dec-h .w { margin-left: auto; }
.trail { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 18px; margin-top: 10px; }
.trail .cap { margin-bottom: 2px; }
.impl { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; font-size: 12.5px; }
.impl label { display: grid; gap: 1px; color: var(--ink-2); }
.impl input { width: 96px; color: var(--ink); font-size: 13.5px; }
.impl input[type=date] { width: 132px; }

/* ---------- history drawer, toast, busy ---------- */
.drawer { position: fixed; top: 50px; right: 0; bottom: 0; width: 460px; max-width: 90vw; background: var(--paper); border-left: 1px solid var(--ink); z-index: 30; padding: 22px 26px 40px; overflow: auto; transform: translateX(102%); transition: transform .24s var(--ease); }
.drawer.on { transform: none; box-shadow: -18px 0 40px rgba(26, 24, 20, .08); }
.drawer h2 { font: 400 28px/1.1 var(--serif); letter-spacing: -.015em; }
.drawer-h { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.hist li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); font-size: 13px; }
.hist time { font: 400 10.5px/1.5 var(--mono); color: var(--ink-2); }
.hist .cap { display: block; }
.toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 40; background: var(--ink); color: var(--paper); padding: 9px 16px; font-size: 13.5px; border-radius: 2px; max-width: 72ch; animation: rise .2s var(--ease) both; }
.busy { position: fixed; inset: 0; z-index: 50; background: rgba(245, 242, 234, .72); display: grid; place-items: center; font: italic 400 22px var(--serif); }

@media (max-width: 1180px) {
  .st-b { grid-template-columns: minmax(0, 1fr); }
  .st-side { border-left: 0; border-top: 1px solid var(--rule); padding: 14px 0 0; margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
