@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #03040a;
  --bg-2: #090612;
  --panel: rgba(15, 13, 26, 0.9);
  --panel-2: rgba(10, 17, 30, 0.92);
  --panel-3: rgba(24, 10, 28, 0.86);
  --text: #f8f7ff;
  --muted: #a7abc9;
  --aqua: #6ff7ff;
  --blue: #4da1ff;
  --violet: #9c68ff;
  --pink: #ff4fd8;
  --magenta: #ff2ea6;
  --amber: #ff8a36;
  --red: #ff4f6d;
  --lime: #b6ff74;
  --border: rgba(117, 247, 255, 0.16);
  --border-strong: rgba(255, 87, 199, 0.24);
  --trim: linear-gradient(135deg, rgba(255, 138, 54, 0.95), rgba(255, 79, 216, 0.92) 26%, rgba(156, 104, 255, 0.92) 58%, rgba(111, 247, 255, 0.96));
  --trim-soft: linear-gradient(135deg, rgba(255, 138, 54, 0.3), rgba(255, 79, 216, 0.22), rgba(111, 247, 255, 0.26));
  --neon-glow: 0 0 0 1px rgba(117, 247, 255, 0.1), 0 0 22px rgba(111, 247, 255, 0.1), 0 0 44px rgba(255, 79, 216, 0.08), 0 0 68px rgba(255, 138, 54, 0.06);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
  --body-bg:
    radial-gradient(circle at 12% 18%, rgba(255, 88, 170, 0.2), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(111, 247, 255, 0.16), transparent 22%),
    radial-gradient(circle at 50% 88%, rgba(255, 138, 54, 0.12), transparent 24%),
    linear-gradient(180deg, #05040b 0%, #090713 42%, #05060b 100%);
  --body-after-bg:
    radial-gradient(circle at 50% 100%, rgba(255, 79, 216, 0.16), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(111, 247, 255, 0.08), transparent 48%);
  --body-before-opacity: 0.14;
  --orb-surface: radial-gradient(circle at 32% 28%, rgba(255,255,255,0.24), rgba(255, 152, 80, 0.2) 26%, rgba(255, 79, 216, 0.28) 48%, rgba(111, 247, 255, 0.22) 68%, rgba(5,7,14,0.96) 100%);
  --orb-shadow-rest:
    0 0 0 14px rgba(255, 79, 216, 0.05),
    0 0 0 26px rgba(111, 247, 255, 0.04),
    0 0 60px rgba(255, 79, 216, 0.28),
    0 0 100px rgba(111, 247, 255, 0.18),
    inset 0 0 42px rgba(255,255,255,0.12);
  --orb-shadow-peak:
    0 0 0 16px rgba(255, 79, 216, 0.07),
    0 0 0 32px rgba(111, 247, 255, 0.06),
    0 0 76px rgba(255, 79, 216, 0.36),
    0 0 128px rgba(111, 247, 255, 0.24),
    inset 0 0 56px rgba(255,255,255,0.18);
  --orb-before-gradient: conic-gradient(from 120deg, rgba(111,247,255,0) 0 12%, rgba(111,247,255,0.55) 18%, rgba(255,79,216,0.48) 42%, rgba(255,138,54,0.42) 58%, rgba(111,247,255,0) 78% 100%);
  --orb-after-gradient: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  --orb-ring-inner-color: rgba(111, 247, 255, 0.32);
  --orb-ring-inner-shadow: 0 0 20px rgba(111, 247, 255, 0.22), inset 0 0 12px rgba(111, 247, 255, 0.12);
  --orb-ring-outer-color: rgba(255, 79, 216, 0.26);
  --orb-ring-outer-shadow: 0 0 32px rgba(255, 79, 216, 0.16), inset 0 0 12px rgba(255, 138, 54, 0.08);
  --orb-shimmer: linear-gradient(140deg, rgba(255, 255, 255, 0.16), transparent 20%, rgba(255, 79, 216, 0.18) 46%, transparent 58%, rgba(111, 247, 255, 0.2) 82%, transparent 94%), repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 6px);
  --orb-scan: linear-gradient(180deg, rgba(111, 247, 255, 0.12), transparent 78%);
  --orb-grid-floor: linear-gradient(to top, rgba(99, 242, 255, 0.12), transparent 62%), repeating-linear-gradient(to right, rgba(111, 247, 255, 0.11) 0 1px, transparent 1px 40px), repeating-linear-gradient(to top, rgba(255, 79, 216, 0.12) 0 1px, transparent 1px 26px);
  --voice-halo-hot: rgba(255, 79, 216, 0.94);
  --voice-halo-cool: rgba(111, 247, 255, 0.96);
  --voice-halo-shadow: 0 0 18px rgba(255, 79, 216, 0.28), 0 0 24px rgba(111, 247, 255, 0.22);
  --voice-halo-opacity: 0.78;
  --voice-shell-scale: 1;
  --voice-shell-opacity: 0.42;
  --voice-shell-blur: 0px;
  --voice-plasma-scale: 1;
  --voice-plasma-opacity: 0.42;
  --voice-plasma-rotate: 0deg;
  --voice-burst-scale: 1;
  --voice-burst-opacity: 0.36;
  --voice-burst-secondary-scale: 1.04;
  --voice-burst-secondary-opacity: 0.22;
  --orb-breathe-duration: 3.2s;
  --outer-pulse-duration: 2.6s;
  --shimmer-duration: 8s;
  --spin-duration: 12s;
  --orb-scale: 1;
  --orb-tilt: 0deg;
  --orb-glow: 1;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  font-family: 'Rajdhani', Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--body-bg);
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}
body::before {
  background:
    repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.02) 50%, transparent 100%);
  opacity: var(--body-before-opacity);
  mix-blend-mode: screen;
}
body::after {
  background: var(--body-after-bg);
}

body.intro-active {
  overflow: hidden;
}

body.intro-active .app-shell {
  opacity: 0.18;
  filter: blur(14px) saturate(0.85);
  transform: scale(1.015);
  pointer-events: none;
}

.app-shell {
  transition: opacity 800ms ease, filter 900ms ease, transform 900ms ease;
}

.boot-sequence {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 79, 216, 0.08), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(111, 247, 255, 0.06), transparent 36%),
    linear-gradient(180deg, rgba(4, 4, 11, 0.92), rgba(2, 6, 16, 0.96));
  opacity: 0;
  pointer-events: none;
}

body.intro-active .boot-sequence {
  opacity: 1;
}

.boot-sequence.is-exit {
  opacity: 0;
  transition: opacity 820ms ease;
}

.boot-grid,
.boot-core {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.boot-grid {
  background:
    linear-gradient(transparent 96%, rgba(111, 247, 255, 0.08) 100%),
    linear-gradient(90deg, transparent 96%, rgba(255, 79, 216, 0.08) 100%);
  background-size: 100% 26px, 26px 100%;
  opacity: 0.22;
  mask-image: radial-gradient(circle at 50% 50%, black 30%, transparent 85%);
}

.boot-core {
  inset: 50% auto auto 50%;
  width: min(42vw, 420px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255,255,255,0.18) 0 8%, rgba(111, 247, 255, 0.26) 12%, rgba(255, 79, 216, 0.22) 26%, rgba(255, 138, 54, 0.14) 42%, transparent 68%);
  filter: blur(4px);
  animation: boot-core-pulse 2.4s ease-in-out infinite;
}

.boot-copy {
  position: relative;
  width: min(78vw, 760px);
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
  padding: 24px;
}

.boot-kicker {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  color: var(--aqua);
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  opacity: 0.84;
  text-shadow: 0 0 18px rgba(111, 247, 255, 0.24);
}

.boot-line,
.boot-status {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: clamp(1.4rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 247, 255, 0.34);
  text-shadow: 0 0 16px rgba(111, 247, 255, 0.12);
  transition: color 320ms ease, text-shadow 320ms ease, transform 320ms ease, opacity 320ms ease;
  transform: translateY(10px) scale(0.985);
  opacity: 0.42;
}

.boot-line.is-live,
.boot-status.is-live {
  color: #f7fbff;
  opacity: 1;
  transform: translateY(0) scale(1);
  text-shadow: 0 0 24px rgba(255, 79, 216, 0.24), 0 0 30px rgba(111, 247, 255, 0.18);
}

.boot-status-row {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

.boot-status {
  font-size: clamp(0.96rem, 2vw, 1.34rem);
  letter-spacing: 0.26em;
}

.boot-status.evolving {
  color: rgba(111, 247, 255, 0.22);
}

.boot-status.evolving.is-live {
  color: var(--aqua);
}

.boot-progress {
  width: min(56vw, 420px);
  height: 8px;
  margin-top: 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(255,255,255,0.04), 0 0 24px rgba(111, 247, 255, 0.06);
}

.boot-progress span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--pink), var(--aqua));
  box-shadow: 0 0 22px rgba(255, 79, 216, 0.24), 0 0 28px rgba(111, 247, 255, 0.18);
  transition: width 5.1s cubic-bezier(.22,.61,.36,1);
}

body[data-flavor="neon-core"] {
  --body-bg:
    radial-gradient(circle at 12% 18%, rgba(255, 88, 170, 0.22), transparent 22%),
    radial-gradient(circle at 82% 10%, rgba(111, 247, 255, 0.18), transparent 22%),
    radial-gradient(circle at 50% 88%, rgba(255, 138, 54, 0.12), transparent 24%),
    linear-gradient(180deg, #05040b 0%, #090713 42%, #05060b 100%);
}

body[data-flavor="blade-runner-heat"] {
  --aqua: #5ff8ff;
  --pink: #ff3aa8;
  --amber: #ff6a2d;
  --trim: linear-gradient(135deg, rgba(255, 98, 43, 0.98), rgba(255, 46, 166, 0.96) 28%, rgba(255, 216, 79, 0.9) 74%, rgba(255, 103, 54, 0.96));
  --trim-soft: linear-gradient(135deg, rgba(255, 98, 43, 0.36), rgba(255, 46, 166, 0.24), rgba(255, 216, 79, 0.18));
  --body-bg:
    radial-gradient(circle at 18% 20%, rgba(255, 80, 124, 0.34), transparent 20%),
    radial-gradient(circle at 86% 12%, rgba(255, 143, 54, 0.22), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(255, 41, 120, 0.22), transparent 26%),
    linear-gradient(180deg, #14040b 0%, #17040f 38%, #09050b 100%);
  --body-after-bg:
    radial-gradient(circle at 50% 100%, rgba(255, 56, 148, 0.24), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(255, 147, 47, 0.18), transparent 50%);
  --body-before-opacity: 0.18;
  --orb-surface: radial-gradient(circle at 30% 24%, rgba(255,255,255,0.28), rgba(255, 137, 42, 0.34) 20%, rgba(255, 46, 166, 0.38) 46%, rgba(255, 214, 84, 0.2) 66%, rgba(17, 5, 9, 0.98) 100%);
  --orb-shadow-rest:
    0 0 0 16px rgba(255, 58, 168, 0.08),
    0 0 0 34px rgba(255, 106, 45, 0.08),
    0 0 82px rgba(255, 58, 168, 0.42),
    0 0 140px rgba(255, 106, 45, 0.28),
    inset 0 0 50px rgba(255,255,255,0.14);
  --orb-shadow-peak:
    0 0 0 20px rgba(255, 58, 168, 0.12),
    0 0 0 42px rgba(255, 106, 45, 0.12),
    0 0 118px rgba(255, 58, 168, 0.56),
    0 0 200px rgba(255, 106, 45, 0.34),
    inset 0 0 72px rgba(255,255,255,0.22);
  --orb-before-gradient: conic-gradient(from 90deg, rgba(255,106,45,0) 0 8%, rgba(255,106,45,0.74) 18%, rgba(255,46,166,0.68) 42%, rgba(255,220,92,0.52) 66%, rgba(255,106,45,0) 84% 100%);
  --orb-ring-inner-color: rgba(255, 138, 54, 0.48);
  --orb-ring-inner-shadow: 0 0 34px rgba(255, 138, 54, 0.24), inset 0 0 16px rgba(255, 138, 54, 0.16);
  --orb-ring-outer-color: rgba(255, 58, 168, 0.42);
  --orb-ring-outer-shadow: 0 0 48px rgba(255, 58, 168, 0.28), inset 0 0 16px rgba(255, 214, 84, 0.14);
  --orb-shimmer: linear-gradient(140deg, rgba(255, 255, 255, 0.22), transparent 14%, rgba(255, 106, 45, 0.26) 34%, rgba(255, 46, 166, 0.26) 58%, rgba(255, 218, 96, 0.16) 80%, transparent 96%), repeating-linear-gradient(to bottom, rgba(255,255,255,0.05) 0 1px, transparent 1px 5px);
  --orb-scan: linear-gradient(180deg, rgba(255, 126, 52, 0.18), transparent 76%);
  --orb-grid-floor: linear-gradient(to top, rgba(255, 119, 52, 0.16), transparent 64%), repeating-linear-gradient(to right, rgba(255, 68, 140, 0.12) 0 1px, transparent 1px 34px), repeating-linear-gradient(to top, rgba(255, 178, 74, 0.13) 0 1px, transparent 1px 22px);
  --voice-halo-hot: rgba(255, 74, 136, 0.98);
  --voice-halo-cool: rgba(255, 178, 74, 0.94);
  --voice-halo-shadow: 0 0 22px rgba(255, 74, 136, 0.34), 0 0 34px rgba(255, 138, 54, 0.26);
  --voice-halo-opacity: 0.98;
  --orb-breathe-duration: 2.2s;
  --outer-pulse-duration: 1.45s;
  --shimmer-duration: 5.4s;
  --spin-duration: 8.5s;
}

body[data-flavor="night-freight"] {
  --aqua: #9cefff;
  --pink: #6f83ff;
  --amber: #3a91ff;
  --trim: linear-gradient(135deg, rgba(45, 125, 255, 0.98), rgba(66, 181, 255, 0.94) 34%, rgba(111, 131, 255, 0.92) 68%, rgba(180, 233, 255, 0.96));
  --trim-soft: linear-gradient(135deg, rgba(45, 125, 255, 0.28), rgba(66, 181, 255, 0.22), rgba(111, 131, 255, 0.18));
  --body-bg:
    radial-gradient(circle at 16% 18%, rgba(51, 112, 255, 0.22), transparent 22%),
    radial-gradient(circle at 84% 14%, rgba(134, 244, 255, 0.14), transparent 22%),
    radial-gradient(circle at 50% 88%, rgba(56, 106, 255, 0.14), transparent 26%),
    linear-gradient(180deg, #03101a 0%, #07141d 42%, #02070e 100%);
  --body-after-bg:
    radial-gradient(circle at 50% 100%, rgba(41, 104, 255, 0.18), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(123, 231, 255, 0.1), transparent 48%);
  --orb-surface: radial-gradient(circle at 34% 26%, rgba(255,255,255,0.22), rgba(135, 239, 255, 0.26) 18%, rgba(66, 181, 255, 0.28) 44%, rgba(111, 131, 255, 0.22) 66%, rgba(3, 9, 18, 0.98) 100%);
  --orb-shadow-rest:
    0 0 0 14px rgba(58, 145, 255, 0.06),
    0 0 0 30px rgba(156, 239, 255, 0.05),
    0 0 70px rgba(58, 145, 255, 0.26),
    0 0 128px rgba(111, 131, 255, 0.18),
    inset 0 0 38px rgba(255,255,255,0.1);
  --orb-shadow-peak:
    0 0 0 18px rgba(58, 145, 255, 0.08),
    0 0 0 38px rgba(156, 239, 255, 0.08),
    0 0 102px rgba(58, 145, 255, 0.32),
    0 0 164px rgba(111, 131, 255, 0.24),
    inset 0 0 52px rgba(255,255,255,0.14);
  --orb-before-gradient: conic-gradient(from 180deg, rgba(156,239,255,0) 0 18%, rgba(156,239,255,0.64) 24%, rgba(58,145,255,0.54) 46%, rgba(111,131,255,0.48) 68%, rgba(156,239,255,0) 86% 100%);
  --orb-ring-inner-color: rgba(156, 239, 255, 0.38);
  --orb-ring-inner-shadow: 0 0 26px rgba(156, 239, 255, 0.2), inset 0 0 14px rgba(156, 239, 255, 0.12);
  --orb-ring-outer-color: rgba(111, 131, 255, 0.28);
  --orb-ring-outer-shadow: 0 0 36px rgba(111, 131, 255, 0.18), inset 0 0 14px rgba(58, 145, 255, 0.08);
  --orb-shimmer: linear-gradient(140deg, rgba(255, 255, 255, 0.16), transparent 20%, rgba(83, 198, 255, 0.18) 44%, transparent 58%, rgba(176, 235, 255, 0.18) 80%, transparent 96%), repeating-linear-gradient(to bottom, rgba(255,255,255,0.035) 0 1px, transparent 1px 7px);
  --orb-scan: linear-gradient(180deg, rgba(103, 223, 255, 0.14), transparent 82%);
  --orb-grid-floor: linear-gradient(to top, rgba(89, 178, 255, 0.1), transparent 62%), repeating-linear-gradient(to right, rgba(103, 223, 255, 0.11) 0 1px, transparent 1px 48px), repeating-linear-gradient(to top, rgba(94, 126, 255, 0.11) 0 1px, transparent 1px 28px);
  --voice-halo-hot: rgba(130, 170, 255, 0.92);
  --voice-halo-cool: rgba(174, 245, 255, 0.96);
  --voice-halo-shadow: 0 0 18px rgba(130, 170, 255, 0.22), 0 0 26px rgba(174, 245, 255, 0.2);
  --voice-halo-opacity: 0.76;
  --orb-breathe-duration: 4.6s;
  --outer-pulse-duration: 3.3s;
  --shimmer-duration: 10.4s;
  --spin-duration: 14s;
}

body[data-flavor="midnight-orchid"] {
  --aqua: #9cc8ff;
  --pink: #df73ff;
  --amber: #8b58ff;
  --trim: linear-gradient(135deg, rgba(117, 58, 255, 0.96), rgba(223, 115, 255, 0.96) 30%, rgba(121, 58, 188, 0.88) 68%, rgba(156, 200, 255, 0.94));
  --trim-soft: linear-gradient(135deg, rgba(117, 58, 255, 0.28), rgba(223, 115, 255, 0.22), rgba(156, 200, 255, 0.16));
  --body-bg:
    radial-gradient(circle at 14% 18%, rgba(152, 88, 255, 0.24), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(216, 109, 255, 0.16), transparent 24%),
    radial-gradient(circle at 50% 88%, rgba(96, 57, 189, 0.18), transparent 26%),
    linear-gradient(180deg, #0b0615 0%, #13081d 46%, #05040b 100%);
  --body-after-bg:
    radial-gradient(circle at 50% 100%, rgba(171, 87, 255, 0.18), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(128, 194, 255, 0.08), transparent 50%);
  --orb-surface: radial-gradient(circle at 34% 26%, rgba(255,255,255,0.22), rgba(170, 110, 255, 0.24) 18%, rgba(223, 115, 255, 0.32) 44%, rgba(156, 200, 255, 0.16) 70%, rgba(7, 4, 16, 0.98) 100%);
  --orb-shadow-rest:
    0 0 0 14px rgba(171, 87, 255, 0.06),
    0 0 0 28px rgba(223, 115, 255, 0.05),
    0 0 74px rgba(171, 87, 255, 0.24),
    0 0 126px rgba(156, 200, 255, 0.14),
    inset 0 0 38px rgba(255,255,255,0.1);
  --orb-shadow-peak:
    0 0 0 18px rgba(171, 87, 255, 0.08),
    0 0 0 36px rgba(223, 115, 255, 0.08),
    0 0 104px rgba(171, 87, 255, 0.34),
    0 0 170px rgba(156, 200, 255, 0.18),
    inset 0 0 54px rgba(255,255,255,0.14);
  --orb-before-gradient: conic-gradient(from 150deg, rgba(156,200,255,0) 0 10%, rgba(156,200,255,0.42) 18%, rgba(223,115,255,0.56) 44%, rgba(139,88,255,0.54) 70%, rgba(156,200,255,0) 86% 100%);
  --orb-ring-inner-color: rgba(156, 200, 255, 0.3);
  --orb-ring-inner-shadow: 0 0 22px rgba(156, 200, 255, 0.18), inset 0 0 12px rgba(156, 200, 255, 0.08);
  --orb-ring-outer-color: rgba(223, 115, 255, 0.28);
  --orb-ring-outer-shadow: 0 0 34px rgba(223, 115, 255, 0.16), inset 0 0 12px rgba(139, 88, 255, 0.08);
  --orb-shimmer: linear-gradient(140deg, rgba(255, 255, 255, 0.18), transparent 20%, rgba(223, 115, 255, 0.18) 44%, transparent 60%, rgba(156, 200, 255, 0.14) 80%, transparent 96%), repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 8px);
  --orb-scan: linear-gradient(180deg, rgba(184, 117, 255, 0.12), transparent 80%);
  --orb-grid-floor: linear-gradient(to top, rgba(164, 111, 255, 0.1), transparent 62%), repeating-linear-gradient(to right, rgba(156, 200, 255, 0.09) 0 1px, transparent 1px 42px), repeating-linear-gradient(to top, rgba(223, 115, 255, 0.11) 0 1px, transparent 1px 28px);
  --voice-halo-hot: rgba(232, 138, 255, 0.9);
  --voice-halo-cool: rgba(158, 208, 255, 0.9);
  --voice-halo-shadow: 0 0 18px rgba(232, 138, 255, 0.22), 0 0 22px rgba(158, 208, 255, 0.16);
  --voice-halo-opacity: 0.72;
  --orb-breathe-duration: 5.4s;
  --outer-pulse-duration: 4.2s;
  --shimmer-duration: 12s;
  --spin-duration: 16s;
}

body[data-flavor="solar-bloom"] {
  --aqua: #3fe8ff;
  --pink: #ff8db0;
  --amber: #ffc04e;
  --trim: linear-gradient(135deg, rgba(255, 192, 78, 0.98), rgba(255, 141, 176, 0.92) 34%, rgba(63, 232, 255, 0.94) 72%, rgba(255, 240, 157, 0.96));
  --trim-soft: linear-gradient(135deg, rgba(255, 192, 78, 0.26), rgba(255, 141, 176, 0.2), rgba(63, 232, 255, 0.18));
  --body-bg:
    radial-gradient(circle at 16% 16%, rgba(255, 211, 104, 0.26), transparent 20%),
    radial-gradient(circle at 82% 12%, rgba(90, 242, 255, 0.2), transparent 22%),
    radial-gradient(circle at 50% 90%, rgba(255, 149, 98, 0.16), transparent 26%),
    linear-gradient(180deg, #150d06 0%, #1b1010 36%, #0b0810 100%);
  --body-after-bg:
    radial-gradient(circle at 50% 100%, rgba(255, 190, 92, 0.2), transparent 36%),
    radial-gradient(circle at 50% 100%, rgba(96, 241, 255, 0.12), transparent 50%);
  --body-before-opacity: 0.1;
  --orb-surface: radial-gradient(circle at 32% 24%, rgba(255,255,255,0.34), rgba(255, 214, 104, 0.28) 18%, rgba(255, 141, 176, 0.26) 40%, rgba(63, 232, 255, 0.28) 66%, rgba(12, 8, 16, 0.96) 100%);
  --orb-shadow-rest:
    0 0 0 16px rgba(255, 192, 78, 0.08),
    0 0 0 32px rgba(63, 232, 255, 0.06),
    0 0 82px rgba(255, 192, 78, 0.28),
    0 0 140px rgba(63, 232, 255, 0.2),
    inset 0 0 50px rgba(255,255,255,0.16);
  --orb-shadow-peak:
    0 0 0 20px rgba(255, 192, 78, 0.12),
    0 0 0 40px rgba(63, 232, 255, 0.08),
    0 0 120px rgba(255, 192, 78, 0.34),
    0 0 184px rgba(63, 232, 255, 0.24),
    inset 0 0 72px rgba(255,255,255,0.22);
  --orb-before-gradient: conic-gradient(from 100deg, rgba(63,232,255,0) 0 10%, rgba(63,232,255,0.6) 18%, rgba(255,192,78,0.58) 42%, rgba(255,141,176,0.44) 70%, rgba(255,240,157,0.34) 82%, rgba(63,232,255,0) 100%);
  --orb-ring-inner-color: rgba(63, 232, 255, 0.38);
  --orb-ring-inner-shadow: 0 0 28px rgba(63, 232, 255, 0.22), inset 0 0 14px rgba(63, 232, 255, 0.12);
  --orb-ring-outer-color: rgba(255, 192, 78, 0.34);
  --orb-ring-outer-shadow: 0 0 40px rgba(255, 192, 78, 0.2), inset 0 0 14px rgba(255, 141, 176, 0.1);
  --orb-shimmer: linear-gradient(140deg, rgba(255, 255, 255, 0.28), transparent 18%, rgba(255, 228, 118, 0.24) 40%, rgba(255, 141, 176, 0.18) 58%, rgba(63, 232, 255, 0.2) 82%, transparent 96%), repeating-linear-gradient(to bottom, rgba(255,255,255,0.04) 0 1px, transparent 1px 6px);
  --orb-scan: linear-gradient(180deg, rgba(255, 226, 104, 0.16), transparent 78%);
  --orb-grid-floor: linear-gradient(to top, rgba(255, 196, 98, 0.12), transparent 62%), repeating-linear-gradient(to right, rgba(73, 233, 255, 0.1) 0 1px, transparent 1px 42px), repeating-linear-gradient(to top, rgba(255, 143, 176, 0.09) 0 1px, transparent 1px 26px);
  --voice-halo-hot: rgba(255, 210, 104, 0.96);
  --voice-halo-cool: rgba(90, 241, 255, 0.96);
  --voice-halo-shadow: 0 0 20px rgba(255, 210, 104, 0.28), 0 0 28px rgba(90, 241, 255, 0.24);
  --voice-halo-opacity: 0.88;
  --orb-breathe-duration: 3s;
  --outer-pulse-duration: 2s;
  --shimmer-duration: 6.4s;
  --spin-duration: 10s;
}

body[data-flavor="ghost-runner"] {
  --aqua: #d7fbff;
  --pink: #7be2ff;
  --amber: #88a9ff;
  --trim: linear-gradient(135deg, rgba(183, 248, 255, 0.96), rgba(123, 226, 255, 0.9) 36%, rgba(136, 169, 255, 0.9) 72%, rgba(255,255,255,0.92));
  --trim-soft: linear-gradient(135deg, rgba(183, 248, 255, 0.22), rgba(123, 226, 255, 0.18), rgba(136, 169, 255, 0.14));
  --body-bg:
    radial-gradient(circle at 18% 16%, rgba(183, 248, 255, 0.16), transparent 20%),
    radial-gradient(circle at 82% 12%, rgba(123, 226, 255, 0.12), transparent 22%),
    radial-gradient(circle at 50% 90%, rgba(136, 169, 255, 0.1), transparent 26%),
    linear-gradient(180deg, #02070d 0%, #040c13 42%, #010409 100%);
  --body-after-bg:
    radial-gradient(circle at 50% 100%, rgba(123, 226, 255, 0.12), transparent 34%),
    radial-gradient(circle at 50% 100%, rgba(183, 248, 255, 0.07), transparent 50%);
  --body-before-opacity: 0.08;
  --orb-surface: radial-gradient(circle at 34% 24%, rgba(255,255,255,0.24), rgba(183, 248, 255, 0.18) 18%, rgba(123, 226, 255, 0.18) 44%, rgba(136, 169, 255, 0.14) 70%, rgba(4, 8, 14, 0.99) 100%);
  --orb-shadow-rest:
    0 0 0 12px rgba(183, 248, 255, 0.05),
    0 0 0 26px rgba(123, 226, 255, 0.04),
    0 0 56px rgba(183, 248, 255, 0.18),
    0 0 102px rgba(136, 169, 255, 0.14),
    inset 0 0 34px rgba(255,255,255,0.08);
  --orb-shadow-peak:
    0 0 0 14px rgba(183, 248, 255, 0.08),
    0 0 0 32px rgba(123, 226, 255, 0.05),
    0 0 78px rgba(183, 248, 255, 0.22),
    0 0 132px rgba(136, 169, 255, 0.18),
    inset 0 0 48px rgba(255,255,255,0.12);
  --orb-before-gradient: conic-gradient(from 160deg, rgba(183,248,255,0) 0 18%, rgba(183,248,255,0.4) 24%, rgba(123,226,255,0.34) 46%, rgba(136,169,255,0.28) 72%, rgba(183,248,255,0) 90% 100%);
  --orb-ring-inner-color: rgba(183, 248, 255, 0.24);
  --orb-ring-inner-shadow: 0 0 18px rgba(183, 248, 255, 0.14), inset 0 0 10px rgba(183, 248, 255, 0.08);
  --orb-ring-outer-color: rgba(123, 226, 255, 0.18);
  --orb-ring-outer-shadow: 0 0 26px rgba(123, 226, 255, 0.12), inset 0 0 10px rgba(136, 169, 255, 0.06);
  --orb-shimmer: linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 24%, rgba(183, 248, 255, 0.12) 44%, transparent 62%, rgba(136, 169, 255, 0.12) 84%, transparent 96%), repeating-linear-gradient(to bottom, rgba(255,255,255,0.02) 0 1px, transparent 1px 9px);
  --orb-scan: linear-gradient(180deg, rgba(183, 248, 255, 0.1), transparent 82%);
  --orb-grid-floor: linear-gradient(to top, rgba(183, 248, 255, 0.08), transparent 62%), repeating-linear-gradient(to right, rgba(183, 248, 255, 0.08) 0 1px, transparent 1px 48px), repeating-linear-gradient(to top, rgba(123, 226, 255, 0.08) 0 1px, transparent 1px 28px);
  --voice-halo-hot: rgba(214, 251, 255, 0.9);
  --voice-halo-cool: rgba(123, 226, 255, 0.88);
  --voice-halo-shadow: 0 0 14px rgba(214, 251, 255, 0.18), 0 0 20px rgba(123, 226, 255, 0.14);
  --voice-halo-opacity: 0.58;
  --orb-breathe-duration: 5.8s;
  --outer-pulse-duration: 4.8s;
  --shimmer-duration: 14s;
  --spin-duration: 18s;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  padding: 20px;
  display: grid;
  gap: 16px;
  isolation: isolate;
}

.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}
.bg-fx::before,
.bg-fx::after {
  content: "";
  position: absolute;
  inset: auto;
  pointer-events: none;
}
.bg-fx::before {
  width: 68vw;
  height: 68vw;
  left: -12vw;
  top: -20vw;
  background: radial-gradient(circle, rgba(255, 74, 181, 0.14) 0%, rgba(255, 74, 181, 0.08) 22%, transparent 58%);
  filter: blur(30px);
}
.bg-fx::after {
  width: 56vw;
  height: 56vw;
  right: -12vw;
  top: -14vw;
  background: radial-gradient(circle, rgba(96, 255, 255, 0.14) 0%, rgba(96, 255, 255, 0.06) 24%, transparent 60%);
  filter: blur(36px);
}

.card {
  background: linear-gradient(180deg, rgba(15, 12, 27, 0.88), rgba(8, 14, 24, 0.92));
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow), var(--neon-glow);
  backdrop-filter: blur(16px) saturate(1.2);
  position: relative;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background 240ms ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--trim);
  opacity: 0.76;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 12%, rgba(255,255,255,0.06) 26%, transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 22%, rgba(255, 79, 216, 0.05) 100%);
  transform: translateX(-120%);
  animation: shimmer 12s linear infinite;
  pointer-events: none;
}

.masthead,
.command-deck,
.quick-lane,
.sessions-panel,
.primary-console,
.telemetry-panel {
  padding: 18px 20px;
}

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background:
    linear-gradient(90deg, rgba(255, 78, 168, 0.12), transparent 35%),
    linear-gradient(270deg, rgba(104, 236, 255, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(14, 14, 26, 0.96), rgba(10, 16, 25, 0.92));
}
.masthead-title {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.fullscreen-toggle {
  white-space: nowrap;
  min-height: 48px;
}
body.fullscreen-mode .app-shell {
  min-height: 100dvh;
}
.eyebrow {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  color: var(--aqua);
  margin-bottom: 6px;
  text-shadow: 0 0 12px rgba(111, 247, 255, 0.35);
}
h1, h2, p { margin: 0; }
h1 {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: clamp(1.85rem, 3vw, 2.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(255, 79, 216, 0.16), 0 0 42px rgba(111, 247, 255, 0.1);
}
h2 {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(111, 247, 255, 0.12);
}

.top-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 10px;
  min-width: 60%;
}
.metric {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)),
    linear-gradient(140deg, rgba(255, 138, 54, 0.06), rgba(255, 79, 216, 0.08), rgba(111, 247, 255, 0.05));
  border: 1px solid rgba(117, 247, 255, 0.16);
  border-radius: 18px;
  padding: 12px 14px;
  display: grid;
  gap: 4px;
  box-shadow: inset 0 0 22px rgba(255,255,255,0.03), 0 0 18px rgba(255, 79, 216, 0.07), 0 0 26px rgba(111, 247, 255, 0.08);
}
.metric-label {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}
.metric strong {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.08em;
}
.metric.threat strong { color: #ffd26f; }
.metric.token.safe strong { color: var(--lime); }
.metric.token.danger strong { color: #ff697d; }
.metric.token {
  box-shadow: inset 0 0 18px rgba(255,255,255,0.03), 0 0 24px rgba(255, 79, 216, 0.08);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-head span {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-shadow: 0 0 12px rgba(255, 79, 216, 0.1);
}

.deck-buttons,
.shortcuts,
.console-actions,
.status-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.deck-chip,
.chip,
.secondary,
.session-card,
.wake-button,
.mini-btn,
.status-pill {
  font: inherit;
  cursor: pointer;
}

.deck-chip,
.chip,
.secondary,
.session-card,
.mini-btn {
  border: 1px solid rgba(117, 247, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    linear-gradient(145deg, rgba(255, 79, 216, 0.05), rgba(111, 247, 255, 0.05));
  color: var(--text);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 18px rgba(111, 247, 255, 0.08), 0 0 30px rgba(255, 79, 216, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}
.deck-chip:hover,
.chip:hover,
.secondary:hover,
.session-card:hover,
.mini-btn:hover,
.wake-button:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04), 0 0 20px rgba(111, 247, 255, 0.12), 0 0 36px rgba(255, 79, 216, 0.08), 0 14px 30px rgba(0,0,0,0.18);
}
.deck-chip.active,
.session-card.active {
  background: linear-gradient(135deg, rgba(255, 138, 54, 0.24), rgba(255, 79, 216, 0.22), rgba(111, 247, 255, 0.16));
  border-color: rgba(255, 110, 202, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 20px rgba(255, 79, 216, 0.14), 0 0 34px rgba(111, 247, 255, 0.1);
}
.secondary {
  min-height: 50px;
}

.compact-head {
  margin-bottom: 12px;
}

.card-lite {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.024)),
    linear-gradient(145deg, rgba(255, 79, 216, 0.05), rgba(111, 247, 255, 0.03));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: inset 0 0 16px rgba(255,255,255,0.02), 0 0 18px rgba(255, 79, 216, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 220ms ease;
  position: relative;
}

.card-lite:hover,
.telemetry-card:hover,
.stream-box:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 16px rgba(255,255,255,0.03), 0 0 22px rgba(255, 79, 216, 0.08), 0 12px 26px rgba(0,0,0,0.18);
}

.deck-panel {
  margin-top: 14px;
  position: relative;
}

.deck-panel.is-pulsing::after,
.card-lite.is-pulsing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(111,247,255,0.18);
  box-shadow: 0 0 24px rgba(111,247,255,0.14), 0 0 28px rgba(255,79,216,0.1);
  animation: panelPulse 900ms ease-out;
  pointer-events: none;
}

.deck-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.deck-panel-head strong {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.deck-panel-head span {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.deck-panel p {
  color: var(--text);
  opacity: 0.9;
  line-height: 1.45;
  margin-bottom: 12px;
}

.panel-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.panel-stats div {
  display: grid;
  gap: 4px;
}

.panel-stats span,
.mini-readout span,
.route-copy span,
.ambient-sub {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
}

.panel-stats strong,
.mini-readout strong,
.route-copy strong {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 0.96rem;
  letter-spacing: 0.06em;
}

.mission-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1.25fr) 320px;
  gap: 16px;
}

.session-list,
.telemetry-stack {
  display: grid;
  gap: 12px;
}
.session-card {
  text-align: left;
  display: grid;
  gap: 4px;
}
.side-cluster {
  margin-top: 12px;
}
.session-name {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.session-note { color: var(--muted); font-size: 0.92rem; }

.lane-health {
  display: grid;
  gap: 10px;
}

.lane-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.lane-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.lane-row span {
  color: var(--muted);
}

.primary-console {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 138, 54, 0.1), transparent 20%),
    radial-gradient(circle at 50% 16%, rgba(255, 79, 216, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(16, 10, 22, 0.96), rgba(7, 13, 24, 0.94));
}
.console-core {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
}
.all-in-one-core {
  justify-items: center;
}
.avatar-stage {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}
.unified-stage {
  width: 100%;
  justify-items: center;
  grid-template-columns: 1fr;
  text-align: center;
  padding: 18px 8px 10px;
  position: relative;
  overflow: hidden;
}
.unified-stage::before {
  content: "";
  position: absolute;
  inset: 8% 18% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(111, 247, 255, 0.9), rgba(255, 79, 216, 0.85), transparent);
  box-shadow: 0 0 18px rgba(111, 247, 255, 0.25), 0 0 26px rgba(255, 79, 216, 0.2);
}
.unified-stage::after {
  content: "";
  position: absolute;
  inset: auto 7% 12%;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 79, 216, 0.16), rgba(111, 247, 255, 0.08) 42%, transparent 72%);
  filter: blur(24px);
}
.orb-sun,
.orb-grid,
.orb-scan {
  position: absolute;
  pointer-events: none;
}
.orb-sun {
  width: min(42vw, 360px);
  aspect-ratio: 1;
  border-radius: 50%;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle, rgba(255, 163, 79, 0.28) 0%, rgba(255, 79, 216, 0.18) 32%, rgba(80, 17, 60, 0.12) 48%, transparent 68%);
  filter: blur(10px);
}
.orb-grid {
  inset: auto 5% 14px;
  height: 190px;
  background: var(--orb-grid-floor);
  clip-path: polygon(0 100%, 100% 100%, 78% 8%, 22% 8%);
  transform: perspective(420px) rotateX(72deg);
  transform-origin: bottom center;
  opacity: 0.65;
}
.orb-scan {
  inset: 20px 14% auto;
  height: 120px;
  background: var(--orb-scan);
  mix-blend-mode: screen;
  filter: blur(18px);
}
.avatar-orb {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  background: var(--orb-surface);
  box-shadow: var(--orb-shadow-rest);
  animation: orb-breathe var(--orb-breathe-duration) ease-in-out infinite;
  z-index: 2;
  transform: scale(var(--orb-scale)) rotate(var(--orb-tilt));
  transition: transform 360ms ease, box-shadow 360ms ease, filter 360ms ease;
}
.avatar-orb::before {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50%;
  background: var(--orb-before-gradient);
  filter: blur(18px);
  opacity: calc(0.42 * var(--orb-glow));
  animation: spin-slow var(--spin-duration) linear infinite;
}
.avatar-orb::after {
  content: "";
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: var(--orb-after-gradient);
  opacity: calc(0.26 * var(--orb-glow));
  filter: blur(18px);
}
.voice-halo {
  position: absolute;
  inset: -78px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 3;
  transform: scale(var(--voice-shell-scale));
  opacity: var(--voice-shell-opacity);
  filter: blur(var(--voice-shell-blur));
  transition: transform 140ms ease, opacity 140ms ease, filter 160ms ease;
}
.voice-plasma {
  position: absolute;
  inset: -52px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  opacity: var(--voice-plasma-opacity);
  transform: scale(var(--voice-plasma-scale)) rotate(var(--voice-plasma-rotate));
  filter: url(#plasmaFlowSoft) blur(calc(2px + var(--voice-shell-blur)));
  mix-blend-mode: screen;
  transition: transform 140ms ease, opacity 140ms ease, filter 160ms ease;
}
.voice-plasma::before,
.voice-plasma::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 22% 36%, color-mix(in srgb, var(--voice-halo-cool) 82%, transparent) 0 10%, transparent 28%),
    radial-gradient(circle at 76% 28%, color-mix(in srgb, var(--voice-halo-hot) 78%, transparent) 0 9%, transparent 26%),
    radial-gradient(circle at 72% 76%, color-mix(in srgb, var(--amber) 72%, transparent) 0 8%, transparent 24%),
    radial-gradient(circle at 28% 74%, color-mix(in srgb, var(--violet) 72%, transparent) 0 10%, transparent 26%),
    conic-gradient(from 0deg,
      color-mix(in srgb, var(--voice-halo-cool) 94%, transparent) 0deg,
      color-mix(in srgb, var(--voice-halo-cool) 54%, transparent) 52deg,
      color-mix(in srgb, var(--voice-halo-hot) 84%, transparent) 132deg,
      color-mix(in srgb, var(--amber) 74%, transparent) 186deg,
      color-mix(in srgb, var(--voice-halo-hot) 92%, transparent) 246deg,
      color-mix(in srgb, var(--violet) 74%, transparent) 300deg,
      color-mix(in srgb, var(--voice-halo-cool) 94%, transparent) 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 32px), #000 calc(100% - 24px), #000 calc(100% - 14px), transparent 100%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--voice-halo-hot) 16%, transparent), 0 0 34px color-mix(in srgb, var(--voice-halo-cool) 14%, transparent);
}
.voice-plasma::before {
  filter: url(#plasmaFlow);
  animation: plasma-drift 9.2s linear infinite;
}
.voice-plasma::after {
  inset: -8px;
  opacity: 0.58;
  filter: url(#plasmaFlowSoft) blur(7px);
  animation: plasma-drift-reverse 6.4s linear infinite;
}
.voice-halo::before,
.voice-halo::after {
  content: "";
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--voice-halo-cool) 65%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--voice-halo-cool) 42%, transparent), 0 0 52px color-mix(in srgb, var(--voice-halo-hot) 26%, transparent);
  mix-blend-mode: screen;
}
.voice-halo::before {
  transform: scale(var(--voice-burst-scale));
  opacity: calc(var(--voice-burst-opacity) * 0.42);
}
.voice-halo::after {
  inset: 8px;
  border-color: color-mix(in srgb, var(--voice-halo-hot) 72%, transparent);
  box-shadow: 0 0 36px color-mix(in srgb, var(--voice-halo-hot) 36%, transparent), 0 0 60px color-mix(in srgb, var(--voice-halo-cool) 24%, transparent);
  transform: scale(var(--voice-burst-secondary-scale));
  opacity: calc(var(--voice-burst-secondary-opacity) * 0.36);
}
.voice-halo span {
  position: absolute;
  inset: 0;
  transform: rotate(calc(var(--i) * 15deg));
}
.voice-halo span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 16px;
  height: 44px;
  border-radius: 58% 42% 62% 38% / 42% 58% 44% 56%;
  transform: translateX(-50%) scaleY(var(--bar-scale, 0.3));
  transform-origin: center bottom;
  opacity: calc(var(--bar-opacity, 0.26) * var(--voice-halo-opacity));
  background:
    radial-gradient(circle at 40% 28%, color-mix(in srgb, var(--voice-halo-cool) 88%, transparent) 0 18%, transparent 58%),
    linear-gradient(180deg, color-mix(in srgb, var(--voice-halo-hot) 88%, transparent), color-mix(in srgb, var(--voice-halo-cool) 84%, transparent));
  box-shadow: 0 0 34px color-mix(in srgb, var(--voice-halo-hot) 18%, transparent), 0 0 24px color-mix(in srgb, var(--voice-halo-cool) 16%, transparent);
  filter: blur(5px);
  transition: transform 140ms ease, opacity 140ms ease, box-shadow 180ms ease;
}
.fx-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.avatar-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px solid var(--orb-ring-inner-color);
  box-shadow: var(--orb-ring-inner-shadow);
}
.avatar-ring.ring-outer {
  inset: -30px;
  border-color: var(--orb-ring-outer-color);
  box-shadow: var(--orb-ring-outer-shadow);
  animation: pulse-ring var(--outer-pulse-duration) ease-in-out infinite;
}
.avatar-shimmer {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--orb-shimmer);
  mix-blend-mode: screen;
  animation: shimmer-diagonal var(--shimmer-duration) linear infinite;
  z-index: 2;
  pointer-events: none;
}
.avatar-image {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  z-index: 1;
  filter: saturate(1.18) contrast(1.1) brightness(0.98);
}
.avatar-video {
  position: absolute;
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  z-index: 1;
  filter: saturate(1.08) contrast(1.04) brightness(0.98);
  opacity: 0;
  transition: opacity 320ms ease;
  background: rgba(4, 8, 14, 0.22);
}
.avatar-orb.has-video .avatar-video {
  opacity: 1;
}
.avatar-fallback {
  transition: opacity 320ms ease;
}
.avatar-orb.has-video .avatar-fallback {
  opacity: 0;
}
.wake-line {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  text-shadow: 0 0 20px rgba(255, 79, 216, 0.18), 0 0 28px rgba(111, 247, 255, 0.12);
  position: relative;
  display: inline-block;
  padding-left: 0.12em;
}
.wake-line::after {
  content: "// online";
  position: absolute;
  right: -0.4rem;
  top: -0.95rem;
  font-size: 0.48em;
  letter-spacing: 0.24em;
  color: var(--aqua);
  opacity: 0.76;
}
.wake-sub {
  margin-top: 10px;
  color: color-mix(in srgb, var(--muted) 88%, white);
  font-size: 0.96rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.55;
  max-width: 38ch;
}
.centered-copy .wake-sub {
  max-width: 50ch;
}
.status-tags {
  justify-content: center;
  margin-top: 16px;
}
.status-pill {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 18px rgba(111, 247, 255, 0.05);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.status-pill.pink { color: #ff89de; }
.status-pill.cyan { color: #8ffcff; }
.status-pill.amber { color: #ffb173; }

.wake-button {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  min-width: 160px;
  min-height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  color: #090910;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(145deg, rgba(255, 153, 75, 1), rgba(255, 79, 216, 0.96), rgba(111, 247, 255, 0.92));
  box-shadow: 0 18px 40px rgba(255, 79, 216, 0.18), 0 0 30px rgba(111, 247, 255, 0.14);
  position: relative;
  z-index: 2;
}
.wake-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--trim);
  z-index: -1;
  filter: blur(12px);
  opacity: 0.8;
}
.wake-button.listening { animation: pulse-fast 1.1s infinite; }

.console-streams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}

.driver-strip {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.2fr;
  gap: 14px;
  margin-bottom: 16px;
}

.token-well,
.voice-viz-card,
.system-note {
  min-height: 126px;
}

.token-bar {
  width: 100%;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
  box-shadow: inset 0 0 12px rgba(0,0,0,0.2);
  margin: 12px 0 14px;
}

.token-bar span {
  display: block;
  height: 100%;
  width: 84%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--pink), var(--aqua));
  box-shadow: 0 0 18px rgba(255, 79, 216, 0.22), 0 0 22px rgba(111, 247, 255, 0.2);
  transition: width 500ms ease, box-shadow 300ms ease;
}

.mini-readout {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.voice-bars {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 6px;
  align-items: end;
  min-height: 54px;
  margin: 10px 0 12px;
}

.voice-bars span {
  display: block;
  min-height: 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--aqua), var(--pink));
  box-shadow: 0 0 12px rgba(111, 247, 255, 0.18);
  animation: bars 1.2s ease-in-out infinite;
  transition: height 240ms ease, opacity 240ms ease, transform 240ms ease;
}

.voice-bars span:nth-child(1) { height: 14px; animation-delay: 0s; }
.voice-bars span:nth-child(2) { height: 26px; animation-delay: 0.08s; }
.voice-bars span:nth-child(3) { height: 42px; animation-delay: 0.16s; }
.voice-bars span:nth-child(4) { height: 22px; animation-delay: 0.24s; }
.voice-bars span:nth-child(5) { height: 48px; animation-delay: 0.32s; }
.voice-bars span:nth-child(6) { height: 30px; animation-delay: 0.4s; }
.voice-bars span:nth-child(7) { height: 38px; animation-delay: 0.48s; }
.voice-bars span:nth-child(8) { height: 18px; animation-delay: 0.56s; }

.system-note-copy {
  font-size: 0.98rem;
  line-height: 1.56;
  color: #fff0f7;
  letter-spacing: 0.04em;
}
.stream-box,
.telemetry-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.024)),
    linear-gradient(145deg, rgba(255, 79, 216, 0.05), rgba(111, 247, 255, 0.03));
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 16px;
  box-shadow: inset 0 0 16px rgba(255,255,255,0.02), 0 0 24px rgba(255, 79, 216, 0.04);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.stream-title,
.telemetry-label {
  font-family: 'Orbitron', 'Rajdhani', sans-serif;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: color-mix(in srgb, var(--muted) 76%, var(--aqua));
  margin-bottom: 10px;
  text-shadow: 0 0 12px rgba(111, 247, 255, 0.08);
}
.stream-body {
  min-height: 138px;
  font-size: clamp(1rem, 1.8vw, 1.32rem);
  line-height: 1.45;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(111, 247, 255, 0.04);
}
.reply-stream .stream-body {
  font-weight: 600;
  color: #fff2fa;
}

.bar-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  min-height: 90px;
  align-items: end;
}
.bar-grid span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--pink) 42%, var(--aqua));
  box-shadow: 0 0 14px rgba(255, 79, 216, 0.2), 0 0 20px rgba(111, 247, 255, 0.16);
  animation: bars 1.6s ease-in-out infinite;
  transition: height 280ms ease, opacity 280ms ease;
}
.bar-grid span:nth-child(1) { height: 24px; animation-delay: 0s; }
.bar-grid span:nth-child(2) { height: 58px; animation-delay: 0.2s; }
.bar-grid span:nth-child(3) { height: 38px; animation-delay: 0.4s; }
.bar-grid span:nth-child(4) { height: 72px; animation-delay: 0.6s; }
.bar-grid span:nth-child(5) { height: 44px; animation-delay: 0.8s; }
.bar-grid span:nth-child(6) { height: 28px; animation-delay: 1s; }

.radar {
  height: 122px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(111,247,255,0.18), transparent 42%),
    radial-gradient(circle, transparent 45%, rgba(255,255,255,0.06) 45.5%, transparent 47%),
    radial-gradient(circle, transparent 62%, rgba(255,255,255,0.06) 62.5%, transparent 64%),
    conic-gradient(from 220deg, transparent 0 72%, rgba(255, 138, 54, 0.4) 78%, rgba(255, 79, 216, 0.44) 82%, transparent 87%);
  border: 1px solid rgba(111,247,255,0.16);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(111, 247, 255, 0.06), 0 0 20px rgba(255, 79, 216, 0.08);
}
.radar::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
}
.radar::after {
  content: "";
  position: absolute;
  inset: 12% 49.5%;
  background: linear-gradient(180deg, rgba(111,247,255,0.95), transparent 78%);
  transform-origin: bottom center;
  animation: sweep 3.8s linear infinite;
}
.spotify-slot {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    linear-gradient(145deg, rgba(255, 138, 54, 0.05), rgba(111, 247, 255, 0.03), rgba(255, 79, 216, 0.06));
}

.weather-slot,
.route-slot {
  min-height: 150px;
}

.weather-glow {
  min-height: 110px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle, rgba(111,247,255,0.18), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
}

.weather-temp {
  font-size: 2.2rem;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(111, 247, 255, 0.18), 0 0 28px rgba(255, 79, 216, 0.12);
}

.weather-meta {
  color: var(--muted);
  margin-top: 4px;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.route-grid span {
  display: block;
  height: 54px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.015)),
    linear-gradient(145deg, rgba(255, 138, 54, 0.2), rgba(255, 79, 216, 0.12), rgba(111, 247, 255, 0.18));
  box-shadow: inset 0 0 16px rgba(255,255,255,0.02), 0 0 14px rgba(255, 79, 216, 0.06);
  position: relative;
  overflow: hidden;
}

.route-grid span::after {
  content: "";
  position: absolute;
  inset: auto 10% 10px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(111,247,255,0.9), transparent);
  box-shadow: 0 0 16px rgba(111,247,255,0.22);
}

.route-copy {
  display: grid;
  gap: 4px;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 16px;
}

.cascade-hub {
  padding: 18px 20px;
}

.cascade-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.cascade-tab {
  border: 1px solid rgba(117, 247, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025)),
    linear-gradient(145deg, rgba(255, 79, 216, 0.05), rgba(111, 247, 255, 0.05));
  color: var(--text);
  border-radius: 16px;
  padding: 12px 16px;
  font: inherit;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 18px rgba(111, 247, 255, 0.08), 0 0 30px rgba(255, 79, 216, 0.06);
}

.cascade-tab.active {
  background: linear-gradient(135deg, rgba(255, 138, 54, 0.24), rgba(255, 79, 216, 0.22), rgba(111, 247, 255, 0.16));
  border-color: rgba(255, 110, 202, 0.42);
}

.cascade-pane {
  display: none;
  opacity: 0;
  transform: translateY(10px);
}

.cascade-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  animation: cascadeIn 260ms ease;
}

.drive-timer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr 1fr;
  gap: 14px;
}

.weigh-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.95fr;
  gap: 14px;
}

.drive-hero,
.drive-controls,
.drive-warning-card,
.weigh-hero,
.weigh-controls,
.weigh-ladder {
  min-height: 210px;
}

.weigh-station-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 10px 0 8px;
}

.weigh-distance {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 12px 0 16px;
  text-shadow: 0 0 18px rgba(111, 247, 255, 0.18), 0 0 24px rgba(255, 79, 216, 0.1);
}

.weigh-alert {
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.weigh-button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 12px 0;
}

.weigh-chip-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.weigh-button,
.weigh-distance-chip,
.weigh-status-chip {
  justify-content: center;
  text-align: center;
}

.drive-display {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 12px 0 16px;
  text-shadow: 0 0 18px rgba(111, 247, 255, 0.18), 0 0 24px rgba(255, 79, 216, 0.1);
}

.drive-alert {
  border-radius: 16px;
  padding: 12px 14px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 14px;
  border: 1px solid rgba(255,255,255,0.08);
}

.alert-safe {
  background: rgba(111, 247, 255, 0.08);
  color: #d8ffff;
}

.alert-hour {
  background: rgba(255, 176, 104, 0.14);
  color: #ffd7ae;
  box-shadow: 0 0 22px rgba(255, 176, 104, 0.08);
}

.alert-half {
  background: rgba(255, 92, 137, 0.14);
  color: #ffd3df;
  box-shadow: 0 0 24px rgba(255, 92, 137, 0.12);
}

.alert-zero {
  background: rgba(255, 79, 109, 0.2);
  color: #fff1f4;
  box-shadow: 0 0 28px rgba(255, 79, 109, 0.18);
}

.drive-hero.warning-hour {
  box-shadow: inset 0 0 18px rgba(255,255,255,0.03), 0 0 26px rgba(255, 176, 104, 0.12);
}

.drive-hero.warning-half,
.drive-hero.warning-zero {
  box-shadow: inset 0 0 18px rgba(255,255,255,0.03), 0 0 28px rgba(255, 79, 109, 0.16);
}

.time-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 12px 0 14px;
}

.time-inputs label {
  display: grid;
  gap: 8px;
}

.time-inputs span {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.time-inputs input {
  width: 100%;
  min-height: 52px;
  border-radius: 14px;
  border: 1px solid rgba(117, 247, 255, 0.18);
  background: rgba(10, 15, 24, 0.82);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 1.05rem;
}

.drive-adjusts,
.drive-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.drive-adjusts {
  margin-bottom: 12px;
}

.adjust-chip,
.drive-button {
  justify-content: center;
  text-align: center;
}

.primary-drive {
  background: linear-gradient(135deg, rgba(255, 138, 54, 0.22), rgba(255, 79, 216, 0.22), rgba(111, 247, 255, 0.18));
}

.warning-list {
  display: grid;
  gap: 12px;
}

.warning-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  line-height: 1.4;
}

.cascade-ops-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.ops-card {
  padding: 18px 20px;
}

.notice-stack {
  display: grid;
  gap: 10px;
}

.notice-row {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #fff1f8;
  transition: transform 220ms ease, opacity 220ms ease;
}

.notice-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 12px currentColor;
}

.notice-dot.pink { color: #ff84df; background: #ff84df; }
.notice-dot.cyan { color: #7af7ff; background: #7af7ff; }
.notice-dot.amber { color: #ffb068; background: #ffb068; }

.compact-center {
  display: grid;
  place-items: center;
  text-align: center;
}

.ambient-mode {
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 18px rgba(255, 79, 216, 0.2), 0 0 24px rgba(111,247,255,0.14);
  margin: 8px 0 10px;
}

.flavor-card {
  align-content: start;
}

.flavor-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.flavor-chip {
  width: 100%;
  text-align: center;
}

.flavor-chip.active {
  background: linear-gradient(135deg, rgba(255, 138, 54, 0.24), rgba(255, 79, 216, 0.22), rgba(111, 247, 255, 0.16));
  border-color: rgba(255, 110, 202, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05), 0 0 20px rgba(255, 79, 216, 0.14), 0 0 34px rgba(111, 247, 255, 0.1);
}

.rhythm-ring {
  width: 120px;
  height: 120px;
  margin: 6px auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle, rgba(10,14,22,0.95) 44%, transparent 46%),
    conic-gradient(from 180deg, var(--amber), var(--pink), var(--aqua), var(--amber));
  box-shadow: 0 0 24px rgba(255, 79, 216, 0.12), 0 0 30px rgba(111, 247, 255, 0.12);
  animation: pulse-ring 3.2s ease-in-out infinite;
}

.rhythm-core {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 12, 20, 0.96);
  font-weight: 900;
  color: #fff3fb;
}
.spotify-widget {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}
.album-art {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,138,54,0.72), rgba(255,79,216,0.68), rgba(111,247,255,0.78));
  overflow: hidden;
  box-shadow: 0 0 24px rgba(255,79,216,0.18), 0 0 30px rgba(111,247,255,0.12);
}
.album-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 55%);
  animation: pulse 2.8s ease-in-out infinite;
}
.album-mark {
  position: relative;
  z-index: 1;
  font-size: 2rem;
  font-weight: 900;
  color: rgba(8, 11, 18, 0.88);
}
.track-title {
  font-size: 1.05rem;
  font-weight: 800;
}
.track-meta {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 4px;
}
.spotify-bars {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 12px;
  align-items: end;
  min-height: 36px;
}
.spotify-bars span {
  display: block;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--amber), var(--pink), var(--aqua));
  animation: bars 1.2s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(255, 79, 216, 0.16);
  transition: height 240ms ease, opacity 240ms ease;
}
.spotify-bars span:nth-child(1) { height: 10px; animation-delay: 0s; }
.spotify-bars span:nth-child(2) { height: 28px; animation-delay: 0.15s; }
.spotify-bars span:nth-child(3) { height: 18px; animation-delay: 0.3s; }
.spotify-bars span:nth-child(4) { height: 32px; animation-delay: 0.45s; }
.spotify-bars span:nth-child(5) { height: 14px; animation-delay: 0.6s; }
.spotify-controls {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mini-btn {
  border-radius: 14px;
  min-width: 42px;
  min-height: 42px;
}
.mini-btn.play {
  background: linear-gradient(135deg, rgba(255, 138, 54, 0.24), rgba(255, 79, 216, 0.24), rgba(111,247,255,0.22));
  border-color: rgba(255, 138, 54, 0.28);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
@keyframes orb-breathe {
  0%, 100% {
    box-shadow: var(--orb-shadow-rest);
  }
  50% {
    box-shadow: var(--orb-shadow-peak);
  }
}
@keyframes pulse-fast {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.56; }
  50% { transform: scale(1.04); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.56; }
}
@keyframes shimmer {
  0% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@keyframes shimmer-diagonal {
  0% { transform: translateX(-8%) translateY(-1%) rotate(0deg); }
  100% { transform: translateX(8%) translateY(1%) rotate(360deg); }
}
@keyframes bars {
  0%, 100% { opacity: 0.58; transform: scaleY(0.82); }
  50% { opacity: 1; transform: scaleY(1); }
}
@keyframes spin-slow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes boot-core-pulse {
  0%, 100% { opacity: 0.48; transform: translate(-50%, -50%) scale(0.96); }
  50% { opacity: 0.9; transform: translate(-50%, -50%) scale(1.06); }
}
@keyframes plasma-drift {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.035); }
  100% { transform: rotate(360deg) scale(1); }
}
@keyframes plasma-drift-reverse {
  0% { transform: rotate(360deg) scale(1.04); }
  50% { transform: rotate(180deg) scale(0.985); }
  100% { transform: rotate(0deg) scale(1.04); }
}
@keyframes sweep {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@keyframes panelPulse {
  0% { opacity: 0.75; transform: scale(0.995); }
  100% { opacity: 0; transform: scale(1.01); }
}
@keyframes cascadeIn {
  0% { opacity: 0; transform: translateY(10px); }
  100% { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .mission-grid { grid-template-columns: 1fr; }
  .driver-strip,
  .drive-timer-grid,
  .weigh-grid,
  .cascade-ops-grid,
  .ops-grid,
  .panel-stats { grid-template-columns: 1fr; }
  .console-core,
  .console-streams,
  .avatar-stage,
  .masthead { grid-template-columns: 1fr; }
  .masthead { display: grid; }
  .masthead-title { display: grid; }
  .top-metrics { min-width: 0; grid-template-columns: repeat(2, minmax(120px, 1fr)); }
}

@media (orientation: portrait) {
  .app-shell { padding: 12px; gap: 12px; }
  .top-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .console-core,
  .console-streams,
  .avatar-stage,
  .masthead-title {
    display: grid;
    grid-template-columns: 1fr;
  }
  .unified-stage { padding-top: 10px; }
  .avatar-stage { justify-items: center; text-align: center; }
  .avatar-orb {
    width: min(62vw, 260px);
    height: min(62vw, 260px);
  }
  .wake-copy { text-align: center; }
  .wake-sub { max-width: none; }
  .wake-button {
    width: auto;
    min-width: 150px;
    min-height: 50px;
    font-size: 0.96rem;
  }
  .spotify-widget {
    grid-template-columns: 72px 1fr;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .top-metrics { grid-template-columns: 1fr 1fr; }
  .metric { padding: 10px 12px; }
  .stream-body {
    min-height: 108px;
    font-size: 1rem;
  }
  .driver-strip,
  .drive-timer-grid,
  .weigh-grid,
  .cascade-ops-grid,
  .ops-grid,
  .panel-stats,
  .route-grid {
    grid-template-columns: 1fr;
  }
  .time-inputs,
  .drive-adjusts,
  .drive-buttons,
  .weigh-chip-row,
  .weigh-button-grid {
    grid-template-columns: 1fr 1fr;
  }
  .console-actions,
  .deck-buttons,
  .cascade-tabs,
  .shortcuts,
  .status-tags {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .console-actions > *,
  .deck-buttons > *,
  .cascade-tabs > *,
  .shortcuts > *,
  .status-tags > * { width: 100%; }
}
