/* Sealbook. One idea carries the design: two seals per decision, one for each side. */
:root {
  --paper: #f5f7fa;
  --surface: #ffffff;
  --ink: #18212d;
  --ink-2: #4a5566;
  --ink-3: #5d6776;  /* 4.5:1 or better on every background used */
  --line: #e1e6ed;
  --line-2: #cfd6e0;
  --firm: #1f5f8b;
  --firm-wash: #e8f1f8;
  --client: #6a46a3;
  --client-wash: #f1ecf9;
  --agreed: #2b7a55;
  --agreed-wash: #e6f4ec;
  --attn: #95580a;
  --attn-wash: #fbf1e1;
  --bad: #b3261e;
  --bad-wash: #fceceb;
  --focus: #1f5f8b;
  --r-sm: 6px;
  --r: 10px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--firm); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hidden { display: none !important; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
code, .code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 2px 6px; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; display: block; }
.brand-name { display: block; font-weight: 650; font-size: 15px; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 12px; color: var(--ink-3); }
.project-pick select, .who-pick select { width: 100%; }
#nav { display: flex; flex-direction: column; gap: 1px; }
#nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; }
#nav a:hover { background: var(--paper); text-decoration: none; color: var(--ink); }
#nav a.active { background: var(--firm-wash); color: var(--firm); font-weight: 600; }
#nav svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#nav .count { margin-left: auto; font-size: 12px; font-weight: 600; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 10px; background: var(--attn-wash); color: var(--attn); }
#nav .count:empty { display: none; }
.nav-group { margin: 12px 10px 4px; font-size: 12px; color: var(--ink-3); }
.who { margin-top: auto; padding: 12px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.who-label { font-size: 12px; color: var(--ink-3); margin-bottom: 6px; }
.who-role { font-size: 12.5px; color: var(--ink-2); margin-top: 8px; line-height: 1.4; }
.who-role .side-tag { margin-right: 4px; }
main:focus { outline: none; }
main { padding: 28px 40px 80px; min-width: 0; max-width: 1240px; }
.loading { color: var(--ink-3); padding: 40px 0; }

/* ---------- type ---------- */
h1 { font-size: 26px; line-height: 1.2; font-weight: 650; letter-spacing: -.02em; margin: 0 0 6px; }
h2 { font-size: 17px; font-weight: 620; letter-spacing: -.01em; margin: 0 0 10px; }
h3 { font-size: 14px; font-weight: 620; margin: 18px 0 8px; color: var(--ink-2); }
p { margin: 0 0 10px; }
.lede { color: var(--ink-2); max-width: 70ch; margin-bottom: 22px; }
.back { display: inline-block; font-size: 13px; margin-bottom: 10px; }

/* ---------- surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.panel + .panel, .stack > * + * { margin-top: 14px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.divide { border-top: 1px solid var(--line); margin: 16px 0; }

/* ---------- controls ---------- */
button, .btn { font: inherit; font-size: 14px; font-weight: 550; padding: 7px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
button:hover { border-color: var(--ink-3); }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary { background: var(--firm); border-color: var(--firm); color: #fff; }
button.primary:hover { background: #184e74; }
button.client { background: var(--client); border-color: var(--client); color: #fff; }
button.agree { background: var(--agreed); border-color: var(--agreed); color: #fff; }
button.quiet { border-color: transparent; background: transparent; color: var(--ink-2); }
button.quiet:hover { background: var(--paper); }
button.danger { color: var(--bad); }
input, select, textarea { font: inherit; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 7px 10px; width: 100%; }
textarea { min-height: 80px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--firm); box-shadow: 0 0 0 3px var(--firm-wash); }
label.field { display: block; font-size: 13px; color: var(--ink-2); font-weight: 550; }
label.field > input, label.field > select, label.field > textarea { margin-top: 5px; font-weight: 400; }
.form { display: grid; gap: 12px; }
.hint { font-size: 12.5px; color: var(--ink-3); font-weight: 400; }

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 550; line-height: 1; padding: 5px 8px; border-radius: 20px; background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.ok { background: var(--agreed-wash); color: var(--agreed); border-color: transparent; }
.tag.attn { background: var(--attn-wash); color: var(--attn); border-color: transparent; }
.tag.bad { background: var(--bad-wash); color: var(--bad); border-color: transparent; }
.tag.v { background: var(--firm-wash); color: var(--firm); border-color: transparent; }
.tag.c { background: var(--client-wash); color: var(--client); border-color: transparent; }
.side-tag { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; }
.side-tag.firm { background: var(--firm); }
.side-tag.client { background: var(--client); }

/* ---------- notices ---------- */
.note { padding: 11px 14px; border-radius: var(--r-sm); background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); font-size: 14px; }
.note.attn { background: var(--attn-wash); border-color: #f0dcb8; color: #6f430a; }
.note.bad { background: var(--bad-wash); border-color: #f3c9c6; color: #7d1a14; }
.note.ok { background: var(--agreed-wash); border-color: #c4e3d1; color: #1c5a3d; }
.note.v { background: var(--firm-wash); border-color: #cfe1ee; color: #194b6e; }

/* ---------- the seals ---------- */
.seals { display: inline-flex; align-items: center; }
.seal { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; border: 2px dashed; background: var(--surface); position: relative; }
.seal + .seal { margin-left: -6px; }
.seal.firm { border-color: var(--firm); color: var(--firm); }
.seal.client { border-color: var(--client); color: var(--client); }
.seal.done { border-style: solid; color: #fff; }
.seal.firm.done { background: var(--firm); }
.seal.client.done { background: var(--client); }
.seal.ask { border-style: solid; background: var(--attn-wash); border-color: var(--attn); color: var(--attn); }
.seal.no { border-style: solid; background: var(--bad-wash); border-color: var(--bad); color: var(--bad); }
.seals.agreed .seal { border-color: var(--agreed); background: var(--agreed); color: #fff; border-style: solid; }
.seals.big .seal { width: 44px; height: 44px; font-size: 15px; border-width: 2.5px; }
.seals.big .seal + .seal { margin-left: -10px; }

/* two-party panel on a decision */
.parties { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.party { padding: 14px 16px; background: var(--surface); }
.party.firm { border-top: 3px solid var(--firm); }
.party.client { border-top: 3px solid var(--client); }
.party .who-side { font-size: 12.5px; color: var(--ink-3); }
.party .state { font-weight: 620; margin: 2px 0 4px; }
.party.done.firm .state { color: var(--firm); }
.party.done.client .state { color: var(--client); }
.party .state.ask { color: var(--attn); }
.party .state.no { color: var(--bad); }
.party-mid { display: grid; place-items: center; padding: 0 10px; background: var(--paper); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- the track ---------- */
.track { display: grid; grid-template-columns: repeat(5, 1fr); margin: 18px 0 20px; counter-reset: step; }
.step { position: relative; padding-top: 22px; font-size: 13px; color: var(--ink-3); padding-right: 8px; }
.step::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: var(--line); }
.step::after { content: ""; position: absolute; top: 2px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.step b { display: block; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.step.done::before { background: var(--agreed); }
.step.done::after { background: var(--agreed); border-color: var(--agreed); }
.step.now::after { border-color: var(--attn); background: var(--attn-wash); box-shadow: 0 0 0 4px var(--attn-wash); }
.step.now b { color: var(--attn); }
.step.done b { color: var(--ink); }
.step.v.done::after, .step.v.done::before { background: var(--firm); border-color: var(--firm); }
.step.c.done::after, .step.c.done::before { background: var(--client); border-color: var(--client); }

/* ---------- home ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 26px; }
.flow a { display: block; padding: 16px 18px; color: var(--ink); border-left: 1px solid var(--line); position: relative; }
.flow a:first-child { border-left: 0; }
.flow a:hover { background: var(--paper); text-decoration: none; }
.flow .n { font-size: 30px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.flow .t { font-weight: 600; font-size: 14px; margin-top: 4px; }
.flow .d { font-size: 12.5px; color: var(--ink-3); }
.flow a:not(:last-child)::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; background: var(--surface); border-top: 1px solid var(--line); border-right: 1px solid var(--line); transform: translateY(-50%) rotate(45deg); z-index: 1; }
.flow a.hot .n { color: var(--attn); }
.flow a.good .n { color: var(--agreed); }
.queue { display: grid; gap: 8px; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); }
a.item:hover { border-color: var(--line-2); text-decoration: none; box-shadow: 0 1px 0 var(--line); }
.item .what { font-weight: 600; }
.item .sub { font-size: 13px; color: var(--ink-3); }
.item .go { font-size: 13px; color: var(--firm); font-weight: 550; white-space: nowrap; }
.item .kind { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); }
.item .kind svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.empty { padding: 26px; text-align: center; color: var(--ink-3); background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r); }
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.howto li { list-style: none; font-size: 13.5px; color: var(--ink-2); }
.howto ol { margin: 0; padding: 0; display: contents; }
.howto b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 2px; }
.howto .num { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); font-size: 12px; font-weight: 650; margin-bottom: 6px; }

/* ---------- decision board ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.col { background: #eef1f5; border-radius: var(--r); padding: 10px; min-height: 120px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px 10px; }
.col-head b { font-size: 14px; }
.col-head span { font-size: 12.5px; color: var(--ink-3); }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 13px; color: var(--ink); }
.card + .card { margin-top: 8px; }
a.card:hover { text-decoration: none; border-color: var(--line-2); box-shadow: 0 2px 6px rgba(24, 33, 45, .06); }
.card .ref { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.card .title { font-weight: 600; font-size: 14.5px; line-height: 1.35; margin: 2px 0 8px; }
.card .foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); }
.closed-list { margin-top: 18px; }
.closed-list summary { cursor: pointer; color: var(--ink-2); font-size: 14px; }

/* ---------- decision detail ---------- */
.wording { font-size: 18px; line-height: 1.5; letter-spacing: -.005em; margin: 4px 0 10px; max-width: 64ch; }
.wording ins { background: var(--agreed-wash); text-decoration: none; color: var(--agreed); border-bottom: 2px solid var(--agreed); }
.wording del { color: var(--bad); background: var(--bad-wash); }
.cond { font-size: 14px; color: var(--ink-2); }
.cond b { color: var(--ink); }
.quote { border-left: 3px solid var(--line-2); padding: 4px 0 4px 14px; margin: 10px 0; }
.quote q { display: block; quotes: "“" "”"; font-size: 15px; }
.quote .src { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.quote.v { border-left-color: var(--firm); }
.quote.c { border-left-color: var(--client); }
.thread { display: grid; gap: 10px; margin: 6px 0 14px; }
.msg { padding: 10px 13px; border-radius: 10px; max-width: 86%; font-size: 14px; }
.msg.firm { background: var(--firm-wash); justify-self: start; }
.msg.client { background: var(--client-wash); justify-self: end; }
.msg.internal { background: #fff8e8; border: 1px dashed #e8cf98; justify-self: start; }
.msg .meta { font-size: 12px; color: var(--ink-3); margin-bottom: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.history { list-style: none; margin: 0; padding: 0; }
.history li { position: relative; padding: 0 0 12px 18px; font-size: 13.5px; }
.history li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.history li::after { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 1px; background: var(--line); }
.history li:last-child::after { display: none; }
.history time { color: var(--ink-3); font-size: 12.5px; display: block; }
.receipt { border: 1px solid var(--agreed); background: linear-gradient(var(--surface), var(--surface)) padding-box; }
.fp { font-family: ui-monospace, Consolas, monospace; font-size: 12px; color: var(--ink-3); overflow-wrap: anywhere; }

/* ---------- review ---------- */
.cand { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cand + .cand { margin-top: 14px; }
.cand-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fafbfc; font-size: 13px; color: var(--ink-2); }
.cand-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cand-body > div { padding: 16px 18px; }
.cand-body > div + div { border-left: 1px solid var(--line); background: #fcfcfd; }
.cand .sum { font-size: 16px; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 13px; margin-top: 8px; }
.facts dt { color: var(--ink-3); }
.facts dd { margin: 0; }
.choice { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ---------- add conversation ---------- */
.drop { border: 2px dashed var(--line-2); border-radius: var(--r); padding: 18px; text-align: center; color: var(--ink-2); background: var(--paper); cursor: pointer; }
.drop.over { border-color: var(--firm); background: var(--firm-wash); }
.drop b { color: var(--firm); }
#ptext { min-height: 260px; font-size: 13.5px; }
.engine { display: flex; gap: 12px; align-items: flex-start; }
.engine .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--ink-3); }
.engine.on .dot { background: var(--agreed); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.seg label { padding: 7px 12px; font-size: 13.5px; cursor: pointer; border-left: 1px solid var(--line-2); }
.seg label:first-child { border-left: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--firm-wash); color: var(--firm); font-weight: 600; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: -2px; }
.result-list { display: grid; gap: 8px; margin-top: 10px; }
.result-list .r { display: grid; grid-template-columns: 112px 1fr; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.spinner { width: 16px; height: 16px; border: 2px solid var(--firm-wash); border-top-color: var(--firm); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 550; font-size: 12.5px; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: #fafbfc; }

/* ---------- transcript ---------- */
.utt { display: grid; grid-template-columns: 64px 140px 1fr; gap: 12px; padding: 8px 6px; border-radius: 6px; font-size: 14px; }
.utt + .utt { border-top: 1px solid #f0f2f5; }
.utt .ts { color: var(--ink-3); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 1px; }
.utt .sp { font-weight: 600; font-size: 13.5px; }
.utt.hl { background: var(--attn-wash); }

/* ---------- progress ---------- */
.big-pct { font-size: 44px; font-weight: 650; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: #eaedf2; border-radius: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--firm); border-radius: 6px; }
.bar.ok > span { background: var(--agreed); }
.bar.lg { height: 12px; margin: 12px 0 8px; }
.feed { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.feed li { padding: 7px 0; border-bottom: 1px solid #f0f2f5; }
.feed li:last-child { border-bottom: 0; }
details > summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; }

/* ---------- toast ---------- */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-size: 14px; transition: opacity .18s, transform .18s; pointer-events: none; max-width: 90vw; z-index: 10; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: var(--bad); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (max-width: 1000px) {
  .board, .g3 { grid-template-columns: 1fr 1fr; }
  .flow, .howto { grid-template-columns: 1fr 1fr; }
  .flow a:nth-child(3) { border-left: 0; }
  .flow a::after { display: none; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .rail { position: static; height: auto; gap: 10px; padding: 12px; }
  #nav { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; }
  #nav a { white-space: nowrap; flex: none; }
  .nav-group { display: none; }
  .who { margin-top: 0; padding: 10px; }
  .who-role { display: none; }
  main { padding: 20px 16px 60px; }
  .board, .g2, .g3, .split, .cand-body, .track, .howto { grid-template-columns: 1fr; }
  .flow a { padding: 12px 14px; }
  .flow a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .flow .n { font-size: 24px; }
  .cand-body > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .parties { grid-template-columns: 1fr; }
  .party-mid { display: none; }
  .utt { grid-template-columns: 1fr; gap: 2px; }
  .step::before { display: none; }
}

/* sign-in, setup */
.gate { max-width: 420px; margin: 12vh auto 0; text-align: center; }
.gate.wide { max-width: 640px; margin-top: 6vh; text-align: left; }
.gate .lede { margin-left: auto; margin-right: auto; }
.gate.wide .lede { margin-left: 0; }
.brand-mark.big { width: 48px; height: 48px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: minmax(0, 1fr); } }
.who-signed { font-size: 13px; line-height: 1.4; }
.who-signed:empty { display: none; }
.rail.hidden { display: none; }
.shell:has(.rail.hidden) { grid-template-columns: 1fr; }

/* pilot results */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.stat .n { font-size: 28px; font-weight: 650; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .t { font-weight: 600; font-size: 14px; margin-top: 4px; }
.stat .d { font-size: 12.5px; color: var(--ink-3); }
.grid2 > .panel + .panel { margin-top: 0; }
.new-project { display: block; margin: -6px 0 12px 4px; color: var(--ink-3); }
.new-project:hover { color: var(--firm); }

/* demo tour */
#tour { position: fixed; right: 20px; bottom: 20px; width: 340px; max-width: calc(100vw - 32px); z-index: 50;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px;
  box-shadow: 0 10px 30px rgba(15, 25, 40, .14); }
#tour b { display: block; margin-top: 4px; }
@media (max-width: 600px) { #tour { right: 16px; left: 16px; width: auto; bottom: 12px; } }

/* Links that sit inside running text are underlined, so colour is not the only cue (WCAG 1.4.1). */
p a, li a, td a, .note a, .src a, .lede a, .empty a, .quote a { text-decoration: underline; text-underline-offset: 2px; }
.table-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
