:root {
  color-scheme: dark;
  --black: #000;
  --ink: #f7fbff;
  --muted: #9cacb4;
  --soft: #617279;
  --cyan: #c5f9ff;
  --cyan-dim: rgba(197, 249, 255, 0.42);
  --green: #63f3a3;
  --amber: #ffb94e;
  --red: #ff6878;
  --glass: rgba(6, 8, 10, 0.58);
  --glass-dark: rgba(0, 0, 0, 0.72);
  --line: rgba(231, 253, 255, 0.18);
  --line-hot: rgba(231, 253, 255, 0.58);
  --font-ui: "Segoe UI Variable", "Segoe UI", "Aptos", Arial, sans-serif;
  --font-data: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  background: #000;
}

body {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  content: "";
}

body::before {
  background:
    radial-gradient(circle at 50% 48%, transparent 0 42%, rgba(0, 0, 0, 0.48) 66%, rgba(0, 0, 0, 0.9) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 12%, transparent 78%, rgba(255, 255, 255, 0.035)),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 5px);
  opacity: 0.76;
}

body::after {
  background:
    linear-gradient(112deg, transparent 0 37%, rgba(255, 255, 255, 0.08) 44%, transparent 53%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 26%, transparent 72%, rgba(0, 0, 0, 0.64));
}

a,
button {
  font: inherit;
}

button {
  color: inherit;
}

.ambient-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  background: #000;
}

.app-shell {
  position: relative;
  z-index: 2;
  width: 100vw;
  height: 100dvh;
  min-height: 660px;
  padding: 20px 30px 16px;
}

.cinema-shell {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 104px 64px minmax(0, 1fr) auto 56px 20px;
  gap: 6px;
}

.cinema-header {
  min-height: 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.identity,
.time-entry {
  min-width: 0;
  display: flex;
  align-items: flex-start;
}

.identity {
  gap: 14px;
}

.identity-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(197, 249, 255, 0.42);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.28), transparent 38%),
    radial-gradient(circle, rgba(197, 249, 255, 0.15), transparent 70%),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    0 0 34px rgba(197, 249, 255, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -22px 30px rgba(0, 0, 0, 0.78);
}

.identity h1 {
  margin: 0;
  color: var(--ink);
  font-size: 32px;
  font-weight: 780;
  line-height: 0.96;
  text-shadow: 0 16px 42px rgba(0, 0, 0, 0.72);
}

.identity p,
.identity small,
.time-entry span,
.trust-chip span,
.trust-chip small,
.cinema-footer,
.decision-copy span,
.metric-strip span,
.crypto-flood span,
.crypto-flood small,
.stream-readout span {
  color: var(--muted);
  font-family: var(--font-data);
  letter-spacing: 0;
}

.identity p {
  margin: 7px 0 0;
  font-size: 14px;
}

.identity p span {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 7px;
  border: 1px solid rgba(197, 249, 255, 0.22);
  border-radius: 4px;
  color: var(--cyan);
  background: rgba(197, 249, 255, 0.07);
}

.identity small {
  display: block;
  margin-top: 9px;
  font-size: 12px;
  text-transform: uppercase;
}

.time-entry {
  justify-content: flex-end;
  gap: 18px;
}

.time-entry div {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.time-entry strong {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.28);
}

.time-entry span {
  font-size: 12px;
}

.operations-stack {
  min-width: 248px;
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

.operations-link {
  height: 48px;
  min-width: 0;
  display: grid;
  place-items: center;
  padding: 0 22px;
  border: 1px solid rgba(197, 249, 255, 0.66);
  border-radius: 7px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 650;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(110deg, rgba(197, 249, 255, 0.1), transparent 46%),
    rgba(0, 0, 0, 0.52);
  box-shadow:
    0 0 32px rgba(197, 249, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.36),
    inset 0 -18px 32px rgba(0, 0, 0, 0.76);
}

.operations-link:hover {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 48%),
    rgba(197, 249, 255, 0.08);
}

.room-jump {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.room-jump a {
  min-width: 0;
  display: grid;
  place-items: center;
  min-height: 24px;
  padding: 0 8px;
  overflow: hidden;
  border: 1px solid rgba(197, 249, 255, 0.26);
  border-radius: 5px;
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 11px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.46);
}

.room-jump a:hover {
  border-color: rgba(197, 249, 255, 0.58);
  background: rgba(197, 249, 255, 0.08);
}

.trust-row {
  width: min(1180px, 82vw);
  min-height: 0;
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.trust-chip {
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 12px;
  align-content: center;
  padding: 10px 13px;
  border: 1px solid rgba(231, 253, 255, 0.16);
  border-radius: 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.025) 38%, transparent),
    rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(18px) saturate(130%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -18px 36px rgba(0, 0, 0, 0.72);
}

.trust-chip div {
  grid-row: 1 / span 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
}

.trust-chip span {
  align-self: end;
  font-size: 10px;
  text-transform: uppercase;
}

.trust-chip strong {
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 620;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.trust-chip small {
  margin-top: 3px;
  font-size: 10px;
  text-transform: uppercase;
}

.tone-good {
  color: var(--green);
}

.tone-warn {
  color: var(--amber);
}

.tone-danger {
  color: var(--red);
}

.tone-neutral {
  color: var(--cyan);
}

.icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.cinema-stage {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 54px 42px 48px;
  gap: 4px;
  align-items: end;
}

.hologlass {
  position: relative;
  min-height: 0;
  height: 100%;
  display: grid;
  align-items: stretch;
  justify-items: stretch;
}

.glass-cylinder {
  position: absolute;
  left: 50%;
  top: 49%;
  width: min(1400px, 88vw);
  height: min(440px, 52vh);
  transform: translate(-50%, -50%);
  perspective: 1200px;
}

.glass-wall {
  position: absolute;
  inset: 26px 0 30px;
  overflow: hidden;
  border: 1px solid rgba(197, 249, 255, 0.28);
  border-radius: 50% / 13%;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.19), transparent 9%, transparent 89%, rgba(255, 255, 255, 0.16)),
    radial-gradient(ellipse at 50% 48%, rgba(36, 113, 151, 0.18), transparent 68%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%, rgba(255, 255, 255, 0.06)),
    rgba(2, 10, 16, 0.24);
  box-shadow:
    0 0 82px rgba(197, 249, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    inset 0 -42px 70px rgba(255, 255, 255, 0.06),
    inset 0 -80px 100px rgba(0, 0, 0, 0.72);
}

.glass-wall::before,
.glass-wall::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.glass-wall::before {
  background:
    repeating-linear-gradient(90deg, rgba(197, 249, 255, 0.12) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(180deg, rgba(197, 249, 255, 0.08) 0 1px, transparent 1px 24px);
  opacity: 0.18;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.glass-wall::after {
  background:
    linear-gradient(100deg, transparent 0 36%, rgba(255, 255, 255, 0.24) 42%, transparent 48%),
    linear-gradient(78deg, transparent 0 68%, rgba(255, 255, 255, 0.18) 73%, transparent 80%);
  mix-blend-mode: screen;
}

.cylinder-rim {
  position: absolute;
  left: 0;
  right: 0;
  height: 96px;
  border: 2px solid rgba(214, 250, 255, 0.36);
  border-radius: 50%;
  box-shadow:
    0 0 42px rgba(197, 249, 255, 0.16),
    inset 0 0 28px rgba(197, 249, 255, 0.12);
}

.rim-top {
  top: 0;
  border-bottom-color: rgba(197, 249, 255, 0.08);
}

.rim-bottom {
  bottom: 0;
  border-top-color: rgba(197, 249, 255, 0.08);
  box-shadow:
    0 0 72px rgba(255, 255, 255, 0.26),
    0 28px 60px rgba(255, 255, 255, 0.16),
    inset 0 0 28px rgba(197, 249, 255, 0.12);
}

.light-ribbon {
  position: absolute;
  left: 4%;
  right: 4%;
  height: 82px;
  border: 1px solid transparent;
  border-top-color: rgba(197, 249, 255, 0.72);
  border-radius: 50%;
  filter: drop-shadow(0 0 20px rgba(197, 249, 255, 0.52));
  opacity: 0.72;
  animation: ribbonFlow 5.8s ease-in-out infinite alternate;
}

.ribbon-a {
  top: 54%;
  transform: rotate(-8deg);
}

.ribbon-b {
  top: 40%;
  border-top-color: rgba(255, 255, 255, 0.44);
  transform: rotate(8deg);
  animation-delay: -1.8s;
}

.ribbon-c {
  top: 62%;
  border-top-color: rgba(197, 249, 255, 0.34);
  transform: rotate(2deg);
  animation-delay: -3.2s;
}

.market-bars {
  /* anchored to the cylinder base so the equalizer stays visible in the strip
     revealed below the data panels (the panels' bottom inset leaves room) */
  position: absolute;
  inset: auto 10% -48px;
  height: 128px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
  opacity: 0.6;
  transform: perspective(800px) rotateX(8deg);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.market-bars span {
  width: 4px;
  height: var(--h);
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(197, 249, 255, 0.1), rgba(197, 249, 255, 0.78), rgba(197, 249, 255, 0.15));
  box-shadow: 0 0 16px rgba(197, 249, 255, 0.32);
  transform-origin: bottom;
  animation: barPulse 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * -90ms);
}

.data-core {
  position: absolute;
  z-index: 3;
  /* top inset reserves the HUD band: .decision-copy + .metric-strip render at
     top: 0 and are ~100-110px tall; starting lower prevents hero/table overlap */
  inset: 118px min(34px, 2.6vw) 96px 14px;
  display: grid;
  /* tall narrow tape left, intelligence rail right — the open middle column
     leaves the agent-orchestration animation visible at stage center */
  grid-template-columns: minmax(440px, 1fr) minmax(240px, 0.9fr) minmax(300px, 0.85fr);
  gap: 6px;
  pointer-events: none;
}

.data-core .trader-tape {
  grid-column: 1;
  /* stretch-with-negative-margin: extends the tape below the grid track so it
     runs deeper than the rail without moving the equalizer band */
  margin-bottom: -48px;
}

.data-core .intelligence-stack {
  grid-column: 3;
}

.data-core.oracle-flow {
  /* same open-center treatment as the default stage: sources pinned hard
     left at near-minimum width, pipeline right, the orb heart owns the
     middle */
  grid-template-columns: minmax(460px, 500px) minmax(240px, 1fr) minmax(280px, 0.8fr);
}

.data-core.oracle-flow .oracle-sources {
  grid-column: 1;
}

.data-core.oracle-flow .oracle-pipeline {
  grid-column: 3;
}

.data-core__panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(197, 249, 255, 0.16);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 34%),
    rgba(0, 0, 0, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.data-core__panel header {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 8px;
  align-items: baseline;
  padding: 0 0 5px;
  border-bottom: 1px solid rgba(197, 249, 255, 0.12);
}

/* Scrollable row area inside a panel: header/column head stay fixed above,
   rows scroll with the wheel. pointer-events re-enabled here only — the
   .data-core overlay itself stays click-through. */
.data-core__scroll {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 3px;
  pointer-events: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 249, 255, 0.28) transparent;
}

.data-core__scroll::-webkit-scrollbar {
  width: 6px;
}

.data-core__scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: rgba(197, 249, 255, 0.22);
}

.data-core__scroll::-webkit-scrollbar-track {
  background: transparent;
}

.data-core__panel header span,
.data-core__row span,
.data-core__row small,
.data-core__pulse span,
.data-core__pulse small {
  overflow: hidden;
  color: rgba(197, 249, 255, 0.74);
  font-family: var(--font-data);
  font-size: 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-core__panel header strong {
  overflow: hidden;
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-core__row,
.data-core__pulse {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 5px 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(197, 249, 255, 0.09), transparent 56%),
    rgba(255, 255, 255, 0.026);
  animation: floodPulse 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 72ms);
}

.data-core__pulse {
  grid-template-columns: 72px minmax(0, 1fr) minmax(130px, 0.8fr);
  align-items: center;
}

.data-core__row strong,
.data-core__pulse strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 620;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-core__sources {
  border-color: rgba(197, 249, 255, 0.22);
}

.data-core__pulses {
  border-color: rgba(123, 255, 190, 0.24);
}

.data-core__conclusions {
  border-color: rgba(255, 185, 78, 0.22);
}

.trader-tape {
  border-color: rgba(123, 255, 190, 0.26);
  grid-template-rows: auto auto minmax(0, 1fr);
}

.trader-tape__head,
.trader-tape__row {
  min-width: 0;
  display: grid;
  grid-template-columns: 76px 84px 92px minmax(150px, 1fr) 62px;
  gap: 1px;
  align-items: center;
}

/* Flow and liquidity columns are dropped in the narrow tape so the center
   stage stays open for the orchestration animation */
.trader-tape__head > :nth-child(4),
.trader-tape__head > :nth-child(5),
.trader-tape__row > :nth-child(4),
.trader-tape__row > :nth-child(5) {
  display: none;
}

.trader-tape__head {
  padding: 3px 0 2px;
  color: rgba(197, 249, 255, 0.72);
  font-family: var(--font-data);
  font-size: 9px;
  text-transform: uppercase;
}

.trader-tape__row {
  /* floor the row height so a short panel clips trailing rows cleanly
     instead of compressing every row into unreadable strips */
  min-height: 21px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(123, 255, 190, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.024);
  animation: floodPulse 2.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * 62ms);
}

.trader-tape__row > * {
  min-width: 0;
  overflow: hidden;
  padding: 5px 6px;
  color: rgba(231, 253, 255, 0.88);
  font-family: var(--font-data);
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trader-tape__row strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.tape-good {
  border-color: rgba(99, 243, 163, 0.2);
}

.tape-warn {
  border-color: rgba(255, 185, 78, 0.24);
}

.tape-danger {
  border-color: rgba(255, 104, 120, 0.24);
}

.tape-neutral {
  border-color: rgba(197, 249, 255, 0.14);
}

.trader-tape__row:hover {
  border-color: rgba(123, 255, 190, 0.45);
  background:
    linear-gradient(90deg, rgba(123, 255, 190, 0.16), transparent 46%),
    rgba(255, 255, 255, 0.05);
}

.intelligence-stack {
  border-color: rgba(255, 185, 78, 0.24);
  grid-template-rows: auto minmax(0, 1fr);
}

.intelligence-stack .data-core__row {
  padding: 6px 7px;
}

/* Rail cards: let conclusion/detail wrap to two lines instead of a mid-sentence
   single-line cut; keeps cards readable without growing past the panel */
.intelligence-stack .data-core__row strong,
.intelligence-stack .data-core__row small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.25;
  white-space: normal;
}

.intelligence-stack__conclusion {
  border-color: rgba(255, 185, 78, 0.12);
}

/* Oracle pipeline */
.oracle-flow {
  border-color: rgba(197, 249, 255, 0.32);
}

.oracle-sources {
  border-color: rgba(197, 249, 255, 0.28);
}

.oracle-sources__head,
.oracle-source-lane {
  min-width: 0;
  display: grid;
  grid-template-columns: 90px 80px 90px 78px 70px minmax(72px, 1fr);
  gap: 1px;
  align-items: center;
}

.oracle-sources__head {
  padding: 3px 0 2px;
  color: rgba(197, 249, 255, 0.72);
  font-family: var(--font-data);
  font-size: 9px;
  text-transform: uppercase;
}

.oracle-source-lane {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(197, 249, 255, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.024);
  animation: oraclePulse 2.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 78ms);
}

.oracle-source-lane > * {
  min-width: 0;
  overflow: hidden;
  padding: 5px 6px;
  color: rgba(231, 253, 255, 0.88);
  font-family: var(--font-data);
  font-size: 10px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oracle-source-lane strong {
  color: var(--ink);
  font-weight: 650;
}

.oracle-source--healthy {
  border-color: rgba(99, 243, 163, 0.28);
  border-left: 3px solid rgba(99, 243, 163, 0.68);
}

.oracle-source--blocked {
  border-color: rgba(255, 104, 120, 0.28);
  border-left: 3px solid rgba(255, 104, 120, 0.68);
}

.oracle-source--degraded {
  border-color: rgba(255, 185, 78, 0.28);
  border-left: 3px solid rgba(255, 185, 78, 0.68);
}

.oracle-status-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--font-data);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
}

.oracle-status--healthy {
  color: var(--green);
  background: rgba(99, 243, 163, 0.12);
  border: 1px solid rgba(99, 243, 163, 0.32);
}

.oracle-status--blocked {
  color: var(--red);
  background: rgba(255, 104, 120, 0.12);
  border: 1px solid rgba(255, 104, 120, 0.32);
}

.oracle-status--degraded {
  color: var(--amber);
  background: rgba(255, 185, 78, 0.12);
  border: 1px solid rgba(255, 185, 78, 0.32);
}

/* Oracle pipeline stages */
.oracle-pipeline {
  border-color: rgba(197, 249, 255, 0.24);
}

.oracle-pipeline-stage {
  min-width: 0;
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 7px 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  background:
    linear-gradient(90deg, rgba(197, 249, 255, 0.07), transparent 52%),
    rgba(255, 255, 255, 0.022);
  animation: oraclePulse 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 110ms);
}

.oracle-stage-label {
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 11px;
  font-weight: 640;
  text-transform: uppercase;
}

.oracle-pipeline-stage strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oracle-stage--0 {
  border-left: 3px solid rgba(197, 249, 255, 0.6);
}

.oracle-stage--1 {
  border-left: 3px solid rgba(99, 243, 163, 0.5);
}

.oracle-stage--2 {
  border-left: 3px solid rgba(99, 243, 163, 0.5);
}

.oracle-stage--3 {
  border-left: 3px solid rgba(255, 185, 78, 0.5);
}

.oracle-stage--4 {
  border-left: 3px solid rgba(255, 104, 120, 0.5);
}

@keyframes oraclePulse {
  0%,
  100% {
    background-color: rgba(255, 255, 255, 0.022);
    box-shadow: inset 0 0 0 rgba(197, 249, 255, 0);
  }
  50% {
    background-color: rgba(197, 249, 255, 0.08);
    box-shadow: inset 0 0 24px rgba(197, 249, 255, 0.08);
  }
}

/* Reasoning cascade */
.reasoning-cascade {
  width: min(1120px, 82vw);
  justify-self: center;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  min-height: 0;
}

.reasoning-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 8px 11px;
  overflow: hidden;
  border: 1px solid rgba(197, 249, 255, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 42%),
    rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: reasonCardEnter 0.6s ease-out both;
  animation-delay: calc(var(--i) * 0.12s);
}

.reasoning-card__agent {
  color: var(--cyan);
  font-family: var(--font-data);
  font-size: 9px;
  text-transform: uppercase;
}

.reasoning-card__conclusion {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reasoning-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.reasoning-card__meta span {
  color: var(--muted);
  font-family: var(--font-data);
  font-size: 9px;
}

@keyframes reasonCardEnter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes reasonCardExit {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-8px) scale(0.94);
  }
}

@keyframes nodePulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
}

@keyframes arcFlow {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -20;
  }
}

/* HUD band: one flex row for hero, market clocks, and metric strip so the
   three can never overlap each other or drift on scaled/narrow viewports */
.hud-band {
  position: absolute;
  z-index: 4;
  top: 0;
  left: min(52px, 3.5vw);
  right: min(52px, 3.5vw);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  pointer-events: none;
}

.decision-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: min(520px, 34vw);
  display: grid;
  justify-items: start;
  padding: 0;
  text-align: left;
}

.decision-copy span {
  color: #83dfff;
  font-size: 12px;
  text-transform: uppercase;
}

.decision-copy h2 {
  margin: 5px 0 0;
  color: var(--ink);
  font-size: clamp(24px, 2.6vw, 42px);
  font-weight: 760;
  line-height: 0.98;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.4),
    0 0 42px rgba(255, 255, 255, 0.32),
    0 22px 70px rgba(0, 0, 0, 0.9);
}

.decision-copy p {
  max-width: 460px;
  margin: 6px 0 0;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: #d2dde2;
  font-size: 13px;
  line-height: 1.32;
}

.market-clocks {
  flex: 0 0 auto;
  display: grid;
  grid-auto-flow: column;
  gap: 8px;
}

.market-clocks article {
  min-width: 116px;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 7px 12px 6px;
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.46);
}

.market-clocks article span {
  color: #83dfff;
  font-family: var(--font-data);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-clocks strong {
  color: var(--ink);
  font-family: var(--font-data);
  font-size: 17px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.market-clocks small {
  color: rgba(197, 249, 255, 0.55);
  font-family: var(--font-data);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.market-clocks small::before {
  content: "● ";
}

.market-clocks small.desk-active {
  color: #63f3a3;
}

.market-clocks__pulse strong {
  color: #7bffbe;
}

.dock-kiosk {
  padding: 8px 14px;
  border: 1px solid rgba(197, 249, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(197, 249, 255, 0.72);
  font-family: var(--font-data);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
}

.dock-kiosk:hover {
  border-color: rgba(197, 249, 255, 0.45);
  color: var(--ink);
}

.dock-kiosk.active {
  border-color: rgba(99, 243, 163, 0.55);
  color: #63f3a3;
}

@media (max-width: 1780px) {
  .market-clocks article.market-clocks__pulse {
    display: none;
  }

  .market-clocks article {
    min-width: 92px;
    padding: 6px 9px 5px;
  }

  .market-clocks strong {
    font-size: 14px;
  }
}

@media (max-width: 1179px) {
  .market-clocks {
    display: none;
  }
}

.metric-strip {
  flex: 0 1 auto;
  width: min(520px, 32vw);
  min-width: 280px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 7px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 44px rgba(0, 0, 0, 0.46);
}

.metric-strip article {
  min-width: 0;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 7px 9px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.metric-strip article:last-child {
  border-right: 0;
}

.metric-strip strong {
  color: var(--ink);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.metric-strip span {
  font-size: 10px;
  text-transform: uppercase;
}

.stream-readout {
  z-index: 2;
  width: min(1180px, 84vw);
  justify-self: center;
  display: grid;
  grid-template-columns: 0.85fr repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(231, 253, 255, 0.12);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(14px);
}

.crypto-flood {
  z-index: 4;
  width: min(1320px, 92vw);
  min-width: 0;
  justify-self: center;
  display: grid;
  grid-template-columns: 138px minmax(330px, 0.95fr) minmax(0, 1.05fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(197, 249, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(197, 249, 255, 0.12), transparent 34%),
    rgba(0, 0, 0, 0.42);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
}

.crypto-flood__header {
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 7px 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.04);
}

.crypto-flood__header span {
  color: var(--cyan);
  font-size: 10px;
  text-transform: uppercase;
}

.crypto-flood__header strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crypto-flood__rail {
  min-width: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(148px, 1fr);
  gap: 1px;
  overflow: hidden;
}

.source-lanes {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
}

.crypto-flood article,
.source-lane {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 9px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 50%),
    rgba(255, 255, 255, 0.018);
  animation: floodPulse 2.8s ease-in-out infinite;
  animation-delay: calc(var(--i) * 80ms);
}

.source-lane--good {
  background:
    linear-gradient(180deg, rgba(99, 243, 163, 0.12), transparent 54%),
    rgba(99, 243, 163, 0.035);
}

.source-lane--warn {
  background:
    linear-gradient(180deg, rgba(255, 185, 78, 0.12), transparent 54%),
    rgba(255, 185, 78, 0.03);
}

.source-lane--danger {
  background:
    linear-gradient(180deg, rgba(255, 104, 120, 0.13), transparent 54%),
    rgba(255, 104, 120, 0.035);
}

.source-lane--neutral {
  background:
    linear-gradient(180deg, rgba(197, 249, 255, 0.1), transparent 54%),
    rgba(197, 249, 255, 0.026);
}

.crypto-flood article strong,
.source-lane strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 560;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crypto-flood article span,
.crypto-flood article small,
.source-lane span,
.source-lane small {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@keyframes floodPulse {
  0%,
  100% {
    background-color: rgba(255, 255, 255, 0.018);
  }
  50% {
    background-color: rgba(197, 249, 255, 0.075);
  }
}

.data-flow {
  z-index: 3;
  width: min(1220px, 88vw);
  justify-self: center;
  display: grid;
  grid-template-columns: 0.95fr repeat(5, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(123, 255, 190, 0.3);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(120, 255, 190, 0.14), transparent 38%),
    rgba(0, 0, 0, 0.44);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
}

.data-flow article {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.028);
}

.data-flow__label {
  background:
    linear-gradient(90deg, rgba(119, 255, 184, 0.2), transparent),
    rgba(255, 255, 255, 0.04);
}

.data-flow strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 530;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-flow span {
  color: rgba(197, 249, 255, 0.78);
  font-size: 9px;
  text-transform: uppercase;
}

.stream-readout article {
  display: grid;
  align-content: center;
  gap: 3px;
  min-width: 0;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.025);
}

.stream-readout__label {
  background:
    linear-gradient(90deg, rgba(197, 249, 255, 0.14), transparent),
    rgba(255, 255, 255, 0.035);
}

.stream-readout strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stream-readout__conclusion strong {
  color: #f7fbff;
}

.stream-readout span {
  font-size: 9px;
  text-transform: uppercase;
}

.cinema-dock {
  width: min(1120px, 78vw);
  min-height: 0;
  justify-self: center;
  display: grid;
  grid-template-columns: 1.25fr repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(231, 253, 255, 0.2);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent 55%),
    rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(22px) saturate(132%);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.52),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -20px 38px rgba(0, 0, 0, 0.72);
}

.cinema-dock a {
  min-width: 0;
  display: grid;
  grid-template-columns: 21px minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  color: #d8e2e6;
  text-decoration: none;
}

.cinema-dock a:last-child {
  border-right: 0;
}

.cinema-dock a.active {
  color: var(--ink);
  background:
    radial-gradient(circle at 36% 50%, rgba(197, 249, 255, 0.28), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 58%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -16px 24px rgba(255, 255, 255, 0.04);
}

.cinema-dock .icon {
  width: 21px;
  height: 21px;
  color: currentColor;
}

/* On wide stages the orb ring is the stream menu; the dock collapses to just
   the Auto tour toggle. Below 1500px the buttons return (panels cover the
   ring on smaller layouts). */
@media (min-width: 1500px) {
  .cinema-dock a {
    display: none;
  }

  .cinema-dock {
    width: auto;
  }
}

.cinema-dock span {
  overflow: hidden;
  font-size: 16px;
  font-weight: 480;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cinema-footer {
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  color: var(--soft);
  font-size: 11px;
}

.cinema-footer strong {
  color: var(--green);
  font-weight: 500;
}

.cinema-footer button {
  height: 22px;
  padding: 0 10px;
  border: 1px solid rgba(231, 253, 255, 0.18);
  border-radius: 999px;
  color: var(--cyan);
  cursor: pointer;
  background: rgba(0, 0, 0, 0.38);
}

.warning {
  color: var(--amber);
}

.is-loading .cinema-footer button {
  opacity: 0.68;
}

@keyframes ribbonFlow {
  from {
    transform: translateX(-3%) rotate(-7deg) scaleX(0.96);
  }
  to {
    transform: translateX(3%) rotate(6deg) scaleX(1.05);
  }
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 0.22;
    transform: translateY(8px) scaleY(0.72);
  }
  45% {
    opacity: 0.86;
    transform: translateY(-5px) scaleY(1.08);
  }
}

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

@media (max-width: 1280px), (max-height: 820px) {
  .app-shell {
    padding: 16px 24px 14px;
  }

  .cinema-shell {
    grid-template-rows: 104px 64px minmax(0, 1fr) auto 56px 20px;
    font-size: 28px;
  }

  .time-entry strong {
    font-size: 24px;
  }

  .trust-row {
    width: min(1120px, 86vw);
    gap: 10px;
  }

  .trust-chip {
    padding: 9px 12px;
  }

  .trust-chip strong {
    font-size: 14px;
  }

  .glass-cylinder {
    /* track the (short) hologlass height so the cylinder base — and the
       equalizer anchored to it — stays inside the stage instead of sinking
       below it on scaled viewports */
    width: min(1220px, 86vw);
    height: min(380px, 92%);
  }

  .decision-copy h2 {
    font-size: clamp(22px, 2.4vw, 36px);
  }

  .decision-copy p {
    font-size: 12px;
  }

  /* Short/narrow viewports (e.g. 125% Windows scaling): reclaim vertical room
     for the data panels and keep the equalizer inside the reveal band below
     them instead of collapsing both */
  .data-core {
    inset: 100px min(34px, 2.6vw) 64px 14px;
  }

  .market-bars {
    height: 56px;
    inset: auto 10% -10px;
  }

  .data-core .trader-tape {
    margin-bottom: -40px;
  }

  .cinema-dock {
    width: min(1000px, 84vw);
  }
}

@media (max-width: 920px) {
  body {
    overflow: auto;
  }

  .app-shell {
    height: auto;
    min-height: 100dvh;
    padding: 20px;
  }

  .cinema-shell {
    min-height: 980px;
    grid-template-rows: auto auto minmax(520px, 1fr) auto auto;
  }

  .cinema-header,
  .time-entry {
    flex-direction: column;
  }

  .trust-row,
  .cinema-dock,
  .crypto-flood,
  .data-flow,
  .stream-readout {
    width: 100%;
  }

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

  .cinema-dock {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .cinema-dock a {
    justify-content: start;
    min-height: 56px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .glass-cylinder {
    width: 100%;
    height: 360px;
  }

  .metric-strip,
  .data-core,
  .crypto-flood,
  .data-flow,
  .stream-readout {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
  }

  .data-core {
    inset: auto;
    grid-template-columns: 1fr;
  }

  .trader-tape__head {
    display: none;
  }

  .trader-tape__row {
    grid-template-columns: 0.7fr 0.7fr 0.7fr 0.8fr;
  }

  .trader-tape__row > *:nth-child(n + 5) {
    grid-column: span 2;
  }

  .metric-strip {
    width: 92%;
    grid-template-columns: 1fr 1fr;
    margin-top: 300px;
  }

  .stream-readout {
    grid-template-columns: 1fr 1fr;
  }

  .crypto-flood {
    grid-template-columns: 1fr;
  }

  .crypto-flood__rail {
    grid-auto-flow: row;
    grid-auto-columns: initial;
    grid-template-columns: 1fr;
  }

  .source-lanes {
    grid-template-columns: 1fr;
  }

  .data-flow {
    grid-template-columns: 1fr;
  }

  .data-flow__label,
  .stream-readout__label {
    grid-column: 1 / -1;
  }
}

/* Phase 4: CSS contain for layout/paint isolation on all panel containers */
.data-core__panel,
.trader-tape,
.oracle-flow,
.oracle-sources,
.metric-strip,
.stream-readout,
.state-brief {
  contain: content;
}

/* Phase 4: hide empty collapsible strips */
.metric-strip:empty,
.state-brief:empty,
.operator-state-strip:empty {
  display: none;
}
