:root {
  color-scheme: dark;
  --ink: #070908;
  --ink-raised: #0b0f0d;
  --panel: #0e1310;
  --panel-soft: #111713;
  --panel-bright: #151d17;
  --line: rgba(217, 255, 194, 0.12);
  --line-strong: rgba(217, 255, 194, 0.24);
  --paper: #f0f8ed;
  --muted: #8d9b90;
  --muted-bright: #b3c0b5;
  --signal: #c7ff63;
  --signal-deep: #86cb3f;
  --aqua: #61e8ce;
  --amber: #ffca64;
  --red: #ff7068;
  --violet: #ad96ff;
  --blue: #6cb9ff;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-family: var(--sans);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--paper);
  background:
    radial-gradient(circle at 74% -20%, rgba(199, 255, 99, 0.085), transparent 34rem),
    linear-gradient(rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    var(--ink);
  background-size: auto, 52px 52px, 52px 52px, auto;
}

button,
input,
select {
  color: inherit;
  font: inherit;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

a {
  color: inherit;
}

code {
  font-family: var(--mono);
}

.is-hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  transform: translateY(-160%);
  color: #071007;
  border-radius: var(--radius-sm);
  background: var(--signal);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.command-bar,
main,
footer {
  width: min(1660px, calc(100% - 64px));
  margin-inline: auto;
}

.command-bar {
  position: relative;
  z-index: 20;
  display: grid;
  min-height: 84px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-scope {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(199, 255, 99, 0.42);
  border-radius: 50%;
  background: rgba(199, 255, 99, 0.035);
}

.brand-scope::before,
.brand-scope::after {
  position: absolute;
  content: "";
  border-radius: inherit;
}

.brand-scope::before {
  inset: 8px;
  border: 1px solid rgba(199, 255, 99, 0.27);
}

.brand-scope::after {
  width: 6px;
  height: 6px;
  background: var(--signal);
  box-shadow: 0 0 16px var(--signal);
}

.brand-scope span {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(199, 255, 99, 0.75);
}

.brand-scope span:nth-child(1) { top: 5px; left: 16px; }
.brand-scope span:nth-child(2) { right: 4px; bottom: 12px; }
.brand-scope span:nth-child(3) { bottom: 5px; left: 10px; }

.brand-copy strong,
.brand-copy small {
  display: block;
}

.brand-copy strong {
  font-family: var(--mono);
  font-size: 0.92rem;
  letter-spacing: 0.15em;
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.18em;
}

.system-state {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  color: var(--muted-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.018);
  font-family: var(--mono);
  font-size: 0.69rem;
}

.system-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(255, 202, 100, 0.08);
}

.system-state.is-live .system-dot {
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(199, 255, 99, 0.08), 0 0 12px rgba(199, 255, 99, 0.3);
}

.system-state.is-error .system-dot {
  background: var(--red);
  box-shadow: 0 0 0 5px rgba(255, 112, 104, 0.08);
}

.scan-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: end;
  gap: 10px;
  padding: 0 17px;
  color: #0b1009;
  border: 0;
  border-radius: 999px;
  background: var(--signal);
  font-size: 0.78rem;
  font-weight: 850;
  box-shadow: 0 0 0 1px rgba(199, 255, 99, 0.3), 0 10px 34px rgba(134, 203, 63, 0.12);
}

.scan-button:hover:not(:disabled) {
  background: #d4ff86;
  transform: translateY(-1px);
}

.scan-button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.scan-glyph {
  position: relative;
  width: 15px;
  height: 15px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.scan-glyph::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  content: "";
  transform: rotate(-30deg);
  transform-origin: left center;
  background: currentColor;
}

.scan-button.is-scanning .scan-glyph {
  border-right-color: transparent;
  animation: spin 0.85s linear infinite;
}

main {
  padding-bottom: 54px;
}

.opening {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.7fr);
  align-items: center;
  gap: 80px;
  padding: 76px 0 58px;
}

.eyebrow,
.section-code {
  margin: 0;
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.opening h1 {
  max-width: 900px;
  margin: 18px 0 23px;
  font-size: clamp(2.7rem, 5vw, 5.7rem);
  line-height: 0.94;
  letter-spacing: -0.064em;
}

.opening h1 em {
  color: var(--signal);
  font-style: normal;
  font-weight: 480;
}

.opening-lede {
  max-width: 720px;
  margin: 0;
  color: var(--muted-bright);
  font-size: clamp(0.98rem, 1.25vw, 1.14rem);
  line-height: 1.72;
}

.boundary-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(199, 255, 99, 0.075), transparent 50%),
    rgba(12, 17, 14, 0.86);
  box-shadow: var(--shadow);
}

.boundary-card::after {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  content: "";
  border: 1px solid rgba(199, 255, 99, 0.08);
  border-radius: 50%;
}

.boundary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.boundary-gate {
  color: var(--amber);
}

.boundary-track {
  display: grid;
  height: 32px;
  grid-template-columns: repeat(7, 1fr) 1.4fr;
  align-items: center;
  gap: 6px;
  margin: 20px 0 15px;
}

.boundary-track span {
  height: 4px;
  border-radius: 99px;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(199, 255, 99, 0.22);
}

.boundary-track i {
  position: relative;
  height: 100%;
  border-left: 2px solid var(--amber);
  background: linear-gradient(90deg, rgba(255, 202, 100, 0.08), transparent);
}

.boundary-track i::before,
.boundary-track i::after {
  position: absolute;
  left: -5px;
  width: 8px;
  height: 8px;
  content: "";
  border: 1px solid var(--amber);
  border-radius: 50%;
  background: var(--panel);
}

.boundary-track i::before { top: -4px; }
.boundary-track i::after { bottom: -4px; }

.boundary-card p {
  margin: 0;
  color: var(--muted-bright);
  font-size: 0.85rem;
  line-height: 1.55;
}

.pulse-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(12, 17, 14, 0.72);
  box-shadow: var(--shadow);
}

.pulse-card {
  position: relative;
  min-height: 155px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.pulse-card:last-child {
  border-right: 0;
}

.pulse-card span,
.pulse-card small {
  display: block;
}

.pulse-card span {
  color: var(--muted-bright);
  font-size: 0.75rem;
  font-weight: 750;
}

.pulse-card strong {
  display: block;
  margin: 12px 0 8px;
  font-family: var(--mono);
  font-size: 2.35rem;
  letter-spacing: -0.07em;
}

.pulse-card small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.45;
}

.pulse-primary {
  background: linear-gradient(135deg, rgba(199, 255, 99, 0.1), transparent 75%);
}

.pulse-primary strong {
  color: var(--signal);
}

.coverage-panel {
  margin-top: 28px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 12, 0.78);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2 {
  margin: 7px 0 0;
  font-size: 1.22rem;
  letter-spacing: -0.025em;
}

.coverage-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.coverage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}

.legend-dot.is-live { background: var(--signal); }
.legend-dot.is-delayed { background: var(--amber); }
.legend-dot.is-off { background: #4e5951; }

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 22px;
}

.source-cell {
  min-height: 88px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.018);
}

.source-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.source-cell strong {
  overflow: hidden;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-light {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #515d54;
}

.source-cell.is-live .source-light { background: var(--signal); box-shadow: 0 0 9px rgba(199, 255, 99, 0.4); }
.source-cell.is-delayed .source-light { background: var(--amber); }
.source-cell.is-error .source-light { background: var(--red); }

.source-cell span,
.source-cell time {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.59rem;
  line-height: 1.35;
}

.source-cell.is-off {
  opacity: 0.65;
}

.coverage-caution {
  margin: 20px 0 0;
  padding-top: 17px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  line-height: 1.55;
}

.coverage-caution strong {
  color: var(--amber);
}

.radar-workspace {
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(640px, 1.35fr);
  align-items: start;
  gap: 22px;
  margin-top: 28px;
}

.stream-column,
.dossier {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(10, 14, 12, 0.88);
  box-shadow: var(--shadow);
}

.stream-column {
  padding: 23px;
}

.stream-heading {
  align-items: center;
}

.result-count {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.filter-deck {
  margin-top: 20px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.018);
}

.search-box {
  display: grid;
  min-height: 44px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--ink-raised);
}

.search-mark {
  position: relative;
  width: 13px;
  height: 13px;
  border: 1px solid var(--muted);
  border-radius: 50%;
}

.search-mark::after {
  position: absolute;
  right: -4px;
  bottom: -2px;
  width: 5px;
  height: 1px;
  content: "";
  transform: rotate(45deg);
  background: var(--muted);
}

.search-box input {
  min-width: 0;
  padding: 11px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.78rem;
}

.search-box input::placeholder {
  color: #69736c;
}

kbd {
  padding: 3px 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.filter-row label:last-child {
  grid-column: 1 / -1;
}

.filter-row label > span {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-row select {
  width: 100%;
  min-height: 39px;
  padding: 0 29px 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background-color: var(--ink-raised);
  font-size: 0.7rem;
}

.filter-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding-top: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.61rem;
  line-height: 1.4;
}

.filter-foot button,
.inline-alert button,
.empty-state button,
.back-to-stream,
.contract-line button {
  padding: 0;
  color: var(--signal);
  border: 0;
  background: none;
  font-size: 0.66rem;
  font-weight: 800;
}

.candidate-list {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.candidate-card {
  width: 100%;
  padding: 15px;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel-soft);
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.candidate-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-bright);
  transform: translateY(-1px);
}

.candidate-card.is-selected {
  border-color: rgba(199, 255, 99, 0.45);
  background: linear-gradient(125deg, rgba(199, 255, 99, 0.075), var(--panel-soft) 62%);
  box-shadow: inset 3px 0 0 var(--signal);
}

.candidate-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.candidate-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.candidate-mark,
.identity-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: var(--signal);
  border: 1px solid rgba(199, 255, 99, 0.2);
  border-radius: 50%;
  background: rgba(199, 255, 99, 0.035);
  font-family: var(--mono);
  font-weight: 850;
}

.candidate-mark {
  width: 35px;
  height: 35px;
  font-size: 0.62rem;
}

.candidate-name-block {
  min-width: 0;
}

.candidate-name-block strong,
.candidate-name-block small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-name-block strong {
  font-size: 0.82rem;
}

.candidate-name-block small {
  max-width: 270px;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
}

.chain-tag,
.seed-age,
.gate-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.chain-tag {
  min-height: 23px;
  padding: 0 8px;
  color: var(--aqua);
  font-size: 0.55rem;
}

.candidate-signal {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.candidate-signal p {
  margin: 0;
  color: var(--muted-bright);
  font-size: 0.67rem;
  line-height: 1.45;
}

.candidate-signal p strong {
  color: var(--paper);
}

.seed-age {
  min-height: 25px;
  padding: 0 8px;
  color: var(--signal);
  border-color: rgba(199, 255, 99, 0.2);
  font-size: 0.56rem;
}

.mini-sequence {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 4px;
  margin-top: 12px;
}

.mini-sequence span {
  height: 4px;
  border-radius: 999px;
  background: #293029;
}

.mini-sequence .is-observed,
.mini-sequence .is-verified {
  background: var(--signal);
  box-shadow: 0 0 7px rgba(199, 255, 99, 0.23);
}

.mini-sequence .is-suspected {
  background: var(--amber);
}

.mini-sequence .is-unavailable {
  background: repeating-linear-gradient(90deg, #667068 0 2px, transparent 2px 4px);
}

.mini-sequence .is-crossed {
  background: var(--red);
}

.candidate-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.57rem;
}

.candidate-foot strong {
  color: var(--muted-bright);
}

.predex-label {
  color: var(--signal);
}

.crossed-label {
  color: var(--red);
}

.inline-alert {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 12px;
  color: var(--muted-bright);
  border: 1px solid rgba(255, 112, 104, 0.24);
  border-radius: var(--radius-sm);
  background: rgba(255, 112, 104, 0.055);
  font-size: 0.67rem;
}

.inline-alert > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  color: var(--red);
  border: 1px solid rgba(255, 112, 104, 0.32);
  border-radius: 50%;
  font-family: var(--mono);
  font-weight: 900;
}

.inline-alert strong,
.inline-alert small {
  display: block;
}

.inline-alert small {
  margin-top: 2px;
  color: var(--muted);
}

.stream-loading {
  display: grid;
  gap: 9px;
  margin-top: 13px;
}

.stream-loading span {
  height: 112px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, var(--panel-soft) 20%, var(--panel-bright) 38%, var(--panel-soft) 56%);
  background-size: 220% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

.empty-state {
  padding: 55px 24px;
  color: var(--muted);
  text-align: center;
}

.empty-scope {
  position: relative;
  width: 54px;
  height: 54px;
  margin: 0 auto 17px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}

.empty-scope::before,
.empty-scope::after {
  position: absolute;
  content: "";
  background: var(--line-strong);
}

.empty-scope::before { top: 50%; left: -8px; width: 70px; height: 1px; }
.empty-scope::after { top: -8px; left: 50%; width: 1px; height: 70px; }

.empty-state h3 {
  margin: 0;
  color: var(--paper);
  font-size: 1rem;
}

.empty-state p {
  max-width: 360px;
  margin: 9px auto 15px;
  font-size: 0.73rem;
  line-height: 1.55;
}

.dossier {
  position: sticky;
  top: 18px;
  min-height: 700px;
  padding: 27px;
}

.dossier-empty {
  display: grid;
  min-height: 640px;
  place-content: center;
  justify-items: center;
  text-align: center;
}

.dossier-reticle {
  position: relative;
  width: 95px;
  height: 95px;
  margin-bottom: 24px;
  border: 1px solid rgba(199, 255, 99, 0.22);
  border-radius: 50%;
  box-shadow: inset 0 0 32px rgba(199, 255, 99, 0.035);
}

.dossier-reticle::before,
.dossier-reticle::after {
  position: absolute;
  content: "";
  background: rgba(199, 255, 99, 0.27);
}

.dossier-reticle::before { top: 50%; left: -18px; width: 129px; height: 1px; }
.dossier-reticle::after { top: -18px; left: 50%; width: 1px; height: 129px; }

.dossier-empty h2 {
  max-width: 430px;
  margin: 10px 0 11px;
  font-size: 1.55rem;
  letter-spacing: -0.035em;
}

.dossier-empty > p:last-child {
  max-width: 470px;
  margin: 0;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.62;
}

.back-to-stream {
  display: none;
  margin-bottom: 16px;
}

.dossier-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.identity-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 15px;
}

.identity-mark {
  width: 54px;
  height: 54px;
  font-size: 0.74rem;
}

.detail-overline {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.59rem;
  letter-spacing: 0.11em;
}

.dossier-header h2 {
  max-width: 520px;
  margin: 0;
  overflow: hidden;
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.045em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-line {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.contract-line code {
  max-width: min(450px, 40vw);
  overflow: hidden;
  color: var(--muted-bright);
  font-size: 0.65rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contract-line button:disabled {
  display: none;
}

.gate-chip {
  min-height: 29px;
  padding: 0 11px;
  color: var(--signal);
  border-color: rgba(199, 255, 99, 0.24);
  background: rgba(199, 255, 99, 0.04);
  font-size: 0.59rem;
}

.gate-chip.is-crossed {
  color: var(--red);
  border-color: rgba(255, 112, 104, 0.25);
  background: rgba(255, 112, 104, 0.045);
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
}

.alpha-fact-grid {
  margin-top: 10px;
  border-color: rgba(199, 255, 99, 0.16);
  background: rgba(199, 255, 99, 0.025);
}

.alpha-fact-grid strong {
  color: var(--signal);
}

.fact-grid div {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.fact-grid div:last-child {
  border-right: 0;
}

.fact-grid span,
.fact-grid strong {
  display: block;
}

.fact-grid span {
  color: var(--muted);
  font-size: 0.59rem;
}

.fact-grid strong {
  margin-top: 6px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.77rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.formation-panel,
.evidence-panel {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.014);
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.panel-heading h3 {
  margin: 6px 0 0;
  font-size: 1rem;
}

.panel-heading > span {
  color: var(--muted-bright);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.formation-track {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
}

.formation-stage {
  position: relative;
  min-width: 0;
  padding-top: 25px;
  text-align: center;
}

.formation-stage::before {
  position: absolute;
  z-index: 2;
  top: 0;
  left: calc(50% - 7px);
  width: 12px;
  height: 12px;
  content: "";
  border: 1px solid #465048;
  border-radius: 50%;
  background: var(--panel);
}

.formation-stage::after {
  position: absolute;
  top: 6px;
  right: 50%;
  width: 100%;
  height: 1px;
  content: "";
  background: #343c36;
}

.formation-stage:first-child::after {
  display: none;
}

.formation-stage.is-observed::before,
.formation-stage.is-verified::before {
  border-color: var(--signal);
  background: var(--signal);
  box-shadow: 0 0 11px rgba(199, 255, 99, 0.45);
}

.formation-stage.is-observed::after,
.formation-stage.is-verified::after {
  background: rgba(199, 255, 99, 0.55);
}

.formation-stage.is-suspected::before {
  border-color: var(--amber);
  background: var(--amber);
}

.formation-stage.is-unavailable::before {
  border-style: dashed;
  border-color: #69736b;
}

.formation-stage.is-crossed::before {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 11px rgba(255, 112, 104, 0.34);
}

.formation-stage strong,
.formation-stage span,
.formation-stage time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.formation-stage strong {
  min-height: 29px;
  font-size: 0.59rem;
  line-height: 1.25;
}

.formation-stage span {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.5rem;
  white-space: nowrap;
}

.formation-stage time {
  margin-top: 3px;
  color: #667068;
  font-family: var(--mono);
  font-size: 0.47rem;
  white-space: nowrap;
}

.scope-disclaimer {
  margin: 20px 0 0;
  padding-top: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.65rem;
  line-height: 1.5;
}

.evidence-ledger {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.evidence-item {
  display: grid;
  grid-template-columns: 106px 11px minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.evidence-item:first-child {
  border-top: 0;
}

.evidence-time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.56rem;
  line-height: 1.4;
}

.evidence-dot {
  width: 8px;
  height: 8px;
  margin-top: 3px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  background: rgba(199, 255, 99, 0.14);
}

.evidence-body {
  min-width: 0;
}

.evidence-body strong,
.evidence-body span,
.evidence-body small {
  display: block;
}

.evidence-body strong {
  font-size: 0.72rem;
}

.evidence-body span {
  margin-top: 4px;
  color: var(--muted-bright);
  font-size: 0.65rem;
  line-height: 1.45;
}

.evidence-body small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.54rem;
}

.evidence-link {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.56rem;
  font-weight: 800;
  text-decoration: none;
}

.evidence-link:hover {
  text-decoration: underline;
}

.confidence-tag {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  color: var(--muted-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.52rem;
}

.evidence-empty {
  margin-top: 16px;
  padding: 28px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  text-align: center;
}

.method-note {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
}

.method-note div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 13px;
  padding: 21px;
  background: var(--ink-raised);
}

.method-note span {
  color: var(--signal);
  font-family: var(--mono);
  font-size: 0.62rem;
}

.method-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.69rem;
  line-height: 1.55;
}

.method-note strong {
  color: var(--paper);
}

footer {
  display: grid;
  min-height: 74px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

footer > span:nth-child(2) {
  justify-self: center;
}

.refresh-toggle {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  cursor: pointer;
}

.refresh-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.toggle-rail {
  position: relative;
  width: 32px;
  height: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #151b17;
}

.toggle-rail i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #69736b;
  transition: transform 140ms ease, background 140ms ease;
}

.refresh-toggle input:checked + .toggle-rail i {
  transform: translateX(14px);
  background: var(--signal);
}

.refresh-toggle input:focus-visible + .toggle-rail {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 12px 15px;
  transform: translateY(20px);
  color: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #141b16;
  box-shadow: var(--shadow);
  font-size: 0.72rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease, transform 150ms ease;
}

.toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes shimmer {
  to { background-position: -220% 0; }
}

@media (max-width: 1360px) {
  .coverage-grid {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
  }

  .radar-workspace {
    grid-template-columns: minmax(360px, 0.72fr) minmax(580px, 1.2fr);
  }

  .fact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .fact-grid div:nth-child(2) {
    border-right: 0;
  }

  .fact-grid div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 1120px) {
  .opening {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .boundary-card {
    max-width: 720px;
  }

  .pulse-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .pulse-card:nth-child(2) {
    border-right: 0;
  }

  .pulse-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .radar-workspace {
    grid-template-columns: 1fr;
  }

  .dossier {
    position: static;
    min-height: 500px;
  }

  .dossier-empty {
    min-height: 460px;
  }

  .back-to-stream {
    display: inline-block;
  }
}

@media (max-width: 820px) {
  .command-bar,
  main,
  footer {
    width: min(100% - 28px, 1660px);
  }

  .command-bar {
    min-height: 72px;
    grid-template-columns: 1fr auto;
  }

  .system-state {
    display: none;
  }

  .brand-copy small {
    display: none;
  }

  .opening {
    padding: 55px 0 38px;
  }

  .opening h1 {
    font-size: clamp(2.45rem, 11vw, 4.6rem);
  }

  .coverage-panel,
  .stream-column,
  .dossier {
    padding: 18px;
  }

  .coverage-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .coverage-legend {
    justify-content: flex-start;
  }

  .coverage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .formation-track {
    grid-template-columns: 1fr;
    gap: 0;
    margin-left: 4px;
  }

  .formation-stage {
    display: grid;
    min-height: 53px;
    grid-template-columns: 24px minmax(110px, 0.6fr) 1fr auto;
    align-items: start;
    gap: 8px;
    padding: 0;
    text-align: left;
  }

  .formation-stage::before {
    top: 2px;
    left: 0;
  }

  .formation-stage::after {
    top: -44px;
    left: 6px;
    width: 1px;
    height: 46px;
  }

  .formation-stage strong,
  .formation-stage span,
  .formation-stage time {
    min-height: auto;
    margin: 0;
  }

  .evidence-item {
    grid-template-columns: 11px minmax(0, 1fr) auto;
  }

  .evidence-time {
    grid-column: 2 / -1;
    grid-row: 2;
  }

  .evidence-dot {
    grid-column: 1;
    grid-row: 1;
  }

  .evidence-body {
    grid-column: 2;
    grid-row: 1;
  }

  .confidence-tag,
  .evidence-link {
    grid-column: 3;
    grid-row: 1;
  }

  .method-note {
    grid-template-columns: 1fr;
  }

  footer {
    min-height: 100px;
    grid-template-columns: 1fr auto;
  }

  footer > span:nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-scope {
    width: 36px;
    height: 36px;
  }

  .scan-button {
    min-height: 40px;
    padding: 0 13px;
  }

  .scan-glyph {
    display: none;
  }

  .opening h1 {
    letter-spacing: -0.07em;
  }

  .boundary-card {
    padding: 18px;
  }

  .pulse-board {
    grid-template-columns: 1fr;
  }

  .pulse-card {
    min-height: 125px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pulse-card:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .pulse-card:last-child {
    border-bottom: 0;
  }

  .coverage-grid {
    grid-template-columns: 1fr 1fr;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-row label:last-child {
    grid-column: auto;
  }

  .filter-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .candidate-signal {
    grid-template-columns: 1fr;
  }

  .seed-age {
    width: max-content;
  }

  .dossier-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .identity-mark {
    width: 44px;
    height: 44px;
  }

  .dossier-header h2 {
    max-width: calc(100vw - 120px);
    font-size: 1.35rem;
  }

  .contract-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .contract-line code {
    max-width: calc(100vw - 120px);
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .fact-grid div:nth-child(3) {
    border-bottom: 1px solid var(--line);
  }

  .fact-grid div:last-child {
    border-bottom: 0;
  }

  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 18px 0;
  }

  .refresh-toggle {
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
