/* Regulus Cloud. A verification lab's control panel: near-black ground, hairline rules, 2px corners, no glow, no shadows on
   the page. Palette and type follow tenthlook.com/regulus (ground #080809, surface #0F0F12, rule #1F1F24, crimson #E11D48,
   Plus Jakarta Sans for labels and prose, system monospace for every hash, function name, proof result and counterexample).
   Status colours are muted and mean one thing each: emerald = proved, amber = unconfirmed, crimson = confirmed finding.
   Fonts are self-hosted (CSP font-src 'self'): Plus Jakarta Sans (OFL). */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 200 800; font-display: swap; src: url("/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #080809;
  --surface: #0f0f12;
  --raised: #141418;
  --active: #1b1b21;
  --border: #1f1f24;
  --rule: #17171b;
  --control: #33333c;
  --text: #f4f4f5;
  --muted: #9ca3af;
  --faint: #7f8794;
  --primary: #e11d48; --primary-ink: #ffffff;
  --brand-text: #ff5468;
  --hue: #4fa386;             /* chart ink: proof records are "proved" */
  --positive: #52a98b; --negative: #e5566f; --warning: #cda14e;
  --pill-positive-bg: transparent; --pill-positive-ink: #52a98b;
  --pill-negative-bg: transparent; --pill-negative-ink: #e5566f;
  --pill-warning-bg: transparent; --pill-warning-ink: #cda14e;
  --pill-neutral-bg: transparent; --pill-neutral-ink: #9ca3af;
  --chart-1: var(--hue); --chart-muted: #3a3a44; --grid: #1c1c21; --axis-ink: var(--faint); --ink: var(--text);

  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --fs-title: 22px; --fs-section: 15px; --fs-kpi: 22px; --fs-lead: 28px; --fs-body: 14px; --fs-small: 12px;

  --sidebar-width: 232px; --pad: 28px; --gap: 12px; --card-pad: 16px;
  --radius-card: 3px; --radius-control: 2px;
  --control-height: 32px; --row-height: 40px; --nav-row: 30px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --t-press: 120ms; --t-hover: 150ms; --t-ui: 200ms;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2.5 8 6l-3.5 3.5' fill='none' stroke='%23f4f4f5' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chevron-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%239ca3af' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-body)/20px var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--hue); outline-offset: 2px; border-radius: 4px; }
.num, table, .kpi-value { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-small); line-height: 16px; }
.stack > * + * { margin-top: var(--gap); }
.row-flex { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }

/* ---------- shell: open plane ---------- */
.app { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100svh; }
.sidebar { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 2px; padding: 20px 12px 16px; overflow: auto; border-right: 1px solid var(--border); }
.product { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; }
.product .mark { width: 24px; height: 24px; flex: none; color: var(--text); }
.product b { display: block; font-weight: 600; font-size: 14px; line-height: 18px; }
.product span { display: block; font-size: var(--fs-small); line-height: 16px; color: var(--faint); }
.scope-wrap { position: relative; margin-bottom: 14px; }
.scope { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 8px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--surface); }
.scope .initial { width: 22px; height: 22px; flex: none; border-radius: 5px; background: var(--active); display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.scope .who { min-width: 0; flex: 1; line-height: 16px; }
.scope .who b { display: block; font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scope .who span { display: block; font-size: var(--fs-small); color: var(--faint); }
.scope-wrap select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.group-label { margin: 18px 8px 6px; font-size: var(--fs-small); color: var(--faint); }
.nav-item { display: flex; align-items: center; gap: 10px; height: var(--nav-row); padding: 0 8px; border-radius: var(--radius-control); color: var(--muted); transition: background-color var(--t-hover) ease, color var(--t-hover) ease; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.nav-item svg { width: 16px; height: 16px; flex: none; }
.nav-item:hover { background: var(--raised); color: var(--text); }
.nav-item[aria-current="page"] { background: var(--active); color: var(--text); }
.nav-item .count { margin-left: auto; font-size: var(--fs-small); color: var(--text); font-variant-numeric: tabular-nums; }
.sidebar .bottom { margin-top: auto; padding-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.user { display: flex; align-items: center; gap: 10px; padding: 12px 8px 0; margin-top: 8px; border-top: 1px solid var(--border); }
.avatar { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #dfe7f6; color: #1f3d73; display: grid; place-items: center; font-size: 11px; font-weight: 600; }
.user .who { min-width: 0; flex: 1; overflow: hidden; font-size: 13px; line-height: 16px; }
.user .who b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user .who span { color: var(--faint); font-size: var(--fs-small); }
.canvas { min-width: 0; padding: 32px var(--pad) 48px; max-width: 1240px; width: 100%; }
.mobbar { display: none; }

.side-head { display: flex; align-items: flex-start; justify-content: space-between; }
.icon-btn.side-close { display: none; }
.sidebar > * { min-width: 0; }
.pane { min-width: 0; }
.modal button:not(.primary) { display: inline-flex; align-items: center; height: var(--control-height); padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); color: var(--text); font-weight: 500; cursor: pointer; }
.modal pre.code + button, .stack > button:not(.primary) { display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); cursor: pointer; }

/* ---------- title row ---------- */
.title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.title-row h1 { font-size: var(--fs-title); line-height: 30px; font-weight: 600; letter-spacing: -0.015em; }
.title-row .sub { margin-top: 4px; color: var(--muted); max-width: 72ch; }
.title-row .actions { display: flex; gap: 8px; flex: none; }
.crumb { display: inline-flex; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.crumb a:hover { color: var(--text); }

/* ---------- grid and panels ---------- */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); align-items: start; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-4 { grid-column: span 4; } .span-6 { grid-column: span 6; }
.section + .section { margin-top: 28px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: var(--card-pad); min-width: 0; }
.panel.flush { padding: 0; }
.panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel.flush > header { padding: 16px var(--card-pad) 0; margin-bottom: 6px; }
.panel h2 { font-size: var(--fs-section); line-height: 22px; font-weight: 600; letter-spacing: -0.005em; }
.panel .meta { color: var(--faint); font-size: var(--fs-small); }
.panel p + p { margin-top: 8px; }
.panel + .panel { margin-top: var(--gap); }
.grid > * { min-width: 0; }
.grid.stretch { align-items: stretch; }
.grid.stretch > * > .panel { height: 100%; display: flex; flex-direction: column; }
.panel .foot { margin-top: auto; padding-top: 12px; }
.signers { display: grid; grid-template-columns: minmax(0, 1fr); margin-top: 14px; border-top: 1px solid var(--rule); }
.signers li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
.signers li:last-child { border-bottom: 0; }
.signers .who { min-width: 0; flex: 1; overflow: hidden; }
.signers .who b { display: block; font-weight: 500; }
.signers .who span { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-link { display: inline-flex; align-items: center; gap: 2px; padding: 0; border: 0; background: none; color: var(--text); font-weight: 500; cursor: pointer; font-size: 13px; white-space: nowrap; }
.card-link::after { content: ""; width: 12px; height: 12px; flex: none; background: currentColor; -webkit-mask: var(--chevron) center / 12px no-repeat; mask: var(--chevron) center / 12px no-repeat; }
.card-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* KPIs: one container split by 1px dividers, label over value, no icons */
.kpis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.kpi { padding: 16px var(--card-pad) 18px; }
.kpi + .kpi { border-left: 1px solid var(--border); }
.kpi-label { color: var(--muted); }
.kpi-value { margin-top: 6px; font-size: var(--fs-kpi); line-height: 30px; font-weight: 500; letter-spacing: -0.015em; }
.kpi-value.lead { font-size: var(--fs-lead); line-height: 34px; margin-top: 4px; }
.kpi-value .unit { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 4px; letter-spacing: 0; }
.kpi-note { margin-top: 4px; font-size: var(--fs-small); color: var(--faint); line-height: 16px; }

/* setup strip: one container split into equal cells */
.setup { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); }
.setup > * { display: block; padding: 16px var(--card-pad); position: relative; min-width: 0; }
.setup > * + * { border-left: 1px solid var(--border); }
.setup b { display: block; font-weight: 500; font-size: 14px; padding-right: 40px; }
.setup p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 18px; }
.setup .state { position: absolute; top: 16px; right: 16px; font-size: var(--fs-small); color: var(--faint); }
.setup a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.setup .done b { color: var(--muted); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { height: 36px; padding: 0 12px; text-align: left; font-weight: 400; font-size: var(--fs-small); color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
td { padding: calc((var(--row-height) - 20px) / 2) 12px; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
th:first-child, td:first-child { padding-left: var(--card-pad); }
th:last-child, td:last-child { padding-right: var(--card-pad); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; }
tbody tr.link:hover td { background: var(--raised); }
th.n, td.n { text-align: right; }
td .sub { display: block; font-size: var(--fs-small); line-height: 16px; color: var(--muted); margin-top: 2px; }
td a.name { font-weight: 500; }
td a.name:hover { text-decoration: underline; text-underline-offset: 3px; }
.dash { color: var(--faint); }
.truncate { display: inline-block; max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.table-foot { display: flex; justify-content: space-between; align-items: center; padding: 12px var(--card-pad); border-top: 1px solid var(--rule); color: var(--muted); font-size: 13px; }

/* pills: a pale tint with dark ink of the same hue, inside rows and beside values only */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: var(--fs-small); font-weight: 500; background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); white-space: nowrap; flex: none; vertical-align: baseline; }
.pill.pos { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.pill.neg { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.pill.warn { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
.sev { white-space: nowrap; }
.sev.critical, .sev.high { color: var(--text); font-weight: 500; }
.sev.medium, .sev.low { color: var(--muted); }

/* key-value rows */
.kv { display: grid; grid-template-columns: minmax(120px, 40%) 1fr; }
.kv dt, .kv dd { padding: 9px 0; border-bottom: 1px solid var(--rule); margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv > :nth-last-child(-n + 2) { border-bottom: 0; }
.well { background: var(--raised); border-radius: var(--radius-control); padding: 4px 14px; }
.well .kv dt, .well .kv dd { border-bottom-color: var(--border); }

/* commands and code */
.cmd { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 4px 0 12px; border: 1px solid var(--border); border-radius: var(--radius-control); background: var(--raised); font-family: var(--mono); font-size: 13px; }
.cmd code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmd + .cmd { margin-top: 8px; }
pre.code { margin: 0; padding: 12px 14px; background: var(--raised); border: 1px solid var(--border); border-radius: var(--radius-control); font: 13px/20px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow: auto; }
code { font-family: var(--mono); font-size: 13px; }
.lines { display: grid; gap: 6px; }
.lines + p, .well + p { margin-top: 14px; }
p.muted.small { margin-bottom: 6px; }
.lines code { display: block; padding: 6px 10px; background: var(--raised); border-radius: 4px; overflow-wrap: anywhere; }

/* ---------- controls ---------- */
.btn, button.primary, button.secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--control-height); padding: 0 14px; border-radius: var(--radius-control); border: 1px solid var(--control); background: var(--surface); color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.btn:hover, button.secondary:hover { background: var(--raised); }
.btn:active, button:active { transform: translateY(1px); }
.btn.primary, button.primary { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.btn.primary:hover, button.primary:hover { background: #2b2b2b; }
.btn.small, button.small { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.danger { color: var(--negative); }
button:disabled { opacity: .55; cursor: not-allowed; }
.icon-btn { width: 28px; height: 28px; padding: 0; border: 0; border-radius: var(--radius-control); background: transparent; color: var(--muted); cursor: pointer; display: inline-grid; place-items: center; flex: none; }
.icon-btn:hover { background: var(--active); color: var(--text); }
.icon-btn svg { width: 14px; height: 14px; }
label { display: block; font-weight: 500; margin-bottom: 8px; }
label.check { display: flex; align-items: center; font-weight: 400; margin: 0; }
.hint { color: var(--muted); font-size: var(--fs-small); line-height: 16px; margin-top: 6px; }
input:not([type="checkbox"]), select, textarea { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); color: var(--text); }
textarea { height: auto; padding: 10px 12px; font: 13px/20px var(--mono); resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; padding-right: 32px; background-image: var(--chevron-down); background-repeat: no-repeat; background-position: right 10px center; background-size: 12px; }
input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--text); margin: 0 8px 0 0; flex: none; }
.field + .field { margin-top: 16px; }
.form-actions { margin-top: 16px; display: flex; gap: 8px; }
.toolbar { display: flex; align-items: center; gap: 8px; margin: 16px 0 12px; flex-wrap: wrap; }
.toolbar select { width: auto; height: var(--control-height); min-width: 150px; }
.toolbar .count { margin-left: auto; color: var(--muted); }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs a { position: relative; padding: 10px 0; color: var(--muted); white-space: nowrap; transition: color var(--t-hover) ease; }
.tabs a:hover { color: var(--text); }
.tabs a[aria-current="page"] { color: var(--text); }
.tabs a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.tabs a .count { margin-left: 6px; color: var(--faint); font-variant-numeric: tabular-nums; }
.segmented { display: inline-flex; padding: 2px; border-radius: 8px; background: var(--active); }
.segmented button { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 500; }
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--text); }

/* settings rows: a label column beside a panel */
.setting { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; padding: 28px 0; border-top: 1px solid var(--border); }
.setting:first-child { border-top: 0; padding-top: 24px; }
.setting > div:first-child h2 { font-size: 15px; font-weight: 600; line-height: 22px; }
.setting > div:first-child p { margin-top: 4px; color: var(--muted); }

/* messages */
.notice { padding: 10px 14px; border: 1px solid #fde68a; background: var(--pill-warning-bg); color: var(--pill-warning-ink); border-radius: var(--radius-control); font-size: 13px; }
.note { padding: 10px 14px; background: var(--raised); border-radius: var(--radius-control); color: var(--muted); font-size: 13px; }
.error { padding: 10px 14px; border: 1px solid #f6c6c0; background: var(--pill-negative-bg); color: var(--pill-negative-ink); border-radius: var(--radius-control); font-size: 13px; }
.empty { display: grid; place-items: center; min-height: 64px; padding: 16px; border: 1px dashed var(--control); border-radius: var(--radius-control); color: var(--muted); text-align: center; }
.panel.flush > .empty { margin: 12px var(--card-pad) var(--card-pad); }

/* modal (floats, so it may have a shadow) */
.modal-back { position: fixed; inset: 0; background: rgba(10,12,16,.35); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal { background: var(--surface); border-radius: 10px; width: min(440px, 100%); padding: 22px; box-shadow: 0 16px 48px rgba(0,0,0,.18); }
.modal > * + * { margin-top: 14px; }
.modal h3 { font-size: 16px; font-weight: 600; }
.modal .row { display: flex; gap: 8px; justify-content: flex-end; }

/* chart */
.chart { position: relative; min-width: 0; }
.chart svg { display: block; overflow: visible; }

/* public pages (sign-in, link confirmation) */
.public-wrap { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.public-top { display: flex; align-items: center; justify-content: space-between; padding: 20px 32px; }
.public-top .product { padding: 0; }
.public-main { width: min(440px, 100% - 32px); margin: 8vh auto 48px; }
.public-main h1 { font-size: var(--fs-title); line-height: 30px; font-weight: 600; letter-spacing: -0.015em; }
.public-main .lede { margin-top: 8px; color: var(--muted); }
.public-main .panel { margin-top: 24px; }
.public-main .fine { margin-top: 16px; color: var(--faint); font-size: 13px; }
.public-foot { padding: 20px 32px; color: var(--faint); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.public-foot a:hover, .public-top a:hover { color: var(--text); }

/* ---------- tablet and phone ---------- */
@media (max-width: 1100px) {
  .span-8, .span-4, .span-6 { grid-column: span 12; }
  .setup { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup > :nth-child(3) { border-left: 0; }
  .setup > :nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 30; background: var(--surface); transform: translateX(-100%); transition: transform var(--t-ui) var(--ease-out); border-right: 0; }
  .sidebar.open { transform: none; }
  .icon-btn.side-close { display: inline-grid; }
  .mobbar { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--ground); position: sticky; top: 0; z-index: 10; }
  .mobbar b { font-weight: 600; }
  .canvas { padding: 20px 16px 40px; }
  .kpis { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi + .kpi { border-left: 0; }
  .kpi:nth-child(n + 3) { border-top: 1px solid var(--border); }
  .kpi:nth-child(2n) { border-left: 1px solid var(--border); }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .title-row { flex-wrap: wrap; align-items: flex-start; }
  .title-row h1 { font-size: 22px; }
  .setting { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hide-sm { display: none !important; }
}
@media (max-width: 560px) {
  .setup { grid-template-columns: minmax(0, 1fr); }
  .setup > * + * { border-left: 0; border-top: 1px solid var(--border); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv dt { border-bottom: 0; padding-bottom: 0; }
  .kv dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; } }


/* ================= lab overrides: sharp corners, flat tags, dense tables ================= */
:focus-visible { outline: 2px solid var(--brand-text); border-radius: 2px; }
::selection { background: #e11d48; color: #fff; }
.mono, code, pre { font-family: var(--mono); }
.title-row h1 { letter-spacing: -0.01em; }
.scope .initial { border-radius: 2px; background: var(--active); color: var(--text); }
.avatar { border-radius: 2px; background: var(--active); color: var(--text); }
.product .mark { color: var(--primary); }
.nav-item[aria-current="page"] { background: transparent; box-shadow: inset 2px 0 0 var(--primary); color: var(--text); border-radius: 0; }
.segmented { border-radius: 2px; background: var(--raised); border: 1px solid var(--border); }
.segmented button { border-radius: 2px; }
.segmented button[aria-pressed="true"] { background: var(--active); color: var(--text); box-shadow: none; }
.btn:hover, button.secondary:hover { background: var(--active); }
.btn.primary:hover, button.primary:hover { background: #c8153f; }
.btn, button.primary, button.secondary { font-weight: 600; }
.notice { border-color: #4a3a17; }
.error { border-color: #5a2430; background: #1c1115; }
.note { background: var(--raised); border: 1px solid var(--border); }
.empty { border-style: solid; border-color: var(--border); background: transparent; }
.modal-back { background: rgba(0,0,0,.7); }
.modal { border-radius: 3px; border: 1px solid var(--control); box-shadow: none; }
td, th { font-variant-numeric: tabular-nums; }
.table-wrap td .sub, td .sub { font-family: var(--mono); font-size: 12px; }

/* status tags: flat, square marker, coloured text, hairline in the same hue. No pills, no fills, no glow. */
.pill { height: 20px; padding: 0 7px 0 6px; border-radius: 2px; border: 1px solid var(--control); background: transparent; color: var(--muted); font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; gap: 6px; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 0; background: currentColor; flex: none; }
.pill.pos { color: var(--positive); border-color: rgba(82,169,139,.4); }
.pill.warn { color: var(--warning); border-color: rgba(205,161,78,.4); }
.pill.neg { color: var(--negative); border-color: rgba(229,86,111,.45); }
.sev { font: 600 11px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.sev.critical { color: var(--negative); } .sev.high { color: var(--text); } .sev.medium, .sev.low { color: var(--muted); }

/* diff against the baseline */
.diff-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-card); }
.diff-strip > div { padding: 12px var(--card-pad); }
.diff-strip > div + div { border-left: 1px solid var(--border); }
.diff-strip .n { font: 600 24px/28px var(--mono); }
.diff-strip .l { font: 600 11px/16px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.diff-strip .new .n { color: var(--negative); } .diff-strip .resolved .n { color: var(--positive); }
.state { font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.state.new { color: var(--negative); } .state.resolved { color: var(--positive); } .state.unchanged, .state.baseline { color: var(--muted); }
tr.is-resolved td { opacity: .72; }
.checks { display: grid; gap: 0; border: 1px solid var(--border); border-radius: var(--radius-card); }
.checks > div { display: grid; grid-template-columns: 22px 150px 1fr; gap: 8px; padding: 9px 12px; align-items: baseline; }
.checks > div + div { border-top: 1px solid var(--border); }
.checks .mk { font: 700 13px/1 var(--mono); }
.checks .ok { color: var(--positive); } .checks .bad { color: var(--negative); } .checks .na { color: var(--faint); }
.checks .nm { font: 600 11px/16px var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.checks .dt { font: 12px/18px var(--mono); overflow-wrap: anywhere; }
.hash { font: 12px/16px var(--mono); color: var(--muted); }
