@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/static/fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/static/fonts/JetBrainsMono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f2f4f1;
  --surface: #ffffff;
  --surface-2: #f7f8f6;
  --surface-3: #e9ede9;
  --surface-hover: #edf3ee;
  --surface-hover-strong: #e2eae3;
  --line: #d8ded8;
  --line-strong: #bbc5bc;
  --ink: #111512;
  --ink-soft: rgba(17, 21, 18, .74);
  --muted: #505a52;
  --muted-2: #657067;
  --mint: #19704a;
  --mint-solid: #2f9a6b;
  --mint-solid-hover: #27845b;
  --mint-hover: #115c3c;
  --mint-dim: rgba(25, 112, 74, .08);
  --mint-line: rgba(25, 112, 74, .34);
  --mint-scroll: rgba(25, 112, 74, .28);
  --mint-scroll-hover: rgba(25, 112, 74, .56);
  --platinum: #354039;
  --platinum-soft: rgba(53, 64, 57, .38);
  --amber: #805407;
  --amber-dim: rgba(128, 84, 7, .09);
  --amber-line: rgba(128, 84, 7, .38);
  --red: #983d2e;
  --red-dim: rgba(152, 61, 46, .08);
  --red-line: rgba(152, 61, 46, .38);
  --button-ink: #07110b;
  --code-surface: #eef1ed;
  --capacity-current: #89948c;
  --radius: 3px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0a0a0c;
  --surface: #121215;
  --surface-2: #17171b;
  --surface-3: #1c1c21;
  --surface-hover: #1a201d;
  --surface-hover-strong: #202823;
  --line: #26262c;
  --line-strong: #34343c;
  --ink: #f2f2f4;
  --ink-soft: rgba(242, 242, 244, .74);
  --muted: #a0a0aa;
  --muted-2: #86868f;
  --mint: #4ecd89;
  --mint-solid: #4ecd89;
  --mint-solid-hover: #70dca1;
  --mint-hover: #70dca1;
  --mint-dim: rgba(78, 205, 137, .11);
  --mint-line: rgba(78, 205, 137, .36);
  --mint-scroll: rgba(78, 205, 137, .28);
  --mint-scroll-hover: rgba(78, 205, 137, .55);
  --platinum: #d5d9e2;
  --platinum-soft: rgba(213, 217, 226, .42);
  --amber: #d5a441;
  --amber-dim: rgba(213, 164, 65, .1);
  --amber-line: rgba(213, 164, 65, .4);
  --red: #d46d58;
  --red-dim: rgba(212, 109, 88, .1);
  --red-line: rgba(212, 109, 88, .4);
  --button-ink: #07110b;
  --code-surface: #0d0d10;
  --capacity-current: #404048;
}

* { box-sizing: border-box; }
.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; }
main .grid-2:has(.panel > table), main .grid-2:has(.panel > .table-region) { grid-template-columns: minmax(0, 1fr); }
main .grid-2:has(.timeline-item) { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.timeline-item.stack-sm > strong, .timeline-item.stack-sm > small { display: block; }

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  scrollbar-color: var(--mint-scroll) transparent;
  scrollbar-width: thin;
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  font-weight: 320;
  line-height: 1.55;
  letter-spacing: .005em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 3px;
}

::selection { background: var(--mint-solid); color: var(--button-ink); }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--mint-scroll); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--mint-scroll-hover); }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  min-height: 44px;
  transform: translateY(-180%);
  border: 1px solid var(--mint);
  border-radius: var(--radius);
  background: var(--surface-3);
  color: var(--ink);
  font: 600 12px/1 var(--sans);
  transition: transform 160ms var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.shell { min-height: 100vh; display: grid; grid-template-columns: 260px minmax(0, 1fr); }

.sidebar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  height: 100vh;
  min-height: 0;
  flex-direction: column;
  padding: 22px 16px 18px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.brand {
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 12px;
  padding: 0 8px 16px;
}

.brand-symbol { display: block; width: 36px; height: 36px; flex: 0 0 auto; }
:root[data-theme="dark"] .brand-symbol, :root[data-theme="dark"] .login-emblem { filter: brightness(0) invert(1); }

.brand strong, .brand small { display: block; }
.brand strong { color: var(--ink); font: 620 15px/1.15 var(--display); letter-spacing: -.02em; }
.brand small { margin-top: 4px; color: var(--muted-2); font: 500 10px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; }

.nav-drawer { position: relative; min-height: 0; flex: 1; overflow: hidden; }
.nav-drawer > summary { display: none; }
.nav-drawer[data-overflow="true"]::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 34px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  content: "";
  pointer-events: none;
}

.main-nav {
  position: absolute;
  inset: 0;
  display: grid;
  height: 100%;
  align-content: start;
  gap: 16px;
  padding: 6px 0 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.nav-group { display: grid; gap: 2px; padding-top: 13px; border-top: 1px solid var(--line); }
.nav-group:first-child { padding-top: 0; border-top: 0; }
.nav-group-label {
  padding: 0 10px 5px;
  color: var(--muted-2);
  font: 600 10px/1 var(--sans);
  letter-spacing: .13em;
  text-transform: lowercase;
}

.main-nav a {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 390;
  transition: color 140ms var(--ease), background-color 140ms var(--ease), border-color 140ms var(--ease);
}

.main-nav a::before {
  width: 4px;
  height: 4px;
  margin-right: 10px;
  border: 1px solid var(--muted-2);
  content: "";
}

.main-nav a:hover { background: var(--surface-hover); color: var(--platinum); }
.main-nav a.active, .main-nav a[aria-current="page"] {
  border-color: var(--mint-line);
  background: var(--mint-dim);
  color: var(--ink);
}

.main-nav a.active::before, .main-nav a[aria-current="page"]::before { border-color: var(--mint); background: var(--mint); }

.sidebar-bottom {
  display: grid;
  gap: 5px;
  padding: 12px 7px 0;
  border-top: 1px solid var(--line);
}

.utility-menu summary, .link-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  padding: 0 7px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-align: left;
}

.utility-menu summary { cursor: pointer; list-style: none; }
.utility-menu summary::-webkit-details-marker { display: none; }
.utility-menu summary::after { margin-left: auto; color: var(--mint); font-family: var(--mono); content: "+"; }
.utility-menu[open] summary::after { content: "−"; }
.utility-menu summary:hover, .link-button:hover { background: var(--surface-2); color: var(--ink); }
.utility-links { display: grid; max-height: 250px; padding: 5px 0; overflow-y: auto; }
.utility-links a { display: flex; min-height: 44px; align-items: center; padding: 0 8px; color: var(--muted); font-size: 11px; }
.utility-links a:hover { color: var(--mint); }

.main { min-width: 0; padding: 0 clamp(20px, 3vw, 48px) 56px; }
.topbar {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.workspace-context { display: flex; min-width: 0; align-items: center; gap: 11px; }
.signal { width: 6px; height: 6px; flex: 0 0 auto; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-dim); }
.topbar .eyebrow { margin: 0; color: var(--platinum); font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; }
.asof { color: var(--muted-2); font: 500 11px/1 var(--sans); }
.user-chip { display: flex; min-height: 44px; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; }
.user-chip span { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line-strong); border-radius: 2px; background: var(--surface-2); color: var(--mint); font: 600 10px/1 var(--mono); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.theme-toggle {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--surface-2);
  color: var(--muted);
  font: 600 11px/1 var(--sans);
  transition: color 140ms var(--ease), background-color 140ms var(--ease), border-color 140ms var(--ease);
}
.theme-toggle:hover { border-color: var(--mint-line); background: var(--surface-hover-strong); color: var(--mint); }
.theme-toggle svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }
.theme-toggle [data-theme-icon="light"] { display: none; }
:root[data-theme="dark"] .theme-toggle [data-theme-icon="light"] { display: block; }
:root[data-theme="dark"] .theme-toggle [data-theme-icon="dark"] { display: none; }
.public-theme-toggle {
  position: fixed;
  z-index: 20;
  top: max(clamp(24px, 5vw, 72px), calc((100vh - 656px) / 2 + 18px));
  right: max(calc(clamp(24px, 5vw, 72px) + 12px), calc((100vw - 1060px) / 2 + 18px));
  border-color: transparent;
  background: transparent;
}
.public-theme-toggle [data-theme-label] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 42px 0 27px; }
.page-heading > div:first-child { min-width: 0; }
.page-heading h1 {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font: 480 clamp(34px, 4.2vw, 56px)/.98 var(--display);
  font-variation-settings: "opsz" 56, "wdth" 95;
  letter-spacing: -.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.page-heading p { max-width: 72ch; margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; text-wrap: pretty; }
.page-heading > div > span.eyebrow:first-child, .login-card > span.eyebrow:first-child { display: none; }
.heading-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.eyebrow { display: block; margin-bottom: 10px; color: var(--muted-2); font: 400 12px/1 var(--display); font-variation-settings: "opsz" 12, "wdth" 100; letter-spacing: .04em; text-transform: lowercase; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.metric { min-width: 0; min-height: 122px; padding: 20px; border: 0; border-radius: 0; background: var(--surface); }
.metric small { color: var(--muted); font-size: 10px; letter-spacing: .02em; }
.metric strong { display: block; margin-top: 20px; color: var(--ink); font: 480 clamp(25px, 2.4vw, 34px)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric .delta { display: block; margin-top: 9px; color: var(--muted-2); font: 500 11px/1.4 var(--sans); }
.metric.featured { position: relative; background: var(--surface-2); }
.metric.featured::before { display: none; }
.metric.featured strong { color: var(--ink); }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr); gap: 16px; margin-top: 16px; }
.grid-even { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { min-width: 0; padding: 22px 0; overflow-wrap: anywhere; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
.panel.attention-panel,
.panel:has(> form),
.panel:has(> .form-grid),
.panel.household-results,
.panel.priority-panel { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.subpanel, .readiness-item { min-width: 0; padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.subpanel:last-child, .readiness-item:last-child { border-bottom: 0; }
.subpanel h3 { margin: 0; font: 500 16px/1.25 var(--display); }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.panel-header h2, .panel h2 { margin: 0; font: 500 19px/1.2 var(--display); letter-spacing: -.018em; }
.panel-header a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; padding-inline: 4px; color: var(--mint); font-size: 11px; font-weight: 500; }
.panel-header a:hover { color: var(--mint-hover); }
.touch-link { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
.table-subline a, small > a, .compact a, .filter-bar a, .delta > a, .task-item a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; }
.panel-subtitle { max-width: 760px; margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

.panel .metric-grid { border: 0; }
.panel .metric { min-height: 104px; background: var(--surface-2); }
.panel .metric.featured::before { display: none; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--mint);
  border-radius: 2px;
  background: var(--mint-solid);
  color: var(--button-ink);
  font: 650 12px/1 var(--sans);
  letter-spacing: .01em;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease), color 140ms var(--ease);
}

.button:hover { border-color: var(--mint-solid-hover); background: var(--mint-solid-hover); }
.button:disabled { cursor: not-allowed; opacity: .42; }
.button.secondary { border-color: var(--line-strong); background: transparent; color: var(--platinum); }
.button.secondary:hover { border-color: var(--mint-line); background: var(--surface-hover-strong); color: var(--mint); }
.button.ghost { border-color: transparent; background: var(--surface-3); color: var(--platinum); }
.button.ghost:hover { border-color: var(--line-strong); color: var(--mint); }
.button.small { min-height: 44px; padding: 0 12px; font-size: 11px; }

table { width: 100%; border-collapse: collapse; }
th { padding: 10px 9px; border-bottom: 1px solid var(--line-strong); color: var(--muted-2); font-size: 10px; font-weight: 500; text-align: left; letter-spacing: .025em; text-transform: none; }
td { padding: 14px 9px; border-bottom: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; vertical-align: middle; }
tbody tr:hover { background: var(--surface-hover); }
tr:last-child td { border-bottom: 0; }
td strong { display: block; color: var(--ink); font-size: 12px; font-weight: 520; }
td small { color: var(--muted-2); }
td .table-subline { display: block; margin-top: 4px; line-height: 1.4; }
td a:hover strong { color: var(--mint); }
td > a { display: flex; min-width: 44px; min-height: 44px; flex-direction: column; justify-content: center; }
.numeric { text-align: right; font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 7px; border: 1px solid var(--mint-line); border-radius: 2px; background: var(--mint-dim); color: var(--mint); font-size: 10px; font-weight: 520; text-transform: capitalize; }
.status::before { width: 5px; height: 5px; background: currentColor; content: ""; }
.status.high, .status.overdue, .status.watch { border-color: var(--red-line); background: var(--red-dim); color: var(--red); }
.status.medium, .status.due { border-color: var(--amber-line); background: var(--amber-dim); color: var(--amber); }
.status-stack { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.status-stack small { display: block; line-height: 1.35; }

.allocation-list { display: grid; gap: 17px; }
.allocation-row { display: grid; gap: 8px; }
.allocation-label { display: flex; justify-content: space-between; gap: 16px; font-size: 10px; }
.allocation-label span:last-child { color: var(--muted); font-family: var(--mono); font-size: 10px; font-variant-numeric: tabular-nums; text-align: right; }
.track { height: 4px; overflow: hidden; background: var(--surface-3); }
.track > span { display: block; height: 100%; background: var(--mint); }
.track > span.over { background: var(--amber); }

.task-list { display: grid; }
.task-item { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 11px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.task-item:last-child { border-bottom: 0; }
.task-dot { width: 7px; height: 7px; margin-top: 5px; border: 1px solid var(--mint); background: var(--mint-dim); }
.task-item strong { display: block; font-size: 12px; font-weight: 520; }
.task-item small { color: var(--muted-2); font-size: 11px; }

.attention-panel { margin-top: 16px; }
.attention-context { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-bottom: 8px; background: transparent; }
.attention-context-item { display: grid; min-height: 86px; gap: 4px; padding: 14px 16px; background: var(--surface-2); }
.attention-context-item + .attention-context-item { border-left: 1px solid var(--line); }
.attention-context-item:hover { background: var(--surface-hover); }
.attention-context-item small { color: var(--muted-2); font: 500 9px/1 var(--mono); letter-spacing: .055em; }
.attention-context-item strong { color: var(--ink); font-size: 12px; font-weight: 540; }
.attention-context-item span { color: var(--muted); font-size: 12px; line-height: 1.5; }
.attention-list { display: grid; }
.attention-item { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 240px); gap: 22px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.attention-item:last-child { border-bottom: 0; }
.attention-title-row { display: flex; align-items: center; gap: 9px; }
.attention-title-row strong { color: var(--ink); font-size: 12px; font-weight: 560; }
.attention-why, .attention-next { max-width: 88ch; margin: 9px 0 0; color: var(--ink-soft); font-size: 12px; line-height: 1.55; }
.attention-next { color: var(--muted); }
.attention-why span, .attention-next span { display: inline-block; min-width: 88px; color: var(--muted-2); font: 500 9px/1.45 var(--mono); letter-spacing: .05em; }
.attention-item-meta { display: grid; align-content: start; justify-items: start; gap: 8px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.attention-item-meta b { color: var(--muted-2); font-weight: 540; }
.attention-item-meta .button { margin-top: 3px; }
.attention-overflow { margin: 13px 0 0; color: var(--muted-2); font-size: 12px; line-height: 1.5; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 7px; }
.field.span-2 { grid-column: 1 / -1; }
.field label, .field-label { color: var(--muted); font-size: 10px; font-weight: 450; letter-spacing: .025em; text-transform: none; }
.field > small { color: var(--muted-2); font-size: 10px; line-height: 1.45; overflow-wrap: anywhere; }
.field input, .field select, .field textarea, .inline-form input {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: none;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 11px;
}

.field textarea { min-height: 100px; resize: vertical; line-height: 1.55; }
.provider-request-form > label, .review-form > label, .provider-evidence-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}
.provider-request-form input, .provider-request-form select, .provider-request-form textarea,
.review-form input, .review-form select, .review-form textarea,
.provider-evidence-form input, .provider-evidence-form select, .provider-evidence-form textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  outline: none;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 12px;
}
.provider-request-form textarea, .review-form textarea, .provider-evidence-form textarea { min-height: 92px; resize: vertical; line-height: 1.55; }
.provider-request-form input:hover, .provider-request-form select:hover, .provider-request-form textarea:hover,
.review-form input:hover, .review-form select:hover, .review-form textarea:hover,
.provider-evidence-form input:hover, .provider-evidence-form textarea:hover { border-color: var(--mint-line); background: var(--surface-hover-strong); }
.provider-request-form input:focus, .provider-request-form select:focus, .provider-request-form textarea:focus,
.review-form input:focus, .review-form select:focus, .review-form textarea:focus,
.provider-evidence-form input:focus, .provider-evidence-form textarea:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-dim); }
.sandbox-json { min-height: 360px !important; font-size: 12px; line-height: 1.55; tab-size: 2; }
form input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
form select,
form textarea {
  min-height: 44px;
}
details > summary { display: flex; min-width: 44px; min-height: 44px; align-items: center; cursor: pointer; }
.page-heading a.eyebrow { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; margin-bottom: 4px; }
.field input:hover, .field select:hover, .field textarea:hover, .inline-form input:hover { border-color: var(--mint-line); background: var(--surface-hover-strong); }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus { border-color: var(--mint); box-shadow: 0 0 0 3px var(--mint-dim); }
.form-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.inline-form { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
.inline-form input { min-width: 0; flex: 1; }
.check { display: flex; min-height: 44px; align-items: center; gap: 8px; color: var(--muted); font-size: 11px; }
.check input { width: 16px; height: 16px; accent-color: var(--mint); }
.check span, .check small { display: block; }
.check small { margin-top: 2px; }
.compact-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.compact-metrics .metric { min-height: 100px; }
.household-proposal-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .9fr); }
.household-results .metric strong { font-size: clamp(22px, 2.1vw, 30px); white-space: nowrap; }
.readiness-item { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.readiness-item strong, .readiness-item small { display: block; }
.readiness-item strong { font-size: 11px; }
.readiness-item small { margin-top: 3px; color: var(--muted-2); font-size: 10px; }

.detail-hero { position: relative; margin-bottom: 16px; padding: 28px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface-2); color: var(--ink); }
.detail-hero::before { display: none; }
.detail-hero .eyebrow { color: var(--mint); }
.detail-hero h1 { margin: 0; font: 480 clamp(30px, 3vw, 40px)/1.02 var(--display); font-variation-settings: "opsz" 40, "wdth" 95; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: balance; }
.detail-hero p { color: var(--ink-soft); }
.detail-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; margin-top: 28px; border: 1px solid var(--line); background: var(--line); }
.detail-stats > * { padding: 12px; background: var(--surface); }
.detail-stats small { display: block; color: var(--muted-2); font: 500 10px/1.25 var(--sans); letter-spacing: .025em; text-transform: none; }
.detail-stats strong { display: block; margin-top: 7px; font-family: var(--mono); font-size: 11px; font-variant-numeric: tabular-nums; }

.timeline { display: grid; }
.timeline-item { position: relative; padding: 0 0 20px 22px; border-left: 1px solid var(--line-strong); }
.timeline-item::before { position: absolute; top: 2px; left: -4px; width: 7px; height: 7px; border: 1px solid var(--mint); background: var(--surface); content: ""; }
.timeline-item:last-child { border-left-color: transparent; }
.timeline-item small { color: var(--muted-2); font-size: 10px; }
.timeline-item h3 { margin: 4px 0 5px; font-size: 12px; }
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.6; white-space: pre-line; }

.flash { margin: 18px 0 -8px; padding: 12px 14px; border: 1px solid var(--mint-line); border-radius: 2px; background: var(--mint-dim); color: var(--mint); font-size: 11px; }
.flash.error { border-color: var(--red-line); background: var(--red-dim); color: var(--red); }
.flash.floating { position: fixed; z-index: 10; top: 20px; left: 50%; transform: translateX(-50%); }
.priority-notice { display: flex; min-height: 48px; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 14px; border: 1px solid var(--amber-line); border-radius: 2px; background: var(--amber-dim); color: var(--amber); font-size: 11px; }
.priority-notice span { color: var(--ink-soft); }
.priority-notice a { margin-left: auto; color: var(--amber); font-weight: 650; }
.priority-panel { border-color: var(--amber-line); }
.focus-workflow { width: min(760px, 100%); margin-top: 16px; }
.field-help { margin: 14px 0 0; color: var(--muted-2); font-size: 10px; }
.anchor-target { scroll-margin-top: 24px; }
.anchor-target:target { border-color: var(--mint-line); }
.request-state { display: grid; gap: 10px; align-content: start; }
.request-state .status { justify-self: start; }
.request-state small { color: var(--muted-2); }
.quiet-panel { display: grid; align-content: start; }
.error-state { display: grid; width: min(700px, 100%); min-height: 56vh; align-content: center; gap: 16px; }
.error-state h1 { max-width: 680px; margin: 0; font: 500 clamp(38px, 6vw, 72px)/.96 var(--display); letter-spacing: -.04em; }
.error-state p { max-width: 600px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.public-error { display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.text-action { color: var(--mint); font-size: 11px; font-weight: 600; }
.empty { padding: 38px 20px; color: var(--muted-2); font-size: 11px; text-align: center; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; }
.compact { margin: 5px 0 0; font-size: 10px; line-height: 1.6; }
.preline { font-size: 11px; line-height: 1.65; white-space: pre-line; }
.source-preview { max-width: 100%; max-height: 620px; margin: 0; padding: 16px; overflow: auto; border: 1px solid var(--line); border-radius: 2px; background: var(--code-surface); color: var(--platinum); font: 10px/1.6 var(--mono); overflow-wrap: anywhere; white-space: pre-wrap; }

.stack-xs { margin-top: 6px; }
.stack-sm { margin-top: 8px; }
.stack-md { margin-top: 14px; }
.stack-lg { margin-top: 16px; }
.stack-xl { margin-top: 18px; }
.stack-2xl { margin-top: 22px; }
.stack-3xl { margin-top: 24px; }
.stack-4xl { margin-top: 28px; }
.space-b-sm { margin-bottom: 12px; }
.space-b-lg { margin-bottom: 16px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.grid-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.align-right { text-align: right; }
.field-narrow { width: 105px; }
.textarea-tall { min-height: 160px; }
.editorial-lead { max-width: 65ch; color: var(--ink-soft); font: 400 clamp(16px, 1.4vw, 20px)/1.55 var(--display); font-variation-settings: "opsz" 20, "wdth" 98; letter-spacing: -.01em; text-wrap: pretty; }
.body-copy { max-width: 72ch; font-size: 12px; line-height: 1.7; white-space: pre-line; }
.legal-note { max-width: 78ch; margin: 20px 4px; color: var(--muted-2); font-size: 10px; line-height: 1.65; }
.field-help { margin: 24px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.task-note { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.is-complete { color: var(--muted-2); text-decoration: line-through; }
.metric-value-sm { font-size: 18px !important; }
.metric-value-md { font-size: 22px !important; }
.hash-value { font-size: 13px !important; }
.hash-value-lg { font-size: 15px !important; }

.track-progress {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--surface-3);
  color: var(--mint);
  appearance: none;
}
.track-progress::-webkit-progress-bar { background: var(--surface-3); }
.track-progress::-webkit-progress-value { background: var(--mint); }
.track-progress::-moz-progress-bar { background: var(--mint); }
.track-progress.over::-webkit-progress-value { background: var(--amber); }
.track-progress.over::-moz-progress-bar { background: var(--amber); }

.construction-lead { align-items: stretch; }
.chart-panel { overflow: hidden; }
.decision-chart { min-width: 0; margin: 0; }
.decision-chart figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.decision-chart figcaption strong { flex: 0 1 210px; min-width: 150px; color: var(--ink); font: 500 19px/1.2 var(--display); letter-spacing: -.018em; }
.decision-chart figcaption span { flex: 1 1 260px; max-width: 64ch; color: var(--muted); font-size: 11px; line-height: 1.55; text-align: right; }
.opportunity-charts .decision-chart figcaption { align-items: flex-start; flex-direction: column; gap: 6px; }
.opportunity-charts .decision-chart figcaption span { text-align: left; }
.chart-svg { display: block; width: 100%; height: auto; min-height: 230px; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-baseline { stroke: var(--line-strong); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-reference { stroke: var(--red); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.chart-reference-label { fill: var(--red); font: 500 9px/1 var(--mono); }
.chart-axis-label { fill: var(--muted-2); font: 400 9px/1 var(--mono); font-variant-numeric: tabular-nums; }
.chart-axis-label.y { text-anchor: end; }
.chart-axis-label.x { text-anchor: middle; }
.chart-line { fill: none; stroke-width: 2; stroke-linecap: square; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.chart-line.series-0 { stroke: var(--mint); }
.chart-line.series-1 { stroke: var(--platinum); stroke-dasharray: 7 5; opacity: .78; }
.chart-line.series-2 { stroke: var(--muted-2); stroke-dasharray: 2 6; opacity: .72; }
.chart-point { stroke: var(--surface); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.chart-point.series-0 { fill: var(--mint); }
.chart-point.series-1 { fill: var(--platinum); }
.chart-point.series-2 { fill: var(--muted-2); }
.chart-point.breach { fill: var(--red); stroke: var(--red-dim); stroke-width: 4; }
.chart-bar { vector-effect: non-scaling-stroke; }
.chart-bar.series-0 { fill: transparent; stroke: var(--platinum); stroke-width: 1; opacity: .82; }
.chart-bar.series-1 { fill: var(--mint); opacity: .9; }
.chart-bar.series-2 { fill: var(--muted-2); opacity: .65; }
.chart-bar.commitments.series-0 { fill: transparent; stroke: var(--platinum); stroke-width: 1; opacity: .8; }
.chart-bar.calls.series-1 { fill: var(--platinum); opacity: .42; }
.chart-bar.distributions.series-2 { fill: var(--mint); opacity: .9; }
.chart-bar.waterfall { fill: var(--mint); stroke: none; opacity: .88; }
.chart-bar.waterfall.total { fill: var(--platinum); opacity: .72; }
.chart-bar.waterfall.negative { fill: var(--red); opacity: .72; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 14px 20px; margin: 10px 0 0; padding: 0; color: var(--muted); font: 400 9px/1.3 var(--mono); list-style: none; }
.chart-legend li { display: inline-flex; min-height: 28px; align-items: center; gap: 7px; }
.chart-legend span { display: block; width: 18px; height: 3px; background: var(--muted-2); }
.chart-legend .series-0 span, .chart-legend .distributions span { background: var(--mint); }
.chart-legend .series-1 span { height: 1px; background: repeating-linear-gradient(90deg, var(--platinum) 0 5px, transparent 5px 8px); }
.chart-legend .series-2 span { height: 1px; background: var(--muted-2); }
.chart-legend .commitments span { height: 7px; border: 1px solid var(--platinum); background: transparent; }
.chart-legend .calls span { height: 7px; background: var(--platinum-soft); }
.chart-legend .bar-series.series-0 span { height: 7px; border: 1px solid var(--platinum); background: transparent; }
.chart-legend .bar-series.series-1 span { height: 7px; background: var(--mint); }
.chart-legend .bar-series.series-2 span { height: 7px; background: var(--muted-2); }
.chart-legend .bar-series.calls.series-1 span { background: var(--platinum-soft); }
.chart-legend .bar-series.distributions.series-2 span { background: var(--mint); }
.chart-legend .waterfall.total span { height: 7px; background: var(--platinum); }
.chart-legend .waterfall.positive span { height: 7px; background: var(--mint); }
.chart-legend .waterfall.negative span { height: 7px; background: var(--red); }

.decision-rail { background: var(--surface-2); }
.decision-rail h2 { max-width: 18ch; font-size: 25px; line-height: 1.04; }
.decision-rail > p:not(.legal-note) { margin: 16px 0 22px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.cio-decision-brief { margin-top: 16px; }
.cio-brief-cases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.cio-brief-case { min-width: 0; padding: 20px 20px 0 0; }
.cio-brief-case + .cio-brief-case { padding: 20px 0 0 20px; border-left: 1px solid var(--line); }
.cio-brief-case-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cio-brief-case h3 { margin: 0; color: var(--ink); font: 500 20px/1.1 var(--display); letter-spacing: -.02em; }
.cio-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 18px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.cio-facts > div { min-width: 0; min-height: 82px; padding: 12px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cio-facts > div:nth-child(2n) { border-right: 0; }
.cio-facts dt { color: var(--muted); font-size: 10px; letter-spacing: .02em; }
.cio-facts dd { margin: 8px 0 0; color: var(--ink); font: 450 15px/1.25 var(--display); overflow-wrap: anywhere; }
.cio-facts dd small { display: block; margin-top: 5px; color: var(--muted-2); font: 400 9px/1.4 var(--mono); }
.cio-source, .cio-breach-periods, .chart-breach-labels { display: grid; grid-template-columns: minmax(118px, .75fr) minmax(0, 2fr); gap: 10px; margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.cio-source strong, .cio-breach-periods strong, .chart-breach-labels strong { color: var(--ink-soft); font: 500 9px/1.4 var(--mono); letter-spacing: .04em; text-transform: lowercase; }
.cio-breach-periods { margin-bottom: 20px; }
.chart-breach-labels { padding-top: 12px; border-top: 1px solid var(--line); }
.decision-rail .status-callout.high { padding: 10px 12px; border: 1px solid var(--red-line); background: var(--red-dim); color: var(--red); }
.status-callout { margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-soft); font-size: 11px; line-height: 1.55; }
.decision-facts { margin: 0; }
.decision-facts div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.decision-facts dt { color: var(--muted); font-size: 10px; }
.decision-facts dd { margin: 0; color: var(--platinum); font: 500 10px/1.4 var(--mono); text-align: right; }

.capacity-list { display: grid; gap: 18px; }
.capacity-row { display: grid; grid-template-columns: minmax(150px, .85fr) minmax(260px, 3fr) minmax(90px, .55fr); align-items: center; gap: 18px; }
.capacity-label strong, .capacity-value strong { display: block; color: var(--ink); font-size: 11px; }
.capacity-label span, .capacity-value span { display: block; margin-top: 3px; color: var(--muted-2); font: 400 9px/1.35 var(--mono); }
.capacity-value { text-align: right; }
.capacity-track { position: relative; height: 18px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-3); }
.capacity-track > span { position: absolute; top: 0; bottom: 0; }
.capacity-band { background: var(--mint-dim); border-left: 1px solid var(--mint-line); border-right: 1px solid var(--mint-line); }
.capacity-current { left: 0; background: var(--capacity-current); }
.capacity-planned { border-left: 1px solid var(--surface); background: var(--platinum-soft); }
.capacity-target { top: -3px !important; bottom: -3px !important; width: 2px; background: var(--mint); }
.evidence-detail > summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; gap: 18px; color: var(--platinum); cursor: pointer; list-style: none; }
.evidence-detail > summary::-webkit-details-marker { display: none; }
.evidence-detail > summary::after { color: var(--mint); font: 500 16px/1 var(--mono); content: "+"; }
.evidence-detail[open] > summary::after { content: "−"; }
.evidence-detail > summary > span { margin-left: auto; color: var(--muted-2); font-size: 10px; font-weight: 400; }
.evidence-detail[open] > summary { margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.allocation-capacity > .evidence-detail { margin-top: 20px; padding-top: 6px; border-top: 1px solid var(--line); }
.assumption-delta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.plain-list { margin: 10px 0 0; padding: 0; list-style: none; }
.plain-list li { display: grid; gap: 3px; padding: 11px 0; border-top: 1px solid var(--line); }
.plain-list strong { color: var(--ink-soft); font-size: 10px; font-weight: 520; }
.plain-list span { color: var(--muted); font: 400 9px/1.5 var(--mono); }

.table-region { position: relative; width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-gutter: stable; }
.table-region:focus-visible { outline-offset: 1px; }
.table-region[data-overflow="true"]::after {
  position: sticky;
  right: 0;
  display: block;
  width: 56px;
  height: 1px;
  margin-top: -1px;
  margin-left: auto;
  background: var(--mint-line);
  content: "";
  pointer-events: none;
}
.table-hint { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.table-scroll-cue { display: none; }

/* Relationship pipeline stays deliberately tabular on desktop and scrolls as a
   whole on small screens: data never collapses into unreadable character columns. */
.relationship-table { min-width: 840px; table-layout: fixed; }
.relationship-table th, .relationship-table td { overflow-wrap: normal; word-break: normal; }
.relationship-table th:nth-child(1) { width: 24%; }
.relationship-table th:nth-child(2) { width: 14%; }
.relationship-table th:nth-child(3) { width: 24%; }
.relationship-table th:nth-child(4) { width: 15%; }
.relationship-table th:nth-child(5) { width: 23%; }
.relationship-table .no-wrap, .relationship-table .numeric { white-space: nowrap; }
.institutional-stats-table { min-width: 1320px !important; }
.institutional-stats-table th { white-space: nowrap; }
.institutional-stats-table th:first-child, .institutional-stats-table td:first-child { min-width: 210px; }
.institutional-stats-region[data-overflow="true"][data-at-start="true"] .table-scroll-cue { position: sticky; left: 0; z-index: 2; display: inline-flex; min-height: 28px; align-items: center; margin-bottom: 8px; padding: 0 8px; border: 1px solid var(--mint-line); border-radius: 2px; background: var(--surface-3); color: var(--mint); font: 500 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.relationship-name small, .relationship-stage small, .relationship-next small { display: block; margin-top: 5px; line-height: 1.4; }
.relationship-stage { white-space: normal; }
.relationship-probability { color: var(--muted-2); font: 400 9px/1.35 var(--mono); }
.relationship-next > span { display: block; color: var(--ink-soft); line-height: 1.45; }
.relationship-next small { color: var(--muted-2); font: 400 9px/1.35 var(--mono); }
.relationship-potential strong { display: inline; font-family: var(--mono); font-size: 10px; font-weight: 500; }
.relationship-actions { min-width: 156px; }
.relationship-action-stack { display: grid; gap: 8px; }
.relationship-transition { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.relationship-transition select { min-width: 0; min-height: 44px; }
.relationship-transition .button { width: 100%; min-height: 44px; }
.relationship-convert { padding-top: 8px; border-top: 1px solid var(--line); }
.relationship-convert > summary { min-height: 44px; color: var(--platinum); cursor: pointer; font-size: 10px; }
.relationship-convert form { display: grid; gap: 8px; margin-top: 8px; }
.relationship-convert label { display: grid; gap: 4px; color: var(--muted); font-size: 9px; }
.relationship-convert input { min-height: 44px; }

/* Intake tables use stacked evidence lines and compact, self-contained controls.
   The available queue view remains readable without relying on horizontal clipping. */
.intake-deficiency-table { min-width: 760px; table-layout: fixed; }
.intake-deficiency-table th:nth-child(1) { width: 27%; }
.intake-deficiency-table th:nth-child(2) { width: 25%; }
.intake-deficiency-table th:nth-child(3) { width: 27%; }
.intake-deficiency-table th:nth-child(4) { width: 21%; }
.intake-deficiency-reason .status { display: inline-flex; max-width: 100%; margin-bottom: 5px; white-space: normal; line-height: 1.3; }
.intake-deficiency-reason small, .intake-deficiency-owner small { display: block; margin-top: 4px; color: var(--muted-2); line-height: 1.4; }
.intake-deficiency-owner { overflow-wrap: anywhere; }
.intake-records-table { min-width: 760px; table-layout: fixed; }
.intake-records-table th:nth-child(1) { width: 30%; }
.intake-records-table th:nth-child(2) { width: 15%; }
.intake-records-table th:nth-child(3) { width: 14%; }
.intake-records-table th:nth-child(4) { width: 18%; }
.intake-records-table th:nth-child(5) { width: 23%; }
.intake-record-actions { min-width: 150px; }
.intake-transition { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.intake-transition select { min-width: 0; min-height: 44px; }
.intake-transition .button { width: 100%; min-height: 44px; }

/* Research keeps provenance visually dominant: evidence is a rule-separated
   ledger, while finalization remains a compact, deliberate action. */
.research-source-list { display: grid; }
.research-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.research-filter-bar { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.research-filter-bar a { white-space: nowrap; }
.research-watchlist-table { min-width: 760px; table-layout: fixed; }
.research-watchlist-table th:nth-child(1) { width: 22%; }
.research-watchlist-table th:nth-child(2) { width: 43%; }
.research-watchlist-table th:nth-child(3) { width: 12%; }
.research-watchlist-table th:nth-child(4) { width: 14%; }
.research-watchlist-table th:nth-child(5) { width: 9%; }
.research-watchlist-table td:nth-child(3),
.research-watchlist-table td:nth-child(4),
.research-watchlist-table td:nth-child(5) { white-space: nowrap; }
.research-subject-meta, .research-plan-meta { display: block; margin-top: 4px; }
.research-brief-table { min-width: 900px; table-layout: fixed; }
.research-brief-table th:nth-child(1) { width: 11%; }
.research-brief-table th:nth-child(2) { width: 12%; }
.research-brief-table th:nth-child(3) { width: 13%; }
.research-brief-table th:nth-child(4) { width: 32%; }
.research-brief-table th:nth-child(5) { width: 32%; }
.research-brief-table td:nth-child(1),
.research-brief-table td:nth-child(2),
.research-brief-table td:nth-child(3) { white-space: nowrap; }
.research-source-list .evidence-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: start; padding: 20px 0; border-bottom: 1px solid var(--line); }
.research-source-list .evidence-row:last-child { border-bottom: 0; }
.research-source-list h3 { margin: 5px 0 7px; color: var(--ink); font: 440 17px/1.25 var(--display); letter-spacing: -.01em; }
.research-source-list p { max-width: 900px; margin: 0 0 8px; color: var(--ink-soft); line-height: 1.58; }
.research-source-list small { display: block; color: var(--muted-2); font: 400 9px/1.55 var(--mono); overflow-wrap: anywhere; }
.research-brief-actions { display: flex; align-items: end; justify-content: space-between; gap: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.research-brief-actions form:last-child { display: flex; align-items: end; gap: 10px; }
.research-brief-actions .field { min-width: min(280px, 48vw); }
.immutable-note { margin: 14px 0 0; color: var(--muted-2); font: 400 9px/1.5 var(--mono); overflow-wrap: anywhere; }

.login-shell { display: grid; min-height: 100vh; place-items: center; padding: clamp(24px, 5vw, 72px); background: var(--canvas); }
.login-sheet { width: min(1060px, 100%); border: 1px solid var(--line-strong); background: var(--surface); }
.login-masthead { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 20px; padding: 12px 82px 12px 28px; border-bottom: 1px solid var(--line); }
.login-masthead .brand { min-height: 0; padding: 0; }
.login-access-label { color: var(--muted-2); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.login-body { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr); }
.login-brief { display: flex; min-height: 520px; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(38px, 5vw, 64px); border-right: 1px solid var(--line); }
.login-emblem { width: 184px; height: 184px; }
.login-proposition { max-width: 620px; margin: 0; color: var(--ink); font: 500 clamp(34px, 4vw, 52px)/1.02 var(--display); letter-spacing: -.035em; text-wrap: balance; }
.login-brief div > p:last-child { max-width: 540px; margin: 18px 0 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.login-form { display: grid; place-items: center; padding: clamp(36px, 5vw, 62px); background: var(--surface-2); }
.login-card { width: min(380px, 100%); }
.login-card + .login-card { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.login-card h1 { margin: 0; font: 520 38px/1 var(--display); letter-spacing: -.035em; }
.login-card > p { margin: 12px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.login-card .field { margin-bottom: 14px; }
.login-card .button { width: 100%; margin-top: 8px; }
.login-note { margin-top: 20px; padding: 14px 0 0; border-top: 1px solid var(--line-strong); background: transparent; color: var(--muted-2); font-size: 12px; line-height: 1.55; }
.login-footer { display: flex; min-height: 52px; align-items: center; gap: 0; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.login-footer span { display: flex; min-height: 52px; flex: 1; align-items: center; padding: 0 28px; }
.login-footer span + span { border-left: 1px solid var(--line); }

.report-page { max-width: 1050px; margin: 0 auto; }
.report-cover { padding: 48px 0 28px; border-bottom: 2px solid var(--mint); }
.report-cover h1 { margin: 0; font: 480 44px/1 var(--display); letter-spacing: -.035em; }
.report-meta { margin-top: 10px; color: var(--muted); font: 400 10px/1.4 var(--mono); }

@media (max-width: 1080px) {
  .shell { grid-template-columns: 220px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .detail-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .shell { display: block; }
  .sidebar { position: relative; width: 100%; height: auto; padding: 10px 16px; overflow: visible; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { min-height: 50px; padding: 0; }
  .brand-symbol { width: 32px; height: 32px; }
  .nav-drawer { overflow: visible; }
  .nav-drawer[data-overflow="true"]::after { display: none; }
  .nav-drawer > summary { display: flex; min-height: 44px; align-items: center; border-top: 1px solid var(--line); color: var(--muted); cursor: pointer; font: 500 10px/1 var(--mono); letter-spacing: .08em; list-style: none; text-transform: lowercase; }
  .nav-drawer > summary::-webkit-details-marker { display: none; }
  .nav-drawer > summary::after { margin-left: auto; color: var(--mint); content: "+"; }
  .nav-drawer[open] > summary::after { content: "−"; }
  .nav-drawer:not([open]) > .main-nav { display: none; }
  .main-nav { position: static; height: auto; max-height: min(65vh, 560px); padding: 8px 0 14px; }
  .sidebar-bottom { display: none; }
  .main { padding: 0 16px 34px; }
  .topbar { min-height: 54px; }
  .asof, .user-chip { display: none; }
  .topbar-actions { gap: 0; }
  .theme-toggle { padding-inline: 9px; }
  .theme-toggle [data-theme-label] { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .page-heading { align-items: stretch; flex-direction: column; gap: 20px; padding: 32px 0 24px; }
  .page-heading h1 { font-size: clamp(32px, 11vw, 46px); }
  .page-heading p { font-size: 12px; }
  .heading-actions { width: 100%; justify-content: stretch; }
  .heading-actions .button, .heading-actions > form { flex: 1 1 140px; }
  .heading-actions > form .button { width: 100%; }
  .metric-grid, .grid-2, .grid-even, .form-grid, .form-grid.cols-3 { grid-template-columns: minmax(0, 1fr); }
  .metric { min-height: 110px; }
  .detail-hero { padding: 22px; }
  .detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 17px; overflow-x: auto; }
  .panel-header { align-items: start; flex-direction: column; gap: 7px; }
  .decision-chart figcaption { align-items: flex-start; flex-direction: column; gap: 5px; }
  .decision-chart figcaption strong { min-width: 0; }
  .decision-chart figcaption span { flex-basis: auto; text-align: left; }
  .chart-svg { min-width: 600px; min-height: 280px; }
  .decision-chart { overflow-x: auto; }
  .cio-brief-cases { grid-template-columns: minmax(0, 1fr); }
  .cio-brief-case { padding: 18px 0 0; }
  .cio-brief-case + .cio-brief-case { padding: 18px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .cio-facts { grid-template-columns: minmax(0, 1fr); }
  .cio-facts > div { min-height: auto; border-right: 0; }
  .cio-source, .cio-breach-periods, .chart-breach-labels { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .capacity-row { grid-template-columns: minmax(115px, .9fr) minmax(280px, 2.5fr) minmax(80px, .65fr); min-width: 570px; }
  .allocation-capacity { overflow-x: auto; }
  .evidence-detail > summary { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .evidence-detail > summary > span { margin-left: 0; }
  .assumption-delta-grid { grid-template-columns: 1fr; }
  .table-region table { min-width: 680px; }
.relationship-table { min-width: 840px !important; }
  .table-region[data-overflow="true"][data-at-start="true"] .table-scroll-cue { position: sticky; left: 0; z-index: 2; display: inline-flex; min-height: 28px; align-items: center; margin-bottom: 8px; padding: 0 8px; border: 1px solid var(--mint-line); border-radius: 2px; background: var(--surface-3); color: var(--mint); font: 500 9px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
  .priority-notice { align-items: flex-start; flex-direction: column; }
  .priority-notice a { margin-left: 0; }
  .login-shell { display: block; padding: 0; background: var(--surface); }
  .public-theme-toggle { top: 14px; right: 14px; }
  .login-sheet { min-height: 100vh; border: 0; }
  .login-masthead { min-height: 72px; padding: 10px 72px 10px 20px; }
  .login-access-label { display: none; }
  .login-body { grid-template-columns: 1fr; }
  .login-brief { min-height: auto; padding: 34px 20px 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-emblem { width: 96px; height: 96px; }
  .login-proposition { font-size: 34px; }
  .login-brief div > p:last-child { font-size: 13px; }
  .login-form { padding: 36px 20px 42px; }
  .login-footer { flex-wrap: wrap; padding: 12px 20px; }
  .login-footer span { min-height: 32px; flex: 1 1 50%; padding: 0; }
  .login-footer span + span { border-left: 0; }
  .task-item { grid-template-columns: auto 1fr; }
  .task-item > :last-child { grid-column: 2; }
  .attention-context, .attention-item { grid-template-columns: minmax(0, 1fr); }
  .attention-context-item + .attention-context-item { border-top: 1px solid var(--line); border-left: 0; }
  .attention-item { gap: 13px; }
  .attention-why span, .attention-next span { display: block; min-width: 0; margin-bottom: 3px; }
  .research-source-list .evidence-row { grid-template-columns: 1fr; }
  .research-metric-grid { grid-template-columns: minmax(0, 1fr); }
  .research-filter-bar { gap: 8px 14px; }
  .research-brief-actions, .research-brief-actions form:last-child { align-items: stretch; flex-direction: column; }
  .research-brief-actions .field { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  :root { color-scheme: light; }
  .sidebar, .topbar, .heading-actions, .flash, form, .skip-link { display: none !important; }
  .shell { display: block; }
  .main { padding: 0; }
  body, html { background: white; color: #111; }
  .panel, .metric, .detail-hero { break-inside: avoid; border-color: #ccc; background: white; color: #111; }
  .metric strong, .panel h2, td strong { color: #111; }
  th, td { border-color: #ddd; color: #333; }
}
