:root {
  --navy: #091d34; --green: #61cc2f; --bg: #f5f7fa; --panel: #ffffff; --fg: #14202e; --muted: #5b6b7d; --line: #dfe5ec;
  --ok: #2f8f1a; --bad: #c0392b; --warn: #b7791f; --info: #2563eb; --gray: #94a3b8;
  --radius: 8px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1522; --panel: #111f31; --fg: #e5ecf3; --muted: #9fb0c3; --line: #22354b; --ok: #6fd35a; --bad: #f07167; --warn: #f2b84b; --info: #7aa7ff; --gray: #5f7187; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 var(--font); }
a { color: var(--info); }
h1 { font-size: 1.6rem; margin: 0 0 .25rem; font-weight: 600; }
h2 { font-size: 1.15rem; margin: 0 0 .5rem; font-weight: 600; }
h3 { font-size: 1rem; margin: 0 0 .4rem; font-weight: 600; }
.sub { color: var(--muted); margin: 0 0 1rem; font-size: .9rem; }
.top { background: var(--navy); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; padding: .6rem 16px; }
.brand { font-weight: 700; color: #fff; text-decoration: none; letter-spacing: .02em; margin-right: .75rem; }
.brand span { color: var(--green); }
.nav { display: flex; flex-wrap: wrap; gap: .1rem .25rem; flex: 1; }
.nav a { color: #d6e2ee; text-decoration: none; padding: .3rem .55rem; border-radius: 6px; }
.nav a.on, .nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.who { display: flex; align-items: center; gap: .5rem; color: #c3d2e1; font-size: .85rem; }
.who button { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 6px; padding: .2rem .6rem; cursor: pointer; font: inherit; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 1.25rem 16px; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); margin-bottom: 1rem; }
.tiles { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); margin-bottom: 1rem; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; min-width: 0; }
.tile .num { font-size: 2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile .lbl { color: var(--muted); font-size: .82rem; }
.ok { color: var(--ok); } .bad { color: var(--bad); } .warn { color: var(--warn); } .info { color: var(--info); } .muted { color: var(--muted); }
.pill { display: inline-block; padding: 0 .45rem; border: 1px solid currentColor; border-radius: 999px; font-size: .78rem; white-space: nowrap; }
.scroll { overflow: auto; max-height: 40rem; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
th { text-align: left; color: var(--muted); font-weight: 600; padding: .4rem .55rem; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; white-space: nowrap; }
td { padding: .4rem .55rem; border-bottom: 1px solid var(--line); vertical-align: top; }
td.n, th.n { text-align: right; }
tr.sel td { background: rgba(97, 204, 47, .12); }
.filters { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .75rem; }
.filters a.chip { text-decoration: none; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: .15rem .65rem; font-size: .82rem; background: var(--bg); }
.filters a.chip.on { border-color: var(--fg); font-weight: 600; }
form.inline { display: inline; margin: 0; }
label { display: block; font-size: .85rem; color: var(--muted); margin: .6rem 0 .2rem; }
input[type=text], input[type=email], input[type=password], input[type=search], select {
  font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: .45rem .6rem; width: 100%; max-width: 26rem;
}
input.code { font-size: 1.4rem; letter-spacing: .3em; max-width: 12rem; text-align: center; }
.btn, button.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--navy); color: #fff; border: 0; border-radius: 6px; padding: .5rem 1rem; cursor: pointer; text-decoration: none; margin-top: .75rem; }
.btn.small { padding: .2rem .55rem; font-size: .8rem; margin: 0; font-weight: 500; }
.btn.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.alert { border-radius: 6px; padding: .6rem .8rem; margin: .5rem 0 1rem; border: 1px solid; }
.alert.err { color: var(--bad); background: rgba(192,57,43,.08); }
.alert.note { color: var(--ok); background: rgba(47,143,26,.08); }
.narrow { max-width: 30rem; margin: 3rem auto; }
.codes { font: 1.05rem/1.9 ui-monospace, SFMono-Regular, Menlo, monospace; columns: 2; background: var(--bg); padding: .75rem 1rem; border-radius: 6px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; }
.qr { background: #fff; padding: .5rem; border-radius: 6px; width: 200px; height: 200px; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; font-size: .88rem; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
svg.bar { width: 100%; height: 14px; display: block; }
svg.bar rect { rx: 3; }
.f-Pass, .f-Re-verified { fill: var(--ok); } .f-Fail, .f-Open { fill: var(--bad); } .f-Not-checked, .f-In-progress { fill: var(--warn); }
.f-Fixed { fill: var(--info); } .f-N-A, .f-Not-recorded, .f-Approved, .f-Deferred { fill: var(--gray); }
.sw { display: inline-block; width: .65rem; height: .65rem; border-radius: 2px; margin-right: .3rem; vertical-align: middle; }
.s-Pass, .s-Re-verified { background: var(--ok); } .s-Fail, .s-Open { background: var(--bad); } .s-Not-checked, .s-In-progress { background: var(--warn); }
.s-Fixed { background: var(--info); } .s-N-A, .s-Not-recorded, .s-Approved, .s-Deferred { background: var(--gray); }
.legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .8rem; color: var(--muted); margin: .25rem 0 .6rem; }
.secrow { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr 2.5rem; gap: .6rem; align-items: center; font-size: .82rem; margin: .3rem 0; }
.secrow a { color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot { color: var(--muted); font-size: .78rem; padding: 2rem 16px; text-align: center; }
pre.note { white-space: pre-wrap; font: inherit; margin: 0; }
@media (max-width: 640px) { .secrow { grid-template-columns: 7rem 1fr 2rem; } .hide-sm { display: none; } }
.who a { color: #fff; }
a.card { text-decoration: none; color: inherit; }
td:first-child, td.nw { white-space: nowrap; }
.syncline form { margin-left: .4rem; }
fieldset.choices { border: 1px solid var(--line); border-radius: 6px; padding: .4rem .8rem .6rem; margin: .6rem 0 0; max-width: 40rem; }
fieldset.choices legend { color: var(--muted); font-size: .85rem; padding: 0 .3rem; }
label.check { display: block; color: var(--fg); font-size: .9rem; margin: .25rem 0; }
.alert.progress { color: var(--fg); background: var(--panel); }
label.check.inline { display: inline-block; margin: 0 .6rem 0 0; font-size: .82rem; }
td input[type=text] { max-width: 18rem; padding: .25rem .4rem; font-size: .86rem; }
