/* Hallmark · shape: app screen · genre: modern-minimal · theme: Dose (deal 3/3, seed government-command-centre-india-bbb7·5dd5ceab·2026-12-01·r0)
 * nav: ink top bar with six tabs · signature: the proof label, every record's evidence set in DM Mono with a stamp · states: loading, empty, error, full, offline · dose: white
 * axes: light/grotesk-sans/chromatic-green · posture: committed · contrast: pass · data: sample · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R3 V4 · weakest: R (a dashboard risks a KPI wall), one hero figure, one chart that argues, tables before cards */
/* Hallmark · waive 37 · Noto Sans Devanagari only loads for U+0900-097F through unicode-range · the Hindi field app needs a Devanagari face; it is a script fallback, not a fourth voice */
/* note: dose do-not "never red" set aside: an anti-fraud console must separate a blocked or high-risk record from a pending one; one clay alert token, used only for those two states */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --color-surface: oklch(99.6% 0.004 88);
  --color-alert: oklch(50% 0.15 32); --color-alert-soft: oklch(94% 0.03 32); --color-alert-ink: oklch(99% 0.005 32);
  --color-on-ink: oklch(96.5% 0.012 160); --color-on-ink-muted: oklch(76% 0.025 160); --color-ink-rule: oklch(34% 0.02 170);
  --color-map-ground: oklch(30% 0.02 160); --color-pin-ring: oklch(100% 0 0);
  --ramp-0: oklch(95% 0.02 160); --ramp-1: oklch(86% 0.06 160); --ramp-2: oklch(74% 0.1 160); --ramp-3: oklch(60% 0.12 160); --ramp-4: oklch(47% 0.12 162); --ramp-5: oklch(36% 0.09 165);
  --font-deva: "Noto Sans Devanagari", var(--font-body);
  --text-4xl: 2.488rem; --text-5xl: 2.986rem;
  --bar-h: 60px;
}

@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("../fonts/schibsted-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dm-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("../fonts/dm-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("../fonts/noto-sans-devanagari-devanagari-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("../fonts/noto-sans-devanagari-devanagari-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }
@font-face { font-family: "Noto Sans Devanagari"; src: url("../fonts/noto-sans-devanagari-devanagari-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF; }

body { font-family: var(--font-body), var(--font-deva); font-size: var(--text-md); }
.mono { font-family: var(--font-outlier); font-weight: 400; font-size: 0.9em; letter-spacing: 0; }
.muted { color: var(--color-muted); }
.small { font-size: var(--text-sm); }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- shell ---------- */
.topbar { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-ink); color: var(--color-on-ink); }
.topbar-in { display: flex; align-items: center; gap: var(--space-lg); height: var(--bar-h); max-width: 1600px; margin-inline: auto; padding-inline: var(--space-lg); }
.brand { display: flex; align-items: baseline; gap: var(--space-xs); text-decoration: none; color: inherit; white-space: nowrap; }
.brand b { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: -0.02em; }
.brand span { color: var(--color-on-ink-muted); font-size: var(--text-sm); }
.tabs { display: flex; gap: var(--space-3xs); overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.tabs a { display: inline-flex; align-items: center; height: 36px; padding-inline: var(--space-sm); border-radius: var(--radius-input); color: var(--color-on-ink-muted); text-decoration: none; font-weight: 500; font-size: var(--text-sm); white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), color var(--dur-micro) var(--ease-out); }
.tabs a:hover { color: var(--color-on-ink); background: color-mix(in oklab, var(--color-on-ink) 8%, transparent); }
.tabs a[aria-current="page"] { color: var(--color-on-ink); background: color-mix(in oklab, var(--color-on-ink) 14%, transparent); }
.tabs a:focus-visible, .topbar button:focus-visible { outline: 2px solid var(--color-on-ink); outline-offset: 2px; }
.tabs .count { margin-left: var(--space-2xs); font-variant-numeric: tabular-nums; color: var(--color-on-ink-muted); }
.live { display: flex; align-items: center; gap: var(--space-sm); color: var(--color-on-ink-muted); font-size: var(--text-sm); white-space: nowrap; }
.live b { color: var(--color-on-ink); font-weight: 500; }
.live .sample { border: 1px solid var(--color-ink-rule); border-radius: var(--radius-pill); padding: var(--space-3xs) var(--space-sm); color: var(--color-on-ink); }
.live.is-down b { color: var(--color-alert-soft); }

.page { max-width: 1600px; margin-inline: auto; padding: var(--space-lg) var(--space-lg) var(--space-2xl); }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-lg); margin-bottom: var(--space-lg); flex-wrap: wrap; }
.page-head h1 { font-size: var(--text-2xl); max-width: none; }
.page-head p { color: var(--color-muted); margin-top: var(--space-2xs); }
.crumbs { display: flex; flex-wrap: wrap; gap: var(--space-2xs); font-size: var(--text-sm); color: var(--color-muted); margin-bottom: var(--space-xs); }
.crumbs a { color: var(--color-accent-deep); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span[aria-hidden] { color: var(--color-rule); }

/* ---------- surfaces ---------- */
.grid { display: grid; gap: var(--space-lg); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; } .span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; } .span-3 { grid-column: span 3; }
@media (max-width: 75rem) { .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; } .span-3 { grid-column: span 6; } }
.panel { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); min-width: 0; }
.panel.flush { padding: 0; overflow: hidden; }
.panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-md); margin-bottom: var(--space-md); }
.panel.flush .panel-head { padding: var(--space-lg) var(--space-lg) 0; }
.panel-head h2 { font-size: var(--text-lg); }
.panel-head p, .panel-head .aside { color: var(--color-muted); font-size: var(--text-sm); }

/* ---------- figures ---------- */
.hero-figure { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr); gap: var(--space-xl); align-items: end; padding: var(--space-lg) 0 var(--space-xl); border-bottom: 1px solid var(--color-rule); margin-bottom: var(--space-lg); }
.hero-figure .figure { font-family: var(--font-display); font-weight: 700; font-size: var(--text-5xl); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero-figure .qual { margin-top: var(--space-xs); color: var(--color-ink-2); max-width: 46ch; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); margin: 0; }
.stats div { border-left: 1px solid var(--color-rule); padding-left: var(--space-md); min-width: 0; display: flex; flex-direction: column; justify-content: space-between; }
.stats dt { font-size: var(--text-sm); color: var(--color-muted); line-height: 1.3; text-wrap: balance; }
.stats dd { margin: var(--space-2xs) 0 0; font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats dd small { font-family: var(--font-body); font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); letter-spacing: 0; }
@media (max-width: 75rem) { .hero-figure { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 48rem) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- tags & bars ---------- */
.tag { display: inline-flex; align-items: center; height: 22px; padding-inline: var(--space-xs); border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.tag-verified { background: var(--color-accent-soft); color: var(--color-accent-deep); }
.tag-review { background: var(--color-paper-3); color: var(--color-ink); }
.tag-high { background: var(--color-alert-soft); color: var(--color-alert); border-color: color-mix(in oklab, var(--color-alert) 30%, transparent); }
.tag-blocked { background: var(--color-alert); color: var(--color-alert-ink); }
.tag-quiet { border-color: var(--color-rule); color: var(--color-muted); }
.tag-done { background: var(--color-accent); color: var(--color-accent-ink); }
.bar { position: relative; height: 6px; border-radius: 3px; background: var(--color-paper-3); overflow: hidden; min-width: 60px; }
.bar > i { position: absolute; inset: 0 auto 0 0; width: 100%; transform-origin: left; background: var(--color-accent); border-radius: 0 3px 3px 0; transition: transform var(--dur-short) var(--ease-out); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
table.data th { text-align: left; font-weight: 500; color: var(--color-muted); padding: var(--space-sm) var(--space-sm); border-bottom: 1px solid var(--color-rule); white-space: nowrap; background: var(--color-surface); }
table.data td { padding: var(--space-sm) var(--space-sm); border-bottom: 1px solid color-mix(in oklab, var(--color-rule) 60%, transparent); vertical-align: middle; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr.go { cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out); }
table.data tr.go:hover { background: var(--color-paper-2); }
table.data tr.go:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
table.data tr[aria-selected="true"] { background: var(--color-paper-2); box-shadow: inset 3px 0 0 var(--color-accent); }
table.data .name { font-weight: 500; color: var(--color-ink); }
table.data td.mono, table.data .mono { white-space: nowrap; }
table.data tfoot td { font-weight: 600; border-top: 1px solid var(--color-rule); border-bottom: 0; }
.cell-bar { display: flex; align-items: center; gap: var(--space-xs); min-width: 140px; }
.cell-bar .bar { flex: 1; }
.cell-bar span { width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 38px; padding: 0 var(--space-md); border-radius: var(--radius-input); border: 1px solid var(--color-accent-deep); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 500; font-size: var(--text-sm); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--glint) 35%, transparent), 0 1px 2px color-mix(in oklab, var(--color-ink) 18%, transparent); }
.btn:hover { background: var(--color-accent-deep); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn.quiet { background: var(--color-surface); color: var(--color-ink); border-color: var(--color-rule); box-shadow: 0 1px 1px color-mix(in oklab, var(--color-ink) 6%, transparent); }
.btn.quiet:hover { background: var(--color-paper-2); border-color: var(--color-muted); }
.btn.alert { background: var(--color-surface); color: var(--color-alert); border-color: color-mix(in oklab, var(--color-alert) 40%, transparent); box-shadow: none; }
.btn.alert:hover { background: var(--color-alert-soft); }
.btn.on-ink { background: transparent; color: var(--color-on-ink); border-color: var(--color-ink-rule); box-shadow: none; }
.btn.on-ink:hover { background: color-mix(in oklab, var(--color-on-ink) 10%, transparent); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.seg { display: inline-flex; padding: var(--space-2xs); gap: var(--space-3xs); border-radius: calc(var(--radius-input) + 3px); background: var(--color-paper-3); }
.seg button { min-height: 32px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-input); background: transparent; color: var(--color-ink-2); font-size: var(--text-sm); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color var(--dur-micro) var(--ease-out); }
.seg button:hover { background: color-mix(in oklab, var(--color-surface) 60%, transparent); }
.seg button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-ink); box-shadow: 0 1px 2px color-mix(in oklab, var(--color-ink) 12%, transparent); }
.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.chip { min-height: 30px; padding: 0 var(--space-sm); border-radius: var(--radius-pill); border: 1px solid var(--color-rule); background: var(--color-surface); font-size: var(--text-xs); font-weight: 500; color: var(--color-ink-2); cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), border-color var(--dur-micro) var(--ease-out); }
.chip:hover { border-color: var(--color-muted); }
.chip[aria-pressed="true"] { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-on-ink); }
.chip:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.chip .num { color: inherit; opacity: 0.7; margin-left: var(--space-2xs); }

/* ---------- states ---------- */
.skeleton { border-radius: 6px; background: linear-gradient(90deg, var(--color-paper-2), var(--color-paper-3), var(--color-paper-2)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-line { height: 14px; margin: var(--space-sm) 0; } .sk-block { height: 180px; }
.empty, .error { padding: var(--space-xl) var(--space-lg); text-align: center; color: var(--color-muted); }
.empty b, .error b { display: block; color: var(--color-ink); font-family: var(--font-display); font-size: var(--text-lg); margin-bottom: var(--space-2xs); }
.error b { color: var(--color-alert); }
.empty .btn, .error .btn { margin-top: var(--space-md); }

/* ---------- tile map ---------- */
.tilemap { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: var(--space-xs); max-width: 760px; }
.tile { aspect-ratio: 1.12; border-radius: 8px; padding: var(--space-xs) var(--space-xs); display: flex; flex-direction: column; justify-content: space-between; border: 1px solid transparent; background: var(--ramp-0); color: var(--color-ink); cursor: default; font: inherit; text-align: left; min-width: 0; transition: transform var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.tile b { font-size: var(--text-sm); font-weight: 600; line-height: 1; }
.tile span { font-size: var(--text-xs); font-variant-numeric: tabular-nums; line-height: 1; opacity: 0.85; }
.tile.r1 { background: var(--ramp-1); } .tile.r2 { background: var(--ramp-2); } .tile.r3 { background: var(--ramp-3); color: var(--color-ink); } .tile.r4 { background: var(--ramp-4); color: var(--color-accent-ink); } .tile.r5 { background: var(--ramp-5); color: var(--color-accent-ink); }
.tile.is-featured { cursor: pointer; border-color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-surface); }
.tile.is-featured:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--color-surface), 0 6px 14px -6px color-mix(in oklab, var(--color-ink) 45%, transparent); }
.tile:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.tile.ping { animation: ping 900ms var(--ease-out); }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-accent) 70%, transparent); } 100% { box-shadow: 0 0 0 10px transparent; } }
.legend { display: flex; align-items: center; gap: var(--space-sm); font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-md); flex-wrap: wrap; }
.legend .ramp { display: flex; gap: var(--space-3xs); }
.legend .ramp i { width: 22px; height: 10px; border-radius: 2px; background: var(--ramp-0); }
.legend .ramp i:nth-child(2) { background: var(--ramp-1); } .legend .ramp i:nth-child(3) { background: var(--ramp-2); } .legend .ramp i:nth-child(4) { background: var(--ramp-3); } .legend .ramp i:nth-child(5) { background: var(--ramp-4); } .legend .ramp i:nth-child(6) { background: var(--ramp-5); }
.legend .lkey { display: inline-block; width: 14px; height: 10px; border: 1px solid var(--color-ink); border-radius: 2px; vertical-align: -1px; margin-right: var(--space-2xs); }
.js .tip { opacity: 0; }
.tip { position: fixed; z-index: var(--z-tooltip); pointer-events: none; background: var(--color-ink); color: var(--color-on-ink); padding: var(--space-xs) var(--space-sm); border-radius: 8px; font-size: var(--text-xs); line-height: 1.45; max-width: 260px; box-shadow: var(--shadow-card); transform: translateY(4px); transition: opacity var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.js .tip.on { opacity: 1; transform: none; }
.tip b { display: block; font-size: var(--text-sm); }

/* ---------- feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 4.2em minmax(0, 1fr) auto; gap: var(--space-sm); align-items: center; padding: var(--space-xs) var(--space-lg); border-top: 1px solid color-mix(in oklab, var(--color-rule) 60%, transparent); font-size: var(--text-sm); }
.feed li.go { cursor: pointer; } .feed li.go:hover { background: var(--color-paper-2); }
.feed li.go:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.feed li.new { animation: slidein var(--dur-long) var(--ease-out); }
@keyframes slidein { from { transform: translateY(-6px); background: var(--color-accent-soft); } }
.feed .t { font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-muted); }
.feed .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .what b { font-weight: 500; }
.feed .what small { display: block; color: var(--color-muted); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; }

/* ---------- charts ---------- */
.chart { width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: var(--color-rule); stroke-width: 1; }
.chart .axis { fill: var(--color-muted); font-size: 11px; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--color-accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--color-accent); opacity: 0.1; }
.chart .dot { fill: var(--color-accent); stroke: var(--color-surface); stroke-width: 2; }
.stack { display: flex; height: 18px; border-radius: 4px; overflow: hidden; gap: var(--space-3xs); margin: var(--space-sm) 0 var(--space-md); }
.stack i { display: block; height: 100%; min-width: 2px; }
.stack i:nth-child(1) { background: var(--ramp-5); } .stack i:nth-child(2) { background: var(--ramp-4); } .stack i:nth-child(3) { background: var(--ramp-3); } .stack i:nth-child(4) { background: var(--ramp-2); } .stack i:nth-child(5) { background: var(--ramp-1); } .stack i:nth-child(6) { background: var(--color-paper-3); } .stack i:nth-child(7) { background: var(--color-rule); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: var(--space-xs); vertical-align: 0; }
.sw-1 { background: var(--ramp-5); } .sw-2 { background: var(--ramp-4); } .sw-3 { background: var(--ramp-3); } .sw-4 { background: var(--ramp-2); } .sw-5 { background: var(--ramp-1); } .sw-6 { background: var(--color-paper-3); } .sw-7 { background: var(--color-rule); }
.hbars { display: grid; gap: var(--space-sm); }
.hbars .row { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 3.5em; gap: var(--space-sm); align-items: center; font-size: var(--text-sm); }
.hbars .row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbars .track { height: 14px; background: var(--color-paper-2); border-radius: 2px; }
.hbars .track i { display: block; height: 100%; background: var(--color-ink-2); border-radius: 0 2px 2px 0; }
.hbars .row.hard .track i { background: var(--color-alert); }
.hbars .num { text-align: right; }

/* ---------- the proof label (signature) ---------- */
.proof { position: relative; background: var(--color-surface); border-radius: 10px; font-family: var(--font-outlier); font-size: var(--text-xs); line-height: 1.7; color: var(--color-ink); box-shadow: var(--shadow-lift); overflow: hidden; }
.proof-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-sm); padding: var(--space-sm) var(--space-md) var(--space-sm); border-bottom: 1px dashed var(--color-rule); }
.proof-head b { font-family: var(--font-display); font-weight: 700; font-size: var(--text-md); letter-spacing: -0.01em; }
.proof dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-3xs) var(--space-md); margin: 0; padding: var(--space-sm) var(--space-md); }
.proof dt { color: var(--color-muted); }
.proof dd { margin: 0; overflow-wrap: anywhere; }
.proof .stub { display: flex; justify-content: space-between; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); border-top: 1px dashed var(--color-rule); background: var(--color-paper-2); color: var(--color-muted); }
.proof .stub span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof dl { padding-right: 120px; }
.stamp { position: absolute; right: 12px; top: 52px; display: grid; place-items: center; width: 100px; height: 100px; border-radius: 50%; border: 2px solid var(--color-accent); box-shadow: inset 0 0 0 4px var(--color-surface), inset 0 0 0 5px var(--color-accent); color: var(--color-accent); text-align: center; font-family: var(--font-body); font-size: 11px; font-weight: 600; line-height: 1.2; transform: rotate(-8deg); opacity: 0.9; pointer-events: none; }
.stamp span { display: block; font-family: var(--font-outlier); font-weight: 500; font-size: 12px; }
.stamp.is-alert { border-color: var(--color-alert); box-shadow: inset 0 0 0 4px var(--color-surface), inset 0 0 0 5px var(--color-alert); color: var(--color-alert); }
.stamp.is-review { border-color: var(--color-muted); box-shadow: inset 0 0 0 4px var(--color-surface), inset 0 0 0 5px var(--color-muted); color: var(--color-muted); }
.stamp.lands { animation: stamp 520ms var(--ease-out) both; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(1.6); } 60% { opacity: 1; transform: rotate(-8deg) scale(0.96); } 100% { opacity: 0.9; transform: rotate(-8deg) scale(1); } }

/* ---------- maps ---------- */
.map { height: 420px; border-radius: var(--radius-card); background: var(--color-map-ground); overflow: hidden; border: 1px solid var(--color-rule); }
.map.tall { height: 560px; }
.leaflet-container { font-family: var(--font-body); background: var(--color-map-ground); }
.leaflet-container img { max-width: none !important; max-height: none !important; }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in oklab, var(--color-surface) 80%, transparent) !important; color: var(--color-muted); }
.leaflet-control-attribution a { color: var(--color-ink-2); }
.leaflet-bar a { color: var(--color-ink) !important; background: var(--color-surface) !important; border-color: var(--color-rule) !important; }
.leaflet-tooltip.mtip { background: var(--color-ink); color: var(--color-on-ink); border: 0; border-radius: 8px; box-shadow: var(--shadow-card); font-size: var(--text-xs); padding: var(--space-xs) var(--space-xs); }
.leaflet-tooltip.mtip::before { display: none; }
.map-key { display: flex; flex-wrap: wrap; gap: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); margin-top: var(--space-sm); }
.map-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: var(--space-xs); vertical-align: -1px; border: 2px solid var(--color-pin-ring); box-shadow: 0 0 0 1px var(--color-ink-2); }
.map-key .k-done { background: var(--color-accent); } .map-key .k-todo { background: var(--color-paper-3); } .map-key .k-flag { background: var(--color-alert); } .map-key .k-new { background: var(--ramp-1); }
.map-key .k-fence { border-radius: 2px; background: transparent; border: 2px solid var(--color-on-ink); box-shadow: 0 0 0 1px var(--color-ink); }

/* ---------- split views ---------- */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-lg); align-items: start; }
@media (max-width: 75rem) { .split { grid-template-columns: minmax(0, 1fr); } }
.list-scroll { max-height: calc(100vh - 260px); overflow-y: auto; }
.sticky-col { position: sticky; top: calc(var(--bar-h) + var(--space-lg)); }

.flags { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-xs); }
.flags li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-sm); align-items: start; padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); background: var(--color-paper-2); border: 1px solid var(--color-rule); font-size: var(--text-sm); }
.flags li.hard { background: var(--color-alert-soft); border-color: color-mix(in oklab, var(--color-alert) 30%, transparent); }
.flags li b { display: block; font-weight: 600; }
.flags li .w { font-family: var(--font-outlier); font-size: var(--text-xs); color: var(--color-muted); white-space: nowrap; }
.flags .ix { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-ink); color: var(--color-on-ink); font-size: 11px; font-weight: 600; }
.flags li.hard .ix { background: var(--color-alert); }

dl.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-xs) var(--space-lg); margin: 0; font-size: var(--text-sm); }
dl.facts dt { color: var(--color-muted); }
dl.facts dd { margin: 0; font-weight: 500; }
.section-gap { margin-top: var(--space-lg); }
.note { font-size: var(--text-sm); color: var(--color-muted); max-width: 70ch; }
.kv-row { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
.kv-row div { min-width: 0; }
.kv-row dt { font-size: var(--text-xs); color: var(--color-muted); }
.kv-row dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.toast { position: fixed; right: var(--space-lg); bottom: var(--space-lg); z-index: var(--z-toast); background: var(--color-ink); color: var(--color-on-ink); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-input); box-shadow: var(--shadow-card); font-size: var(--text-sm); max-width: 380px; opacity: 0; transform: translateY(8px); transition: opacity var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out); }
.toast.on { opacity: 1; transform: none; }

textarea.input, input.input, select.input { width: 100%; min-height: 40px; padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-input); border: 1px solid var(--color-muted); background: var(--color-surface); color: var(--color-ink); font-size: var(--text-sm); }
textarea.input:focus-visible, input.input:focus-visible, select.input:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }

@media print {
  .topbar, .no-print, .btn { display: none !important; }
  .page { padding: 0; }
  .panel { border: 0; padding: 0; break-inside: avoid; }
  body { background: var(--color-surface); }
}

/* ================= field app ================= */
.fieldbody { background: var(--color-paper-3); min-height: 100dvh; }
.phone { position: relative; max-width: 440px; margin-inline: auto; min-height: 100dvh; background: var(--color-paper); display: flex; flex-direction: column; }
@media (min-width: 40rem) { .fieldbody { padding: var(--space-lg) 0; } .phone { min-height: 0; height: calc(100dvh - 48px); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lift); } }
.f-bar { background: var(--color-ink); color: var(--color-on-ink); padding: var(--space-sm) var(--space-md); display: flex; align-items: center; gap: var(--space-sm); }
.f-bar .who { flex: 1; min-width: 0; line-height: 1.25; }
.f-bar .who b { display: block; font-family: var(--font-display); font-size: var(--text-md); }
.f-bar .who span { font-size: var(--text-xs); color: var(--color-on-ink-muted); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-bar button { min-height: 32px; padding: 0 var(--space-sm); border-radius: 8px; border: 1px solid var(--color-ink-rule); background: transparent; color: var(--color-on-ink); font-size: var(--text-xs); font-weight: 500; cursor: pointer; }
.f-bar button:hover { background: color-mix(in oklab, var(--color-on-ink) 10%, transparent); }
.f-bar button:focus-visible { outline: 2px solid var(--color-on-ink); outline-offset: 2px; }
.sync { font-size: var(--text-xs); padding: var(--space-xs) var(--space-md); background: var(--color-ink-2); color: var(--color-on-ink); display: flex; justify-content: space-between; gap: var(--space-sm); }
.sync.is-off { background: var(--color-muted); }
.sync.is-wait { background: var(--color-accent-deep); }
.f-main { flex: 1; overflow-y: auto; padding: var(--space-md); display: flex; flex-direction: column; gap: var(--space-md); }
.f-main h1 { font-size: var(--text-xl); max-width: none; }
.f-main h2 { font-size: var(--text-lg); }
.f-card { background: var(--color-surface); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-md); }
.f-foot { padding: var(--space-sm) var(--space-md) calc(var(--space-sm) + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-rule); background: var(--color-surface); display: flex; gap: var(--space-xs); }
.f-foot .btn { flex: 1; min-height: 48px; font-size: var(--text-md); }
.f-map { height: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--color-rule); background: var(--color-map-ground); }
.f-map.short { height: 220px; }
.steps { display: flex; gap: var(--space-2xs); }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--color-rule); }
.steps i.on { background: var(--color-accent); }
.steplabel { font-size: var(--text-xs); color: var(--color-muted); }
.field { display: grid; gap: var(--space-xs); }
.field > label, .field > .lab { font-size: var(--text-sm); font-weight: 500; }
.field .hint { font-size: var(--text-xs); color: var(--color-muted); min-height: 1lh; }
.field .err { font-size: var(--text-xs); color: var(--color-alert); min-height: 1lh; }
.field .warn { font-size: var(--text-xs); color: var(--color-ink-2); }
.fin { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-sm); border-radius: var(--radius-input); border: 1px solid var(--color-muted); background: var(--color-surface); color: var(--color-ink); font-size: 16px; }
.fin:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -1px; }
.fin[aria-invalid="true"] { border-color: var(--color-alert); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-sm); }
.three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); }
.keys { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.key { min-height: 44px; padding: 0 var(--space-md); border-radius: var(--radius-input); border: 1px solid var(--color-rule); border-bottom-width: 3px; background: var(--color-surface); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; cursor: pointer; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.key:hover { background: var(--color-paper-2); }
.key:active { transform: translateY(2px); }
.key[aria-pressed="true"] { background: var(--color-accent-soft); border-color: var(--color-accent); color: var(--color-accent-deep); }
.key:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.fence { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-sm); align-items: center; padding: var(--space-sm); border-radius: var(--radius-input); background: var(--color-accent-soft); color: var(--color-accent-deep); font-size: var(--text-sm); }
.fence.is-out { background: var(--color-alert-soft); color: var(--color-alert); }
.fence b { display: block; }
.fence .big { font-family: var(--font-outlier); font-size: var(--text-lg); font-weight: 500; }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); align-items: center; padding: var(--space-sm) 0; border-top: 1px solid color-mix(in oklab, var(--color-rule) 60%, transparent); font-size: var(--text-sm); }
.todo li small { display: block; color: var(--color-muted); font-size: var(--text-xs); }
.todo .btn { min-height: 36px; }
.roster input { margin-bottom: var(--space-xs); }
.roster button { display: block; width: 100%; text-align: left; padding: var(--space-sm); border: 0; border-top: 1px solid color-mix(in oklab, var(--color-rule) 60%, transparent); background: transparent; color: var(--color-ink); cursor: pointer; font-size: var(--text-sm); }
.roster button:hover { background: var(--color-paper-2); }
.roster button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.roster button b { display: block; font-weight: 600; }
.roster button span { color: var(--color-muted); font-size: var(--text-xs); }
.cam { position: relative; border-radius: 12px; overflow: hidden; background: var(--color-ink); aspect-ratio: 4 / 3; }
.cam video, .cam img, .cam canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
details.demo { border: 1px dashed var(--color-muted); border-radius: var(--radius-input); padding: var(--space-sm) var(--space-sm); font-size: var(--text-sm); background: var(--color-paper-2); }
details.demo summary { cursor: pointer; font-weight: 500; }
details.demo summary:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
details.demo .btn-row { margin-top: var(--space-sm); }
.done-wrap { display: grid; gap: var(--space-md); }
.you-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--color-ink); border: 3px solid var(--color-pin-ring); box-shadow: 0 0 0 1px var(--color-ink), 0 2px 6px color-mix(in oklab, var(--color-ink) 40%, transparent); }
.lang [aria-pressed="true"] { background: color-mix(in oklab, var(--color-on-ink) 18%, transparent); }

/* ================= launcher & present ================= */
.launch { max-width: 1120px; margin-inline: auto; padding: var(--space-2xl) var(--space-lg); }
.launch h1 { font-size: var(--text-5xl); max-width: 16ch; line-height: 1; }
.launch .lead { margin-top: var(--space-md); color: var(--color-ink-2); max-width: 56ch; font-size: var(--text-lg); }
.doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); margin-top: var(--space-2xl); }
@media (max-width: 52rem) { .doors { grid-template-columns: minmax(0, 1fr); } }
.door { display: flex; flex-direction: column; gap: var(--space-xs); padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-surface); border: 1px solid var(--color-rule); text-decoration: none; color: inherit; transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
.door:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.door:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
.door h2 { font-size: var(--text-xl); }
.door p { color: var(--color-muted); font-size: var(--text-sm); }
.door .go { margin-top: auto; padding-top: var(--space-md); color: var(--color-accent-deep); font-weight: 500; }
.door.primary { background: var(--color-ink); color: var(--color-on-ink); border-color: var(--color-ink); }
.door.primary p { color: var(--color-on-ink-muted); }
.door.primary .go { color: var(--color-accent-soft); }
.launch-foot { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); font-size: var(--text-sm); color: var(--color-muted); }
.launch-foot b { display: block; color: var(--color-ink); font-weight: 600; margin-bottom: var(--space-2xs); }
@media (max-width: 52rem) { .launch-foot { grid-template-columns: minmax(0, 1fr); } }
.present { display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: var(--space-md); height: 100dvh; padding: var(--space-md); background: var(--color-paper-3); }
.present iframe { width: 100%; height: 100%; border: 1px solid var(--color-rule); border-radius: 20px; background: var(--color-paper); }
.f-bar .seg { background: transparent; border: 1px solid var(--color-ink-rule); padding: var(--space-3xs); }
.f-bar .seg button { border: 0; min-height: 28px; padding: 0 var(--space-sm); color: var(--color-on-ink-muted); background: transparent; box-shadow: none; }
.f-bar .seg button:hover { color: var(--color-on-ink); background: color-mix(in oklab, var(--color-on-ink) 8%, transparent); }
.f-bar .seg button[aria-pressed="true"] { color: var(--color-on-ink); background: color-mix(in oklab, var(--color-on-ink) 18%, transparent); box-shadow: none; }

.stamp { padding: var(--space-sm); font-size: 10.5px; }
@media (max-width: 30rem) { .stamp { width: 86px; height: 86px; font-size: 10px; } .proof dl { padding-right: var(--space-3xl); } }
@media (max-width: 70rem) { #live-clock { display: none; } .brand span { display: none; } .topbar-in { gap: var(--space-sm); } }
