/* Investment Cockpit — tokens follow the validated data-viz reference palette.
   Light and dark are both first-class; charts read these vars at render time. */

:root {
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);

  --series-1: #2a78d6;  /* blue */
  --series-2: #1baf7a;  /* aqua */
  --series-3: #eda100;  /* yellow */
  --series-4: #008300;  /* green */
  --series-5: #4a3aa7;  /* violet */
  --series-6: #e34948;  /* red */
  --series-7: #e87ba4;  /* magenta */
  --series-8: #eb6834;  /* orange */

  --good: #0ca30c;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --delta-up: #006300;
  --delta-down: #d03b3b;

  --accent: var(--series-1);
  --radius: 10px;
  --sidebar-w: 216px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0d0d0d;
    --surface: #1a1a19;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);

    --series-1: #3987e5;
    --series-2: #199e70;
    --series-3: #c98500;
    --series-4: #008300;
    --series-5: #9085e9;
    --series-6: #e66767;
    --series-7: #d55181;
    --series-8: #d95926;

    --delta-up: #0ca30c;
  }
}

/* Handmatige themakeuze (localStorage) overstemt de OS-voorkeur. De variabelen
   spiegelen exact de :root- en media-query-blokken hierboven. */
:root[data-theme="light"] {
  --page: #f9f9f7; --surface: #fcfcfb; --ink: #0b0b0b; --ink-2: #52514e;
  --muted: #898781; --grid: #e1e0d9; --baseline: #c3c2b7; --border: rgba(11, 11, 11, 0.10);
  --series-1: #2a78d6; --series-2: #1baf7a; --series-3: #eda100; --series-4: #008300;
  --series-5: #4a3aa7; --series-6: #e34948; --series-7: #e87ba4; --series-8: #eb6834;
  --delta-up: #006300;
}
:root[data-theme="dark"] {
  --page: #0d0d0d; --surface: #1a1a19; --ink: #ffffff; --ink-2: #c3c2b7;
  --muted: #898781; --grid: #2c2c2a; --baseline: #383835; --border: rgba(255, 255, 255, 0.10);
  --series-1: #3987e5; --series-2: #199e70; --series-3: #c98500; --series-4: #008300;
  --series-5: #9085e9; --series-6: #e66767; --series-7: #d55181; --series-8: #d95926;
  --delta-up: #0ca30c;
}

.theme-toggle {
  font-size: 12px; padding: 6px 10px; border-radius: 8px;
  border: 1px solid var(--border); background: none; color: var(--ink-2);
  cursor: pointer; text-align: left;
}
.theme-toggle:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--page);
  color: var(--ink);
  font: 14px/1.45 -apple-system, "Segoe UI", system-ui, sans-serif;
}

.shell { display: flex; min-height: 100vh; }

/* ---------------------------------------------------------------- sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  padding: 18px 12px;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; margin: 2px 8px 18px; }
.brand-mark {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 13px;
}
.brand-name { font-weight: 650; font-size: 13px; line-height: 1.2; color: var(--ink-2); }
.sidebar a {
  color: var(--ink-2);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
}
.sidebar a:hover { background: color-mix(in oklab, var(--ink) 6%, transparent); }
.sidebar a.active { background: color-mix(in oklab, var(--accent) 14%, transparent); color: var(--ink); font-weight: 600; }
.sidebar-foot { margin-top: auto; padding: 8px; display: flex; flex-direction: column; gap: 10px; }
.run-chip {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  background: color-mix(in oklab, var(--series-3) 16%, transparent);
  border: 1px solid var(--border);
  cursor: pointer;
}
.run-chip .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--series-3); margin-right: 6px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

/* ---------------------------------------------------------------- layout */
.content { flex: 1; padding: 30px 36px 72px; max-width: 1380px; }
.page-root { width: 100%; min-width: 0; }
h1 { font-size: 21px; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 26px 0 10px; }
.page-sub { color: var(--muted); margin: 0 0 20px; }
.loading { color: var(--muted); padding: 40px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.row { display: flex; gap: 14px; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 1px 0 rgba(11, 11, 11, 0.02);
}
.card h3 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }

.stat .stat-value { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.stat .stat-label { color: var(--muted); font-size: 12px; margin-top: 2px; }
.delta-up { color: var(--delta-up); font-weight: 600; }
.delta-down { color: var(--delta-down); font-weight: 600; }

/* ---------------------------------------------------------------- tables */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--grid); }
th { color: var(--muted); font-weight: 600; font-size: 12px; cursor: pointer; user-select: none; white-space: nowrap; }
th.sorted::after { content: " ↓"; }
th.sorted.asc::after { content: " ↑"; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:hover td { background: color-mix(in oklab, var(--ink) 3%, transparent); }
.table-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------- badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600;
  padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}
.badge.good { background: color-mix(in oklab, var(--good) 14%, transparent); }
.badge.warn { background: color-mix(in oklab, var(--warning) 16%, transparent); }
.badge.bad { background: color-mix(in oklab, var(--critical) 13%, transparent); }
.badge.neutral { background: color-mix(in oklab, var(--muted) 12%, transparent); }
.badge.accent { background: color-mix(in oklab, var(--accent) 13%, transparent); }

/* ---------------------------------------------------------------- forms */
label.field { display: block; margin-bottom: 12px; }
label.field .name { font-weight: 600; font-size: 12.5px; display: flex; gap: 6px; align-items: baseline; }
label.field .hint { color: var(--muted); font-weight: 400; font-size: 11.5px; }
input[type="text"], input[type="number"], input[type="date"], input[type="email"],
input[type="password"], textarea, select {
  width: 100%; margin-top: 4px;
  background: var(--page);
  border: 1px solid var(--baseline);
  color: var(--ink);
  border-radius: 7px;
  padding: 7px 9px;
  font: inherit;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in oklab, var(--accent) 45%, transparent); border-color: var(--accent); }

/* ---------------------------------------------------------------- ticker picker */
.tp { position: relative; margin-top: 4px; }
.tp-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 5px;
  background: var(--page); border: 1px solid var(--baseline); border-radius: 7px; padding: 4px 6px;
}
.tp-box:focus-within { outline: 2px solid color-mix(in oklab, var(--accent) 45%, transparent); border-color: var(--accent); }
.tp-box input { flex: 1; min-width: 90px; margin: 0; border: none; outline: none; background: none; padding: 3px 2px; }
.tp-chips { display: contents; }
.tp-chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: color-mix(in oklab, var(--accent) 15%, transparent);
  border-radius: 6px; padding: 2px 4px 2px 8px; font-size: 12px; font-weight: 600;
}
.tp-chip button { border: none; background: none; color: var(--ink-2); cursor: pointer; padding: 0 2px; font-size: 14px; line-height: 1; }
.tp-menu {
  position: absolute; z-index: 30; top: 100%; left: 0; right: 0; margin-top: 3px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18); max-height: 280px; overflow-y: auto;
}
.tp-opt { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; cursor: pointer; }
.tp-opt:hover { background: color-mix(in oklab, var(--accent) 12%, transparent); }
.tp-tick { font-weight: 700; font-family: ui-monospace, Menlo, monospace; min-width: 62px; }
.tp-name { color: var(--ink-2); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-tag { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.tp-tag.etf { color: var(--series-3); }

/* ---------------------------------------------------------------- degraded panels */
.section-error { border-style: dashed; display: grid; gap: 4px; }
.chart-error {
  display: flex; align-items: center; justify-content: center;
  min-height: 120px; height: 100%;
  color: var(--muted); font-size: 12px;
  border: 1px dashed var(--border); border-radius: 8px;
}

.chk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 10px; margin-top: 4px; }
.chk { display: flex; align-items: center; gap: 6px; font-weight: 500; font-size: 13px; }
.chk input { width: auto; margin: 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 18px; }

.login-card { max-width: 380px; margin: 64px auto; }
.login-error { color: var(--bad); min-height: 1.2em; margin-bottom: 4px; }

button, .btn {
  font: inherit; font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
}
button:hover, .btn:hover { background: color-mix(in oklab, var(--ink) 5%, var(--surface)); }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.primary:hover { background: color-mix(in oklab, var(--accent) 88%, #000); }
button.danger { color: var(--critical); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 14px 0; }
button.link-btn {
  border: none; background: none; padding: 0; font-size: 12px; font-weight: 600;
  color: var(--accent); text-decoration: underline; display: inline;
}
button.link-btn:hover { background: none; opacity: 0.8; }
.alert-banner { border-left: 4px solid var(--warning); margin-bottom: 16px; }

/* ---------------------------------------------------------------- tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--grid); margin-bottom: 16px; }
.tabs button {
  border: none; background: none; border-radius: 8px 8px 0 0;
  padding: 9px 14px; color: var(--ink-2); border-bottom: 2px solid transparent;
}
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 650; }

/* ---------------------------------------------------------------- log pane */
.log-pane {
  background: #101014;
  color: #d6d6d0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 12px 14px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  max-height: 420px;
  overflow-y: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
.progress-bar { height: 6px; border-radius: 3px; background: var(--grid); overflow: hidden; margin: 10px 0; }
.progress-bar > div { height: 100%; background: var(--accent); transition: width 0.4s; }

/* ---------------------------------------------------------------- stepper */
.stepper { display: flex; gap: 0; margin: 18px 0; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.step .num {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--baseline); color: var(--muted); font-weight: 700; font-size: 12px;
}
.step.done .num { background: var(--good); border-color: var(--good); color: #fff; }
.step.current .num { border-color: var(--accent); color: var(--accent); }
.step .lbl { font-weight: 600; color: var(--muted); }
.step.done .lbl, .step.current .lbl { color: var(--ink); }
.step-sep { flex: 0 0 34px; height: 2px; background: var(--grid); margin: 0 10px; align-self: center; }

/* ---------------------------------------------------------------- charts */
.chart { width: 100%; height: 260px; }
.chart.tall { height: 340px; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }

/* ---------------------------------------------------------------- risk command center */
.risk-command {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  padding: 20px 22px; margin-bottom: 12px;
  border: 1px solid color-mix(in oklab, var(--accent) 24%, var(--border));
  border-radius: calc(var(--radius) + 2px);
  background:
    radial-gradient(circle at 92% 12%, color-mix(in oklab, var(--accent) 15%, transparent), transparent 36%),
    var(--surface);
}
.risk-command h2 { margin: 2px 0 3px; font-size: 20px; letter-spacing: -0.02em; }
.risk-command p { margin: 0; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.coverage-block { flex: 0 0 180px; }
.coverage-value { font-size: 26px; line-height: 1; font-weight: 750; letter-spacing: -.03em; }
.coverage-track { height: 5px; overflow: hidden; margin: 8px 0 5px; border-radius: 99px; background: var(--grid); }
.coverage-track span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.risk-flags { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; margin: 0 0 14px; }
.risk-flag {
  display: flex; align-items: flex-start; gap: 9px; padding: 9px 11px;
  border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}
.risk-flag-dot { width: 7px; height: 7px; margin-top: 5px; flex: 0 0 7px; border-radius: 50%; background: var(--good); }
.risk-flag.medium .risk-flag-dot { background: var(--warning); }
.risk-flag.high .risk-flag-dot { background: var(--critical); }
.risk-flag strong { display: block; font-size: 12px; }
.risk-flag span:not(.risk-flag-dot) { display: block; color: var(--muted); font-size: 11.5px; }
.feature-card { padding: 18px 20px; }
.earnings-stale { opacity: 0.6; }
.rolling-block { margin-top: 16px; }
.rolling-block h3 { margin: 0 0 2px; }
details.feature-card > summary { cursor: pointer; list-style: revert; }
.card-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.card-heading h3, .card-heading p { margin: 0 0 3px; }
.metric-pair { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; color: var(--muted); font-size: 11.5px; }
.metric-pair strong { color: var(--ink); font-size: 15px; }
.table-details { margin-top: 6px; border-top: 1px solid var(--grid); padding-top: 10px; }
.table-details summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 12px; }
.table-details[open] summary { margin-bottom: 8px; }
.risk-model-grid { margin-top: 14px; grid-template-columns: repeat(2, minmax(320px, 1fr)); }
.methodology-note { max-width: 920px; margin-top: 16px; }
.audit-lookup { min-height: 76px; margin-top: 10px; }
.audit-stats { margin-bottom: 14px; }
.decision-lens { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
.decision-ticker { font-size: 22px; font-weight: 750; letter-spacing: -.03em; margin-top: 3px; }
.score-explain details { border: 1px solid var(--border); border-radius: 8px; margin-top: 10px; background: var(--surface); }
.score-explain summary { cursor: pointer; font-weight: 700; padding: 11px 13px; color: var(--ink); }
.score-explain details > .table-wrap, .score-explain details > p { margin: 0 13px 13px; }
.ticker-score-block { margin-top: 16px; padding-top: 4px; border-top: 1px solid var(--border); }
.ticker-score-block h4 { margin-bottom: 6px; }
.score-compare { margin-top: 22px; }
.score-compare-controls { display: grid; grid-template-columns: repeat(3, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.score-compare-controls label { color: var(--muted); font-size: 12px; font-weight: 700; }
.score-compare-controls select { display: block; width: 100%; margin-top: 5px; }
.score-delta { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 12px; font-size: 15px; }

/* ---------------------------------------------------------------- misc */
.iframe-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.iframe-wrap iframe { width: 100%; height: 78vh; border: none; display: block; }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.thumbs img { width: 200px; border-radius: 8px; border: 1px solid var(--border); cursor: zoom-in; }
dialog {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--ink);
  max-width: min(92vw, 560px); padding: 22px;
}
dialog.img { max-width: 92vw; padding: 8px; }
dialog.img img { max-width: 100%; display: block; }
dialog::backdrop { background: rgba(0, 0, 0, 0.45); }
.toast {
  position: fixed; bottom: 22px; right: 22px;
  background: var(--ink); color: var(--page);
  padding: 10px 16px; border-radius: 10px; font-weight: 600;
  animation: fade 3.5s forwards;
  z-index: 50;
}
@keyframes fade { 0%, 80% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar-foot { display: none; }
  .brand { margin: 0 10px 0 0; }
  .content { padding: 22px 18px 56px; }
  .risk-command { align-items: flex-start; flex-direction: column; }
  .coverage-block { flex-basis: auto; width: 100%; }
  .risk-model-grid { grid-template-columns: 1fr; }
  .card-heading { flex-direction: column; }
  .metric-pair { justify-content: flex-start; }
  .decision-lens { grid-template-columns: 1fr; }
  .score-compare-controls { grid-template-columns: 1fr; }
}

/* --- Guide page (#/guide) -------------------------------------------------
   The master guide is one long document, so it gets a sticky contents rail
   next to a readable measure. Uses the same design tokens as the rest of the
   app, so light/dark follow automatically. */
.guide-layout {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}
.guide-side { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); display: flex;
  flex-direction: column; gap: .6rem; min-width: 0; }
.guide-search { width: 100%; padding: .5rem .65rem; border: 1px solid var(--border);
  border-radius: .5rem; background: var(--surface); color: var(--ink); font: inherit; }
.guide-toc { overflow-y: auto; display: flex; flex-direction: column; gap: .1rem;
  padding-right: .3rem; }
.guide-toc-link { display: block; padding: .25rem .45rem; border-radius: .35rem;
  color: var(--ink-2); text-decoration: none; font-size: .88rem; line-height: 1.35;
  border-left: 2px solid transparent; }
.guide-toc-link.lvl-2 { padding-left: 1rem; font-size: .84rem; color: var(--muted); }
.guide-toc-link:hover { background: var(--grid); color: var(--ink); }
.guide-toc-link.active { border-left-color: var(--series-1); color: var(--ink);
  background: var(--grid); }

.guide-body { min-width: 0; max-width: 46rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: .6rem; padding: 1.4rem 1.6rem;
  line-height: 1.65; }
.guide-body h1 { font-size: 1.5rem; margin: 1.6rem 0 .6rem; padding-bottom: .3rem;
  border-bottom: 1px solid var(--border); }
.guide-body h1:first-child { margin-top: 0; }
.guide-body h2 { font-size: 1.18rem; margin: 1.5rem 0 .5rem; }
.guide-body h3 { font-size: 1rem; margin: 1.2rem 0 .4rem; }
.guide-body p, .guide-body li { color: var(--ink-2); }
.guide-body code { background: var(--grid); padding: .1em .35em; border-radius: .25rem;
  font-size: .9em; }
.guide-body pre { background: var(--grid); padding: .8rem 1rem; border-radius: .5rem;
  overflow-x: auto; }
.guide-body pre code { background: none; padding: 0; }
.guide-body blockquote { margin: .9rem 0; padding: .1rem 1rem; border-left: 3px solid
  var(--series-3); background: color-mix(in srgb, var(--series-3) 8%, transparent);
  border-radius: 0 .4rem .4rem 0; }
/* Wide tables must scroll inside the article, never widen the page. */
.guide-body table { display: block; overflow-x: auto; max-width: 100%;
  border-collapse: collapse; margin: .8rem 0; }
.guide-body th, .guide-body td { border: 1px solid var(--border); padding: .4rem .6rem;
  text-align: left; font-size: .9rem; }
.guide-body th { background: var(--grid); }

@media (max-width: 900px) {
  .guide-layout { grid-template-columns: 1fr; }
  .guide-side { position: static; max-height: none; }
  .guide-toc { max-height: 12rem; }
}

/* --- QUANT results panel --------------------------------------------------
   The IC table colours significance rather than magnitude: for a monthly factor
   a mean IC of 0.04 can be excellent, so the eye should follow |t|, not size. */
.ic-strong { color: var(--good); font-weight: 600; }
/* Significant, maar met het VERKEERDE teken. Groen zou "gevalideerd" suggereren
   terwijl een negatieve IC betekent dat de factor stelselmatig de andere kant op
   wijst -- een waarschuwing, geen bewijs. De weegregel trekt zo'n factor naar
   nul en draait nooit het teken om; de kleur hoort dat te volgen. */
.ic-inverted { color: var(--bad); font-weight: 600; }
.ic-weak { color: var(--warning); }
.ic-none { color: var(--muted); }

/* --- Benchmark picker (Risk tab) ------------------------------------------- */
.bench-row { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .6rem; }
.bench-input { padding: .4rem .6rem; border: 1px solid var(--border); border-radius: .4rem;
  background: var(--surface); color: var(--ink); font: inherit; width: 8rem; }

/* --- ESG staleness markers ------------------------------------------------- */
.esg-stale { color: var(--critical); font-weight: 700; margin-left: 2px; }
.esg-undated { color: var(--muted); margin-left: 2px; }

/* --- Audit freshness cards (dashboard) ------------------------------------- */
.card.freshness { text-decoration: none; color: inherit; display: block; }
.card.freshness:hover { border-color: var(--series-1); }
.card.freshness.is-stale .stat-value { color: var(--warning); }
