/* racon — styles. Placeholder palette until the racon brand colours are decided.
   Fonts: drop General Sans .woff2 files into /static/fonts (see fonts/README.md). */

@font-face { font-family: "General Sans"; src: url("/static/fonts/GeneralSans-Variable.woff2") format("woff2"); font-weight: 200 700; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/static/fonts/GeneralSans-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/static/fonts/GeneralSans-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/static/fonts/GeneralSans-Semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* racon palette (from the brand mockup). Variable names are historical: navy = forest, teal = mint. */
  --navy: #1a292d;        /* forest: headers, dark panels, text */
  --navy-card: #243a3e;
  --navy-deep: #162a2c;
  --teal: #87cba4;        /* mint: buttons, highlights, data */
  --teal-soft: #cfeadb;
  --lavender: #d9c9a3;    /* sand: weak or opposing signals */
  --lavender-light: #eef3ec;
  --mid-navy: #3e6a59;    /* pine: links, secondary text */
  --muted: #8fb0a8;       /* sage: secondary text on dark, neutral fills */
  --white: #fefefe;
  --off-white: #f3f6f2;   /* mist */
  --line: #dde5df;
  --border: #c9d3cc;

  --font: "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: 2rem;
  --radius: 6px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.5;
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--mid-navy); text-underline-offset: 2px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); line-height: 1.15; }
h2 { font-size: var(--step-1); }
h3 { font-size: var(--step-0); }
p { margin: 0; }

/* ---------------------------------------------------------------- shell */
.shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; gap: 28px;
  height: 58px; padding: 0 32px;
}
.topbar :focus-visible { outline-color: var(--teal); }
.brand { text-decoration: none; display: flex; align-items: center; }
.brand-word { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; color: var(--teal); line-height: 1; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav a {
  display: block; padding: 6px 14px; border-radius: 999px; white-space: nowrap;
  color: var(--white); text-decoration: none; font-weight: 500; font-size: var(--step--1);
}
.nav a:hover { background: var(--navy-card); color: var(--white); }
.nav a.active { background: var(--teal); color: var(--navy); }
.topbar-right { margin-left: auto; display: flex; align-items: center; }
.rail-status { font-size: var(--step--1); color: var(--muted); white-space: nowrap; }
.rail-busy { all: unset; cursor: pointer; color: var(--white); font-size: var(--step--1); display: inline-flex; align-items: center;
  border: 1px solid var(--mid-navy); border-radius: 999px; padding: 4px 12px; }
.rail-busy:hover, .rail-busy[aria-expanded="true"] { border-color: var(--teal); color: var(--teal); }
.rail-busy:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.activity {
  position: absolute; right: 32px; top: 52px; width: 340px; max-width: calc(100vw - 24px);
  background: var(--navy-card); border: 1px solid var(--mid-navy); border-radius: 10px;
  padding: 8px; max-height: 320px; overflow-y: auto; font-size: 0.75rem; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.activity ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.activity a { display: grid; padding: 6px 8px; border-radius: 4px; text-decoration: none; color: var(--white); }
.activity a:hover { background: var(--mid-navy); color: var(--white); }
.act-step { color: var(--muted); }
.activity p { color: var(--muted); margin: 4px; }
.country-pick { display: inline-flex; align-items: center; gap: 6px; }
.country-pick select { font-size: 0.75rem; padding: 3px 6px; }
.rail-status .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

main { padding: 36px 44px 64px; min-width: 0; outline: none; max-width: 1480px; margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { color: var(--mid-navy); margin-top: 6px; max-width: 70ch; }
.back { display: inline-block; margin-bottom: 14px; font-size: var(--step--1); }

/* ---------------------------------------------------------------- controls */
.btn {
  display: inline-block; text-decoration: none;
  font: inherit; font-weight: 500; font-size: var(--step--1);
  border: 1px solid var(--navy); background: var(--white); color: var(--navy);
  padding: 8px 14px; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
}
.btn:hover { background: var(--off-white); }
.btn.primary { background: var(--navy); color: var(--white); }
.btn.primary:hover { background: var(--mid-navy); border-color: var(--mid-navy); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--mid-navy); padding-inline: 8px; }
.btn.quiet:hover { background: var(--off-white); }
.btn.danger { border-color: var(--mid-navy); color: var(--mid-navy); }
.btn:disabled { opacity: 0.5; cursor: default; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input[type=text], input[type=search], input[type=url], input[type=number], select, textarea {
  font: inherit; font-size: var(--step--1); color: var(--navy);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 10px; background: var(--white);
}
input:focus, select:focus, textarea:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px var(--lavender-light); }
textarea { width: 100%; min-height: 90px; resize: vertical; line-height: 1.45; }
label.field { display: grid; gap: 4px; font-size: var(--step--1); color: var(--mid-navy); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar input[type=search] { min-width: 260px; }
.check { display: inline-flex; gap: 6px; align-items: center; font-size: var(--step--1); color: var(--mid-navy); }

fieldset.region { border: 0; padding: 12px 14px; margin: 0 0 16px; background: var(--off-white); border-radius: var(--radius); }
fieldset.region legend { float: left; font-size: var(--step--1); font-weight: 600; color: var(--navy); margin-right: 4px; padding: 0; }
fieldset.region #f-zip { min-width: 280px; }
.near { display: inline-flex; gap: 6px; align-items: center; }
.address-text { font-size: var(--step-1); line-height: 1.4; }
.addr-form { display: grid; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); max-width: 460px; }
.addr-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; }

.signal-list .against .w { color: var(--mid-navy); }
.marker.against { background: var(--lavender); }

/* ---------------------------------------------------------------- dashboard */
.seg { display: inline-flex; align-items: center; border: 1px solid var(--navy); border-radius: var(--radius); overflow: hidden; }
.seg-label { font-size: var(--step--1); color: var(--mid-navy); padding: 0 10px; }
.seg button { font: inherit; font-size: var(--step--1); font-weight: 500; border: 0; border-left: 1px solid var(--navy);
  background: var(--white); color: var(--navy); padding: 7px 14px; cursor: pointer; }
.seg button.on { background: var(--navy); color: var(--teal); }
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--navy); margin-bottom: 24px; flex-wrap: wrap; }
.tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; text-decoration: none; color: var(--mid-navy);
  font-weight: 500; border-radius: var(--radius) var(--radius) 0 0; }
.tabs a:hover { background: var(--off-white); color: var(--navy); }
.tabs a.active { background: var(--navy); color: var(--white); }
.tab-count { font-size: 0.75rem; padding: 0 7px; border-radius: 9px; background: var(--off-white); color: var(--navy); font-variant-numeric: tabular-nums; }
.tabs a.active .tab-count { background: var(--teal); }
.cc { display: inline-grid; place-items: center; min-width: 26px; height: 18px; padding: 0 4px; border-radius: 3px; font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.04em; background: var(--lavender-light); color: var(--navy); }
.tabs a.active .cc { background: var(--teal); }
.cc.big { min-width: 44px; height: 30px; font-size: 0.9rem; background: var(--navy); color: var(--teal); }

.kpis { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 14px; }
.kpi-main { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 18px 20px; display: grid; align-content: space-between; }
.kpi-label { color: var(--muted); font-size: var(--step--1); }
.kpi-big { font-size: 3rem; font-weight: 600; color: var(--teal); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi-foot { font-size: var(--step--1); color: var(--muted); }
.ring { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.ring-track { fill: none; stroke: var(--off-white); stroke-width: 9; }
.ring-fill { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; transition: stroke-dashoffset 0.6s ease; }
.ring-text { font-size: 17px; font-weight: 600; fill: var(--navy); font-family: var(--font); }
.ring-label { font-weight: 600; font-size: var(--step--1); }
.ring-sub { font-size: 0.75rem; color: var(--mid-navy); }

.country-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.country-tile { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--navy); }
.country-tile:hover { border-color: var(--navy); color: var(--navy); }
.country-tile .cc { grid-row: span 2; }
.ct-name { font-weight: 600; }
.ct-count { grid-column: 2; font-size: var(--step-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.ct-share { grid-column: 1 / -1; font-size: 0.75rem; color: var(--mid-navy); }
.country-tile.muted { opacity: 0.55; }

.gauges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gauge { display: grid; justify-items: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px 16px;
  text-decoration: none; color: var(--navy); }
.gauge:hover { border-color: var(--navy); color: var(--navy); }
.gauge svg { max-width: 260px; }
.gauge-track { fill: none; stroke: var(--off-white); stroke-width: 16; stroke-linecap: round; }
.gauge-fill { fill: none; stroke: var(--teal); stroke-width: 16; stroke-linecap: round; }
.gauge-value { font-size: 30px; font-weight: 600; fill: var(--navy); font-family: var(--font); }
.gauge-pct { font-size: 11px; fill: var(--mid-navy); font-family: var(--font); }
.gauge-title { font-weight: 600; margin-top: 2px; }

.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 10px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; }
.bars-v { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; height: 200px; align-items: end; }
.bar-v { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-decoration: none; color: var(--navy); gap: 4px; }
.bar-v-count { text-align: center; font-size: var(--step--1); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-v-col { display: flex; align-items: flex-end; background: var(--off-white); border-radius: 4px 4px 0 0; }
.bar-v-fill { display: block; width: 100%; background: var(--navy); border-radius: 4px 4px 0 0; min-height: 2px; transition: height 0.5s ease; }
.bar-v:hover .bar-v-fill { background: var(--teal); }
.bar-v.overlay .bar-v-fill { background: var(--lavender); }
.bar-v.none .bar-v-fill { background: var(--muted); }
.bar-v-label { text-align: center; font-weight: 600; font-size: var(--step--1); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.72rem; color: var(--mid-navy); }
.chart-legend b { color: var(--navy); }
.conf-bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; margin-top: 18px; gap: 2px; }
.conf-seg { display: inline-block; }
.conf-seg.confirmed { background: var(--navy); }
.conf-seg.strong { background: var(--teal); }
.conf-seg.likely { background: var(--teal-soft); }
.conf-seg.uncertain { background: var(--lavender); }
.conf-seg.none { background: var(--line); }
.conf-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step--1); color: var(--mid-navy); margin-top: 8px; }
.conf-legend i { width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.bar-row.region { grid-template-columns: 190px 1fr 44px; }
.bar.muted { background: var(--line); }
.top-list { list-style: none; margin: 0; padding: 0; counter-reset: top; display: grid; gap: 2px; }
.top-list li { counter-increment: top; }
.top-list a { display: grid; grid-template-columns: 26px 1fr 40px 140px; gap: 10px; align-items: center; padding: 8px 10px;
  border-radius: var(--radius); text-decoration: none; color: var(--navy); font-size: var(--step--1); }
.top-list a::before { content: counter(top); font-weight: 600; color: var(--mid-navy); text-align: right; }
.top-list a:hover { background: var(--off-white); }
.top-name { font-weight: 500; display: grid; }
.top-list .score { min-width: 0; }
.list-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; }

/* ---------------------------------------------------------------- bulk selection */
th.sel, td.sel { width: 34px; padding-right: 0; }
td.sel input, th.sel input { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }
th.sel input { accent-color: var(--teal); }
tr.selected td { background: var(--lavender-light) !important; }
.bulk-bar { position: sticky; top: 58px; z-index: 5; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 10px; font-size: var(--step--1); }
.bulk-bar strong { color: var(--teal); }
.bulk-bar select { font-size: var(--step--1); }
.bulk-bar .btn { border-color: var(--teal); }
.bulk-bar .btn.quiet { color: var(--muted); border-color: transparent; }
.bulk-bar .btn.quiet:hover { color: var(--white); background: transparent; }

/* ---------------------------------------------------------------- website search */
.web-search { border: 1px solid var(--navy); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 14px; display: grid; gap: 10px; }
.web-search-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.cands { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cands li { display: grid; grid-template-columns: 200px 80px 1fr auto; gap: 12px; align-items: center; padding: 8px 10px;
  background: var(--off-white); border-radius: var(--radius); font-size: var(--step--1); }
.cand-domain { font-weight: 600; }
.cand-score { font-variant-numeric: tabular-nums; color: var(--mid-navy); }
.dash-actions { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px 14px; margin: -8px 0 20px; background: var(--off-white); border-radius: var(--radius); font-size: var(--step--1); }
.dash-web { display: flex; align-items: baseline; gap: 8px; color: var(--mid-navy); }
.dash-web-num { font-size: var(--step-1); font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------------- people */
.people-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
table.people td { vertical-align: middle; }
table.people .chip { margin-top: 3px; }
.li-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; gap: 6px; }
.li-count { font-size: var(--step-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.li-count .info-line { font-size: var(--step--1); font-weight: 400; }
.cell-sub.kp { margin-top: 3px; color: var(--navy); }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: var(--step--1); }
thead th {
  background: var(--navy); color: var(--white); font-weight: 500; text-align: left;
  padding: 10px 12px; white-space: nowrap; position: sticky; top: 0;
}
thead th button { all: unset; cursor: pointer; }
thead th button:focus-visible { outline: 2px solid var(--teal); }
tbody td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: var(--off-white); }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover td { background: var(--lavender-light); }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cell-main { font-weight: 500; color: var(--navy); }
.cell-sub { color: var(--mid-navy); font-size: 0.75rem; }
.empty { padding: 48px 24px; text-align: center; color: var(--mid-navy); }
.empty h2 { margin-bottom: 8px; color: var(--navy); }
.empty .actions { justify-content: center; margin-top: 16px; }

/* ---------------------------------------------------------------- score bar (the signature element) */
.score { display: grid; grid-template-columns: 34px minmax(80px, 1fr); align-items: center; gap: 10px; min-width: 150px; }
.score-num { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.score-track { height: 8px; background: var(--off-white); border-radius: 4px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.score-track, .score-fill { display: block; }
.score-fill { height: 100%; border-radius: 4px; background: var(--muted); }
.score.strong .score-fill { background: var(--teal); }
.score.moderate .score-fill { background: var(--teal-soft); }
.score-label { grid-column: 2; font-size: 0.75rem; color: var(--mid-navy); margin-top: -4px; }
.score.large { grid-template-columns: 48px 1fr; }
.score.large .score-num { font-size: var(--step-2); }
.score.large .score-track { height: 12px; border-radius: 6px; }

/* ---------------------------------------------------------------- chips & notes */
.chip {
  display: inline-block; font-size: 0.75rem; font-weight: 500; line-height: 1.6;
  padding: 0 8px; border-radius: 10px; background: var(--off-white); color: var(--mid-navy);
  border: 1px solid var(--line); white-space: nowrap;
}
.chip.ok { background: #e1f3e8; border-color: var(--teal); color: var(--navy); }
.chip.warn { background: var(--lavender-light); border-color: var(--lavender); color: var(--navy); }
.chip.busy { background: var(--navy); border-color: var(--navy); color: var(--teal); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.notice {
  border: 1px solid var(--lavender); background: var(--lavender-light);
  border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 10px;
}
.notice-item { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.notice-item p { max-width: 80ch; }
.sev { font-size: 0.75rem; font-weight: 600; color: var(--mid-navy); margin-right: 6px; }
.info-line { font-size: var(--step--1); color: var(--mid-navy); }

/* ---------------------------------------------------------------- company page */
.company-head { display: grid; gap: 10px; margin-bottom: 22px; }
.company-head .meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--mid-navy); font-size: var(--step--1); align-items: center; }
.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border: 1px solid var(--line); border-radius: var(--radius); margin: 22px 0 32px; overflow: hidden;
}
.fact { padding: 14px 16px; border-right: 1px solid var(--line); }
.fact:last-child { border-right: 0; }
.fact dt { font-size: 0.75rem; color: var(--mid-navy); }
.fact dd { margin: 2px 0 0; font-size: var(--step-1); font-weight: 600; font-variant-numeric: tabular-nums; }
.fact dd small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--mid-navy); }

.section { margin-top: 36px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 2px solid var(--navy); }
.section-head p { color: var(--mid-navy); font-size: var(--step--1); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.block { display: grid; gap: 8px; align-content: start; }
.block h3 { color: var(--mid-navy); font-weight: 500; font-size: var(--step--1); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: var(--step--1); margin: 0; }
.kv dt { color: var(--mid-navy); }
.kv dd { margin: 0; word-break: break-word; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8em; }

/* fit list */
.fit-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.fit { border-top: 1px solid var(--line); }
.fit:first-child { border-top: 0; }
.fit > summary {
  list-style: none; cursor: pointer; display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 1fr) auto; gap: 20px; align-items: center;
  padding: 14px 16px;
}
.fit > summary::-webkit-details-marker { display: none; }
.fit > summary:hover { background: var(--off-white); }
.fit[open] > summary { background: var(--off-white); }
.fit-name { font-weight: 600; }
.fit-cat { font-size: 0.75rem; color: var(--mid-navy); }
.fit-toggle { font-size: var(--step--1); color: var(--mid-navy); }
.fit[open] .fit-toggle .when-closed, .fit:not([open]) .fit-toggle .when-open { display: none; }
.fit-body { padding: 4px 16px 18px; display: grid; gap: 14px; }
.fit-pitch { color: var(--mid-navy); max-width: 80ch; }
.signal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: var(--step--1); }
.signal-list li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: baseline; }
.signal-list .w { font-variant-numeric: tabular-nums; text-align: right; font-weight: 600; }
.signal-list .hit .w { color: var(--navy); }
.signal-list:not(.j) .hit .w::before { content: "+"; }
.signal-list .miss { color: var(--mid-navy); }
.signal-list .detail { color: var(--mid-navy); }
.marker { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 8px; vertical-align: 1px; }
.marker.hit { background: var(--teal); }
.marker.miss { background: var(--lavender); }
.marker.unknown { background: var(--muted); }

/* providers */
.provider-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.provider-group h3 { font-size: 0.75rem; color: var(--mid-navy); font-weight: 500; margin-bottom: 6px; }
.provider { padding: 8px 10px; border-left: 3px solid var(--teal); background: var(--off-white); margin-bottom: 6px; font-size: var(--step--1); }
.provider.self { border-left-color: var(--lavender); }
.provider .ev { display: block; font-size: 0.72rem; color: var(--mid-navy); }

/* news & jobs */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.events li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; font-size: var(--step--1); }
.events time { color: var(--mid-navy); }
.bars { display: grid; gap: 8px; font-size: var(--step--1); }
.bar-row { display: grid; grid-template-columns: 170px 1fr 28px; gap: 10px; align-items: center; }
.bar { height: 8px; background: var(--teal); border-radius: 4px; }
.desc { max-width: 75ch; white-space: pre-line; }

/* ---------------------------------------------------------------- import */
.dropzone {
  border: 2px dashed var(--lavender); border-radius: var(--radius); background: var(--off-white);
  padding: 44px 24px; text-align: center; display: grid; gap: 10px; justify-items: center;
}
.dropzone.over { border-color: var(--navy); background: var(--lavender-light); }
.dropzone strong { font-size: var(--step-1); }
.dropzone p { color: var(--mid-navy); }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.summary-line { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--step--1); }

/* ---------------------------------------------------------------- offerings */
.off-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.off-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line); align-items: center; }
.off-row:first-child { border-top: 0; }
.off-row.inactive { opacity: 0.55; }
.editor { display: grid; gap: 14px; }
.editor .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rules-table td { padding: 6px; vertical-align: middle; }
.rules-table input, .rules-table select { width: 100%; }
.rules-table input.w { width: 70px; }
.rules-table { table-layout: fixed; }
.rules-table th:nth-child(1) { width: 170px; }
.rules-table th:nth-child(3) { width: 110px; }
.rules-table th:nth-child(4) { width: 90px; }
.rules-table th:nth-child(5) { width: 26%; }
.rules-table th:nth-child(6) { width: 90px; }
.rules-table input:disabled { background: var(--off-white); color: var(--muted); border-color: var(--line); }
.hint { font-size: 0.75rem; color: var(--mid-navy); }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; bottom: 24px; right: 24px; max-width: 420px;
  background: var(--navy); color: var(--white); border-left: 4px solid var(--teal);
  padding: 12px 16px; border-radius: var(--radius); font-size: var(--step--1);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: all 0.2s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast.error { border-left-color: var(--lavender); }

/* ---------------------------------------------------------------- responsive & motion */
@media (max-width: 960px) {
  .topbar { padding: 0 16px; gap: 14px; }
  .activity { right: 16px; }
  main { padding: 24px 18px 48px; }
  .two-col, .grid-2, .editor .row { grid-template-columns: 1fr; }
  .fit > summary { grid-template-columns: 1fr; gap: 8px; }
  .people-grid, .gauges { grid-template-columns: 1fr; }
  .cands li { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpi-main { grid-column: 1 / -1; }
  .events li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

tr.overridden td { color: var(--mid-navy); opacity: 0.7; }

/* ---------------------------------------------------------------- operations console */
.lane-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 8px; }
.lane-card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: grid; gap: 10px; background: var(--white); }
.lane-card.paused { background: var(--off-white); border-style: dashed; }
.lane-head { display: flex; justify-content: space-between; align-items: center; }
.lane-head h3 { text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--step--1); color: var(--mid-navy); }
.lane-nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.lane-nums b { display: block; font-size: 1.7rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lane-nums span { font-size: 0.75rem; color: var(--mid-navy); }
.lane-nums .alert b { color: var(--alert); }
:root { --alert: #b4453a; }
.ops-done { fill: var(--teal); }
.ops-dead { fill: var(--alert); }
.ops-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.ops-key.done { background: var(--teal); }
.ops-key.dead { background: var(--alert); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.dot.ok { background: var(--teal); box-shadow: 0 0 0 3px var(--lavender-light); }
.dot.off { background: var(--alert); }
.busy { height: 8px; border-radius: 4px; background: var(--off-white); overflow: hidden; }
.busy span { display: block; height: 100%; background: var(--teal); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.75rem; }
td.err { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav li#nav-ops a { border: 1px dashed var(--mid-navy); }
td.row-actions { white-space: nowrap; text-align: right; }
td.row-actions .btn { padding: 4px 10px; }

ul.evidence { list-style: none; margin: 4px 0 6px; padding: 0 0 0 10px; border-left: 2px solid var(--teal); display: grid; gap: 4px; }
ul.evidence q { font-style: italic; color: var(--navy); quotes: "“" "”"; }
ul.evidence .cell-sub { display: block; }
.signal-panel { margin-top: 12px; display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
button.chip { cursor: pointer; background: var(--white); }
button.chip:hover { border-color: var(--teal); }
ul.evidence li { display: block; grid-template-columns: none; }
ul.evidence q { display: inline; }

/* ---------------------------------------------------------------- wizard */
.stepper { list-style: none; display: flex; gap: 4px; padding: 0; margin: 0 0 16px; flex-wrap: wrap; }
.stepper button { all: unset; cursor: pointer; padding: 8px 14px; border-radius: 999px; font-size: var(--step--1); color: var(--mid-navy); border: 1px solid var(--line); }
.stepper button span { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--off-white); margin-right: 6px; font-weight: 600; }
.stepper li.current button { background: var(--navy); color: var(--white); border-color: var(--navy); }
.stepper li.current button span { background: var(--teal); color: var(--navy); }
.stepper li.done button span { background: var(--teal); color: var(--navy); }
.panel.wiz { display: grid; gap: 14px; padding: 24px; }
.wiz h2 { margin-bottom: 2px; }
.wiz .hint { color: var(--mid-navy); max-width: 75ch; }
.wiz-nav { margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.group { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 8px; }
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.group-head .grow { flex: 1; min-width: 220px; }
.imp { display: inline-flex; border: 1px solid var(--navy); border-radius: 999px; overflow: hidden; }
.imp button { all: unset; cursor: pointer; padding: 4px 12px; font-size: 0.75rem; font-weight: 500; }
.imp button + button { border-left: 1px solid var(--line); }
.imp button.on { background: var(--navy); color: var(--teal); }
.imp button.on.bad { background: var(--alert); color: var(--white); }
.imp button:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.chip.pick { cursor: pointer; background: var(--white); border: 1px solid var(--line); }
.chip.pick.on { background: var(--navy); color: var(--teal); border-color: var(--navy); }
.chip-add { border: 1px dashed var(--border); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: 0.75rem; width: 150px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; gap: 10px; background: var(--white); }
.cat-group { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin-top: 10px; }
.cat-group summary { cursor: pointer; font-weight: 600; padding: 4px 0; }
.cat-item { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--off-white); }
.cat-item .cell-sub { flex-basis: 100%; margin-left: 26px; }
.sig-imp { margin-left: auto; display: inline-flex; gap: 8px; align-items: center; }
.note { background: var(--lavender-light); border-left: 3px solid var(--lavender); padding: 8px 12px; border-radius: 4px; font-size: var(--step--1); }
.note.error { border-left-color: var(--alert); }
.kpis.small { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: grid; }
.tile b { font-size: 1.8rem; line-height: 1.1; }
.tile span { font-size: 0.75rem; color: var(--mid-navy); }
.bands { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; height: 90px; align-items: end; }
.band { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; font-size: 0.7rem; color: var(--mid-navy); }
.band span { align-self: end; background: var(--teal); border-radius: 3px 3px 0 0; min-height: 2px; }
.band span.timing { background: var(--navy); }
.sug { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; }
td.nowrap { white-space: nowrap; }
@media (max-width: 960px) { .stepper button { padding: 6px 10px; } }

.fit-scores { display: grid; gap: 4px; }
.timing-line { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; font-size: 0.75rem; color: var(--mid-navy); }
.why-now { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
a.tile { text-decoration: none; color: var(--navy); }

/* ---------------------------------------------------------------- account menu */
.topbar-right { gap: 14px; }
.user { display: flex; align-items: center; gap: 8px; }
.user .chip { background: transparent; color: var(--muted); border-color: var(--mid-navy); }
.user .btn.quiet { color: var(--white); border-color: var(--mid-navy); padding: 4px 12px; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: var(--navy); font-weight: 600; }
.usermenu .menu { position: absolute; right: 0; top: 40px; min-width: 230px; background: var(--white); color: var(--navy); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); padding: 8px; display: grid; gap: 2px; z-index: 30; }
.usermenu .who { display: grid; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.usermenu .menu a, .usermenu .menu button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 6px; font-size: var(--step--1); color: var(--navy); }
.usermenu .menu a:hover, .usermenu .menu button:hover, .usermenu .menu a:focus-visible, .usermenu .menu button:focus-visible { background: var(--off-white); }
