/* Daily Tape page — net issuer supply movement between DDD-owned snapshots.
   Built on the shared DDD token system (tokens.css). Self-contained so it does
   not couple to homepage-only styles. */

:root {
  /* Aliased onto the Stable Tape color system (css/tokens.css) — expanded/
     contracted reuse the same mint/coral pair as the rest of the site. */
  --tape-pos: var(--st-mint-strong);      /* expanded — was #53E7AC */
  --tape-pos-soft: var(--st-mint);        /* was #A7F3D0 */
  --tape-pos-dim: rgba(111, 227, 181, 0.12);
  --tape-neg: var(--st-red);              /* contracted — was #FC4C4B */
  --tape-neg-dim: rgba(229, 106, 89, 0.12);
  --tape-bg: var(--st-bg);
  --tape-bg-elev: var(--st-surface-1);
  --tape-line: var(--st-border);
  --tape-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* Movement visual section (tape-viz) */
.tape-viz {
  margin: 0.5rem 0 0.85rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: rgba(255,255,255,0.018);
}
.tape-viz-window {
  font-family: var(--tape-mono);
  font-size: 10px;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
  letter-spacing: 0.03em;
}
.tape-viz-detail-note {
  margin: 0.15rem 0 0.85rem;
  max-width: 60ch;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
}
/* subline replaces the old detail-note (brief, positive framing) */
.tape-viz-subline {
  margin: 0.1rem 0 0.6rem;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-faint);
}
/* footnote: same caveat as detail-note, but positioned after the evidence */
.tape-viz-footnote {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  opacity: 0.75;
}
.tape-viz-net { margin-bottom: 1.1rem; }
.tape-viz-net-bar-wrap {
  display: flex;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  margin-bottom: 7px;
}
.tape-viz-net-bar-exp {
  background: linear-gradient(90deg, var(--st-mint-mid), var(--st-mint-strong));
  transition: width 700ms cubic-bezier(0.22,1,0.36,1);
}
.tape-viz-net-bar-con {
  background: linear-gradient(90deg, var(--st-red-soft), rgba(229, 106, 89, 0.6));
  transition: width 700ms cubic-bezier(0.22,1,0.36,1);
}
.tape-viz-equation {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-family: var(--tape-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.tape-viz-equation .is-pos { color: rgba(111, 227, 181,0.8); }
.tape-viz-equation .is-neg { color: rgba(229, 106, 89,0.8); }
.tape-viz-equation strong { font-weight: 600; color: var(--text); }
.tape-viz-equation strong.is-pos { color: var(--tape-pos); }
.tape-viz-equation strong.is-neg { color: var(--tape-neg); }
.tape-viz-net-side { white-space: nowrap; }
.tape-viz-net-side.is-pos strong { color: var(--tape-pos); font-weight: 500; }
.tape-viz-net-side.is-neg strong { color: var(--tape-neg); font-weight: 500; }
.tape-viz-net-center { font-size: 13px; font-weight: 500; color: var(--text); }
.tape-viz-net-center.is-pos { color: var(--tape-pos); }
.tape-viz-net-center.is-neg { color: var(--tape-neg); }
.tape-viz-movers-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.tape-viz-movers-col-head {
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--text-faint);
}
.tape-viz-movers-col-head.is-pos { color: rgba(111, 227, 181,0.75); }
.tape-viz-movers-col-head.is-neg { color: rgba(229, 106, 89,0.75); }
.tape-viz-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(60px,0.8fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0.35rem 0;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.tape-viz-row-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tape-viz-row-token {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tape-viz-row-chain {
  font-family: var(--tape-mono);
  font-size: 10px;
  color: var(--text-faint);
}
.tape-viz-row-bar-wrap {
  background: rgba(255,255,255,0.05);
  border-radius: 999px;
  height: 4px;
  overflow: hidden;
}
.tape-viz-row-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 500ms cubic-bezier(0.22,1,0.36,1);
}
.tape-viz-row-bar--exp { background: rgba(168, 242, 210,0.65); }
.tape-viz-row-bar--con { background: rgba(243, 179, 173,0.65); }
.tape-viz-row-amount {
  font-family: var(--tape-mono);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  text-align: right;
}
.tape-viz-row.is-pos .tape-viz-row-amount { color: var(--tape-pos); }
.tape-viz-row.is-neg .tape-viz-row-amount { color: var(--tape-neg); }
.tape-viz-empty {
  font-family: var(--tape-mono);
  font-size: 11px;
  color: var(--text-faint);
  padding: 0.35rem 0;
}
@media (max-width: 620px) {
  .tape-viz-movers-cols { grid-template-columns: 1fr; }
  .tape-viz-row { grid-template-columns: minmax(0,1fr) auto; }
  .tape-viz-row-bar-wrap { display: none; }
  .tape-viz-equation { justify-content: flex-start; }
  .tape-viz-net-center { order: -1; font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .tape-viz-net-bar-exp,
  .tape-viz-net-bar-con,
  .tape-viz-row-bar { transition: none; }
}

body { background: var(--bg); color: var(--text); }

/* Active nav state for the Tape page (the overlay has no active convention). */
.nav-overlay-link[aria-current="page"] .nav-overlay-label { color: var(--accent); }

.tape-shell {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
  box-sizing: border-box;
}
/* tokens.css applies `section { padding: var(--gap) 0; }` site-wide (up to
   4rem top+bottom on desktop). These sections have no class-based padding
   of their own (unlike e.g. .tape-methodology-section, which already wins
   over that rule and is left untouched) and use margin for rhythm instead,
   so reset the inherited padding via ID to beat the plain element rule. */
#tapeArchive,
#tapeOk,
#tapeRead,
#tapeDistribution {
  padding: 0;
}

/* ── Hero ───────────────────────────────────── */
.tape-hero {
  border-bottom: 1px solid var(--border-hairline);
  padding: 5.5rem 0 1.6rem;
}
.tape-hero-inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.tape-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  background: var(--accent-glow);
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.tape-eyebrow::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(111, 227, 181, 0.6);
}
.tape-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
  color: var(--st-text);
}
.tape-methodology {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 72ch;
  margin: 0;
}
.tape-hero-usp {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-secondary);
}
.tape-hero-usp-note {
  margin: 0 0 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text-faint);
}
.tape-hero-ddd {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 2px;
  padding: 0.32rem 0.62rem;
  border: 1px solid rgba(168, 242, 210, 0.22);
  border-radius: 999px;
  background: rgba(168, 242, 210, 0.07);
  color: rgba(191, 247, 234, 0.9);
  font-family: var(--tape-mono);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tape-hero-meta {
  margin: 14px 0 0;
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tape-hero-meta + .tape-hero-meta {
  margin-top: 6px;
}
/* The net/expanded/contracted line (#tapeHeroMovement) is populated
   server-side for crawlers, but the signal card immediately below restates
   the same figures far more legibly for real visitors — hiding it here is
   visual-only and leaves the underlying SSR content and its dated-record
   link untouched (the same link stays visible via the signal card's
   "Dated record" action). */
#tapeHeroMovement {
  display: none;
}

/* ── Status banner ──────────────────────────── */
.tape-statusbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 1.75rem 0 1.25rem;
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.tape-distribution {
  margin: 0 0 1.2rem;
}

.tape-seven-day-section {
  margin: 0 0 1.2rem;
  padding: 0;
}

.tape-seven-card {
  max-width: 880px;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(111, 227, 181, 0.045), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,0.024), rgba(8,10,15,0.24));
}

.tape-seven-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.95rem;
}

.tape-seven-copy {
  max-width: 64ch;
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.tape-seven-links {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.45rem 0.75rem;
}

.tape-seven-links a {
  font-family: var(--tape-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}

.tape-seven-links a:hover {
  text-decoration: underline;
}

.tape-seven-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.tape-seven-stat {
  min-width: 0;
  padding: 0.72rem 0.78rem;
  border: 1px solid rgba(255,255,255,0.055);
  border-radius: 12px;
  background: rgba(255,255,255,0.022);
}

.tape-seven-stat-label,
.tape-seven-stat-sub {
  display: block;
  font-family: var(--tape-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.tape-seven-stat strong {
  display: block;
  margin-top: 0.22rem;
  color: var(--text);
  font-family: var(--tape-mono);
  font-size: clamp(0.88rem, 1.6vw, 1.02rem);
  font-weight: 650;
  line-height: 1.25;
}

.tape-seven-stat-sub {
  margin-top: 0.26rem;
  line-height: 1.35;
  text-transform: none;
  letter-spacing: 0.03em;
}

.tape-seven-stat.is-pos strong {
  color: var(--tape-pos);
}

.tape-seven-stat.is-neg strong {
  color: var(--tape-neg);
}

.tape-seven-note {
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.055);
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .tape-seven-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tape-seven-grid {
    grid-template-columns: 1fr;
  }
}

.tape-distribution-grid {
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.tape-distribution-grid--actions-only {
  grid-template-columns: minmax(0, 1fr);
}
.tape-distribution-grid--actions-only .tape-distribution-panel {
  max-width: 760px;
}
.tape-card-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 720px);
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 0.9rem;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 14px 34px rgba(0,0,0,0.24);
}
.tape-card-preview img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--st-bg);
}
.tape-card-preview-fallback {
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tape-card-preview-fallback[hidden] {
  display: none;
}
.tape-distribution-panel {
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  background: var(--bg-card);
}
/* Flat, deliberate placeholder for the share-card image (still being
   designed) — a slim labelled strip rather than a blank shadowed image
   box, so it reads as intentional rather than broken. */
.tape-card-preview-note {
  margin: 0 0 0.85rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-card);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-faint);
}
.tape-distribution-kicker {
  margin: 0 0 8px;
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tape-distribution-panel h3 {
  margin: 0 0 10px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--st-text);
}
.tape-distribution-copy {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 60ch;
}
.tape-distribution-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border-hairline);
}
.tape-distribution-meta div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.8rem 0.9rem;
  background: var(--st-bg);
}
.tape-distribution-meta div[hidden] { display: none; }
.tape-distribution-meta span,
.tape-distribution-note {
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.tape-distribution-meta strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}
.tape-distribution-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
}
/* Primary and ghost distribution buttons span full width */
.tape-distribution-actions > .tape-distribution-btn {
  width: 100%;
}
.tape-distribution-action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tape-distribution-action-group[hidden] { display: none; }
.tape-distribution-action-group--primary {
  gap: 12px;
}
.tape-distribution-action-group--utility {
  gap: 8px;
}
.tape-distribution-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: rgba(255,255,255,0.025);
  color: var(--text-secondary);
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.tape-distribution-btn--primary {
  min-height: 44px;
  padding: 0 18px;
  border-color: rgba(111, 227, 181, 0.72);
  background: linear-gradient(135deg, rgba(111, 227, 181,0.92), rgba(20,184,166,0.76));
  color: var(--st-bg);
  box-shadow: 0 10px 24px rgba(20,184,166,0.14);
}
.tape-distribution-btn--secondary {
  color: var(--text);
}
.tape-distribution-btn--utility {
  min-height: 34px;
  padding: 0 11px;
  font-size: 10px;
  color: var(--text-muted);
}
.tape-distribution-btn:hover:not([disabled]) {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}
.tape-distribution-btn[disabled],
.tape-distribution-btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.tape-distribution-export {
  width: 100%;
  margin-top: 2px;
}
.tape-distribution-export > summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  cursor: pointer;
  list-style: none;
}
.tape-distribution-export > summary::-webkit-details-marker { display: none; }
.tape-distribution-export > summary::before {
  content: '▸';
  color: var(--text-faint);
}
.tape-distribution-export[open] > summary::before { content: '▾'; }
.tape-distribution-export .tape-distribution-action-group {
  margin-top: 10px;
}
.tape-distribution-note {
  margin: 14px 0 0;
  line-height: 1.5;
}
.tape-distribution-rec-line {
  font-family: var(--tape-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin: 0 0 14px;
}
.tape-distribution-rec-line strong {
  color: var(--text-muted);
  font-weight: 400;
}
.tape-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px;
}
.tape-badge--live { color: var(--accent); border-color: var(--accent-dim); background: var(--accent-glow); }
.tape-badge--collecting { color: var(--st-amber); border-color: rgba(255, 200, 105,0.25); background: rgba(255, 200, 105,0.07); }
.tape-badge--delayed { color: var(--st-amber); border-color: rgba(255, 200, 105,0.3); background: rgba(255, 200, 105,0.08); }
.tape-badge--stale { color: var(--st-red-soft); border-color: rgba(243, 179, 173,0.28); background: rgba(243, 179, 173,0.08); }
.tape-badge--error { color: var(--st-red-strong); border-color: rgba(240, 123, 105,0.3); background: rgba(240, 123, 105,0.08); }
.tape-badge--provider { color: var(--text-secondary); }
.tape-badge--delta { color: var(--accent); border-color: var(--accent-dim); }

/* ── Summary cards (ok state) ───────────────── */
.tape-snapshot-timer {
  flex: 1 1 320px;
  max-width: 440px;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.014);
}
.tape-snapshot-timer-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.tape-snapshot-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(111, 227, 181, 0.72);
  animation: tape-snapshot-pulse 2.8s ease-in-out infinite;
}
.tape-snapshot-timer-main {
  font-size: 13px;
  color: var(--text);
  margin-bottom: 8px;
}
.tape-snapshot-timer-progress {
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  margin-bottom: 8px;
}
.tape-snapshot-timer-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: rgba(111, 227, 181, 0.58);
  transition: width 800ms ease;
}
.tape-snapshot-timer-meta,
.tape-snapshot-timer-note {
  font-size: 10px;
  line-height: 1.45;
  color: var(--text-faint);
}
.tape-snapshot-timer-note { margin-top: 4px; }
.tape-snapshot-timer-warning {
  font-size: 10px;
  line-height: 1.45;
  color: var(--st-amber);
  margin-top: 4px;
}

/* ── 4-field status grid ─────────────────────── */
.tape-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  overflow: hidden;
}
.tape-status-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 14px;
  background: var(--st-bg);
}
.tape-status-field:not(:last-child) {
  border-right: 1px solid rgba(255,255,255,0.06);
}
.tape-status-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint, #8b95a3);
  font-family: var(--mono, monospace);
}
.tape-status-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #e8eaed);
  line-height: 1.3;
}
.tape-status-sub {
  font-size: 10px;
  line-height: 1.4;
  color: var(--text-faint, #8b95a3);
}
.tape-status-warning {
  font-size: 10px;
  line-height: 1.4;
  color: var(--st-amber);
  margin-top: 2px;
}
@media (max-width: 860px) {
  .tape-status-grid { grid-template-columns: repeat(2, 1fr); }
  .tape-status-field:nth-child(2) { border-right: none; }
  .tape-status-field:nth-child(odd):not(:nth-last-child(-n+2)) { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tape-status-field:nth-child(even):not(:last-child) { border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tape-status-field { border-right: none !important; }
  .tape-status-field:nth-child(odd) { border-right: 1px solid rgba(255,255,255,0.06) !important; }
}
@media (max-width: 480px) {
  .tape-status-grid { grid-template-columns: 1fr; }
  .tape-status-field { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .tape-status-field:last-child { border-bottom: none; }
}

@keyframes tape-snapshot-pulse {
  0%, 100% { opacity: 0.48; transform: scale(0.92); }
  50% { opacity: 0.9; transform: scale(1); }
}

.tape-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--border-hairline);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  overflow: hidden;
}
.tape-stat {
  background: var(--bg);
  padding: 0.7rem 0.85rem;
}
.tape-stat-label {
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 5px;
}
.tape-stat-value {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tape-stat-value small { font-size: 12px; color: var(--text-muted); font-weight: 400; }
.tape-stat--net .tape-stat-value { font-size: 26px; }
.tape-stat.is-pos .tape-stat-value { color: var(--tape-pos); }
.tape-stat.is-neg .tape-stat-value { color: var(--tape-neg); }
.tape-summary--headline {
  margin-bottom: 1rem;
  border-color: rgba(111, 227, 181, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
}
.tape-summary--headline .tape-stat {
  padding: 0.9rem 1rem;
  background:
    radial-gradient(120% 100% at 85% 0%, rgba(111, 227, 181, 0.055), transparent 48%),
    var(--st-bg);
}
.tape-summary--headline .tape-stat--net .tape-stat-value {
  font-size: clamp(30px, 4vw, 44px);
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
}
.tape-day-signal,
.tape-day-detail,
.tape-methodology-panel,
.tape-drilldown {
  border: 1px solid var(--border-card);
  border-radius: 14px;
  background:
    radial-gradient(110% 90% at 86% 0%, rgba(111, 227, 181, 0.055), transparent 50%),
    rgba(255, 255, 255, 0.018);
}
.tape-day-signal {
  margin: 0 0 0.9rem;
  padding: clamp(1.15rem, 2.6vw, 1.85rem);
  background:
    radial-gradient(105% 85% at 82% 0%, rgba(111, 227, 181, 0.08), transparent 52%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.026), rgba(255, 255, 255, 0.012));
}
.tape-day-signal-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.65rem;
  font-family: var(--tape-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.tape-day-signal-badge {
  display: inline-block;
  margin-left: 0;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(111, 227, 181, 0.45);
  background: rgba(111, 227, 181, 0.14);
  color: var(--accent);
  font-family: var(--tape-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  vertical-align: 0.1em;
}
.tape-day-signal-headline {
  margin: 0.1rem 0 0.55rem;
  max-width: 980px;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(34px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--text);
}
.tape-day-signal-net {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.25rem 0.85rem;
  margin: 0 0 0.85rem;
  padding: 0.68rem 0.78rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}
.tape-day-signal-net-label {
  grid-column: 1 / -1;
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tape-day-signal-net strong {
  min-width: 0;
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(24px, 3.2vw, 36px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tape-day-signal-net strong.is-pos { color: var(--tape-pos); }
.tape-day-signal-net strong.is-neg { color: var(--tape-neg); }
.tape-day-signal-net-sub {
  min-width: 0;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.35;
}
.tape-day-signal-rules-note {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--tape-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  opacity: 0.7;
}
.tape-day-signal-takeaway {
  margin: 0 0 0.7rem;
  max-width: 68ch;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.tape-day-signal-version {
  margin: 0.4rem 0 0;
  font-family: var(--tape-mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  opacity: 0.7;
}
.tape-signal-rules {
  margin: 0 0 1rem;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.018);
}
.tape-signal-rules-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  gap: 1rem;
  align-items: start;
}
.tape-signal-rules-head p,
.tape-signal-rules-foot {
  margin: 0.45rem 0 0;
  max-width: 68ch;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.55;
}
.tape-signal-rules-result {
  display: grid;
  gap: 0.25rem;
  justify-items: end;
  text-align: right;
}
.tape-signal-rules-result span {
  color: var(--text-faint);
  font-family: var(--tape-mono);
  font-size: 9.5px;
}
.tape-signal-rules-result strong {
  color: var(--accent-soft);
  font-size: 13px;
}
.tape-signal-process {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.tape-signal-process li {
  min-width: 0;
  padding: 0.65rem;
  border-top: 2px solid rgba(90, 150, 255, 0.42);
  background: rgba(90, 150, 255, 0.04);
}
.tape-signal-process strong,
.tape-signal-process span {
  display: block;
}
.tape-signal-process strong {
  color: var(--text);
  font-size: 12px;
}
.tape-signal-process span {
  margin-top: 0.2rem;
  color: var(--text-muted);
  font-size: 10.5px;
  line-height: 1.4;
}
.tape-signal-rule-ladder {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tape-signal-rule-ladder li {
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  min-width: 0;
  padding: 0.5rem 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.065);
  background: rgba(255, 255, 255, 0.018);
}
.tape-signal-rule-ladder li.is-selected {
  grid-template-columns: 1.6rem minmax(0, 1fr) auto;
  border-color: rgba(90, 150, 255, 0.55);
  background: rgba(90, 150, 255, 0.12);
}
.tape-signal-rule-ladder li > span:first-child {
  color: var(--text-faint);
  font-family: var(--tape-mono);
  font-size: 9px;
}
.tape-signal-rule-ladder strong,
.tape-signal-rule-ladder small {
  grid-column: 2;
  display: block;
}
.tape-signal-rule-ladder strong {
  color: var(--text);
  font-size: 11.5px;
}
.tape-signal-rule-ladder small {
  margin-top: 0.12rem;
  color: var(--text-faint);
  font-size: 9.5px;
  line-height: 1.35;
}
.tape-signal-rule-ladder .tape-signal-rule-selected {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--accent-soft);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
}
.tape-signal-rules-foot a { color: var(--accent-soft); }
.tape-day-signal-notice {
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.7rem;
  border-left: 3px solid var(--st-amber);
  background: rgba(255, 200, 105, 0.08);
  color: var(--text-secondary);
  font-size: 12.5px;
  line-height: 1.5;
  max-width: 68ch;
}
.tape-day-signal p,
.tape-methodology-panel p,
.tape-drilldown-copy {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}
.tape-day-signal-evidence {
  max-width: 980px;
  margin-top: 0.7rem !important;
  font-size: clamp(17px, 2vw, 22px) !important;
  line-height: 1.45 !important;
  color: var(--text-secondary) !important;
}
.tape-day-signal-why {
  margin-top: 0.65rem !important;
  max-width: 860px;
  color: var(--text-muted) !important;
}
.tape-day-signal-why strong {
  color: var(--text);
  font-weight: 600;
}
.tape-day-signal-benchmark {
  margin: 1rem 0 1.05rem;
  padding: 0.68rem 0.85rem;
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.42rem 0.72rem;
  max-width: 100%;
  border: 1px solid rgba(243, 245, 247, 0.08);
  border-radius: 999px;
  background: rgba(243, 245, 247, 0.026);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}
.tape-day-signal-benchmark-label {
  font-family: var(--tape-mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.tape-day-signal-benchmark strong {
  font-size: clamp(15.5px, 1.55vw, 19px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--text);
}
.tape-day-signal-benchmark-sub {
  font-family: var(--tape-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tape-day-signal-subsignals {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid var(--border-hairline);
  display: grid;
  gap: 0.4rem;
  max-width: 68ch;
}
.tape-day-signal-subsignals li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}
.tape-day-signal-subsignal-label {
  font-family: var(--tape-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-right: 0.45rem;
}
.tape-day-signal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}
.tape-day-signal-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.58rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tape-day-signal-expcon {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.7rem;
  font-family: var(--tape-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
}
.tape-day-signal-expcon strong { font-weight: 500; }
/* When expCon is nested inside .tape-day-signal-net it spans the full grid
   and gets a top border instead of standing alone below the box. */
.tape-day-signal-net .tape-day-signal-expcon {
  grid-column: 1 / -1;
  margin: 0;
  margin-bottom: 0;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
/* Un-inherit the large Fraunces size that .tape-day-signal-net strong applies
   globally — expCon strongs should stay at their own mono/12px size. */
.tape-day-signal-net .tape-day-signal-expcon strong {
  font-family: var(--tape-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: inherit;
  letter-spacing: 0.02em;
  color: inherit;
}
/* Evidence rows (subSignals as labeled key-value rows) */
.tape-day-signal-rows {
  margin: 0.65rem 0 0;
  border-top: 1px solid var(--border-hairline);
  padding-top: 0.85rem;
}
.tape-day-signal-row {
  display: flex;
  gap: 0.85rem;
  padding: 0.5rem 0;
  align-items: baseline;
}
.tape-day-signal-row + .tape-day-signal-row {
  border-top: 1px solid rgba(255,255,255,0.04);
}
.tape-day-signal-row-key {
  flex: 0 0 58px;
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 2px;
}
.tape-day-signal-row-val {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--text);
}
.tape-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.tape-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border-card);
  background: rgba(255,255,255,0.025);
  color: var(--text-secondary);
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.tape-primary-action--main {
  min-width: 150px;
  min-height: 42px;
  padding: 0 17px;
  border-color: rgba(111, 227, 181, 0.72);
  background: linear-gradient(135deg, rgba(111, 227, 181,0.92), rgba(20,184,166,0.76));
  color: var(--st-bg);
}
.tape-primary-action--ghost {
  min-width: 138px;
  border-color: rgba(255,255,255,0.12);
  background: transparent;
  color: var(--text);
}
.tape-primary-action--ghost:hover:not([disabled]) {
  border-color: var(--accent-dim);
  color: var(--accent);
  background: var(--accent-glow);
}
.tape-primary-action--more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-width: 118px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  text-decoration: none;
  padding: 0 14px;
  cursor: pointer;
  min-height: 38px;
}
.tape-primary-action--more:hover {
  color: var(--text-muted);
}
.tape-primary-action:hover:not([disabled]) {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}
.tape-primary-action--main:hover:not([disabled]) {
  color: var(--st-bg);
}
.tape-primary-action[disabled],
.tape-primary-action[aria-disabled="true"] {
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
}
.tape-primary-action-note {
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.tape-day-detail {
  margin-top: 1.2rem;
  padding: 0.95rem 1rem 1rem;
}
.tape-day-detail summary,
.tape-drilldown summary {
  cursor: pointer;
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.tape-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0.9rem 0 1rem;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border-hairline);
}
.tape-detail-meta .tape-mini-stat { background: var(--st-bg); }
.tape-methodology-panel {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
}
.tape-methodology-panel p + p { margin-top: 0.55rem; }

/* ── Filters ────────────────────────────────── */
.tape-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 1.5rem 0 1rem;
}
.tape-filters[hidden] { display: none; }
.tape-seg {
  display: inline-flex;
  border: 1px solid var(--border-card);
  border-radius: 8px;
  overflow: hidden;
}
.tape-seg button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 7px 12px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tape-seg button + button { border-left: 1px solid var(--border-card); }
.tape-seg button.is-active { background: var(--accent-dim); color: var(--accent); }
.tape-field {
  background: var(--bg-ui);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--tape-mono);
  font-size: 12px;
  padding: 7px 10px;
  min-width: 130px;
}
.tape-field:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tape-filter-meta {
  margin-left: auto;
  font-family: var(--tape-mono);
  font-size: 11px;
  color: var(--text-faint);
}

/* ── Rows ───────────────────────────────────── */
.tape-rows { display: flex; flex-direction: column; gap: 1px; }
.tape-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  background: var(--bg-card);
}
.tape-row.is-hidden { display: none; }
.tape-row-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tape-row-token-main {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}
.tape-row-issuer { font-weight: 400; color: var(--text-muted); }
.tape-row-chain {
  font-family: var(--tape-mono);
  font-size: 12px;
  color: var(--text-secondary);
}
.tape-row-flow {
  font-family: var(--tape-mono);
  font-size: 13px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.tape-row-right {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  text-align: right;
  flex-shrink: 0;
}
.tape-delta {
  font-family: var(--tape-mono);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  display: flex; align-items: center; gap: 8px;
}
.tape-delta.is-pos { color: var(--tape-pos); }
.tape-delta.is-neg { color: var(--tape-neg); }
.tape-chip {
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 5px;
}
.tape-chip--expanded { color: var(--tape-pos); background: var(--tape-pos-dim); }
.tape-chip--contracted { color: var(--tape-neg); background: var(--tape-neg-dim); }
.tape-row-impact {
  font-family: var(--tape-mono);
  font-size: 11px;
  color: var(--text-secondary);
}
.tape-row-meta-line {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
}
.tape-source-badge {
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent-dim);
  border-radius: 5px;
  padding: 2px 7px;
}
.tape-row-window { font-family: var(--tape-mono); font-size: 10px; color: var(--text-faint); }

/* ── Equation summary ───────────────────────── */
.tape-equation {
  margin: 1.25rem 0 0.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  background: var(--bg-card);
}
.tape-equation-formula {
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.tape-equation-values {
  font-family: var(--tape-mono);
  font-size: clamp(15px, 2.4vw, 19px);
  color: var(--text);
}
.tape-equation-values .is-pos { color: var(--tape-pos); }
.tape-equation-values .is-neg { color: var(--tape-neg); }

/* ── Daily archive ──────────────────────────── */
.tape-archive-section { margin: 0.35rem 0 0.4rem; }
.tape-archive-collecting {
  padding: 1.25rem;
  border: 1px dashed var(--border-card);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.tape-archive-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
}
.tape-archive-head p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.55;
}
.tape-date-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--border-card);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--tape-mono);
  font-size: 10px;
  color: var(--text-muted);
  white-space: nowrap;
}
.tape-date-nav button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: inherit;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
}
.tape-date-nav button:disabled { opacity: 0.38; cursor: default; }
.tape-archive-table-head,
.tape-archive-row {
  display: grid;
  grid-template-columns: 70px 110px minmax(150px, 1.1fr) minmax(130px, 1fr) minmax(130px, 1fr) 80px;
  gap: 14px;
  align-items: center;
}
.tape-archive-table-head--flow,
.tape-archive-row--flow {
  grid-template-columns: 70px 110px minmax(160px, 1.1fr) minmax(140px, 1fr) minmax(140px, 1fr);
}
.tape-archive-table-head {
  margin-bottom: 0.4rem;
  padding: 0 0.9rem;
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tape-archive { display: flex; flex-direction: column; gap: 1px; }
/* Compact, muted gap acknowledgment — a missing day is never a full row/bar
   here; deliberately understated (no warning color/border), matching the
   other secondary trust/meta lines (.tape-mintburn-note etc). */
.tape-gap-note {
  margin: 0.55rem 0 0;
  font-family: var(--tape-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
}
.tape-archive-row {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: var(--bg-card);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.tape-archive-row.is-selected {
  border-color: rgba(111, 227, 181, 0.3);
  background:
    radial-gradient(120% 100% at 90% 0%, rgba(111, 227, 181, 0.07), transparent 50%),
    var(--st-bg);
}
.tape-archive-row.tape-archive-row--gap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  border-style: dashed;
  background: transparent;
  opacity: 0.65;
  color: inherit;
  text-decoration: none;
}
.tape-archive-row.tape-archive-row--gap:hover {
  opacity: 0.85;
}
.tape-archive-gap-note {
  font-family: var(--tape-mono);
  font-size: 11px;
  font-style: italic;
  color: var(--text-faint);
}
.tape-archive-date { font-family: var(--tape-mono); font-size: 12px; color: var(--text-secondary); }
.tape-archive-flag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 200, 105, 0.3);
  background: rgba(255, 200, 105, 0.08);
  color: var(--st-amber);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 0.05em;
}
.tape-archive-net { font-family: var(--tape-mono); font-size: 15px; font-weight: 500; }
.tape-archive-net.is-pos { color: var(--tape-pos); }
.tape-archive-net.is-neg { color: var(--tape-neg); }
.tape-archive-split { font-family: var(--tape-mono); font-size: 11px; color: var(--text-muted); }
.tape-archive-split .is-pos { color: var(--tape-pos); }
.tape-archive-split .is-neg { color: var(--tape-neg); }
.tape-archive-largest { font-family: var(--tape-mono); font-size: 12px; color: var(--text-secondary); }
.tape-archive-largest .is-pos { color: var(--tape-pos); }
.tape-archive-largest .is-neg { color: var(--tape-neg); }

.tape-recent-copy {
  margin: -0.1rem 0 0.7rem;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.55;
}

.tape-recent-list {
  display: grid;
  gap: 0.55rem;
}

.tape-recent-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.55rem;
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  background: var(--bg-card);
  overflow: hidden;
}

.tape-recent-card.is-selected {
  border-color: rgba(111, 227, 181, 0.3);
  background:
    radial-gradient(120% 100% at 90% 0%, rgba(111, 227, 181, 0.06), transparent 50%),
    var(--st-bg);
}

.tape-recent-card-main {
  appearance: none;
  display: grid;
  grid-template-columns: 78px 120px minmax(170px, 1fr) minmax(150px, 1fr) minmax(150px, 1fr);
  gap: 0.75rem;
  align-items: center;
  min-width: 0;
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.tape-recent-date,
.tape-recent-net,
.tape-recent-direction,
.tape-recent-split,
.tape-recent-top,
.tape-recent-link {
  font-family: var(--tape-mono);
}

.tape-recent-date {
  color: var(--text-secondary);
  font-size: 0.74rem;
}

.tape-recent-net {
  font-size: 0.92rem;
  font-weight: 650;
}

.tape-recent-net.is-pos { color: var(--tape-pos); }
.tape-recent-net.is-neg { color: var(--tape-neg); }

.tape-recent-direction {
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tape-recent-split,
.tape-recent-top {
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1.4;
}

.tape-recent-split .is-pos,
.tape-recent-top .is-pos { color: var(--tape-pos); }
.tape-recent-split .is-neg,
.tape-recent-top .is-neg { color: var(--tape-neg); }

.tape-recent-dot {
  color: var(--text-faint);
}

.tape-recent-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  border-left: 1px solid var(--border-hairline);
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}

.tape-recent-link:hover {
  background: var(--accent-glow);
}

.tape-timeline-section { margin-top: 2.5rem; }
.tape-drilldown {
  padding: 0.95rem 1rem 1rem;
}
.tape-drilldown-copy {
  margin: 0.75rem 0 1rem;
}
.tape-timeline { display: flex; flex-direction: column; gap: 1px; }
.tape-timeline-row {
  display: grid;
  grid-template-columns: 160px 170px minmax(0, 1fr) minmax(0, 1fr) 155px;
  gap: 14px;
  align-items: center;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  background: var(--bg-card);
}
.tape-timeline-row.is-off-schedule { opacity: 0.65; }
.tape-timeline-window,
.tape-timeline-net,
.tape-timeline-split,
.tape-timeline-largest,
.tape-timeline-label {
  font-family: var(--tape-mono);
}
.tape-timeline-window { font-size: 12px; color: var(--text-secondary); }
.tape-timeline-window-label { display: block; }
.tape-timeline-captures {
  display: block;
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 2px;
}
.tape-timeline-badge {
  display: inline-block;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-card);
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 2px;
}
.tape-timeline-net { font-size: 15px; font-weight: 500; }
.tape-timeline-net small { font-size: 10px; color: var(--text-faint); font-weight: 400; }
.tape-timeline-net.is-pos { color: var(--tape-pos); }
.tape-timeline-net.is-neg { color: var(--tape-neg); }
.tape-timeline-split { font-size: 11px; color: var(--text-muted); }
.tape-timeline-split .is-pos { color: var(--tape-pos); }
.tape-timeline-split .is-neg { color: var(--tape-neg); }
.tape-timeline-largest { font-size: 12px; color: var(--text-secondary); }
.tape-timeline-label {
  justify-self: end;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  border: 1px solid var(--border-card);
  border-radius: 5px;
  padding: 2px 7px;
  white-space: nowrap;
}
.tape-timeline-label small {
  display: block;
  max-width: 150px;
  margin-top: 2px;
  white-space: normal;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-transform: none;
}
.tape-empty {
  padding: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--tape-mono);
  font-size: 12px;
  border: 1px dashed var(--border-card);
  border-radius: 10px;
}
.tape-empty--window {
  padding: 2.25rem 2rem;
  text-align: left;
  border-left: 2px solid var(--border-card);
  border-radius: 10px;
  border-style: solid;
}
.tape-empty--window p {
  font-size: 13px;
  line-height: 1.6;
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
}
.tape-empty-title {
  font-family: var(--tape-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.tape-empty-note {
  font-size: 11px !important;
  color: var(--text-faint) !important;
}

/* ── Load more ──────────────────────────────── */
.tape-loadmore { display: flex; justify-content: center; margin-top: 1rem; }
.tape-loadmore:empty { margin-top: 0; }
.tape-loadmore-btn {
  background: var(--bg-ui);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 22px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.tape-loadmore-btn:hover { border-color: var(--accent-dim); color: var(--accent); }

/* ── Collecting state — compact DDD status banner (section A) ─ */
.tape-collecting {
  border: 1px solid var(--border-card);
  border-left: 2px solid var(--accent);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, var(--accent-glow), transparent);
  margin-bottom: 1.75rem;
}
.tape-collecting--compact {
  padding: 1.05rem 1.2rem 1.1rem;
  margin-bottom: 1.5rem;
}
.tape-collecting-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.tape-collecting-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(21px, 3.2vw, 28px);
  color: var(--st-text);
  margin: 0 0 8px;
}
.tape-collecting--compact .tape-collecting-title {
  font-size: clamp(17px, 2.3vw, 21px);
  margin: 0;
}
.tape-collecting-copy {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 64ch;
  margin: 0 0 16px;
  line-height: 1.6;
}
.tape-collecting--compact .tape-collecting-copy {
  font-size: 13.5px;
  margin: 0 0 14px;
}
/* Compact label/value pairs for the status banner */
.tape-collecting-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 26px;
}
.tape-mini-stat { display: flex; flex-direction: column; gap: 3px; }
.tape-mini-stat-label {
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tape-mini-stat-value {
  font-family: var(--tape-mono);
  font-size: 13px;
  color: var(--text-secondary);
}
.tape-partial-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 0.85rem;
  max-width: 72ch;
  line-height: 1.55;
}

/* ── Verified on-chain events (section C) ─────── */
.tape-events-section { margin-top: 2.5rem; }
.tape-events-note { font-size: 12.5px; color: var(--text-muted); margin: 0 0 0.85rem; max-width: 78ch; line-height: 1.55; }
.tape-events-more { margin-top: 0.85rem; }
.tape-events-more-summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding: 8px 13px;
  border: 1px solid var(--border-card);
  border-radius: 8px;
}
.tape-events-more-summary::-webkit-details-marker { display: none; }
.tape-events-more-summary::before { content: '▸'; color: var(--text-faint); }
.tape-events-more[open] .tape-events-more-summary::before { content: '▾'; }
.tape-events-more[open] .tape-events-more-summary { margin-bottom: 0.85rem; }
.tape-chip--event { color: #8fb8ff; background: rgba(143, 184, 255, 0.12); }
.tape-source-badge--event { color: #8fb8ff; border-color: rgba(143, 184, 255, 0.3); }
.tape-event-tx { font-family: var(--tape-mono); font-size: 12px; color: var(--accent); }
.tape-event-tx:hover { color: var(--text); }

/* ── Provider supply view (section B — visible by default) ──── */
.tape-provider {
  margin-top: 2.5rem;
}
.tape-provider-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0 0 1rem;
  max-width: 78ch;
  line-height: 1.55;
}

/* ── Section heads ──────────────────────────── */
.tape-section-head {
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 2rem 0 0.85rem;
}
/* Lead heads mark the three top-level data-type sections so they read as
   distinct: canonical DDD status, provider supply view, on-chain events. */
.tape-section-head--lead {
  font-size: 12.5px;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  margin: 0 0 0.9rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-hairline);
}

/* ── Signup module ──────────────────────────── */
.tape-signup {
  margin-top: 2.2rem;
  border: 1px solid var(--border-card);
  border-radius: 14px;
  padding: 1.75rem;
  background: var(--bg-card);
}
.tape-signup h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(20px, 3vw, 26px);
  color: var(--st-text);
  margin: 0 0 8px;
}
.tape-signup p { font-size: 14px; color: var(--text-secondary); margin: 0 0 16px; max-width: 56ch; }
.tape-signup-honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tape-signup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.tape-signup-label {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.tape-signup-input {
  background: var(--bg-ui);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  padding: 11px 12px;
  width: 100%;
  box-sizing: border-box;
}
.tape-signup-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.tape-signup-submit {
  font-family: var(--tape-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 11px 20px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.tape-signup-submit:hover { background: var(--accent-light); }
.tape-signup-submit:disabled { opacity: 0.6; cursor: default; }
.tape-signup-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.tape-signup-check input { margin-top: 2px; }
.tape-signup-privacy { font-size: 12px; color: var(--text-faint); margin: 0; }
.tape-signup-message { font-size: 13px; color: var(--accent); margin: 8px 0 0; min-height: 1em; }
.tape-signup-message.is-error { color: var(--tape-neg); }

/* ── Responsive ─────────────────────────────── */
@media (max-width: 720px) {
  .tape-hero { padding: 4.5rem 0 1.4rem; }
  .tape-signal-rules-head,
  .tape-signal-process,
  .tape-signal-rule-ladder {
    grid-template-columns: minmax(0, 1fr);
  }
  .tape-signal-rules-result {
    justify-items: start;
    text-align: left;
  }
  .tape-signal-rule-ladder li.is-selected {
    grid-template-columns: 1.6rem minmax(0, 1fr);
  }
  .tape-signal-rule-ladder .tape-signal-rule-selected {
    grid-column: 2;
    grid-row: auto;
  }
  .tape-distribution-grid,
  .tape-distribution-meta {
    grid-template-columns: minmax(0, 1fr);
  }
  .tape-distribution-actions,
  .tape-distribution-action-group,
  .tape-distribution-export,
  .tape-distribution-btn {
    width: 100%;
  }
  .tape-day-signal-net {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.25rem;
  }
  .tape-day-signal-net strong {
    font-size: clamp(26px, 10vw, 36px);
  }
  .tape-primary-actions,
  .tape-primary-action,
  .tape-primary-action--more {
    width: 100%;
  }
  .tape-primary-action,
  .tape-primary-action--more {
    min-height: 44px;
  }
  .tape-row { gap: 10px; }
  .tape-delta { font-size: 15px; }
  .tape-detail-meta { grid-template-columns: minmax(0, 1fr); }
  .tape-archive-head {
    align-items: stretch;
    flex-direction: column;
  }
  .tape-date-nav {
    justify-content: space-between;
    width: 100%;
  }
  .tape-date-nav button {
    min-height: 40px;
  }
  .tape-archive-table-head { display: none; }
  .tape-archive-row {
    grid-template-columns: 56px 1fr;
    grid-template-areas:
      "date net"
      "split split"
      "largest largest"
      "largest2 largest2"
      "ddd ddd";
    gap: 6px 12px;
  }
  .tape-archive-date { grid-area: date; }
  .tape-archive-net { grid-area: net; text-align: right; }
  .tape-archive-split { grid-area: split; }
  .tape-archive-largest { text-align: left; }
  .tape-archive-largest:nth-child(4) { grid-area: largest; }
  .tape-archive-largest:nth-child(5) { grid-area: largest2; }
  .tape-archive-largest:nth-child(6) { grid-area: ddd; }
  .tape-archive-row--flow {
    grid-template-areas:
      "date net"
      "split split"
      "largest largest"
      "largest2 largest2";
  }
  .tape-recent-card {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .tape-recent-card-main {
    grid-template-columns: 72px 1fr;
    grid-template-areas:
      "date net"
      "direction direction"
      "split split"
      "top top";
    gap: 0.35rem 0.75rem;
  }
  .tape-recent-date { grid-area: date; }
  .tape-recent-net { grid-area: net; text-align: right; }
  .tape-recent-direction { grid-area: direction; }
  .tape-recent-split { grid-area: split; }
  .tape-recent-top { grid-area: top; }
  .tape-recent-link {
    justify-content: flex-start;
    min-height: 44px;
    padding: 0 0.9rem 0.72rem;
    border-left: 0;
  }
  .tape-loadmore-btn {
    min-height: 44px;
  }
  .tape-timeline-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .tape-timeline-label { justify-self: start; }
  .tape-stat--net .tape-stat-value { font-size: 24px; }
  .tape-filter-meta { margin-left: 0; width: 100%; }
  .tape-signup-row { grid-template-columns: minmax(0, 1fr); }
  .tape-signup-submit { width: 100%; }
  .tape-shell { padding-bottom: 3rem; }
  .tape-archive-section { margin: 0.3rem 0 0.4rem; }
  .tape-archive-head {
    gap: 0.4rem;
  }
  .tape-archive-head .tape-section-head--lead {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-faint);
  }
  .tape-day-signal {
    margin-bottom: 0.6rem;
  }
  /* Demote the M2-date chip on mobile only — 1-in-N and stablecoin supply
     stay as the two chips competing for attention in the signal card; the
     M2 date is still readable in the evidence line above and reappears as a
     normal chip at desktop widths. */
  .tape-day-signal-chip--m2 {
    display: none;
  }
  .tape-card-preview-note {
    margin-bottom: 0.65rem;
  }
  .tape-viz {
    margin: 0.45rem 0 0.75rem;
  }
  .tape-distribution {
    margin-bottom: 1rem;
  }
  .tape-distribution-panel {
    padding: 0.95rem 1rem;
  }
  .tape-methodology-section {
    margin-top: 0.9rem;
  }
  .tape-audit {
    margin-top: 1.15rem;
  }
  .tape-signup {
    margin-top: 1.6rem;
  }
}
/* Canonical Tape movement breakdown */
.tape-window-controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  margin: 0 0 1rem;
  border: 1px solid var(--border-card);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
}
.tape-window-controls button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 7px 12px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}
.tape-window-controls button.is-active {
  color: var(--text);
  background: rgba(111, 227, 181, 0.12);
}
.tape-method-note {
  margin: 0 0 1rem;
  max-width: 780px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}
.tape-breakdown-market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-bottom: 1rem;
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  overflow: hidden;
  background: var(--border-hairline);
}
.tape-breakdown-market div {
  padding: 0.75rem 0.85rem;
  background: var(--bg);
}
.tape-breakdown-market span,
.tape-breakdown-card h4 {
  display: block;
  margin-bottom: 5px;
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tape-breakdown-market strong {
  font-size: 20px;
  font-weight: 500;
}
.tape-breakdown-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.tape-breakdown-card {
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.018);
}
.tape-breakdown-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.tape-breakdown-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
}
.tape-breakdown-card-head p {
  margin: 0;
  max-width: 560px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
}
.tape-breakdown-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.tape-breakdown-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(110px, 0.8fr) auto;
  gap: 0.65rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.tape-breakdown-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
.tape-breakdown-supply,
.tape-breakdown-meta,
.tape-breakdown-empty {
  color: var(--text-faint);
  font-size: 11px;
}
.tape-breakdown-meta {
  grid-column: 1 / -1;
  margin-top: -0.25rem;
}
.tape-breakdown-delta {
  font-family: var(--tape-mono);
  font-size: 12px;
  white-space: nowrap;
}
.is-pos { color: var(--tape-pos); }
.is-neg { color: var(--tape-neg); }
@media (max-width: 760px) {
  .tape-breakdown-market,
  .tape-breakdown-pair {
    grid-template-columns: 1fr;
  }
  .tape-breakdown-card-head {
    display: block;
  }
  .tape-breakdown-card-head p {
    margin-top: 0.45rem;
  }
  .tape-breakdown-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .tape-breakdown-supply {
    grid-column: 1 / -1;
  }
}

/* ── Audit disclosure (status/detail/snapshot machinery, collapsed) ── */
.tape-audit {
  margin-top: 1.15rem;
  border-top: 1px solid var(--border-card);
  padding-top: 0.9rem;
}
.tape-audit > summary {
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  user-select: none;
  padding: 0.2rem 0;
}
.tape-audit > summary::-webkit-details-marker { display: none; }
.tape-audit[open] > summary { margin-bottom: 0.45rem; }
.tape-audit .tape-section-head {
  margin: 1rem 0 0.55rem;
  font-size: 10px;
}
.tape-audit .tape-statusbar {
  margin: 0.45rem 0 0.75rem;
}
.tape-audit .tape-status-grid {
  margin-top: 0.45rem;
}
.tape-audit .tape-detail-section {
  margin-top: 0.85rem;
}
.tape-audit .tape-detail-meta {
  margin: 0.55rem 0 0.7rem;
}
.tape-audit .tape-filters {
  margin: 1rem 0 0.65rem;
  gap: 8px;
}
.tape-audit .tape-row {
  padding: 0.65rem 0.8rem;
}
.tape-audit .tape-loadmore {
  margin-top: 0.7rem;
}

/* ── Detail section (selected day breakdown below archive) ── */
.tape-detail-section {
  margin-top: 1.5rem;
}

/* ── Methodology section ── */
.tape-methodology-section {
  margin-top: 0.95rem;
  padding: 1.25rem 1.25rem 1.5rem;
  border: 1px solid var(--border-card);
  border-radius: 12px;
  background: rgba(255,255,255,0.015);
}
.tape-methodology-section p {
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ── 3h drilldown slot (inside detail panel) ── */
.tape-timeline-slot-wrap {
  margin-top: 0.95rem;
  border-top: 1px solid var(--border-card);
  padding-top: 0.75rem;
}
.tape-timeline-slot-wrap > summary {
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  user-select: none;
  list-style: none;
}
.tape-timeline-slot-wrap > summary::-webkit-details-marker { display: none; }
.tape-timeline-slot {
  margin-top: 0.55rem;
}

/* ── compact statusbar wrap ── */
.tape-statusbar-wrap { padding: 0.5rem 0 0; }
.tape-statusbar-summary { display: flex; align-items: center; gap: 0.5rem; padding-bottom: 0.35rem; flex-wrap: wrap; }
.tape-statusbar-sub { font-family: var(--mono); font-size: 0.75rem; color: var(--text-muted); }
.tape-statusbar-details { margin-top: 0.5rem; }
.tape-statusbar-details > summary {
  cursor: pointer; list-style: none; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
  user-select: none; padding: 0.2rem 0;
}
.tape-statusbar-details > summary::-webkit-details-marker { display: none; }
.tape-statusbar-details[open] > summary { margin-bottom: 0.5rem; }

/* ── breakdown see-more ── */
.tape-breakdown-more { margin-top: 0.25rem; }
.tape-breakdown-more > summary {
  cursor: pointer; list-style: none; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-muted);
  padding: 0.3rem 0; user-select: none;
}
.tape-breakdown-more > summary::-webkit-details-marker { display: none; }

/* ── Stable Tape: Mint-Burn Index (Phase 2 — read-only /tape module) ───── */
.tape-mintburn-section { margin-top: 0.2rem; }

/* Page-level kicker/title/subtitle sit above the card (not inside it), left-
   aligned consistent with the rest of /tape's section headers. */
.tape-mintburn-pageheader { margin: 0 0 1.1rem; }
.tape-mintburn-kicker {
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}
/* Same serif family as the Daily Tape Signal headline
   (.tape-day-signal-headline) — one editorial voice across /tape. */
.tape-mintburn-title {
  margin: 0 0 0.35rem;
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--text);
}
.tape-mintburn-subtitle {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  max-width: 46ch;
  line-height: 1.5;
}

/* Card now matches the same full-shell-width rhythm as the other main /tape
   cards (Latest Daily Tape, Recent Records) instead of rendering as a
   narrower, centered block on its own. */
.tape-mintburn {
  border: 1px solid var(--tape-line);
  border-radius: 18px;
  background: var(--tape-bg-elev, #11151C);
  box-shadow: inset 0 1px 0 rgba(243, 245, 247, 0.03);
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.3rem, 3vw, 2.1rem) clamp(1.3rem, 2.6vw, 1.7rem);
  width: 100%;
  box-sizing: border-box;
}
.tape-mintburn-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.65rem;
  min-height: 42px;
}
.tape-mintburn-horizon-eyebrow {
  font-family: var(--tape-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.tape-mintburn-horizons {
  display: inline-flex;
  gap: 0.35rem;
  background: rgba(243, 245, 247, 0.035);
  border: 1px solid var(--tape-line);
  border-radius: 14px;
  padding: 0.25rem;
  flex-shrink: 0;
}
.tape-mintburn-horizon-btn {
  font-family: var(--tape-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.55rem 0.95rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tape-mintburn-horizon-btn:hover { color: var(--text-secondary); }
.tape-mintburn-horizon-btn.is-active {
  background: rgba(111, 227, 181, 0.08);
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Hero readout: large score + state label. Deliberately no conditional chip
   here — see the comment on mintBurnHeroMarkup in js/tape.js for why (a chip
   that only sometimes rendered was the cause of the 1D <-> 7D layout jump).
   Because nothing here is conditional anymore, min-height is a light safety
   margin rather than something load-bearing for jump-prevention. */
.tape-mintburn-readout {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 260px;
}
.tape-mintburn-readout--unavailable {
  align-items: center;
}
.tape-mintburn-hero {
  text-align: center;
  margin: 1.1rem 0 0.2rem;
  min-height: 78px;
}
.tape-mintburn-scoreline {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.35rem;
}
.tape-mintburn-num {
  font-family: var(--sans);
  font-size: clamp(46px, 6vw, 62px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.tape-mintburn-num.is-pos {
  background: linear-gradient(180deg, var(--st-mint-soft), var(--tape-pos));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tape-mintburn-num.is-neg {
  background: linear-gradient(180deg, #F8DCD6, var(--tape-neg));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tape-mintburn-num.is-flat {
  background: linear-gradient(180deg, var(--st-text), var(--text-muted));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tape-mintburn-denom {
  font-family: var(--tape-mono);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}
.tape-mintburn-statelabel {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 600;
  margin-top: 0.3rem;
}
.tape-mintburn-statelabel.is-pos { color: var(--tape-pos); }
.tape-mintburn-statelabel.is-neg { color: var(--tape-neg); }
.tape-mintburn-statelabel.is-flat { color: var(--text-secondary); }

/* Soft segmented 0-100 band gauge — fixed coral->neutral->teal stripes as a
   static backdrop; only the marker position is computed from the score. */
.tape-mintburn-gauge {
  margin-top: 1.15rem;
  min-height: 78px;
}
.tape-mintburn-scale-note {
  margin: 0 auto 0.65rem;
  max-width: 46ch;
  text-align: center;
  font-family: var(--tape-mono);
  font-size: 11.5px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: var(--text-faint);
}
.tape-mintburn-gauge-ends {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  margin-bottom: 0.65rem;
}
.tape-mintburn-gauge-end { display: flex; flex-direction: column; gap: 0.12rem; }
.tape-mintburn-gauge-end.c { align-items: center; text-align: center; }
.tape-mintburn-gauge-end.r { align-items: flex-end; text-align: right; }
.tape-mintburn-gauge-end-val { font-family: var(--tape-mono); font-size: 13px; font-weight: 600; line-height: 1; }
.tape-mintburn-gauge-end-label { font-family: var(--tape-mono); font-size: 10.5px; letter-spacing: 0.04em; }
.tape-mintburn-gauge-end.l .tape-mintburn-gauge-end-val,
.tape-mintburn-gauge-end.l .tape-mintburn-gauge-end-label { color: var(--tape-neg); }
.tape-mintburn-gauge-end.c .tape-mintburn-gauge-end-val,
.tape-mintburn-gauge-end.c .tape-mintburn-gauge-end-label { color: var(--text-faint); }
.tape-mintburn-gauge-end.r .tape-mintburn-gauge-end-val,
.tape-mintburn-gauge-end.r .tape-mintburn-gauge-end-label { color: var(--tape-pos); }
.tape-mintburn-gauge-bands {
  position: relative;
  display: flex;
  gap: 2px;
  height: 9px;
}
.tape-mintburn-gauge-bands i { flex: 1; border-radius: 2px; display: block; }
.tape-mintburn-gauge-band-1 { background: rgba(229, 106, 89, 0.62); }
.tape-mintburn-gauge-band-2 { background: rgba(229, 106, 89, 0.36); }
.tape-mintburn-gauge-band-3 { background: rgba(108, 116, 128, 0.24); }
.tape-mintburn-gauge-band-4 { background: rgba(108, 116, 128, 0.2); }
.tape-mintburn-gauge-band-5 { background: rgba(111, 227, 181, 0.24); }
.tape-mintburn-gauge-band-6 { background: rgba(111, 227, 181, 0.38); }
.tape-mintburn-gauge-band-7 { background: rgba(111, 227, 181, 0.62); }
.tape-mintburn-gauge-marker {
  position: absolute;
  top: -5px;
  width: 2px;
  height: 20px;
  background: rgba(243, 245, 247, 0.86);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: left 0.22s ease-out;
}
.tape-mintburn-gauge-marker-dot {
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(243, 245, 247, 0.92);
  box-shadow: 0 0 5px rgba(243, 245, 247, 0.18);
}

.tape-mintburn-netline {
  text-align: center;
  font-size: clamp(14.5px, 1.7vw, 16.5px);
  color: var(--text-secondary);
  margin: 1.3rem 0 0;
  padding: 0 0.2rem;
  min-height: 1.6em;
}

@media (prefers-reduced-motion: reduce) {
  .tape-mintburn-gauge-marker { transition: none; }
}

/* Calm, neutral collecting state — no warning color/border. Same visual
   register as a quiet status note, not an error. */
.tape-mintburn-unavailable {
  margin: 0.9rem 0 0.7rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border-hairline);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  width: min(100%, 520px);
}
.tape-mintburn-unavailable-title {
  font-family: var(--tape-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}
.tape-mintburn-unavailable p {
  margin: 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
/* Keeps the module reading "alive" (not broken/empty) while 7D/30D collect
   records — also doubles as the obvious switch-to-1D control. */
.tape-mintburn-fallback {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.55rem;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--tape-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--accent);
  cursor: pointer;
}
.tape-mintburn-fallback::after { content: '→'; font-size: 11px; }
.tape-mintburn-fallback:hover { color: var(--text); text-decoration: underline; }
.tape-mintburn-loading {
  margin: 0.9rem 0 0.7rem;
  font-size: 13px;
  color: var(--text-muted);
}

.tape-mintburn-note {
  margin: 0.7rem 0 0;
  font-family: var(--tape-mono);
  font-size: 10.5px;
  letter-spacing: 0.03em;
  color: var(--text-faint);
  text-align: center;
  min-height: 1.5em;
}

@media (max-width: 720px) {
  .tape-day-signal-benchmark strong,
  .tape-day-signal-benchmark-sub {
    width: 100%;
  }
  .tape-mintburn { padding: 1.35rem 1.05rem 1.25rem; border-radius: 14px; }
  .tape-mintburn-top { justify-content: space-between; align-items: flex-start; }
  .tape-mintburn-horizon-btn { min-height: 40px; }
  .tape-mintburn-readout { min-height: 268px; }
  .tape-mintburn-hero { min-height: 90px; }
  .tape-mintburn-num { font-size: 46px; }
  .tape-mintburn-gauge-ends { margin-bottom: 0.55rem; }
  .tape-mintburn-gauge-end-label { font-size: 9px; }
  .tape-mintburn-scale-note { font-size: 10px; line-height: 1.5; max-width: 30ch; }
  .tape-mintburn-title { font-size: 19px; }
  .tape-mintburn-netline { font-size: 14px; }
}

/* ── 7D trend chart (supply line + net bars) ─────────────────────────────── */
.tape-trend-chart {
  margin-top: 1.05rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.045);
}

.tape-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.tape-trend-kicker {
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.tape-trend-legend {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.tape-trend-swatch {
  display: inline-block;
  vertical-align: middle;
}

.tape-trend-swatch--line {
  width: 14px;
  height: 2px;
  background: rgba(168, 242, 210, 0.85);
}

.tape-trend-swatch--pos {
  width: 8px;
  height: 8px;
  background: rgba(111, 227, 181, 0.75);
}

.tape-trend-swatch--neg {
  width: 8px;
  height: 8px;
  background: rgba(229, 106, 89, 0.72);
}

.tape-trend-labels {
  display: flex;
  margin-top: 0.18rem;
}

.tape-trend-label {
  flex: 1;
  text-align: center;
  font-family: var(--tape-mono);
  font-size: 9px;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tape-trend-label.is-latest { color: var(--accent); }

.tape-trend-note {
  margin: 0.5rem 0 0;
  font-family: var(--tape-mono);
  font-size: 10px;
  letter-spacing: 0.02em;
  color: var(--text-faint);
  line-height: 1.45;
}

.tape-trend-empty {
  margin-top: 0.85rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(255,255,255,0.045);
  border-radius: 8px;
  font-family: var(--tape-mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--text-faint);
}

/* Visually hidden but available to screen readers */
.tape-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
