:root {
  --bg: #050b12;
  --bg-panel: rgba(7, 18, 28, 0.8);
  --bg-panel-soft: rgba(6, 16, 24, 0.64);
  --line: rgba(88, 213, 255, 0.18);
  --line-soft: rgba(88, 213, 255, 0.08);
  --text: #dff8ff;
  --muted: #7e9fb6;
  --accent: #58d5ff;
  --accent-strong: #1dc9ff;
  --accent-green: #29e3a0;
  --accent-warn: #ffc44d;
  --accent-danger: #ff6b82;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: "SF Mono", "Monaco", "Consolas", monospace;
  background:
    radial-gradient(circle at 50% 12%, rgba(88, 213, 255, 0.15), transparent 24%),
    radial-gradient(circle at 14% 20%, rgba(88, 213, 255, 0.08), transparent 18%),
    linear-gradient(180deg, #041018 0%, #07111a 35%, #050c13 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(88, 213, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 213, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 84%);
}

.command-center {
  width: min(1760px, calc(100vw - 26px));
  margin: 0 auto;
  padding: 10px 0 14px;
}

.panel-frame {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.panel-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(88, 213, 255, 0.05), transparent 65%);
}

.timeline-panel {
  padding: 14px;
}

.timeline-list {
  display: grid;
  gap: 8px;
}

.timeline-event {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(88, 213, 255, 0.035);
  color: var(--muted);
  font-size: 0.78rem;
}

.timeline-event.is-current {
  color: var(--text);
  border-color: rgba(88, 213, 255, 0.38);
  box-shadow: inset 0 0 18px rgba(88, 213, 255, 0.06);
}

.timeline-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.timeline-event.is-current .timeline-pulse {
  animation: timelinePulse 1s ease-in-out infinite;
}

.timeline-stage {
  color: var(--accent);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@keyframes timelinePulse {
  50% { transform: scale(1.6); opacity: 0.45; }
}

.topbar {
  display: grid;
  grid-template-columns: 260px 1fr 150px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 10px;
}

.brand-block,
.topbar-center,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: rgba(88, 213, 255, 0.08);
}

.brand-core {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at center, #d9f8ff 0%, var(--accent) 45%, transparent 90%);
  box-shadow: 0 0 18px rgba(88, 213, 255, 0.7);
}

.brand-name,
.brand-subtitle,
.status-pill span,
.clock-block p,
.operator-chip span,
.search-shell span,
.eyebrow,
.kicker,
.support-label,
.micro-badge {
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.brand-name,
.status-pill strong,
.clock-block strong,
h1,
h2,
h3,
strong,
button {
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
}

.brand-name {
  margin: 0;
  font-size: 1.7rem;
}

.brand-subtitle,
.clock-block p,
.search-shell span,
.status-pill span,
.operator-chip span,
.eyebrow,
.kicker,
.micro-badge,
.support-label {
  margin: 0;
  font-size: 0.66rem;
  color: var(--accent);
}

.topbar-center {
  justify-content: center;
  gap: 30px;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(88, 213, 255, 0.05);
}

.status-pill strong {
  color: var(--accent-green);
  font-size: 1rem;
}

.clock-block {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.clock-block strong {
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  color: var(--accent);
}

.topbar-actions {
  justify-content: flex-end;
}

.operator-signal {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 14px var(--accent-green);
  animation: operatorPulse 1.8s ease-in-out infinite;
}

.search-shell {
  display: grid;
  gap: 5px;
  min-width: 180px;
}

.search-shell input {
  border: 1px solid var(--line-soft);
  background: rgba(4, 11, 18, 0.78);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 12px;
  font: inherit;
}

.operator-chip {
  display: grid;
  gap: 4px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(88, 213, 255, 0.05);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 230px minmax(560px, 1fr) 250px;
  gap: 10px;
  align-items: start;
}

.left-rail,
.main-console,
.right-rail {
  display: grid;
  gap: 10px;
}

.left-rail .panel-frame,
.right-rail .panel-frame {
  padding: 14px;
  background: var(--bg-panel-soft);
  border-color: rgba(88, 213, 255, 0.12);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
}

.left-rail {
  font-size: 0.76rem;
}

.right-rail {
  font-size: 0.74rem;
}

h1,
h2,
h3 {
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 0.92;
  max-width: 10ch;
}

h2 {
  font-size: 1.4rem;
}

h3 {
  font-size: 1rem;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  margin-bottom: 10px;
}

.compact-header {
  margin-bottom: 10px;
}

.system-list,
.instruction-list,
.command-log,
.reactor-support {
  display: grid;
  gap: 8px;
}

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

.signal-node {
  display: grid;
  justify-items: center;
  gap: 5px;
  min-width: 0;
  padding: 9px 4px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(88, 213, 255, 0.035);
}

.signal-node > span {
  color: var(--accent);
  font-size: 1rem;
  text-shadow: 0 0 12px rgba(88, 213, 255, 0.7);
}

.signal-node strong {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 0.66rem;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.system-row,
.instruction-list p,
.support-box,
.log-row {
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(88, 213, 255, 0.04);
}

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

.system-row span,
.lede,
.hint,
.transcript-copy,
.voice-caption,
.voice-state,
.summary-source,
.rule-id,
.empty-state,
.log-row p {
  color: var(--muted);
}

.voice-card {
  min-height: 210px;
}

.rail-brand .voice-wave {
  height: 32px;
  margin: 12px 0 8px;
}

.rail-brand .voice-wave span {
  max-height: 28px;
}

.voice-mini {
  display: grid;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}

.voice-mini strong {
  color: var(--accent-green);
}

.voice-mini .transcript-copy {
  margin: 0;
  overflow: hidden;
  font-size: 0.72rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-wave {
  display: flex;
  gap: 6px;
  align-items: end;
  height: 54px;
  margin: 8px 0 12px;
}

.voice-wave span {
  flex: 1 1 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent), rgba(88, 213, 255, 0.2));
  animation: waveIdle 1.8s ease-in-out infinite;
}

.voice-wave span:nth-child(1) { height: 14px; animation-delay: 0s; }
.voice-wave span:nth-child(2) { height: 24px; animation-delay: 0.08s; }
.voice-wave span:nth-child(3) { height: 36px; animation-delay: 0.16s; }
.voice-wave span:nth-child(4) { height: 28px; animation-delay: 0.24s; }
.voice-wave span:nth-child(5) { height: 18px; animation-delay: 0.32s; }
.voice-wave span:nth-child(6) { height: 32px; animation-delay: 0.4s; }
.voice-wave span:nth-child(7) { height: 22px; animation-delay: 0.48s; }
.voice-wave span:nth-child(8) { height: 14px; animation-delay: 0.56s; }

.voice-state {
  margin: 0 0 8px;
  font-size: 1rem;
}

.voice-caption {
  margin: 0 0 14px;
  font-size: 0.82rem;
}

.voice-orb {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: radial-gradient(circle at center, rgba(222, 248, 255, 0.9) 0%, rgba(88, 213, 255, 0.4) 34%, rgba(88, 213, 255, 0.06) 74%);
  box-shadow: 0 0 30px rgba(88, 213, 255, 0.24);
}

.audio-preference { margin-top: 12px; font-size: 0.85rem; }
.audio-preference input { width: auto; }
.audio-preference small { display: block; margin-top: 6px; color: var(--muted); }
.scan-permission { margin-top: 12px; font-size: 0.85rem; }
.scan-permission label { display: flex; align-items: flex-start; gap: 8px; }
.scan-permission input[type="checkbox"] { width: auto; flex: 0 0 auto; margin-top: 3px; }
.scan-permission small { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }

.scan-scope {
  margin-block: 16px;
  padding: 14px;
  border: 1px solid rgba(88, 213, 255, 0.2);
  border-radius: 12px;
  font-size: 0.85rem;
  overflow-wrap: anywhere;
}

.scan-scope summary { cursor: pointer; color: #9bdeef; }
#stop-scan-button[hidden] { display: none; }
.scan-scope label { display: block; margin-top: 12px; }
.scan-scope textarea { width: 100%; box-sizing: border-box; }
.scan-scope input[type="checkbox"] { width: auto; }
.scan-scope ul { padding-left: 20px; max-height: 320px; overflow-y: auto; }

.hero-console {
  padding: 18px;
  min-height: 550px;
}

.hero-copy {
  display: none;
}

.hero-copy .lede {
  margin-top: 14px;
  font-size: 0.96rem;
  line-height: 1.55;
}

.hero-orb-shell {
  height: 100%;
  min-height: 510px;
  display: grid;
  place-items: center;
}

.reactor-shell {
  position: relative;
  width: min(100%, 760px);
  height: 500px;
  display: grid;
  place-items: center;
}

.reactor-grid,
.reactor-blueprint {
  position: absolute;
  inset: 0;
}

.reactor-grid {
  background:
    linear-gradient(rgba(88, 213, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 213, 255, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
}

.reactor-blueprint {
  opacity: 0.22;
  background:
    radial-gradient(circle at center, transparent 0 28%, rgba(88, 213, 255, 0.08) 28.2%, transparent 28.7%),
    radial-gradient(circle at center, transparent 0 40%, rgba(88, 213, 255, 0.05) 40.3%, transparent 40.8%);
}

.reactor-rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

#reactor-galaxy {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.reactor-shell.galaxy-reactor {
  width: 100%;
}

.galaxy-reactor .reactor-grid,
.galaxy-reactor .reactor-blueprint {
  opacity: 0.06;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.galaxy-reactor .reactor-rings {
  transform: scale(0.42);
  opacity: 0.85;
  pointer-events: none;
}

.hero-console:has(.galaxy-reactor) {
  background: radial-gradient(ellipse at center, #0a1c29 0%, #030a10 70%);
}

@media (prefers-reduced-motion: reduce) {
  .galaxy-reactor *,
  .command-actions .speak-button {
    animation: none !important;
  }
}

.reactor-halo,
.reactor-shroud,
.reactor-lattice,
.reactor-segment,
.reactor-ticks,
.reactor-scan-arc,
.reactor-dot-band,
.reactor-ring,
.reactor-orbit {
  position: absolute;
  border-radius: 50%;
}

.reactor-shroud {
  width: 422px;
  height: 422px;
  background:
    repeating-conic-gradient(
      from 12deg,
      rgba(119, 232, 255, 0.95) 0deg 4deg,
      rgba(82, 177, 207, 0.34) 4deg 9deg,
      transparent 9deg 17deg
    );
  -webkit-mask: radial-gradient(circle, transparent 66%, #000 66.6% 73%, transparent 73.7%);
  mask: radial-gradient(circle, transparent 66%, #000 66.6% 73%, transparent 73.7%);
  filter: drop-shadow(0 0 11px rgba(83, 220, 255, 0.28));
  animation: shroudTurn 28s linear infinite;
}

.reactor-lattice {
  width: 352px;
  height: 352px;
  background:
    repeating-conic-gradient(from 18deg, rgba(117, 232, 255, 0.42) 0deg 1deg, transparent 1deg 12deg),
    repeating-radial-gradient(circle, transparent 0 21px, rgba(88, 213, 255, 0.18) 22px 23px, transparent 24px 34px);
  -webkit-mask: radial-gradient(circle, transparent 0 43%, #000 43.5% 77%, transparent 77.5%);
  mask: radial-gradient(circle, transparent 0 43%, #000 43.5% 77%, transparent 77.5%);
  opacity: 0.78;
  animation: latticeDrift 14s linear infinite;
}

.reactor-halo {
  width: 380px;
  height: 380px;
  border: 2px solid rgba(117, 231, 255, 0.88);
  box-shadow:
    0 0 24px rgba(88, 213, 255, 0.58),
    inset 0 0 28px rgba(88, 213, 255, 0.15);
  animation: haloBreath 4.8s ease-in-out infinite;
}

.reactor-segment {
  width: 326px;
  height: 326px;
  border: 16px solid transparent;
}

.segment-a {
  border-top-color: rgba(126, 234, 255, 0.86);
  border-right-color: rgba(126, 234, 255, 0.36);
  transform: rotate(18deg);
}

.segment-b {
  border-bottom-color: rgba(126, 234, 255, 0.25);
  border-left-color: rgba(126, 234, 255, 0.8);
  transform: rotate(138deg);
}

.segment-c {
  width: 360px;
  height: 360px;
  border-width: 8px;
  border-top-color: rgba(126, 234, 255, 0.84);
  border-left-color: rgba(126, 234, 255, 0.22);
  transform: rotate(304deg);
}

.segment-d {
  width: 270px;
  height: 270px;
  border-width: 4px;
  border-left-color: rgba(255, 194, 73, 0.88);
  border-bottom-color: rgba(255, 194, 73, 0.48);
  transform: rotate(192deg);
}

.reactor-ticks {
  width: 344px;
  height: 344px;
  background:
    repeating-conic-gradient(from 0deg, rgba(119, 229, 255, 0.92) 0deg 1.2deg, transparent 1.2deg 8deg);
  -webkit-mask: radial-gradient(circle, transparent 72%, #000 72.8%, #000 76.4%, transparent 77%);
  mask: radial-gradient(circle, transparent 72%, #000 72.8%, #000 76.4%, transparent 77%);
}

.reactor-scan-arc {
  width: 292px;
  height: 292px;
  border: 4px solid transparent;
  border-top-color: rgba(255, 196, 77, 0.95);
  border-left-color: rgba(255, 196, 77, 0.44);
  transform: rotate(188deg);
  animation: scanArc 4.6s linear infinite;
}

.reactor-dot-band {
  width: 226px;
  height: 226px;
  background:
    repeating-conic-gradient(from 90deg, rgba(255, 220, 92, 0.9) 0deg 1deg, transparent 1deg 10deg);
  -webkit-mask: radial-gradient(circle, transparent 75%, #000 76.6%, #000 79%, transparent 79.8%);
  mask: radial-gradient(circle, transparent 75%, #000 76.6%, #000 79%, transparent 79.8%);
}

.reactor-ring {
  border: 1px solid rgba(88, 213, 255, 0.2);
  animation: spin 18s linear infinite;
}

.ring-one {
  width: 390px;
  height: 390px;
}

.ring-two {
  width: 312px;
  height: 312px;
  animation-direction: reverse;
  animation-duration: 14s;
}

.ring-three {
  width: 218px;
  height: 218px;
  animation-duration: 10s;
}

.reactor-orbit {
  border: 1px solid rgba(100, 220, 255, 0.14);
}

.reactor-iris {
  position: absolute;
  width: 202px;
  height: 202px;
  border-radius: 50%;
  border: 1px solid rgba(139, 237, 255, 0.38);
  box-shadow: inset 0 0 28px rgba(66, 188, 224, 0.14);
  animation: irisBreath 5.4s ease-in-out infinite;
}

.reactor-iris span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 22px;
  height: 76px;
  margin: -38px 0 0 -11px;
  transform-origin: 50% 38px;
  border: 1px solid rgba(168, 241, 255, 0.34);
  background: linear-gradient(180deg, rgba(167, 242, 255, 0.28), rgba(17, 77, 105, 0.04));
  clip-path: polygon(34% 0, 66% 0, 100% 100%, 0 100%);
}

.reactor-iris span:nth-child(1) { transform: rotate(0deg) translateY(-61px); }
.reactor-iris span:nth-child(2) { transform: rotate(60deg) translateY(-61px); }
.reactor-iris span:nth-child(3) { transform: rotate(120deg) translateY(-61px); }
.reactor-iris span:nth-child(4) { transform: rotate(180deg) translateY(-61px); }
.reactor-iris span:nth-child(5) { transform: rotate(240deg) translateY(-61px); }
.reactor-iris span:nth-child(6) { transform: rotate(300deg) translateY(-61px); }

.reactor-voice-ripples {
  position: absolute;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.reactor-voice-ripples span {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(168, 242, 255, 0.8);
  border-radius: 50%;
  opacity: 0;
}

.orbit-one {
  width: 470px;
  height: 150px;
}

.orbit-two {
  width: 430px;
  height: 120px;
  transform: rotate(28deg);
}

.orbit-three {
  width: 430px;
  height: 120px;
  transform: rotate(-28deg);
}

.reactor-core {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle at center, rgba(228, 250, 255, 0.92) 0%, rgba(88, 213, 255, 0.5) 26%, rgba(18, 72, 101, 0.6) 66%, rgba(5, 14, 22, 0.15) 100%);
  border: 1px solid rgba(88, 213, 255, 0.3);
  box-shadow: 0 0 100px rgba(88, 213, 255, 0.36);
  overflow: hidden;
}

.reactor-core::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px solid rgba(180, 244, 255, 0.18);
}

.core-pulse,
.core-radar {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.core-pulse {
  inset: 18px;
  background: radial-gradient(circle at center, rgba(233, 251, 255, 0.95), rgba(88, 213, 255, 0.36) 40%, rgba(88, 213, 255, 0.04) 70%);
  animation: pulse 2.2s ease-in-out infinite;
}

.core-radar {
  background: conic-gradient(from 0deg, transparent 0deg 300deg, rgba(156, 240, 255, 0.42) 330deg, transparent 360deg);
  animation: spin 6s linear infinite;
  mix-blend-mode: screen;
}

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

.support-panel,
.prompt-panel,
.control-panel,
.dock-panel,
#status-card,
#summary-card,
#findings-card {
  padding: 14px;
}

.command-deck {
  display: grid;
  gap: 12px;
}

.command-deck .audit-form {
  gap: 10px;
}

.command-deck .audit-form + .audit-form {
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.command-deck .audit-header {
  align-items: center;
  margin: 0;
}

.command-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.interaction-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.interaction-legend i {
  color: var(--accent);
  font-size: 0.88rem;
  font-style: normal;
  text-shadow: 0 0 10px rgba(88, 213, 255, 0.6);
}

.reactor-support {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.support-box strong {
  font-size: 1.08rem;
}

.audit-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  margin-bottom: 10px;
}

.audit-form,
.field-stack,
.search-shell {
  display: grid;
  gap: 8px;
}

label {
  color: var(--muted);
  font-size: 0.84rem;
}

.target-row,
.control-row,
.voice-actions,
.chat-row {
  display: grid;
  gap: 10px;
}

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

.target-input-shell {
  position: relative;
}

.target-type-badge {
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(88, 213, 255, 0.08);
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}

.target-type-badge[data-kind="website"] {
  color: var(--accent-green);
  border-color: rgba(41, 227, 160, 0.22);
  background: rgba(41, 227, 160, 0.08);
}

.target-type-badge[data-kind="repository"] {
  color: var(--accent);
  border-color: rgba(88, 213, 255, 0.22);
  background: rgba(88, 213, 255, 0.08);
}

.target-type-badge[data-kind="local"] {
  color: #ffe189;
  border-color: rgba(255, 225, 137, 0.22);
  background: rgba(255, 225, 137, 0.08);
}

.control-row {
  grid-template-columns: 180px 1fr;
  align-items: end;
}

.voice-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.chat-row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.icon-button {
  display: grid;
  width: 52px;
  min-height: 46px;
  place-items: center;
  padding: 0;
  font-size: 1.18rem;
}

.command-actions .icon-button {
  width: 100%;
}

.command-actions .speak-button {
  display: inline-flex;
  grid-column: span 2;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #03131c;
  background: linear-gradient(135deg, #9bf2ff 0%, var(--accent-strong) 100%);
  box-shadow: 0 0 26px rgba(88, 213, 255, 0.35);
  animation: speakPromptPulse 2.2s ease-in-out infinite;
}

.speak-button > span[aria-hidden="true"] {
  color: #03131c;
  filter: none;
}

.speak-action-label {
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body[data-mode="Voice Intake"] .command-actions .speak-button {
  animation: none;
  background: rgba(88, 213, 255, 0.18);
  border-color: rgba(88, 213, 255, 0.6);
  color: var(--text);
}

body[data-mode="Voice Intake"] .speak-button > span[aria-hidden="true"] {
  color: var(--accent);
}

.icon-button > span[aria-hidden="true"] {
  color: var(--accent);
  filter: drop-shadow(0 0 8px rgba(88, 213, 255, 0.45));
}

.primary-button.icon-button > span[aria-hidden="true"] {
  color: #03131c;
}

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

input,
textarea,
button,
pre {
  border-radius: 14px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(4, 11, 18, 0.82);
  color: var(--text);
  padding: 16px 18px;
  font: inherit;
}

input {
  padding-right: 110px;
}

textarea {
  min-height: 68px;
  resize: vertical;
  line-height: 1.5;
}

button {
  border: 1px solid transparent;
  min-height: 54px;
  padding: 0 18px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, opacity 140ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.primary-button {
  background: linear-gradient(135deg, #8eeeff 0%, var(--accent-strong) 100%);
  color: #03131c;
  box-shadow: 0 0 28px rgba(88, 213, 255, 0.3);
}

.ghost-button,
.voice-button {
  background: rgba(88, 213, 255, 0.06);
  border-color: var(--line);
}

.voice-button,
.ghost-button,
.primary-button {
  position: relative;
  overflow: hidden;
}

.voice-button::after,
.ghost-button::after,
.primary-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
  transform: translateX(-130%);
  animation: sheen 4.8s ease-in-out infinite;
}

.dock-panel {
  display: flex;
  align-items: center;
  gap: 14px;
}

.dock-line {
  flex: 1 1 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(88, 213, 255, 0.4), transparent);
}

.dock-core {
  min-width: 320px;
  padding: 12px 22px;
  text-align: center;
  border-radius: 999px;
  border: 1px solid rgba(88, 213, 255, 0.26);
  background: radial-gradient(circle at center, rgba(88, 213, 255, 0.18), rgba(88, 213, 255, 0.03) 70%);
  box-shadow: 0 0 30px rgba(88, 213, 255, 0.18);
}

.dock-core span {
  display: block;
  margin-bottom: 4px;
  color: var(--accent);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dock-core strong {
  font-size: 1rem;
}

.command-log {
  max-height: 270px;
  overflow: auto;
}

.transcript-card {
  min-height: 150px;
}

.prompt-panel .instruction-list p {
  font-size: 0.8rem;
}

.protocol-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.protocol-strip span {
  display: grid;
  min-height: 42px;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  color: var(--accent);
  font-size: 1.2rem;
  background: rgba(88, 213, 255, 0.04);
  text-shadow: 0 0 12px rgba(88, 213, 255, 0.65);
  animation: protocolBlink 3.2s ease-in-out infinite;
}

.protocol-strip span:nth-child(2) { animation-delay: 0.4s; }
.protocol-strip span:nth-child(3) { animation-delay: 0.8s; }
.protocol-strip span:nth-child(4) { animation-delay: 1.2s; }

@keyframes operatorPulse {
  50% { transform: scale(1.45); opacity: 0.52; }
}

@keyframes protocolBlink {
  50% { border-color: rgba(88, 213, 255, 0.42); box-shadow: 0 0 18px rgba(88, 213, 255, 0.12); }
}

@keyframes speakPromptPulse {
  50% { box-shadow: 0 0 38px rgba(88, 213, 255, 0.65); transform: translateY(-1px); }
}

.log-row p {
  margin: 6px 0 0;
  line-height: 1.45;
}

.live-badge {
  color: var(--accent-green);
}

.status-card.loading {
  border-color: rgba(88, 213, 255, 0.34);
}

.status-card.success {
  border-color: rgba(41, 227, 160, 0.4);
}

.status-card.error {
  border-color: rgba(255, 107, 130, 0.42);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.metric {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(88, 213, 255, 0.04);
}

.metric-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.severity-critical strong,
.severity-critical .badge {
  color: var(--accent-danger);
}

.severity-high strong,
.severity-high .badge {
  color: var(--accent-warn);
}

.severity-medium strong,
.severity-medium .badge {
  color: #ffe189;
}

.severity-low strong,
.severity-low .badge {
  color: var(--accent-green);
}

.findings-list {
  display: grid;
  gap: 12px;
  max-height: 420px;
  overflow: auto;
}

.finding {
  padding: 16px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: rgba(88, 213, 255, 0.04);
}

.finding-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.badge {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

pre {
  margin: 12px 0;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
}

.micro-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: rgba(88, 213, 255, 0.04);
}

.hidden {
  display: none;
}

body[data-mode="Voice Intake"] .reactor-shell,
body[data-mode="Wake"] .reactor-shell,
body[data-mode="Greeting"] .reactor-shell,
body[data-mode="Speaking"] .reactor-shell,
body[data-mode="Briefing"] .reactor-shell {
  filter: brightness(1.06);
}

body[data-cue="armed"] .reactor-shell {
  filter:
    brightness(1.14)
    drop-shadow(0 0 22px rgba(110, 233, 255, 0.24))
    drop-shadow(0 0 52px rgba(110, 233, 255, 0.32));
}

body[data-mode="Voice Intake"] .reactor-halo,
body[data-mode="Wake"] .reactor-halo,
body[data-mode="Speaking"] .reactor-halo,
body[data-mode="Briefing"] .reactor-halo {
  box-shadow:
    0 0 34px rgba(88, 213, 255, 0.78),
    inset 0 0 34px rgba(88, 213, 255, 0.22);
}

body[data-mode="Voice Intake"] .reactor-shroud,
body[data-mode="Wake"] .reactor-shroud {
  animation-duration: 7s;
  filter: drop-shadow(0 0 18px rgba(125, 241, 255, 0.55));
}

body[data-mode="Speaking"] .reactor-shroud,
body[data-mode="Briefing"] .reactor-shroud {
  animation-duration: 4s;
}

body[data-mode="Auditing"] .reactor-shroud {
  animation-duration: 2.8s;
  filter: drop-shadow(0 0 18px rgba(255, 196, 77, 0.48));
}

body[data-mode="Auditing"] .reactor-lattice {
  animation-duration: 2.2s;
  filter: hue-rotate(320deg) saturate(1.35);
}

body[data-mode="Voice Intake"] .reactor-lattice,
body[data-mode="Wake"] .reactor-lattice {
  animation-duration: 3.8s;
  opacity: 1;
}

body[data-mode="Speaking"] .reactor-iris,
body[data-mode="Briefing"] .reactor-iris {
  animation-duration: 1.2s;
  box-shadow: inset 0 0 34px rgba(108, 222, 255, 0.38), 0 0 25px rgba(84, 218, 255, 0.22);
}

body[data-mode="Speaking"] .reactor-voice-ripples span,
body[data-mode="Briefing"] .reactor-voice-ripples span {
  animation: voiceRipple 1.35s cubic-bezier(0.12, 0.7, 0.22, 1) infinite;
}

body[data-mode="Speaking"] .reactor-voice-ripples span:nth-child(2),
body[data-mode="Briefing"] .reactor-voice-ripples span:nth-child(2) {
  animation-delay: 0.45s;
}

body[data-mode="Speaking"] .reactor-voice-ripples span:nth-child(3),
body[data-mode="Briefing"] .reactor-voice-ripples span:nth-child(3) {
  animation-delay: 0.9s;
}

body[data-mode="Speaking"] .reactor-core,
body[data-mode="Briefing"] .reactor-core {
  animation: coreSpeak 0.78s ease-in-out infinite;
}

body[data-mode="Voice Intake"] .reactor-iris,
body[data-mode="Wake"] .reactor-iris {
  animation-duration: 0.82s;
  border-color: rgba(201, 250, 255, 0.72);
}

body[data-mode="Auditing"] .reactor-iris {
  border-color: rgba(255, 205, 97, 0.7);
  box-shadow: inset 0 0 34px rgba(255, 187, 53, 0.22);
}

body[data-cue="armed"] .reactor-halo {
  animation: armedFlash 0.88s ease-out 1;
  box-shadow:
    0 0 40px rgba(121, 237, 255, 0.94),
    0 0 88px rgba(121, 237, 255, 0.48),
    inset 0 0 42px rgba(121, 237, 255, 0.28);
}

body[data-mode="Voice Intake"] .reactor-scan-arc,
body[data-mode="Wake"] .reactor-scan-arc {
  animation-duration: 1.9s;
}

body[data-cue="armed"] .reactor-scan-arc {
  animation-duration: 1.1s;
  border-top-color: rgba(198, 249, 255, 0.98);
  border-left-color: rgba(198, 249, 255, 0.7);
}

body[data-mode="Speaking"] .reactor-scan-arc,
body[data-mode="Briefing"] .reactor-scan-arc {
  animation-duration: 1s;
}

body[data-mode="Voice Intake"] .reactor-ticks,
body[data-mode="Wake"] .reactor-ticks {
  animation: tickFlash 1s ease-in-out infinite;
}

body[data-cue="armed"] .reactor-ticks,
body[data-cue="armed"] .reactor-dot-band {
  filter: drop-shadow(0 0 10px rgba(178, 246, 255, 0.66));
}

body[data-mode="Speaking"] .reactor-ticks,
body[data-mode="Briefing"] .reactor-ticks {
  animation: tickFlash 0.46s ease-in-out infinite;
}

body[data-mode="Voice Intake"] .core-pulse,
body[data-mode="Wake"] .core-pulse {
  animation-duration: 1s;
}

body[data-cue="armed"] .core-pulse {
  animation: pulse 0.7s ease-in-out 2;
  background: radial-gradient(circle at center, rgba(245, 254, 255, 0.99), rgba(138, 236, 255, 0.52) 38%, rgba(88, 213, 255, 0.08) 72%);
}

body[data-cue="armed"] .reactor-core {
  box-shadow:
    0 0 118px rgba(88, 213, 255, 0.5),
    0 0 36px rgba(220, 251, 255, 0.34);
}

body[data-mode="Speaking"] .core-pulse,
body[data-mode="Briefing"] .core-pulse {
  animation-duration: 0.64s;
}

body[data-mode="Voice Intake"] .voice-wave span,
body[data-mode="Wake"] .voice-wave span {
  animation-duration: 0.8s;
}

body[data-mode="Speaking"] .voice-wave span,
body[data-mode="Briefing"] .voice-wave span {
  animation-duration: 0.46s;
}

@keyframes waveIdle {
  0%, 100% { transform: scaleY(0.55); opacity: 0.68; }
  50% { transform: scaleY(1); opacity: 1; }
}

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

@keyframes latticeDrift {
  to { transform: rotate(-360deg) scale(1.02); }
}

@keyframes irisBreath {
  0%, 100% { transform: scale(0.94) rotate(0deg); opacity: 0.78; }
  50% { transform: scale(1.04) rotate(4deg); opacity: 1; }
}

@keyframes voiceRipple {
  0% { transform: scale(0.55); opacity: 0.95; }
  75% { opacity: 0.22; }
  100% { transform: scale(3.15); opacity: 0; }
}

@keyframes coreSpeak {
  0%, 100% { transform: scale(0.96); box-shadow: 0 0 76px rgba(88, 213, 255, 0.3); }
  50% { transform: scale(1.06); box-shadow: 0 0 124px rgba(130, 236, 255, 0.68); }
}

@keyframes pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.86; }
  50% { transform: scale(1.04); opacity: 1; }
}

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

@keyframes scanArc {
  from { transform: rotate(188deg); }
  to { transform: rotate(548deg); }
}

@keyframes tickFlash {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes haloBreath {
  0%, 100% {
    transform: scale(0.994);
    box-shadow:
      0 0 20px rgba(88, 213, 255, 0.46),
      inset 0 0 26px rgba(88, 213, 255, 0.11);
  }

  50% {
    transform: scale(1.01);
    box-shadow:
      0 0 30px rgba(88, 213, 255, 0.7),
      inset 0 0 36px rgba(88, 213, 255, 0.18);
  }
}

@keyframes armedFlash {
  0% {
    transform: scale(0.985);
    opacity: 0.76;
  }
  38% {
    transform: scale(1.024);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes sheen {
  0%, 70%, 100% { transform: translateX(-130%); }
  82% { transform: translateX(130%); }
}

@media (max-width: 1400px) {
  .dashboard-grid {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .right-rail {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, 1fr);
  }

  .feed-panel,
  #findings-card {
    min-height: 100%;
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-center,
  .topbar-actions {
    justify-content: space-between;
  }

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

  .right-rail {
    grid-template-columns: 1fr;
  }

  .ops-grid,
  .control-row,
  .reactor-support,
  .voice-actions {
    grid-template-columns: 1fr;
  }

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

  .command-actions {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .hero-console {
    min-height: 610px;
  }

  .hero-copy {
    position: relative;
    left: auto;
    top: auto;
    margin-bottom: 20px;
  }

  .hero-orb-shell {
    min-height: 390px;
    height: 390px;
  }

  .reactor-shell {
    height: 380px;
  }

  .reactor-voice-ripples {
    width: 110px;
    height: 110px;
  }

  .reactor-halo {
    width: 300px;
    height: 300px;
  }

  .reactor-shroud {
    width: 332px;
    height: 332px;
  }

  .reactor-lattice {
    width: 282px;
    height: 282px;
  }

  .reactor-segment {
    width: 256px;
    height: 256px;
  }

  .segment-c {
    width: 284px;
    height: 284px;
  }

  .segment-d {
    width: 214px;
    height: 214px;
  }

  .reactor-ticks {
    width: 270px;
    height: 270px;
  }

  .reactor-scan-arc {
    width: 232px;
    height: 232px;
  }

  .reactor-dot-band {
    width: 180px;
    height: 180px;
  }

  .reactor-iris {
    width: 166px;
    height: 166px;
  }

  .reactor-iris span {
    height: 62px;
    margin-top: -31px;
  }

  .reactor-iris span:nth-child(1) { transform: rotate(0deg) translateY(-50px); }
  .reactor-iris span:nth-child(2) { transform: rotate(60deg) translateY(-50px); }
  .reactor-iris span:nth-child(3) { transform: rotate(120deg) translateY(-50px); }
  .reactor-iris span:nth-child(4) { transform: rotate(180deg) translateY(-50px); }
  .reactor-iris span:nth-child(5) { transform: rotate(240deg) translateY(-50px); }
  .reactor-iris span:nth-child(6) { transform: rotate(300deg) translateY(-50px); }

  .ring-one {
    width: 308px;
    height: 308px;
  }

  .ring-two {
    width: 248px;
    height: 248px;
  }

  .ring-three {
    width: 174px;
    height: 174px;
  }

  .reactor-orbit {
    width: 340px;
  }

  .dock-panel {
    flex-direction: column;
  }

  .dock-core {
    min-width: 0;
    width: 100%;
  }
}
