/* Assay design system — "Emitter". Source of truth: DESIGN.md.
   Built from APOLO's legacy bricks: the seven-hex emitter array and the
   OR-night palette. The hexagon is the unit of evidence. Coral means exactly
   one thing: a human must act here. Radius 0 everywhere; elevation is a border
   on light and a tonal layer on dark; every number sits in tabular mono. */

@font-face { font-family: 'Emitter Display'; src: url('/assets/fonts/EmitterDisplay-SemiBold.ttf') format('truetype'); font-weight: 620; font-style: normal; }
@font-face { font-family: 'Emitter Display'; src: url('/assets/fonts/EmitterDisplay-Bold.ttf') format('truetype'); font-weight: 680; font-style: normal; }
@font-face { font-family: 'Emitter Text'; src: url('/assets/fonts/EmitterText-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; }
@font-face { font-family: 'Emitter Text'; src: url('/assets/fonts/EmitterText-Medium.ttf') format('truetype'); font-weight: 560; font-style: normal; }
@font-face { font-family: 'Emitter Mono'; src: url('/assets/fonts/EmitterMono-Regular.ttf') format('truetype'); font-weight: 420; font-style: normal; }
@font-face { font-family: 'Emitter Mono'; src: url('/assets/fonts/EmitterMono-Medium.ttf') format('truetype'); font-weight: 560; font-style: normal; }

:root {
  --night: #071629;
  --navy: #19304E;
  --navy80: #22405F;
  --steel: #66798A;
  --steel40: #A8B4BE;
  --ice: #C1D2E4;
  --icebr: #DBECFB;
  --fog: #EDF0F2;
  --white: #FBFCFD;
  --coral: #FF5757;
  --coral-deep: #D63B3B;
  --coral-ink: #B32626;
  --hairline: #D6DCE1;      /* steel-40 tinted for 1px rules on light */
  --wash: #E4E9ED;
  --disp: 'Emitter Display', 'Space Grotesk', sans-serif;
  --sans: 'Emitter Text', 'Geist', -apple-system, sans-serif;
  --mono: 'Emitter Mono', 'Geist Mono', ui-monospace, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; }
body {
  font-family: var(--sans);
  background: var(--fog);
  color: var(--night);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--navy); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.mono { font-family: var(--mono); font-size: 0.88em; font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--steel); }
.pad { padding: 1rem 1.25rem; }

/* ---- hex glyph: the brick ---- */
.hx {
  display: inline-block;
  width: 12px; height: 14px;
  clip-path: var(--hex);
  background: var(--steel);
  flex: none;
}

/* ---- masthead: the night bar ---- */
.masthead {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: 60px;
  padding: 0 2rem;
  background: var(--night);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--disp);
  font-weight: 680;
  font-size: 1.16rem;
  letter-spacing: 0.045em;
  color: var(--white);
}
.wordmark:hover { text-decoration: none; }
.wordmark .hx { background: var(--coral); width: 13px; height: 15px; }

.nav { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.nav a {
  font-family: var(--mono);
  font-size: 0.7rem; font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ice);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 150ms var(--ease);
}
.nav a:hover { color: var(--white); text-decoration: none; }
.nav a.active { color: var(--white); border-bottom-color: var(--icebr); }
.nav-badge {
  display: inline-block;
  min-width: 1.2em;
  text-align: center;
  background: var(--coral);
  color: var(--night);
  padding: 0 0.28em;
  font-weight: 560;
}
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; }
.user-chip { font-size: 0.76rem; color: var(--ice); }
.inline-form { display: inline; }
.btn-plain {
  background: none; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ice);
}
.btn-plain:hover { color: var(--white); }

/* ---- page scaffolding ---- */
.page { flex: 1; width: min(1200px, 100% - 3rem); margin: 0 auto; padding: 2rem 0 3rem; }
.page-head { margin-bottom: 1.5rem; }
.page-head h1 { font-family: var(--disp); font-weight: 620; font-size: 1.9rem; letter-spacing: -0.02em; line-height: 1.08; }
.page-sub { color: var(--steel); font-size: 0.92rem; margin-top: 0.3rem; }

.foot {
  border-top: 1px solid var(--hairline);
  background: var(--white);
  display: grid;
  grid-template-columns: 150px 1fr 200px;
  align-items: center;
}
.foot-cell {
  font-family: var(--mono);
  font-size: 0.66rem; font-weight: 560;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
  padding: 0.7rem 2rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.foot-mid { border-left: 1px solid var(--hairline); border-right: 1px solid var(--hairline); }
.foot-right { text-align: right; }

.banner {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 0.65rem 0.95rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* ---- panels & tables ---- */
.panel {
  background: var(--white);
  border: 1px solid var(--hairline);
  margin-bottom: 1.4rem;
  overflow-x: auto;
}
.panel-pad { padding: 1.5rem 1.7rem; }
.panel-tight { margin-top: 0.5rem; }
.panel-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 0.8rem 1.25rem;
  border-bottom: 1px solid var(--hairline);
}
.panel-head h2, .panel-pad h2 {
  font-family: var(--disp); font-weight: 620; font-size: 1.06rem; letter-spacing: -0.005em;
}
.panel-pad h2 { margin: 1.2rem 0 0.45rem; }
.panel-pad h2:first-child { margin-top: 0; }
.panel-pad p { margin-bottom: 0.5rem; font-size: 0.94rem; max-width: 72ch; }
.panel-link { font-family: var(--mono); font-size: 0.68rem; font-weight: 560; letter-spacing: 0.12em; text-transform: uppercase; }

.tbl { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.tbl th {
  text-align: left;
  font-family: var(--mono); font-size: 0.66rem; font-weight: 560;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--steel);
  padding: 0.65rem 1.25rem 0.5rem;
  border-bottom: 1px solid var(--hairline);
}
.tbl td { padding: 0.72rem 1.25rem; border-bottom: 1px solid var(--wash); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background 150ms var(--ease); }
.tbl tbody tr:hover { background: var(--fog); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.opp-link { color: var(--night); }
.opp-link .mono { color: var(--navy); margin-right: 0.4rem; }

.score-pill {
  display: inline-block;
  font-family: var(--mono); font-size: 0.84rem; font-weight: 560;
  font-variant-numeric: tabular-nums;
  background: var(--night); color: var(--white);
  padding: 0.08rem 0.5rem;
}

.stage {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 560;
  letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--steel);
  border: 1px solid var(--steel40);
  padding: 0.14rem 0.45rem; white-space: nowrap;
}
.stage-outreach, .stage-diligence { color: var(--navy); border-color: var(--navy); }
.stage-agreed { color: var(--white); background: var(--navy); border-color: var(--navy); }
.stage-declined { text-decoration: line-through; }

/* ---- stats ---- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat {
  background: var(--white); border: 1px solid var(--hairline);
  padding: 1rem 1.2rem 0.9rem;
}
.stat-n {
  font-family: var(--disp); font-weight: 680; font-size: 2.1rem;
  font-variant-numeric: tabular-nums;
  display: block; line-height: 1.05;
}
.stat-l { font-family: var(--mono); font-size: 0.64rem; font-weight: 560; letter-spacing: 0.12em; text-transform: uppercase; color: var(--steel); }
.stat-alert .stat-n { color: var(--coral-ink); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; align-items: start; }

/* ---- evidence marks: hex glyph + code, fill density = trust ---- */
.mark {
  display: inline-flex; align-items: center; gap: 0.32rem;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 560;
  letter-spacing: 0.1em;
  color: var(--night);
  background: none; border: none; padding: 0.1rem 0.15rem;
  cursor: pointer;
  vertical-align: middle;
  white-space: nowrap;
}
.mark .hx { width: 13px; height: 15px; }
.mark-vf .hx  { background: var(--night); }
.mark-att .hx { background: var(--navy); box-shadow: inset 0 0 0 2.5px var(--white), inset 0 0 0 20px var(--navy); }
.mark-ar .hx  { background: var(--steel); }
.mark-ps .hx  { background: transparent; box-shadow: inset 0 0 0 1.5px var(--steel); }
.mark-ai      { color: var(--coral-ink); }
.mark-ai .hx  { background: transparent; box-shadow: inset 0 0 0 1.5px var(--coral-deep); }
.mark-un      { color: var(--steel); }
.mark-un .hx  {
  background: linear-gradient(to top right, transparent 44%, var(--steel40) 44%, var(--steel40) 56%, transparent 56%);
  box-shadow: inset 0 0 0 1.5px var(--steel40);
}
.mark:hover { opacity: 0.75; }

.ev-chip {
  font-family: var(--mono); font-size: 0.66rem;
  color: var(--navy);
  background: var(--fog);
  border: 1px solid var(--hairline);
  padding: 0.1rem 0.45rem;
  cursor: pointer;
}
.ev-chip:hover { background: var(--wash); }

/* popover — the one shadowed overlay */
.popover {
  position: absolute;
  max-width: 340px;
  background: var(--night);
  color: var(--icebr);
  border: 1px solid var(--navy80);
  padding: 0.75rem 0.9rem;
  font-size: 0.8rem;
  line-height: 1.5;
  z-index: 40;
  box-shadow: 0 12px 32px rgba(7, 22, 41, 0.18);
  white-space: pre-line;
}
.popover strong { display: block; margin-bottom: 0.3rem; font-family: var(--mono); font-size: 0.66rem; font-weight: 560; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ice); }

/* ---- report page ---- */
.crumb { font-size: 0.8rem; color: var(--steel); margin-bottom: 0.6rem; }
.report-head {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 2rem;
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 1.6rem 1.8rem;
  margin-bottom: 1.1rem;
}
.inid-title { display: flex; gap: 0.7rem; align-items: baseline; margin-bottom: 1rem; }
.inid-title h1 { font-family: var(--disp); font-weight: 620; font-size: 1.55rem; line-height: 1.18; letter-spacing: -0.015em; }
.inid-code { font-family: var(--mono); font-size: 0.7rem; color: var(--steel); }
.inid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 2rem; }
.inid-row { display: flex; gap: 0.7rem; font-size: 0.88rem; }
.inid-row dt { min-width: 118px; color: var(--steel); display: flex; gap: 0.45rem; }
.inid-row dd { flex: 1; }

/* the score cell: one hexagon, filled to its number */
.scorebox {
  border-left: 1px solid var(--hairline);
  padding-left: 1.7rem;
  align-self: center;
}
.score-big {
  font-family: var(--disp); font-weight: 680; font-size: 3.6rem;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.score-cap { font-family: var(--mono); font-size: 0.62rem; font-weight: 560; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin-bottom: 0.9rem; }
.bar-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.32rem; }
.bar-label { flex: 0 0 94px; font-size: 0.73rem; color: var(--steel); }
.bar { flex: 1; height: 5px; background: var(--wash); overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--navy); }
.bar-val { flex: 0 0 24px; text-align: right; font-family: var(--mono); font-size: 0.73rem; font-variant-numeric: tabular-nums; }
.w0{width:0}.w5{width:5%}.w10{width:10%}.w15{width:15%}.w20{width:20%}.w25{width:25%}
.w30{width:30%}.w35{width:35%}.w40{width:40%}.w45{width:45%}.w50{width:50%}.w55{width:55%}
.w60{width:60%}.w65{width:65%}.w70{width:70%}.w75{width:75%}.w80{width:80%}.w85{width:85%}
.w90{width:90%}.w95{width:95%}.w100{width:100%}

.block-label {
  display: block;
  font-family: var(--mono); font-size: 0.64rem; font-weight: 560;
  letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--steel);
  margin-bottom: 0.55rem;
}
.thesis-block {
  background: var(--white); border: 1px solid var(--hairline);
  padding: 1.1rem 1.5rem; margin-bottom: 1.1rem;
}
.thesis { font-family: var(--disp); font-weight: 620; font-size: 1.08rem; line-height: 1.45; letter-spacing: -0.005em; max-width: 80ch; }

.report-cols { display: grid; grid-template-columns: 1fr 300px; gap: 1.1rem; align-items: start; }
.findings { background: var(--white); border: 1px solid var(--hairline); padding: 1.2rem 1.5rem; }
.finding { padding: 0.85rem 0; border-bottom: 1px solid var(--wash); }
.finding:last-child { border-bottom: none; }
.finding:target { background: var(--fog); margin: 0 -0.75rem; padding-left: 0.75rem; padding-right: 0.75rem; }
.finding-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; }
.f-seq { font-family: var(--mono); color: var(--steel); font-size: 0.7rem; }
.f-section {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 560;
  letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--navy);
}
.f-text { font-size: 0.93rem; margin-bottom: 0.4rem; max-width: 78ch; }
.f-meta { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
.f-reviewed, .f-note { font-size: 0.73rem; color: var(--steel); }

.report-aside { display: flex; flex-direction: column; gap: 0.9rem; }
.aside-box { background: var(--white); border: 1px solid var(--hairline); padding: 1rem 1.15rem; }
.aside-text { font-size: 0.84rem; }
.aside-events { list-style: none; font-size: 0.8rem; }
.aside-events li { padding: 0.3rem 0; border-bottom: 1px solid var(--wash); }
.aside-events li:last-child { border-bottom: none; }
.aside-events .mono { color: var(--steel); margin-right: 0.4rem; }
.aside-hint { font-size: 0.78rem; color: var(--steel); padding: 0 0.2rem; }

.legend { list-style: none; }
.legend li { display: flex; gap: 0.55rem; align-items: center; padding: 0.26rem 0; font-size: 0.82rem; }
.legend-lg li { padding: 0.55rem 0; align-items: flex-start; }
.legend-lg p { font-size: 0.84rem; color: var(--steel); margin: 0; }

.stage-form, .card-move { display: flex; gap: 0.5rem; }

/* ---- forms & buttons ---- */
.btn {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 560;
  letter-spacing: 0.13em; text-transform: uppercase;
  background: var(--white); color: var(--navy);
  border: 1px solid var(--navy);
  padding: 0.45rem 0.9rem; cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease), transform 100ms var(--ease);
}
.btn:hover { background: var(--navy); color: var(--white); }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--coral); border-color: var(--coral); color: var(--night); }
.btn-primary:hover { background: var(--coral-deep); border-color: var(--coral-deep); color: var(--white); text-decoration: none; }
.btn-ok { border-color: var(--steel); color: var(--navy); }
.btn-ok:hover { background: var(--steel); color: var(--white); }
.btn-quiet { border-color: var(--steel40); color: var(--steel); }
.btn-quiet:hover { background: var(--wash); color: var(--night); }
.btn-sm { padding: 0.24rem 0.55rem; font-size: 0.62rem; }
.btn-block { width: 100%; }
a.btn { display: inline-block; }
a.btn:hover { text-decoration: none; }

input[type="text"], input[type="email"], input[type="password"], input[type="number"], select {
  font-family: var(--sans); font-size: 0.92rem;
  color: var(--night); background: var(--white);
  border: 1px solid var(--steel40);
  padding: 0.48rem 0.65rem;
  width: 100%;
}
select { width: auto; }
label { font-size: 0.8rem; color: var(--steel); display: block; }
label input, label select { margin-top: 0.28rem; }

.filter-bar {
  display: flex; gap: 0.9rem; align-items: flex-end; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filter-bar label { width: auto; }
.filter-bar input[type="number"] { width: 90px; }
.chip {
  font-family: var(--mono); font-size: 0.68rem; font-weight: 560; letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--steel40);
  padding: 0.26rem 0.62rem; color: var(--steel); background: var(--white);
}
.chip:hover { text-decoration: none; color: var(--night); }
.chip-on { color: var(--white); background: var(--navy); border-color: var(--navy); }

.panel-form { max-width: 760px; padding: 1.5rem 1.7rem; }
.scan-form { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.scan-form label { width: 100%; }
.form-row { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; width: 100%; }
.form-note { font-size: 0.79rem; color: var(--steel); max-width: 68ch; }

/* ---- review queue ---- */
.tbl-review .f-cell { max-width: 500px; }
.tbl-review .f-text { margin-top: 0.25rem; }
.ctx-cell { white-space: nowrap; }
.ctx-cell .muted { display: block; font-size: 0.78rem; }
.esc-flag {
  display: inline-block; margin-left: 0.4rem;
  font-family: var(--mono); font-size: 0.6rem; font-weight: 560;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--coral-ink);
}
.review-form { display: flex; flex-direction: column; gap: 0.45rem; min-width: 250px; }
.act-btns { display: flex; gap: 0.4rem; flex-wrap: wrap; }

/* ---- events ---- */
.event-list { list-style: none; }
.event { display: flex; gap: 0.85rem; padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--wash); align-items: baseline; }
.event:last-child { border-bottom: none; }
.event-date { font-family: var(--mono); font-variant-numeric: tabular-nums; color: var(--steel); font-size: 0.74rem; flex: 0 0 86px; }
.event-kind {
  font-family: var(--mono); font-size: 0.58rem; font-weight: 560;
  letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--steel40); padding: 0.1rem 0.38rem;
  color: var(--steel); flex: 0 0 auto;
}
.event-ownership, .event-personnel { color: var(--coral-ink); border-color: var(--coral-deep); }
.event-regulatory, .event-grant { color: var(--navy); border-color: var(--navy); }
.event-body { flex: 1; font-size: 0.9rem; }
.event-body p { color: var(--steel); font-size: 0.83rem; margin-top: 0.18rem; max-width: 78ch; }
.event-list-lg .event { padding: 0.95rem 1.4rem; }

.queue-list { list-style: none; padding: 0.5rem 1.25rem; }
.queue-list li { display: flex; gap: 0.55rem; align-items: center; padding: 0.4rem 0; border-bottom: 1px solid var(--wash); font-size: 0.88rem; }
.queue-list li:last-child { border-bottom: none; }
.queue-list .muted { margin-left: auto; font-size: 0.76rem; }

/* ---- pipeline board ---- */
.board { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; align-items: start; }
.col { background: var(--wash); border: 1px solid var(--hairline); padding: 0.55rem; min-height: 130px; }
.col-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0.2rem 0.3rem 0.55rem; }
.col-title { font-family: var(--mono); font-size: 0.62rem; font-weight: 560; letter-spacing: 0.14em; text-transform: uppercase; color: var(--steel); }
.col-count { font-family: var(--mono); font-size: 0.72rem; font-variant-numeric: tabular-nums; color: var(--steel); }
.card { background: var(--white); border: 1px solid var(--hairline); padding: 0.65rem 0.75rem; margin-bottom: 0.55rem; }
.card-title { font-size: 0.84rem; font-weight: 560; color: var(--night); display: block; margin-bottom: 0.3rem; line-height: 1.3; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.72rem; margin-bottom: 0.2rem; }
.card-move { margin-top: 0.5rem; }
.card-move select { font-size: 0.72rem; padding: 0.18rem 0.3rem; flex: 1; }

/* ---- methodology ---- */
.hitl { padding-left: 1.2rem; }
.hitl li { margin-bottom: 0.65rem; font-size: 0.94rem; max-width: 72ch; }

/* ---- auth + landing shared dark shell ---- */
.dark-shell {
  background: var(--night);
  color: var(--icebr);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* login */
.login-body { display: grid; place-items: center; background: var(--night); position: relative; overflow: hidden; }
.login-card {
  position: relative;
  width: min(410px, 92vw);
  background: var(--white);
  color: var(--night);
  padding: 2.5rem 2.3rem;
  margin: 4rem 0;
}
.login-card .wordmark { color: var(--night); font-size: 1.7rem; }
.login-tag { color: var(--steel); font-size: 0.88rem; margin: 0.55rem 0 1.7rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-error { color: var(--coral-ink); font-size: 0.88rem; margin-bottom: 0.8rem; }
.login-hint { margin-top: 1.7rem; border-top: 1px solid var(--wash); padding-top: 1rem; font-size: 0.78rem; color: var(--steel); }
.login-hint .mono { font-size: 0.73rem; }
.login-hint p + p { margin-top: 0.2rem; }
.hint-role { font-family: var(--sans); color: var(--steel); margin-left: 0.6ch; }

/* the emitter array (login + landing hero) */
.emitter { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---- responsive ---- */
@media (max-width: 960px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .two-col, .report-cols, .form-row { grid-template-columns: 1fr; }
  .report-head { grid-template-columns: 1fr; }
  .scorebox { border-left: none; padding-left: 0; border-top: 1px solid var(--hairline); padding-top: 1rem; }
  .board { grid-template-columns: repeat(2, 1fr); }
  .inid { grid-template-columns: 1fr; }
  .masthead { flex-wrap: wrap; gap: 0.6rem 1.4rem; padding: 0.7rem 1.2rem; }
  .nav-right { margin-left: 0; }
  .foot { grid-template-columns: 1fr; }
  .foot-mid { border: none; border-top: 1px solid var(--hairline); }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
