/* The shared visual system. Surface, type, color and motion apply to every workspace view.
   Evidence overlays and chart series retain their distinct scientific encodings. */
/* Type: Fraunces (display: wordmark, page titles, large figures; the SOFT axis rounds its terminals like the emblem's
   cells) and Bricolage Grotesque (interface text; its optical-size axis keeps small table text calm). Self-hosted,
   OFL 1.1, see fonts/LICENSE.md. */
@font-face {
  font-family: 'Fraunces';
  src: url('fonts/fraunces-var.woff2') format('woff2-variations'), url('fonts/fraunces-var.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('fonts/bricolage-grotesque-var.woff2') format('woff2-variations'),
    url('fonts/bricolage-grotesque-var.woff2') format('woff2');
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f2f5f1;
  --sf: #fffefa;
  --sf2: #f6f8f4;
  --ink: #203c38;
  --mut: #63736c;
  --ln: #d8e1d8;
  --ln2: #e7ece4;
  --hema: #28665b;
  --bl: #e4eee7;
  --eos: #a74163;
  --eosl: #f8eaf0;
  --amb: #875d22;
  --ambl: #faf0df;
  --grn: #2c7055;
  --grnl: #e5f1e9;
  --s1: var(--hema);
  --s2: var(--eos);
  --s3: var(--amb);
  --paper: var(--bg);
  --inkd: #203c38;
  --font: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --display-axes: 'SOFT' 100, 'WONK' 0;
  --radius: 18px;
  --glass: #fffefab8;
  --glass-edge: #ffffffdf;
  --glass-shadow: 0 4px 24px #244b3c0a, inset 0 1px 0 var(--glass-edge);
  --on-accent: #fffefa;
  --wash: #cbded16b;
  --rose-wash: #ecdde349;
  --shadow: 0 3px 16px #244b3c06;
  --spring: cubic-bezier(.22, 1.15, .36, 1);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #101e1d;
  --sf: #182b28;
  --sf2: #1d322e;
  --ink: #e7f0e8;
  --mut: #a4b8ac;
  --ln: #344a42;
  --ln2: #2a4038;
  --hema: #a1d7be;
  --bl: #263f34;
  --eos: #f0a4be;
  --eosl: #412c36;
  --amb: #e5bc7a;
  --ambl: #3c3325;
  --grn: #9ad4b2;
  --grnl: #263e32;
  --glass: #1a3029cc;
  --glass-edge: #b8e1c822;
  --on-accent: #15372d;
  --wash: #396c5130;
  --rose-wash: #8d50691c;
  --shadow: 0 3px 16px #0000000d;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #101e1d;
    --sf: #182b28;
    --sf2: #1d322e;
    --ink: #e7f0e8;
    --mut: #a4b8ac;
    --ln: #344a42;
    --ln2: #2a4038;
    --hema: #a1d7be;
    --bl: #263f34;
    --eos: #f0a4be;
    --eosl: #412c36;
    --amb: #e5bc7a;
    --ambl: #3c3325;
    --grn: #9ad4b2;
    --grnl: #263e32;
    --glass: #1a3029cc;
    --glass-edge: #b8e1c822;
    --on-accent: #15372d;
    --wash: #396c5130;
    --rose-wash: #8d50691c;
    --shadow: 0 3px 16px #0000000d;
    color-scheme: dark;
  }
}
body {
  background: radial-gradient(ellipse at 8% 0, var(--wash), transparent 48%),
    radial-gradient(ellipse at 95% 18%, var(--rose-wash), transparent 38%), var(--bg);
  background-attachment: fixed;
  font-size: 13px;
  line-height: 1.55;
}
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { transition: background .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s; }
button:active:not(:disabled) { transform: translateY(1px); }
:focus-visible { outline: 2px solid var(--hema); outline-offset: 4px; }
html { scroll-padding-top: calc(var(--stick, 96px) + 16px); }
.workspace { margin-left: 0; min-height: calc(100vh - 94px); }

/* A single, floating navigation pill; the optical lens is a persistent moving surface. */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(155px, 1fr) auto minmax(155px, 1fr);
  align-items: center;
  gap: 20px;
  margin: 0;
  padding: 22px 32px 18px;
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  border-bottom: 1px solid color-mix(in srgb, var(--ln) 65%, transparent);
}
.masthead .brand {
  display: flex;
  align-items: center;
  justify-self: start;
  padding: 0;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font: 600 27px/1 var(--display);
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96;
  letter-spacing: -.6px;
}
.masthead .brand img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 2px 4px #5a33181f); }
.masthead .brand-sub { display: block; color: var(--mut); font: 500 11px/1.4 var(--font); letter-spacing: .1px; margin-top: 4px; font-variation-settings: normal; }
.glass-nav {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 5px;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--ln);
  border-radius: 999px;
  background: var(--glass);
  box-shadow: var(--glass-shadow), 0 8px 30px #244b3c08;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}
.glass-nav::-webkit-scrollbar { display: none; }
.glass-nav button {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--mut);
  font-size: 12px;
  font-weight: 600;
  box-shadow: none;
  white-space: nowrap;
}
.glass-nav button:hover { color: var(--ink); background: color-mix(in srgb, var(--bl) 60%, transparent); }
.glass-nav button[aria-current='page'] { color: var(--on-accent); background: transparent; box-shadow: none; }
.glass-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.nav-lens, .tab-lens {
  position: absolute;
  z-index: 0;
  top: 5px;
  bottom: 5px;
  left: 0;
  pointer-events: none;
  border-radius: 999px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--hema) 85%, white), var(--hema));
  box-shadow: inset 0 1px 1px #ffffff55, inset 0 -1px 1px #00000018, 0 3px 9px #173e3020;
  transition: transform .55s var(--spring), width .55s var(--spring);
}
.glass-nav .nav-count { min-width: 20px; padding: 1px 5px; margin: 0; font-size: 10px; color: var(--hema); background: var(--bl); box-shadow: none; }
.glass-nav [aria-current='page'] .nav-count { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.glass-nav .nav-count.live, .glass-nav .nav-count.unread { background: var(--eosl); color: var(--eos); }
.masthead-tools { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.workspace-tag { font-size: 10px; letter-spacing: .4px; color: var(--mut); white-space: nowrap; }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; padding: 8px; border: 1px solid var(--ln); border-radius: 50%; background: var(--glass); box-shadow: var(--glass-shadow); }
.theme-toggle:hover { background: var(--bl); transform: rotate(-12deg); }
.theme-toggle svg { width: 16px; height: 16px; stroke: var(--hema); stroke-width: 1.5; fill: none; }

/* Utility and replay controls use the same surfaces, without competing with the navigation. */
.workspace-status { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 32px 0; max-width: 1664px; margin: auto; }
.data-status { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0; margin: 0; border: 0; background: none; color: var(--mut); }
.data-status b { font-size: 10px; font-weight: 500; }
.data-status > span:last-child { font-size: 10px; color: var(--mut); margin: 0; }
.status-dot { width: 5px; height: 5px; margin: 0; background: var(--amb); }
.data-status[data-state='ready'] .status-dot { background: var(--grn); }
.kbd-help { color: var(--mut); margin: 0; font-size: 10px; line-height: 1.5; }
.kbd-help kbd { color: var(--mut); background: var(--sf); border-color: var(--ln); font-size: 9px; }
.topbar { position: relative; top: auto; min-height: 62px; margin: 0 auto; max-width: 1664px; padding: 12px 32px; background: transparent; border: 0; flex-wrap: wrap; gap: 12px; }
.tb-title { flex: 1 1 180px; }
.tb-title h1 { font-size: 14px; color: var(--mut); }
.tb-desc { color: var(--mut); font-size: 11px; }
.replay { flex: 0 1 auto; flex-wrap: wrap; }
.replay-state { font-size: 11px; }
.replay-state b { font-size: 11px; }
.inject { flex-wrap: wrap; }
.inject-label { display: inline; font-size: 10px; }
.rb { padding: 7px 10px; min-height: 32px; font-size: 11px; border-radius: 9px; background: var(--glass); }
.rb.primary, :root .btn.p { background: var(--hema); border-color: var(--hema); color: var(--on-accent); }
.rb.primary:hover:not(:disabled), :root .btn.p:hover:not(:disabled) { background: color-mix(in srgb, var(--hema) 88%, var(--ink)); }
.tb-right { gap: 10px; }
.clock { font-size: 11px; font-weight: 500; }
#connection { font-size: 10px; }
#connection::before { width: 5px; height: 5px; margin-right: 5px; }
.notice { padding: 8px 32px; border-block: 1px solid var(--ln2); background: color-mix(in srgb, var(--sf) 42%, transparent); font-size: 10px; }
.notice [data-testid='banner-research'] { color: var(--mut); font-weight: 600; }
.wrap { max-width: 1664px; padding: 26px 32px 0; }
.quiet { font-size: 10px; border-top: 1px solid var(--ln); padding: 20px 0; margin-top: 32px; }

/* Worklist: the human task leads; live evidence and uncertainty are in plain sight. */
.review-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.review-intro .eyebrow { font-size: 9px; letter-spacing: 2px; color: var(--hema); margin: 0 0 8px; }
.review-intro h2 { font: 400 clamp(30px, 3vw, 44px)/1.12 var(--display); letter-spacing: -1.4px; margin: 0; color: var(--ink); }
.review-intro p:last-child { margin: 9px 0 0; color: var(--mut); font-size: 12px; }
.evaluation-link { align-self: flex-end; display: flex; gap: 18px; padding-bottom: 4px; color: var(--hema); text-decoration: none; font-size: 11px; border-bottom: 1px solid var(--ln); }
.evaluation-link:hover { border-color: var(--hema); }
.ai-overview { display: grid; grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(130px, .7fr)); margin-bottom: 22px; padding: 22px; gap: 20px; border: 1px solid var(--ln); border-radius: 22px; background: linear-gradient(120deg, var(--glass), color-mix(in srgb, var(--bl) 65%, var(--sf))); box-shadow: var(--glass-shadow); }
.section-kicker { display: flex; align-items: center; gap: 7px; color: var(--hema); font-size: 9px; letter-spacing: 1.3px; font-weight: 600; }
.ai-orbit { position: relative; display: inline-block; width: 13px; height: 13px; border: 1px solid var(--hema); border-radius: 50%; }
.ai-orbit::before { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--hema); }
.ai-overview h3 { margin: 9px 0 7px; color: var(--ink); font-size: 15px; font-weight: 600; letter-spacing: -.3px; }
.ai-overview-copy p { max-width: 65ch; font-size: 11px; line-height: 1.7; color: var(--mut); margin: 0; }
.ai-source { display: block; font-size: 9px; margin-top: 10px; color: var(--mut); }
.ai-signal { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; text-align: left; border: 0; border-left: 1px solid var(--ln); background: transparent; padding: 6px 0 5px 20px; border-radius: 0 12px 12px 0; }
.ai-signal:hover, .ai-signal[aria-pressed='true'] { background: color-mix(in srgb, var(--sf) 60%, transparent); }
.signal-value { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; font: 400 35px/1 var(--display); color: var(--hema); letter-spacing: -1px; }
.signal-value svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; margin-right: 9px; }
.ai-signal b { font-size: 11px; font-weight: 600; }
.ai-signal > span:last-child { font-size: 10px; color: var(--mut); max-width: 20ch; }
.wl-summary { border-radius: var(--radius); padding: 18px 20px; background: var(--glass); box-shadow: var(--glass-shadow); gap: 22px; }
.comp-head [data-testid='open-count'] { font-family: var(--display); font-weight: 500; font-size: 30px; }
.comp-bar { height: 6px; margin-block: 12px; border-radius: 10px; }
.seg-t1 { background: var(--eos); }
.seg-t2 { background: color-mix(in srgb, var(--eos) 52%, var(--sf)); }
.seg-t3 { background: color-mix(in srgb, var(--amb) 60%, var(--sf)); }
.seg-t4 { background: color-mix(in srgb, var(--mut) 30%, var(--sf)); }
.next-btn { min-width: 205px; border-radius: 13px; padding: 11px 17px; }
.held-hint { font-size: 10px; margin: 12px 2px 18px; }
.wl-toolbar { gap: 9px; padding: 0; margin-bottom: 16px; }
.seg, .search, .sel select { border-radius: 10px; background: var(--glass); border-color: var(--ln); }
.seg { padding: 3px; gap: 2px; }
.seg button { border-radius: 7px; min-height: 29px; padding: 5px 10px; font-size: 11px; border: 0; }
.seg button[aria-pressed='true'] { background: var(--bl); color: var(--hema); box-shadow: 0 1px 3px #244b3c08; }
.search { min-height: 37px; }
.search input { font-size: 11px; }
.sel select { min-height: 37px; font-size: 11px; }
.tog { font-size: 11px; }
.how { margin-left: 0; }
.wl-table-wrap { border-radius: 16px; box-shadow: var(--shadow); }
#app[data-replay-busy='true'] .wl-table-wrap { cursor: progress; opacity: .65; }
#app[data-replay-busy='true'] .wl-table tr.row { pointer-events: none; }
.wl-table thead th { height: 39px; font-size: 10px; letter-spacing: .25px; background: var(--sf2); }
.wl-table tr.row td { padding-block: 12px; font-size: 12px; }
.wl-table tr.grp th { background: var(--sf2); height: 34px; font-size: 11px; top: calc(var(--stick, 0px) + 39px); }
.wl-table tr.row td.c-set { overflow: visible; white-space: normal; }
.c-set .chips { flex-wrap: wrap; gap: 3px; }
.wl-table .chip { font-size: 10px; padding: 2px 6px; border-radius: 5px; }
.wl-table th.c-case { width: 178px; }
.wl-table th.c-lane { width: 115px; }
.wl-table th.c-p { width: 118px; }
.wl-table th.c-set { width: 150px; }
.wl-table th.c-next { width: 145px; }
.wl-table th.c-wait { width: 118px; }
.wl-table .cid { font-weight: 600; }
.wl-table td.c-p { text-overflow: clip; }
.wl-table td.c-p .mbar { width: 28px; }
tr.row:hover { background: var(--sf2); }

/* Case review and secondary screens share the same typography and surface scale. */
.card { border-radius: var(--radius); background: var(--sf); border-color: var(--ln); box-shadow: var(--shadow); }
.card h2, .cv .card h2, .mx h2 { color: var(--ink); font-family: var(--font); letter-spacing: -.25px; }
.card-h { border-color: var(--ln2); }
.btn { border-radius: 10px; padding: 7px 12px; min-height: 34px; font-size: 12px; }
.cv-header { border-radius: 20px; padding: 22px; }
.cv .cv-id h2 { font-family: var(--display); font-weight: 500; font-size: 26px !important; letter-spacing: -.7px; }
.cv-glance { background: var(--sf2); border-radius: 13px; padding: 12px 16px; }
.cv .tabs { position: relative; isolation: isolate; display: flex; width: fit-content; max-width: 100%; gap: 3px; margin: 18px 0 0; padding: 5px; border: 1px solid var(--ln); border-radius: 999px; background: var(--glass); overflow-x: auto; scrollbar-width: none; }
.cv .tabs button { position: relative; z-index: 1; flex: none; background: transparent; border: 0; border-radius: 999px; padding: 9px 17px; color: var(--mut); font-size: 12px; white-space: nowrap; }
.cv .tabs button[aria-selected='true'] { color: var(--on-accent); background: transparent; }
.cv .tabs .tab-n { background: var(--bl); color: var(--hema); }
.cv .tabs [aria-selected='true'] .tab-n { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.cv .tab-lens { transition: none; }
.evidence-brief { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px; margin: 20px 0; padding: 22px 24px; border: 1px solid var(--ln); border-radius: 20px; background: linear-gradient(115deg, var(--glass), var(--bl)); box-shadow: var(--glass-shadow); }
.brief-main h3 { font: 400 25px/1.25 var(--display); letter-spacing: -.6px; margin: 10px 0 7px; }
.brief-main p { max-width: 85ch; color: var(--mut); font-size: 12px; margin: 0 0 10px; line-height: 1.65; }
.brief-status { color: var(--hema); font-size: 10px; }
.brief-actions { display: grid; gap: 8px; min-width: 208px; }
.brief-actions .btn { display: flex; align-items: center; justify-content: space-between; }
.brief-model { color: var(--mut); font-size: 9px; line-height: 1.7; overflow-wrap: anywhere; }
.cv .cv-main { min-width: 0; }
.ai-card::before { height: 2px; background: linear-gradient(90deg, var(--hema), color-mix(in srgb, var(--hema) 20%, transparent)); }
.ai-mark { background: var(--hema); border-radius: 50%; width: 13px; height: 13px; box-shadow: 0 0 0 4px var(--bl); }
.ai-tabpanel { max-width: none; }
.ai-tabpanel .ai-card { max-width: 1120px; margin-inline: auto; padding: 24px; }
.ai-md { font-size: 14px; }
.ai-foot { max-width: 100ch; }
.casebar { border-radius: 12px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.mock, .offline, .simbanner, .flag, .verdict { border-radius: 12px; }
.empty-state { border-radius: var(--radius); }
.empty-state h2 { font-family: var(--display); font-size: 25px; font-weight: 400; }
.toasts { z-index: 60; }
.toast-item { border-radius: 16px; box-shadow: var(--glass-shadow), 0 8px 28px #173e301a; }

@media (max-width: 1270px) {
  .masthead { gap: 12px; grid-template-columns: 160px minmax(0, 1fr) 38px; padding-inline: 24px; }
  .workspace-tag { display: none; }
  .glass-nav { justify-self: center; }
  .glass-nav button { padding-inline: 12px; font-size: 11px; }
  .wl-table th.c-case { width: 155px; }
  .wl-table th.c-lane { width: 100px; }
  .ai-overview { gap: 16px; grid-template-columns: minmax(250px, 1.5fr) repeat(3, minmax(120px, .7fr)); }
}
@media (min-width: 1101px) {
  .wl-table th.c-lane, .wl-table tr.row td.c-lane { visibility: visible; font-size: 11px; padding-inline: 10px; }
  .wl-table .lane-inline { display: none; }
}
@media (max-width: 1100px) {
  .wl-table tr.grp th { top: var(--stick, 0px); }
  .wl-table tr.row td { padding-block: 0; }
}
@media (max-width: 1000px) {
  .masthead { grid-template-columns: 1fr auto; gap: 16px; padding: 16px 24px 14px; }
  .glass-nav { grid-column: 1 / -1; grid-row: 2; width: fit-content; justify-self: center; }
  .masthead-tools { grid-column: 2; grid-row: 1; }
  .workspace-tag { display: inline; }
  .workspace-status, .topbar, .notice { padding-inline: 24px; }
  .wrap { padding-inline: 24px; }
  .topbar { gap: 12px; }
  .replay { order: 3; width: 100%; justify-content: space-between; }
  .tb-right { margin-left: auto; }
  .ai-overview { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ai-overview-copy { grid-column: 1 / -1; }
  .ai-signal:first-of-type { border-left: 0; padding-left: 0; }
  .kbd-help { display: none; }
}
@media (max-width: 640px) {
  .masthead { gap: 12px; padding: 12px 16px; }
  .masthead .brand { font-size: 22px; }
  .masthead .brand img { width: 36px; height: 36px; }
  .masthead .brand-sub { font-size: 9px; }
  .workspace-tag { font-size: 9px; }
  .masthead-tools { gap: 10px; }
  .glass-nav { width: 100%; justify-self: stretch; }
  .glass-nav button { min-height: 39px; padding-inline: 12px; font-size: 11px; }
  .workspace-status { padding: 10px 16px 0; }
  .data-status > span:last-child { font-size: 9px; }
  .topbar { padding: 12px 16px; min-height: 0; }
  .tb-title { flex-basis: 140px; }
  .tb-right { display: flex; }
  .clock { display: none; }
  .replay { display: flex; flex-wrap: wrap; gap: 10px; }
  .replay-state { width: auto; flex: 1 1 auto; }
  .replay-btns { flex: none; }
  .inject { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; border: 0; padding: 0; gap: 6px; }
  .inject-label { grid-column: 1 / -1; font-size: 10px; }
  .inject .rb { font-size: 10px; padding: 7px; justify-content: center; }
  .notice { padding: 7px 16px; font-size: 9px; }
  .wrap { padding: 22px 16px 0; }
  .review-intro { display: block; position: relative; margin-bottom: 18px; }
  .review-intro h2 { font-size: 31px; }
  .review-intro p:last-child { font-size: 11px; max-width: none; }
  .evaluation-link { font-size: 10px; gap: 8px; width: fit-content; margin-top: 12px; }
  .ai-overview { padding: 18px 16px; gap: 16px 10px; border-radius: 18px; }
  .ai-overview h3 { font-size: 14px; }
  .ai-signal { padding: 0 0 0 10px; gap: 6px; }
  .signal-value { font-size: 29px; }
  .signal-value svg { width: 11px; margin-right: 3px; }
  .ai-signal b { font-size: 10px; line-height: 1.4; }
  .ai-signal > span:last-child { font-size: 9px; line-height: 1.5; }
  .wl-summary { padding: 16px; gap: 14px; }
  .next-btn { min-width: 0; }
  .wl-table tr.row td { padding-block: 0; }
  .wl-table tr.row { padding-block: 14px; }
  .wl-table th.c-case, .wl-table th.c-lane { width: auto; }
  .held-hint { font-size: 10px; }
  .evidence-brief { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 16px; }
  .brief-main h3 { font-size: 24px; }
  .brief-actions { grid-template-columns: 1fr 1fr; min-width: 0; }
  .brief-actions .btn { gap: 6px; font-size: 11px; padding-inline: 9px; text-align: left; }
  .brief-model { grid-column: 1 / -1; }
  .cv-header { padding: 16px; }
  .cv .tabs { width: 100%; }
  .cv .tabs button { padding: 9px 11px; font-size: 11px; }
  .cv .cv-id h2 { font-size: 23px !important; }
  .ai-tabpanel .ai-card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Type system: one display face with the emblem's soft terminals, one interface face. Figures stay tabular. */
body { font-family: var(--font); font-optical-sizing: auto; font-feature-settings: 'ss01'; }
h1, .mx-section-head h2, .cv .cv-id h2, .empty-state h2, .big, .bigp { font-family: var(--display); font-variation-settings: var(--display-axes); }
h1 { font-weight: 480; letter-spacing: -.02em; }
table, .num, time, [role=timer] { font-variant-numeric: tabular-nums; }
/* Badges inside display headings keep the interface face. */
h1 .tier, h2 .tier, h1 .pill, h2 .pill, h2 .chip { font-family: var(--font); font-variation-settings: normal; letter-spacing: 0; }
/* Phones: a compact wordmark so the masthead keeps one line per item. */
@media (max-width: 640px) {
  .masthead .brand { font-size: 21px; gap: 8px; }
  .masthead .brand img { width: 32px; height: 32px; }
  .masthead .brand-sub { white-space: nowrap; font-size: 10px; }
}
