:root { color-scheme: light dark;
  --bg: #f5f5f7; --surface: #fff; --fg: #1d1d1f; --fg2: #424245; --muted: #636366; --faint: #636366; --line: #e5e5ea; --line2: #f0f0f2;
  --navy: #1d1d1f; --navy2: #424245; --navyfg: #1d1d1f; --navymuted: #6e6e73; --accent: #0066cc; --accentfg: #fff; --sel: #e3e3e8;
  --alert: #d70015; --alertbg: #fff1f0; --alertline: #ffc9c4; --warn: #b25000; --warnbg: #fff6e5; --warnline: #ffd9a3;
  --ok: #1d7a35; --okbg: #eaf7ee; --okline: #b5e3c3; --cyber: #0058b9; --cyberbg: #e6f0fc; --cyberline: #b7d3f5;
  --k-security: #1d1d1f; --k-safety: #6e6e73; --power: #b25000; --tagbg: #e8e8ed; --tagline: #d2d2d7; --focus: #0071e3; --railon: #1d1d1f; --num: #e8e8ed; --numfg: #1d1d1f; --on: #0071e3; --onhover: #0066cc; --onfg: #fff; --dangerbg: #d70015; --dangerfg: #fff;
  --btn2: #e8e8ed; --btn2hover: #dedee3; --side: #fbfbfd; --bar: rgba(251, 251, 253, .86); --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 20px rgba(0, 0, 0, .04);
  --dot-ok: #30b158; --dot-warn: #f29d0b; --dot-bad: #e5342b; --dot-wait: #8e8e93; --whead: #1d1d1f; --casec: #d70015;
  --water: #dde5ee; --land: #f7f5f0; --land2: #eceae4; --coast: #8a96a6; --s1: #0071e3; --s2: #e8590c; --s3: #1d7a35; }
@media (prefers-color-scheme: dark) { :root {
  --bg: #000; --surface: #1c1c1e; --fg: #f5f5f7; --fg2: #d1d1d6; --muted: #a1a1a6; --faint: #a1a1a6; --line: #38383a; --line2: #2c2c2e;
  --navy: #f5f5f7; --navy2: #d1d1d6; --navyfg: #f5f5f7; --navymuted: #a1a1a6; --accent: #2997ff; --accentfg: #000; --sel: #2c2c2e;
  --alert: #ff6961; --alertbg: #3a1513; --alertline: #7a271a; --warn: #ffb340; --warnbg: #33230a; --warnline: #7a4b12;
  --ok: #4cd964; --okbg: #0f2a18; --okline: #1f5a3a; --cyber: #64d2ff; --cyberbg: #0d2638; --cyberline: #1e4a6f;
  --k-security: #f5f5f7; --k-safety: #a1a1a6; --power: #ffb340; --tagbg: #2c2c2e; --tagline: #48484a; --focus: #0a84ff; --railon: #f5f5f7; --num: #2c2c2e; --numfg: #f5f5f7; --on: #0071e3; --onhover: #0066cc; --onfg: #fff; --dangerbg: #d63a30; --dangerfg: #fff;
  --btn2: #2c2c2e; --btn2hover: #3a3a3c; --side: #1c1c1e; --bar: rgba(28, 28, 30, .86); --shadow: none;
  --dot-ok: #30d158; --dot-warn: #ff9f0a; --dot-bad: #ff453a; --dot-wait: #8e8e93; --whead: #3a3a3c; --casec: #c9302c;
  --water: #0d1620; --land: #1f242b; --land2: #181c21; --coast: #4b5563; --s1: #0a84ff; --s2: #ff9f0a; --s3: #30d158; } }
html { overflow-x: clip; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--fg); font: 17px/1.47 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, system-ui, "Segoe UI", Arial, sans-serif; letter-spacing: -.01em; font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
main { max-width: 28rem; margin: 0 auto; padding: 2rem 16px; }
h1 { font-size: 1.35rem; margin: 0 0 .5rem; }
h2 { font-size: 1.375rem; line-height: 1.3; font-weight: 600; margin: 0 0 .25rem; letter-spacing: -.005em; }
h3 { font-size: 1rem; line-height: 1.5; font-weight: 600; margin: 1.4rem 0 .35rem; }
h4 { font-size: .95rem; font-weight: 600; margin: .9rem 0 .25rem; }
p { margin: .35rem 0; }
a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button { display: block; width: 100%; padding: .7rem 1rem; margin: .75rem 0; font: inherit; font-weight: 600; border: 1px solid var(--on); border-radius: 6px; background: var(--on); color: var(--onfg); cursor: pointer; }
button.secondary { background: var(--surface); color: var(--fg2); border: 1px solid var(--tagline); }
button.secondary:hover { background: var(--line2); }
button.danger { background: var(--alert); border-color: var(--alert); color: var(--dangerfg); }
button:disabled { opacity: .5; cursor: default; }
button.plain { display: inline; width: auto; margin: 0; padding: 0; background: none; color: inherit; border: 0; border-radius: 0; font: inherit; text-align: left; cursor: pointer; }
button.linkish { display: inline; width: auto; margin: 0; padding: 0; background: none; border: 0; border-radius: 0; font: inherit; font-weight: 500; color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; cursor: pointer; text-align: left; }
section { margin: 1.25rem 0; }
label { display: block; font-weight: 600; margin-top: .5rem; }
input, select, textarea { box-sizing: border-box; width: 100%; padding: .6rem .7rem; font: inherit; border: 1px solid var(--tagline); border-radius: 6px; background: var(--surface); color: var(--fg); }
textarea { min-height: 6rem; resize: vertical; }
label.check { display: flex; gap: .6rem; align-items: center; font-weight: 600; margin-top: 1rem; }
label.check input { width: 1.4rem; height: 1.4rem; flex: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.small { color: var(--muted); font-size: .875rem; line-height: 1.45; }
.join-link { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8125rem; background: var(--line2); border-radius: 8px; padding: .5rem .65rem; user-select: all; }
.small.tight { margin-top: .35rem; }
.cap { font-size: .75rem; line-height: 1.35; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.date { color: var(--muted); font-variant-numeric: tabular-nums; }
#status { min-height: 1.5em; font-weight: 600; }
[hidden] { display: none !important; }
/* Tags: a word in a rectangle, never colour alone (ICDS status tags).
   Red means one thing on every screen: a rating of realistic possibility or above. Kinds are told apart
   by shape (diamond, circle, square) in ink, blue and grey. */
.tag { display: inline-flex; align-items: center; gap: .3rem; height: 1.4rem; box-sizing: border-box; font-size: .75rem; font-weight: 600; line-height: 1; letter-spacing: .01em; color: var(--fg2); background: var(--tagbg); border: 1px solid var(--tagline); border-radius: 4px; padding: 0 .45rem; margin-left: .35rem; vertical-align: middle; white-space: nowrap; }
.tag::before { content: ""; display: none; width: 8px; height: 8px; flex: none; }
.tag.k-security::before { display: inline-block; background: var(--k-security); border-radius: 1px; transform: rotate(45deg); width: 7px; height: 7px; }
.tag.k-cyber::before { display: inline-block; background: var(--cyber); border-radius: 50%; }
.tag.k-safety::before { display: inline-block; background: var(--k-safety); }
.tag.alert { color: var(--alert); background: var(--alertbg); border-color: var(--alertline); margin: 0 0 0 .35rem; }
.tag.warn { color: var(--warn); background: var(--warnbg); border-color: var(--warnline); margin: 0 0 0 .35rem; }
.tag.ok { color: var(--ok); background: var(--okbg); border-color: var(--okline); }
.tag.grade { letter-spacing: .02em; }
ul.notices { padding-left: 1.1rem; }
ul.notices li { margin: .35rem 0; overflow-wrap: anywhere; }
dl.facts { margin: .5rem 0; }
dl.facts dt { font-weight: 600; font-size: .9rem; margin-top: .4rem; }
dl.facts dd { margin: 0; overflow-wrap: anywhere; }
ul.companies { list-style: none; padding: 0; margin: .5rem 0; }
ul.companies li { margin: .4rem 0; }
button.link { display: block; width: 100%; margin: 0; padding: .6rem .7rem; text-align: left; font-weight: 600; background: var(--surface); color: var(--accent); border: 1px solid var(--line); border-radius: 6px; }
ul.mini { list-style: none; padding: 0; margin: .3rem 0 0; }
ul.mini li { padding: .45rem 0; border-top: 1px solid var(--line2); font-size: .9rem; line-height: 1.45; overflow-wrap: anywhere; }
ul.mini li:first-child { border-top: 0; }
blockquote { margin: .5rem 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); font-size: .95rem; line-height: 1.5; color: var(--fg); }
.meta { font-size: .9rem; color: var(--muted); }
.context { margin: .2rem 0; font-size: .9rem; }
.warn { font-weight: 600; font-size: .9rem; color: var(--alert); margin: .4rem 0; }
.status-line { color: var(--muted); font-size: .9rem; margin: .2rem 0 .6rem; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.tiles.three { grid-template-columns: 1fr 1fr 1fr; }
.tile { border: 1px solid var(--line); border-radius: 6px; padding: .6rem .75rem; background: var(--surface); }
.tile .num { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.tile .lbl { font-size: .8rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; margin: .6rem 0 .4rem; }
button.chip { display: inline-block; width: auto; margin: 0; padding: .45rem .8rem; font-size: .875rem; font-weight: 600; border-radius: 6px; background: var(--surface); color: var(--fg2); border: 1px solid var(--tagline); }
button.chip.on { background: var(--on); color: var(--onfg); border-color: var(--on); }
/* A segmented control: one choice from a few, as one rectangle. */
.seg { display: inline-flex; flex-wrap: nowrap; gap: 0; width: auto; margin: .2rem 0 .6rem; border: 1px solid var(--tagline); border-radius: 6px; overflow: hidden; background: var(--surface); }
.seg button.chip { margin: 0; border: 0; border-right: 1px solid var(--tagline); border-radius: 0; padding: .5rem .85rem; font-size: .875rem; font-weight: 500; white-space: nowrap; }
.seg button.chip:focus-visible { outline-offset: -3px; }
.seg button.chip.on:focus-visible { outline-color: var(--focus); }
@media (max-width: 359.98px) { .seg button.chip { padding-left: .55rem; padding-right: .55rem; } }
.period.seg { flex-wrap: nowrap; gap: 0; }
.seg button.chip:last-child { border-right: 0; }
.seg button.chip.on { background: var(--on); color: var(--onfg); font-weight: 600; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.actions button { margin: .5rem 0; }
details.how { margin: .6rem 0; font-size: .9rem; color: var(--muted); }
details.how summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details > summary { cursor: pointer; }
details.src-cat { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); margin: .5rem 0; }
details.src-cat > summary { list-style: none; padding: .7rem .9rem; display: flex; flex-direction: column; gap: .15rem; position: relative; padding-right: 2.2rem; }
details.src-cat > summary::-webkit-details-marker { display: none; }
details.src-cat > summary::after { content: ""; position: absolute; right: 1rem; top: 50%; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); }
details.src-cat[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details.src-cat > summary .t { font-weight: 600; }
details.src-cat > summary .m { font-size: .85rem; color: var(--muted); }
details.src-cat > .small, details.src-cat > ul { margin-left: .9rem; margin-right: .9rem; }
details.src-cat > ul { margin-bottom: .6rem; }
.method { font-size: .8rem; color: var(--faint); margin: .3rem 0 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1rem; margin: .9rem 0; }
.card > h3:first-child, .card > h4:first-child { margin-top: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; margin: 0 0 .3rem; }
.card-head h3 { margin: 0; }
.card-head .asof { font-size: .85rem; color: var(--muted); }
.card-head button.linkish { font-size: .875rem; }
/* The application frame (29 Sep 2026): a navy masthead carrying the marking line, a left rail on a laptop, a bottom bar on a phone, one screen at a time. */
main.app { max-width: none; margin: 0; padding: 0; min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.app-bar { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .3rem .8rem; padding: .6rem 16px .5rem; background: var(--navy); color: var(--navyfg); position: sticky; top: 0; z-index: 5; }
.app-bar .brand { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; margin: 0; color: var(--navyfg); }
.app-bar .brand svg { width: 20px; height: 20px; }
.app-bar .where { grid-column: 2; grid-row: 1; font-size: .95rem; color: var(--navymuted); }
.app-bar .who { grid-column: 3; grid-row: 1; justify-self: end; font-size: .875rem; white-space: nowrap; }
.app-bar .who a { color: var(--navyfg); font-weight: 500; text-decoration: none; }
.app-bar .who { display: flex; align-items: center; gap: .9rem; }
.hd-search { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 1px solid var(--navymuted); color: var(--navyfg); border-radius: 6px; padding: .25rem .55rem; font: inherit; font-size: .875rem; cursor: pointer; min-height: 2rem; }
.hd-search svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.hd-search.on, .hd-search:hover { background: rgba(255,255,255,.12); }
@media (max-width: 479.98px) { .hd-search span { display: none; } .hd-search { padding: .3rem .45rem; } }
.srch-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 .4rem; }
.srch-tools input[type=search] { flex: 1 1 16rem; min-width: 0; padding: .55rem .7rem; font-size: 1rem; }
.srch-tools select { flex: 1 1 9rem; min-width: 0; }
.sr-list li.how { display: flex; align-items: center; gap: .5rem; }
.sr-list li.how > .sr-hit { flex: 1 1 0; width: auto; min-width: 0; }
.sr-list li.how > .linkish { flex: none; padding: .4rem .3rem; }
.sr-list li.how > .sr-via { flex: 1 0 100%; }
.sr-list li.how { flex-wrap: wrap; }
.sr-group { margin: 1.1rem 0 .4rem; }
.sr-group h3 { font-size: .95rem; margin: 0 0 .35rem; display: flex; gap: .5rem; align-items: baseline; }
.sr-group h3 .n { color: var(--muted); font-weight: 400; font-size: .85rem; }
.sr-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.sr-list li { border-bottom: 1px solid var(--line); }
.sr-hit { display: block; width: 100%; text-align: left; background: none; border: 0; padding: .6rem .2rem; font: inherit; color: var(--fg); cursor: pointer; }
.sr-hit:hover, .sr-hit:focus-visible { background: var(--tagbg); }
.sr-hit .t { font-weight: 600; display: block; overflow-wrap: anywhere; }
.sr-hit .m { color: var(--muted); font-size: .85rem; display: block; margin-top: .1rem; }
.sr-hit .q { font-size: .875rem; display: block; margin-top: .2rem; color: var(--fg2); overflow-wrap: anywhere; }
.sr-hit mark { background: var(--warnbg); color: inherit; padding: 0 .05em; }
.sr-card h2 { margin: .3rem 0 .1rem; overflow-wrap: anywhere; }
.sr-years { display: flex; align-items: flex-end; gap: 3px; height: 46px; margin: .6rem 0 .2rem; overflow-x: auto; }
.sr-years div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-width: 2.2rem; height: 100%; }
.sr-years i { display: block; width: 1.2rem; background: var(--accent); border-radius: 2px 2px 0 0; }
.sr-years span { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.sr-via { margin: .2rem 0 .6rem .4rem; padding-left: .7rem; border-left: 2px solid var(--line); }
.sr-via p { margin: .35rem 0; font-size: .875rem; }
.sr-path { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .8rem; margin: .6rem 0; background: var(--surface); }
.sr-path ol { margin: .2rem 0 0; padding-left: 1.2rem; }
.sr-path li { margin: .3rem 0; font-size: .9rem; }
.sr-pick { position: relative; }
.sr-pick input { width: 100%; box-sizing: border-box; padding: .55rem .7rem; font-size: 1rem; }
.sr-acts { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: .5rem 0; }
.app-bar .who a:hover { text-decoration: underline; }
p a, li a, dd a, .small a, .meta a, p button.linkish, li button.linkish { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.app-bar .marking-line { grid-column: 1 / -1; grid-row: 2; font-size: .68rem; line-height: 1.3; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--navymuted); }
.app-body { display: block; min-width: 0; }
.rail { display: none; }
.screen { display: none; padding: .4rem 16px 1.5rem; max-width: 46rem; margin: 0 auto; min-width: 0; }
.screen.on { display: block; }
.scr-top { display: flex; flex-direction: column; gap: .2rem; margin: .8rem 0 .4rem; }
.scr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; margin: 0; }
.scr-head h2 { margin: 0; flex: 0 1 auto; }
.scr-head .asof { font-size: .875rem; color: var(--muted); }
.scr-head .asof .stale { color: var(--warn); font-weight: 600; }
.marking { font-size: .875rem; color: var(--muted); padding: 0; margin: .3rem 0 .6rem; }
.period { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; margin: .2rem 0 .4rem; }
.dates:not([hidden]) { display: flex; flex-wrap: wrap; align-items: end; gap: .4rem .8rem; margin: .2rem 0 .8rem; }
.dates label { margin-top: 0; font-size: .9rem; }
.dates input { width: 11rem; padding: .45rem .5rem; }
.dates button { width: auto; margin: 0; padding: .5rem .9rem; }
.lead { font-size: 1.2rem; font-weight: 500; line-height: 1.45; margin: .3rem 0 .4rem; }
ol.judgements { list-style: none; counter-reset: kj; padding: 0; margin: .3rem 0 0; }
ol.judgements li { counter-increment: kj; position: relative; padding: .75rem 0 .75rem 2.2rem; border-top: 1px solid var(--line2); }
ol.judgements li:first-child { border-top: 0; padding-top: .2rem; }
ol.judgements li::before { content: counter(kj); position: absolute; left: 0; top: .8rem; width: 1.5rem; height: 1.5rem; border-radius: 50%; background: var(--num); color: var(--numfg); font-size: .8rem; font-weight: 600; line-height: 1.5rem; text-align: center; }
ol.judgements li:first-child::before { top: .25rem; }
ol.judgements .conf { display: block; font-size: .875rem; line-height: 1.45; color: var(--muted); margin-top: .25rem; }
.row-list { list-style: none; padding: 0; margin: .3rem 0 0; }
.row-list li { display: grid; grid-template-columns: 5.8rem minmax(0, 1fr); gap: .2rem .6rem; align-items: start; padding: .7rem 0; border-top: 1px solid var(--line2); }
.row-list li:first-child { border-top: 0; }
.row-list .date { font-size: .85rem; padding-top: .2rem; }
.row-list .what { min-width: 0; overflow-wrap: anywhere; }
.row-list .what button.linkish { display: block; width: 100%; text-decoration: none; font-weight: 500; color: var(--fg); line-height: 1.4; padding: .05rem 0; }
.row-list .what button.linkish:hover { text-decoration: underline; }
.row-list .sub { display: block; font-size: .85rem; color: var(--muted); margin-top: .15rem; }
.row-list .sub.hot { color: var(--alert); font-weight: 500; }
.row-list .tags { grid-column: 2; margin-top: .25rem; display: flex; flex-wrap: wrap; gap: .3rem; }
.row-list .tags .tag { margin: 0; }
table.sit { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .3rem 0 0; }
table.sit th { text-align: left; font-weight: 600; font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: .2rem .4rem .4rem 0; border-bottom: 1px solid var(--line); }
table.sit td { vertical-align: top; padding: .6rem .5rem .6rem 0; border-bottom: 1px solid var(--line2); line-height: 1.45; }
table.sit tr:last-child td { border-bottom: 0; }
table.sit td.state { white-space: nowrap; }
table.sit td.state .tag { margin-left: 0; }
table.sit td.reading { color: var(--fg2); }
@media (max-width: 599.98px) {
  table.sit thead { display: none; }
  table.sit, table.sit tbody, table.sit tr, table.sit td { display: block; }
  table.sit tr { padding: .5rem 0; border-bottom: 1px solid var(--line2); }
  table.sit tr:last-child { border-bottom: 0; }
  table.sit td { padding: 0; border: 0; }
  table.sit td.name { display: inline; font-weight: 600; }
  table.sit td.state { display: inline; margin-left: .4rem; }
  table.sit td.reading { display: block; margin-top: .2rem; }
}
/* The register as a table on a laptop, stacked rows on a phone. */
table.reg { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.reg th { text-align: left; font-weight: 600; font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; padding: .7rem .8rem; border-bottom: 1px solid var(--line); background: var(--bg); }
table.reg td { vertical-align: top; padding: .8rem .8rem; border-bottom: 1px solid var(--line2); line-height: 1.45; }
table.reg tbody tr:last-child td { border-bottom: 0; }
table.reg tbody tr:hover td { background: var(--bg); }
table.reg td.inc button.linkish { font-weight: 500; color: var(--fg); text-decoration: none; }
table.reg td.inc button.linkish:hover { text-decoration: underline; }
table.reg .sub { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
table.reg td .tag { margin-left: 0; }
table.reg td.inc, table.reg td.where, table.reg td.sector, table.reg .sub { overflow-wrap: break-word; }
table.reg td.where, table.reg td.sector { min-width: 7rem; }
table.reg td.hot { color: var(--alert); font-weight: 600; }
table.reg td.date { white-space: nowrap; }
table.reg th:last-child, table.reg td.rating { min-width: 10.5rem; }
table.reg td.dim { color: var(--faint); }
.card.table { padding: 0; overflow-x: auto; }
@media (min-width: 1200px) { table.reg td.where.dim::after { content: "Not stated"; } }
@media (max-width: 1199.98px) {
  table.reg thead { display: none; }
  table.reg, table.reg tbody { display: block; }
  table.reg tr { display: flex; flex-wrap: wrap; gap: .25rem .5rem; align-items: center; padding: .8rem 1rem; border-bottom: 1px solid var(--line2); }
  table.reg tbody tr:last-child { border-bottom: 0; }
  table.reg td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; }
  table.reg td.date { order: 1; font-size: .85rem; color: var(--muted); }
  table.reg td.kind { order: 2; }
  table.reg td.src { order: 3; }
  table.reg td.inc { order: 4; width: 100%; font-size: 1rem; }
  table.reg td.where, table.reg td.sector, table.reg td.rating { order: 5; font-size: .85rem; color: var(--muted); }
  table.reg td.sector::before { content: "· "; }
  table.reg td.where.dim, table.reg td.rating.dim { display: none; }
  table.reg td.where.dim + td.sector::before { content: ""; }
  table.reg td.rating { display: block; width: 100%; font-size: .85rem; }
  table.reg td.rating.hot { color: var(--alert); font-weight: 600; }
}
.panel { border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1rem; margin: .5rem 0; background: var(--surface); }
.panel h4 { margin-top: .2rem; }
.kv { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .5rem .8rem; font-size: .9rem; line-height: 1.45; margin: .5rem 0 0; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.src { padding: .7rem 0; border-top: 1px solid var(--line2); }
.src:first-of-type { border-top: 0; padding-top: .2rem; }
.src .who { font-size: .875rem; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; }
.src .who a { font-weight: 500; }
.src blockquote { margin: .5rem 0 0; }
.assess { padding: 0; overflow: hidden; }
.assess-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .3rem .8rem; padding: .55rem 1rem; background: var(--navy); color: var(--navyfg); }
.assess-head .cap { color: var(--navyfg); }
.assess-head .assess-meta { font-size: .75rem; color: var(--navymuted); }
.assess-body { padding: .9rem 1rem 1rem; }
.assess-body > p:first-child { margin-top: 0; }
.assess .lead { font-size: 1.15rem; margin: 0 0 .4rem; }
.assess .band { font-weight: 700; color: var(--alert); }
.assess .band.calm { color: var(--fg); }
.assess-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin-top: .8rem; }
.assess-grid > div { border: 1px solid var(--line); border-radius: 6px; padding: .55rem .7rem; font-size: .9rem; line-height: 1.4; }
.assess-grid > div .cap { margin-bottom: .2rem; }
.det-cols { display: flex; flex-direction: column; gap: 0; }
.det-top .card, .det-side .card, .det-rest .card, .det-actions .card { margin: .9rem 0 0; }
.det-head { margin: .6rem 0 .2rem; }
.det-head h2 { margin: 0 0 .4rem; }
.det-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; margin: 0; }
.det-head .meta .tag { margin-left: 0; white-space: normal; height: auto; min-height: 1.4rem; padding-top: .2rem; padding-bottom: .2rem; line-height: 1.25; }
.det-head h2, .det-head .meta { overflow-wrap: anywhere; }
.back { margin: .8rem 0 .2rem; text-decoration: none; }
.back:hover { text-decoration: underline; }
/* The approver's actions on an entry (29 Sep 2026): set apart, low-key, and never one tap to hide. */
.review { margin: .9rem 0 0; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.review h4 { margin: 0 0 .2rem; }
.review button.linkish { display: inline-block; width: auto; margin: .3rem 0 0; padding: .5rem 0; font-weight: 600; }
.review button.secondary, .review button.danger { margin: .5rem 0 0; }
.review .actions { margin-top: .2rem; }
.review .actions button { padding: .7rem .5rem; }
.review details.how { margin: .2rem 0 0; }
/* Reading check (14 Oct 2026, rebuilt for the phone): one card per answer, big Right and Wrong, a bar for progress. */
.gj-bar { height: .5rem; margin: .5rem 0 .2rem; border-radius: 999px; background: var(--line); overflow: hidden; }
.gj-bar-fill { display: block; height: 100%; width: 0; background: var(--ok); }
.gj-w0 { width: 0%; }
.gj-w1 { width: 5%; }
.gj-w2 { width: 10%; }
.gj-w3 { width: 15%; }
.gj-w4 { width: 20%; }
.gj-w5 { width: 25%; }
.gj-w6 { width: 30%; }
.gj-w7 { width: 35%; }
.gj-w8 { width: 40%; }
.gj-w9 { width: 45%; }
.gj-w10 { width: 50%; }
.gj-w11 { width: 55%; }
.gj-w12 { width: 60%; }
.gj-w13 { width: 65%; }
.gj-w14 { width: 70%; }
.gj-w15 { width: 75%; }
.gj-w16 { width: 80%; }
.gj-w17 { width: 85%; }
.gj-w18 { width: 90%; }
.gj-w19 { width: 95%; }
.gj-w20 { width: 100%; }
.gj-top { margin-top: 1rem; }
.gj-story { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.05rem; line-height: 1.6; margin: .4rem 0 1rem; padding: .9rem 1rem; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 6px; }
.gj-card { margin: .8rem 0 0; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); }
.gj-card.gj-ok { border-color: var(--ok); background: var(--okbg); }
#up-out p { overflow-wrap: anywhere; }
.up-ok, .up-bad { font-weight: 600; padding: .5rem .7rem; border-radius: 10px; border: 1px solid; margin-top: .5rem; }
.up-ok { color: var(--ok); background: var(--okbg); border-color: var(--okline); }
.up-bad { color: var(--dangerbg); background: var(--surface); border-color: currentColor; }
.gj-card.gj-bad { border-color: var(--alert); background: var(--alertbg); }
.gj-val { font-size: 1.2rem; font-weight: 700; line-height: 1.35; margin: .2rem 0; overflow-wrap: anywhere; }
.gj-pair { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: .7rem; }
.gj-pair button { margin: 0; min-height: 3rem; font-size: 1.05rem; }
.gj-ok .gj-yes { background: var(--ok); border-color: var(--ok); color: var(--surface); }
.gj-bad .gj-no { background: var(--alert); border-color: var(--alert); color: var(--surface); }
.gj-fix { margin-top: .6rem; }
.gj-fix button.on, .gj-opt.on { background: var(--on); border-color: var(--on); color: var(--onfg); }
.gj-opt { margin: .5rem 0 0; text-align: left; }
.gj-none { margin: .7rem 0 0; }
.gj-pair button.tk-opt.on { background: var(--on); border-color: var(--on); color: var(--onfg); }
.gj-list { margin: .4rem 0 0; padding-left: 1.2rem; }
.gj-list li { margin: .15rem 0; }
.gj-left { margin: 1.2rem 0 0; font-weight: 700; text-align: center; }
.gj-save { min-height: 3.2rem; font-size: 1.1rem; margin: .6rem 0 0; }
.choices { margin: .6rem 0 .2rem; }
.choice { display: flex; gap: .6rem; align-items: center; font-weight: 500; margin: 0; padding: .6rem 0; border-top: 1px solid var(--line2); }
.choice:first-child { border-top: 0; }
.choice input { width: 1.3rem; height: 1.3rem; flex: none; margin: 0; accent-color: var(--on); }
.foot { margin: 1.5rem 0 1rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.45; color: var(--faint); }
.foot p { margin: .25rem 0; }
.fresh .stale { color: var(--warn); font-weight: 600; }
.cc-tools { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0 .2rem; }
.cc-tools input { flex: 1 1 14rem; min-width: 0; margin: 0; }
.cc-tools button { flex: 0 0 auto; width: auto; margin: 0; padding: .5rem .8rem; font-size: .9rem; }
.inc-tools { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; margin: .2rem 0 .6rem; }
.inc-tools .seg { margin: 0; }
.inc-tools select { width: auto; padding: .45rem 1.8rem .45rem .7rem; font-size: .875rem; }
.inc-tools input[type=search] { flex: 1 1 12rem; min-width: 0; padding: .5rem .7rem; font-size: .9rem; }
#as-tools-out:empty { display: none; }
.tabbar { position: sticky; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: var(--surface); padding-bottom: env(safe-area-inset-bottom); }
.tabbar button { margin: 0; padding: .5rem .2rem .45rem; border: 0; border-radius: 0; background: transparent; color: var(--faint); font-size: .7rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: .2rem; }
.tabbar button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tabbar button.on { color: var(--navy); }
@media (prefers-color-scheme: dark) { .tabbar button.on { color: var(--accent); } }
.more-list { list-style: none; padding: 0; margin: .5rem 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.more-list li { border-top: 1px solid var(--line2); }
.more-list li:first-child { border-top: 0; }
.more-list button { text-align: left; background: transparent; color: var(--fg); margin: 0; padding: .85rem 1rem; border: 0; border-radius: 0; font-weight: 600; }
.more-list button:focus-visible { outline-offset: -3px; }
.more-list .sub { display: block; font-size: .85rem; color: var(--muted); font-weight: 400; }
/* Map screen. */
.map-wrap { display: block; }
.cc-map { position: relative; height: calc(100vh - 11rem); height: calc(100dvh - 11rem); min-height: 20rem; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--water); margin-top: .4rem; }
.cc-map .map-canvas { position: absolute; inset: 0; }
.cc-time { margin-top: .6rem; }
.pin-wrap { line-height: 0; }
.map-bar { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: .3rem; z-index: 3; pointer-events: none; }
.map-bar > * { pointer-events: auto; }
.map-bar button.chip { background: var(--surface); font-size: .8rem; padding: .35rem .6rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .08); }
.map-bar button.chip.on { background: var(--on); border-color: var(--on); color: var(--onfg); }
.map-zoom { margin-left: auto; display: flex; gap: 0; border-radius: 6px; overflow: hidden; box-shadow: 0 1px 2px rgba(16, 24, 40, .12); }
.map-zoom button.chip { min-width: 2.1rem; border-radius: 0; box-shadow: none; margin-right: -1px; }
.map-zoom button.chip:focus-visible { outline-offset: -3px; }
.map-note { position: absolute; left: 8px; top: 84px; z-index: 3; max-width: 30rem; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: .4rem .6rem; font-size: .8rem; color: var(--muted); }
.map-credit { position: absolute; right: 8px; bottom: 8px; z-index: 3; max-width: 46%; text-align: right; font-size: .66rem; line-height: 1.25; color: var(--muted); background: color-mix(in srgb, var(--surface) 90%, transparent); padding: .15rem .4rem; border-radius: 4px; }
.map-legend { position: absolute; left: 8px; bottom: 8px; z-index: 3; max-width: 52%; font-size: .72rem; color: var(--fg2); background: color-mix(in srgb, var(--surface) 94%, transparent); border: 1px solid var(--line); padding: .35rem .55rem; border-radius: 6px; }
.map-legend summary { cursor: pointer; font-weight: 600; list-style: none; }
.map-legend summary::-webkit-details-marker { display: none; }
.map-legend summary::after { content: " +"; color: var(--faint); }
.map-legend[open] summary::after { content: " \2212"; }
.map-keys { display: flex; flex-wrap: wrap; gap: .25rem .8rem; margin-top: .3rem; }
.map-legend i { display: inline-block; vertical-align: middle; margin-right: .3rem; }
.pin { position: relative; width: 14px; height: 14px; margin: 0; padding: 0; border: 2px solid var(--surface); background: var(--k-safety); cursor: pointer; border-radius: 50%; box-sizing: border-box; }
.pin.k-safety { width: 10px; height: 10px; border-radius: 2px; }
.pin.k-security { background: var(--k-security); border-radius: 2px; transform: rotate(45deg); }
.pin.k-cyber { background: var(--cyber); }
.pin.hostile { width: 20px; height: 20px; border: 3px solid var(--alert); }
.pin.area::after { content: ""; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1px solid currentColor; opacity: .35; pointer-events: none; }
.pin.k-security.area::after { transform: rotate(-45deg); }
.pin.uncertain { border-style: dashed; }
.pin.sel { outline: 3px solid var(--accent); outline-offset: 3px; z-index: 5; }
.cut { width: 0; height: 0; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid var(--power); }
.cut.cluster { border-left-width: 11px; border-right-width: 11px; border-bottom-width: 19px; }
.city { font-size: .72rem; color: var(--muted); white-space: nowrap; pointer-events: none; text-shadow: 0 0 3px var(--surface), 0 0 3px var(--surface); }
.city::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); margin-right: 3px; vertical-align: middle; }
.map-tip { position: absolute; z-index: 4; pointer-events: none; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 6px; padding: .3rem .55rem; font-size: .8rem; max-width: 22rem; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
details.map-list { font-size: .875rem; margin: .6rem 0 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .7rem 1rem; max-height: calc(100vh - 13rem); overflow: auto; }
details.map-list summary { cursor: pointer; color: var(--fg); font-weight: 600; }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .8rem; color: var(--muted); }
.tl-track { position: relative; height: 2.4rem; margin-top: .2rem; border: 1px solid var(--tagline); border-radius: 4px; background: var(--surface); background-image: linear-gradient(to right, var(--line2) 1px, transparent 1px); background-size: 10% 100%; }
.tl-cursor { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--accent); pointer-events: none; }
button.tick.later { opacity: .2; }
.tl-ctl { display: flex; align-items: center; gap: .75rem; margin-top: .5rem; }
.tl-play { min-width: 4.5rem; min-height: 44px; }
.tl-range { flex: 1; min-width: 0; height: 44px; accent-color: var(--accent); }
.tl-said { margin-top: .25rem; color: var(--muted); }
button.tick { position: absolute; top: .5rem; width: 9px; height: 1.4rem; margin: 0; padding: 0; transform: translateX(-50%); border: 0; border-radius: 2px; background: var(--k-safety); cursor: pointer; }
button.tick.k-security { background: var(--k-security); }
button.tick.k-cyber { background: var(--cyber); border-radius: 50%; width: 11px; height: 11px; top: .9rem; }
button.tick.hostile { top: .2rem; height: 2rem; outline: 2px solid var(--alert); }
button.tick.k-cyber.hostile { top: .55rem; height: 15px; width: 15px; }
button.tick.sel { outline: 3px solid var(--accent); z-index: 2; }
/* Admin sections keep their forms; they live on their own screen now. */
/* The cost guard's banner (5 Oct 2026): shown on every screen while the background jobs are stopped. */
.guard-banner { margin: 0; padding: .6rem 1rem; background: var(--alertbg); color: var(--alert); border-bottom: 1px solid var(--alertline); font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
.guard-banner[hidden] { display: none; }
.month-line { margin: .25rem 0; }
.db-bar { height: .55rem; border-radius: 3px; background: var(--line, #ddd); overflow: hidden; margin: .3rem 0 .4rem; }
.db-bar > span { display: block; height: 100%; background: var(--ok); }
.db-bar.warn > span { background: var(--warn); }
/* Running costs (30 Sep 2026). Amber, never red, for "close to the limit": red means a rating only. */
.costs-top .costs-big { font-size: 1.15rem; line-height: 1.45; font-weight: 600; margin: .3rem 0; }
.lc { margin-top: .2rem; }
.lc-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); margin: 0 0 .5rem; }
.lc-legend span { display: inline-flex; align-items: center; gap: .4rem; }
.key { display: inline-block; width: .85rem; height: .55rem; border-radius: 2px; background: var(--ok); }
.key.proj { opacity: .3; }
.key.line { height: 2px; width: 1rem; border-radius: 1px; }
.key.s1, .tc-dot.s1 { background: var(--s1); fill: var(--s1); } .key.s2, .tc-dot.s2 { background: var(--s2); fill: var(--s2); } .key.s3, .tc-dot.s3 { background: var(--s3); fill: var(--s3); }
.lc-row { padding: .6rem 0 .65rem; border-top: 1px solid var(--line2); border-radius: 4px; outline-offset: 2px; }
.lc-row:first-of-type { border-top: 0; }
.lc-head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.lc-name { font-weight: 600; }
.lc-val { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lc-word { font-size: .9rem; color: var(--fg2); margin: .1rem 0 .35rem; }
.lc-row.half .lc-word, .lc-row.full .lc-word { color: var(--warn); font-weight: 600; }
.lc-track { position: relative; height: 12px; border-radius: 0 4px 4px 0; background: var(--line2); margin-top: .3rem; }
.lc-track i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 4px 4px 0; background: var(--ok); }
.lc-row.half .lc-track i, .lc-row.full .lc-track i { background: var(--warn); }
.lc-track .lc-proj { opacity: .3; }
.lc-row.full .lc-track { box-shadow: inset -3px 0 0 var(--warn); }
.lc-mid { position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line); }
.lc-axis { display: flex; justify-content: space-between; color: var(--muted); margin-top: .35rem; padding-top: .3rem; border-top: 1px solid var(--line); }
/* The incident room wall (30 Sep 2026): a printed analyst's chart on paper, in both colour schemes. */
.wall { --p-bg: var(--bg); --p-card: var(--surface); --p-grid: var(--line2); --p-ink: var(--fg); --p-ink2: var(--fg2); --p-muted: var(--muted); --p-line: var(--line); --p-case: var(--casec); --p-gap: var(--alertbg); --p-gapink: var(--alert); --p-head: var(--whead); --p-headfg: #fff; --p-weak: #9aa0a8;
  color: var(--p-ink); background: var(--p-bg); border: 1px solid var(--p-line); border-radius: 6px; overflow: hidden; }
.wall a, .wall button.linkish { color: var(--accent); }
.wall .gap button.linkish { color: var(--p-gapink); }
.wall-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1.2rem; padding: .9rem 1rem .7rem; background: var(--p-card); border-bottom: 1px solid var(--p-line); }
.wall-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.25; color: var(--p-ink); }
.wall-status { margin: .25rem 0 0; font-size: .9rem; color: var(--p-muted); }
.wall-status b { color: var(--p-ink); }
.wall-head .wall-print { width: auto; margin: 0; background: var(--p-card); color: var(--p-ink); border: 1px solid var(--p-line); min-height: 44px; }
.wall-tabs { display: flex; gap: .15rem; overflow-x: auto; background: var(--p-card); border-bottom: 1px solid var(--p-line); padding: 0 .5rem; scrollbar-width: none; }
.wall-tabs button { flex: none; width: auto; margin: 0; min-height: 44px; padding: 0 .85rem; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: var(--p-muted); font-weight: 500; white-space: nowrap; }
.wall-tabs button[aria-selected="true"] { color: var(--p-ink); font-weight: 700; border-bottom-color: var(--p-case); }
.wall-panel { position: relative; padding: .8rem; }
.wall-panel[hidden] { display: none; }
.wall-note { font-size: .88rem; color: var(--p-muted); margin: .6rem 0 0; line-height: 1.5; }
.wall-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .8rem; }
/* Links */
.wall-chart { position: relative; background-color: var(--p-bg); background-image: linear-gradient(var(--p-grid) 1px, transparent 1px), linear-gradient(90deg, var(--p-grid) 1px, transparent 1px); background-size: 32px 32px; border: 1px solid var(--p-line); overflow: hidden; touch-action: none; }
.wall-chart svg { display: block; width: 100%; user-select: none; -webkit-user-select: none; }
.wl-line { stroke: var(--p-ink); stroke-width: 1.6; fill: none; }
.wl-line.unconfirmed { stroke-dasharray: 8 6; } .wl-line.possible { stroke-dasharray: 2 5; }
.wl-hit { stroke: transparent; stroke-width: 18; cursor: pointer; }
.wl-label { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; fill: var(--p-ink); paint-order: stroke; stroke: var(--p-bg); stroke-width: 4px; stroke-linejoin: round; pointer-events: none; }
.wl-node { cursor: grab; outline: none; }
.wl-node:focus-visible .wl-shape { stroke: var(--focus); stroke-width: 3.5; }
.wl-shape { fill: var(--p-card); stroke: var(--p-ink); stroke-width: 1.6; }
.wl-shape.unknown { stroke-dasharray: 3 4; }
.wl-headbar { fill: var(--p-ink); }
.wl-node.seed .wl-shape { stroke: var(--p-case); stroke-width: 2.4; } .wl-node.seed .wl-headbar { fill: var(--p-case); }
.wl-node.unconfirmed .wl-shape { stroke-dasharray: 6 4; } .wl-node.seed.unconfirmed .wl-shape { stroke-dasharray: none; }
.wl-headtext { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 10.5px; font-weight: 600; fill: var(--p-headfg); }
.wl-text { font-size: 12.5px; fill: var(--p-ink); }
.wl-text.b { font-weight: 600; }
.wl-text.m { fill: var(--p-muted); font-size: 11.5px; }
.wall-chart .dim { opacity: .18; }
.wl-line.hot { stroke-width: 2.6; }
.wl-line.weak { stroke: var(--p-weak); } .wl-label.weak { fill: var(--p-muted); } .wl-shape.weak { stroke: var(--p-weak); } .wl-shape.pub { fill: var(--line2); }
.wl-off { display: none; }
.wall-pick { display: none; align-items: center; gap: .6rem; padding: .7rem .8rem; background: var(--p-card); border-bottom: 1px solid var(--p-line); font-weight: 700; }
.wall-pick select { flex: 1; min-height: 48px; margin: 0; font-size: 1rem; }
@media (max-width: 699px) { .wall-tabs { display: none; } .wall-pick { display: flex; } .wall .wall-seg { display: flex; width: 100%; } .wall .wall-tools .wall-seg button { flex: 1; white-space: normal; line-height: 1.2; padding: .3rem .5rem; } }
@media (min-width: 700px) { .wall-tabs { flex-wrap: wrap; } }
@media print { .wall-pick { display: none !important; } }
.wall-kicker { margin: 0; font-size: .82rem; font-weight: 700; letter-spacing: .05em; color: var(--p-muted); }
.wall-ctl { align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.wall-ctl-lab { font-weight: 700; }
.wall-seg { display: inline-flex; border: 1px solid var(--p-line); border-radius: 10px; overflow: hidden; }
.wall-seg button { width: auto; margin: 0; min-height: 44px; padding: 0 .8rem; border: 0; border-radius: 0; background: var(--p-card); color: var(--p-ink); font-weight: 500; }
.wall-seg button[aria-pressed="true"] { background: var(--p-head); color: var(--p-headfg); font-weight: 700; }
.wall-per { display: inline-flex; align-items: center; gap: .4rem; }
.wall-per select { width: auto; min-height: 44px; margin: 0; }
.wall-tools .wall-seg button, .wall-tools button.wide { width: auto; min-width: 0; padding: 0 .8rem; white-space: nowrap; font-size: 1rem; }
.wall-tools .wall-seg button { border: 0; border-radius: 0; }
.wall-box { background: var(--p-card); border: 1px solid var(--p-line); border-radius: 10px; padding: .9rem 1rem; margin-bottom: .8rem; }
.wall-box h3 { margin: 0 0 .5rem; font-size: 1.1rem; }
.wall-box p { margin: .3rem 0; line-height: 1.5; }
.wall-h3 { margin: 1.2rem 0 .3rem; font-size: 1.1rem; }
.wall-lead { margin: 0 0 .8rem; line-height: 1.5; }
.wall-fact { padding: .45rem 0; border-top: 1px solid var(--p-line); } .wall-fact:first-of-type { border-top: 0; }
.wall-fact .wf-lab { display: block; font-size: .85rem; color: var(--p-muted); }
.wall-gapbtn { display: block; width: 100%; text-align: left; margin: .4rem 0 0; padding: .7rem .8rem; min-height: 44px; background: var(--p-gap); color: var(--p-gapink); border: 1px solid var(--alertline); border-radius: 8px; font-weight: 400; }
.wall-gapbtn b { display: block; } .wall-gapbtn span { display: block; font-size: .9rem; }
.wall-exp .we-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .2rem .6rem; }
.wall-exp .we-list { margin: .1rem 0 .4rem; padding-left: 1.3rem; } .wall-exp .we-list li { margin: .15rem 0; }
.wall-exp .we-head h3 { margin: 0; }
.wall-exp .we-band { flex: none; font-weight: 700; } .wall-exp .we-band.warn { color: var(--p-case); }
.wall-exp .we-why { color: var(--p-muted); }
.wall-more { margin-top: .8rem; } .wall-more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.wall-qc.done { background: var(--okbg); border-color: var(--okline); } .wall-qc .qa { color: var(--ok); font-weight: 700; }
.wall-qc p.qq { margin: 0; font-size: 1rem; }
.wall section.days .day.next { color: var(--p-muted); }
.wall-pop { position: absolute; z-index: 3; width: min(22rem, calc(100% - 1rem)); box-sizing: border-box; background: var(--p-card); color: var(--p-ink); border: 1px solid var(--p-ink); box-shadow: 0 6px 18px rgba(11,31,59,.16); padding: .7rem .8rem; font-size: .9rem; line-height: 1.45; }
.wall-pop[hidden] { display: none; }
.wall-pop .pt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem .6rem; font-weight: 600; padding-right: 2rem; }
.wall-pop p { margin: .35rem 0 0; color: var(--p-ink2); }
.wall-pop .pm { color: var(--p-muted); font-size: .84rem; }
.wall-pop .x { position: absolute; right: .2rem; top: .15rem; width: 36px; height: 36px; margin: 0; padding: 0; background: none; border: 0; color: var(--p-muted); font-size: 1.2rem; }
.wall-pop button.linkish { margin-top: .4rem; display: block; }
.wall-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin-top: .6rem; font-size: .84rem; color: var(--p-ink2); }
.wall-tools button { width: 44px; height: 44px; margin: 0; padding: 0; background: var(--p-card); color: var(--p-ink); border: 1px solid var(--p-line); border-radius: 4px; font-size: 1.2rem; }
.wall-tools label { display: flex; align-items: center; gap: .5rem; flex: 1 1 16rem; margin: 0; }
.wall-tools input[type=range] { flex: 1; min-width: 8rem; height: 44px; accent-color: var(--p-case); }
.wall-key { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; }
.wall-key span { display: inline-flex; align-items: center; gap: .4rem; }
.wall-key svg { flex: none; }
/* Sequence */
.wall-seq { overflow-x: auto; border: 1px solid var(--p-line); background: var(--p-bg); }
.ws-axis { stroke: var(--p-ink); stroke-width: 1; }
.ws-grid { stroke: var(--p-line); stroke-width: 1; }
.ws-theme { stroke: var(--p-ink); stroke-width: 2; }
.ws-join { stroke: var(--p-ink); stroke-width: 1.3; }
.ws-join.unconfirmed { stroke-dasharray: 6 5; }
.ws-ev { fill: var(--p-ink); stroke: var(--p-ink); stroke-width: 2; cursor: pointer; }
.ws-ev.unconfirmed { fill: var(--p-card); stroke-dasharray: 3 3; }
.ws-ev.seed { fill: var(--p-case); stroke: var(--p-case); }
.ws-ev.seed.unconfirmed { fill: var(--p-card); }
.ws-tick { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 11px; fill: var(--p-muted); }
.ws-name { font-size: 12.5px; font-weight: 600; fill: var(--p-ink); }
.ws-lab { font-size: 11px; fill: var(--p-ink2); font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; paint-order: stroke; stroke: var(--p-bg); stroke-width: 4px; }
/* Known and not known, explanations: grids on a wide screen, stacked cards on a phone */
.wall-grid { display: grid; border: 1px solid var(--p-ink); background: var(--p-card); font-size: .92rem; line-height: 1.45; }
.wall-grid > div { padding: .6rem .7rem; border-bottom: 1px solid var(--p-line); border-left: 1px solid var(--p-line); }
.wall-grid > .wh { background: var(--p-head); color: var(--p-headfg); font-weight: 600; border-bottom: 2px solid var(--p-ink); border-left-color: rgba(255, 255, 255, .25); }
.wall-grid > .rh { font-weight: 700; border-left: 0; }
.wall-grid > .gap { background: var(--p-gap); }
.wall-grid > .none { color: var(--p-muted); }
.wall-5wh { grid-template-columns: 6rem repeat(4, minmax(0, 1fr)); }
.wall-ach { grid-template-columns: minmax(0, 1fr) repeat(4, 9.5rem); }
.wall-ach > .mk { text-align: center; }
.wall-ach > .mk.against { background: var(--p-gap); color: var(--p-gapink); font-weight: 600; }
.wall-ach > .mk.neither, .wall-ach > .useless { color: var(--p-muted); }
.wall-ach > .tot { border-top: 2px solid var(--p-ink); font-weight: 700; }
.wall-cards { display: none; }
.wall-card { background: var(--p-card); border: 1px solid var(--p-line); margin-bottom: .6rem; }
.wall-card > .ch { background: var(--p-head); color: var(--p-headfg); font-weight: 700; padding: .55rem .8rem; }
.wall-card > p { margin: 0; padding: .55rem .8rem; border-top: 1px solid var(--p-line); font-size: .93rem; line-height: 1.45; }
.wall-card > p.gap { background: var(--p-gap); }
.wall-card .lab { font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: var(--p-muted); margin-right: .35rem; }
.wall-card > p.gap .lab { color: var(--p-gapink); }
/* Lines of enquiry */
.wall-q { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.wall-q h3 { margin: 0 0 .5rem; padding-bottom: .4rem; border-bottom: 2px solid var(--p-ink); font-size: .85rem; letter-spacing: .05em; color: var(--p-ink); }
.wall-qc { background: var(--p-card); border: 1px solid var(--p-line); padding: .65rem .75rem; margin-bottom: .55rem; }
.wall-qc.flash { outline: 3px solid var(--p-case); }
.wall-qc .qh { display: flex; justify-content: space-between; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .78rem; font-weight: 600; }
.wall-qc p { margin: .3rem 0 0; font-size: .93rem; line-height: 1.45; }
.wall-qc .qr { color: var(--p-muted); font-size: .86rem; }
.board-open { margin-top: .6rem; }
.inv-top { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; }
.inv-top p { margin: 0; }
.inv-top button { width: auto; margin: .3rem 0; }
.inv-state { font-size: 1rem; }
.inv-home { border: 1px solid var(--p-line); background: var(--p-card); padding: .7rem .9rem; margin: .6rem 0 1rem; }
.inv-home h3 { margin: 0 0 .4rem; font-size: 1rem; }
.inv-home ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.inv-home li { display: flex; flex-wrap: wrap; gap: .2rem .6rem; align-items: baseline; }
.inv-home .ih-state { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--p-muted); }
.inv-home .ih-state.live { color: var(--p-case); }
.inv-live { border-left: 3px solid var(--p-case); padding: .4rem .8rem; margin: .8rem 0; background: var(--p-card); }
.inv-live h3 { margin: 0 0 .3rem; font-size: 1rem; }
.inv-live ol { list-style: none; padding: 0; margin: 0; display: grid; gap: .25rem; }
.inv-live li.new { animation: inv-new 2.5s ease-out; }
@keyframes inv-new { from { background: var(--warnbg); } to { background: transparent; } }
.inv-now { font-weight: 600; margin: .2rem 0 .5rem; }
.inv-now::after { content: ""; display: inline-block; width: .6em; height: .6em; margin-left: .5em; border-radius: 50%; background: var(--p-case); animation: inv-pulse 1s ease-in-out infinite alternate; vertical-align: middle; }
@keyframes inv-pulse { from { opacity: .25; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .inv-live li.new, .inv-now::after { animation: none; } }
.inv-phases { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .3rem; }
.inv-phases li { padding: .45rem .7rem; border: 1px solid var(--p-line); background: var(--p-card); color: var(--p-muted); }
.inv-phases li.done { color: var(--p-ink); } .inv-phases li.done::before { content: "Done: "; font-weight: 700; }
.inv-phases li.now { color: var(--p-ink); border-color: var(--p-case); font-weight: 600; } .inv-phases li.now::before { content: "Now: "; }
.inv-sum, .inv-tasks { margin-top: 1rem; }
.inv-sum h3, .inv-tasks h3 { margin: 1rem 0 .4rem; font-size: 1rem; }
.inv-sum p { line-height: 1.5; margin: .35rem 0; }
.inv-ex .qh { font-family: inherit; font-size: .95rem; gap: .8rem; }
.inv-log summary::before { content: "+"; display: inline-block; width: 1.2rem; font-weight: 700; } .inv-log[open] summary::before { content: "−"; }
.inv-ex { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: .6rem; }
.inv-launch { max-width: 40rem; }
.inv-launch button, .inv-withdraw button, .inv-again button { width: auto; margin: .5rem .5rem 0 0; }
.inv-withdraw { margin-top: .25rem; }
.inv-est { display: grid; gap: .2rem; margin: .6rem 0; border-top: 1px solid var(--p-line); }
.inv-est div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--p-line); }
.inv-est span { color: var(--p-muted); } .inv-est b { text-align: right; }
.inv-log { margin-top: 1rem; } .inv-log summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.inv-log ol { padding-left: 1.2rem; font-size: .9rem; line-height: 1.5; } .inv-log li { margin: .3rem 0; }
@media (max-width: 760px) {
  .wall-panel { padding: .6rem; }
  .wall-grid { display: none; }
  .wall-cards { display: block; }
  .wall-q { grid-template-columns: 1fr; }
  .wall-head .wall-print { display: none; }
}
@media print {
  body * { visibility: hidden; }
  .wall, .wall * { visibility: visible; }
  .wall { position: absolute; left: 0; top: 0; width: 100%; border: 0; }
  .wall-panel[hidden] { display: block; }
  .wall-tabs, .wall-print, .wall-tools button, .wall-pop { display: none !important; }
  .wall-panel { break-after: page; }
  @page { size: A3 landscape; margin: 12mm; }
}
.tc { margin: .6rem 0 .2rem; }
.tc svg { display: block; overflow: visible; touch-action: pan-y; }
.tc-title { font-weight: 600; margin: 1rem 0 .3rem; }
.tc-grid { stroke: var(--line2); stroke-width: 1; }
.tc-base { stroke: var(--line); stroke-width: 1; }
.tc-limit { stroke: var(--muted); stroke-width: 1; }
.tc-tick { fill: var(--muted); font-size: 12px; font-family: inherit; }
.tc-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tc-line.s1 { stroke: var(--s1); } .tc-line.s2 { stroke: var(--s2); } .tc-line.s3 { stroke: var(--s3); }
.tc-dot { stroke: var(--surface); stroke-width: 2; }
.tc-guide { stroke: var(--muted); stroke-width: 1; }
.tc-bar { fill: var(--accent); }
.tc svg [tabindex]:focus:not(:focus-visible) { outline: none; } .tc-col:focus { outline: none; } .tc-col:focus .tc-bar { fill: var(--focus); }
.tc-words { margin-top: .5rem; color: var(--muted); }
.tc-words summary { cursor: pointer; padding: .7rem 0; color: var(--accent); }
.chart-tip { position: fixed; z-index: 50; max-width: min(22rem, calc(100vw - 16px)); padding: .45rem .6rem; border-radius: 6px; background: var(--fg); color: var(--surface); font-size: .85rem; line-height: 1.35; pointer-events: none; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.screen.costs .card { max-width: 44rem; }
.screen.about .card { max-width: 44rem; }
.screen.about .card p:not(.cap) { margin: .5rem 0; }
.screen-admin section { margin: 1.2rem 0; }
.screen-admin h3 { font-size: 1.05rem; margin-top: .4rem; }
@media (max-width: 899.98px) {
  .rail, .desk-only, button.desk-only { display: none; }
  .cc-map { height: calc(100vh - 25rem); height: calc(100dvh - 25rem); min-height: 18rem; } /* room for the timeline above the tab bar */
  .cc-time { padding-bottom: 4.5rem; } /* clear of the tab bar */
}
@media (min-width: 900px) {
  main.app { grid-template-rows: auto 1fr; }
  .app-bar { grid-template-columns: auto minmax(0, 1fr) auto; padding: 0 24px; height: 3.5rem; gap: 1.5rem; }
  .app-bar .brand { font-size: 1.1rem; }
  .app-bar .where { display: none; }
  .app-bar .marking-line { grid-column: 2; grid-row: 1; text-align: center; font-size: .72rem; letter-spacing: .08em; }
  .app-bar .who { font-size: .875rem; }
  .app-body { display: grid; grid-template-columns: 14.5rem minmax(0, 1fr); }
  .rail { display: flex; flex-direction: column; gap: .15rem; background: var(--surface); border-right: 1px solid var(--line); padding: 1rem .75rem; position: sticky; top: 3.5rem; align-self: start; height: calc(100vh - 3.5rem); height: calc(100dvh - 3.5rem); box-sizing: border-box; overflow-y: auto; }
  .rail button { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; margin: 0; padding: .55rem .9rem; border: 0; border-radius: 6px; background: transparent; color: var(--fg2); font-weight: 500; font-size: .95rem; }
  .rail button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .rail button:hover { background: var(--line2); color: var(--fg); }
  .rail button.on { background: var(--sel); color: var(--railon); font-weight: 600; box-shadow: inset 3px 0 0 var(--railon); }
  .rail button.rail-after-gap { margin-top: .6rem; position: relative; }
  .rail button.rail-after-gap::before { content: ""; position: absolute; left: .25rem; right: .25rem; top: -.35rem; border-top: 1px solid var(--line); }
  .rail .rail-admin { margin-top: auto; }
  .rail .rail-foot { font-size: .75rem; line-height: 1.4; color: var(--faint); padding: .8rem .9rem .2rem; }
  .tabbar { display: none; }
  .screen { padding: .6rem 32px 2rem; max-width: 56rem; margin: 0; }
  .screen.wide { max-width: none; }
  .scr-top { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 1rem; }
  .scr-top > .period { flex: none; }
  .scr-head { flex-direction: column; align-items: flex-start; gap: .2rem; min-width: 0; }
  .period { margin: 0; }
  .cc-map { height: calc(100vh - 13rem); height: calc(100dvh - 13rem); min-height: 26rem; }
  .assess-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen-admin input, .screen-admin select, .screen-admin textarea, .screen-admin .actions { max-width: 36rem; }
  .screen-admin button:not(.linkish):not(.chip):not(.link):not(.plain) { width: auto; min-width: 14rem; padding: .6rem 1.2rem; }
}
@media (min-width: 1200px) {
  .screen { padding: .8rem 40px 2rem; }
  .screen.brief { max-width: 72rem; }
  .screen.incidents { max-width: 76rem; }
  .screen.board { max-width: 90rem; }
  .screen.incident { max-width: 72rem; }
  .map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1rem; align-items: start; }
  details.map-list { margin-top: .4rem; }
  .brief-cols { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 1.25rem; align-items: start; }
  .brief-cols > div > section.card:first-child { margin-top: 0; }
  .det-cols { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); grid-template-areas: "top side" "rest actions"; gap: 0 1.25rem; align-items: start; }
  .det-top { grid-area: top; } .det-side { grid-area: side; } .det-rest { grid-area: rest; } .det-actions { grid-area: actions; }
}

/* The plain English redesign (1 Oct 2026): cards a reader can tap, large type, plain labels. */
.inc-card { display: flex; flex-direction: column; gap: .3rem; width: 100%; margin: 0 0 .75rem; padding: 1rem 1.1rem; text-align: left; background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; font-weight: 400; cursor: pointer; }
.inc-card:hover { border-color: var(--navy); }
.inc-card.dimmed { opacity: .7; }
.inc-card .ic-meta { font-size: .88rem; color: var(--muted); }
.inc-card .ic-title { font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--fg); }
.inc-card .ic-line { font-size: .95rem; color: var(--fg2); }
.inc-card .ic-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .15rem; }
.inc-card .ic-chips .tag { margin: 0; font-size: .85rem; padding: .15rem .6rem; border-radius: 999px; }
.tag.abroad { background: #e0e7ff; color: #312e81; border-color: #c7d2fe; }
@media (prefers-color-scheme: dark) { .tag.abroad { background: #1e1b4b; color: #c7d2fe; border-color: #3730a3; } }
.inc-month { font-size: 1rem; color: var(--muted); margin: 1.2rem 0 .5rem; }
.inc-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .inc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: .9rem; } }
.today-sum .lead { font-size: 1.2rem; line-height: 1.45; }
.today-block h3 { margin-top: .2rem; }
.card.quiet { background: var(--line2); }
.chg { margin: .5rem 0; }
.chg .linkish { font-weight: 700; }
details.full-brief { margin: 1.5rem 0 .5rem; }
details.full-brief > summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: .6rem 0; }
.foot-note { margin-top: 1.2rem; }
.det2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
@media (min-width: 900px) { .det2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } .det2-side { position: sticky; top: 1rem; } }
.det2-side .board-open { width: 100%; }
.glance .gl-row { display: flex; flex-direction: column; gap: .05rem; padding: .55rem 0; border-top: 1px solid var(--line2); }
.glance .gl-row:first-of-type { border-top: 0; }
.glance .gl-q { font-size: .88rem; color: var(--muted); }
.glance .gl-a { font-weight: 700; }
.glance .gl-why { font-size: .92rem; color: var(--fg2); }
section.changed { background: var(--warnbg); border: 2px solid var(--warnline); border-radius: 12px; padding: .9rem 1.1rem; }
section.changed h3 { margin: 0 0 .3rem; color: var(--warn); }
section.days .day { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--line); }
section.days .day-date { font-weight: 700; }
section.days .day-quote { margin: 0 0 .15rem; overflow-wrap: anywhere; }
section.leads { border: 2px dashed var(--warnline); }
section.leads .lead { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .5rem; }
section.leads .lead-text, .lead-preview .lead-text { white-space: pre-wrap; margin: 0 0 .2rem; }
.lead-preview { border: 2px dashed var(--warnline); border-radius: 10px; padding: .6rem .8rem; margin-top: .6rem; }
section.leads .lead button.linkish { display: block; margin: .2rem 0; }
section.bg[hidden] { display: none; }
section.bg .bg-item { border-top: 1px solid var(--line); padding-top: .5rem; margin-top: .5rem; }
section.bg .bg-when { font-weight: 700; margin: 0 0 .2rem; }
.wall-box.leads { border: 2px dashed #d97706; }
.wall-qc.lead-q { border-style: dashed; }
p.eng { margin: .35rem 0 .3rem; padding: .45rem .7rem; border-left: 4px solid var(--line); background: var(--panel, rgba(0,0,0,.03)); }
p.eng .eng-lab { display: block; font-size: .85rem; color: var(--muted); }
p.eng .eng-text { display: block; }
ol.src-list { margin: .2rem 0 .8rem; padding-left: 1.4rem; }
ol.src-list li { margin: .3rem 0; overflow-wrap: anywhere; }
details.why > summary, details.drawer > summary { cursor: pointer; font-weight: 700; }
details.drawer { margin-top: .9rem; border-radius: 10px; background: var(--navy); color: var(--navyfg); }
details.drawer > summary { padding: .85rem 1rem; }
details.drawer[open] { background: var(--surface); color: var(--fg); border: 2px solid var(--navy); }
details.drawer[open] > summary { background: var(--navy); color: var(--navyfg); border-radius: 8px 8px 0 0; }
details.drawer .drawer-body { padding: .2rem 1rem 1rem; }
/* ---------- The look (16 Oct 2026): shapes, surfaces and controls of the 9 Oct mock-ups. Later rules win over the ones above. ---------- */
h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; }
h2 { font-weight: 600; letter-spacing: -.015em; }
h3 { letter-spacing: -.01em; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
.cap { text-transform: none; letter-spacing: 0; font-size: .8125rem; font-weight: 500; color: var(--muted); }
button { border: 0; border-radius: 980px; min-height: 44px; padding: 0 1.25rem; background: var(--on); color: var(--onfg); font-weight: 500; }
@media (hover: hover) { button:not([class]):not(:is(.tabbar, .rail, .wall, .more-list, .map-bar, .map-zoom, .seg, .wall-tools) button):hover { background: var(--onhover); } button.danger:hover { filter: brightness(.94); } }
button.secondary { background: var(--btn2); color: var(--fg); border: 0; }
button.secondary:hover { background: var(--btn2hover); }
button.danger { background: var(--dangerbg); color: var(--dangerfg); }
button.plain, button.linkish, button.link, .rail button, .tabbar button, .more-list button, .sr-hit, .seg button.chip, button.tick, button.pin { min-height: 0; }
button.plain:hover, button.linkish:hover { background: none; }
button.linkish { text-decoration: none; font-weight: 500; }
button.linkish:hover { text-decoration: underline; }
button.link { border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); min-height: 44px; }
input, select, textarea { border: 1px solid var(--line); border-radius: 10px; min-height: 44px; }
textarea { min-height: 6rem; }
label.check input { min-height: 0; }
.card, .panel, .review, details.src-cat, .more-list, details.map-list, .sr-path { border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.card { padding: 1.35rem; margin: 1.25rem 0; }
.inc-card { border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.inc-card:hover { border-color: transparent; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 28px rgba(0, 0, 0, .08); }
.tile, .assess-grid > div { border: 0; border-radius: 14px; background: var(--line2); }
blockquote { border: 0; border-radius: 12px; background: var(--line2); }
.gj-card { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.card.quiet { background: var(--line2); box-shadow: none; }
section.changed { border: 1px solid var(--warnline); border-radius: 18px; }
.tag { height: auto; min-height: 1.5rem; border: 0; border-radius: 980px; padding: .15rem .65rem; background: var(--tagbg); font-weight: 500; letter-spacing: 0; }
.tag.alert, .tag.warn, .tag.ok { border: 0; }
button.chip { border: 0; border-radius: 980px; background: var(--btn2); color: var(--fg); font-weight: 500; min-height: 44px; }
button.chip:hover { background: var(--btn2hover); }
button.chip.on { background: var(--fg); color: var(--bg); }
.seg { border: 0; border-radius: 10px; padding: 2px; gap: 2px; background: var(--btn2); }
.seg button.chip { border: 0; border-radius: 8px; background: transparent; color: var(--fg); min-height: 44px; padding: .35rem .9rem; }
.seg button.chip:hover { background: transparent; }
.seg button.chip.on { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
details.how summary, details > summary { color: var(--accent); font-weight: 500; }
.app-bar { background: var(--bar); color: var(--fg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.app-bar .brand { color: var(--fg); font-weight: 600; letter-spacing: -.01em; }
.app-bar .where { color: var(--muted); }
.app-bar .who a { color: var(--accent); }
.app-bar .marking-line { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .75rem; color: var(--muted); }
.hd-search { border: 0; border-radius: 980px; background: var(--btn2); color: var(--fg); min-height: 44px; min-width: 44px; justify-content: center; padding: 0 .8rem; }
.hd-search.on, .hd-search:hover { background: var(--btn2hover); }
.assess-head { background: var(--line2); color: var(--fg); border-radius: 12px 12px 0 0; }
.assess-head .cap { color: var(--fg); }
.assess-head .assess-meta { color: var(--muted); }
details.drawer { border-radius: 18px; background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
details.drawer > summary { color: var(--accent); }
details.drawer[open] { border: 0; }
details.drawer[open] > summary { background: transparent; color: var(--accent); }
.tabbar { background: var(--bar); border-top: 1px solid var(--line); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); }
.tabbar button { color: var(--muted); font-weight: 500; }
.tabbar button.on { color: var(--accent); }
.more-list li { border-top: 1px solid var(--line2); }
.more-list button { font-weight: 500; }
.more-list button:hover { background: var(--line2); }
ol.judgements li::before { background: var(--num); color: var(--numfg); }
.screen-admin > section { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: 1.1rem 1.35rem 1.35rem; margin: 1.25rem 0; }
.screen-admin > section > h3:first-child, .screen-admin > section > h2:first-child { margin-top: 0; }
.wall { border: 0; border-radius: 18px; box-shadow: var(--shadow); }
.wall-seg { border: 0; border-radius: 10px; padding: 2px; gap: 2px; background: var(--btn2); }
.wall-seg button, .wall-tools .wall-seg button { border-radius: 8px; background: transparent; color: var(--fg); font-weight: 500; }
.wall-seg button[aria-pressed="true"] { background: var(--surface); color: var(--fg); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.wall-tools button, .wall-head .wall-print { border: 0; border-radius: 980px; background: var(--btn2); color: var(--fg); }
.wall-tools button:hover, .wall-head .wall-print:hover { background: var(--btn2hover); }
.wall-box, .wall-card, .wall-qc, .inv-home, .inv-phases li { border-radius: 14px; }
.wall-tabs button[aria-selected="true"] { color: var(--fg); font-weight: 600; border-bottom-color: var(--on); }
@media print { .wall { --p-bg: #fff; --p-card: #fff; --p-grid: #eeede6; --p-ink: #15181d; --p-ink2: #2b313b; --p-muted: #4a5260; --p-line: #d9d7ce; --p-case: #b3261e; --p-gap: #fbeae8; --p-gapink: #8c1d18; --p-head: #1d1d1f; --p-weak: #9aa0a8; --fg: #1d1d1f; --fg2: #424245; --muted: #636366; --accent: #0066cc; --line: #e5e5ea; --line2: #f0f0f2; --surface: #fff; --ok: #1d7a35; --okbg: #eaf7ee; --okline: #b5e3c3; --alert: #d70015; --alertbg: #fff1f0; --alertline: #ffc9c4; --warn: #b25000; --warnbg: #fff6e5; --warnline: #ffd9a3; box-shadow: none; } }
@media (min-width: 900px) {
  h1 { font-size: 2.125rem; }
  .rail { background: var(--side); border-right: 1px solid var(--line); }
  .rail button { border-radius: 9px; color: var(--fg); font-weight: 400; }
  .rail button:hover { background: var(--line2); }
  .rail button.on { background: var(--sel); color: var(--fg); font-weight: 600; box-shadow: none; }
  .screen { padding: 1.5rem 40px 4.5rem; }
}
@media (prefers-color-scheme: dark) { .inc-card:hover { box-shadow: none; outline: 1px solid var(--line); } .seg button.chip.on { box-shadow: none; } .card, .panel, .review, details.src-cat, .more-list, .inc-card, details.drawer, .gj-card, .screen-admin > section { outline: 1px solid var(--line2); } }
.tabbar.tabs3 { grid-template-columns: repeat(3, 1fr); }
