/* Base layout and components shared with Prometheus and Janus. Cygnus's palette, fonts and Dark Swan details are in cygnus.css. */

/* Prometheus — styled to sit next to thenuclearcompany.com:
   black and #171717 panels, white type, Space Mono throughout, 1px rules, square corners,
   one accent (TNC blue #00ABFF) for the thing that matters, pill buttons. Amber stays for deadlines. */

:root {
  --panel: #FFFFFF;
  --surface: #FFFFFF;
  --raised: #F4F4F4;
  --ink: #000000;
  --ink-2: #222222;
  --muted: #666666;
  --line: #B1B1B1;
  --line-soft: #E2E2E2;
  --cherenkov: #00ABFF;
  --cherenkov-ink: #0077B8;
  --cherenkov-soft: #DDF2FF;
  --meter-track: #E2E2E2;
  --amber: #9A5A00;
  --amber-soft: #FBEFD9;
  --green: #1C6E52;
  --green-soft: #DCEFE7;
  --red: #A8321E;
  --red-soft: #F8E1DC;
  --focus: #00ABFF;
  --radius-s: 0px;
  --radius-m: 0px;
  --font: 'Space Mono', 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --font-brand: 'Archivo Black', 'Arial Black', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --panel: #000000; --surface: #0A0A0A; --raised: #171717; --ink: #FFFFFF; --ink-2: #D6D6D6;
    --muted: #8C8C8C; --line: #333333; --line-soft: #262626; --cherenkov: #00ABFF; --cherenkov-ink: #4DC3FF;
    --cherenkov-soft: #0B2A3D; --meter-track: #2A2A2A; --amber: #F2A53B; --amber-soft: #2E2210;
    --green: #5CC79E; --green-soft: #12302A; --red: #F08A75; --red-soft: #3A1F1A; --focus: #00ABFF;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --panel: #000000; --surface: #0A0A0A; --raised: #171717; --ink: #FFFFFF; --ink-2: #D6D6D6;
  --muted: #8C8C8C; --line: #333333; --line-soft: #262626; --cherenkov: #00ABFF; --cherenkov-ink: #4DC3FF;
  --cherenkov-soft: #0B2A3D; --meter-track: #2A2A2A; --amber: #F2A53B; --amber-soft: #2E2210;
  --green: #5CC79E; --green-soft: #12302A; --red: #F08A75; --red-soft: #3A1F1A; --focus: #00ABFF;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--panel);
  color: var(--ink);
  font: 13.5px/1.5 var(--font);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.02em;
}
a { color: var(--cherenkov-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 8px; background: var(--raised); padding: 6px 10px; z-index: 50; }
mark { background: var(--cherenkov-soft); color: inherit; border-radius: 2px; padding: 0 1px; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 0 20px; height: 56px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.brand-rod { width: 5px; height: 22px; border-radius: 2px; background: var(--cherenkov); box-shadow: 0 0 10px color-mix(in srgb, var(--cherenkov) 55%, transparent); }
.tabs { display: flex; gap: 2px; height: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs a {
  display: flex; align-items: center; padding: 0 9px; height: 100%; font-size: 14px;
  color: var(--ink-2); text-decoration: none; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cherenkov); }
.topbar-status { margin-left: auto; display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; border: 1px solid var(--line); background: var(--raised); color: var(--ink-2); }
.pill.demo { border-color: var(--amber); color: var(--amber); background: var(--amber-soft); }

/* ---------- layout ---------- */
.page { padding: 20px; max-width: 1640px; margin: 0 auto; }
.searchbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.search-input {
  flex: 1 1 420px; min-width: 0; height: 44px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--raised);
  font-size: 16px;
}
.search-input::placeholder { color: var(--muted); }
.select, .input {
  height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--raised);
}
textarea.input { height: auto; padding: 8px 10px; min-height: 96px; resize: vertical; width: 100%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; background: var(--raised); }
.seg button { border: 0; background: none; padding: 0 12px; height: 34px; cursor: pointer; color: var(--ink-2); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }

.readout { display: flex; gap: 6px 22px; flex-wrap: wrap; align-items: baseline; margin: 2px 0 14px; color: var(--ink-2); font-size: 13.5px; }
.readout .ro { display: inline-flex; align-items: baseline; gap: 6px; text-decoration: none; color: var(--ink-2); padding: 2px 0; border-bottom: 1px solid transparent; }
.readout a.ro:hover { color: var(--ink); border-bottom-color: var(--line); }
.readout a.ro.on { color: var(--ink); border-bottom-color: var(--cherenkov); }
.readout a.ro.on::after { content: '×'; color: var(--cherenkov); margin-left: 2px; }
.readout b { font-size: 19px; font-weight: 600; color: var(--ink); }
.readout .warn b { color: var(--amber); }
.readout .new b { color: var(--cherenkov); }
.readout .total b { font-size: 22px; }

.workspace { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 20px; align-items: start; }

/* ---------- facets ---------- */
.facets { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; padding-right: 4px; font-size: 14px; }
.facet { padding: 12px 0; border-top: 1px solid var(--line); }
.facet:first-child { border-top: 0; padding-top: 0; }
.facet h3 { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.facet label { display: flex; align-items: center; gap: 8px; padding: 3px 0; cursor: pointer; }
.facet label span.name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.facet label .count { color: var(--muted); font-size: 12.5px; }
.facet input[type="checkbox"] { accent-color: var(--cherenkov); margin: 0; }
.facet .more { background: none; border: 0; padding: 4px 0; color: var(--cherenkov-ink); cursor: pointer; font-size: 13px; }
.facet input[type="range"] { width: 100%; accent-color: var(--cherenkov); }
.facet .row { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
.facet .select { width: 100%; }
.clear-filters { background: none; border: 0; color: var(--cherenkov-ink); cursor: pointer; padding: 0; font-size: 13px; }

/* ---------- result rows ---------- */
.results { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); }
.results-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.result {
  display: grid; grid-template-columns: 34px minmax(0, 1fr) 150px; gap: 14px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-soft); cursor: pointer;
}
.result:last-child { border-bottom: 0; }
.result:hover { background: var(--raised); }
.result[aria-selected="true"] { background: var(--raised); box-shadow: inset 3px 0 0 var(--cherenkov); }

/* The relevance meter: a control-rod gauge filled from the bottom. */
.meter { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.meter-rod { position: relative; width: 8px; height: 44px; border-radius: 3px; background: var(--meter-track); overflow: hidden; }
.meter-rod i { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 3px; background: var(--cherenkov); }
.meter-rod.hot i { box-shadow: 0 0 8px color-mix(in srgb, var(--cherenkov) 70%, transparent); }
.meter-rod.cool i { background: color-mix(in srgb, var(--cherenkov) 45%, var(--meter-track)); }
.meter b { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

.result-title { font-weight: 600; font-size: 15.5px; line-height: 1.35; color: var(--ink); }
.result-org { color: var(--ink-2); font-size: 13.5px; margin-top: 3px; }
.result-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--radius-s); font-size: 12.5px; background: var(--panel); color: var(--ink-2); border: 1px solid var(--line-soft); }
.tag.type { background: var(--raised); border-color: var(--line); }
.tag.seg { background: var(--cherenkov-soft); border-color: transparent; color: var(--cherenkov-ink); }
.tag.setaside { background: var(--green-soft); border-color: transparent; color: var(--green); }
.tag.stage { background: var(--ink); color: var(--surface); border-color: transparent; }
.tag.demo { color: var(--amber); border-color: var(--amber); background: transparent; }
.snippet { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.result-when { text-align: right; font-size: 13px; color: var(--muted); }
.due { display: block; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.due.soon { color: var(--amber); }
.due.closed { color: var(--muted); font-weight: 500; }
.empty { padding: 48px 24px; text-align: center; color: var(--ink-2); }
.empty p { max-width: 52ch; margin: 8px auto 16px; color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--radius-s);
  border: 1px solid var(--line); background: var(--raised); color: var(--ink); cursor: pointer;
  font-weight: 500; text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: var(--ink-2); }
.btn.primary { background: var(--cherenkov); border-color: var(--cherenkov); color: #fff; }
.btn.primary:hover { background: var(--cherenkov-ink); }
.btn.quiet { border-color: transparent; background: transparent; color: var(--cherenkov-ink); padding: 0 8px; }
.btn.danger { color: var(--red); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- drawer ---------- */
.drawer {
  position: fixed; top: 56px; right: 0; bottom: 0; z-index: 30;
  width: min(560px, 100vw); background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform .2s ease-out; overflow-y: auto;
  visibility: hidden;
}
.drawer.open { transform: none; visibility: visible; box-shadow: -12px 0 32px rgba(10, 20, 30, .12); }
.drawer-close { position: sticky; top: 0; float: right; margin: 12px 12px 0 0; z-index: 2; }
.drawer-close { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--raised); cursor: pointer; }
.drawer-body { padding: 20px 24px 40px; }
.drawer h2 { font-size: 20px; letter-spacing: -0.01em; margin: 4px 0 6px; padding-right: 64px; }
.drawer section { margin-top: 22px; }
.drawer section > h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.why { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; background: var(--raised); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 14px; }
.segbars { display: grid; gap: 6px; font-size: 13.5px; }
.segbar { display: grid; grid-template-columns: 1fr 120px; gap: 10px; align-items: center; }
.segbar .bar { height: 6px; border-radius: 3px; background: var(--meter-track); overflow: hidden; }
.segbar .bar i { display: block; height: 100%; background: var(--cherenkov); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.chip { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: var(--panel); color: var(--ink-2); }
.chip.neg { background: var(--red-soft); color: var(--red); }
.description { white-space: pre-wrap; font-size: 14px; line-height: 1.6; color: var(--ink-2); max-height: 420px; overflow: auto; background: var(--raised); border: 1px solid var(--line-soft); border-radius: var(--radius-m); padding: 12px 14px; }
.list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.list li:last-child { border-bottom: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid label { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); }
.form-grid .full { grid-column: 1 / -1; }
.form-grid .input, .form-grid .select { width: 100%; }

/* ---------- tables ---------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-weight: 600; font-size: 13px; color: var(--ink-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover td { background: var(--raised); }
table.data td.num, table.data th.num { text-align: right; white-space: nowrap; }
.desc-cell { max-width: 46ch; color: var(--ink-2); }
.ending { font-weight: 600; white-space: nowrap; }
.ending.soon { color: var(--amber); }
.spark { display: inline-block; height: 6px; border-radius: 3px; background: var(--cherenkov); vertical-align: middle; }

.view-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.view-head h1 { font-size: 22px; letter-spacing: -0.015em; }
.view-head p { margin: 4px 0 0; color: var(--muted); max-width: 72ch; }
.controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- pursuits board ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.lane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); min-height: 200px; }
.lane h3 { font-size: 13.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--ink-2); }
.lane-cards { padding: 8px; display: grid; gap: 8px; }
.card { background: var(--raised); border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 10px; cursor: pointer; font-size: 13.5px; }
.card:hover { border-color: var(--ink-2); }
.card b { display: block; font-size: 14px; margin-bottom: 4px; line-height: 1.3; }
.prio { font-size: 12px; font-weight: 600; }
.prio.High { color: var(--red); }
.prio.Medium { color: var(--amber); }
.prio.Low { color: var(--muted); }

/* ---------- data & ontology ---------- */
.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 18px; }
.panel h2 { font-size: 16px; margin-bottom: 6px; }
.panel p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.log { font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--raised); border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 10px 12px; height: 260px; overflow: auto; white-space: pre-wrap; color: var(--ink-2); }
.budget { display: flex; gap: 3px; margin: 8px 0 4px; }
.budget i { flex: 1; height: 10px; border-radius: 2px; background: var(--cherenkov); }
.budget i.used { background: var(--meter-track); }
.status-ok { color: var(--green); font-weight: 600; }
.status-error { color: var(--red); font-weight: 600; }
.status-partial { color: var(--amber); font-weight: 600; }
.ontology-graph { width: 100%; height: auto; display: block; }
.ontology-graph .node rect { fill: var(--raised); stroke: var(--line); }
.ontology-graph .node.core rect { stroke: var(--cherenkov); stroke-width: 1.5; }
.ontology-graph .node text { fill: var(--ink); font: 600 13px var(--font); }
.ontology-graph .node text.sub { fill: var(--muted); font: 400 11px var(--font); }
.ontology-graph .edge { stroke: var(--line); stroke-width: 1.2; fill: none; opacity: .7; transition: opacity .12s, stroke .12s; }
.ontology-graph.focus .edge { opacity: .12; }
.ontology-graph.focus .edge.lit { opacity: 1; stroke: var(--cherenkov); stroke-width: 1.8; }
.ontology-graph .family { fill: var(--muted); font: 700 11px var(--font); letter-spacing: 0.1em; text-transform: uppercase; }
.ontology-graph .edge.mm { stroke-dasharray: 4 3; }
.ontology-graph .elabel { fill: var(--muted); font: 400 10.5px var(--font); }
.ontology-graph .node { cursor: pointer; }
.ontology-graph .node:hover rect { stroke: var(--ink-2); }
details.otype { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 8px; }
details.otype summary { padding: 12px 16px; cursor: pointer; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
details.otype summary b { font-size: 15px; }
details.otype[open] summary { border-bottom: 1px solid var(--line-soft); }
details.otype .inner { padding: 12px 16px; }
code { font: 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--panel); padding: 1px 5px; border-radius: 3px; }

.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: var(--radius-m); font-size: 14px; transition: opacity .15s, transform .15s; z-index: 60; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }
.toast.error { background: var(--red); color: #fff; }

.banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 1px solid var(--amber); background: var(--amber-soft); color: var(--ink); border-radius: var(--radius-m); font-size: 14px; }

/* ---------- responsive ---------- */
.filters-toggle { display: none; }
@media (max-width: 980px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .facets { position: static; max-height: none; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px; }
  .facets.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .result { grid-template-columns: 28px minmax(0, 1fr); }
  .result-when { grid-column: 2; text-align: left; display: flex; gap: 12px; align-items: baseline; }
}
@media (max-width: 640px) {
  .topbar { gap: 12px; padding: 0 12px; }
  .brand-name { display: none; }
  .topbar-status { display: none; }
  .page { padding: 14px 16px; }
  .drawer { top: 0; }
  .drawer-body { padding: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .readout { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .drawer, .toast { transition: none; }
}

/* ---------- response drafting ---------- */
.draft-box { border: 1px solid var(--line-soft); border-radius: var(--radius-m); background: var(--raised); }
.draft-step { padding: 12px 14px; }
.draft-step + .draft-step { border-top: 1px solid var(--line-soft); }
.draft-step p { margin: 4px 0 0; font-size: 13.5px; }
.status-chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--panel); color: var(--ink-2); }
.status-chip.s-Generating { background: var(--cherenkov-soft); color: var(--cherenkov-ink); }
.status-chip.s-In-review { background: var(--amber-soft); color: var(--amber); }
.status-chip.s-Final { background: var(--green-soft); color: var(--green); }
.status-chip.s-Failed { background: var(--red-soft); color: var(--red); }
.back { font-size: 14px; text-decoration: none; }
.draft-page .view-head h1 { max-width: 60ch; }
.draft-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.draft-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; display: grid; gap: 14px; padding-bottom: 8px; }
.draft-side .panel { padding: 16px; }
.draft-side .panel h2 { font-size: 15px; }
.section-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-m); margin-bottom: 14px; }
.section-card header { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; padding: 14px 20px 0; }
.section-card header h2 { font-size: 17px; flex: 1 1 auto; }
.section-card header .muted { font-size: 12.5px; }
.section-body, .section-edit { padding: 6px 20px 16px; }
.section-body p { margin: 0 0 10px; max-width: 78ch; line-height: 1.6; }
.section-edit textarea { width: 100%; font: 14px/1.55 var(--font); }
mark.gap { background: #FFE58F; color: #3D2E00; font-weight: 600; padding: 0 3px; border-radius: 3px; }
.gap-count { color: var(--amber); font-weight: 600; }
.gap-list { margin: 0; padding-left: 18px; font-size: 13.5px; }
.gap-list li { margin-bottom: 6px; }
.matrix { display: grid; gap: 8px; }
.req { border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 8px 10px; background: var(--raised); font-size: 13.5px; }
.req-head { display: flex; gap: 8px; align-items: center; }
.req-head .kind { color: var(--muted); font-size: 12px; flex: 1; }
.req-text { margin: 4px 0; color: var(--ink-2); }
.req-note { font-size: 12.5px; }
.req-foot { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; }
.req-foot a, .req-foot > span { flex: 1 1 100%; }
.select.mini { height: 28px; font-size: 12.5px; padding: 0 6px; }
.cov { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.cov-Addressed { background: var(--green-soft); color: var(--green); }
.cov-Partial { background: var(--amber-soft); color: var(--amber); }
.cov-Gap { background: var(--red-soft); color: var(--red); }
.generating { padding-top: 80px; }
.rod-pulse { width: 8px; height: 56px; margin: 0 auto 18px; border-radius: 3px; background: var(--meter-track); position: relative; overflow: hidden; }
.rod-pulse::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: var(--cherenkov); border-radius: 3px; box-shadow: 0 0 10px var(--cherenkov); animation: rod 1.8s ease-in-out infinite alternate; }
@keyframes rod { to { height: 100%; } }
.lib-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.lib-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.lib-head h2 { margin: 0; }
.checklist { list-style: none; margin: 8px 0 0; padding: 0; font-size: 14px; }
.checklist li { padding: 4px 0 4px 26px; position: relative; color: var(--ink-2); }
.checklist li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line); }
.checklist li.ok::before { background: var(--green); border-color: var(--green); }
.seg-picks { border: 1px solid var(--line-soft); border-radius: var(--radius-s); padding: 8px 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; font-size: 13px; margin: 0; }
.seg-picks legend { font-size: 13px; color: var(--ink-2); padding: 0 4px; }
.seg-picks label { display: flex !important; gap: 6px; align-items: center; color: var(--ink); }
label.btn input[hidden] { display: none; }
@media (max-width: 1100px) {
  .draft-layout { grid-template-columns: minmax(0, 1fr); }
  .draft-side { position: static; max-height: none; }
  .lib-top { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .rod-pulse::after { animation: none; height: 60%; } }
.section-body ul { margin: 0 0 10px; padding-left: 22px; max-width: 76ch; line-height: 1.55; }
.section-body h3 { font-size: 15px; margin: 14px 0 6px; }
.side-sub { font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 10px 0 6px; }

/* ---------- market catalog ---------- */
.subnav { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.subnav a { padding: 8px 12px; text-decoration: none; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cherenkov); }
.tier { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; }
.tier-Primary { background: var(--cherenkov); color: #fff; }
.tier-Secondary { background: var(--cherenkov-soft); color: var(--cherenkov-ink); }
.tier-Watch { background: var(--panel); color: var(--ink-2); border: 1px solid var(--line); }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.cat-card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.cat-card:hover { border-color: var(--ink-2); }
.cat-card header { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.cat-card h3 { font-size: 16px; margin: 2px 0 0; }
.cat-card p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.cat-card ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; color: var(--ink-2); }
.cat-card p.how { font-size: 13.5px; }
.cat-card footer { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 12.5px; }
.vstatus { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.vstatus.ok { color: var(--green); }
.vstatus.warn { color: var(--amber); }
.vstatus.off { color: var(--muted); }
.why-it-matters { background: var(--cherenkov-soft); border-radius: var(--radius-m); padding: 10px 14px; margin: 12px 0; color: var(--ink); }
.cat-note { font-size: 13.5px; color: var(--ink-2); background: var(--amber-soft); border-radius: var(--radius-m); padding: 10px 14px; margin: 0 0 14px; max-width: 110ch; }

/* Ten top-level views: tighter tabs, and status pills yield first on narrower screens. */
.topbar { gap: 18px; }
.tabs a { padding: 0 10px; }



/* ---------- bankability ---------- */
.score-pill { display: inline-block; min-width: 34px; text-align: center; font-weight: 700; font-size: 13px; padding: 2px 8px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); }
.score-pill.s2, .score-pill.s3, .score-pill.s4 { background: var(--cherenkov); color: #fff; border-color: transparent; }
.score-pill.s1 { background: var(--cherenkov-soft); color: var(--cherenkov-ink); border-color: transparent; }
.bank-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
.bank-assume { margin-bottom: 16px; }
.bank-assume h2 { font-size: 15px; display: inline; margin: 0; }
/* The form spreads across the width when open: selects and checks first, then the slider groups side by side. */
.bank-inputs { display: flex; flex-wrap: wrap; gap: 6px 28px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line-soft); }
.bank-inputs .field { min-width: 240px; }
.bank-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 28px; align-items: start; }
.bank-groups .igroup { border-top: 0; }
.bank-assume > summary { list-style: none; cursor: pointer; display: flex; align-items: baseline; gap: 10px; user-select: none; }
.bank-assume > summary::-webkit-details-marker { display: none; }
.bank-assume > summary::before { content: '▸'; color: var(--cherenkov); font-size: 12px; }
.bank-assume[open] > summary::before { content: '▾'; }
.bank-assume > summary .muted { font-size: 12px; margin-left: auto; }
.bank-assume:not([open]) { padding-bottom: 12px; }
.bank-assume > summary .hint::before { content: 'show'; }
.bank-assume[open] > summary .hint::before { content: 'hide'; }
.bank-top { display: flex; gap: 24px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.gauge { display: flex; gap: 12px; align-items: center; }
.gauge-rod { width: 12px; height: 72px; border-radius: 4px; background: var(--meter-track); position: relative; overflow: hidden; }
.gauge-rod i { position: absolute; left: 0; right: 0; bottom: 0; background: var(--cherenkov); box-shadow: 0 0 10px color-mix(in srgb, var(--cherenkov) 60%, transparent); border-radius: 4px; }
.gauge b { font-size: 32px; line-height: 1; display: block; }
.gauge span { font-size: 13px; color: var(--ink-2); }
.bank-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1; }
@media (max-width: 900px) { .bank-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bank-kpis > div { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 14px; min-width: 0; }
.bank-kpis b { display: block; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.bank-kpis span { display: block; font-size: 12px; color: var(--muted); margin-top: 3px; }
.gauge-wrap { cursor: help; padding-right: 10px; border-right: 1px solid var(--line-soft); margin-right: 4px; }
.bank-kpis b.neg { color: var(--amber); }
.bank-kpis b.pos { color: var(--green); }
.bank-kpis span { font-size: 12.5px; color: var(--muted); }
.bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bank-grid .panel.wide { grid-column: 1 / -1; }
.bank-grid .panel h2 { font-size: 15px; margin-bottom: 10px; }
table.stack td { padding: 6px 10px; font-size: 13.5px; }
table.stack tr.sub td { font-weight: 600; border-top: 1px solid var(--line); background: var(--raised); }
table.stack tbody tr { cursor: default; }
.asks { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.asks li { margin-bottom: 8px; }
#bank-form .field { display: grid; gap: 4px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
#bank-form .check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; margin: 4px 0; }
.igroup { border-top: 1px solid var(--line-soft); margin-top: 8px; padding-top: 6px; }
.igroup summary { cursor: pointer; font-weight: 600; font-size: 13.5px; padding: 4px 0; }
.slider { margin: 8px 0 6px; }
.slider-head { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); gap: 8px; }
.slider-head output { font-weight: 600; color: var(--ink); white-space: nowrap; }
.slider input[type=range] { width: 100%; accent-color: var(--cherenkov); margin: 2px 0 0; }
@media (max-width: 1100px) { .bank-layout, .bank-grid { grid-template-columns: minmax(0, 1fr); } }
details.cat-note summary { cursor: pointer; }

.theme-toggle { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--raised); color: var(--ink-2); cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
/* Dark theme: deeper panel contrast and a visible Cherenkov glow on the meters. */
:root[data-theme="dark"] .results, :root[data-theme="dark"] .panel, :root[data-theme="dark"] .table-wrap, :root[data-theme="dark"] .cat-card, :root[data-theme="dark"] .section-card { box-shadow: 0 1px 0 rgba(255,255,255,.03) inset; }
:root[data-theme="dark"] mark.gap { background: #6B4F00; color: #FFE9A8; }
:root[data-theme="dark"] .cat-note { background: #2E2412; }
:root[data-theme="dark"] .banner { background: #2E2412; }

.approach { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; letter-spacing: .01em; }
.a-Prime { background: var(--cherenkov); color: #fff; }
.a-Team { background: var(--cherenkov-soft); color: var(--cherenkov-ink); }
.a-Subcontract { background: var(--green-soft); color: var(--green); }
.a-Shape { background: var(--amber-soft); color: var(--amber); }
.a-Monitor { background: var(--panel); color: var(--ink-2); border: 1px solid var(--line); }
.a-Pass { background: var(--red-soft); color: var(--red); }

/* ---- readiness ---- */
.gate { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: 20px; padding: 16px 20px; border-top: 1px solid var(--line-soft); }
.gate:first-of-type { border-top: 0; }
.gate-title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 15px; margin-bottom: 6px; }
.gate-main p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.45; }
.gate-meta { font-size: 12.5px; }
.gate.s-Held { border-left: 3px solid var(--green); }
.gate.s-Blocked { border-left: 3px solid var(--red); }
.gate.s-In-progress { border-left: 3px solid var(--cherenkov); }
.status-chip.s-Held { background: var(--green-soft); color: var(--green); }
.status-chip.s-Blocked { background: var(--red-soft); color: var(--red); }
.status-chip.s-In-progress { background: var(--cherenkov-soft); color: var(--cherenkov-ink); }
.status-chip.s-Not-needed { opacity: .7; }
@media (max-width: 900px) { .gate { grid-template-columns: 1fr; } }

/* ---- brief ---- */
.brief-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .brief-layout { grid-template-columns: 1fr; } }
.brief-body { max-width: 80ch; }
.md h2 { font-size: 20px; margin: 0 0 12px; }
.md h3 { font-size: 15px; margin: 22px 0 8px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.md p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; }
.md ul { margin: 0 0 10px; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.md li { margin-bottom: 5px; }
.md blockquote { margin: 0 0 12px; padding: 8px 12px; border-left: 3px solid var(--amber); color: var(--amber); background: var(--amber-soft); border-radius: var(--radius-s); font-size: 13.5px; }

/* ---------- TNC brand layer ---------- */
h1, h2, h3 { font-weight: 400; letter-spacing: -0.03em; }
.view-head h1 { font-size: 28px; }
.panel h2, .section-card header h2 { font-weight: 700; font-size: 15px; letter-spacing: -0.02em; }
b, strong, th { font-weight: 700; }

.topbar { height: 64px; background: var(--panel); border-bottom: 1px solid var(--line);
  background-image: var(--binary); background-size: 420px 64px; background-repeat: repeat-x; }
:root[data-theme="dark"] .topbar, :root:not([data-theme="light"]) .topbar { --binary: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='64'%3E%3Ctext x='0' y='14' font-family='Space Mono,monospace' font-size='11' fill='%23ffffff' fill-opacity='0.11' letter-spacing='2'%3E0110 1001 0 11 0100 1 010 0011 01 1100 0 10 0111 1010 00 1 0101%3C/text%3E%3Ctext x='-18' y='34' font-family='Space Mono,monospace' font-size='11' fill='%23ffffff' fill-opacity='0.075' letter-spacing='2'%3E1 0010 110 0 1011 0100 1 1 0010 0 1101 001 0 1110 1 0001 010%3C/text%3E%3Ctext x='-6' y='54' font-family='Space Mono,monospace' font-size='11' fill='%23ffffff' fill-opacity='0.095' letter-spacing='2'%3E0011 1 0100 1011 0 10 0110 01 1 0010 1101 0 11 0100 1 0 0110%3C/text%3E%3C/svg%3E"); }
:root[data-theme="light"] .topbar { --binary: none; }
.brand { gap: 12px; }
.brand-rod { display: none; }
.brand-name { display: block; font: 700 13px/1 var(--font-brand); text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink); white-space: nowrap; }
.brand-sub { display: block; font: 400 10.5px/1 var(--font); color: var(--cherenkov); letter-spacing: 0.08em; text-transform: uppercase; border-left: 1px solid var(--line); padding-left: 12px; align-self: stretch; display: flex; align-items: center; }
@media (max-width: 1560px) { .brand-sub { display: none; } .topbar { gap: 14px; } }

.tabs a { font-size: 12px; padding: 0 6px; letter-spacing: -0.03em; border-bottom-width: 2px; }
.tabs a[aria-current="page"] { border-bottom-color: var(--cherenkov); color: var(--ink); }
.topbar-status .pill { border-radius: 999px; }
.theme-toggle, .btn { border-radius: 999px; font-family: var(--font); font-size: 13px; letter-spacing: -0.02em; }
.btn.primary { background: var(--cherenkov); border-color: var(--cherenkov); color: #000; font-weight: 700; }
.btn.primary:hover { background: #33BBFF; border-color: #33BBFF; color: #000; }
.btn.quiet { color: var(--cherenkov-ink); }
.pill { border-radius: 999px; }
.tag { border-radius: 0; font-size: 12px; }
.tag.seg { background: transparent; border: 1px solid var(--cherenkov); color: var(--cherenkov-ink); }
.tag.stage { background: var(--ink); color: var(--panel); }
.status-chip { border-radius: 0; }
.select, .input { border-radius: 0; font-family: var(--font); font-size: 13px; background: var(--surface); }
.panel, .table-wrap, .section-card, .card, .drawer { border-radius: 0; }
.result[aria-selected="true"] { box-shadow: inset 3px 0 0 var(--cherenkov); }
.meter-rod, .meter-rod i, .spark { border-radius: 0; }
.toast { border-radius: 999px; background: var(--cherenkov); color: #000; font-weight: 700; }
.toast.error { background: var(--red); color: #fff; }
a { color: var(--cherenkov-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.empty h2 { font-weight: 400; }
.md h3 { letter-spacing: 0.06em; }
.md blockquote { border-radius: 0; }
table.data th { font-weight: 700; font-size: 12px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }

/* ---- Dark Swan hosted build ---- */
.brand-link { display: flex; align-items: center; color: var(--ink); }
.brand-link svg { height: 36px; width: auto; display: block; }
.hosted-note { font-size: 12px; color: var(--muted); padding: 8px 20px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }

/* ---- signals ---- */
.subtabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); }
.subtabs a { padding: 8px 12px; color: var(--ink-2); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; font-size: 13px; }
.subtabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--cherenkov); }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.notice-bar { padding: 10px 12px; border: 1px solid var(--line); background: var(--raised); font-size: 13.5px; margin: 10px 0; }
.notice-bar.error { border-color: var(--red); color: var(--red); background: var(--red-soft); }

/* ---- hover explanations ---- */
.tip { position: fixed; z-index: 80; max-width: 420px; padding: 10px 12px; background: var(--raised); color: var(--ink); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0,0,0,.35); font-size: 12.5px; line-height: 1.45; pointer-events: none; }
.tip b { display: block; margin-bottom: 4px; font-size: 13px; }
.tip p { margin: 6px 0; }
.tip ul { margin: 4px 0 0; padding-left: 16px; }
.tip li { margin-bottom: 3px; }
.tip .muted { margin-top: 6px; font-size: 11.5px; }
.tip-table { border-collapse: collapse; margin: 4px 0; }
.tip-table td { padding: 2px 8px 2px 0; vertical-align: top; }
.tip-table td.num { text-align: right; white-space: nowrap; font-weight: 700; }
.info-i { display: inline-flex; align-items: center; justify-content: center; padding: 2px; margin: 0 0 0 2px; border: 0; background: none;
  color: var(--muted); cursor: help; vertical-align: middle; border-radius: 50%; }
.info-i:hover, .info-i:focus-visible { color: var(--cherenkov); }
[data-tip] { cursor: help; }
tr[data-rank] [data-tip] { outline-offset: 2px; }

/* ---- sync ---- */
.sync-banner { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 4px 20px; min-height: 0; font-size: 12.5px; line-height: 1.3; white-space: nowrap;
  background: var(--amber-soft); color: var(--amber); border-bottom: 1px solid var(--amber); }
.sync-banner[hidden] { display: none; }
.sync-banner b { color: inherit; }
.sync-banner .btn { border-color: var(--amber); color: var(--amber); }
.sync-banner .btn.primary { background: var(--amber); color: #000; }
.sync-banner .sb-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sync-banner .sb-actions { display: flex; gap: 6px; flex: none; }
.sync-banner .btn.small { height: 22px; padding: 0 9px; font-size: 12px; }
.sync-status { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 18px; border: 1px solid var(--line); background: var(--surface); font-size: 13.5px; }
.sync-status.fresh { border-left: 3px solid var(--green); }
.sync-status.stale { border-left: 3px solid var(--amber); }
.sync-status.running { border-left: 3px solid var(--cherenkov); }
.sync-status b { display: inline-block; margin-right: 8px; }
.source-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.source { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line-soft); background: var(--raised); font-size: 13px; cursor: pointer; }
.source.off { opacity: .5; cursor: not-allowed; }
.source input { margin-top: 3px; }
tr.batch-start td { border-top: 2px solid var(--line); }
.sched { display: grid; gap: 10px; font-size: 13.5px; }
.sched label { display: flex; align-items: center; gap: 8px; }

/* ---------- shell: sidebar + content (TNC-style: black, rules, one accent) ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: calc(100vh - 64px); }
:root[data-nav="collapsed"] .shell { grid-template-columns: 60px minmax(0, 1fr); }
.sidenav { position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; overflow-x: hidden; background: var(--panel); border-right: 1px solid var(--line); padding: 12px 0 16px; scrollbar-width: thin; }
.sidenav a { display: flex; align-items: center; gap: 10px; padding: 7px 14px 7px 16px; color: var(--ink-2); text-decoration: none; font-size: 13px; letter-spacing: -0.02em; border-left: 2px solid transparent; white-space: nowrap; }
.sidenav a:hover { color: var(--ink); background: var(--surface); }
.sidenav a[aria-current="page"] { color: var(--ink); border-left-color: var(--cherenkov); background: var(--surface); }
.sidenav a.nav-home { font-weight: 700; margin-bottom: 6px; }
.nav-group { margin-top: 14px; }
.nav-group h2 { font: 700 10.5px/1 var(--font); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 16px 6px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.nav-group h2 small { display: block; margin-top: 4px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); opacity: .8; }
.nav-foot { margin: 22px 16px 0; font-size: 11px; line-height: 1.4; }
.ni { width: 16px; height: 16px; flex: 0 0 16px; display: inline-block; background: currentColor; opacity: .85;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ni-home { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8l6-5 6 5v6H9v-4H7v4H2z' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ni-opps { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M10.5 10.5L14 14' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ni-rank { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='9' width='3' height='5' fill='black'/%3E%3Crect x='6.5' y='5' width='3' height='9' fill='black'/%3E%3Crect x='11' y='2' width='3' height='12' fill='black'/%3E%3C/svg%3E"); }
.ni-signals { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='1.6' fill='black'/%3E%3Cpath d='M4.5 11.5a5 5 0 010-7M11.5 4.5a5 5 0 010 7M2.5 13.5a8 8 0 010-11M13.5 2.5a8 8 0 010 11' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-recompetes { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 8A5 5 0 113.6 5.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M3 2v4h4' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ni-competitors { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='3' width='5' height='10' fill='none' stroke='black' stroke-width='1.4'/%3E%3Crect x='9' y='6' width='5' height='7' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ni-teaming { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='4' cy='4' r='2' fill='none' stroke='black' stroke-width='1.3'/%3E%3Ccircle cx='12' cy='4' r='2' fill='none' stroke='black' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='12' r='2' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M5.5 5.5l1.5 4.5M10.5 5.5L9 10M6 4h4' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-pursuits { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6' fill='none' stroke='black' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='8' r='3' fill='none' stroke='black' stroke-width='1.3'/%3E%3Ccircle cx='8' cy='8' r='1' fill='black'/%3E%3C/svg%3E"); }
.ni-responses { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 2h7l3 3v9H3z' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M5 8h6M5 11h6' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-library { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='2' width='3' height='12' fill='none' stroke='black' stroke-width='1.3'/%3E%3Crect x='6.5' y='2' width='3' height='12' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M10.5 3l3-1 1 11-3 1z' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-readiness { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5l5.5 2v4c0 3.5-2.5 6-5.5 7-3-1-5.5-3.5-5.5-7v-4z' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M5.5 8l2 2 3.5-4' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-catalog { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2' y='2' width='12' height='12' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M2 6h12M6 6v8' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-bankability { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 13h12M3 6l5-3.5L13 6M4 6v7M8 6v7M12 6v7' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-brief { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect x='2.5' y='2.5' width='11' height='11' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M5 6h6M5 8.5h6M5 11h4' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-sync { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13 7A5 5 0 004 4.5M3 9a5 5 0 009 2.5' fill='none' stroke='black' stroke-width='1.4'/%3E%3Cpath d='M13 3v4H9M3 13V9h4' fill='none' stroke='black' stroke-width='1.4'/%3E%3C/svg%3E"); }
.ni-data { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cellipse cx='8' cy='4' rx='5.5' ry='2' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M2.5 4v8c0 1.1 2.5 2 5.5 2s5.5-.9 5.5-2V4M2.5 8c0 1.1 2.5 2 5.5 2s5.5-.9 5.5-2' fill='none' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
.ni-ontology { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='3' r='1.8' fill='black'/%3E%3Ccircle cx='3' cy='12' r='1.8' fill='black'/%3E%3Ccircle cx='13' cy='12' r='1.8' fill='black'/%3E%3Cpath d='M8 4.8L3 10.3M8 4.8l5 5.5M4.8 12h6.4' stroke='black' stroke-width='1.3'/%3E%3C/svg%3E"); }
:root[data-nav="collapsed"] .sidenav a span, :root[data-nav="collapsed"] .nav-group h2, :root[data-nav="collapsed"] .nav-foot { display: none; }
:root[data-nav="collapsed"] .sidenav a { justify-content: center; padding: 10px 0; }
:root[data-nav="collapsed"] .nav-group { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; cursor: pointer; }
.nav-toggle:hover { color: var(--ink); border-color: var(--ink-2); }
.content { min-width: 0; }
.drawer { top: 64px; }
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: fixed; left: 0; top: 64px; width: 236px; z-index: 25; transform: translateX(-100%); transition: transform .15s; box-shadow: 0 0 0 100vw rgba(0,0,0,.4); }
  :root[data-nav="open"] .sidenav { transform: none; }
  :root[data-nav="collapsed"] .shell { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Today ---------- */
.today-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.today-head h1 { font-size: 34px; letter-spacing: -0.04em; line-height: 1.1; font-weight: 400; }
.today-head h1 b { font-weight: 400; color: var(--cherenkov); }
.today-head .muted { font-size: 13px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--surface); margin-bottom: 20px; }
.kpi { padding: 14px 16px; border-right: 1px solid var(--line-soft); text-decoration: none; color: inherit; }
.kpi:last-child { border-right: 0; }
.kpi:hover { background: var(--raised); }
.kpi b { display: block; font-size: 26px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.kpi span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi.warn b { color: var(--amber); }
.today-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 16px; }
.today-card { background: var(--surface); border: 1px solid var(--line); padding: 16px 18px; }
.today-card h2 { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.today-card h2 a { font-weight: 400; letter-spacing: 0; text-transform: none; font-size: 12px; }
.today-card ul.list li { padding: 7px 0; }
.today-card .row-main { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.today-card .row-main a { color: var(--ink); text-decoration: none; font-weight: 700; }
.today-card .row-main a:hover { text-decoration: underline; }
.today-card .when { font-size: 12px; white-space: nowrap; color: var(--muted); }

/* ---------- loading ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; pointer-events: none; opacity: 0; transition: opacity .2s; }
.progress i { display: block; height: 100%; width: 0; background: var(--cherenkov); box-shadow: 0 0 8px var(--cherenkov); }
.progress.on { opacity: 1; }
.progress.on i { animation: progress-grow 6s cubic-bezier(.1,.7,.2,1) forwards; }
.progress.done i { animation: none; width: 100%; transition: width .15s; }
@keyframes progress-grow { 0% { width: 0 } 15% { width: 35% } 50% { width: 70% } 100% { width: 92% } }
.skeleton { height: 16px; margin: 10px 0; background: linear-gradient(90deg, var(--raised) 0%, var(--line-soft) 40%, var(--raised) 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { .skeleton, .progress.on i { animation: none; } }
.btn.danger:hover, .btn.danger:focus-visible, .btn.danger[data-armed] { border-color: var(--red); background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--red); }
/* Outlined buttons: hover border in the text colour, background at 20% (white in dark mode, black in light). */
.btn:not(.primary):not(.danger):not(.quiet):hover, .btn:not(.primary):not(.danger):not(.quiet):focus-visible { border-color: var(--ink); background: color-mix(in srgb, var(--ink) 20%, transparent); color: var(--ink); }
/* Drawer close: same pill and hover as the outlined buttons. It floats over scrolling content,
   so the tint is mixed into an opaque background instead of being see-through. */
.drawer-close { border-radius: 999px; font-family: var(--font); font-size: 13px; letter-spacing: -0.02em; color: var(--ink-2); }
.drawer-close:hover, .drawer-close:focus-visible { border-color: var(--ink); color: var(--ink); background: color-mix(in srgb, var(--ink) 20%, var(--raised)); }

/* ---- Today: binary field, deadline strip ---- */
.today-head { align-items: stretch; }
.today-lead { flex: 1 1 520px; min-width: 0; }
.bfield { position: relative; flex: 0 0 auto; align-self: flex-end; font: 13px/1.15 var(--font); letter-spacing: 0.2em; padding-right: 2px; user-select: none; padding-bottom: 18px; }
.bf-row { display: flex; }
.bf-row i { font-style: normal; width: 1.1em; text-align: center; color: var(--ink); opacity: .09; }
.bf-row i.on { opacity: .42; }
.bf-row i.hi { opacity: 1; color: var(--cherenkov); text-shadow: 0 0 6px color-mix(in srgb, var(--cherenkov) 60%, transparent); }
.bf-hover { position: absolute; inset: 0 0 18px 0; display: flex; }
.bf-hover span { flex: 1; cursor: help; }
.bf-hover span:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.bf-cap { position: absolute; left: 0; right: 0; bottom: 0; font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bf-cap b { color: var(--ink-2); font-weight: 400; }
.bf-cap b.hi { color: var(--cherenkov); }
:root[data-theme="light"] .bf-row i.hi { text-shadow: none; }
@media (max-width: 1100px) { .bfield { display: none; } }

.dstrip { display: grid; grid-template-columns: repeat(15, 1fr); margin: -6px 0 20px; padding: 0 6px; border-bottom: 1px solid var(--line); }
.ds-day { position: relative; padding-bottom: 22px; text-align: center; }
.ds-day.wk .ds-label { opacity: .5; }
.ds-dots { display: flex; justify-content: center; align-items: flex-end; gap: 3px; height: 22px; }
.ds-dots a { display: block; width: 9px; height: 9px; border-radius: 999px; background: var(--cherenkov); box-shadow: 0 0 6px color-mix(in srgb, var(--cherenkov) 55%, transparent); }
.ds-dots a.tracked { background: var(--ink); box-shadow: none; outline: 1.5px solid var(--cherenkov); outline-offset: 1px; }
.ds-dots a:hover { transform: scale(1.25); }
.ds-dots em { font-style: normal; font-size: 10.5px; color: var(--muted); }
.ds-tick { width: 1px; height: 6px; margin: 4px auto 0; background: var(--line); }
.ds-day:first-child .ds-tick { background: var(--cherenkov); height: 10px; margin-top: 0; }
.ds-label { position: absolute; left: 0; right: 0; bottom: 4px; font-size: 10.5px; color: var(--muted); letter-spacing: 0.02em; }
.ds-day:first-child .ds-label { color: var(--cherenkov); }
.ds-day[data-tip] { cursor: help; }

/* ---- TNC ownership marks ---- */
.rod { display: inline-block; width: 4px; height: 1em; border-radius: 1px; background: var(--cherenkov); box-shadow: 0 0 8px color-mix(in srgb, var(--cherenkov) 55%, transparent); vertical-align: -0.15em; }
.brand-sub b { font-weight: 400; color: var(--ink-2); }
.nav-owner { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 11px; line-height: 1.3; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.nav-owner .rod { height: 26px; }
.tnc-mark { width: 1em; height: 1em; fill: currentColor; flex: none; }
.nav-owner .tnc-mark { width: 26px; height: 26px; color: var(--ink); }
.brand-sub .tnc-mark { width: 11px; height: 11px; margin: 0 6px 0 2px; vertical-align: -1px; color: var(--ink); }
.nav-owner b { color: var(--ink); font-weight: 700; letter-spacing: 0.02em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow .rod { height: 14px; }
.eyebrow span { color: var(--ink); font-weight: 700; }
.eyebrow em { font-style: normal; }
.eyebrow em::before { content: '/ '; color: var(--cherenkov); }
.today-card h2 > span { display: flex; align-items: baseline; gap: 8px; }
.today-card h2 small { font-size: 10.5px; color: var(--cherenkov); letter-spacing: 0.08em; font-weight: 400; }
.today-card { border-top: 2px solid var(--line); }
.today-card:hover { border-top-color: var(--cherenkov); }
.today-foot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; letter-spacing: 0.04em; color: var(--muted); }
.today-foot .rod { height: 12px; margin-right: 8px; }
.today-foot .bits { margin-left: auto; letter-spacing: 0.18em; opacity: .35; }
@media (max-width: 760px) { .eyebrow em { display: none; } }

/* ---- Signals: Horizon ---- */
a.pill { text-decoration: none; cursor: pointer; }
a.pill:hover { border-color: var(--ink); }
/* "on file": the company is already known to the app (incumbent, registrant, partner). */
a.pill.onfile { border-color: color-mix(in srgb, var(--cherenkov) 60%, var(--line)); color: var(--ink); }
/* Selected filter: filled, with a × to show a second click clears it. */
a.pill[aria-pressed="true"] { background: var(--cherenkov); border-color: var(--cherenkov); color: #04131c; font-weight: 700; }
a.pill[aria-pressed="true"]::after { content: '×'; margin-left: 2px; font-weight: 400; }
a.pill[aria-pressed="true"]:hover { background: var(--cherenkov-ink); border-color: var(--cherenkov-ink); color: #fff; }
.kpi[aria-pressed="true"] { background: var(--raised); box-shadow: inset 0 -2px 0 var(--cherenkov); }
.kpi[aria-pressed="true"] span::after { content: ' ×'; color: var(--cherenkov); }
td a[aria-pressed="true"] { color: var(--cherenkov); }
td a[aria-pressed="true"]::after { content: ' ×'; font-weight: 400; }
.ni-intel { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='4.5' fill='none' stroke='black' stroke-width='1.3'/%3E%3Cpath d='M10.3 10.3L14 14' stroke='black' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M5 7h4M7 5v4' stroke='black' stroke-width='1.2'/%3E%3C/svg%3E"); }

/* ---- New since the last sync ---- */
.tag.new { background: var(--cherenkov); border-color: var(--cherenkov); color: #04131c; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; font-size: 10.5px; padding: 1px 6px; }
td > .tag.new, .row-main .tag.new, .today-card .tag.new { margin-right: 6px; vertical-align: 1px; }
.result-tags .tag.new { box-shadow: 0 0 8px color-mix(in srgb, var(--cherenkov) 45%, transparent); }
.sidenav a .nav-new { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 700; line-height: 1; padding: 3px 6px; border-radius: 999px; background: var(--cherenkov); color: #04131c; }
:root[data-nav="collapsed"] .sidenav a .nav-new { position: absolute; margin: 0; transform: translate(10px, -9px); padding: 2px 4px; font-size: 9px; }
:root[data-nav="collapsed"] .sidenav a { position: relative; }
.readout-new { text-decoration: none; color: inherit; }
.readout-new b { color: var(--cherenkov); }
.readout-new:hover { text-decoration: underline; }

/* ---- Rank: strategy generation status ---- */
.gen-status { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-left: 3px solid var(--cherenkov); background: var(--surface); font-size: 13.5px; }
.gen-status[hidden] { display: none; }
.gen-status #gen-msg { flex: 1; min-width: 0; }
.gen-status .spin { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--cherenkov) 30%, transparent); border-top-color: var(--cherenkov); animation: spin .8s linear infinite; flex: 0 0 auto; }
.gen-status.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .gen-status .spin { animation: none; } }

/* ---- Rank toolbar ---- */
.rank-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin: 0 0 12px; padding: 8px 0 12px; border-bottom: 1px solid var(--line); }
.rank-filters, .rank-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rank-count { font-size: 12.5px; margin-left: 4px; white-space: nowrap; }
.rank-bar .select { width: auto; }
/* Toggle chips: a checkbox that reads as a filter pill. */
.toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); background: var(--surface); transition: background .12s, border-color .12s; }
.toggle span b { font-weight: 400; color: var(--muted); }
.toggle span::before { content: ''; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--muted); box-sizing: border-box; }
.toggle:hover span { border-color: var(--ink); }
.toggle input:checked + span { border-color: var(--cherenkov); color: var(--ink); background: var(--cherenkov-soft); }
.toggle input:checked + span::before { background: var(--cherenkov); border-color: var(--cherenkov); }
.toggle input:checked + span b { color: var(--cherenkov-ink); }
.toggle input:focus-visible + span { outline: 2px solid var(--cherenkov); outline-offset: 2px; }
.toggle input:disabled + span { opacity: .5; cursor: default; }
.btn .count { display: inline-block; min-width: 18px; padding: 1px 6px; margin-left: 6px; border-radius: 999px; background: rgba(255,255,255,.25); font-size: 12px; font-weight: 700; line-height: 1.3; }
@media (max-width: 760px) { .rank-count { display: none; } .rank-bar { padding-top: 0; } }

/* ---- Teaming options in the strategy drawer ---- */
.partners { list-style: none; margin: 0; padding: 0; }
.partner { padding: 10px 0; border-top: 1px solid var(--line-soft); }
.partner:first-child { border-top: 0; }
.partner.on-team { background: color-mix(in srgb, var(--cherenkov) 6%, transparent); margin: 0 -8px; padding: 10px 8px; border-radius: var(--radius-s); }
.partner .row-main { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.partner .covers { font-size: 12.5px; color: var(--muted); margin: 4px 0 2px; }
.partner-why { margin: 4px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--ink-2); list-style: disc; }
.partner-why li { margin: 2px 0; display: list-item; }
.partners-fold summary { cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 8px; }
.partners-fold summary::-webkit-details-marker { display: none; }
.partners-fold summary::before { content: '▸'; color: var(--cherenkov); font-size: 12px; }
.partners-fold[open] summary::before { content: '▾'; }
.partners-fold > :not(summary) { margin-top: 8px; }
.tag.title-only { color: var(--muted); border-style: dashed; background: transparent; }

/* ---- Opportunity timeline ---- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 96px; top: 6px; bottom: 6px; width: 1px; background: var(--line); }
.tl { display: grid; grid-template-columns: 82px 28px 1fr; gap: 0 6px; align-items: start; padding: 5px 0; font-size: 13px; position: relative; }
.tl-when { color: var(--muted); font-size: 12px; text-align: right; white-space: nowrap; padding-top: 1px; }
.tl-dot { text-align: center; color: var(--muted); background: var(--surface); line-height: 1.2; font-size: 12px; }
.tl.notice .tl-dot { color: var(--ink); }
.tl.notice.current .tl-dot { color: var(--cherenkov); text-shadow: 0 0 6px color-mix(in srgb, var(--cherenkov) 60%, transparent); }
.tl.notice.current .tl-what { font-weight: 700; }
.tl.change .tl-dot { color: var(--amber); }
.tl.upstream .tl-dot { color: var(--cherenkov-ink); }
.tl.team .tl-dot { color: var(--cherenkov); }
.tl.ahead { opacity: .85; }
.tl.ahead .tl-dot { color: var(--cherenkov); }
.tl-now { display: grid; grid-template-columns: 82px 28px 1fr; gap: 0 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 2px 0; }
.tl-now .tl-when { text-align: right; }
.tl-now .tl-dot { text-align: center; background: var(--surface); }
.tl-what a { color: var(--ink); }
.tl .warn, .timeline-summary .warn { color: var(--amber); }
.tag.postings { color: var(--ink-2); }

/* Learned from marks (Data tab) */
.learn h3 { margin: 16px 0 4px; font-size: 13px; }
.learn-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.learn-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 8px 4px 0; border-bottom: 1px solid var(--line); }
.learn-table td { padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.learn-table td:nth-child(2), .learn-table td:nth-child(3) { white-space: nowrap; }
.learn .small, .learn-table .small { font-size: 12px; }
.btn.small { height: 26px; padding: 0 10px; font-size: 12px; white-space: nowrap; }
.panel.learn { grid-column: 1 / -1; }

/* Assumed content: a reasonable guess, not a verified fact */
.tag.assumed { background: var(--amber-soft); color: var(--amber); border: 1px solid var(--amber); }
.assume-list summary { cursor: pointer; font-size: 13px; color: var(--amber); }
.assume-list h3 { font-size: 12px; margin: 12px 0 4px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.assume-list .list li { font-size: 12.5px; }
.btn.quiet.danger { color: var(--red); }

/* Home: back to Pantheon, the platform's front door. */
.home-link { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px 0 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); text-decoration: none; font: 400 12.5px/1 var(--font); white-space: nowrap; flex: none; transition: background .15s, border-color .15s, color .15s; }
.home-link svg { width: 15px; height: 15px; fill: currentColor; flex: none; }
.home-link:hover { color: var(--ink); border-color: var(--cherenkov); background: color-mix(in srgb, var(--cherenkov) 10%, transparent); }
.home-link:focus-visible { outline: 2px solid var(--cherenkov); outline-offset: 2px; }
@media (max-width: 760px) { .home-link { padding: 0 10px; } .home-link span { display: none; } }
