/* PrimeScore Markets: the release desk.
   One typeface (Bricolage Grotesque, OFL, self-hosted), a warm graphite canvas and three data
   colours with fixed meaning: ember marks the release moment and is the only interactive accent,
   ice is the range the market priced, ivory is what actually happened. Mint and coral only say
   inside/outside, passed/failed, up/down. Page compositions live in workspace.css. */

:root {
  color-scheme: dark;
  --bg: #141310;
  --rail: #0E0D0B;
  --surface: #1C1B17;
  --surface-2: #24221D;
  --surface-3: #2D2B25;
  --line: #2B2924;
  --line-strong: #3E3B33;
  --text: #EDE7DB;
  --strong: #FBF7EE;
  --muted: #A6A092;
  --faint: #7E7869;
  --ember: #F2A33A;
  --ember-ink: #FFC06A;
  --ember-soft: rgba(242, 163, 58, .14);
  --ice: #8DB8F2;
  --ice-ink: #AECDFA;
  --ice-soft: rgba(141, 184, 242, .16);
  --ivory: #F6F1E6;
  --good: #86D6A6;
  --good-soft: rgba(134, 214, 166, .14);
  --bad: #F0806F;
  --bad-soft: rgba(240, 128, 111, .14);
  --calm: #7FC8D8;
  --calm-soft: rgba(127, 200, 216, .16);
  /* Names older components still use. */
  --accent: var(--ember);
  --event: var(--ember);
  --blue: var(--ice);
  --warn: var(--ember-ink);
  --ink: var(--strong);
  --sans: "Bricolage Grotesque", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: var(--sans);
  --mono: "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --r: 14px;
  --r-m: 10px;
  --r-s: 7px;
  --radius: var(--r);
  --rail-w: 232px;
  --content-w: 1360px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--ember);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 400 14px/1.5 var(--sans); font-optical-sizing: auto; font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgba(242, 163, 58, .35); color: var(--strong); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }
img { outline: 1px solid rgba(255, 255, 255, .1); outline-offset: -1px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--strong); font-weight: 600; text-wrap: balance; }
h1 { font-size: 32px; line-height: 1.1; font-weight: 560; font-stretch: 94%; letter-spacing: -.025em; }
h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.012em; }
h3 { font-size: 15px; line-height: 1.35; }
p { color: var(--muted); text-wrap: pretty; }
code, .mono { font-family: var(--mono); font-size: .92em; }
strong, b { font-weight: 600; }
/* Blazor focuses the route heading for screen readers; regions focused by script are not targets. */
:is(h1, h2, h3, [tabindex="-1"]):focus { outline: none; }
:is(a, button, input, select, textarea, summary, [tabindex="0"]):focus-visible { outline: none; box-shadow: var(--focus); }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 200; padding: 10px 16px; border-radius: 999px; background: var(--ember); color: #1C1407; font-weight: 600; }
.skip-link:focus { top: 12px; }

/* ---------- Shell: rail, content, footnote ---------- */
.shell {
  display: grid; min-height: 100vh;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  grid-template-areas: "rail main" "rail foot";
}
.shell:not(:has(> .rail)) {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr) auto;
  grid-template-areas: "top" "main" "foot";
}
.rail {
  grid-area: rail; position: sticky; top: 0; height: 100vh; overflow-y: auto; scrollbar-width: thin;
  display: flex; flex-direction: column; gap: 4px; padding: 16px 12px 14px;
  background: var(--rail); border-right: 1px solid var(--line);
}
.topbar { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 28px; border-bottom: 1px solid var(--line); background: var(--rail); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 16px; color: var(--strong); }
.topbar .wordmark { padding: 0; }
.logo-mark { width: 30px; height: 30px; flex: none; color: var(--ember); }
.brand-name { display: grid; line-height: 1.05; }
.brand-name > span { color: var(--muted); font-size: 11px; }
.brand-name > strong { font-size: 17px; font-weight: 640; letter-spacing: -.02em; }
.sidebar { display: flex; flex-direction: column; flex: 1 0 auto; gap: 2px; }
.sidebar > div { display: grid; gap: 2px; }
.sidebar .nav-group { display: block; padding: 14px 10px 5px; color: var(--faint); font-size: 11px; font-weight: 500; }
.sidebar a {
  display: flex; align-items: center; gap: 10px; min-height: 35px; padding: 6px 10px; border-radius: 8px;
  color: var(--muted); font-size: 13px; font-weight: 500;
  transition-property: background-color, color; transition-duration: .15s; transition-timing-function: ease-out;
}
.sidebar a:hover { background: rgba(255, 255, 255, .05); color: var(--strong); }
.sidebar a.active { background: var(--ember-soft); color: var(--ember-ink); }
.sidebar a.active .nav-icon { color: var(--ember); }
.nav-icon { width: 17px; height: 17px; flex: none; color: var(--faint); transition: color .15s ease-out; }
.sidebar a:hover .nav-icon { color: var(--strong); }
.primary-nav strong { font-weight: 560; }
.rail-foot { margin-top: auto; display: grid; gap: 10px; padding: 14px 4px 0; border-top: 1px solid var(--line); }
.rail-foot form { margin: 0; display: contents; }
.who { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.who-name { display: grid; min-width: 0; color: var(--text); font-size: 13px; font-weight: 500; }
.who-name small { color: var(--faint); font-size: 11px; font-weight: 400; }
.who .button { min-height: 32px; padding: 5px 10px; font-size: 12px; flex: none; }
.rail-foot > span { padding: 0 2px; color: var(--faint); font-size: 11px; line-height: 1.5; }
.content {
  grid-area: main; width: 100%; max-width: var(--content-w); min-width: 0; justify-self: center;
  padding: 20px 36px 44px; container-type: inline-size; container-name: content;
}
.content > * + * { margin-top: 22px; }
.footnote { grid-area: foot; width: 100%; max-width: var(--content-w); justify-self: center; padding: 18px 36px 28px; color: var(--faint); font-size: 11.5px; line-height: 1.6; }
.footnote a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.dataset-context { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 12px; }
.dataset-context > div { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dataset-context .status::before { background: var(--ember); }
.dataset-id code { font: inherit; color: var(--faint); }
.dataset-notice { color: var(--faint); }
.dataset-date time { color: var(--text); font-weight: 500; }

/* ---------- Page heading and labels ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 14px 24px; padding-top: 4px; }
.page-head > div { min-width: 0; max-width: 72ch; }
.page-head p { margin-top: 8px; font-size: 13.5px; }
.page-head .filters, .page-head .action-bar { margin: 0; padding: 0; border: 0; }
.eyebrow { display: block; margin-bottom: 8px; color: var(--faint); font-size: 12px; }
.kicker { color: var(--muted); font-size: 12px; line-height: 1.5; }
.muted-cell { color: var(--faint); }

/* ---------- Status pills ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface-2); color: var(--text); font-size: 11.5px; font-weight: 500; line-height: 1.6; white-space: nowrap; vertical-align: middle;
}
.status::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--muted); }
.status + .status { margin-left: 6px; }
.status-warn { color: var(--ember-ink); border-color: rgba(242, 163, 58, .35); background: var(--ember-soft); }
.status-warn::before { background: var(--ember); }
.status-bad { color: var(--bad); border-color: rgba(240, 128, 111, .35); background: var(--bad-soft); }
.status-bad::before { background: var(--bad); }
.status-muted { color: var(--muted); background: transparent; }
.status-muted::before { background: var(--faint); }
.status-blue { color: var(--ice-ink); border-color: rgba(141, 184, 242, .35); background: var(--ice-soft); }
.status-blue::before { background: var(--ice); }
.data-label { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--muted); font-size: 11.5px; font-weight: 500; white-space: nowrap; }

/* ---------- Panels and grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.panel { position: relative; min-width: 0; padding: 22px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; margin-bottom: 18px; }
.panel-head .kicker { display: block; margin-bottom: 5px; }
.panel-head .actions { margin: 0; align-items: center; }
.panel-note { margin-top: 12px; color: var(--faint); font-size: 12.5px; line-height: 1.55; }
.panel-note a { color: var(--muted); }
td .panel-note { margin-top: 4px; font-size: 11.5px; }
.panel > h2 + p, .panel > h3 + p { margin-top: 10px; }
.panel > p + .table-wrap, .panel > .degraded + .table-wrap { margin-top: 18px; }
.panel .filters { margin-top: 16px; }
.panel .chart { margin-top: 18px; }
.panel details h3 { margin: 22px 0 10px; }
.figure { color: var(--strong); font-size: 30px; line-height: 1.15; font-weight: 500; font-stretch: 92%; letter-spacing: -.03em; }
.figure-label { color: var(--muted); font-size: 12px; }
.metric-grid, .metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 24px; margin: 18px 0; }
.metric { min-width: 0; }
.metric > span, .metric > small, .metric-label { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; }
.metric > strong, .metric-value { display: block; margin: 6px 0 4px; color: var(--strong); font-size: 26px; line-height: 1.15; font-weight: 500; font-stretch: 92%; letter-spacing: -.025em; }
.metric > strong.metric-text { font-size: 16px; font-weight: 520; font-stretch: 100%; letter-spacing: 0; overflow-wrap: anywhere; }
.metric .figure { margin: 6px 0 4px; font-size: 26px; }
.metric p { font-size: 12.5px; }
.kv { display: grid; grid-template-columns: minmax(140px, 32%) minmax(0, 1fr); gap: 10px 20px; margin: 16px 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.kv dd.muted-cell { color: var(--faint); }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.changes { margin: 0; padding-left: 18px; font: 12px/1.6 var(--mono); color: var(--muted); }
.sparkline-title { margin: 18px 0 6px; }
.assessment-summary { display: grid; gap: 3px; font-size: 12px; }
.assessment-summary small { color: var(--muted); }

/* ---------- Buttons and links ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 8px 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface-2); color: var(--strong);
  font-size: 13px; font-weight: 560; line-height: 1.3; text-align: center; cursor: pointer; text-decoration: none;
  transition-property: background-color, border-color, color, transform; transition-duration: .15s; transition-timing-function: ease-out;
}
.button:hover { background: var(--surface-3); border-color: var(--faint); }
.button:active { transform: translateY(1px); }
.button-primary { background: var(--ember); border-color: var(--ember); color: #1C1407; }
.button-primary:hover { background: var(--ember-ink); border-color: var(--ember-ink); }
.button-ghost { background: transparent; }
.button-ghost:hover { background: var(--surface-2); }
.button:disabled { opacity: .5; cursor: default; transform: none; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.action-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.content a:not(.button) {
  color: var(--strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: rgba(242, 163, 58, .55); transition: text-decoration-color .15s ease-out;
}
.content a:not(.button):hover { text-decoration-color: var(--ember); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.table-wrap:focus-visible { box-shadow: var(--focus); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { padding: 10px 12px; border-bottom: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 540; text-align: left; white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
table.data td.mono { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
table.data td { min-width: 0; }
table.data td:not(.num):not(.mono) { min-width: 9rem; }
table.data tbody tr:hover td { background: rgba(255, 255, 255, .025); }
table.data tr.selected td { background: var(--ember-soft); }
table.data input, table.data select { min-width: 80px; max-width: 150px; }

/* ---------- Forms ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.filters label, .form-field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 500; }
.form-field { margin: 14px 0; }
.content :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
  min-height: 38px; padding: 7px 12px; border: 1px solid var(--line-strong); border-radius: 9px;
  background-color: var(--surface-2); color: var(--strong); font-size: 13.5px; font-weight: 400;
}
.content textarea { min-height: 96px; line-height: 1.5; resize: vertical; }
.form-field textarea { font-family: var(--mono); font-size: 12.5px; }
.content select {
  appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1.5 1.5 6 6l4.5-4.5' fill='none' stroke='%23A6A092' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.content select option { background: var(--surface-3); color: var(--strong); }
.content :is(input, textarea)::placeholder { color: var(--faint); opacity: 1; }
.filters :is(input, select) { min-width: 150px; }
.filters > .button, .filters .button { align-self: flex-end; }
input[type="checkbox"], input[type="radio"] { width: 16px; height: 16px; margin: 0; accent-color: var(--ember); }
input[type="range"] { accent-color: var(--ember); }

/* ---------- Disclosure, notes, states ---------- */
details > summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; color: var(--text); font-size: 13px; font-weight: 540; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-left: 2px; border-right: 1.5px solid var(--faint); border-bottom: 1.5px solid var(--faint);
  transform: rotate(-45deg); transition: transform .15s ease-out;
}
details[open] > summary::before { transform: rotate(45deg); }
summary.button::before { display: none; }
.technical-details { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.technical-details[open] > summary { margin-bottom: 14px; }
.technical-details p + p { margin-top: 10px; }
.technical-details pre, .panel pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 var(--mono); color: var(--muted); }
details.panel > summary { margin: 0; }
details.panel[open] > summary { margin-bottom: 16px; }
details.panel > summary span { color: var(--faint); font-weight: 400; }
.callout { padding: 14px 18px; border-left: 2px solid var(--ember); border-radius: 0 10px 10px 0; background: var(--surface-2); color: var(--muted); font-size: 13px; line-height: 1.55; }
.callout strong { color: var(--text); font-weight: 560; }
.degraded { padding: 12px 16px; border-left: 2px solid var(--bad); border-radius: 0 10px 10px 0; background: var(--bad-soft); color: var(--text); font-size: 13px; line-height: 1.55; }
.degraded strong { color: var(--bad); }
.degraded h2 { margin-bottom: 6px; }
.degraded .button { margin: 12px 12px 0 0; }
.empty { padding: 22px; border: 1px dashed var(--line-strong); border-radius: 12px; background: var(--surface); }
.empty h3 { margin-bottom: 6px; }
.empty p { font-size: 13px; }
.loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.loading::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--ember); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
pre.code { margin: 14px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--rail); font: 12px/1.6 var(--mono); color: var(--text); overflow-x: auto; }
pre.code-raw { white-space: pre-wrap; word-break: break-all; }
.trace { white-space: pre-wrap; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--rail); font: 12.5px/1.6 var(--mono); color: var(--text); }

/* ---------- Series charts (SeriesChart: stacked SVG panels, CSS-only crosshair) ---------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.chart-legend svg { width: auto; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.legend-swatch { width: 14px; height: 10px; border-radius: 2px; border: 1px solid var(--line-strong); }
.legend-swatch.band-high { background: rgba(242, 163, 58, .2); }
.legend-swatch.band-low { background: repeating-linear-gradient(45deg, rgba(141, 184, 242, .5) 0 1px, transparent 1px 5px); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .grid.zero { stroke: var(--line-strong); }
.chart .ref-line, .chart-legend .ref-line { stroke: var(--faint); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .band-high { fill: rgba(242, 163, 58, .09); }
.chart .hatch-stroke { stroke: rgba(141, 184, 242, .35); stroke-width: 1; }
.chart .axis-label { fill: var(--faint); font: 11px var(--sans); }
.chart .panel-title { fill: var(--muted); font: 12px var(--sans); }
.chart .hit { fill: transparent; }
.chart .hover-layer { visibility: hidden; pointer-events: none; }
.chart .hover-col:hover .hover-layer { visibility: visible; }
.chart .crosshair { stroke: var(--muted); stroke-width: 1; }
.chart .hover-dot { stroke: var(--bg); stroke-width: 2; }
.chart .tip-box { fill: var(--surface-3); stroke: var(--line-strong); }
.chart .tip-date { fill: var(--muted); font: 11px var(--sans); }
.chart .tip-value { fill: var(--strong); font: 600 12px var(--sans); }
.chart .tip-name { fill: var(--muted); font: 11px var(--sans); }
.chart .marker, .chart-legend .marker { fill: var(--ember); stroke: var(--bg); stroke-width: 1.5; }
.chart-viewport:focus-visible { box-shadow: var(--focus); border-radius: 8px; }
.chart-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 10px; }
.chart-foot .panel-note { margin-top: 0; }
.chart-data-toggle { margin-top: 12px; }
.chart-data-toggle > summary.button { display: inline-flex; width: auto; }
.chart-table { margin-top: 12px; max-height: 420px; overflow-y: auto; }

/* ---------- Blazor runtime ---------- */
#blazor-error-ui { display: none; position: fixed; inset: auto 16px 16px auto; z-index: 1000; max-width: 440px; padding: 14px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-3); color: var(--text); font-size: 13px; box-shadow: 0 12px 32px rgba(0, 0, 0, .45); }
#blazor-error-ui a { margin-left: 10px; color: var(--ember-ink); text-decoration: underline; text-underline-offset: 3px; }
#blazor-error-ui .dismiss { margin-left: 12px; cursor: pointer; color: var(--muted); }

/* ---------- Narrow screens: the rail becomes a sticky chip bar ---------- */
@media (max-width: 1100px) {
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shell, .shell:not(:has(> .rail)) { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "rail" "main" "foot"; }
  .shell:not(:has(> .rail)) { grid-template-areas: "top" "main" "foot"; }
  .rail {
    position: sticky; top: 0; z-index: 30; height: auto; overflow: visible;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand foot" "nav nav";
    gap: 8px 12px; padding: 10px 16px 8px; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .wordmark { grid-area: brand; padding: 0; }
  .logo-mark { width: 26px; height: 26px; }
  .brand-name > strong { font-size: 16px; }
  .rail-foot { grid-area: foot; display: flex; align-items: center; margin: 0; padding: 0; border: 0; }
  .rail-foot > span, .who-name { display: none; }
  .sidebar {
    grid-area: nav; flex-direction: row; gap: 6px; margin: 0 -16px; padding: 2px 16px 4px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
    mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 14px, #000 calc(100% - 28px), transparent);
  }
  .sidebar::-webkit-scrollbar { display: none; }
  .sidebar > div { display: contents; }
  .sidebar .nav-group { display: none; }
  .sidebar a { flex: none; min-height: 34px; padding: 0 13px; border-radius: 999px; background: rgba(255, 255, 255, .05); font-size: 13px; }
  .sidebar a .nav-icon { display: none; }
  .sidebar a.active { background: var(--ember); color: #1C1407; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 16px 40px; }
  .content > * + * { margin-top: 18px; }
  .footnote { padding: 16px 16px 24px; }
  h1 { font-size: 27px; }
  .panel { padding: 18px 16px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 1fr; gap: 3px 0; }
  .kv dd { margin-bottom: 10px; }
  .filters { align-items: stretch; }
  .filters label { flex: 1 1 140px; min-width: 0; }
  .filters :is(input, select) { width: 100%; min-width: 0; }
  .status { white-space: normal; }
  .page-head .filters { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
