:root {
  --blue: #005eb8;
  --blue-600: #004f9c;
  --blue-700: #00417f;
  --blue-50: #eef5fc;
  --blue-100: #dbe9f7;
  --ink: #18212b;
  --ink-2: #4a5562;
  --muted: #7a8592;
  --line: #e2e7ed;
  --line-2: #cfd7e0;
  --surface: #ffffff;
  --plane: #f6f8fb;
  --pass: #0a7d0a;
  --pass-bg: #e9f6e9;
  --fail: #c42b2b;
  --fail-bg: #fdeeee;
  --warn: #8a5800;
  --warn-bg: #fff5df;
  --warn-line: #f0d08a;
  --gf: #eb6834;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 34, 56, .06), 0 4px 16px rgba(16, 34, 56, .06);
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 15px/1.5 var(--font);
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 600; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(0, 94, 184, .35); outline-offset: 2px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  background: var(--blue);
  color: #fff;
}
.top-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 16px;
  height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand .mark { width: 32px; height: 32px; border-radius: 8px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; }
.brand .mark svg { width: 22px; height: 22px; }
.brand-txt { font-weight: 650; font-size: 15px; line-height: 1.1; display: flex; flex-direction: column; }
.brand-txt small { font-weight: 400; font-size: 12px; opacity: .8; }

.steps { display: flex; gap: 4px; }
.steps a {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 99px;
  color: rgba(255, 255, 255, .72); text-decoration: none; font-size: 13.5px; font-weight: 500;
  transition: background .2s, color .2s;
}
.steps a[href]:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.steps a[aria-disabled] { cursor: default; opacity: .6; }
.steps .n {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 650; border: 1.5px solid rgba(255, 255, 255, .5);
}
.steps a.on { background: #fff; color: var(--blue); }
.steps a.on .n { background: var(--blue); color: #fff; border-color: var(--blue); }
.steps a.done .n { background: rgba(255, 255, 255, .22); border-color: transparent; color: #fff; }

/* ---------- Layout ---------- */
main { max-width: 1080px; margin: 0 auto; padding: 28px 16px 120px; min-height: 70vh; }
/* animate the children, not .view itself: a transformed parent would drag the fixed action bar with it */
.view.enter > :not(.actionbar) { animation: rise .28s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .view.enter > * { animation: none; } * { transition: none !important; } }

.foot { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; color: var(--muted); font-size: 12.5px; }
.foot p { border-top: 1px solid var(--line); padding-top: 16px; margin: 0; }

.eyebrow { margin: 0 0 4px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.muted { color: var(--muted); }
.opt { color: var(--muted); font-size: 13px; font-weight: 400; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); text-decoration: none; font-size: 13.5px; margin-bottom: 14px; }
.back svg { width: 16px; height: 16px; }
.back:hover { color: var(--blue); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: var(--blue-600); }
.btn.primary:disabled { background: #a9c3dd; cursor: not-allowed; transform: none; }
.btn.ghost { background: #fff; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn.warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.btn.warn:hover { background: #ffecc0; }
.btn.small { height: 32px; padding: 0 12px; font-size: 13px; }
.icon-btn { border: 0; background: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--fail-bg); color: var(--fail); }

/* ---------- Home ---------- */
.intro p { color: var(--ink-2); margin: 8px 0 0; max-width: 620px; }
.search { margin: 22px 0 26px; }
.search input[type=search] {
  width: 100%; height: 50px; padding: 0 16px 0 44px; border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='8.5' cy='8.5' r='5.5' fill='none' stroke='%237a8592' stroke-width='1.8'/%3E%3Cpath d='M13 13l4 4' stroke='%237a8592' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") 15px 50% / 18px no-repeat;
  font-size: 15.5px; transition: border-color .15s, box-shadow .15s;
}
.search input[type=search]:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 94, 184, .12); }

.recent { margin-bottom: 28px; }
.recent h2, .group h2 { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.recent ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.recent li { display: flex; align-items: center; border-top: 1px solid var(--line); }
.recent li:first-child { border-top: 0; }
.recent li a { flex: 1; display: flex; gap: 12px; align-items: baseline; padding: 12px 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.recent li a span { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent li a:hover { background: var(--plane); }
.recent li .icon-btn { margin-right: 8px; }

.group { margin-bottom: 26px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 3px; padding: 16px 40px 16px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none;
  transition: border-color .15s, box-shadow .2s, transform .2s;
}
a.card:hover { border-color: var(--blue); box-shadow: var(--shadow); transform: translateY(-1px); }
a.card:hover .c-go { color: var(--blue); transform: translate(2px, -50%); }
.c-name { font-weight: 600; font-size: 15px; }
.c-sub { font-size: 13px; color: var(--muted); }
.c-go { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--line-2); transition: transform .2s, color .2s; }
.c-go svg { width: 18px; height: 18px; }
.card.off { border-style: dashed; background: var(--plane); }
.card.off .c-name { color: var(--ink-2); }
.empty { color: var(--muted); }
.import { margin-top: 8px; }
.import label { cursor: pointer; }

/* ---------- Forms ---------- */
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.sources { display: flex; flex-wrap: wrap; gap: 6px; }
.sources a {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 99px;
  background: var(--blue-50); color: var(--blue-700); font-size: 12px; font-weight: 600; text-decoration: none;
}
.sources a svg { width: 13px; height: 13px; }
.sources a:hover { background: var(--blue-100); }

.panel { border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin: 0 0 16px; background: #fff; }
.panel > h2 { margin-bottom: 14px; }
.panel-sub { color: var(--ink-2); font-size: 13.5px; margin: -8px 0 14px; }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
details.panel > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 12px; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary h2::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 10px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
details.panel[open] > summary h2::after { transform: translateY(0) rotate(-135deg); }
details.panel[open] > summary { margin-bottom: 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 16px; align-items: start; }
.grid.two { grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.wide { grid-column: 1 / -1; margin-top: 14px; }
.field.span2 { grid-column: span 2; }
.lbl { font-size: 12.5px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.lbl .src { font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; margin-left: auto; }
.lbl .src:hover { color: var(--blue); }
.hint { font-size: 12.5px; color: var(--muted); min-height: 1em; }
.hint .bad { color: var(--fail); }
input[type=text], input[type=number], input[type=date], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line-2); border-radius: 8px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input[type=text], input[type=number], input[type=date], select { height: 40px; padding: 0 11px; }
textarea { padding: 9px 11px; resize: vertical; }
select {
  appearance: none; padding-right: 32px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' fill='none' stroke='%234a5562' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 10px center / 12px no-repeat;
}
input:hover, select:hover, textarea:hover { border-color: #b3bfcc; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 94, 184, .14); }
input::placeholder, textarea::placeholder { color: #a6afba; }

.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--plane); border: 1px solid var(--line); border-radius: 9px; flex-wrap: wrap; }
.seg button {
  border: 0; background: none; height: 32px; padding: 0 12px; border-radius: 6px; cursor: pointer;
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s, box-shadow .15s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked=true] { background: #fff; color: var(--blue); box-shadow: 0 1px 2px rgba(16, 34, 56, .12), 0 0 0 1px var(--line); }

.toggles { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.toggle { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle .track { flex: none; width: 36px; height: 21px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .18s; margin-top: 1px; }
.toggle .knob { position: absolute; top: 2.5px; left: 2.5px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .18s; }
.toggle input:checked + .track { background: var(--blue); }
.toggle input:checked + .track .knob { transform: translateX(15px); }
.toggle input:focus-visible + .track { outline: 3px solid rgba(0, 94, 184, .35); outline-offset: 2px; }
.t-lbl { display: block; font-weight: 500; font-size: 14px; }
.t-sub { display: block; font-size: 12.5px; color: var(--muted); }
.signoff .toggle { margin-top: 16px; }

.set-groups { display: grid; gap: 18px; }
.set-group h3 { font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }
.set-group + .set-group { padding-top: 16px; border-top: 1px solid var(--line); }

.adv { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.adv summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 0; }
.adv[open] summary { margin-bottom: 14px; }
.job-panel summary { flex-wrap: wrap; }

.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.ab-inner { max-width: 1080px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.ab-msg { color: var(--muted); font-size: 13.5px; }

/* ---------- Plan ---------- */
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.plan-head .meta { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.actions { display: flex; gap: 8px; }

.report-head { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px 18px; margin: 0 0 16px; padding: 14px 16px; background: var(--plane); border-radius: 12px; }
.report-head dt, .kv dt { font-size: 12px; color: var(--muted); }
.report-head dd, .kv dd { margin: 0; font-weight: 500; }

.tally { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.tally div { display: flex; align-items: baseline; gap: 6px; }
.tally b { font-size: 20px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tally span { color: var(--muted); font-size: 13px; }
.tally .t-pass b { color: var(--pass); }
.tally .t-fail b { color: var(--fail); }
.tally .bar { align-items: stretch; flex: 1 1 160px; height: 8px; border-radius: 99px; overflow: hidden; background: var(--plane); gap: 2px; display: flex; }
.tally .bar i { display: block; min-width: 0; }
.tally .bar .p { background: #0ca30c; }
.tally .bar .f { background: #d03b3b; }
.tally .bar .o { background: var(--line); }

.notices { display: grid; gap: 8px; margin-bottom: 16px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.notice.info { background: var(--blue-50); color: #17324d; }
.notice.info svg { color: var(--blue); }
.notice.warn { background: var(--warn-bg); color: #5a3a00; border: 1px solid var(--warn-line); }
.notice.warn svg { color: var(--warn); }

.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 18px; margin: 0; }

.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; padding: 9px 8px; border-radius: 8px; cursor: pointer; }
.checks label:hover { background: var(--plane); }
.checks input, .mini-check input { position: absolute; opacity: 0; pointer-events: none; }
.box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; transition: background .15s, border-color .15s, color .15s; margin-top: 1px; background: #fff; }
.box svg { width: 14px; height: 14px; }
input:checked + .box { background: var(--blue); border-color: var(--blue); color: #fff; }
input:focus-visible + .box { outline: 3px solid rgba(0, 94, 184, .35); outline-offset: 2px; }
.checks input:checked ~ span:last-child { color: var(--muted); }
.mini-check { display: inline-flex; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .c { text-align: center; width: 1%; white-space: nowrap; }
.tbl .use { display: block; }
.tbl.compact td { padding: 5px 8px; }
.tbl input.num { height: 36px; max-width: 150px; font-variant-numeric: tabular-nums; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
.sec-h h2 { font-size: 18px; }

.test { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; margin-bottom: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.test:focus-within { border-color: #a9c6e4; box-shadow: var(--shadow); }
.test.blocked { border-color: var(--warn-line); }
.t-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.t-num { width: 28px; height: 28px; border-radius: 8px; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 650; font-size: 13.5px; flex: none; }
.t-head h3 { font-size: 16px; font-weight: 650; }
.t-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.tag { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--plane); color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.tag.temp { background: var(--blue-50); color: var(--blue-700); }
.tag.over { background: var(--warn-bg); color: var(--warn); }
.tag.over-ok { background: var(--warn-bg); color: var(--warn); }
.tag.src:hover { color: var(--blue); }

.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 14px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts > div { background: #fff; padding: 10px 12px; }
.facts dt { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.facts small { display: block; font-weight: 400; font-size: 12.5px; color: var(--muted); }

.tset { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 9px 12px; border-radius: 9px; background: var(--blue-50); font-size: 13.5px; margin-bottom: 12px; color: #17324d; }
.tset > b:first-child { color: var(--blue-700); }
.limit { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 9px 12px; border-radius: 9px; background: var(--warn-bg); color: #5a3a00; font-size: 13.5px; margin-bottom: 12px; border: 1px solid var(--warn-line); }
.limit svg { width: 18px; height: 18px; color: var(--warn); flex: none; }
.limit span { flex: 1 1 240px; }
.method { margin: 0 0 8px; color: var(--ink-2); font-size: 14px; }
.t-notes { margin: 0 0 10px; padding-left: 18px; color: var(--ink-2); font-size: 13.5px; }
.results { margin-top: 4px; }
.results { table-layout: fixed; }
.results th:first-child { width: 72px; }
.results th:last-child { width: 96px; }
.results .pole { font-weight: 600; white-space: nowrap; }
.tbl.results input.num { width: 100%; min-width: 0; }
.adj { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }

.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px 3px 7px; border-radius: 99px; font-size: 12.5px; font-weight: 650; }
.badge svg { width: 13px; height: 13px; }
.badge.pass { background: var(--pass-bg); color: var(--pass); }
.badge.fail { background: var(--fail-bg); color: var(--fail); }
.badge.none { color: var(--line-2); padding: 3px 9px; }

.neta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.neta-grid h3 { margin-bottom: 10px; }
.neta-grid .panel-sub { margin: 8px 0 0; font-size: 12.5px; }
.neta-grid .grid { margin-bottom: 8px; }

.overall { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: var(--plane); color: var(--ink-2); }
.overall svg { width: 18px; height: 18px; flex: none; }
.overall.pass { background: var(--pass-bg); color: #0b4f0b; }
.overall.fail { background: var(--fail-bg); color: #7d1717; }

.srcline { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }
.srcline a { font-weight: 600; text-decoration: none; }

/* ---------- Chart ---------- */
.chart-sets { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.chart-sets button {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 6px 0 11px; border-radius: 99px;
  border: 1px solid var(--line-2); background: #fff; font-size: 12.5px; font-weight: 600; color: var(--ink-2); cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.chart-sets button span { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--plane); display: grid; place-items: center; font-size: 11px; }
.chart-sets button:hover { border-color: var(--blue); color: var(--blue); }
.chart-sets button[aria-selected=true] { background: var(--blue); border-color: var(--blue); color: #fff; }
.chart-sets button[aria-selected=true] span { background: rgba(255, 255, 255, .22); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.sw { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.sw-phase { background: rgba(0, 94, 184, .16); box-shadow: inset 0 0 0 2px var(--blue); }
.sw-gf { background: rgba(235, 104, 52, .12); box-shadow: inset 0 0 0 2px var(--gf); }
.sw-test { width: 2px; height: 12px; background: var(--ink); border-radius: 0; }
.sw-pass { width: 9px; height: 9px; border-radius: 50%; background: #0ca30c; }
.sw-fail { width: 10px; height: 10px; border-radius: 0; background: linear-gradient(45deg, transparent 42%, #d03b3b 42% 58%, transparent 58%), linear-gradient(-45deg, transparent 42%, #d03b3b 42% 58%, transparent 58%); }
.chart-wrap { position: relative; }
.chart-wrap svg { width: 100%; height: auto; touch-action: pan-y; }
.chart-wrap .g-major { stroke: #dfe4ea; stroke-width: 1; }
.chart-wrap .g-minor { stroke: #f0f2f5; stroke-width: 1; }
.chart-wrap .frame { fill: none; stroke: #c9d1da; }
.chart-wrap .tick { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-wrap .axis { font-size: 12px; fill: var(--ink-2); }
.band-phase { fill: rgba(0, 94, 184, .13); stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.band-gf { fill: rgba(235, 104, 52, .10); stroke: var(--gf); stroke-width: 2; stroke-linejoin: round; stroke-dasharray: 5 3; }
.xhair { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.hover-zone { fill: transparent; cursor: crosshair; }
.tmark .whisker { stroke: var(--ink); stroke-width: 2; }
.tmark .cap { stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.tmark .hit, .mpt .hit { fill: transparent; cursor: pointer; }
.mpt .dot { fill: #0ca30c; stroke: #fff; stroke-width: 2; }
.mpt .x { stroke: #d03b3b; stroke-width: 2.4; stroke-linecap: round; }
.tip {
  position: absolute; pointer-events: none; z-index: 5; min-width: 160px; max-width: 280px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; box-shadow: var(--shadow);
  padding: 8px 10px; font-size: 12.5px; color: var(--ink-2); line-height: 1.45;
}
.tip b { color: var(--ink); }
.tip .pass { color: var(--pass); }
.tip .fail { color: var(--fail); }

.noscript { max-width: 600px; margin: 40px auto; padding: 16px; }

/* ---------- Small screens ---------- */
@media (max-width: 760px) {
  h1 { font-size: 22px; }
  .steps .l { display: none; }
  .steps a { padding: 6px; }
  .brand-txt small { display: none; }
  main { padding-top: 20px; }
  .panel, .test { padding: 16px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neta-grid, .grid.two { grid-template-columns: 1fr; }
  .field.span2 { grid-column: auto; }
  .plan-head .actions { width: 100%; }
  .plan-head .actions .btn { flex: 1; }
  .t-tags { margin-left: 0; width: 100%; }
  .tally { gap: 14px; }
  .tbl input.num { max-width: none; }
  .results th:first-child { width: 48px; }
  .results th:last-child { width: 78px; }
  .results td, .results th { padding-left: 6px; padding-right: 6px; }
  .tbl.stack thead { display: none; }
  .tbl.stack tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name ok" "found ok" "use use"; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .tbl.stack tr:last-child { border-bottom: 0; }
  .tbl.stack td { border: 0; padding: 0; }
  .tbl.stack td:nth-child(1) { grid-area: name; font-weight: 600; }
  .tbl.stack td:nth-child(2) { grid-area: found; color: var(--muted); font-size: 13px; }
  .tbl.stack td:nth-child(2)::before { content: "As found "; }
  .tbl.stack td:nth-child(3) { grid-area: use; margin-top: 4px; }
  .tbl.stack td:nth-child(4) { grid-area: ok; align-self: center; }
  .ab-inner { justify-content: space-between; }
}

/* ---------- Print / PDF report ---------- */
@media print {
  @page { margin: 14mm 12mm; }
  body { font-size: 11.5px; }
  .top, .actionbar, .no-print, .back, .foot, .import, .search, .tip, .xhair, .hover-zone { display: none !important; }
  main { padding: 0; max-width: none; }
  .view.enter > * { animation: none; }
  h1 { font-size: 20px; }
  .panel, .test, .tally, .report-head { break-inside: avoid; box-shadow: none !important; }
  .panel, .test { padding: 12px 14px; margin-bottom: 10px; border-color: #ccd; }
  .tests .sec-h { margin-top: 12px; }
  details.panel:not([open]) { display: none; }
  details.panel > summary h2::after { display: none; }
  input[type=text], input[type=number], input[type=date], select, textarea, .tbl input.num { border: 0; box-shadow: none; padding: 0; height: auto; background: none; }
  input::placeholder, textarea::placeholder { color: transparent; }
  .box { border-color: #888; }
  .chart-panel { break-inside: avoid; }
  .chart-wrap svg { max-width: 150mm; margin: 0 auto; }
  .chart-sets button:not([aria-selected=true]), .chart-panel .opt { display: none; }
  .sec-h, .panel > h2 { break-after: avoid; }
  .tag.src { display: none; }
  a { color: inherit; text-decoration: none; }
}
