/* MemeGraph · Graph tab · the screener board.
   Ink shell, paper inspector sheet, truth color only where evidence
   lives. No green, no red: price moves ride in neutral ink.
   Shell is full-bleed; the inspector is a right drawer below 1360px
   and docks as a third column at 1360px and up. */

@import url("tokens.css");

body.board-page {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  overflow-x: hidden;
}
.board-page ::selection { background: #ffd45a33; color: var(--paper); }
.board-page input::selection { background: #ffd45a55; }
.board-page input { caret-color: var(--halo); }

.board { padding-block: 0.5rem 3rem; }

/* ---------- shell: full-bleed rail + fluid main ---------- */
.bd-shell {
  width: calc(100% - 2 * var(--gutter));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.bd-col { min-width: 0; container-type: inline-size; container-name: col; }

/* ---------- rail ---------- */
.bd-rail {
  position: sticky; top: 0.75rem;
  display: flex; flex-direction: column; gap: 1rem;
}
.bd-views { display: flex; flex-direction: column; gap: 2px; }
.bd-view-btn {
  all: unset; cursor: pointer; box-sizing: border-box;
  min-height: var(--tap); display: flex; align-items: center;
  padding: 0.55rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--muted-dark); font-size: 0.92rem; font-weight: 600;
  border-left: 2px solid transparent;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.bd-view-btn .v-short { display: none; }
.bd-view-btn:hover { color: var(--paper); background: var(--ink-raised); }
.bd-view-btn[aria-current="true"] {
  color: var(--paper); background: var(--ink-raised);
  border-left-color: var(--paper);
}
.bd-view-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.bd-rail-foot { border-top: 1px solid var(--ink-line); padding-top: 0.8rem; }
.bd-rail-launch {
  display: flex; align-items: center; gap: 0.45rem;
  color: var(--brass); font-size: 0.82rem;
  text-decoration: none; padding: 0.3rem 0;
}
.bd-rail-launch:hover { color: var(--paper); }

/* ---------- masthead + command bar ---------- */
.bd-mast { margin-bottom: 0.6rem; }
.bd-mast h1 {
  font-family: var(--serif); font-size: 1.75rem; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.bd-thesis { color: var(--muted-dark); font-size: 0.88rem; margin: 0.2rem 0 0; }
.bd-command {
  display: flex; gap: 0.8rem; align-items: center; flex-wrap: wrap;
  margin-bottom: 0.7rem;
}
.bd-search { position: relative; flex: 1 1 22rem; min-width: 0; }
.bd-search input { box-sizing: border-box; max-width: 100%;
  width: 100%; box-sizing: border-box;
  min-height: var(--tap);
  background: var(--ink-raised); color: var(--paper);
  border: 1px solid var(--ink-line); border-radius: var(--radius-sm);
  padding: 0.6rem 2.4rem 0.6rem 0.9rem; font: inherit; font-size: 0.92rem;
}
.bd-search input::placeholder { color: var(--unknown); }
.bd-search input:focus { outline: none; border-color: var(--muted-dark); box-shadow: 0 0 0 3px #f4edda22; }
.bd-kbd {
  position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted-dark);
  border: 1px solid var(--ink-line); border-radius: 4px; padding: 0.1rem 0.42rem;
  pointer-events: none;
}
.bd-results {
  position: absolute; z-index: 40; inset-inline: 0; top: calc(100% + 4px);
  margin: 0; padding: 0.25rem; list-style: none;
  background: var(--ink-raised); border: 1px solid var(--ink-line);
  border-radius: var(--radius-sm); box-shadow: 0 14px 40px #000a;
  max-height: 22rem; overflow-y: auto;
}
.bd-results .r-grp {
  padding: 0.5rem 0.7rem 0.25rem; font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--brass);
}
.bd-results button {
  all: unset; box-sizing: border-box; cursor: pointer;
  display: flex; justify-content: space-between; gap: 0.8rem;
  width: 100%; min-height: 2.4rem; padding: 0.45rem 0.7rem;
  border-radius: 0.35rem; color: var(--paper); font-size: 0.9rem;
}
.bd-results button:hover, .bd-results button[aria-selected="true"] { background: #f4edda14; }
.bd-results .r-sub { color: var(--muted-dark); font-size: 0.75rem; }
.bd-results .r-none { padding: 0.6rem 0.7rem; color: var(--muted-dark); font-size: 0.88rem; }
.bd-clocks { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 0 auto; }
.bd-clock {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.02em; color: var(--muted-dark);
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 0.35rem 0.7rem; min-height: 2rem; box-sizing: border-box;
  white-space: nowrap;
}
.bd-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--paper); opacity: 0.85;
}
.bd-dot-halo { background: var(--halo); opacity: 1; }
.bd-clock.is-stale {
  color: var(--unknown);
  border-style: dotted;
  background: repeating-linear-gradient(135deg, #7c8a8622 0 4px, transparent 4px 8px);
}
.bd-clock.is-stale .bd-dot { background: var(--unknown); }

/* borrowed observatory palette — color carries time mode, never verdict */
:root {
  --live-cyan: #7fdcf2;
  --seal-amber: #e8b45f;
  --field-ink: #0a1118;
}
#bd-watch-clock { color: var(--live-cyan); }
#bd-watch-clock .bd-dot { background: var(--live-cyan); box-shadow: 0 0 8px var(--live-cyan); }
#bd-watch-clock.is-stale { color: var(--unknown); }
#bd-seal-clock { color: var(--seal-amber); }
.bd-view-btn[data-view="watch"][aria-current="true"],
.bd-view-btn[data-view="new"][aria-current="true"] { color: var(--live-cyan); }
.bd-view-btn[data-view="sealed"][aria-current="true"],
.bd-view-btn[data-view="repeat"][aria-current="true"] { color: var(--seal-amber); }
.lc-field-wrap { position: relative; }
.lc-field { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 6px; }
.lc-stars { position: relative; z-index: 1; }

/* ---------- view head ---------- */
.bd-viewhead {
  display: flex; flex-wrap: wrap; align-items: baseline;
  gap: 0.15rem 0.9rem; margin-bottom: 0.6rem;
}
.bd-viewhead h2 {
  flex-basis: 100%;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -0.02em; margin: 0;
}
.bd-scope { color: var(--muted-dark); font-size: 0.85rem; margin: 0; max-width: 62ch; }
.bd-legend-line { color: var(--unknown); font-size: 0.75rem; margin: 0; }
.bd-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-left: auto; }
.chip { display:inline-block; font-size:0.68rem; border:1px solid var(--brass); color:var(--brass); border-radius:3px; padding:0.08rem 0.3rem; white-space:nowrap; vertical-align:middle; }
.chip-row { display:inline-flex; gap:0.25rem; flex-wrap:wrap; max-width:7rem; }
.chip-hit { display: inline-flex; padding: 6px; margin: -6px; }
.chip-f {
  cursor: pointer; background: transparent; font: inherit;
  border-color: var(--ink-line); color: var(--muted-dark);
  position: relative; min-height: 32px; padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
}
.chip-f.is-on { color: var(--paper); border-color: var(--paper); background: #f4edda14; }

/* ---------- table ---------- */
.bd-table-host {
  border: 1px solid var(--ink-line); border-radius: var(--radius);
  background: var(--ink-raised);
  max-height: calc(100vh - 15rem); overflow-y: auto;
  scrollbar-color: var(--ink-line) transparent;
}
.bd-table-host:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.bd-table { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.bd-table thead th {
  position: sticky; top: 0; z-index: 3;
  background: var(--ink-raised);
  font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--muted-dark); font-weight: 700;
  text-align: left; padding: 0.35rem 0.25rem;
  border-bottom: 1px solid var(--ink-line);
  white-space: nowrap;
}
.bd-table thead th.num { text-align: right; }
.bd-table thead tr.grp th {
  height: 24px; padding: 0;
  border-bottom: none;
}
.bd-table thead tr.grp th.grp-claimed { color: var(--claimed); border-top: 2px solid var(--claimed); }
.bd-table thead tr.grp th.grp-inferred { color: var(--brass); border-top: 2px solid var(--brass); }
.bd-table thead tr.grp th.grp-observed { color: var(--observed); border-top: 2px solid var(--observed); }
.bd-table thead tr.grp th.grp-plain { border-top: 2px solid transparent; }
.th-sort {
  all: unset; cursor: pointer; font: inherit; color: inherit;
  display: inline-flex; gap: 0.3rem; align-items: center;
  padding: 0.3rem 0; min-height: 2.75rem;
}
.th-sort:hover { color: var(--paper); }
.th-sort:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; border-radius: 2px; }
.th-arrow { color: var(--paper); width: 0.7em; }
.bd-table td {
  padding: 0.26rem 0.2rem; height: 44px; box-sizing: border-box;
  border-bottom: 1px solid #22303866;
  vertical-align: middle; white-space: nowrap;
}
.bd-table tbody tr:hover { background: #ffd45a08; }
.bd-table tbody tr.is-sel { background: #f4edda10; box-shadow: inset 2px 0 0 var(--paper); }
.bd-table tbody tr.is-focus { outline: 2px solid var(--paper); outline-offset: -2px; }
.bd-table tbody tr.is-newrow { animation: newrow 2s var(--ease); }
@keyframes newrow { 0% { background: #f4edda26; } 100% { background: transparent; } }
.bd-table .num { text-align: right; font-variant-numeric: tabular-nums; font-size: 12px; }
.col-rank { color: var(--unknown); width: 1.6rem; text-align: right; }
.col-coin { min-width: 7.5rem; }

/* 1px separators where a truth-state column group starts */
.t-watch th:nth-child(3), .t-watch td:nth-child(3),
.t-watch th:nth-child(9), .t-watch td:nth-child(9),
.t-watch th:nth-child(11), .t-watch td:nth-child(11),
.t-watch th:nth-child(12), .t-watch td:nth-child(12),
.t-new th:nth-child(3), .t-new td:nth-child(3),
.t-new th:nth-child(7), .t-new td:nth-child(7),
.t-new th:nth-child(8), .t-new td:nth-child(8),
.t-new th:nth-child(9), .t-new td:nth-child(9),
.t-sealed th:nth-child(3), .t-sealed td:nth-child(3),
.t-sealed th:nth-child(4), .t-sealed td:nth-child(4),
.t-sealed th:nth-child(7), .t-sealed td:nth-child(7),
.t-sealed th:nth-child(8), .t-sealed td:nth-child(8) {
  border-left: 1px solid var(--ink-line);
}

/* container-query column shedding (narrow mains; >=1100px shell) */
@container col (max-width: 70rem) {
  .t-watch .col-txns { display: none; }
}
@container col (max-width: 66rem) {
  .t-watch .col-liq { display: none; }
}
@container col (max-width: 62rem) {
  .t-watch .col-age { display: none; }
}
@container col (max-width: 58rem) {
  .t-watch .col-stay { display: none; }
}
@container col (max-width: 54rem) {
  .t-watch .col-x { display: none; }
}
@container col (max-width: 48rem) {
  .t-watch .coin-name { display: none; }
  .t-watch .coin-line1 { flex-wrap: wrap; row-gap: 0.1rem; }
  .t-watch .sigil { width: 20px; height: 20px; }
}

.coin-btn {
  all: unset; cursor: pointer; display: flex; gap: 0.55rem; align-items: center;
  border-radius: var(--radius-sm); padding: 0.15rem 0.3rem; margin: -0.15rem -0.3rem;
}
.coin-btn:hover .coin-sym { color: var(--paper); }
.coin-btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 2px; }
.coin-names { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.coin-line1 { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.coin-sym { font-weight: 700; font-size: 14px; color: var(--paper); max-width: 5rem; overflow: hidden; text-overflow: ellipsis; }
.coin-name { color: var(--muted-dark); font-size: 12px; max-width: 7rem; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.m-sub { display: none; color: var(--muted-dark); font-size: 0.72rem; padding-left: 2.1rem; margin-top: 0.1rem; }
.tag {
  display: inline-block; font-size: 0.58rem; letter-spacing: 0.08em;
  color: var(--claimed); border: 1px solid var(--claimed);
  border-radius: 3px; padding: 0.02rem 0.2rem; flex: none;
}
.tag-new { color: var(--muted-dark); border-color: var(--muted-dark); }
.dim { color: var(--unknown); }
.stay { color: var(--brass); font-weight: 600; }
.chg { color: var(--paper); }
.xcell { display: inline-flex; flex-direction: column; font-size: 0.76rem; max-width: 7.5rem; }
.xcell > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shared { color: var(--claimed); font-size: 0.68rem; }
.empty-cell { color: var(--muted-dark); text-align: center; padding: 2rem 1rem !important; white-space: normal; }
.bd-fail { color: var(--claimed); padding: 1.5rem; white-space: normal; }
.bd-more-row { text-align: center; margin: 0.8rem 0; }

/* sigil + address ring (monochrome only) */
.sigil { flex: none; color: var(--muted-dark); }
.sigil .sg-ring { fill: var(--ink-raised); stroke: var(--paper-line); stroke-width: 0.8; }
.sigil .sg-arc { fill: none; stroke: var(--paper); stroke-width: 1.5; opacity: 0.85; }
.sigil .sg-dot { fill: var(--paper); opacity: 0.85; }
.addr-ring {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--muted-dark); display: inline-block; box-sizing: border-box;
}
.addr-ring-lg { width: 34px; height: 34px; border-width: 3px; }

/* six checks */
.checks { display: inline-flex; gap: 0.22rem; align-items: center; }
.ck { font-size: 0.76rem; line-height: 1; cursor: help; }
.ck-observed { color: var(--observed); }
.ck-inferred { color: var(--brass); }
.ck-claimed { color: var(--claimed); }
.ck-unknown { color: var(--unknown); }

/* stars strip — five lettered conduct slots, state glyphs, never a count */
.stars-strip { display: inline-flex; gap: 0.3rem; align-items: baseline; }
.st { font-size: 0.72rem; line-height: 1; cursor: help; font-weight: 600; }
.st .st-g { font-weight: 400; margin-left: 0.1rem; }
.st-lit { color: var(--observed); }
.st-claimed { color: var(--claimed); }
.st-inferred { color: var(--brass); }
.st-unlit, .st-unknown, .st-not_offered, .st-lost { color: var(--unknown); }
.st-lost { text-decoration: line-through; }
.bi-stars { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.3rem; }
.bi-stars-label, .lc-stars-label { font-size: 0.72rem; color: var(--unknown); }
.lc-stars { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; }
.lc-stars .stars-strip .st { font-size: 0.95rem; }

/* truth badges, ink context (paper variants inside .bd-insp below) */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 0.22rem 0.6rem 0.22rem 0.5rem; border-radius: 999px;
  border: 1px solid currentColor; white-space: nowrap; line-height: 1.2;
}
.badge-small { font-size: 0.66rem; padding: 0.12rem 0.45rem; gap: 0.3rem; }
.badge .glyph { font-size: 1em; letter-spacing: 0; }
.b-observed { color: var(--halo); background: #ffd45a14; }
.b-inferred { color: var(--brass); background: #d0a55914; border-style: dashed; }
.b-claimed { color: var(--claimed); background: #d9993b14; }
.b-unknown { color: var(--muted-dark); border-style: dotted; background: repeating-linear-gradient(135deg, #7c8a8622 0 4px, transparent 4px 8px); }

/* ---------- inspector ---------- */
.bd-insp {
  position: fixed; z-index: 60;
  top: 4.4rem; right: 0; bottom: 0;
  width: min(440px, 94vw);
  background: var(--paper); color: var(--paper-ink);
  box-shadow: -18px 0 50px #000a;
  overflow-y: auto; scrollbar-color: var(--paper-line) transparent;
  padding: 1.1rem 1.15rem 1.25rem;
}
.bd-insp[hidden] { display: none; }
.bd-insp ::selection { background: #d0a55944; }
@media (min-width: 1360px) {
  body.has-insp .bd-shell { grid-template-columns: 11rem minmax(0, 1fr) 440px; }
  .bd-insp {
    position: sticky; top: 0.75rem; bottom: auto; width: auto;
    max-height: calc(100vh - 1.5rem); border-radius: var(--radius);
    box-shadow: 0 24px 60px #000c, 0 2px 8px #0008;
  }
}
.bi-head { display: flex; gap: 0.8rem; align-items: flex-start; }
.bi-head .sigil { color: var(--paper-muted); }
.bi-head .sigil .sg-ring { fill: var(--paper-deep); stroke: var(--paper-line); }
.bi-head .sigil .sg-arc { stroke: var(--paper-ink); }
.bi-head .sigil .sg-dot { fill: var(--paper-ink); }
.bi-head .addr-ring { border-color: var(--paper-muted); }
.bi-title { flex: 1; min-width: 0; }
.bi-name {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  margin: 0; letter-spacing: -0.02em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bi-name:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 2px; }
.bi-sub { margin: 0.1rem 0 0; color: var(--paper-muted); font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bi-mint {
  margin: 0.35rem 0 0; font-size: 0.74rem; color: var(--paper-muted);
  display: flex; gap: 0.5rem; align-items: center; white-space: nowrap;
}
.bi-copy {
  all: unset; cursor: pointer; flex: none;
  font-size: 0.68rem; font-weight: 700;
  color: var(--paper-ink); border-bottom: 1px solid var(--paper-ink);
  padding: 0.35rem 0.2rem; display: inline-flex; align-items: center; justify-content: center; min-width: 40px; box-sizing: border-box;
  position: relative;
}
.bi-copy::after { content: ""; position: absolute; inset: -8px; }
}
.bi-actions { display: flex; gap: 0.4rem; flex-shrink: 0; }
.bi-star, .bi-close {
  all: unset; cursor: pointer; font-size: 0.78rem; font-weight: 700;
  color: var(--paper-ink); border: 1px solid var(--paper-line);
  border-radius: 999px; padding: 0.4rem 0.75rem; min-height: var(--tap);
  display: inline-flex; align-items: center; box-sizing: border-box;
}
.bi-star[aria-pressed="true"] { color: var(--paper-ink); border-color: var(--paper-ink); background: #f4edda; }
.bi-star:hover, .bi-close:hover { border-color: var(--paper-muted); }
.bi-star:focus-visible, .bi-close:focus-visible, .bi-copy:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: 2px; }

.bi-checks {
  list-style: none; margin: 0.9rem 0 0; padding: 0.7rem 0.8rem;
  border: 1px dashed var(--paper-line); border-radius: var(--radius-sm);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.9rem;
}
.bi-checks li { display: flex; gap: 0.4rem; align-items: baseline; font-size: 0.78rem; }
.bi-ck-name { font-weight: 700; }
.bi-ck-word { color: var(--paper-muted); }
.bi-checks .ck { font-size: 0.78rem; }

.bi-tabs { display: flex; gap: 0; margin-top: 1rem; border-bottom: 1px solid var(--paper-line); }
.bi-tab {
  all: unset; cursor: pointer; font-size: 0.82rem; font-weight: 700;
  color: var(--paper-muted); padding: 0.55rem 0.8rem; min-height: var(--tap);
  box-sizing: border-box; border-bottom: 2px solid transparent;
}
.bi-tab[aria-selected="true"] { color: var(--paper-ink); border-bottom-color: var(--paper-ink); }
.bi-tab:hover { color: var(--paper-ink); }
.bi-tab:focus-visible { outline: 2px solid var(--brass-deep); outline-offset: -2px; }
.bi-pane { padding-top: 0.9rem; }

/* ego graph */
.bi-graph { margin: 0 -0.4rem; }
.ego-svg { width: 100%; height: auto; display: block; }
.ego-edge { stroke-width: 1.4; }
.ego-edge.e-observed { stroke: var(--observed-deep); }
.ego-edge.e-inferred { stroke: var(--inferred-deep); stroke-dasharray: 5 4; }
.ego-edge.e-claimed { stroke: var(--claimed-deep); stroke-dasharray: 1.5 4; stroke-linecap: round; }
.ego-edge.e-unknown { stroke: var(--unknown-deep); stroke-dasharray: 1.5 4; }
.ego-node .hit { fill: transparent; }
.ego-node .dot { fill: var(--paper-ink); }
.ego-node .ring { fill: none; stroke: var(--paper-ink); stroke-width: 2.2; }
.ego-node.is-center .dot { fill: var(--paper-ink); }
.ego-node.is-center .ring { stroke: var(--paper-ink); stroke-width: 2.6; }
.ego-node .pill { fill: var(--paper-deep); stroke: var(--claimed-deep); stroke-width: 1; }
.ego-pill-text { font-family: var(--sans); font-size: 11px; fill: var(--claimed-deep); paint-order: stroke; stroke: var(--paper); stroke-width: 2.5px; }
.ego-node:focus-visible { outline: none; }
.ego-node:focus-visible .hit { stroke: var(--brass-deep); stroke-width: 2; }
.ego-node[role="button"] { cursor: pointer; }
.ego-label { font-family: var(--sans); font-size: 11px; fill: var(--paper-muted); paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.ego-label-center { font-size: 11.5px; font-weight: 700; fill: var(--paper-ink); }
.ego-legend {
  display: flex; gap: 1rem; flex-wrap: wrap; margin: 0.3rem 0.4rem 0;
  font-size: 0.74rem; color: var(--paper-muted);
}
.ego-legend-item { display: inline-flex; align-items: center; gap: 0.35rem; }
.ego-legend-stroke { width: 26px; height: 6px; }
.bi-thin { color: var(--paper-muted); font-size: 0.82rem; margin: 0.4rem 0.4rem 0; }
.bi-links { list-style: none; margin: 0.8rem 0 0; padding: 0.6rem 0.4rem 0; border-top: 1px dashed var(--paper-line); font-size: 0.84rem; }
.bi-links li { padding: 0.25rem 0; display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; }
.bi-links .shared { color: var(--claimed-deep); }

/* receipts / reads / feed */
.bi-receipts, .bi-reads { list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.bi-receipts li, .bi-reads li {
  padding: 0.5rem 0; border-bottom: 1px dashed var(--paper-line);
  display: flex; gap: 0.45rem; align-items: baseline; flex-wrap: wrap; line-height: 1.45;
}
.bi-read-q { flex-basis: 9rem; color: var(--paper-muted); }
.bi-foot { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid var(--paper-line); }
.ap-report {
  display: inline-block; min-height: 2.2rem; padding: 0.3rem 0.8rem;
  border: 1px solid var(--ink-line); border-radius: 999px;
  color: var(--paper); font-size: 0.82rem; font-weight: 600; text-decoration: none;
}
.bd-insp .ap-report { color: var(--paper-ink); border-color: var(--paper-line); }
.bd-insp .ap-report:hover { border-color: var(--paper-ink); color: var(--paper-ink); }
.bi-foot-note { color: var(--paper-muted); font-size: 0.78rem; margin: 0.7rem 0 0; line-height: 1.5; }
.bi-foot-note a { color: var(--brass-deep); }
.bd-insp .badge { letter-spacing: 0.06em; }
.bd-insp .b-observed { color: var(--observed-deep); background: #3faf9714; }
.bd-insp .b-inferred { color: var(--inferred-deep); background: #c08a2c14; }
.bd-insp .b-claimed { color: var(--claimed-deep); background: #d9993b14; }
.bd-insp .b-unknown { color: var(--unknown-deep); }

/* ---------- launches ---------- */
.lc {
  background: var(--ink-raised); border: 1px solid var(--ink-line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; margin-bottom: 1rem;
}
.lc-head { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.lc-handle { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin: 0 0 0.45rem; }
.lc-halo {
  width: 6.2rem; height: 6.2rem; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #fff6c8, #ffd45a 38%, #e07828 72%, #8a2a14);
  box-shadow: 0 0 0 5px #ffd45a22, 0 18px 44px #000a, inset 0 -14px 26px #6a1c0888;
}
.lc-zero { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--ink); }
.lc-body { color: var(--muted-dark); max-width: 60ch; line-height: 1.55; }
.lc-rail {
  list-style: none; margin: 1.2rem 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem;
}
.lc-station {
  border: 1px dashed var(--ink-line); border-radius: var(--radius-sm);
  padding: 0.8rem; display: flex; flex-direction: column; gap: 0.35rem;
}
.lc-num { font-size: 1.3rem; color: var(--halo); font-weight: 700; }
.lc-station-name { font-size: 0.78rem; color: var(--muted-dark); line-height: 1.35; }
.lc-promise { font-size: 0.92rem; line-height: 1.5; }
.lc-promise-note { color: var(--muted-dark); }
.lc-table { margin-top: 1rem; }

/* ---------- tablet ---------- */
@media (max-width: 1099px) {
  .bd-shell { grid-template-columns: minmax(0, 1fr); }
  .bd-rail {
    grid-column: 1 / -1; position: static; flex-direction: row;
    align-items: center; gap: 0.8rem; overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
  }
  .bd-rail::-webkit-scrollbar { display: none; }
  .bd-views { flex-direction: row; }
  .bd-view-btn { border-left: none; border-bottom: 2px solid transparent; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .bd-view-btn[aria-current="true"] { border-bottom-color: var(--halo); }
  .bd-rail-foot { border-top: none; border-left: 1px solid var(--ink-line); padding: 0 0 0 0.8rem; margin-left: auto; white-space: nowrap; }
  body.has-insp::before {
    content: ""; position: fixed; inset: 0; background: #0009; z-index: 55;
  }
}

/* ---------- mobile ---------- */
@media (max-width: 719px) {
  .board { padding-block-start: 0.25rem; }
  .bd-shell { gap: 0.8rem; }
  .board-page .site-header .wrap {
    grid-template-areas: "brand pill" "nav nav";
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .board-page .site-header nav { grid-area: nav; min-width: 0; overflow: hidden; }
  .board-page .site-header .orbit-nav {
    overflow-x: auto; scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 82%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent);
  }
  .board-page .pill { justify-self: end; }
  .bd-mast { margin-bottom: 0.35rem; }
  .bd-mast h1 { font-size: 1.25rem; }
  .bd-thesis { font-size: 0.78rem; margin-top: 0.1rem; }
  .bd-command { margin-bottom: 0.45rem; }
  .bd-viewhead { margin-bottom: 0.4rem; }
  .bd-viewhead h2 { font-size: 1.1rem; }
  .bd-scope { font-size: 0.78rem; }
  .bd-command { flex-direction: column; align-items: stretch; gap: 0.55rem; }
  .bd-search { flex: none; width: 100%; }
  .bd-clocks { margin: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .bd-clocks::-webkit-scrollbar { display: none; }
  .bd-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; margin-left: 0; }
  .bd-chips::-webkit-scrollbar { display: none; }
  .bd-view-btn .v-full { display: none; }
  .bd-view-btn .v-short { display: inline; }
  .bd-table-host { max-height: none; }
  .bd-table thead { display: none; }
  .bd-table, .bd-table tbody, .bd-table tr, .bd-table td { display: block; }
  .bd-table td { border: none; padding: 0.1rem 0.8rem; white-space: normal; height: auto; }
  .bd-table td.col-rank, .bd-table td.num { display: none; }
  .bd-table td.col-coin { padding: 0.65rem 0.8rem 0.1rem; }
  .bd-table td.col-coin .m-sub { display: block; }
  .bd-table td.col-checks { padding: 0 0.8rem 0.65rem; }
  .bd-table td:not(.col-coin):not(.col-checks) { display: none; }
  .bd-table tbody tr { border-bottom: 1px solid var(--ink-line); padding: 0.2rem 0; display: block; }
  .bd-insp {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    max-height: 78vh; border-radius: var(--radius) var(--radius) 0 0;
    padding-top: 0.5rem;
  }
  .bd-insp .bi-head {
    position: sticky; top: -0.5rem; z-index: 5;
    background: var(--paper); padding-top: 0.4rem; margin-top: -0.4rem;
  }
  .lc { display: flex; flex-direction: column; }
  .lc-head { display: contents; }
  .lc-id { order: 1; }
  .lc-body { order: 2; }
  .lc-rail { order: 3; }
  .lc-promise { order: 4; }
  .lc-halo { order: 5; align-self: flex-start; margin-top: 0.8rem; }
  .lc-halo { width: 3rem; height: 3rem; }
  .lc-zero { font-size: 1.2rem; }
  .bi-checks { grid-template-columns: 1fr; gap: 0.45rem; }
  .lc-rail { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-table tbody tr.is-newrow { animation: none; }
  * { scroll-behavior: auto; }
}

/* group labels must not inflate column min-content */
.bd-table thead tr.grp th { position: sticky; overflow: visible; }
.grp-label {
  position: absolute; left: 0.35rem; top: 50%; transform: translateY(-50%);
  font-size: 10px; letter-spacing: 0.05em; line-height: 1;
  white-space: nowrap; pointer-events: none;
}


/* truth key beside the legend line */
.bd-key { white-space: nowrap; margin-left: 0.6rem; }
.bd-key .k-observed { color: var(--observed); }
.bd-key .k-inferred { color: var(--brass); }
.bd-key .k-claimed { color: var(--claimed); }
.bd-key .k-unknown { color: var(--unknown); }

.bd-refresh-note {
  margin: 0 0 0.5rem; padding: 0.5rem 0.8rem;
  border: 1px dotted var(--unknown); border-radius: var(--radius-sm);
  color: var(--muted-dark); font-size: 0.8rem;
  background: repeating-linear-gradient(135deg, #7c8a8614 0 4px, transparent 4px 8px);
}

.bi-link-btn {
  all: unset; cursor: pointer; display: block; width: 100%;
  min-height: 44px; box-sizing: border-box; padding: 0.5rem 0.4rem;
  border-radius: var(--radius-sm); text-align: left;
}
.bi-link-btn:hover { background: #22303810; }
.bi-link-btn:focus-visible { outline: 2px solid var(--paper-ink); outline-offset: -2px; }

.ms-claim { color: var(--claimed); }

/* neutralize shared-site chrome colors on the board */
.board-page .skip:focus-visible { background: var(--paper); color: var(--ink); }
.board-page .site-header .num { color: var(--muted-dark); }
.board-page .orbit-nav a[aria-current="true"] .num { border-color: var(--paper); color: var(--paper); }
.board-page .skip { background: var(--paper); color: var(--ink); }

/* keep the truth key on mobile; collapse only the legend sentence */
@media (max-width: 719px) {
  .bd-legend-line { font-size: 0; margin: 0; }
  .bd-legend-line .bd-key { font-size: 0.75rem; margin-left: 0; }
}
/* skip link must not extend the page's scrollable area */
.board-page .skip { left: 0.75rem; top: -200px; }
.board-page .skip:focus { top: 0.5rem; }

/* --- evidence flag strip --- */
.flags-strip { display: inline-flex; gap: 0.5rem; align-items: baseline; font-size: 0.85rem; }
.flags-strip .fl { display: inline-flex; gap: 0.15rem; align-items: baseline; }
.flags-strip .fl-g { color: #4e9f6a; }
.flags-strip .fl-r { color: #b04040; }
.flags-strip .fl-u { color: #8a7a55; }
.bi-flags { margin: 0.6rem 0; }
.bi-flaglist { list-style: none; margin: 0.35rem 0 0; padding: 0; font-size: 0.8rem; line-height: 1.5; }
.bi-flaglist .bi-fl-red { color: #b04040; }
.bi-flaglist .bi-fl-green { color: #4e9f6a; }
.bi-flaglist .bi-fl-neu { color: #8a7a55; }
