/* =========================================================
   LEARNING REWIRED LAB — SIGNAL ROOM PROTOTYPE
   Native embedded prototype CSS
   File: /assets/css/innovation-lab/signal-room-prototype.css

   Notes:
   - Adapted from the standalone Signal Room prototype.
   - Scoped under .srp-prototype so it can live inside the
     Learning Rewired Lab ecosystem without breaking global styles.
   ========================================================= */

.srp-prototype {
  --srp-bg: #050816;
  --srp-bg-2: #071025;
  --srp-panel: rgba(255, 255, 255, 0.08);
  --srp-panel-strong: rgba(255, 255, 255, 0.13);
  --srp-line: rgba(255, 255, 255, 0.16);
  --srp-text: #f7f8ff;
  --srp-muted: #aab4d4;
  --srp-soft: #d9def5;
  --srp-blue: #4da3ff;
  --srp-cobalt: #5b6cff;
  --srp-violet: #8f6cff;
  --srp-teal: #36d6c6;
  --srp-warning: #f4c95d;
  --srp-danger: #ff6b8a;
  --srp-success: #76e4b2;
  --srp-radius-lg: 28px;
  --srp-radius-md: 18px;
  --srp-radius-sm: 12px;
  --srp-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
  --srp-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  position: relative;
  overflow: hidden;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  color: var(--srp-text);
  font-family: var(--srp-font);
  background:
    radial-gradient(circle at 15% 20%, rgba(77, 163, 255, 0.28), transparent 32%),
    radial-gradient(circle at 85% 12%, rgba(143, 108, 255, 0.22), transparent 34%),
    radial-gradient(circle at 70% 85%, rgba(54, 214, 198, 0.12), transparent 30%),
    linear-gradient(145deg, #030511 0%, #071025 48%, #050816 100%);
  isolation: isolate;
}

.srp-prototype *,
.srp-prototype *::before,
.srp-prototype *::after {
  box-sizing: border-box;
}

.srp-prototype::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, black 0%, transparent 78%);
  opacity: 0.5;
  z-index: 0;
}

.srp-prototype::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 42%,
    transparent 48%,
    transparent 100%
  );
  animation: srp-scan 7s linear infinite;
  opacity: 0.45;
  z-index: 0;
}

@keyframes srp-scan {
  0% {
    transform: translateX(-120%);
  }

  100% {
    transform: translateX(120%);
  }
}

/* =========================================================
   Atmospheric layer
   ========================================================= */

.srp-prototype .ambient-orb {
  position: absolute;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 0;
  filter: blur(24px);
  opacity: 0.34;
  animation: srp-drift-orb 18s ease-in-out infinite alternate;
}

.srp-prototype .ambient-orb.one {
  left: -18vw;
  top: 14vh;
  background: radial-gradient(
    circle,
    rgba(77, 163, 255, 0.34),
    rgba(91, 108, 255, 0.08) 44%,
    transparent 68%
  );
}

.srp-prototype .ambient-orb.two {
  right: -20vw;
  bottom: -18vh;
  background: radial-gradient(
    circle,
    rgba(143, 108, 255, 0.32),
    rgba(54, 214, 198, 0.08) 42%,
    transparent 70%
  );
  animation-duration: 22s;
}

@keyframes srp-drift-orb {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(42px, -30px, 0) scale(1.08);
  }
}

.srp-prototype .signal-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  opacity: 0.42;
}

.srp-prototype .signal-rain span {
  position: absolute;
  top: -80px;
  width: 1px;
  height: 110px;
  background: linear-gradient(to bottom, transparent, rgba(118, 228, 255, 0.48), transparent);
  animation: srp-signal-drop linear infinite;
  transform: rotate(18deg);
}

.srp-prototype .signal-rain span:nth-child(1) {
  left: 8%;
  animation-duration: 8s;
  animation-delay: -1s;
}

.srp-prototype .signal-rain span:nth-child(2) {
  left: 18%;
  animation-duration: 11s;
  animation-delay: -4s;
}

.srp-prototype .signal-rain span:nth-child(3) {
  left: 31%;
  animation-duration: 9s;
  animation-delay: -2s;
}

.srp-prototype .signal-rain span:nth-child(4) {
  left: 43%;
  animation-duration: 13s;
  animation-delay: -7s;
}

.srp-prototype .signal-rain span:nth-child(5) {
  left: 59%;
  animation-duration: 10s;
  animation-delay: -3s;
}

.srp-prototype .signal-rain span:nth-child(6) {
  left: 76%;
  animation-duration: 12s;
  animation-delay: -6s;
}

.srp-prototype .signal-rain span:nth-child(7) {
  left: 88%;
  animation-duration: 9s;
  animation-delay: -5s;
}

@keyframes srp-signal-drop {
  0% {
    transform: translate3d(0, -120px, 0) rotate(18deg);
    opacity: 0;
  }

  12% {
    opacity: 0.9;
  }

  100% {
    transform: translate3d(-260px, 120vh, 0) rotate(18deg);
    opacity: 0;
  }
}

/* =========================================================
   Main app shell
   ========================================================= */

.srp-prototype .app {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 44px;
  position: relative;
  z-index: 2;
}

.srp-prototype .topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.srp-prototype .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.02em;
}

.srp-prototype .mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 255, 255, 0.8), transparent 9%),
    linear-gradient(135deg, var(--srp-teal), var(--srp-cobalt), var(--srp-violet));
  box-shadow: 0 14px 40px rgba(77, 163, 255, 0.26);
  position: relative;
}

.srp-prototype .mark::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: rotate(28deg);
}

.srp-prototype .brand-title {
  margin: 0;
  color: var(--srp-text);
  font-size: 0.95rem;
  font-weight: 760;
}

.srp-prototype .brand-subtitle {
  margin: 2px 0 0;
  color: var(--srp-muted);
  font-size: 0.78rem;
}

.srp-prototype .utility-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.srp-prototype .status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1px solid var(--srp-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--srp-soft);
  font-size: 0.82rem;
  backdrop-filter: blur(18px);
}

.srp-prototype .pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--srp-teal);
  box-shadow: 0 0 0 0 rgba(54, 214, 198, 0.6);
  animation: srp-pulse 2s infinite;
}

@keyframes srp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(54, 214, 198, 0.6);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(54, 214, 198, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(54, 214, 198, 0);
  }
}

/* =========================================================
   Language control
   ========================================================= */

.srp-prototype .language-control {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 12px;
  border: 1px solid var(--srp-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--srp-soft);
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.srp-prototype .language-control label {
  color: var(--srp-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.srp-prototype .language-control select {
  color: var(--srp-text);
  background: rgba(5, 8, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 7px 28px 7px 10px;
  font: inherit;
  font-size: 0.78rem;
  outline: none;
  cursor: pointer;
}

/* =========================================================
   Hero
   ========================================================= */

.srp-prototype .hero {
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 50px 0;
}

.srp-prototype .hero-card {
  width: min(900px, 100%);
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid var(--srp-line);
  border-radius: var(--srp-radius-lg);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055)),
    radial-gradient(circle at 50% 0%, rgba(91, 108, 255, 0.24), transparent 40%);
  backdrop-filter: blur(24px);
  box-shadow: var(--srp-shadow);
  position: relative;
  overflow: hidden;
}

.srp-prototype .hero-card::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(77, 163, 255, 0.22), transparent 67%);
  top: -160px;
  right: -140px;
}

.srp-prototype .hero-orbit {
  position: absolute;
  inset: 28px;
  border-radius: calc(var(--srp-radius-lg) - 10px);
  pointer-events: none;
  opacity: 0.9;
}

.srp-prototype .hero-orbit::before,
.srp-prototype .hero-orbit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(118, 228, 255, 0.15);
  mask-image: linear-gradient(90deg, transparent, black 18%, black 38%, transparent 52%);
  animation: srp-orbit-trace 8s linear infinite;
}

.srp-prototype .hero-orbit::after {
  inset: 20px;
  border-color: rgba(143, 108, 255, 0.17);
  animation-duration: 12s;
  animation-direction: reverse;
}

@keyframes srp-orbit-trace {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.srp-prototype .eyebrow {
  margin: 0 0 18px;
  color: var(--srp-teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.srp-prototype h1 {
  margin: 0;
  color: var(--srp-text);
  font-size: clamp(3.3rem, 9vw, 7.6rem);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.srp-prototype .gradient-text {
  background: linear-gradient(90deg, #ffffff, #c9d7ff, #8f9bff, #56dfd1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.srp-prototype .hero-copy {
  width: min(680px, 100%);
  margin: 28px auto 0;
  color: var(--srp-soft);
  font-size: clamp(1.03rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.srp-prototype .support-note {
  margin: 18px auto 0;
  width: min(680px, 100%);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  color: var(--srp-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.srp-prototype .support-note::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--srp-teal);
  box-shadow: 0 0 18px rgba(54, 214, 198, 0.5);
  flex: 0 0 auto;
}

.srp-prototype .hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* =========================================================
   Buttons
   ========================================================= */

.srp-prototype button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
}

.srp-prototype .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.srp-prototype .btn:hover {
  transform: translateY(-2px);
}

.srp-prototype .btn-primary {
  color: #04101f;
  background: linear-gradient(135deg, #ffffff, #76e4ff, #8f9bff);
  box-shadow: 0 18px 42px rgba(77, 163, 255, 0.28);
}

.srp-prototype .btn-secondary {
  color: var(--srp-text);
  border: 1px solid var(--srp-line);
  background: rgba(255, 255, 255, 0.08);
}

.srp-prototype .btn-small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.78rem;
  letter-spacing: 0.01em;
}

.srp-prototype .btn-ghost {
  color: var(--srp-soft);
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
}

.srp-prototype .btn-ghost:hover {
  border-color: rgba(118, 228, 255, 0.4);
  background: rgba(77, 163, 255, 0.105);
}

/* =========================================================
   Micro telemetry
   ========================================================= */

.srp-prototype .micro-telemetry {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px auto 0;
  width: min(640px, 100%);
  text-align: left;
}

.srp-prototype .telemetry-card {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  padding: 14px;
  background: rgba(4, 8, 22, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.srp-prototype .telemetry-card span {
  display: block;
  color: var(--srp-muted);
  font-size: 0.68rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}

.srp-prototype .telemetry-card strong {
  display: block;
  color: var(--srp-text);
  font-size: 0.94rem;
  letter-spacing: -0.02em;
}

/* =========================================================
   Simulation shell
   ========================================================= */

.srp-prototype .sim-shell {
  display: none;
  gap: 16px;
}

.srp-prototype .sim-shell.active {
  display: grid;
}

.srp-prototype .sim-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--srp-line);
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
}

.srp-prototype .sim-controls-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--srp-soft);
  font-size: 0.86rem;
  font-weight: 750;
}

.srp-prototype .sim-controls-copy::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--srp-teal);
  box-shadow: 0 0 20px rgba(54, 214, 198, 0.72);
  flex: 0 0 auto;
}

.srp-prototype .sim-controls-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.srp-prototype .sim {
  display: none;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.srp-prototype .sim.active {
  display: grid;
}

/* =========================================================
   Main panels
   ========================================================= */

.srp-prototype .panel {
  border: 1px solid var(--srp-line);
  border-radius: var(--srp-radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.115), rgba(255, 255, 255, 0.052));
  box-shadow: var(--srp-shadow);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

.srp-prototype .panel-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--srp-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.srp-prototype .kicker {
  margin: 0;
  color: var(--srp-teal);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  font-weight: 850;
}

.srp-prototype .panel-title {
  margin: 6px 0 0;
  color: var(--srp-text);
  font-size: clamp(1.55rem, 3vw, 2.3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.srp-prototype .timer {
  min-width: 92px;
  text-align: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--srp-line);
  color: var(--srp-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.srp-prototype .panel-body {
  padding: 24px;
}

.srp-prototype .panel.live-signal {
  position: relative;
}

.srp-prototype .panel.live-signal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(118, 228, 255, 0.08), transparent),
    radial-gradient(circle at var(--signal-x, 72%) var(--signal-y, 18%), rgba(118, 228, 255, 0.18), transparent 22%);
  opacity: 0;
  animation: srp-signal-flash 1.4s ease both;
}

@keyframes srp-signal-flash {
  0% {
    opacity: 0;
    transform: translateX(-18%);
  }

  28% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateX(18%);
  }
}

.srp-prototype .signal-arrival {
  animation: srp-signal-arrival 0.55s ease both;
}

@keyframes srp-signal-arrival {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* =========================================================
   Signal metadata + situation
   ========================================================= */

.srp-prototype .signal-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.srp-prototype .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--srp-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--srp-soft);
  font-size: 0.78rem;
  font-weight: 750;
}

.srp-prototype .tag.warning::before,
.srp-prototype .tag.info::before,
.srp-prototype .tag.risk::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.srp-prototype .tag.warning::before {
  background: var(--srp-warning);
}

.srp-prototype .tag.info::before {
  background: var(--srp-blue);
}

.srp-prototype .tag.risk::before {
  background: var(--srp-danger);
}

.srp-prototype .situation {
  padding: 22px;
  border-radius: var(--srp-radius-md);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  border: 1px solid var(--srp-line);
  line-height: 1.7;
  color: var(--srp-soft);
  font-size: 1.02rem;
}

/* =========================================================
   System telemetry strip
   ========================================================= */

.srp-prototype .system-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.srp-prototype .system-tile {
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
  position: relative;
}

.srp-prototype .system-tile::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: var(--tile-level, 64%);
  background: linear-gradient(90deg, var(--srp-teal), var(--srp-blue), var(--srp-violet));
  opacity: 0.8;
}

.srp-prototype .system-tile span {
  display: block;
  color: var(--srp-muted);
  font-size: 0.62rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin-bottom: 5px;
}

.srp-prototype .system-tile strong {
  color: var(--srp-text);
  font-size: 0.86rem;
}

/* =========================================================
   Feed
   ========================================================= */

.srp-prototype .feed {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.srp-prototype .feed-item {
  padding: 16px;
  border: 1px solid var(--srp-line);
  border-radius: var(--srp-radius-md);
  background: rgba(4, 8, 22, 0.34);
  animation: srp-feed-in 0.45s ease both;
}

.srp-prototype .feed-item:nth-child(2) {
  animation-delay: 0.08s;
}

.srp-prototype .feed-item:nth-child(3) {
  animation-delay: 0.16s;
}

@keyframes srp-feed-in {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.srp-prototype .feed-label {
  display: block;
  margin-bottom: 6px;
  color: var(--srp-muted);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 850;
}

.srp-prototype .feed-item p {
  margin: 0;
  color: var(--srp-soft);
  line-height: 1.55;
}

/* =========================================================
   Choices
   ========================================================= */

.srp-prototype .choices {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.srp-prototype .choice {
  width: 100%;
  text-align: left;
  padding: 18px;
  border-radius: var(--srp-radius-md);
  border: 1px solid var(--srp-line);
  background: rgba(255, 255, 255, 0.065);
  color: var(--srp-text);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.srp-prototype .choice:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.105);
  border-color: rgba(118, 228, 255, 0.45);
}

.srp-prototype .choice::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: translateX(-120%);
  transition: transform 0.55s ease;
}

.srp-prototype .choice:hover::after {
  transform: translateX(120%);
}

.srp-prototype .choice strong {
  display: block;
  color: var(--srp-text);
  font-size: 1rem;
  margin-bottom: 5px;
}

.srp-prototype .choice span {
  color: var(--srp-muted);
  line-height: 1.5;
  font-size: 0.92rem;
}

/* =========================================================
   Confidence
   ========================================================= */

.srp-prototype .confidence {
  display: none;
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--srp-radius-md);
  border: 1px solid rgba(118, 228, 255, 0.28);
  background: rgba(77, 163, 255, 0.08);
}

.srp-prototype .confidence.active {
  display: block;
}

.srp-prototype .confidence-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.srp-prototype .confidence h3 {
  margin: 0;
  color: var(--srp-text);
  font-size: 1rem;
}

.srp-prototype .confidence-value {
  font-weight: 900;
  color: var(--srp-teal);
}

.srp-prototype input[type="range"] {
  width: 100%;
  accent-color: var(--srp-teal);
}

.srp-prototype .scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  color: var(--srp-muted);
  font-size: 0.76rem;
  font-weight: 700;
}

/* =========================================================
   Reflection
   ========================================================= */

.srp-prototype .reflection {
  display: none;
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--srp-radius-md);
  border: 1px solid rgba(118, 228, 255, 0.26);
  background: linear-gradient(145deg, rgba(54, 214, 198, 0.12), rgba(91, 108, 255, 0.08));
}

.srp-prototype .reflection.active {
  display: block;
  animation: srp-reflection-reveal 0.55s ease both;
}

@keyframes srp-reflection-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.srp-prototype .reflection h3 {
  margin: 0 0 12px;
  color: var(--srp-text);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.srp-prototype .reflection p {
  margin: 0;
  color: var(--srp-soft);
  line-height: 1.7;
}

.srp-prototype .reflection ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--srp-soft);
  line-height: 1.6;
}

.srp-prototype .next-row {
  display: none;
  justify-content: flex-end;
  margin-top: 22px;
}

.srp-prototype .next-row.active {
  display: flex;
}

/* =========================================================
   Sidebar
   ========================================================= */

.srp-prototype .side {
  display: grid;
  gap: 18px;
  position: sticky;
  top: 22px;
}

.srp-prototype .side-card {
  padding: 20px;
  border: 1px solid var(--srp-line);
  border-radius: var(--srp-radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.24);
}

.srp-prototype .side-card h2 {
  margin: 0 0 12px;
  color: var(--srp-text);
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.srp-prototype .side-card p {
  margin: 0;
  color: var(--srp-muted);
  line-height: 1.55;
  font-size: 0.9rem;
}

/* =========================================================
   Decision map
   ========================================================= */

.srp-prototype .decision-map {
  position: relative;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 22px;
  margin-top: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(77, 163, 255, 0.13), transparent 38%),
    linear-gradient(145deg, rgba(4, 8, 22, 0.42), rgba(255, 255, 255, 0.035));
}

.srp-prototype .decision-map svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.srp-prototype .map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    width 0.35s ease,
    height 0.35s ease,
    background 0.35s ease,
    box-shadow 0.35s ease;
}

.srp-prototype .map-node.active {
  width: 18px;
  height: 18px;
  background: var(--srp-teal);
  box-shadow: 0 0 28px rgba(54, 214, 198, 0.7);
}

.srp-prototype .map-label {
  position: absolute;
  transform: translate(-50%, -50%);
  color: var(--srp-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.srp-prototype .map-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 82px;
  height: 82px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.95),
    rgba(118, 228, 255, 0.34) 34%,
    rgba(91, 108, 255, 0.09) 68%,
    transparent 72%
  );
  box-shadow: 0 0 50px rgba(77, 163, 255, 0.35);
  animation: srp-core-breath 3s ease-in-out infinite;
}

@keyframes srp-core-breath {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.68;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.08);
    opacity: 1;
  }
}

/* =========================================================
   Progress profile
   ========================================================= */

.srp-prototype .progress {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.srp-prototype .bar-row {
  display: grid;
  gap: 7px;
}

.srp-prototype .bar-top {
  display: flex;
  justify-content: space-between;
  color: var(--srp-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.srp-prototype .bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.srp-prototype .bar-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--srp-teal), var(--srp-blue), var(--srp-violet));
  transition: width 0.45s ease;
}

.srp-prototype .profile-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.srp-prototype .profile-chip {
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--srp-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--srp-soft);
  font-size: 0.76rem;
  font-weight: 800;
  animation: srp-chip-pop 0.35s ease both;
}

@keyframes srp-chip-pop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   Signal log
   ========================================================= */

.srp-prototype .signal-log {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.srp-prototype .log-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--srp-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.srp-prototype .dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.24);
  flex: 0 0 auto;
}

.srp-prototype .dot.active {
  background: var(--srp-teal);
  box-shadow: 0 0 18px rgba(54, 214, 198, 0.55);
}

/* =========================================================
   Completion screen
   ========================================================= */

.srp-prototype .complete {
  display: none;
  min-height: 72vh;
  place-items: center;
  text-align: center;
  padding: 38px 0;
}

.srp-prototype .complete.active {
  display: grid;
}

.srp-prototype .complete-card {
  width: min(860px, 100%);
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--srp-line);
  border-radius: var(--srp-radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.052));
  backdrop-filter: blur(24px);
  box-shadow: var(--srp-shadow);
}

.srp-prototype .complete h2 {
  margin: 0;
  color: var(--srp-text);
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: -0.07em;
}

.srp-prototype .summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
  text-align: left;
}

.srp-prototype .summary-card {
  padding: 18px;
  border-radius: var(--srp-radius-md);
  border: 1px solid var(--srp-line);
  background: rgba(255, 255, 255, 0.06);
}

.srp-prototype .summary-card strong {
  display: block;
  margin-bottom: 7px;
  color: var(--srp-text);
}

.srp-prototype .summary-card span {
  color: var(--srp-muted);
  line-height: 1.5;
  font-size: 0.88rem;
}

.srp-prototype .note {
  margin-top: 24px;
  color: var(--srp-muted);
  line-height: 1.65;
  font-size: 0.96rem;
}

/* =========================================================
   Profile detected visual
   ========================================================= */

.srp-prototype .profile-detected {
  position: relative;
  height: 270px;
  margin: 32px auto 6px;
  width: min(520px, 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 50% 50%, rgba(118, 228, 255, 0.2), transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(143, 108, 255, 0.13), transparent 54%),
    rgba(255, 255, 255, 0.035);
  overflow: hidden;
}

.srp-prototype .profile-detected::before,
.srp-prototype .profile-detected::after {
  content: "";
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  border: 1px solid rgba(118, 228, 255, 0.18);
  animation: srp-orbit-trace 9s linear infinite;
}

.srp-prototype .profile-detected::after {
  inset: 62px;
  border-color: rgba(143, 108, 255, 0.18);
  animation-duration: 13s;
  animation-direction: reverse;
}

.srp-prototype .detected-core {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  border-radius: 999px;
  background: radial-gradient(circle, #fff, #94f1ff 32%, #7b7dff 66%, transparent 70%);
  box-shadow: 0 0 60px rgba(118, 228, 255, 0.55);
  animation: srp-core-breath 2.4s ease-in-out infinite;
}

.srp-prototype .detected-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--srp-soft);
  font-size: 0.72rem;
  font-weight: 850;
  backdrop-filter: blur(14px);
}

.srp-prototype .detected-chip.one {
  left: 50%;
  top: 18%;
}

.srp-prototype .detected-chip.two {
  left: 80%;
  top: 50%;
}

.srp-prototype .detected-chip.three {
  left: 50%;
  top: 82%;
}

.srp-prototype .detected-chip.four {
  left: 20%;
  top: 50%;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 900px) {
  .srp-prototype .sim {
    grid-template-columns: 1fr;
  }

  .srp-prototype .side {
    position: static;
  }

  .srp-prototype .summary,
  .srp-prototype .micro-telemetry,
  .srp-prototype .system-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .srp-prototype .app {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .srp-prototype .topbar {
    align-items: flex-start;
  }

  .srp-prototype .sim-controls {
    align-items: flex-start;
    flex-direction: column;
  }

  .srp-prototype .sim-controls-actions,
  .srp-prototype .sim-controls-actions .btn {
    width: 100%;
  }

  .srp-prototype .status-pill {
    display: none;
  }

  .srp-prototype .panel-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .srp-prototype .timer {
    width: 100%;
  }

  .srp-prototype .hero-card,
  .srp-prototype .panel-body,
  .srp-prototype .panel-header,
  .srp-prototype .side-card,
  .srp-prototype .complete-card {
    padding: 18px;
  }

  .srp-prototype .hero {
    min-height: 68vh;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */

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