/* Trail v2 — leads first. Midnight / warm white / teal, amber and red only for warnings. */
:root {
  --bg: #f7f6f2; --paper: #fffefa; --ink: #1d2d44; --muted: #5a6b7e; --faint: #8a98a8; --line: #e1e5e8;
  --dark: #14243a; --teal: #087b80; --teal-ink: #07636a; --teal-soft: #e0f1ef; --blue-soft: #e8eff8; --blue-ink: #3f5d7d;
  --amber-soft: #fff1d8; --amber-ink: #85591c; --red-soft: #f7e6e2; --red-ink: #8d4a41; --shadow: 0 10px 40px #14243a12;
  --radius: 14px; --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.55 var(--font); }
a { color: var(--teal-ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #16949a; outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--dark); color: #e9f0f7; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.2px; color: #fffefa; text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.brand small { font-weight: 500; color: #8bdbd3; font-size: 11px; letter-spacing: 1.2px; }
.tabs { display: flex; gap: 4px; height: 100%; }
.tabs a { display: flex; align-items: center; gap: 8px; padding: 0 14px; color: #c1cfdf; text-decoration: none; border-bottom: 2px solid transparent; font-weight: 500; }
.tabs a:hover { color: #fff; }
.tabs a[aria-current="page"] { color: #fff; border-bottom-color: #68d4cb; }
.count { background: #ffffff1c; color: #e9f0f7; border-radius: 99px; padding: 1px 8px; font-size: 11px; font-variant-numeric: tabular-nums; }
.tabs a[aria-current="page"] .count { background: #68d4cb; color: var(--dark); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1px solid #ffffff2e; border-radius: 8px; overflow: hidden; }
.lang button { background: none; border: 0; color: #c1cfdf; padding: 5px 10px; font-size: 12px; }
.lang button[aria-pressed="true"] { background: #68d4cb; color: var(--dark); font-weight: 600; }
.icon-button { background: none; border: 1px solid #ffffff2e; color: #e9f0f7; border-radius: 8px; padding: 5px 11px; font-size: 12px; }

main { max-width: 1200px; margin: 0 auto; padding: 28px 24px 80px; }
h1 { font-size: 28px; letter-spacing: -.8px; font-weight: 620; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 0 0 12px; letter-spacing: -.2px; }
h3 { font-size: 13px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); font-weight: 650; }
.lede { color: var(--muted); margin: 0 0 22px; max-width: 760px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }

/* Buttons and fields */
.btn { border: 1px solid transparent; background: var(--teal); color: #fff; border-radius: 9px; padding: 8px 14px; font-weight: 550; font-size: 13px; }
.btn:hover { background: #066469; }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: #cfd8df; }
.btn.secondary:hover { background: #eef5f4; }
.btn.small { padding: 5px 10px; font-size: 12px; }
.btn.go { background: var(--teal); }
.btn.nogo { background: var(--paper); color: var(--red-ink); border-color: #e3c7c1; }
.btn.watch { background: var(--paper); color: var(--amber-ink); border-color: #ecd5ad; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
.field input, .field select, .field textarea, select.inline { border: 1px solid #d3dce2; background: #fbfaf7; border-radius: 8px; padding: 7px 10px; color: var(--ink); font-size: 13px; min-height: 36px; }
.field textarea { min-height: 70px; resize: vertical; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: flex-end; }

/* Summary strip */
.strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.stat span { font-size: 12px; color: var(--muted); display: block; }
.stat strong { font-size: 28px; font-weight: 560; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.stat.featured { background: var(--teal-soft); border-color: #c3e0dc; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 2px 8px; font-size: 11px; font-weight: 560; background: #edf1f5; color: #4e6379; white-space: nowrap; }
.badge.t1 { background: #14243a; color: #fff; }
.badge.t2 { background: var(--teal-soft); color: var(--teal-ink); }
.badge.t3 { background: var(--blue-soft); color: var(--blue-ink); }
.badge.go { background: #dcefeb; color: #17656a; }
.badge.no_go { background: var(--red-soft); color: var(--red-ink); }
.badge.watch, .badge.warn { background: var(--amber-soft); color: var(--amber-ink); }
.badge.muted { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* Lead cards */
.cards { display: flex; flex-direction: column; gap: 12px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 2px 10px #14243a05; }
.card:hover { border-color: #b7d3d5; }
.card > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start; border-radius: var(--radius); }
.card > summary::-webkit-details-marker { display: none; }
.card[open] > summary { background: #f1f7f6; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mono { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #e8f2f1; border: 1px solid #cbdedc; color: #21656c; font-weight: 700; font-size: 14px; }
.card-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.card-title strong { font-size: 17px; letter-spacing: -.3px; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.card-meta .dot { color: #b8c3cc; }
.headline { margin: 8px 0 0; color: #33475e; font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.score { text-align: right; min-width: 70px; }
.score strong { font-size: 26px; font-weight: 560; letter-spacing: -1px; font-variant-numeric: tabular-nums; display: block; line-height: 1.1; }
.score small { color: var(--faint); font-size: 11px; }
.decide-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.card-body { padding: 20px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; }
.section { margin-bottom: 20px; }
.why { font-size: 14px; line-height: 1.65; margin: 0; }
.hypothesis { border: 1px dashed #9fcfcb; background: #f5fbfa; border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.hypothesis b { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--teal-ink); display: block; margin-bottom: 4px; }
.fact { border-left: 3px solid #6bb6b4; background: #f2f7f5; padding: 8px 12px; border-radius: 0 8px 8px 0; margin: 0 0 8px; font-size: 13px; }
.fact q { display: block; color: #3f5268; font-style: italic; margin-top: 4px; quotes: "“" "”"; }
.fact a { font-size: 11px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.article-history > summary { cursor: pointer; font-size: 14px; font-weight: 650; padding: 10px 0; }
.company-research > summary { cursor: pointer; font-size: 14px; font-weight: 650; padding: 10px 0; }
.company-research > summary:focus-visible { outline: 2px solid #2367b1; outline-offset: 3px; }
.company-research-content { font-size: 13px; overflow-wrap: anywhere; }
.research-meta { color: var(--muted); font-size: 12px; margin: 8px 0; }
.research-caution { color: #795514; background: #fff6df; border-radius: 5px; padding: 8px 10px; font-size: 12px; }
.research-source { margin: 12px 0; padding: 12px; border: 1px solid #dce5ed; border-radius: 8px; }
.research-label { font-size: 12px; font-weight: 650; margin: 12px 0 8px; }
.research-context { padding: 10px 0; border-top: 1px solid #e5eaef; }
.research-context > summary, .research-quote > summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.research-context p, .research-notes p { margin: 8px 0; }
.research-context li, .research-notes li { margin: 6px 0; }
.research-quote blockquote { margin: 6px 0; padding-left: 8px; border-left: 2px solid #9db9c6; font-size: 12px; }
.research-notes { border-left: 3px solid #6bb6b4; padding-left: 12px; margin: 18px 0; }
.research-scope-bar { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0; }
.research-scope-bar .btn[aria-pressed="true"], .research-scope-bar .btn[aria-pressed="true"]:hover { background: #18344b; color: white; border-color: #18344b; }
.source-attribution, .research-relationship { margin: 10px 0; padding: 8px; border: 1px solid #dce5ed; border-radius: 6px; }
.source-attribution > summary, .research-relationship > summary { cursor: pointer; font-size: 12px; }
.source-assignment-form, .research-relationship-form { display: grid; gap: 8px; margin-top: 10px; }
.entity-search-row { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.entity-search-row .field { flex: 1; min-width: 140px; }
.company-research select { max-width: 100%; }
.article-history > summary:focus-visible { outline: 2px solid var(--accent, #2367b1); outline-offset: 3px; }
.article-history-hint { color: var(--muted); font-size: 12px; margin: 4px 0 14px; }
.article-discoveries { list-style: none; margin: 0 0 0 5px; padding: 0 0 0 18px; border-left: 2px solid #dce5ed; }
.article-discoveries > li { position: relative; padding: 0 0 20px; }
.article-discoveries > li::before { content: ""; position: absolute; left: -24px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #32779a; border: 2px solid white; }
.article-discoveries > li:last-child { padding-bottom: 4px; }
.article-found { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.article-found time { font-weight: 650; font-variant-numeric: tabular-nums; }
.article-discovery { font-size: 13px; overflow-wrap: anywhere; }
.article-source, .article-published { color: var(--muted); font-size: 12px; margin-top: 4px; }
.timeline li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid #eef1f3; font-size: 13px; }
.timeline time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.timeline details summary { cursor: pointer; color: var(--muted); font-size: 12px; }
.kv { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 6px 10px; font-size: 13px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.bars { list-style: none; padding: 0; margin: 0; font-size: 12px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 8px; align-items: center; margin-bottom: 6px; }
.bar { height: 6px; background: #e7ecef; border-radius: 99px; overflow: hidden; grid-column: 1 / -1; }
.bar i { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.gaps { margin: 0; padding-left: 18px; font-size: 13px; color: #6a5530; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.decision-form { background: #f6f8f9; border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: grid; gap: 10px; margin-top: 10px; }
.notice { background: var(--amber-soft); color: var(--amber-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.info { background: var(--blue-soft); color: var(--blue-ink); border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.empty { text-align: center; padding: 48px 20px; border: 1px dashed #cbd8dc; border-radius: 16px; background: var(--paper); }
.empty h2 { font-size: 19px; font-weight: 560; }
.empty p { color: var(--muted); max-width: 520px; margin: 0 auto 14px; }
pre.copy { white-space: pre-wrap; background: #f6f8f9; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 12px; max-height: 360px; overflow: auto; }

/* Research and sources tables */
.segmented { display: inline-flex; background: #eceff1; border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; margin-bottom: 16px; }
.segmented button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px #14243a1a; font-weight: 560; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid #eef1f3; vertical-align: top; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 650; background: #fafaf7; position: sticky; top: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: #f3f8f7; }
.funnel { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.funnel div { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12px; color: var(--muted); }
.funnel strong { display: block; color: var(--ink); font-size: 18px; font-variant-numeric: tabular-nums; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.drawer-backdrop { position: fixed; inset: 0; background: #14243a55; z-index: 40; display: flex; justify-content: flex-end; }
.drawer { width: min(980px, 100%); height: 100%; overflow-y: auto; background: var(--bg); padding: 22px; box-shadow: var(--shadow); }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--dark); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 60; font-size: 13px; }
.toast.error { background: #8d4a41; }

@media (max-width: 900px) {
  .card-body { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar-inner { padding: 0 16px; gap: 12px; height: auto; flex-wrap: wrap; padding-top: 10px; }
  .tabs { order: 3; width: 100%; height: 44px; overflow-x: auto; }
  .brand small { display: none; }
  main { padding: 20px 16px 60px; }
  .card > summary { grid-template-columns: 36px minmax(0, 1fr); padding: 14px; }
  .mono { width: 36px; height: 36px; font-size: 12px; }
  .score { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .card-body { padding: 14px; }
  .kv { grid-template-columns: 100px minmax(0, 1fr); }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
[hidden] { display: none !important; }
main:focus { outline: none; }
.btn:disabled { background: #e5eaee; color: #8193a4; border-color: transparent; }
/* UI-8: pipeline strip with ABA's agent names */
.funnel.agents div span { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }

/* UI-9: Overview landing page. Chart colours: one teal ramp, dark = further in the pipeline (validated as an ordinal ramp on --paper). */
:root { --ov-signal: #0b4b51; --ov-classified: #147a80; --ov-waiting: #4a9fa0; --ov-screened_out: #86bcba; --grid: #e6e9ea; --axis: #c5ced4;
  --good: #0ca30c; --warning: #fab219; --critical: #d03b3b; }
.overview.loading { opacity: .55; transition: opacity .15s; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 26px 0 12px; }
.section-head h2 { margin: 0; font-size: 19px; letter-spacing: -.3px; }
.section-head .segmented { margin: 0; }
.range-note { color: var(--muted); font-size: 12px; }
a.stat { display: block; position: relative; text-decoration: none; color: inherit; padding-right: 34px; }
a.stat:hover { border-color: #9cc9c8; }
a.stat::after { content: "→"; position: absolute; right: 14px; top: 12px; color: var(--faint); }
a.stat:hover::after { color: var(--teal-ink); }
.grid2 > * { min-width: 0; }
.stat small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; min-height: 18px; }
.overview .stat strong { font-variant-numeric: normal; }
.overview .panel > h2 { margin-bottom: 2px; }
.panel > .sub { color: var(--muted); font-size: 12px; margin: 0 0 14px; }
.panel-foot { color: var(--muted); font-size: 12px; margin: 12px 0 0; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 8px; font-size: 12px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.legend b { color: var(--ink); font-weight: 560; font-variant-numeric: tabular-nums; }
.chart { display: block; width: 100%; outline-offset: 4px; }
.chart text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .grid { stroke: var(--grid); stroke-width: 1; }
.chart .axis { stroke: var(--axis); stroke-width: 1; }
.chart .peak { fill: var(--ink); font-weight: 560; }
.chart .hl { fill: #14243a0d; }
.chart-table { margin-top: 10px; font-size: 12px; }
.chart-table > summary { cursor: pointer; color: var(--muted); }
.chart-table .table-wrap { margin-top: 8px; max-height: 320px; overflow-y: auto; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hbars li { display: grid; grid-template-columns: minmax(0, 38%) minmax(0, 1fr); gap: 12px; align-items: center; font-size: 13px; }
.hb-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hb-track { display: flex; align-items: center; gap: 8px; min-width: 0; }
.hb-track i { flex: none; height: 10px; width: calc((100% - 184px) * var(--p)); min-width: 2px; border-radius: 0 4px 4px 0; background: var(--ov-classified); }
.hbars li:hover .hb-track i { background: var(--ov-signal); }
.hb-track b { font-weight: 560; font-variant-numeric: tabular-nums; }
.hb-track small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.tip { position: fixed; z-index: 70; pointer-events: none; background: var(--paper); color: var(--muted); border: 1px solid #cfd8df; border-radius: 10px; padding: 9px 12px; font-size: 12px; box-shadow: 0 8px 28px #14243a26; max-width: 300px; }
.tip-title { color: var(--ink); font-weight: 600; margin-bottom: 5px; }
.tip-row { display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.tip-row i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.tip-row b { color: var(--ink); font-variant-numeric: tabular-nums; min-width: 36px; text-align: right; }
.health { list-style: none; margin: 0; padding: 0; }
.health li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid #eef1f3; font-size: 13px; }
.health li:last-child { border-bottom: 0; }
.health .dot { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; margin-top: 1px; }
.health .ok .dot { background: var(--good); }
.health .warn .dot { background: var(--warning); color: #4a3200; }
.health .bad .dot { background: var(--critical); }
.health .off .dot { background: #c9d2d9; color: #4e6379; }
.health b { display: block; font-weight: 560; }
.health span { color: var(--muted); font-size: 12px; }
.health details { margin-top: 4px; font-size: 12px; color: var(--muted); }
.health details summary { cursor: pointer; }
.title-cell { max-width: 420px; }
.title-cell a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
td .linkish { background: none; border: 0; padding: 0; color: var(--teal-ink); font-weight: 600; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .hbars li { grid-template-columns: 1fr; gap: 3px; }
  .tabs a { padding: 0 9px; font-size: 13px; gap: 6px; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
/* D34: ABA's terms on the cards. Priority of the signal type, Austria relation, recommended action. */
.badge.prio.very_high { background: #14243a; color: #fff; }
.badge.prio.high { background: var(--teal-soft); color: var(--teal-ink); }
.badge.prio.medium_high { background: var(--blue-soft); color: var(--blue-ink); }
.badge.rel { background: transparent; border: 1px solid #b7d3d5; color: var(--teal-ink); }
.badge.rel.austria { background: var(--teal); border-color: var(--teal); color: #fff; }
.badge.act.manual_review { background: var(--amber-soft); color: var(--amber-ink); }
.badge.act.crm_lead { background: #dcefeb; color: #17656a; }
.badge.act.account_update { background: var(--blue-soft); color: var(--blue-ink); }
.badge.act.observe { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.card-title .badge + .badge, .card-meta .badge + .badge { margin-left: 0; }

/* D36: status tracking. One badge per ABA status; the further along the chain, the stronger the teal. */
.badge.st { border-radius: 99px; padding: 2px 9px 2px 7px; }
.badge.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .75; flex: none; }
.badge.st.new { background: #14243a; color: #fff; }
.badge.st.in_review { background: var(--blue-soft); color: var(--blue-ink); }
.badge.st.watch { background: var(--amber-soft); color: var(--amber-ink); }
.badge.st.no_go { background: var(--red-soft); color: var(--red-ink); }
.badge.st.go, .badge.st.leadgen, .badge.st.crm_lead { background: #dcefeb; color: #17656a; }
.badge.st.outreach_open, .badge.st.outreach_done { background: var(--teal); color: #fff; }
.badge.st.crm_task_closed, .badge.st.withdrawn { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.status-line { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.status-line .badge { font-size: 12px; padding: 3px 11px 3px 9px; }
.status-hint { margin: 0; font-size: 13px; color: var(--muted); }
.status-kv { margin-top: 12px; font-size: 12px; }
.redecide { margin-top: 12px; font-size: 12px; }
.redecide > summary { cursor: pointer; color: var(--muted); }
.undo-line { margin: 10px 0 0; }
.linklike { border: 0; background: none; padding: 0; color: var(--teal-ink); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.timeline li.undone > div > .badge, .timeline li.undone > div > b { text-decoration: line-through; opacity: .6; }
.timeline .undone-note, .timeline .auto { color: var(--muted); font-size: 12px; }
.status-filter button span { color: var(--faint); font-variant-numeric: tabular-nums; margin-left: 2px; }
.status-filter button[aria-pressed="true"] span { color: var(--muted); }

/* Accounts and durable jobs */
#account-nav { display:flex; align-items:center; gap:8px; }
.login-card { max-width:440px; margin:7vh auto; padding:32px; }
.login-card h1 { font-size:30px; margin:10px 0; }
.login-card form,.account-form { display:grid; gap:16px; }
.account-form { max-width:520px; }
.login-card .text-button { margin-top:24px; background:none; border:0; color:var(--accent,#16736a); cursor:pointer; text-decoration:underline; }
#login-error { color:#a12432; margin:0; }
.job-output { white-space:pre-wrap; overflow-wrap:anywhere; }
body[data-role="anonymous"] .tabs,body[data-role="anonymous"] a[href="#settings"] { display:none; }
body[data-role="viewer"] a[href="#sources"],body[data-role="researcher"] a[href="#sources"],body[data-role="viewer"] a[href="#settings"],body[data-role="researcher"] a[href="#settings"] { display:none; }
[hidden] { display:none !important; }
