/* New Internet Map — phase A. Pure CSS, no dependencies. */
:root {
  --bg: #0b1020;
  --bg2: #121a30;
  --panel: #0f1628;
  --ink: #e8edf7;
  --muted: #8b97b3;
  --line: #243049;
  --infra: #6b7280;
  --meaning: #2563eb;
  --focus: #60a5fa;
  --full: #16a34a;
  --partial: #eab308;
  --weak: #6b7280;
  --empty: #dc2626;
  --accent: #f472b6;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: radial-gradient(1200px 600px at 70% -10%, #18223e 0%, var(--bg) 55%) fixed;
  color: var(--ink);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: #b8c4e0; }

/* ── topbar ── */
.topbar {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; padding: 18px 24px 14px; border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.brand { max-width: 760px; }
.spiral-brand { color: var(--accent); text-decoration: none; white-space: nowrap; }
.spiral-brand:hover { color: #f9a8d4; text-decoration: underline; }
.brand h1 { margin: 0; font-size: 19px; letter-spacing: .2px; line-height: 1.2; }
.thesis { margin: 4px 0 0; color: var(--muted); max-width: 560px; }
.map-tag { color: #6b7794; font-weight: 600; }
.thesis em { color: var(--empty); font-style: normal; font-weight: 600; }
.controls { display: flex; flex-direction: column; gap: 10px; align-items: flex-end; }

/* ── view tabs ── */
.viewtabs { display: inline-flex; background: var(--bg2); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.viewtabs .tab { background: transparent; color: var(--muted); border: none; padding: 8px 16px; cursor: pointer; font-size: 13px; font-weight: 600; }
.viewtabs .tab[aria-pressed="true"] { background: var(--meaning); color: #fff; }
.viewtabs .tab:not([aria-pressed="true"]):hover { color: var(--ink); }

/* ── filter bar ── */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 24px; border-bottom: 1px solid var(--line); background: #0c1426; }
.fgroup { display: inline-flex; align-items: center; gap: 6px; }
.fgroup > .flabel { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: 2px; }
.fchip { cursor: pointer; font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); color: #cdd7ef; user-select: none; }
.fchip:hover { border-color: var(--focus); }
.fchip.on { background: #16305c; border-color: var(--focus); color: #fff; }
.fchip.loc { background: #0e3a36; border-color: #2dd4bf; color: #99f6e4; display: inline-flex; align-items: center; gap: 6px; }
.fchip .x { cursor: pointer; font-weight: 700; opacity: .7; }
.fchip .x:hover { opacity: 1; }
.farch { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-size: 12px; max-width: 260px; }
.fsearch { background: var(--bg2); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 13px; min-width: 160px; }
.fsearch:focus, .farch:focus { outline: none; border-color: var(--focus); }
.fclear { margin-left: auto; background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 8px; padding: 5px 12px; font-size: 12px; cursor: pointer; }
.fclear:hover { color: var(--ink); border-color: var(--empty); }

/* ── market view ── */
.market-stage { padding: 18px 24px 28px; }
.market-body { max-width: 1180px; margin: 0 auto; }
.type-menu { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.type-tile { cursor: pointer; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; min-width: 130px; transition: border-color .12s, background .12s; }
.type-tile:hover { border-color: var(--focus); }
.type-tile.on { border-color: var(--focus); background: #16305c; }
.type-tile .tt-count { font-size: 22px; font-weight: 700; }
.type-tile .tt-label { font-size: 12px; color: var(--muted); }

/* ── market table ── */
.table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.table thead th { text-align: left; font-weight: 600; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; padding: 8px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 1; }
.table td { padding: 8px 10px; border-bottom: 1px solid #1a2540; vertical-align: top; }
.table tbody tr { cursor: pointer; }
.table tbody tr:hover { background: #101a30; }
.table td.name { font-weight: 600; max-width: 280px; }
.table td.name a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted #51608a; }
.table td.name a:hover { border-bottom-color: var(--focus); }
.table td.muted { color: var(--muted); }
.table { margin-bottom: 6px; }
.table-section-h { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #aebbdc; font-weight: 700; margin: 20px 0 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.table-section-h:first-child { border-top: none; padding-top: 0; margin-top: 4px; }
.table-section-h .count { color: var(--focus); }

/* ── results / detail (shared) ── */
.results-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.results-count { font-weight: 700; color: var(--focus); }
.card.clickable { cursor: pointer; }
.card.clickable:hover { border-color: var(--focus); }
.backlink { display: inline-block; margin: 0 0 12px; color: #9bb4e8; cursor: pointer; font-size: 13px; }
.backlink:hover { color: var(--focus); }
.lc-sectionhead { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 2px 0 8px; }
.loc-context { background: var(--bg2); border: 1px solid var(--line); border-left: 3px solid var(--focus); border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; }
.loc-context .lc-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.loc-context .lc-name { font-weight: 600; margin: 2px 0 4px; }
.loc-context .lc-desc { font-size: 12px; color: #cdd7ef; }
.btn {
  background: var(--bg2); color: var(--ink); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
  transition: background .15s, border-color .15s;
}
.btn:hover { border-color: var(--focus); }
.btn[aria-pressed="true"] { background: #3a1220; border-color: var(--empty); color: #ffd9e0; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ── stage ── */
.stage { min-height: 60vh; }
.arch-stage { display: flex; gap: 0; align-items: stretch; min-height: 60vh; }
.arch-stage[hidden], .market-stage[hidden] { display: none; }
.diagram { flex: 1 1 auto; padding: 18px 12px 18px 24px; overflow-x: auto; }
.diagram svg { display: block; width: 100%; height: auto; max-width: 1080px; }

/* SVG element styles */
.layer-band { cursor: pointer; transition: filter .12s; }
.layer-band:hover { filter: brightness(1.18); }
.layer-label { fill: var(--ink); font-weight: 600; font-size: 13px; pointer-events: none; }
.layer-short { fill: #c2cde8; font-size: 10.5px; pointer-events: none; }
.layer-tag  { fill: #9fb0d6; font-size: 9.5px; pointer-events: none; }
.cell { cursor: pointer; transition: filter .12s, stroke-width .12s; }
.cell:hover { filter: brightness(1.25); }
.cell-label { fill: #0b1020; font-size: 8.5px; pointer-events: none; font-weight: 600; }
.cell-label.light { fill: #f4f7ff; }
.axis-label { fill: var(--muted); font-size: 10px; pointer-events: none; }
.axis-label.fn { font-weight: 600; fill: #aebbdc; }
.dom-row-label { pointer-events: auto; cursor: pointer; }
.domain-row:hover .dom-row-label, .domain-row:focus .dom-row-label { fill: #aebbdc; text-decoration: underline; }
.vert-strip { cursor: pointer; transition: filter .12s; }
.vert-strip:hover { filter: brightness(1.2); }
.vert-text { fill: #cdd7ef; font-size: 11px; font-weight: 600; pointer-events: none; }
.boundary-line { stroke: var(--accent); stroke-dasharray: 6 5; stroke-width: 1.5; }
.boundary-text { fill: var(--accent); font-size: 10px; }
.seam-line { stroke: var(--empty); stroke-dasharray: 4 4; stroke-width: 2; cursor: pointer; }
.seam-badge { cursor: pointer; }
.seam-badge text { fill: #fff; font-size: 10px; font-weight: 700; }
.focus-bar { fill: var(--focus); }
.dimmed { opacity: .22; }
.wedge-ring { fill: none; stroke: var(--empty); stroke-width: 2; pointer-events: none; }
.selected-outline { fill: none; stroke: #fff; stroke-width: 2.5; pointer-events: none; }

/* ── panel ── */
.panel {
  flex: 0 0 390px; max-width: 42vw; background: var(--panel);
  border-left: 1px solid var(--line); padding: 18px 18px 28px; overflow-y: auto;
  max-height: calc(100vh - 60px);
}
.panel-empty { color: var(--muted); }
.muted { color: var(--muted); }
.p-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.p-title { font-size: 18px; margin: 4px 0 2px; }
.p-sub { color: var(--muted); margin: 0 0 12px; }
.p-desc { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; color: #cdd7ef; font-size: 13px; }
.fillbadge { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #06122a; }
.section-h { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 16px 0 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.count { color: var(--focus); }

.card { background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; margin-bottom: 8px; }
.card.wedge { border-color: #5a1d28; background: #1a0f15; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card-name { font-weight: 600; }
.card-name a { color: var(--ink); text-decoration: none; border-bottom: 1px dotted #51608a; }
.card-name a:hover { border-bottom-color: var(--focus); }
.ext-url { display: inline-block; font-size: 11px; font-weight: 400; color: #7da2e8; text-decoration: none; margin-top: 2px; word-break: break-all; }
.ext-url:hover { text-decoration: underline; }
.p-url { margin: 2px 0 8px; }
.p-url .ext-url { display: block; }
.table td.name .ext-url { font-weight: 400; }
.badge { font-size: 10px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); color: #b9c5e4; white-space: nowrap; }
.badge.role { background: #14223f; }
.card-note { color: var(--muted); font-size: 12px; margin-top: 4px; }
.card-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { font-size: 10px; color: #9fb0d6; background: #101a30; border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; }
.tag.status-dead, .tag.status-paused, .tag.status-pivoted { color: #f3a6b4; border-color: #4a2230; }
/* Evidence reads like status: quiet by default, tinted only at the ends of the scale. */
.tag.evidence-inferred { color: #f3a6b4; border-color: #4a2230; }
.tag.evidence-verified { color: #86efac; border-color: #1e4a30; }
/* Capital lens: intensity = how many fresh fund theses attend the node. */
.cap-badge { display: none; font-size: 9px; font-weight: 700; fill: #7dd3fc; }
.lens-on .cap-badge { display: block; }
.lens-on .node.cap-0 { opacity: 0.3; }
.lens-on .node.cap-1 > rect { stroke: #1d4ed8; stroke-width: 1.5; }
.lens-on .node.cap-2 > rect { stroke: #2f6fe4; stroke-width: 2.5; }
.lens-on .node.cap-3 > rect { stroke: #38bdf8; stroke-width: 3; }
.fclear.lens-active { border-color: #38bdf8; color: #7dd3fc; }
.port-badge { display: none; font-size: 9px; font-weight: 700; fill: #fbbf24; }
.port-on .port-badge { display: block; }
.port-on .node.port-0 { opacity: 0.3; }
.port-on .node.port-1 > rect { stroke: #b45309; stroke-width: 1.5; }
.port-on .node.port-2 > rect { stroke: #d97706; stroke-width: 2.5; }
.port-on .node.port-3 > rect { stroke: #fbbf24; stroke-width: 3; }

/* Focus tags: same quiet register as every other tag, tinted toward the accent. */
.tag.tag-focus { color: #9bb4e8; border-color: #2a3a5e; }
.tag.tag-mandate { color: #c4a6f3; border-color: #3a2a5e; }
/* Thesis currency reads like evidence: green when the fund's latest thesis is current. */
.tag.thesis-fresh { color: #86efac; border-color: #1e4a30; }
.tag.thesis-stale { color: #f3a6b4; border-color: #4a2230; }
.tag.link { cursor: pointer; }
.tag.link:hover { border-color: var(--focus); color: #fff; }
.src { font-size: 11px; color: var(--muted); margin-top: 6px; }
.src a { color: #9bb4e8; }
.empty-note { color: var(--muted); font-style: italic; }

/* ── constructs bar ── */
.constructs-bar { display: flex; align-items: center; gap: 12px; padding: 12px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.constructs-bar[hidden] { display: none; }
.cb-label { color: var(--muted); font-size: 12px; }
.cb-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { cursor: pointer; font-size: 12px; padding: 5px 11px; border-radius: 99px; background: var(--bg2); border: 1px solid var(--line); color: #cdd7ef; }
.chip:hover { border-color: var(--focus); }
.chip.gap { border-color: #5a1d28; color: #f3a6b4; }
.chip.gap::before { content: "◌ "; color: var(--empty); }
.chip.uc { border-color: #115e59; color: #99f6e4; }
.chip.uc::before { content: "▸ "; color: #2dd4bf; }

.footer { padding: 12px 24px 26px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .arch-stage { flex-direction: column; }
  .panel { flex-basis: auto; max-width: none; border-left: none; border-top: 1px solid var(--line); max-height: none; }
}

/* ── curated analysis on a location ── */
.analysis { margin-top: 10px; padding: 10px 12px; border-radius: 8px; background: #0e1730; border: 1px solid var(--line); border-left: 3px solid #2dd4bf; }
.analysis.stale { border-left-color: #eab308; }
.an-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.an-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: #99f6e4; font-weight: 700; }
.analysis.stale .an-label { color: #fde68a; }
.an-status { font-size: 10px; padding: 1px 7px; border-radius: 99px; border: 1px solid var(--line); }
.st-current { color: #99f6e4; border-color: #115e59; }
.st-stale { color: #fde68a; border-color: #6b5310; }
.an-claim { font-size: 12.5px; line-height: 1.5; color: #cdd7ef; }
.an-meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 7px; }



/* ── model comparison / coverage ── */
.beyond { margin-top: 2px; }
.beyond-item { font-size: 12.5px; line-height: 1.5; color: #cdd7ef; background: #0e1730; border: 1px solid var(--line);
               border-left: 3px solid #f472b6; border-radius: 8px; padding: 8px 11px; margin-bottom: 6px; }
.coverage { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cov-label { font-size: 11px; color: var(--muted); }
.cov-label.link { cursor: pointer; }
.cov-label.link:hover { color: var(--focus); text-decoration: underline; }
.coverage.none .cov-label { color: #f3a6b4; font-weight: 600; }

/* first-party primary source ({ field: url } in sources) */
.src-primary { color: #99f6e4; font-weight: 600; }

/* ── gap status on an empty location (derived from surveys) ── */
.gapstatus { margin-top: 8px; padding: 8px 11px; border-radius: 8px; font-size: 12px; border: 1px solid var(--line); }
.gapstatus.confirmed { border-left: 3px solid #16a34a; }
.gapstatus.confirmed .gs-label { color: #86efac; font-weight: 600; }
.gapstatus.survey-stale { border-left: 3px solid #eab308; }
.gapstatus.survey-stale .gs-label { color: #fde68a; font-weight: 600; }
.gapstatus.unexamined { border-left: 3px solid #dc2626; }
.gapstatus.unexamined .gs-label { color: #f3a6b4; font-weight: 600; }
.gs-method { margin-top: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.45; }

/* ── Coverage view ── */
.coverage-stage[hidden] { display: none; }
.coverage-body { max-width: 880px; margin: 0 auto; padding: 22px 24px 40px; }
.cov-intro h2 { margin: 0 0 6px; font-size: 20px; }
.cov-intro p { max-width: 720px; }
.cov-summary { display: flex; gap: 10px; margin: 16px 0 8px; flex-wrap: wrap; }
.cov-sum-tile { border: 1px solid var(--line); border-radius: 10px; padding: 10px 18px; min-width: 96px; }
.cov-sum-tile .cs-n { font-size: 22px; font-weight: 700; }
.cov-sum-tile .cs-l { font-size: 11px; color: var(--muted); }
.cov-sum-tile.st-covered .cs-n { color: #86efac; }
.cov-sum-tile.st-partial .cs-n { color: #fde68a; }
.cov-sum-tile.st-unexamined .cs-n { color: #f3a6b4; }
.cov-sum-tile.st-out-of-scope .cs-n { color: var(--muted); }
.cov-axis { font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #aebbdc; font-weight: 700; margin: 24px 0 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.cov-card { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg2); }
.cov-card.st-covered { border-left: 3px solid #16a34a; }
.cov-card.st-partial { border-left: 3px solid #eab308; }
.cov-card.st-unexamined { border-left: 3px solid #dc2626; }
.cov-card.st-out-of-scope { border-left: 3px solid #475569; opacity: .8; }
.cov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cov-name { font-weight: 600; }
.cov-badge { font-size: 10px; padding: 2px 9px; border-radius: 99px; border: 1px solid var(--line); white-space: nowrap; }
.cov-badge.st-covered { color: #86efac; border-color: #14532d; }
.cov-badge.st-partial { color: #fde68a; border-color: #6b5310; }
.cov-badge.st-unexamined { color: #f3a6b4; border-color: #5a1d28; }
.cov-badge.st-out-of-scope { color: var(--muted); }
.cov-facets { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.cov-facet { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line); color: #cdd7ef; }
.cov-facet.st-covered { border-color: #14532d; color: #86efac; }
.cov-facet.st-partial { border-color: #6b5310; color: #fde68a; }
.cov-facet.st-unexamined { border-color: #5a1d28; color: #f3a6b4; }
.cov-facet.sub { font-size: 9.5px; opacity: .85; margin-left: 2px; }
.cov-note { font-size: 12.5px; line-height: 1.5; color: #cdd7ef; margin-top: 8px; }
.cov-via { font-size: 11.5px; color: var(--muted); margin-top: 7px; }
.cov-via a { color: #9bb4e8; }
#footer a { color: #9bb4e8; }
.cov-axis-block { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.cov-axis-block .cov-axis { margin: 0 0 2px; border-top: none; padding-top: 0; }
.cov-axis-q { font-size: 12.5px; color: #cdd7ef; margin-bottom: 2px; font-style: italic; }
.cov-axis-ex { font-size: 11px; color: var(--muted); margin-bottom: 10px; }


/* ── redesigned navigation (spec: docs/ui-navigation-spec.md) ── */
.filterbar { display: block; }
.spine { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-bottom: 8px; border-bottom: 1px solid #1b2740; margin-bottom: 8px; }
.nav-item { background: transparent; border: 1px solid transparent; color: #9bb4e8; padding: 5px 11px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.nav-item:hover { background: #131f38; color: #e6edfb; }
.nav-item.on { background: #1a294a; border-color: #38507e; color: #fff; font-weight: 600; }
.spine-div { width: 1px; height: 18px; background: #2b3a5e; margin: 0 6px; }
.facet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.facet { position: relative; }
.facet-btn { background: #101a30; border: 1px solid #2a3a5e; color: #c8d6f5; padding: 5px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; }
.facet-btn.active { border-color: #38507e; color: #fff; }
.facet-menu { position: absolute; z-index: 30; top: 110%; left: 0; min-width: 180px; max-height: 320px; overflow: auto; background: #0d1626; border: 1px solid #2a3a5e; border-radius: 8px; padding: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.facet-opt { display: flex; align-items: center; gap: 7px; padding: 4px 6px; font-size: 12px; color: #c8d6f5; cursor: pointer; border-radius: 5px; }
.facet-opt:hover { background: #131f38; }
.ctrl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; }
.ov-btn, .pr-btn { background: #101a30; border: 1px solid #2a3a5e; color: #9bb4e8; padding: 4px 12px; cursor: pointer; font-size: 12px; }
.ov-btn { border-radius: 6px; }
.ov-btn.on { border-color: #38bdf8; color: #7dd3fc; }
.present { display: inline-flex; margin-left: auto; }
.pr-btn:first-child { border-radius: 6px 0 0 6px; }
.pr-btn:last-child { border-radius: 0 6px 6px 0; border-left: none; }
.pr-btn.on { background: #1a294a; border-color: #38507e; color: #fff; }
.filter-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.sum-count { color: #c8d6f5; }
.sum-chip { background: #131f38; border: 1px solid #24334f; border-radius: 10px; padding: 2px 9px; color: #9bb4e8; }
.sum-lead { color: var(--muted); }
.sum-sep { color: #3a4a6e; font-weight: 700; margin: 0 1px; }
.sum-bit.flt { color: #c8d6f5; }
.sum-bit.ovl { color: #7dd3fc; font-style: italic; }
.sum-bit.muted { color: var(--muted); }
.sum-clear { background: transparent; border: none; color: #9bb4e8; text-decoration: underline; cursor: pointer; font-size: 12px; }
.market-stage { padding: 12px 0; }

/* survey overlay: recolour empty cells by gap status */
.surv-on .node:not(.surv-confirmed):not(.surv-stale):not(.surv-unexamined) { opacity: .45; }
.surv-on .node.surv-confirmed > rect { stroke: #dc2626; stroke-width: 2.5; }
.surv-on .node.surv-stale > rect { stroke: #eab308; stroke-width: 2.5; }
.surv-on .node.surv-unexamined > rect { stroke: #6b7280; stroke-width: 2; stroke-dasharray: 3 2; }
