/* Sitize research dashboard, in the sitize.com look.
   Same tokens as the website: pure white (pure black in dark mode), hairline borders, Cobalt accent, Archivo Expanded
   headings, Geist text, Geist Mono uppercase labels, pill buttons. Status is a coloured dot plus a word. */
:root {
  --bg: #ffffff; --surface: #ffffff; --surface-2: #f5f6f8; --surface-3: #eceef2;
  --ink: #0a0a0b; --ink-2: #3d4250; --muted: #5b6170; --faint: #9aa0ad;
  --line: #e6e8ec; --line-strong: #c9cdd5; --field: #8a90a0;
  --accent: #2546f0; --accent-hover: #1a37cf; --accent-soft: #f4f6fe; --accent-line: #c9d2fc; --accent-ring: rgba(37, 70, 240, .16);
  --primary: #2546f0; --primary-hover: #1a37cf; --on-primary: #ffffff;
  --hover: rgba(37, 70, 240, .05);
  --good: #0f7a4a; --good-soft: #ebf6f0; --warning: #9a5b00; --warning-soft: #fff6e6;
  --critical: #c0262d; --critical-soft: #fdeeee; --track: #e6e8ec;
  --radius: 16px; --radius-sm: 10px; --radius-xs: 6px;
  --shadow-xs: none; --shadow: none;
  --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .25);
  --top-bg: var(--bg);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Archivo", "Arial Black", "Helvetica Neue", Arial, sans-serif; --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --pad: 24px; --top-h: 65px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000; --surface: #000000; --surface-2: #0f1013; --surface-3: #17181d;
    --ink: #f5f6f8; --ink-2: #c8cbd4; --muted: #9aa0ad; --faint: #5d6270;
    --line: #1e2026; --line-strong: #33363f; --field: #6b7080;
    --accent: #7b93ff; --accent-hover: #9aacff; --accent-soft: #0b1029; --accent-line: #26306a; --accent-ring: rgba(123, 147, 255, .26);
    --primary: #7b93ff; --primary-hover: #9aacff; --on-primary: #000000;
    --hover: rgba(123, 147, 255, .07);
    --good: #3ddc97; --good-soft: #0b2419; --warning: #f2b553; --warning-soft: #271d0b;
    --critical: #ff6b70; --critical-soft: #2b1113; --track: #1e2026;
    --shadow-pop: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 120px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--font); line-height: 1.25; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-family: var(--display); font-stretch: 112%; font-weight: 850; font-size: 30px; line-height: 1.05; letter-spacing: -0.035em; }
h2 { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 16.5px; letter-spacing: -0.01em; margin-bottom: 12px; }
h3 { font-size: 14px; font-weight: 600; margin: 20px 0 8px; }
.eyebrow, .lbl, th, .tile .l, .facts dt, .item.headrow, .cmdk li.group, .report .kpi .l, .crumbs {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow { color: var(--accent); }
p { margin: 0 0 10px; }
b, strong { font-weight: 600; }
code, .mono { font-family: var(--mono); font-size: 12px; }
code { background: transparent; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.num, .tile .v, .meter-l, .facts dd, .score { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--on-primary); }
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 22px; height: 64px; }
.brand { display: flex; align-items: center; gap: 7px; color: var(--ink); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.logo-mark { width: 22px; height: 22px; flex: none; color: var(--ink); }
.logo-mark .logo-cut { fill: var(--logo-cut, var(--surface)); }
.logo-mark .logo-dot { fill: var(--accent); }
.top { --logo-cut: var(--bg); }
.brand b { font-family: var(--display); font-stretch: 125%; font-weight: 850; font-size: 18px; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.brand .slash { color: var(--faint); font-weight: 300; font-size: 18px; margin: 0 -1px; }
.brand span:last-child { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--muted); font-weight: 500; font-size: 14.5px; padding: 6px 12px; border-radius: 999px; white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease); }
.nav a:hover { color: var(--ink); background: rgba(10, 10, 11, .04); text-decoration: none; }
.nav a.on { color: var(--ink); background: rgba(10, 10, 11, .06); }
@media (prefers-color-scheme: dark) { .nav a:hover { background: rgba(245, 246, 248, .06); } .nav a.on { background: rgba(245, 246, 248, .09); } }
.top-actions { display: flex; gap: 8px; align-items: center; }
.kbtn { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; min-width: 210px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--bg); color: var(--muted); font: 400 13px var(--font); cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease); }
.kbtn:hover { border-color: var(--ink); color: var(--ink-2); }
.kbtn .grow { flex: 1; text-align: left; }
kbd { font: 500 10.5px/1 var(--mono); color: var(--muted); background: var(--bg); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 4px 7px; min-width: 20px; text-align: center; }
@media (max-width: 1000px) { .kbtn { min-width: 0; padding: 0 8px; } .kbtn .grow, .kbtn kbd { display: none; } }
@media (max-width: 760px) {
  :root { --pad: 16px; --top-h: 105px; }
  .top-in { flex-wrap: wrap; gap: 0 10px; padding: 10px 16px 0; height: auto; }
  .brand { order: 1; } .top-actions { order: 2; margin-left: auto; }
  .nav { order: 3; flex-basis: 100%; margin: 6px -10px 0; padding: 0 6px 8px; }
  .top-actions .btn-label { display: none; }
}

/* ---------- layout ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 32px 24px 80px; }
@media (max-width: 760px) { main { padding: 20px 16px 64px; } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.head .sub { color: var(--muted); margin-top: 10px; font-size: 15px; }
.head .sub.small { font-size: 13px; }
@media (max-width: 760px) {
  .head > .row { width: 100%; gap: 8px; }
  .head > .row > .btn, .head > .row > form { flex: 1 1 auto; }
  .head > .row > form .btn { width: 100%; }
  .head > .row > .btn.primary { order: -1; flex-basis: 100%; }
}
.crumbs { margin-bottom: 12px; color: var(--faint); }
.crumbs a { color: var(--accent); } .crumbs a:hover { color: var(--accent-hover); text-decoration: none; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px var(--pad); box-shadow: var(--shadow);
  margin-bottom: 16px; min-width: 0; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2 > .panel, .grid3 > .panel { margin-bottom: 0; }
.grid2 + .panel, .grid2 + .grid2, .grid3 + .panel { margin-top: 16px; }
@media (max-width: 860px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.flash, .alert { display: flex; gap: 8px; align-items: center; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-weight: 500; font-size: 13.5px; }
.flash { background: var(--good-soft); color: var(--good); border: 1px solid color-mix(in srgb, var(--good) 22%, transparent); }
.alert { background: var(--critical-soft); color: var(--critical); border: 1px solid color-mix(in srgb, var(--critical) 22%, transparent); }
.attention { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 12px 14px 12px 16px; margin-bottom: 16px; }
.attention b { color: var(--ink); }

/* ---------- buttons, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 600 14px/1 var(--font); height: 38px; padding: 0 17px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--ink); cursor: pointer;
  white-space: nowrap; text-decoration: none;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease); }
.btn:hover { border-color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(.5px); }
.btn .ic { margin-left: -3px; }
.btn.primary { background: var(--primary); border-color: transparent; color: var(--on-primary); }
.btn.primary:hover { transform: translateY(-1px); }
.btn.primary .ic { color: inherit; opacity: .9; }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { color: var(--critical); }
.btn.danger .ic { color: inherit; }
.btn.danger:hover { border-color: var(--critical); }
.btn.small { height: 34px; padding: 0 14px; font-size: 13.5px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); border-color: var(--line-strong); }
.btn.icon { width: 34px; padding: 0; }
.btn.icon .ic { margin: 0; }
form.inline { display: inline; margin: 0; }
input[type=text], input[type=url], input[type=search], input[type=password], input[type=number], select, textarea {
  font: 14px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1px solid var(--field); border-radius: var(--radius-sm);
  padding: 9px 13px; width: 100%; min-height: 40px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
input::placeholder, textarea::placeholder { color: var(--faint); }
@media (max-width: 760px) { input[type=text], input[type=url], input[type=search], input[type=password], input[type=number], select, textarea { font-size: 16px; } }
textarea { min-height: 84px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.search { position: relative; flex: 0 1 300px; min-width: 200px; }
@media (max-width: 760px) { .search { flex: 1 1 100%; } }
.search .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.search input { padding-left: 34px; padding-right: 38px; border-radius: 999px; }
.search kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search input:focus ~ kbd { display: none; }
@media (hover: none) { .search kbd { display: none; } }
label.f { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field { margin-bottom: 16px; min-width: 0; }
.field.err input, .field.err select, .field.err textarea { border-color: var(--critical); }
.field.err input:focus, .field.err textarea:focus { outline-color: var(--critical); }
.err-msg { color: var(--critical); font-size: 12.5px; margin-top: 5px; font-weight: 500; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; }
.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--primary); }
.choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 700px) { .choices { grid-template-columns: minmax(0, 1fr); } }
.choice { display: block; position: relative; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 13px 40px 13px 15px; cursor: pointer;
  background: var(--bg); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background-color .15s var(--ease); }
.choice:hover { border-color: var(--ink); }
.choice input { position: absolute; opacity: 0; }
.choice::after { content: ""; position: absolute; top: 13px; right: 14px; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--line-strong); background: var(--surface); transition: all .15s var(--ease); }
.choice b { display: block; font-size: 14px; font-weight: 600; } .choice span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.choice:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--hover); }
.choice:has(input:checked)::after { border: 5px solid var(--primary); background: var(--bg); }
.choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- chips, segmented filters, status ---------- */
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 2px; font: 500 11px var(--mono); letter-spacing: .04em; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--muted); background: transparent; }
a.chip:hover { text-decoration: none; background: var(--surface-2); }
.chip.on { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip .n { color: var(--muted); margin-left: 5px; font-variant-numeric: tabular-nums; } .chip.on .n { color: inherit; opacity: .7; }
.seg { display: inline-flex; gap: 2px; padding: 3px; background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg a { font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 6px 13px; border-radius: 999px; white-space: nowrap;
  transition: color .15s var(--ease), background-color .15s var(--ease), box-shadow .15s var(--ease); }
.seg a:hover { color: var(--ink); text-decoration: none; }
.seg a.on { color: var(--bg); background: var(--ink); }
.badge { --tone: var(--muted); display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; line-height: 1;
  height: 22px; padding: 0 9px 0 8px; border-radius: 999px; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  vertical-align: middle; }
.badge i { font-size: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); flex: none; }
.tone-good { --tone: var(--good); }
.tone-accent { --tone: var(--accent); }
.tone-muted { --tone: var(--faint); }
.tone-muted.badge { color: var(--muted); }
.tone-attention { --tone: var(--accent); color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }
.tone-warning { --tone: var(--warning); color: var(--warning); background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 22%, transparent); }
.tone-critical { --tone: var(--critical); color: var(--critical); background: var(--critical-soft); border-color: color-mix(in srgb, var(--critical) 22%, transparent); }
.badge.pulse { animation: none; }
.badge.pulse i { animation: ping 1.8s var(--ease) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--tone) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 6px transparent; } }
.tier { display: inline-block; font: 500 10.5px/18px var(--mono); letter-spacing: .06em; text-transform: uppercase; padding: 0 8px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: transparent; color: var(--muted); vertical-align: 1px; }
.tier.premium { border-color: var(--accent); color: var(--accent); }

/* ---------- stat tiles and meters ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 16px; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { position: relative; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0;
  padding: 18px 20px; min-width: 0; transition: background-color .15s var(--ease); }
.tile .l { display: flex; align-items: center; gap: 7px; }
.tile .v { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; margin-top: 10px; color: var(--ink); }
.tile .s { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.tile .v-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
a.tile { color: inherit; display: block; }
a.tile:hover { text-decoration: none; background: var(--hover); }
a.tile .go { position: absolute; top: 16px; right: 16px; color: var(--faint); opacity: 0; transform: translateX(-3px); transition: all .15s var(--ease); }
a.tile:hover .go { opacity: 1; transform: none; }
.tile.hot { background: var(--hover); }
.tile.hot .l { color: var(--accent); }
.tile.hot .l::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.tile.hot .v { color: var(--accent); }
.spark { width: 96px; height: 30px; flex: none; overflow: visible; margin-bottom: 3px; }
@media (max-width: 560px) { .spark { display: none; } }
.spark .l { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark .a { fill: var(--accent); opacity: .09; }
.spark .d { fill: var(--accent); }
.meter { height: 4px; background: var(--track); border-radius: 999px; overflow: hidden; margin-top: 7px; }
.meter > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; min-width: 2px; transform-origin: left;
  animation: grow .7s var(--ease) both; }
.meter.warn > i { background: var(--warning); }
@keyframes grow { from { transform: scaleX(0); } }
.meter-l { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); gap: 8px; }
.meter-l > span:first-child { color: var(--ink-2); font-weight: 500; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.panel .table-wrap, .report section .table-wrap { margin: 0 calc(-1 * var(--pad)); }
.panel .table-wrap th:first-child, .panel .table-wrap td:first-child,
.report section .table-wrap th:first-child, .report section .table-wrap td:first-child { padding-left: var(--pad); }
.panel .table-wrap th:last-child, .panel .table-wrap td:last-child,
.report section .table-wrap th:last-child, .report section .table-wrap td:last-child { padding-right: var(--pad); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; border-bottom: 1px solid var(--line); padding: 9px 12px; white-space: nowrap; }
td { border-bottom: 1px solid var(--line); padding: 11px 12px; vertical-align: top; transition: background-color .12s var(--ease); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr:hover td { background: var(--hover); }
tr.client td, tr.me td { background: var(--accent-soft); }
tbody tr.client:hover td, tbody tr.me:hover td { background: var(--accent-soft); }
.score { font-weight: 600; font-size: 15px; letter-spacing: -0.01em; color: var(--ink); }
.subscores { font-size: 12px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.zero { color: var(--faint); }

/* runs list: rows that are links, folding into cards on phones */
.list { display: flex; flex-direction: column; margin: 0 calc(-1 * var(--pad)); }
.item { position: relative; display: grid; grid-template-columns: minmax(0, 2.2fr) 1.3fr 1fr 1.3fr 1fr; gap: 16px; align-items: center;
  padding: 13px var(--pad); border-bottom: 1px solid var(--line); transition: background-color .12s var(--ease); }
.item:last-child { border-bottom: 0; }
.item:not(.headrow):hover { background: var(--hover); }
.item.headrow { padding-top: 0; padding-bottom: 9px; }
.item .name a { font-weight: 600; color: var(--ink); }
.item .name a::after { content: ""; position: absolute; inset: 0; }
.item .name a:hover { text-decoration: none; }
.item .name a:focus-visible { outline: none; }
.item:has(.name a:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.item .c-status a { position: relative; z-index: 1; }
.item .c-status a:hover { text-decoration: none; }
.item .name .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 1px; }
.item .c-scores .score { display: block; }
.item .chev { position: absolute; right: 10px; top: 50%; transform: translate(-4px, -50%); color: var(--accent); opacity: 0; transition: all .15s var(--ease); }
.item:hover .chev { opacity: 1; transform: translate(0, -50%); }
@media (max-width: 760px) {
  .item { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px var(--pad); }
  .item.headrow { display: none; }
  .item .c-status { grid-column: 2; grid-row: 1; justify-self: end; text-align: right; }
  .item .c-scores, .item .c-spend, .item .c-when { grid-column: 1 / -1; }
  .item .c-scores { display: flex; gap: 10px; align-items: baseline; }
  .item .c-scores .score { display: inline; }
  .item .c-when { display: flex; gap: 8px; color: var(--muted); }
  .item .chev { display: none; }
}

/* ---------- run page ---------- */
.steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 2px 0 0; padding: 0; list-style: none; }
.step { --tone: var(--faint); position: relative; padding: 30px 14px 0 0; min-width: 0; }
.step::before { content: ""; position: absolute; top: 10px; left: 28px; right: 6px; height: 2px; border-radius: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .dot { position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font: 500 10.5px/1 var(--mono); background: var(--bg); border: 1.5px solid var(--line-strong); color: var(--muted); }
.step .t { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.step .m { font-size: 12px; color: var(--muted); margin-top: 2px; font-variant-numeric: tabular-nums; }
.step .st { font-size: 12px; font-weight: 500; color: var(--tone); margin-top: 2px; }
.step.s-good { --tone: var(--good); }
.step.s-good .dot { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.step.s-good::before { background: var(--ink); }
.step.s-accent, .step.s-attention { --tone: var(--accent); }
.step.s-accent .dot { border-color: var(--accent); color: var(--accent); font-size: 8px; animation: ring 1.8s var(--ease) infinite; }
.step.s-attention .dot { background: var(--primary); border-color: var(--primary); color: var(--on-primary); font-size: 9px; box-shadow: 0 0 0 4px var(--accent-ring); }
.step.s-warning { --tone: var(--warning); } .step.s-warning .dot { background: var(--warning); border-color: var(--warning); color: #fff; }
.step.s-critical { --tone: var(--critical); } .step.s-critical .dot { background: var(--critical); border-color: var(--critical); color: #fff; }
.step.s-muted .t { color: var(--muted); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 var(--accent-ring); } 70%, 100% { box-shadow: 0 0 0 7px transparent; } }
@media (max-width: 900px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 1px 0 16px 34px; min-height: 22px; }
  .step::before { top: 27px; bottom: 3px; left: 10px; right: auto; width: 2px; height: auto; }
  .step .m, .step .st { display: inline; margin: 0 0 0 6px; }
  .step .t { display: inline; }
}
.run-meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px 28px; align-items: start;
  border-top: 1px solid var(--line); margin-top: 20px; padding-top: 16px; }
@media (max-width: 860px) { .run-meta { grid-template-columns: minmax(0, 1fr); } }
.lbl { margin-bottom: 6px; }
.kvs { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 3px 12px; font-size: 13px; margin: 0; }
.kvs dt { color: var(--muted); } .kvs dd { margin: 0; font-variant-numeric: tabular-nums; }
.pulse { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 8px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { position: relative; isolation: isolate; padding: 13px 11px 14px; font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; }
.tabs a::before { content: ""; position: absolute; inset: 7px 2px; border-radius: 999px; background: var(--hover); opacity: 0; z-index: -1; transition: opacity .15s var(--ease); }
.tabs a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: transparent; transition: background-color .15s var(--ease); }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a:hover::before { opacity: 1; }
.tabs a.on { color: var(--ink); }
.tabs a.on::after { background: var(--accent); }
@media (min-width: 761px) {
  .tabs { position: sticky; top: var(--top-h); z-index: 10; background: var(--bg); }
}
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0; margin: 0; background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.facts div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.facts dd { margin: 6px 0 0; font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.sortbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.sortbar button { font: 500 13px var(--font); padding: 0 12px; height: 30px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink-2); cursor: pointer; transition: all .15s var(--ease); }
.sortbar button:hover { border-color: var(--ink); }
.sortbar button[aria-pressed=true] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
th.grp { text-align: center; border-bottom: 1px solid var(--line); color: var(--faint); }
td.pick, th.pick { width: 34px; text-align: center; }
td.pick input { width: 16px; height: 16px; accent-color: var(--primary); }
.sticky-col { position: sticky; left: 0; background: var(--surface); z-index: 1; }
tbody tr:hover td.sticky-col { background: var(--hover); }
tr.client td.sticky-col { background: var(--accent-soft); }
.approve-bar { position: sticky; bottom: 0; z-index: 5; background: var(--bg);
  border-top: 1px solid var(--line); padding: 12px var(--pad); margin: 12px calc(-1 * var(--pad)) -20px; border-radius: 0 0 var(--radius) var(--radius);
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.factor { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 2fr) 70px; gap: 12px; align-items: center; font-size: 13px; padding: 5px 0; }
.factor .meter { margin: 0; }
details.raw { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--surface); overflow: hidden; }
details.raw summary { cursor: pointer; padding: 10px 12px; font-weight: 500; font-size: 13.5px; display: flex; gap: 10px; flex-wrap: wrap; }
details.raw summary:hover { background: var(--hover); }
details.raw pre { margin: 0; padding: 12px; border-top: 1px solid var(--line); max-height: 480px; overflow: auto; font: 12px/1.55 var(--mono); background: var(--surface-2); }
.chart { position: relative; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 8px; border-bottom: 1px solid var(--line-strong);
  background-image: linear-gradient(to bottom, var(--line) 1px, transparent 1px); background-size: 100% 50%; }
.bars > div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; transform-origin: bottom;
  animation: rise .6s var(--ease) both; transition: opacity .15s var(--ease); }
.bars > div.zero-day { background: var(--track); height: 2px !important; min-height: 2px; border-radius: 1px; }
.bars:hover > div { opacity: .45; }
.bars > div:hover { opacity: 1; }
@keyframes rise { from { transform: scaleY(0); } }
.bars-l { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.tip { position: fixed; z-index: 50; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 500;
  padding: 7px 11px; border-radius: var(--radius-sm); box-shadow: var(--shadow-pop); white-space: nowrap; transform: translate(-50%, calc(-100% - 8px));
  opacity: 0; transition: opacity .1s var(--ease); font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; }
.hbar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 2fr) 80px; gap: 12px; align-items: center; font-size: 13.5px; padding: 7px 0; }
.hbar .tiny { display: block; line-height: 1.4; }
.hbar .meter { margin: 0; height: 6px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h2 { color: var(--ink); font-size: 16px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 18px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.yes { color: var(--good); font-weight: 500; } .no { color: var(--critical); font-weight: 500; }

/* ---------- command menu (Ctrl K / ⌘K) ---------- */
dialog.cmdk { width: min(560px, calc(100vw - 32px)); margin: 12vh auto auto; padding: 0; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-pop); overflow: hidden; }
dialog.cmdk[open] { animation: pop .16s var(--ease); }
dialog.cmdk::backdrop { background: rgba(9, 9, 11, .32); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
.cmdk-q { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmdk-q .ic { color: var(--faint); }
.cmdk-q input { border: 0; box-shadow: none; padding: 16px 0; min-height: 52px; font-size: 15px; background: transparent; }
.cmdk-q input:focus { box-shadow: none; }
.cmdk ul { list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; }
.cmdk li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.cmdk li .ic { color: var(--muted); }
.cmdk li .hint2 { margin-left: auto; font-size: 12px; color: var(--faint); }
.cmdk li[aria-selected=true] { background: var(--hover); color: var(--ink); }
.cmdk li[aria-selected=true] .ic { color: var(--accent); }
.cmdk li[hidden] { display: none; }
.cmdk li.group { padding: 8px 12px 4px; cursor: default; background: none; }
.cmdk-foot { display: flex; gap: 14px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.cmdk-foot kbd { margin-right: 3px; }
@media (hover: none) { .cmdk-foot { display: none; } }

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login .panel { width: 100%; max-width: 400px; padding: 32px; border-color: var(--line-strong); }
.login .btn.primary { width: 100%; }
.login .brand { margin-bottom: 22px; }
.login h1 { font-size: 26px; margin-bottom: 8px; }

/* ---------- report sections in the dashboard (the PDF has its own styles) ---------- */
.report section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px var(--pad); margin-bottom: 16px;
  box-shadow: var(--shadow); min-width: 0; overflow-x: auto; }
.report h2 { font-size: 16.5px; border: 0; padding: 0; }
.report table { margin: 6px 0 12px; font-size: 13px; }
.report .kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 10px 0 16px; }
@media (max-width: 760px) { .report .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
.report .kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; min-width: 0; background: var(--bg); }
.report .kpi .v { font-family: var(--display); font-stretch: 108%; font-weight: 750; font-size: 24px; letter-spacing: -0.03em; line-height: 1.2; font-variant-numeric: tabular-nums; margin-top: 8px; }
.report .kpi .v small, .report .kpi .v span { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.report .kpi .s { font-size: 12px; color: var(--muted); }
.report .bar { height: 4px; background: var(--track); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.report .bar > i { display: block; height: 100%; background: var(--accent); border-radius: 999px; transform-origin: left; animation: grow .7s var(--ease) both; }
.report .ok { color: var(--good); } .report .bad { color: var(--critical); } .report .warn { color: var(--warning); }
.report .sev-high { color: var(--critical); font-weight: 500; } .report .sev-medium { color: var(--warning); font-weight: 500; } .report .sev-low { color: var(--muted); }
.report .cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 760px) { .report .cols { grid-template-columns: minmax(0, 1fr); } }
.report .grids { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.report .heat { display: grid; gap: 3px; max-width: 320px; }
.report .heat > div { aspect-ratio: 1; border-radius: 5px; color: #fff; font-size: 11.5px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.report .legend span { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; margin: 0 4px 0 10px; }
.report .card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; }
.report .callout { background: var(--hover); border: 1px solid var(--accent-line); padding: 11px 15px; margin: 10px 0; border-radius: var(--radius-sm); }
.report .season { display: flex; align-items: flex-end; gap: 4px; height: 80px; margin: 8px 0 2px; }
.report .season > div { flex: 1; background: var(--accent); border-radius: 4px 4px 0 0; }
.report .season-l { display: flex; gap: 4px; font-size: 11px; color: var(--muted); } .report .season-l > div { flex: 1; text-align: center; }
.report .pill { display: inline-block; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; line-height: 19px;
  border: 1px solid color-mix(in srgb, currentColor 35%, transparent); }
.report ul, .report ol { padding-left: 18px; margin: 0 0 10px; } .report li { margin-bottom: 4px; }
.report li::marker { color: var(--faint); }
.report .foot { display: none; }
.report .small { font-size: 13px; }
@media (max-width: 760px) {
  .approve-bar { position: static; margin: 12px 0 0; padding: 12px 0 0; background: none; backdrop-filter: none; border-radius: 0; }
  .approve-bar .btn.primary { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
