/* Boundary · Lab demo. Dark, single theme. Spacing scale 4/8/12/16/20/24/32/40. */
:root {
  color-scheme: dark;
  --bg: #0a0f18;
  --bg-2: #0d141f;
  --panel: #121a27;
  --panel-2: #172133;
  --panel-3: #1d2940;
  --line: #222d42;
  --line-2: #2f3d58;
  --text: #e8edf6;
  --text-2: #aab6c9;
  --text-3: #8592a8;
  --accent: #8fb3ff;
  --accent-2: #b7ceff;
  --accent-ink: #0b1730;
  --green: #6fdcaa;
  --amber: #f3c26b;
  --red: #ff9090;
  --teal: #62d2cb;
  --gray: #a3aec0;
  --series-allowed: #199e70;
  --series-review: #3987e5;
  --series-blocked: #d95926;
  --side-w: 252px;
  --top-h: 60px;
  --radius: 12px;
  --radius-sm: 8px;
  --ctl-h: 40px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
}
@media (max-width: 1023.98px), (pointer: coarse) { :root { --ctl-h: 44px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html:has(dialog[open]), html.nav-open { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
h1, h2, h3, h4, p { margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Shell ---------- */
.side {
  position: fixed;
  top: var(--lab-bar-h, 0px);
  left: 0;
  bottom: 0;
  width: var(--side-w);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 14px 16px;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.brand { display: flex; flex-direction: column; gap: 2px; }
.wordmark { font-size: 23px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.wordmark span { color: var(--accent); }
.brand small { color: var(--text-3); font-size: 12px; }
.side .side-close { display: none; }
.ws { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ws-mark { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: #24365a; color: var(--accent-2); font-weight: 700; font-size: 13px; flex: none; }
.ws b { display: block; font-size: 13.5px; }
.ws small { color: var(--text-3); font-size: 12px; }
.nav { display: flex; flex-direction: column; gap: 18px; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 0 10px 6px; color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  min-height: 40px; padding: 0 10px;
  border-radius: 8px;
  color: var(--text-2);
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a[aria-current="page"] { background: var(--panel-2); color: var(--text); border-color: var(--line-2); }
.nav a[aria-current="page"] svg { color: var(--accent); }
.nav .count { margin-left: auto; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--panel-3); color: var(--text-2); font-size: 11.5px; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.nav .count.hot { background: rgba(243, 194, 107, .16); color: var(--amber); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.me { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.me-av { width: 30px; height: 30px; border-radius: 50%; background: #2a3a5c; color: var(--accent-2); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.me b { display: block; font-size: 13px; }
.me small { color: var(--text-3); font-size: 12px; }
.side-note { padding: 0 6px; color: var(--text-3); font-size: 12px; line-height: 1.45; }

.main { margin-left: var(--side-w); min-width: 0; min-height: calc(100vh - var(--lab-bar-h, 0px)); display: flex; flex-direction: column; }
.top {
  position: sticky;
  top: var(--lab-bar-h, 0px);
  z-index: 20;
  height: var(--top-h);
  display: flex; align-items: center; gap: 12px;
  padding: 0 32px;
  background: rgba(10, 15, 24, .86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .menu-btn, .top-brand { display: none; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.crumbs b { color: var(--text); font-weight: 600; }
.crumbs .sep { opacity: .6; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.clock { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 18px; color: var(--text-2); font-size: 13px; background: var(--panel); white-space: nowrap; }
.clock b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.clock .plus { color: var(--amber); font-weight: 600; }

.page { width: 100%; max-width: 1600px; margin: 0 auto; padding: 28px 32px 40px; display: flex; flex-direction: column; gap: 24px; }
.foot { margin-top: auto; padding: 18px 32px 28px; color: var(--text-3); font-size: 12.5px; border-top: 1px solid var(--line); }
.foot-in { max-width: 1536px; margin: 0 auto; }

.scrim { display: none; }

/* ---------- Page header ---------- */
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.ph-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; max-width: 760px; }
.eyebrow { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ph h1 { font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -.025em; }
.ph p { color: var(--text-2); font-size: 15px; line-height: 1.55; }
.ph-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--ctl-h);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--text);
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .12s, border-color .12s, color .12s;
}
.btn:hover { background: var(--panel-3); border-color: #3c4d6d; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn.danger { color: var(--red); border-color: rgba(255, 144, 144, .35); background: rgba(255, 144, 144, .06); }
.btn.danger:hover { background: rgba(255, 144, 144, .12); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn.ghost:hover { background: var(--panel-2); color: var(--text); }
.btn.block { width: 100%; }
.icon-btn { min-width: var(--ctl-h); padding: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(143, 179, 255, .4); }
.link-btn:hover { text-decoration-color: currentColor; }
.ref { font-family: var(--mono); font-size: 12.5px; text-decoration: none; }
.ref:hover { text-decoration: underline; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span, .lbl { color: var(--text-2); font-size: 13px; font-weight: 500; }
.hint { color: var(--text-3); font-size: 12.5px; }
.input, select.input, textarea.input {
  width: 100%;
  min-height: var(--ctl-h);
  padding: 0 12px;
  background: #0c131f;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
}
select.input { padding-right: 34px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23aab6c9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m2 4.5 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; cursor: pointer; }
textarea.input { padding: 10px 12px; min-height: 96px; resize: vertical; line-height: 1.5; }
.input:hover { border-color: #3c4d6d; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(143, 179, 255, .18); }
.input.invalid { border-color: var(--red); }
.err { color: var(--red); font-size: 12.5px; }
.search { position: relative; flex: 1 1 240px; min-width: 0; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 38px; }

.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar .field { flex-direction: row; align-items: center; gap: 8px; }
.toolbar select.input { width: auto; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 36px; padding: 0 12px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-2);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
}
.chip:hover { background: var(--panel-2); color: var(--text); }
.chip[aria-pressed="true"] { background: rgba(143, 179, 255, .14); border-color: rgba(143, 179, 255, .55); color: var(--text); }
.chip .n { color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .n { color: var(--accent-2); }
@media (max-width: 1023.98px), (pointer: coarse) { .chip { min-height: 44px; padding: 0 14px; } }

.seg { display: inline-flex; padding: 3px; gap: 3px; background: #0c131f; border: 1px solid var(--line-2); border-radius: 10px; flex-wrap: wrap; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: calc(var(--ctl-h) - 8px); padding: 0 14px; border-radius: 7px; color: var(--text-2); font-weight: 600; font-size: 13px; }
.seg input:checked + span { background: var(--panel-3); color: var(--text); box-shadow: inset 0 0 0 1px #3c4d6d; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }

.switch { display: inline-flex; align-items: center; gap: 10px; min-height: var(--ctl-h); cursor: pointer; color: var(--text-2); font-size: 13px; font-weight: 500; user-select: none; }
.switch input { appearance: none; margin: 0; width: 38px; height: 22px; border-radius: 11px; background: #2a3650; border: 1px solid #3a4866; position: relative; cursor: pointer; flex: none; transition: background-color .15s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #cfd8e8; transition: transform .15s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(16px); background: var(--accent-ink); }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { appearance: none; margin: 2px 0 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #4a5a7a; background: #0c131f; flex: none; cursor: pointer; display: grid; place-items: center; }
.check input:checked { background: var(--green); border-color: var(--green); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #0b2a1d; border-top: 0; border-right: 0; transform: translate(0, -1px) rotate(-45deg); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]:checked { background: #0c131f; border-color: var(--accent); }
.check input[type="radio"]:checked::after { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--accent); transform: none; }
.check input:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Surfaces ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-h > div:first-child { min-width: 0; flex: 1 1 auto; }
.card-h > .btn, .card-h > .status { flex: none; }
.card.col { display: flex; flex-direction: column; }
.card-foot { margin-top: auto; padding-top: 20px; }
.card-h h2, .card h2 { font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.card-h p, .sub { color: var(--text-3); font-size: 13px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > .card-h { padding: 18px 20px 0; }
.sect-title { font-size: 13px; font-weight: 650; color: var(--text-2); letter-spacing: .02em; margin: 0 0 10px; }
.grid { display: grid; gap: 20px; min-width: 0; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12.5px; }

.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.kpi-l { color: var(--text-2); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.kpi-v { font-size: 28px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; overflow-wrap: anywhere; }
.kpi-s { color: var(--text-3); font-size: 12.5px; }
.kpi .dot { width: 8px; height: 8px; border-radius: 50%; }

.status { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid; --c: var(--gray); color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 32%, transparent); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-amber { --c: var(--amber); } .s-red { --c: var(--red); } .s-green { --c: var(--green); } .s-blue { --c: var(--accent); } .s-teal { --c: var(--teal); } .s-gray { --c: var(--gray); }
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--panel-3); color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; }
.tag.mono { font-size: 11.5px; }
.risk { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; white-space: nowrap; color: var(--text-2); }
.risk i { display: inline-flex; gap: 2px; }
.risk i b { width: 4px; height: 10px; border-radius: 1px; background: #33415c; }
.risk.r1 i b:nth-child(-n+1) { background: var(--green); }
.risk.r2 i b:nth-child(-n+2) { background: var(--amber); }
.risk.r3 i b:nth-child(-n+3) { background: #ffad6b; }
.risk.r4 i b { background: var(--red); }

.callout { display: flex; gap: 12px; padding: 12px 14px; border-radius: 10px; border: 1px solid; line-height: 1.5; --c: var(--accent); background: color-mix(in srgb, var(--c) 8%, transparent); border-color: color-mix(in srgb, var(--c) 28%, transparent); }
.callout > svg { color: var(--c); margin-top: 1px; }
.callout b { color: var(--text); }
.callout p { color: var(--text-2); }
.callout.amber { --c: var(--amber); } .callout.red { --c: var(--red); } .callout.green { --c: var(--green); } .callout.gray { --c: var(--gray); }
.callout .actions { margin-top: 10px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 0; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.facts div { background: var(--panel); padding: 10px 12px; min-width: 0; }
.facts dt { color: var(--text-3); font-size: 12px; margin-bottom: 2px; }
.facts dd { margin: 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }

.diff { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.diff th { text-align: left; color: var(--text-3); font-size: 12px; font-weight: 600; padding: 8px 12px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.diff td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; font-family: var(--mono); font-size: 12.5px; }
.diff tr:last-child td { border-bottom: 0; }
.diff th:first-child, .diff td.f { width: 26%; }
.diff td.f { color: var(--text-2); }
.diff td.was { color: #ffb4b4; background: rgba(255, 144, 144, .06); text-decoration: line-through; text-decoration-color: rgba(255, 144, 144, .5); }
.diff td.now { color: #aaf0cf; background: rgba(111, 220, 170, .06); }
.diff td.was.is-none, .diff td.now.is-none { text-decoration: none; color: var(--text-3); }

/* On narrow screens each change stacks: field name, then current and proposed side by side. */
.diff-wrap { container-type: inline-size; }
@container (max-width: 460px) {
  .diff thead { display: none; }
  .diff, .diff tbody { display: block; }
  .diff tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
  .diff tr:last-child { border-bottom: 0; }
  .diff td { border-bottom: 0; overflow-wrap: break-word; }
  .diff td.f { grid-column: 1 / -1; width: auto; padding-bottom: 2px; color: var(--text-2); }
  .diff td.was::before, .diff td.now::before { display: inline-block; width: 100%; margin-bottom: 2px; font: 600 11px var(--sans); letter-spacing: .02em; color: var(--text-3); }
  .diff td.was::before { content: "Current"; }
  .diff td.now::before { content: "Proposed"; }
}
pre.code { margin: 0; padding: 14px; background: #0b111c; border: 1px solid var(--line); border-radius: 10px; font: 12.5px/1.65 var(--mono); color: #cfd9ea; white-space: pre-wrap; overflow-wrap: anywhere; }
details.raw summary { cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 13px; min-height: 36px; display: flex; align-items: center; gap: 8px; list-style: none; }
details.raw summary::-webkit-details-marker { display: none; }
details.raw summary::before { content: "›"; display: inline-block; transition: transform .15s; font-size: 16px; color: var(--text-3); }
details.raw[open] summary::before { transform: rotate(90deg); }
details.raw pre { margin-top: 8px; }

.hash { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #0b111c; border: 1px dashed #3a4a68; border-radius: 10px; font: 12.5px var(--mono); color: var(--accent-2); overflow-wrap: anywhere; min-width: 0; }
.hash svg { color: var(--text-3); }
.binding { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bind { padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bind b { font-size: 13px; display: flex; align-items: center; gap: 6px; }
.bind b svg { color: var(--accent); width: 16px; height: 16px; }
.bind span { color: var(--text-3); font-size: 12.5px; line-height: 1.45; }

.bar { height: 6px; border-radius: 3px; background: #223049; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .4s; }
.bar.green i { background: var(--green); } .bar.amber i { background: var(--amber); } .bar.red i { background: var(--red); }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 40px 20px; color: var(--text-2); }
.empty .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--text-3); }
.empty b { color: var(--text); font-size: 15px; }
.empty p { max-width: 380px; font-size: 13.5px; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; padding-bottom: 0; }
.li:first-child { padding-top: 0; }
.li-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.li-main b { font-weight: 600; font-size: 13.5px; }
.li-main span { color: var(--text-3); font-size: 12.5px; }
.li-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); color: var(--text-2); flex: none; }
.li-ico svg { width: 16px; height: 16px; }
.li-ico.ok { color: var(--green); background: rgba(111, 220, 170, .1); }
.li-ico.bad { color: var(--red); background: rgba(255, 144, 144, .1); }
.li-ico.warn { color: var(--amber); background: rgba(243, 194, 107, .1); }
.li-ico.blue { color: var(--accent); background: rgba(143, 179, 255, .1); }

/* ---------- Tables (become cards on phones) ---------- */
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; padding: 10px 16px; color: var(--text-3); font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--line); background: var(--bg-2); white-space: nowrap; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .018); }
.tbl .t-main { font-weight: 600; }
.tbl .t-sub { color: var(--text-3); font-size: 12.5px; }
.only-cards { display: none; }
.tbl td.right, .tbl th.right { text-align: right; }
/* Tables turn into cards when their own container is narrow (phones, tablets, and laptops with the sidebar). */
.tbl-wrap { container-type: inline-size; }
@container (max-width: 860px) {
  .tbl.cards thead { display: none; }
  .tbl.cards, .tbl.cards tbody { display: block; width: 100%; }
  .tbl.cards tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl.cards tbody tr:last-child { border-bottom: 0; }
  .tbl.cards td { padding: 5px 0; border: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: right; min-width: 0; }
  .tbl.cards td::before { content: attr(data-label); color: var(--text-3); font-size: 12.5px; text-align: left; flex: none; }
  .tbl.cards td.lead { grid-column: 1 / -1; order: -1; display: block; text-align: left; padding-bottom: 8px; }
  .tbl.cards td.lead::before { display: none; }
  .tbl.cards td.right { grid-column: 1 / -1; justify-content: flex-end; padding-top: 10px; }
  .tbl.cards td.right::before { display: none; }
  .tbl.cards td.hide-cards { display: none; }
  .tbl.cards td > div { min-width: 0; }
  .tbl.cards .only-cards { display: block; margin-top: 4px; }
  .tbl.cards tbody tr:hover td { background: none; }
  .tbl.cards .scopes { justify-content: flex-end; }
}
@container (max-width: 560px) {
  .tbl.cards tr { grid-template-columns: minmax(0, 1fr); }
  .tbl.cards td.right .btn { width: 100%; }
}


/* ---------- Requests ---------- */
.split { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); gap: 20px; align-items: start; }
.rq-list { display: flex; flex-direction: column; gap: 8px; }
.rq {
  display: flex; flex-direction: column; gap: 8px;
  width: 100%; text-align: left;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: border-color .12s, background-color .12s;
}
.rq:hover { background: var(--panel-2); border-color: var(--line-2); }
.rq[aria-current="true"] { border-color: rgba(143, 179, 255, .7); background: #152036; box-shadow: inset 3px 0 0 var(--accent); }
.rq-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rq-title { font-weight: 600; font-size: 14px; line-height: 1.35; }
.rq-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--text-3); font-size: 12.5px; }
.rq-meta .sep::before { content: "·"; }
.detail { position: sticky; top: calc(var(--lab-bar-h, 0px) + var(--top-h) + 20px); max-height: calc(100vh - var(--lab-bar-h, 0px) - var(--top-h) - 40px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #2f3d58 transparent; }
.rd { display: flex; flex-direction: column; gap: 18px; }
.rd-head { display: flex; flex-direction: column; gap: 8px; }
.rd-head h2 { font-size: 21px; line-height: 1.25; font-weight: 650; letter-spacing: -.015em; }
.grant { border: 1px solid rgba(143, 179, 255, .35); background: linear-gradient(180deg, rgba(143, 179, 255, .08), rgba(143, 179, 255, .02)); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.grant-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.countdown { font-size: 26px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.countdown small { font-size: 13px; color: var(--text-3); font-weight: 500; letter-spacing: 0; margin-left: 6px; }

/* ---------- Overview ---------- */
.chart-box { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .gl { stroke: #243049; stroke-width: 1; }
.chart .ax { fill: var(--text-3); font-size: 12px; font-family: var(--sans); }
.chart .tot { fill: var(--text-2); font-size: 12px; font-weight: 600; font-family: var(--sans); }
.chart .col { cursor: default; }
.chart .col rect.hit { fill: transparent; }
.chart .col:hover rect.hit, .chart .col:focus rect.hit { fill: rgba(255, 255, 255, .035); }
.chart .col:focus { outline: none; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 12.5px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }
.tip { position: absolute; pointer-events: none; z-index: 5; min-width: 170px; padding: 10px 12px; border-radius: 10px; background: #1f2b42; border: 1px solid #3a4a68; box-shadow: var(--shadow); font-size: 12.5px; display: none; }
.tip b { display: block; margin-bottom: 6px; font-size: 13px; }
.tip div { display: flex; align-items: center; gap: 8px; justify-content: space-between; color: var(--text-2); }
.tip div span { display: inline-flex; align-items: center; gap: 6px; }
.tip i { width: 8px; height: 8px; border-radius: 2px; }
.tip div em { font-style: normal; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) 36px; gap: 4px 10px; align-items: center; }
.hbar .lab { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar .val { font-size: 13px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.hbar .bar { grid-column: 1 / -1; margin-bottom: 8px; }

/* ---------- Policies ---------- */
.rules { display: flex; flex-direction: column; }
.rule { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.rule.off .rule-main { opacity: .55; }
.rule-pri { width: 28px; height: 28px; border-radius: 8px; background: var(--panel-3); color: var(--text-2); display: grid; place-items: center; font: 600 12.5px var(--mono); }
.rule-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.rule-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; }
.rule-when { color: var(--text-2); font-size: 13px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rule-when .nw { white-space: nowrap; }
.rule-when .dotsep { color: var(--text-3); }
.rule-when code { font: 12px var(--mono); background: #0b111c; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; color: var(--accent-2); }
.rule-stat { color: var(--text-3); font-size: 12.5px; }
.rule-ctrl { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rc-main, .rc-order { display: flex; align-items: center; gap: 8px; }
.rc-order { gap: 2px; }
.rule-ctrl select.input { width: 172px; }
.rule.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: rgba(143, 179, 255, .16); } to { background: transparent; } }
.rule-default { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; background: var(--bg-2); }
.trace { display: flex; flex-direction: column; gap: 6px; }
.trace div { display: flex; gap: 10px; align-items: baseline; font-size: 13px; color: var(--text-3); }
.trace div.hit { color: var(--text); }
.trace .mono { width: 26px; flex: none; }
.result { padding: 16px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; }
.result-v { font-size: 20px; font-weight: 650; display: flex; align-items: center; gap: 10px; }
.radio-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.radio-cards label { position: relative; }
.radio-cards input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-cards span { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; min-height: 60px; border: 1px solid var(--line-2); border-radius: 10px; font-weight: 600; font-size: 13.5px; }
.radio-cards span small { color: var(--text-3); font-weight: 400; font-size: 12px; }
.radio-cards input:checked + span { border-color: var(--accent); background: rgba(143, 179, 255, .1); }
.radio-cards input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Agents ---------- */
.agents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.add-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 220px; border-style: dashed; border-color: var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; font-size: 13.5px; }
.add-card:hover { background: var(--panel); border-color: #3c4d6d; color: var(--text); }
.add-card .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--accent); }
.add-card b { color: var(--text); font-size: 15px; }
.add-card span:last-child { max-width: 260px; color: var(--text-3); }
@media (max-width: 1099.98px) { .agents { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agent { display: flex; flex-direction: column; gap: 14px; }
.agent-h { display: flex; gap: 12px; align-items: center; }
.av { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; color: #0b1322; }
.agent-h b { display: block; font-size: 15px; }
.agent-h small { color: var(--text-3); font-size: 12.5px; }
.agent.paused .av { filter: grayscale(1) brightness(.7); }
.scopes { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mini-stats div { background: var(--panel); padding: 8px 10px; }
.mini-stats b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.mini-stats span { color: var(--text-3); font-size: 12px; }
.agent-f { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; flex-wrap: wrap; }

/* ---------- Launch / incidents / handover ---------- */
.gate { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 12px; border: 1px solid; --c: var(--red); background: color-mix(in srgb, var(--c) 9%, transparent); border-color: color-mix(in srgb, var(--c) 35%, transparent); flex-wrap: wrap; }
.gate .gi { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 18%, transparent); color: var(--c); flex: none; }
.gate b { display: block; font-size: 16px; }
.gate p { color: var(--text-2); font-size: 13.5px; }
.gate.amber { --c: var(--amber); } .gate.green { --c: var(--green); }
.findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.finding { display: flex; flex-direction: column; gap: 10px; }
.finding h3 { font-size: 15.5px; line-height: 1.35; }
.finding p { color: var(--text-2); font-size: 13.5px; }
.finding .actions { margin-top: auto; padding-top: 4px; }
.sev { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.sev.critical { background: rgba(255, 144, 144, .16); color: #ffb0b0; }
.sev.high { background: rgba(255, 173, 107, .15); color: #ffc08f; }
.sev.medium { background: rgba(243, 194, 107, .14); color: var(--amber); }
.sev.low { background: rgba(163, 174, 192, .14); color: var(--gray); }
.sev.fixed { background: rgba(111, 220, 170, .14); color: var(--green); }
.run { display: flex; flex-direction: column; gap: 10px; }
.run .bar { height: 8px; }

.cases { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.case { text-align: left; display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); cursor: pointer; min-width: 0; }
.case:hover { background: var(--panel-2); }
.case[aria-current="true"] { border-color: rgba(143, 179, 255, .7); box-shadow: inset 3px 0 0 var(--accent); background: #152036; }
.case b { font-size: 14px; line-height: 1.35; }
.case .row { gap: 8px; }
.timeline { position: relative; display: flex; flex-direction: column; gap: 0; }
.ev { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; padding-bottom: 18px; }
.ev:last-child { padding-bottom: 0; }
.ev::before { content: ""; position: absolute; left: 77px; top: 18px; bottom: -2px; width: 1px; background: var(--line-2); }
.ev:last-child::before { display: none; }
.ev time { white-space: nowrap; color: var(--text-3); font-size: 12.5px; font-variant-numeric: tabular-nums; padding-top: 1px; text-align: right; }
.ev-body { position: relative; padding-left: 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-body::before { content: ""; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--panel); border: 2px solid var(--c, #6b7a96); }
.ev-body b { font-size: 13.5px; }
.ev-body p { color: var(--text-2); font-size: 13px; }
.ev-body .row { gap: 6px; margin-top: 2px; }
.ev.tone-boundary .ev-body { --c: var(--accent); }
.ev.tone-risk .ev-body { --c: var(--amber); }
.ev.tone-ok .ev-body { --c: var(--green); }
.brief p + p { margin-top: 8px; }
.brief p { color: var(--text-2); font-size: 13.5px; line-height: 1.6; }

.tasks { display: flex; flex-direction: column; }
.task { display: flex; flex-direction: column; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.task:first-child { padding-top: 0; }
.task:last-child { border-bottom: 0; padding-bottom: 0; }
.task .check b { display: block; font-size: 14px; }
.task .check p { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.task-f { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px; padding-left: 32px; }
.task.done .check b { color: var(--text-2); }
.report-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.report-row:last-child { border-bottom: 0; }
.ring { --p: 0; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--green) calc(var(--p) * 1%), #223049 0); flex: none; }
.ring b { width: 50px; height: 50px; border-radius: 50%; background: var(--panel); display: grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; }

/* ---------- Dialogs: drawers and modals sit in the top layer, above the lab banner ---------- */
dialog { color: var(--text); padding: 0; border: 0; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgba(3, 6, 12, .66); backdrop-filter: blur(2px); }
.drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100%; width: min(600px, 100vw); }
.drawer[open] { animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(32px); opacity: .4; } to { transform: none; opacity: 1; } }
.dlg { height: 100%; display: flex; flex-direction: column; background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); }
.dlg-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 22px; border-bottom: 1px solid var(--line); min-height: 64px; }
.dlg-h h2 { font-size: 15px; font-weight: 650; }
.dlg-h .eyebrow { font-size: 11.5px; }
.dlg-b { flex: 1; overflow-y: auto; padding: 22px; display: flex; flex-direction: column; gap: 18px; overscroll-behavior: contain; }
.dlg-b > *, .rd > * { flex-shrink: 0; }
.dlg-f { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-2); }
.modal { margin: auto; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); }
.modal[open] { animation: pop .18s ease-out; }
@keyframes pop { from { transform: translateY(8px) scale(.985); opacity: .5; } to { transform: none; opacity: 1; } }
.modal .dlg { height: auto; max-height: calc(100vh - 32px); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.modal .dlg-b { gap: 16px; }
.demo-note { display: flex; gap: 8px; align-items: center; color: var(--text-3); font-size: 12.5px; }
.list + .demo-note { margin-top: 14px; }
.demo-note svg { width: 15px; height: 15px; }

#toast { pointer-events: none; position: fixed; inset: auto 24px 24px auto; margin: 0; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 10px; border: 1px solid rgba(111, 220, 170, .4); background: #12261f; color: #d5f7e7; box-shadow: var(--shadow); font-size: 13.5px; line-height: 1.45; display: none; align-items: flex-start; gap: 10px; }
#toast.show { display: flex; }
#toast.warn { border-color: rgba(243, 194, 107, .45); background: #2a2212; color: #fbe6bd; }
#toast svg { margin-top: 1px; }

/* ---------- Responsive ---------- */
@media (max-width: 1099.98px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .ov-row > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 1279.98px) {
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split .detail { display: none; }
}
@media (min-width: 1280px) {
  .ov-main { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .pol-grid { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .pol-grid .tester { position: sticky; top: calc(var(--lab-bar-h, 0px) + var(--top-h) + 20px); }
  .inc-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
  .ho-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
  .ho-grid .ho-side { position: sticky; top: calc(var(--lab-bar-h, 0px) + var(--top-h) + 20px); }
}
@media (max-width: 1023.98px) {
  .side {
    z-index: 44;
    width: min(304px, 86vw);
    transform: translateX(-104%);
    visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
    box-shadow: var(--shadow);
  }
  html.nav-open .side { transform: none; visibility: visible; transition: transform .22s ease; }
  .side .side-close { display: inline-flex; }
  .scrim { display: block; position: fixed; inset: var(--lab-bar-h, 0px) 0 0 0; z-index: 43; background: rgba(3, 6, 12, .6); opacity: 0; pointer-events: none; transition: opacity .2s; }
  html.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .main { margin-left: 0; }
  .top { padding: 0 16px 0 8px; gap: 8px; }
  .top .menu-btn { display: inline-flex; }
  .top-brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
  .top-brand .wordmark { font-size: 20px; }
  .top-brand span.pg { color: var(--text-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .crumbs { display: none; }
  .page { padding: 24px 24px 32px; }
  .foot { padding: 16px 24px 24px; }
  .g-3, .ov-row { grid-template-columns: minmax(0, 1fr); }
  .cases { grid-template-columns: minmax(0, 1fr); }
  .span-2 { grid-column: auto; }
}
@media (max-width: 759.98px) {
  .top .clock, .top .top-skip { display: none; }
  .g-2, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .g-4.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi-v { font-size: 22px; }
  .page { padding: 20px 16px 28px; gap: 20px; }
  .foot { padding: 16px; }
  .ph h1 { font-size: 24px; }
  .ph p { font-size: 14px; }
  .ph-actions { width: 100%; }
  .ph-actions .btn { flex: 1 1 auto; }
  .card { padding: 16px; }
  .card.flush > .card-h { padding: 16px 16px 0; }
  .binding { grid-template-columns: minmax(0, 1fr); }
  .rule { grid-template-columns: 28px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .rule-ctrl { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .rc-main { flex: 1 1 100%; }
  .rule-ctrl select.input { flex: 1 1 auto; width: auto; min-width: 0; }
  .rc-order { margin-left: -10px; }
  .rule-default { padding: 16px; }
  .radio-cards { grid-template-columns: minmax(0, 1fr); }
  .task-f { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .toolbar > * { flex: 1 1 100%; }
  .toolbar .field select.input { flex: 1; }
  .agents, .findings { grid-template-columns: minmax(0, 1fr); }
  .dlg-h { padding-left: 16px; }
  .dlg-b { padding: 18px 16px; }
  .dlg-f { padding: 12px 16px; }
  .dlg-f .btn { flex: 1 1 auto; }
  .modal { width: calc(100vw - 24px); }
  #toast { inset: auto 12px 12px 12px; max-width: none; }
  .ev { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .ev time { font-size: 12px; }
  .case-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .case-actions .btn { width: 100%; white-space: normal; text-align: center; padding: 6px 10px; }
  .ev::before { left: 67px; }
  .countdown { font-size: 22px; }
}
@media (max-width: 1023.98px), (pointer: coarse) {
  .nav a { min-height: 44px; }
  details.raw summary { min-height: 44px; }
  .seg span { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
