:root {
  color-scheme: dark;
  --void: #05070a;
  --grid: rgba(102, 131, 164, 0.07);
  --surface: #0b1016;
  --surface-raised: #111923;
  --surface-soft: #0d141d;
  --rule: #273242;
  --rule-strong: #3b4c61;
  --text: #f2f6fa;
  --muted: #a7b2c0;
  --dim: #6d7a8a;
  --blue: #4c9bff;
  --ice: #8fcaff;
  --green: #70d69a;
  --amber: #f0b866;
  --red: #ff7777;
  --black: #020304;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --radius: 9px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    radial-gradient(circle at 78% 0%, rgba(76, 155, 255, 0.1), transparent 35rem),
    linear-gradient(180deg, #070a0e 0%, var(--void) 48%, #080b10 100%);
  background-size: 42px 42px, 42px 42px, auto, auto;
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
button, a { touch-action: manipulation; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ice);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  border: 1px solid var(--blue);
  border-radius: var(--radius);
  background: var(--black);
  padding: 10px 12px;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(190px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 14px max(22px, calc((100vw - 1260px) / 2));
  border-bottom: 1px solid rgba(76, 155, 255, 0.2);
  background: rgba(5, 7, 10, 0.9);
  backdrop-filter: blur(16px);
}
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}
.brand-lockup > span:last-child { display: grid; min-width: 0; }
.brand-lockup strong {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.brand-lockup small {
  overflow: hidden;
  color: var(--dim);
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-mark {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  width: 21px;
  height: 18px;
}
.brand-mark i { display: block; width: 5px; background: var(--blue); box-shadow: 0 0 10px rgba(76, 155, 255, 0.42); }
.brand-mark i:nth-child(1) { height: 7px; }
.brand-mark i:nth-child(2) { height: 16px; }
.brand-mark i:nth-child(3) { height: 11px; }

.suite-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--black);
}
.suite-switch a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 6px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.suite-switch a:hover { color: var(--text); }
.suite-switch a.is-active {
  background: var(--blue);
  color: #04111f;
  box-shadow: 0 0 22px rgba(76, 155, 255, 0.18);
}

.top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.top-link, .status-pill {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: rgba(17, 25, 35, 0.82);
  color: var(--muted);
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 750;
  text-decoration: none;
}
.top-link:hover { border-color: var(--blue); color: var(--text); }
.status-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--dim);
}
.status-pill[data-state="fresh"] { border-color: rgba(112, 214, 154, 0.42); color: #b9f0cb; }
.status-pill[data-state="fresh"]::before { background: var(--green); box-shadow: 0 0 10px rgba(112, 214, 154, 0.52); }
.status-pill[data-state="stale"], .status-pill[data-state="error"] { border-color: rgba(240, 184, 102, 0.42); color: #f3d4a6; }
.status-pill[data-state="stale"]::before, .status-pill[data-state="error"]::before { background: var(--amber); }

.dashboard {
  width: min(1260px, calc(100% - 44px));
  margin: 0 auto;
  padding: 34px 0 64px;
  animation: dashboard-in 360ms ease-out both;
}

.hero {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 20px;
}
.intro-panel, .verdict-panel, .panel, .metric-card {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(17, 25, 35, 0.96), rgba(8, 12, 17, 0.98));
  box-shadow: var(--shadow);
}
.intro-panel {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 36px;
  padding: 26px;
}
.eyebrow, .label {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1 {
  margin: 12px 0 18px;
  font-size: clamp(4.2rem, 8vw, 7.7rem);
  line-height: 0.78;
  letter-spacing: -0.075em;
  font-weight: 900;
}
.lede { max-width: 38rem; margin: 0; color: var(--muted); font-size: 1rem; }
.issue-stamp {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.issue-stamp div { min-width: 0; background: var(--black); padding: 11px; }
.issue-stamp dt { color: var(--dim); font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; }
.issue-stamp dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; }

.verdict-panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
}
.verdict-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -80px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(76, 155, 255, 0.23);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(76, 155, 255, 0.03), 0 0 0 66px rgba(76, 155, 255, 0.02);
  pointer-events: none;
}
.verdict-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.confidence-chip, .evidence-tag, .chain-status {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(76, 155, 255, 0.35);
  border-radius: 999px;
  color: var(--ice);
  padding: 5px 9px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}
.verdict-panel h2 {
  position: relative;
  z-index: 1;
  max-width: 10ch;
  margin: auto 0 12px;
  color: var(--ice);
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}
.verdict-panel > p { position: relative; z-index: 1; max-width: 42rem; margin: 0; color: var(--muted); }
.verdict-proof {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  font-family: var(--mono);
  color: var(--dim);
  font-size: 0.72rem;
}
.verdict-proof span { border-top: 1px solid var(--rule); padding: 9px 12px 0 0; }
.verdict-proof b { color: var(--text); font-size: 1rem; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.metric-card { min-width: 0; padding: 16px; box-shadow: none; }
.metric-card span, .metric-card small { display: block; color: var(--dim); font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; }
.metric-card strong { display: block; margin: 6px 0 3px; font-family: var(--mono); font-size: 2rem; line-height: 1; font-variant-numeric: tabular-nums; }
.metric-card small { overflow-wrap: anywhere; text-transform: none; }

.panel { margin-top: 20px; padding: 23px; }
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 20px;
}
.section-heading.compact { margin-bottom: 15px; }
h2 { margin: 5px 0 0; font-size: clamp(1.45rem, 3vw, 2.25rem); line-height: 1.05; letter-spacing: -0.035em; }
.section-heading > p { max-width: 38rem; margin: 0; color: var(--dim); font-size: 0.84rem; }

.takeaway-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.takeaway-card {
  position: relative;
  min-height: 255px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--rule);
  border-top-color: var(--blue);
  background: rgba(2, 3, 4, 0.38);
}
.takeaway-card .number { color: var(--blue); font-family: var(--mono); font-size: 0.7rem; font-weight: 900; }
.takeaway-card h3 { margin: 0; font-size: 1.25rem; line-height: 1.15; }
.takeaway-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.takeaway-card .counterpoint { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--rule); color: var(--dim); font-size: 0.78rem; }

.signal-tape {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  min-height: 172px;
  border: 1px solid var(--rule);
  background: var(--rule);
}
.signal-tape::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 6%;
  right: 6%;
  top: 50%;
  height: 1px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(76, 155, 255, 0.4);
  pointer-events: none;
}
.tape-day {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 13px;
  background: linear-gradient(180deg, var(--surface-soft), var(--black));
}
.tape-day .day { color: var(--dim); font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; }
.tape-day .count { position: relative; z-index: 3; align-self: center; display: grid; place-items: center; min-width: 48px; height: 48px; border: 1px solid var(--rule-strong); background: var(--black); color: var(--dim); font-family: var(--mono); font-size: 1.1rem; font-weight: 900; }
.tape-day.has-data .count { border-color: var(--blue); color: var(--text); box-shadow: 0 0 0 5px var(--black), 0 0 20px rgba(76, 155, 255, 0.22); }
.tape-day .meta { color: var(--dim); font-family: var(--mono); font-size: 0.62rem; }
.tape-legend { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 11px; color: var(--dim); font-family: var(--mono); font-size: 0.66rem; }
.tape-legend span { display: inline-flex; align-items: center; gap: 6px; }
.mark { display: inline-block; width: 8px; height: 8px; background: var(--blue); }
.mark.matured { background: var(--green); }

.split-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; }
.funnel-list { display: grid; gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--rule); border: 1px solid var(--rule); }
.funnel-row { display: grid; grid-template-columns: 44px minmax(105px, 0.65fr) 1.35fr; gap: 13px; align-items: center; background: var(--black); padding: 12px; }
.funnel-row .count { color: var(--ice); font-family: var(--mono); font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.funnel-row strong { font-size: 0.9rem; }
.funnel-row p { margin: 0; color: var(--dim); font-size: 0.74rem; }
.outcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; border: 1px solid var(--rule); background: var(--rule); }
.outcome-grid div { min-height: 106px; display: flex; flex-direction: column; justify-content: space-between; background: var(--black); padding: 13px; }
.outcome-grid span { color: var(--dim); font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; }
.outcome-grid strong { font-family: var(--mono); font-size: 1.9rem; font-variant-numeric: tabular-nums; }
.callout { margin: 14px 0 0; border-left: 2px solid var(--amber); background: rgba(240, 184, 102, 0.07); color: var(--muted); padding: 11px 13px; font-size: 0.8rem; }

.wallet-list { display: grid; gap: 1px; border: 1px solid var(--rule); background: var(--rule); }
.wallet-row {
  display: grid;
  grid-template-columns: 42px minmax(170px, 0.9fr) minmax(150px, 1fr) repeat(3, minmax(78px, 0.45fr)) minmax(220px, 1.4fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
  background: var(--black);
  padding: 13px;
}
.wallet-row.header { background: var(--surface-soft); color: var(--dim); font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; }
.wallet-rank { color: var(--dim); font-family: var(--mono); }
.wallet-id { min-width: 0; }
.wallet-id a { display: block; overflow-wrap: anywhere; color: var(--ice); font-family: var(--mono); font-size: 0.79rem; font-weight: 800; }
.wallet-id span { display: block; margin-top: 3px; color: var(--dim); font-size: 0.7rem; }
.wallet-role { color: var(--muted); font-size: 0.78rem; }
.wallet-stat { font-family: var(--mono); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.wallet-evidence { color: var(--muted); font-size: 0.75rem; }
.wallet-evidence small { display: block; margin-top: 3px; color: var(--dim); }

.chain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.chain-card { min-height: 260px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--rule); background: var(--black); }
.chain-card h3 { margin: 15px 0 5px; font-size: 1.45rem; }
.chain-card .chain-numbers { display: flex; gap: 20px; margin: 12px 0; }
.chain-card .chain-numbers span { color: var(--dim); font-family: var(--mono); font-size: 0.66rem; text-transform: uppercase; }
.chain-card .chain-numbers strong { display: block; color: var(--text); font-size: 1.4rem; }
.chain-card p { margin: 0; color: var(--muted); font-size: 0.82rem; }
.chain-card .gap { margin-top: auto; padding-top: 13px; border-top: 1px solid var(--rule); color: var(--dim); font-size: 0.75rem; }
.chain-status[data-state="prospective_tracking"] { border-color: rgba(112, 214, 154, 0.4); color: #b9f0cb; }
.chain-status[data-state="discovery_only"] { border-color: rgba(240, 184, 102, 0.4); color: #f3d4a6; }
.chain-status[data-state="not_scored"] { border-color: var(--rule-strong); color: var(--dim); }

.signal-list { display: grid; gap: 10px; }
.empty-state { border: 1px dashed var(--rule-strong); background: var(--black); padding: 28px; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--text); font-size: 1.1rem; }
.empty-state p { max-width: 50rem; margin: 0; color: var(--muted); }
.signal-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 16px; border: 1px solid var(--rule); background: var(--black); }
.signal-card h3 { margin: 0 0 6px; font-family: var(--mono); font-size: 0.9rem; }
.signal-card p { margin: 0; color: var(--muted); font-size: 0.8rem; }
.signal-multiples { display: flex; gap: 12px; align-items: center; font-family: var(--mono); }
.signal-multiples span { color: var(--dim); font-size: 0.65rem; }
.signal-multiples b { display: block; color: var(--text); font-size: 1.2rem; }

.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.method-list { display: grid; gap: 0; margin: 18px 0 0; }
.method-list div { display: grid; grid-template-columns: minmax(105px, 0.33fr) 1fr; gap: 15px; padding: 13px 0; border-top: 1px solid var(--rule); }
.method-list dt { color: var(--dim); font-family: var(--mono); font-size: 0.68rem; font-weight: 800; text-transform: uppercase; }
.method-list dd { margin: 0; color: var(--muted); font-size: 0.8rem; }
.source-list { display: grid; gap: 8px; margin-top: 18px; }
.source-row { display: grid; grid-template-columns: auto 1fr; gap: 11px; padding: 11px; border: 1px solid var(--rule); background: var(--black); }
.source-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: var(--dim); }
.source-dot.fresh { background: var(--green); box-shadow: 0 0 9px rgba(112, 214, 154, 0.4); }
.source-dot.stale { background: var(--amber); }
.source-row strong { display: block; font-size: 0.8rem; }
.source-row span { display: block; margin-top: 2px; color: var(--dim); font-family: var(--mono); font-size: 0.65rem; }
.source-row p { margin: 4px 0 0; color: var(--muted); font-size: 0.73rem; }
.disclaimer-panel { border-color: rgba(240, 184, 102, 0.35); }
.disclaimer-panel p { max-width: 70rem; margin: 10px 0 0; color: var(--muted); }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 2px 0; color: var(--dim); font-family: var(--mono); font-size: 0.68rem; }
.footer a:hover { color: var(--text); }
.noscript { margin: 20px; border: 1px solid var(--amber); padding: 14px; }

@keyframes dashboard-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
  .topbar { grid-template-columns: 1fr auto; }
  .suite-switch { grid-column: 1 / -1; grid-row: 2; width: min(520px, 100%); justify-self: center; }
  .top-actions { justify-self: end; }
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .wallet-row { grid-template-columns: 38px minmax(160px, 0.8fr) minmax(150px, 1fr) repeat(3, minmax(70px, 0.4fr)); }
  .wallet-row > :last-child { grid-column: 2 / -1; }
  .wallet-row.header > :last-child { display: none; }
}

@media (max-width: 820px) {
  .topbar { position: static; grid-template-columns: 1fr; align-items: stretch; }
  .brand-lockup, .top-actions { justify-self: stretch; }
  .top-actions { justify-content: flex-start; flex-wrap: wrap; }
  .suite-switch { grid-column: 1; grid-row: auto; width: 100%; }
  .dashboard { width: min(100% - 28px, 1260px); padding-top: 20px; }
  .hero, .split-layout, .method-grid { grid-template-columns: 1fr; }
  .intro-panel, .verdict-panel { min-height: 380px; }
  .takeaway-grid, .chain-grid { grid-template-columns: 1fr; }
  .takeaway-card, .chain-card { min-height: 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .wallet-row, .wallet-row.header { grid-template-columns: 34px minmax(0, 1fr) repeat(3, minmax(58px, 0.3fr)); }
  .wallet-row > :nth-child(3) { grid-column: 2 / -1; }
  .wallet-row > :last-child { grid-column: 2 / -1; }
  .wallet-row.header > :nth-child(3) { grid-column: auto; }
  .wallet-row.header > :nth-child(3), .wallet-row.header > :last-child { display: none; }
}

@media (max-width: 560px) {
  .suite-switch a { min-height: 44px; padding: 0 8px; font-size: 0.66rem; }
  .status-pill { width: 100%; justify-content: flex-start; }
  .dashboard { width: min(100% - 20px, 1260px); }
  .intro-panel, .verdict-panel, .panel { padding: 18px; }
  .intro-panel { min-height: 430px; }
  h1 { font-size: clamp(4rem, 21vw, 6rem); }
  .issue-stamp { grid-template-columns: 1fr; }
  .verdict-panel h2 { font-size: clamp(3.1rem, 17vw, 5rem); }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card strong { font-size: 1.7rem; }
  .signal-tape { min-height: 142px; }
  .tape-day { padding: 8px 4px; align-items: center; text-align: center; }
  .tape-day .count { min-width: 34px; width: 34px; height: 38px; }
  .tape-day .meta { font-size: 0.55rem; }
  .funnel-row { grid-template-columns: 38px 1fr; }
  .funnel-row p { grid-column: 2; }
  .wallet-list { border: 0; background: transparent; gap: 8px; }
  .wallet-row.header { display: none; }
  .wallet-row { grid-template-columns: 32px 1fr 1fr; border: 1px solid var(--rule); padding: 12px; }
  .wallet-row > :nth-child(3), .wallet-row > :last-child { grid-column: 2 / -1; }
  .wallet-stat { border-top: 1px solid var(--rule); padding-top: 8px; }
  .wallet-stat::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--dim);
    font-size: 0.52rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .signal-card { grid-template-columns: 1fr; }
  .method-list div { grid-template-columns: 1fr; gap: 5px; }
  .footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
