:root {
  color-scheme: dark;
  --space: #07142f;
  --space-deep: #030916;
  --space-mid: #10254a;
  --signal: #29d8f2;
  --signal-soft: #6ee8ef;
  --sun: #ffc857;
  --sun-soft: #ffe29a;
  --violet: #8669f8;
  --safe: #5ce0a4;
  --coral: #ff7c7c;
  --white: #f7fbff;
  --muted: #a9b7d4;
  --paper: #f6f2e8;
  --paper-raised: #fffdf8;
  --ink: #0b1430;
  --ink-soft: #4d5b72;
  --teacher-bg: #e8edf2;
  --teacher-line: #d7dee7;
  --shadow-soft: 0 24px 70px rgba(2, 10, 27, 0.18);
  --font-ui: -apple-system, "SF Pro Text", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body,
button,
input,
select {
  font-family: var(--font-ui);
}

button,
select,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
select:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.prototype-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--signal-soft);
  background: rgba(41, 216, 242, 0.08);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.prototype-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
}

.prototype-badge[data-tone="violet"] {
  color: #baaefc;
  background: rgba(134, 105, 248, 0.1);
}

.prototype-badge[data-tone="yellow"] {
  color: var(--sun);
  background: rgba(255, 200, 87, 0.1);
}

.prototype-badge[data-tone="cyan"] {
  color: var(--signal-soft);
}

/* Child stage */

.child-body {
  overflow: hidden;
  background: var(--space-deep);
  color: var(--white);
}

/* Outdoor child-screen attract mode */

.kiosk-app-layer {
  width: 100vw;
  height: 100vh;
}

.kiosk-app-layer.is-covered {
  visibility: hidden;
}

.kiosk-idle-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: stretch;
  overflow: hidden;
  color: var(--white);
  background: #020b15;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 1;
  transition: opacity 220ms ease-out;
  isolation: isolate;
}

.kiosk-idle-screen:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: -10px;
}

.kiosk-idle-screen.is-exiting {
  opacity: 0;
}

.kiosk-idle-poster,
.kiosk-idle-video,
.kiosk-idle-shade {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
}

.kiosk-idle-poster,
.kiosk-idle-video {
  display: block;
  object-fit: contain;
  object-position: center;
  background: #020b15;
}

.kiosk-idle-poster {
  z-index: 0;
}

.kiosk-idle-video {
  z-index: 1;
  opacity: 1;
  transition: opacity 240ms ease-out;
}

.kiosk-idle-screen[data-video-state="fallback"] .kiosk-idle-video {
  opacity: 0;
}

.kiosk-idle-shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 62%, rgba(2, 9, 22, 0.28) 78%, rgba(2, 9, 22, 0.74) 100%),
    radial-gradient(circle at 50% 98%, rgba(41, 216, 242, 0.11), transparent 32%);
}

.kiosk-wake-cue {
  position: absolute;
  left: 50%;
  bottom: clamp(36px, 6vh, 88px);
  z-index: 3;
  min-height: clamp(66px, 7.2vh, 92px);
  padding: clamp(10px, 1.2vh, 16px) clamp(22px, 2.2vw, 38px) clamp(10px, 1.2vh, 16px) clamp(14px, 1.4vw, 22px);
  display: flex;
  align-items: center;
  gap: clamp(13px, 1.3vw, 22px);
  transform: translateX(-50%);
  border: 1px solid rgba(196, 245, 255, 0.5);
  border-radius: 999px;
  background: rgba(2, 11, 25, 0.78);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.38), 0 0 40px rgba(41, 216, 242, 0.13);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
  white-space: nowrap;
  transition: transform 220ms ease-out, opacity 180ms ease-out;
}

.kiosk-idle-screen.is-exiting .kiosk-wake-cue {
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.98);
}

.kiosk-touch-orbit {
  position: relative;
  width: clamp(46px, 4.6vw, 68px);
  height: clamp(46px, 4.6vw, 68px);
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 2px solid rgba(110, 232, 239, 0.82);
  border-radius: 50%;
  box-shadow: inset 0 0 22px rgba(41, 216, 242, 0.13), 0 0 24px rgba(41, 216, 242, 0.18);
}

.kiosk-touch-orbit::before,
.kiosk-touch-orbit::after {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid rgba(110, 232, 239, 0.56);
  border-radius: inherit;
  animation: kiosk-touch-pulse 2.4s ease-out infinite;
}

.kiosk-touch-orbit::after {
  animation-delay: 1.2s;
}

.kiosk-touch-orbit i {
  width: 34%;
  height: 34%;
  display: block;
  border-radius: 50%;
  background: var(--signal-soft);
  box-shadow: 0 0 22px rgba(110, 232, 239, 0.84);
}

.kiosk-wake-copy {
  display: grid;
  gap: 2px;
}

.kiosk-wake-copy strong {
  font-size: clamp(20px, 2vw, 34px);
  line-height: 1.12;
  letter-spacing: 0.02em;
}

.kiosk-wake-copy small {
  color: rgba(219, 242, 250, 0.72);
  font-size: clamp(12px, 1.1vw, 18px);
  font-weight: 750;
  letter-spacing: 0.08em;
}

.kiosk-video-fallback-note {
  position: absolute;
  left: 50%;
  bottom: clamp(18px, 2.4vh, 34px);
  z-index: 3;
  transform: translateX(-50%);
  color: rgba(219, 242, 250, 0.64);
  font-size: clamp(11px, 0.95vw, 15px);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.kiosk-input-guard {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: transparent;
  cursor: wait;
  touch-action: none;
}

@keyframes kiosk-touch-pulse {
  0% {
    opacity: 0.72;
    transform: scale(0.92);
  }
  72%,
  100% {
    opacity: 0;
    transform: scale(1.48);
  }
}

.child-shell {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-width: 1024px;
  min-height: 640px;
  padding: 28px 48px 32px;
  display: grid;
  grid-template-rows: 76px minmax(0, 1fr) 148px;
  gap: 18px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 78% 18%, rgba(61, 177, 209, 0.2), transparent 24%),
    radial-gradient(circle at 14% 84%, rgba(134, 105, 248, 0.14), transparent 26%),
    linear-gradient(145deg, #07142f 0%, #050b1a 72%);
}

.child-shell::before,
.child-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.child-shell::before {
  opacity: 0.48;
  background-image:
    radial-gradient(circle at 8% 22%, rgba(255,255,255,0.9) 0 1px, transparent 1.6px),
    radial-gradient(circle at 18% 68%, rgba(255,255,255,0.7) 0 1px, transparent 1.5px),
    radial-gradient(circle at 34% 12%, rgba(255,255,255,0.85) 0 1px, transparent 1.7px),
    radial-gradient(circle at 48% 78%, rgba(255,255,255,0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 30%, rgba(255,255,255,0.82) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74% 72%, rgba(255,255,255,0.72) 0 1px, transparent 1.5px),
    radial-gradient(circle at 91% 16%, rgba(255,255,255,0.88) 0 1px, transparent 1.7px),
    radial-gradient(circle at 96% 62%, rgba(255,255,255,0.68) 0 1px, transparent 1.4px);
}

.child-shell[data-phase="observe"]::before,
.child-shell[data-phase="compare"]::before,
.child-shell[data-run-state="paused"]::before,
.child-shell[data-run-state="estop"]::before {
  opacity: 0.18;
}

.child-topbar {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(420px, 1.45fr) minmax(250px, 1fr);
  align-items: center;
  gap: 20px;
}

.child-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.child-brand img {
  width: 62px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.35));
}

.child-brand-copy {
  min-width: 0;
}

.child-brand-copy strong,
.child-brand-copy span {
  display: block;
}

.child-brand-copy strong {
  font-size: 22px;
  letter-spacing: 0.02em;
}

.child-brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.chapter-ribbon {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
  align-items: center;
}

.chapter-node {
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(0, auto);
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: rgba(169, 183, 212, 0.62);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.chapter-node::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.chapter-node.done {
  color: var(--safe);
}

.chapter-node.done::before {
  background: var(--safe);
}

.chapter-node.current {
  color: var(--sun);
}

.chapter-node.current::before {
  background: var(--sun);
  box-shadow: 0 0 0 7px rgba(255, 200, 87, 0.12), 0 0 18px rgba(255, 200, 87, 0.5);
}

.child-top-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.child-pause-request {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 226, 154, 0.42);
  border-radius: 999px;
  color: var(--sun-soft);
  background: rgba(255, 200, 87, 0.08);
  font-weight: 850;
}

.child-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(110, 232, 239, 0.2);
  border-radius: 38px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 36%),
    rgba(9, 25, 52, 0.82);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255,255,255,0.08);
}

.child-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(90deg, transparent 0 24.8%, rgba(110,232,239,0.1) 25%, transparent 25.2% 49.8%, rgba(110,232,239,0.1) 50%, transparent 50.2% 74.8%, rgba(110,232,239,0.1) 75%, transparent 75.2%),
    linear-gradient(0deg, transparent 0 49.8%, rgba(110,232,239,0.08) 50%, transparent 50.2%);
}

.child-scene {
  position: relative;
  width: 100%;
  height: 100%;
  padding: clamp(28px, 3vw, 56px);
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(520px, 1.3fr);
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
  animation: scene-enter 420ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.child-scene.data-scene,
.child-scene.result-scene {
  grid-template-columns: 1fr;
  align-items: stretch;
}

.story-column {
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
}

.stage-eyebrow {
  margin-bottom: 14px;
  color: var(--signal-soft);
  font-size: clamp(16px, 1.25vw, 22px);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.story-column h1,
.data-header h1,
.result-copy h1 {
  max-width: 900px;
  margin: 0;
  color: var(--white);
  font-size: clamp(38px, 3.8vw, 70px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.story-column p,
.data-header p,
.result-copy p {
  max-width: 780px;
  margin: 22px 0 0;
  color: #d7e2f3;
  font-size: clamp(19px, 1.65vw, 30px);
  line-height: 1.62;
  text-wrap: pretty;
}

.mascot-guide {
  position: relative;
  min-width: 0;
  height: 100%;
  display: grid;
  place-items: center;
}

.mascot-orbit {
  position: absolute;
  width: min(36vw, 520px);
  aspect-ratio: 1;
  border: 1px solid rgba(110, 232, 239, 0.18);
  border-radius: 50%;
}

.mascot-orbit::before,
.mascot-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(110, 232, 239, 0.16);
}

.mascot-orbit::before {
  inset: 14%;
}

.mascot-orbit::after {
  inset: 30%;
}

.mascot-guide img {
  position: relative;
  z-index: 2;
  width: min(28vw, 390px);
  max-height: 72%;
  object-fit: contain;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.36));
  animation: mascot-breathe 7s ease-in-out infinite;
}

.child-shell[data-phase="observe"] .mascot-guide img,
.child-shell[data-phase="compare"] .mascot-guide img {
  animation: none;
}

.mascot-message {
  position: absolute;
  right: 4%;
  bottom: 4%;
  z-index: 3;
  width: min(330px, 45%);
  padding: 17px 20px;
  border: 1px solid rgba(255, 226, 154, 0.36);
  border-radius: 22px 22px 7px 22px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
  font-size: clamp(15px, 1.15vw, 21px);
  font-weight: 760;
  line-height: 1.52;
}

.role-constellation {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 18px;
}

.role-star {
  min-height: 150px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  border: 1px solid rgba(110, 232, 239, 0.24);
  border-radius: 28px;
  background: rgba(16, 37, 74, 0.68);
}

.role-star span {
  color: var(--sun);
  font-size: 28px;
}

.role-star strong {
  font-size: clamp(21px, 1.55vw, 29px);
}

.role-star small {
  color: var(--muted);
  font-size: 15px;
}

.preflight-stars {
  display: grid;
  grid-template-columns: repeat(2, minmax(210px, 1fr));
  gap: 18px;
}

.preflight-star {
  min-height: 138px;
  padding: 24px;
  display: grid;
  grid-template-columns: 54px 1fr;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(169, 183, 212, 0.2);
  border-radius: 26px;
  background: rgba(7, 20, 47, 0.56);
  color: var(--muted);
}

.preflight-star.ready {
  border-color: rgba(92, 224, 164, 0.45);
  color: var(--white);
  background: rgba(92, 224, 164, 0.08);
}

.preflight-star .star-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 23px;
}

.preflight-star.ready .star-icon {
  color: var(--safe);
  background: rgba(92, 224, 164, 0.14);
}

.preflight-star strong,
.preflight-star small {
  display: block;
}

.preflight-star strong {
  font-size: 20px;
}

.preflight-star small {
  margin-top: 5px;
  color: inherit;
  font-size: 14px;
}

.sky-path {
  position: relative;
  width: min(50vw, 720px);
  aspect-ratio: 1.34;
  overflow: hidden;
  border: 1px solid rgba(110, 232, 239, 0.24);
  border-radius: 50% 50% 30px 30px;
  background:
    radial-gradient(circle at 76% 24%, rgba(255, 200, 87, 0.22) 0 7%, transparent 7.4%),
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 15%, rgba(110,232,239,0.12) 15.4% 15.8%, transparent 16.2% 30%),
    linear-gradient(180deg, rgba(15, 46, 91, 0.74), rgba(4, 13, 31, 0.8));
}

.sky-sun {
  position: absolute;
  right: 18%;
  top: 18%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 15px rgba(255, 200, 87, 0.09), 0 0 42px rgba(255, 200, 87, 0.5);
}

.scope-marker {
  position: absolute;
  left: var(--scope-left, 18%);
  bottom: var(--scope-bottom, 12%);
  width: 92px;
  height: 92px;
  transition: left 180ms linear, bottom 180ms linear;
}

.scope-marker::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 19px;
  width: 54px;
  height: 38px;
  border: 5px solid var(--signal-soft);
  border-radius: 50% 50% 42% 42%;
  transform: rotate(-22deg);
}

.scope-marker::after {
  content: "";
  position: absolute;
  left: 42px;
  top: 54px;
  width: 8px;
  height: 32px;
  border-radius: 6px;
  background: var(--signal-soft);
}

.motion-readout {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.motion-track {
  height: 12px;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
}

.motion-track span {
  display: block;
  width: var(--motion-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--signal), var(--sun));
  transition: width 160ms linear;
}

.motion-readout strong {
  width: 66px;
  color: var(--sun);
  font-size: 22px;
  text-align: right;
}

.data-scene {
  padding: clamp(22px, 2.3vw, 42px);
  gap: 18px;
}

.data-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.data-header h1 {
  font-size: clamp(34px, 3vw, 56px);
}

.data-header p {
  max-width: 700px;
  margin-top: 10px;
  font-size: clamp(17px, 1.25vw, 23px);
}

.data-mascot {
  width: 120px;
  height: 100px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.3));
}

.signal-stage {
  position: relative;
  z-index: 2;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(110, 232, 239, 0.24);
  border-radius: 28px;
  background: rgba(3, 11, 28, 0.68);
}

.signal-stage canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.signal-axis-label {
  position: absolute;
  left: 22px;
  top: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.signal-markers {
  position: absolute;
  inset: 30px 28px 48px 68px;
  pointer-events: none;
}

.signal-stage[data-scenario="rfi_scan"] .signal-markers {
  bottom: 58px;
}

.evidence-star {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 9px rgba(255, 200, 87, 0.13), 0 0 24px var(--sun);
  transform: translate(-50%, -50%);
  animation: marker-pop 520ms ease-out both;
}

.evidence-star b {
  position: absolute;
  left: 50%;
  top: 26px;
  padding: 4px 7px;
  border-radius: 8px;
  color: white;
  background: rgba(3, 11, 28, 0.86);
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.signal-stage[data-scenario="satellite_pass"] .evidence-star {
  background: var(--signal-soft);
  box-shadow: 0 0 0 9px rgba(41, 216, 242, 0.13), 0 0 24px var(--signal-soft);
}

.signal-stage[data-scenario="rfi_scan"] .evidence-star {
  background: #ff9a7c;
  box-shadow: 0 0 0 9px rgba(255, 124, 124, 0.13), 0 0 24px #ff9a7c;
}

.comparison-grid {
  position: relative;
  z-index: 2;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.comparison-chart {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(169, 183, 212, 0.22);
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
}

.comparison-chart.selected {
  border-color: var(--sun);
  box-shadow: 0 0 0 4px rgba(255, 200, 87, 0.13);
}

.comparison-chart header {
  padding: 18px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.comparison-chart header strong {
  font-size: 22px;
}

.comparison-chart header span {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 750;
}

.comparison-chart canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.result-scene {
  padding: clamp(24px, 3vw, 52px);
  grid-template-columns: minmax(300px, 0.78fr) minmax(560px, 1.22fr);
  gap: 42px;
  align-items: center;
}

.result-copy {
  position: relative;
  z-index: 2;
}

.result-copy h1 {
  font-size: clamp(38px, 3.35vw, 62px);
}

.result-card {
  position: relative;
  z-index: 2;
  min-height: 0;
  padding: 28px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 20px;
  border-radius: 34px;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 200, 87, 0.25), transparent 24%),
    var(--paper);
  box-shadow: 0 34px 80px rgba(0,0,0,0.32);
}

.result-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.result-card-head span,
.result-card-head strong,
.result-card-head small {
  display: block;
}

.result-card-head span {
  color: #1a6d7d;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.result-card-head strong {
  margin-top: 7px;
  font-size: 30px;
}

.result-card-head small {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14px;
}

.result-card-head img {
  width: 100px;
  height: 92px;
  object-fit: contain;
}

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

.result-evidence div {
  padding: 17px;
  border: 1px solid rgba(11,20,48,0.1);
  border-radius: 20px;
  background: rgba(255,255,255,0.42);
}

.result-evidence span,
.result-evidence strong {
  display: block;
}

.result-evidence span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.result-evidence strong {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.45;
}

.role-seals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.role-seals span {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #175f6f;
  background: rgba(41,216,242,0.12);
  font-size: 13px;
  font-weight: 850;
}

.child-action-dock {
  position: relative;
  z-index: 5;
  min-width: 0;
  padding: 14px 18px;
  display: grid;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 30px;
  background: rgba(4, 13, 31, 0.82);
  box-shadow: 0 22px 58px rgba(0,0,0,0.28);
  backdrop-filter: blur(16px);
}

.child-action-dock.waiting {
  grid-template-columns: 1fr;
  text-align: center;
}

.child-action-dock.waiting strong,
.child-action-dock.waiting span {
  display: block;
}

.child-action-dock.waiting strong {
  color: var(--sun-soft);
  font-size: clamp(22px, 1.8vw, 32px);
}

.child-action-dock.waiting span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}

.choice-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(var(--choice-count, 2), minmax(0, 1fr));
  gap: 14px;
}

.child-choice,
.child-primary {
  min-height: 106px;
  border: 1px solid rgba(110,232,239,0.3);
  border-radius: 24px;
  color: var(--white);
  background: rgba(16,37,74,0.78);
  font-size: clamp(21px, 1.65vw, 30px);
  font-weight: 900;
  line-height: 1.25;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.child-choice:hover,
.child-primary:hover {
  transform: translateY(-2px);
  border-color: var(--signal-soft);
  background: rgba(25, 65, 113, 0.88);
}

.child-choice.selected {
  border-color: var(--sun);
  color: var(--ink);
  background: var(--sun);
  box-shadow: 0 10px 28px rgba(255,200,87,0.2);
}

.child-primary {
  width: min(680px, 100%);
  justify-self: center;
  border-color: transparent;
  color: var(--ink);
  background: var(--signal);
}

.child-primary.done {
  color: #0d3d2c;
  background: var(--safe);
}

.paused-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 40px;
  background: rgba(3, 9, 22, 0.88);
  backdrop-filter: blur(16px);
}

.paused-card {
  width: min(720px, 86vw);
  padding: 42px;
  border: 1px solid rgba(255,200,87,0.34);
  border-radius: 34px;
  text-align: center;
  background: #0b1d3a;
  box-shadow: 0 34px 90px rgba(0,0,0,0.46);
}

.paused-card img {
  width: 160px;
  height: 145px;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.34));
}

.paused-card h2 {
  margin: 18px 0 0;
  font-size: 42px;
}

.paused-card p {
  margin: 14px 0 0;
  color: #d7e2f3;
  font-size: 22px;
  line-height: 1.6;
}

.paused-card[data-estop="true"] {
  border-color: rgba(255,124,124,0.55);
}

/* Teacher console */

.teacher-body {
  overflow: hidden;
  color-scheme: light;
  background: var(--teacher-bg);
  color: var(--ink);
}

.teacher-shell {
  width: 100vw;
  height: 100vh;
  min-width: 1100px;
  min-height: 720px;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr) 88px;
  overflow: hidden;
  background: var(--teacher-bg);
}

.teacher-safety-bar {
  position: relative;
  z-index: 30;
  padding: 0 18px;
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(460px, 2fr) auto;
  align-items: center;
  gap: 16px;
  color: var(--white);
  background: #07172a;
  box-shadow: 0 10px 32px rgba(5,17,35,0.24);
}

.teacher-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.teacher-brand img {
  width: 52px;
  height: 48px;
  object-fit: contain;
}

.teacher-brand strong,
.teacher-brand span {
  display: block;
}

.teacher-brand strong {
  font-size: 17px;
}

.teacher-brand span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.safety-statuses {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
}

.safety-pill {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 999px;
  color: #dbe6f4;
  background: rgba(255,255,255,0.055);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.safety-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.safety-pill.safe::before {
  background: var(--safe);
}

.safety-pill.warning::before {
  background: var(--sun);
}

.safety-pill.danger::before {
  background: var(--coral);
}

.teacher-safety-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.pause-button,
.estop-button {
  min-height: 50px;
  padding: 0 18px;
  border-radius: 14px;
  color: var(--white);
  font-weight: 900;
}

.pause-button {
  border: 1px solid rgba(255,200,87,0.6);
  background: rgba(255,200,87,0.08);
}

.estop-button {
  min-width: 116px;
  border: 1px solid #ff9898;
  background: #d84343;
  box-shadow: 0 8px 18px rgba(216,67,67,0.24);
}

.teacher-main {
  min-height: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 224px minmax(490px, 1fr) 334px;
  gap: 14px;
}

.teacher-panel {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--teacher-line);
  border-radius: 22px;
  background: var(--paper-raised);
  box-shadow: 0 14px 40px rgba(26,43,65,0.08);
}

.teacher-timeline {
  padding: 18px 14px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  color: var(--white);
  background: #0b1e34;
  border-color: rgba(255,255,255,0.06);
}

.timeline-head {
  padding: 0 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.timeline-head span,
.timeline-head strong {
  display: block;
}

.timeline-head span {
  color: var(--signal-soft);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.timeline-head strong {
  margin-top: 7px;
  font-size: 19px;
}

.timeline-list {
  min-height: 0;
  padding: 12px 0;
  display: grid;
  align-content: start;
  gap: 5px;
  overflow: auto;
}

.timeline-step {
  min-height: 48px;
  padding: 8px 9px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  border-radius: 13px;
  color: #8ea3ba;
}

.timeline-step .step-number {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.timeline-step strong,
.timeline-step small {
  display: block;
}

.timeline-step strong {
  font-size: 13px;
}

.timeline-step small {
  margin-top: 2px;
  color: inherit;
  font-size: 10px;
}

.timeline-step.done {
  color: var(--safe);
}

.timeline-step.current {
  color: var(--white);
  background: rgba(41,216,242,0.12);
}

.timeline-step.current .step-number {
  color: #062536;
  background: var(--signal);
  border-color: var(--signal);
}

.timeline-foot {
  padding: 12px 8px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.teacher-workspace {
  padding: 22px;
  overflow: auto;
}

.workspace-kicker {
  color: #147185;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.workspace-title {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: clamp(27px, 2.25vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.workspace-subtitle {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.setup-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-card {
  padding: 16px;
  display: grid;
  gap: 9px;
  border: 1px solid var(--teacher-line);
  border-radius: 18px;
  background: #f2f5f7;
}

.field-card label {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.field-card select,
.field-card input {
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  border: 1px solid #cbd4de;
  border-radius: 12px;
  color: var(--ink);
  background: white;
  font-weight: 750;
}

.phase-brief {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid #dbe3eb;
  border-radius: 20px;
  background: #f4f7f9;
}

.phase-brief span,
.phase-brief strong,
.phase-brief p {
  display: block;
}

.phase-brief span {
  color: #16788b;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.phase-brief strong {
  margin-top: 7px;
  font-size: 20px;
}

.phase-brief p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
}

.response-panel {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.response-row {
  min-height: 56px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--teacher-line);
  border-radius: 15px;
  background: white;
}

.response-row span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.response-row strong {
  font-size: 15px;
  text-align: right;
}

.checklist {
  margin-top: 20px;
  display: grid;
  gap: 9px;
}

.check-item {
  width: 100%;
  min-height: 58px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--teacher-line);
  border-radius: 16px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.check-item .check-box {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 2px solid #aeb9c5;
  border-radius: 9px;
  color: white;
  font-weight: 900;
}

.check-item.checked {
  border-color: rgba(54,167,111,0.42);
  background: #effaf4;
}

.check-item.checked .check-box {
  border-color: #36a76f;
  background: #36a76f;
}

.check-item strong,
.check-item small {
  display: block;
}

.check-item strong {
  font-size: 14px;
}

.check-item small {
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 11px;
}

.check-item > em {
  color: #16788b;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.authorization-card {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid rgba(255,200,87,0.52);
  border-radius: 20px;
  background: #fff8e8;
}

.authorization-card strong,
.authorization-card span {
  display: block;
}

.authorization-card strong {
  font-size: 18px;
}

.authorization-card span {
  margin-top: 6px;
  color: #7a6335;
  font-size: 12px;
  line-height: 1.55;
}

.hold-panel {
  margin-top: 20px;
  padding: 20px;
  border: 1px solid #dbe3eb;
  border-radius: 22px;
  background: #f4f7f9;
}

.hold-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.hold-summary div {
  padding: 12px;
  border-radius: 14px;
  background: white;
}

.hold-summary span,
.hold-summary strong {
  display: block;
}

.hold-summary span {
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 800;
}

.hold-summary strong {
  margin-top: 5px;
  font-size: 14px;
}

.hold-progress {
  height: 12px;
  margin-top: 18px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe6ec;
}

.hold-progress span {
  display: block;
  width: var(--hold-width, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1db8d0, var(--sun));
  transition: width 120ms linear;
}

.hold-button {
  width: 100%;
  min-height: 72px;
  margin-top: 14px;
  border: 0;
  border-radius: 18px;
  color: white;
  background: #117b91;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 12px 26px rgba(17,123,145,0.2);
  touch-action: none;
  user-select: none;
}

.hold-button.holding {
  background: #0b5363;
  transform: translateY(1px);
}

.teacher-side {
  padding: 14px;
  display: grid;
  grid-template-rows: minmax(205px, 0.9fr) minmax(220px, 1.1fr);
  gap: 12px;
  overflow: auto;
}

.child-preview {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 18px;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(41,216,242,0.22), transparent 30%),
    #07142f;
}

.child-preview::after {
  content: "只读预览";
  position: absolute;
  right: 10px;
  top: 10px;
  min-height: 25px;
  padding: 0 8px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: #b7f6fa;
  background: rgba(41,216,242,0.12);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.preview-inner {
  height: 100%;
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 94px;
  align-items: center;
  gap: 12px;
}

.preview-inner span,
.preview-inner strong,
.preview-inner small {
  display: block;
}

.preview-inner span {
  color: var(--signal-soft);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.preview-inner strong {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.28;
}

.preview-inner small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.preview-inner img {
  width: 94px;
  height: 88px;
  object-fit: contain;
}

.teacher-cue-card {
  min-height: 0;
  padding: 18px;
  overflow: auto;
  border: 1px solid #e4dcc6;
  border-radius: 18px;
  color: #17202b;
  background: #f7f1df;
}

.teacher-cue-card > span {
  color: #9d6a12;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.teacher-cue-card blockquote {
  margin: 12px 0 0;
  font-size: 17px;
  font-weight: 780;
  line-height: 1.58;
}

.teacher-cue-card hr {
  height: 1px;
  margin: 14px 0;
  border: 0;
  background: #e2d6bb;
}

.teacher-cue-card strong,
.teacher-cue-card p {
  display: block;
}

.teacher-cue-card strong {
  color: #72511c;
  font-size: 11px;
}

.teacher-cue-card p {
  margin: 6px 0 0;
  color: #4d4436;
  font-size: 12px;
  line-height: 1.55;
}

.teacher-dock {
  position: relative;
  z-index: 28;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) auto;
  align-items: center;
  gap: 18px;
  border-top: 1px solid #cfd8e1;
  background: rgba(255,255,255,0.94);
  box-shadow: 0 -10px 32px rgba(25,45,68,0.08);
  backdrop-filter: blur(14px);
}

.dock-secondary {
  display: flex;
  gap: 8px;
}

.teacher-button {
  min-height: 54px;
  padding: 0 17px;
  border: 1px solid #c7d1dc;
  border-radius: 14px;
  color: var(--ink);
  background: white;
  font-weight: 850;
}

.teacher-button.primary {
  min-width: 260px;
  border-color: #0f7b91;
  color: white;
  background: #0f7b91;
  box-shadow: 0 10px 24px rgba(15,123,145,0.2);
}

.teacher-button.sun {
  border-color: #e5ae36;
  color: #493611;
  background: var(--sun);
}

.dock-gate {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

.dock-gate.error {
  color: #b43f3f;
  font-weight: 800;
}

.teacher-overlay {
  position: fixed;
  inset: 72px 0 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 30px;
  background: rgba(5,15,27,0.74);
  backdrop-filter: blur(12px);
}

.teacher-modal {
  width: min(620px, 90vw);
  padding: 28px;
  border-radius: 26px;
  color: var(--ink);
  background: white;
  box-shadow: 0 34px 100px rgba(0,0,0,0.34);
}

.teacher-modal.danger {
  border: 4px solid var(--coral);
}

.teacher-modal h2 {
  margin: 0;
  font-size: 30px;
}

.teacher-modal p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.modal-actions {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.status-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  color: #765c28;
  background: #fff6df;
  font-size: 12px;
  line-height: 1.5;
}

/* Picture-first child language and scenario selector */

.child-shell.picture-first {
  grid-template-rows: 76px minmax(0, 1fr) 184px;
}

.picture-story-scene {
  grid-template-columns: minmax(420px, 0.95fr) minmax(430px, 1.05fr);
}

.picture-side-panel {
  min-width: 0;
  height: 100%;
  padding: clamp(24px, 2.5vw, 44px);
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 200, 87, 0.2);
  border-radius: 32px;
  background:
    radial-gradient(circle at 84% 16%, rgba(255, 200, 87, 0.12), transparent 30%),
    rgba(7, 20, 47, 0.46);
}

.picture-side-panel .story-column p {
  color: var(--muted);
}

.prediction-picture-panel {
  grid-template-columns: minmax(120px, 0.52fr) minmax(250px, 1fr);
  align-items: center;
  align-content: center;
}

.prediction-picture-panel > img,
.large-evidence-icon {
  width: min(15vw, 230px);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 20px 26px rgba(0, 0, 0, 0.3));
}

.preflight-star {
  grid-template-columns: 88px minmax(0, 1fr) 48px;
  padding: 16px 18px;
}

.preflight-picture {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.target-badge {
  min-width: 164px;
  min-height: 70px;
  padding: 8px 14px 8px 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 200, 87, 0.32);
  border-radius: 20px;
  color: var(--white);
  background: rgba(255, 200, 87, 0.09);
}

.target-badge[data-scenario="satellite_pass"] {
  border-color: rgba(110, 232, 239, 0.38);
  background: rgba(41, 216, 242, 0.09);
}

.target-badge[data-scenario="rfi_scan"] {
  border-color: rgba(255, 159, 124, 0.46);
  background: rgba(255, 124, 124, 0.1);
}

.target-badge img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.target-badge span,
.target-badge small,
.target-badge strong {
  display: block;
}

.target-badge small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.target-badge strong {
  margin-top: 2px;
  font-size: 19px;
}

.target-badge.compact {
  min-width: 138px;
  min-height: 52px;
  padding: 5px 10px 5px 6px;
  border-radius: 16px;
}

.target-badge.compact img {
  width: 40px;
  height: 40px;
}

.visual-instruction {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 18px;
  display: grid;
  grid-template-rows: minmax(170px, 1fr) auto auto;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(110, 232, 239, 0.2);
  border-radius: 32px;
  background:
    radial-gradient(circle at 76% 20%, rgba(255, 200, 87, 0.16), transparent 27%),
    rgba(7, 20, 47, 0.54);
}

.visual-instruction[data-scenario="satellite_pass"] {
  background:
    radial-gradient(circle at 78% 22%, rgba(41, 216, 242, 0.18), transparent 30%),
    rgba(7, 20, 47, 0.54);
}

.visual-instruction[data-scenario="rfi_scan"] {
  border-color: rgba(255, 159, 124, 0.24);
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 124, 124, 0.18), transparent 30%),
    rgba(7, 20, 47, 0.54);
}

.visual-hero-art {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
}

.mascot-pose {
  position: relative;
  z-index: 2;
  width: min(25vw, 330px);
  max-width: 78%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.35));
}

.visual-target-art {
  position: absolute;
  right: 5%;
  top: 4%;
  z-index: 3;
  width: min(9vw, 132px);
  height: min(9vw, 132px);
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
}

.target-orbit-line {
  position: absolute;
  inset: 12% 5% 8%;
  border: 2px dashed rgba(110, 232, 239, 0.18);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.visual-instruction-copy {
  text-align: center;
}

.visual-instruction-copy > span,
.visual-instruction-copy > strong {
  display: block;
}

.visual-instruction-copy > span {
  color: var(--signal-soft);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.visual-instruction-copy > strong {
  margin-top: 3px;
  color: var(--white);
  font-size: clamp(34px, 3.2vw, 56px);
  line-height: 1.08;
}

.visual-instruction-copy p {
  margin: 7px auto 0;
  color: #d7e2f3;
  font-size: clamp(15px, 1.05vw, 19px);
  line-height: 1.5;
}

.instruction-step-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.instruction-step {
  min-width: 0;
  min-height: 74px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 18px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.instruction-step img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.instruction-step strong {
  font-size: 17px;
  white-space: nowrap;
}

.picture-choice-art {
  width: 108px;
  height: 88px;
  padding: 10px 11px;
  display: grid;
  align-items: end;
  border: 1px solid rgba(110, 232, 239, 0.24);
  border-radius: 20px;
  background: rgba(3, 11, 28, 0.42);
}

.picture-bars {
  height: 100%;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 6px;
}

.picture-bars i {
  width: 12px;
  height: var(--bar-height);
  min-height: 10px;
  display: block;
  border-radius: 999px 999px 4px 4px;
  background: linear-gradient(180deg, var(--sun), var(--signal));
}

.picture-choice-art.wideBlock .picture-bars i,
.picture-choice-art.pulse .picture-bars i {
  background: linear-gradient(180deg, #ffbb78, var(--coral));
}

.child-choice.picture-choice {
  min-height: 148px;
  padding: 14px 18px;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.picture-choice .choice-copy strong,
.picture-choice .choice-copy small {
  display: block;
}

.picture-choice .choice-copy strong {
  font-size: clamp(23px, 1.7vw, 31px);
  line-height: 1.18;
}

.picture-choice .choice-copy small {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.picture-choice.selected .choice-copy small {
  color: rgba(11, 20, 48, 0.68);
}

.choice-check {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 17px;
}

.evidence-counter {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.evidence-counter span {
  color: rgba(255, 200, 87, 0.26);
  font-size: 42px;
  line-height: 1;
}

.evidence-counter span.filled {
  color: var(--sun);
  filter: drop-shadow(0 0 12px rgba(255, 200, 87, 0.55));
}

.picture-role-grid .role-star {
  min-height: 132px;
  grid-template-columns: 86px 1fr;
  align-items: center;
  gap: 12px;
}

.picture-role-grid .role-star > img {
  width: 82px;
  height: 82px;
  object-fit: contain;
}

.picture-role-grid .role-star strong {
  display: block;
  font-size: 24px;
}

.picture-role-grid .role-star small {
  display: block;
  margin-top: 5px;
}

.visual-data-cue {
  display: flex;
  align-items: center;
  gap: 16px;
}

.visual-data-cue .mascot-pose {
  width: 138px;
  max-width: none;
  height: 112px;
}

.visual-data-cue strong,
.visual-data-cue small {
  display: block;
}

.rfi-sweep-panel {
  position: relative;
  width: min(50vw, 760px);
  height: min(100%, 560px);
  min-height: 410px;
  padding: 28px 28px 92px;
  display: grid;
  grid-template-rows: auto minmax(230px, 1fr) auto;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 159, 124, 0.3);
  border-radius: 38px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 124, 124, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(19, 43, 86, 0.94), rgba(4, 13, 31, 0.96));
}

.rfi-sweep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.rfi-sweep-head span,
.rfi-sweep-head strong {
  display: block;
}

.rfi-sweep-head span {
  color: #ffb29a;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.rfi-sweep-head strong {
  margin-top: 5px;
  font-size: clamp(27px, 2.2vw, 40px);
}

.rfi-sweep-head img {
  width: 86px;
  height: 76px;
  object-fit: contain;
}

.rfi-frequency-window {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(110, 232, 239, 0.2);
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 0 24.8%, rgba(110,232,239,0.1) 25%, transparent 25.2% 49.8%, rgba(110,232,239,0.1) 50%, transparent 50.2% 74.8%, rgba(110,232,239,0.1) 75%, transparent 75.2%),
    linear-gradient(0deg, transparent 0 32.8%, rgba(110,232,239,0.09) 33%, transparent 33.2% 65.8%, rgba(110,232,239,0.09) 66%, transparent 66.2%),
    rgba(3, 11, 28, 0.76);
}

.rfi-noise-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16%;
  height: 18%;
  opacity: 0.75;
  background: linear-gradient(180deg, rgba(41, 216, 242, 0.72), rgba(41, 216, 242, 0.08));
  clip-path: polygon(0 68%, 5% 50%, 11% 66%, 18% 42%, 25% 64%, 33% 48%, 40% 69%, 48% 45%, 55% 63%, 63% 52%, 70% 67%, 78% 44%, 85% 62%, 92% 49%, 100% 66%, 100% 100%, 0 100%);
}

.rfi-peak,
.rfi-wide-block {
  position: absolute;
  bottom: 16%;
  border-radius: 12px 12px 3px 3px;
  background: linear-gradient(180deg, #ffbb78, var(--coral));
  box-shadow: 0 0 24px rgba(255, 124, 124, 0.34);
}

.rfi-peak.short {
  left: 8.4%;
  width: 13px;
  height: 68%;
}

.rfi-peak.unknown {
  left: 46.2%;
  width: 18px;
  height: 38%;
}

.rfi-wide-block {
  left: 73.5%;
  width: 2%;
  min-width: 18px;
  height: 54%;
  opacity: 0.88;
  background: repeating-linear-gradient(90deg, #ffb06f 0 10px, #ff7c7c 10px 18px);
}

.rfi-scan-beam {
  position: absolute;
  left: var(--scan-progress, 0%);
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--signal-soft);
  box-shadow: 0 0 14px 5px rgba(41, 216, 242, 0.38);
  transition: left 160ms linear;
}

.rfi-frequency-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.rfi-motion-readout {
  bottom: 24px;
}

.rfi-pattern-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(230px, 0.78fr);
  gap: 10px;
}

.rfi-clue-deck {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 7px;
}

.rfi-pattern-strip article {
  min-width: 0;
  min-height: 86px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 159, 124, 0.2);
  border-radius: 19px;
  background: rgba(7, 20, 47, 0.58);
}

.rfi-pattern-strip .picture-choice-art {
  width: 72px;
  height: 62px;
  padding: 7px;
}

.rfi-pattern-strip article strong,
.rfi-pattern-strip article small {
  display: block;
}

.rfi-pattern-strip article strong {
  font-size: 17px;
}

.rfi-pattern-strip article small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.rfi-boundary-stamps {
  padding: 9px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.055);
}

.rfi-boundary-stamps span {
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(110, 232, 239, 0.16);
  border-radius: 12px;
  color: #dce8f4;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.rfi-reference-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.rfi-reference-strip > span {
  min-width: 0;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed rgba(110, 232, 239, 0.24);
  border-radius: 12px;
  background: rgba(7, 20, 47, 0.42);
  text-align: center;
}

.rfi-reference-strip strong {
  color: #fff3be;
  font-size: 12px;
  white-space: nowrap;
}

.rfi-reference-strip small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reference-band-list {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.reference-band-list > div {
  min-width: 0;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  border: 1px solid rgba(223, 114, 95, 0.18);
  border-radius: 13px;
  background: #fff8f2;
}

.reference-band-list span {
  grid-row: 1 / span 2;
  color: #aa4e40;
  font-size: 12px;
  font-weight: 900;
}

.reference-band-list strong {
  font-size: 12px;
}

.reference-band-list small {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.visual-data-cue strong {
  font-size: 28px;
}

.visual-data-cue small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.sky-path.satellite-path {
  border-radius: 38px;
  background:
    repeating-radial-gradient(ellipse at 50% 100%, transparent 0 15%, rgba(110,232,239,0.11) 15.4% 15.8%, transparent 16.2% 30%),
    linear-gradient(180deg, rgba(20, 51, 102, 0.8), rgba(4, 13, 31, 0.86));
}

.sky-dish {
  position: absolute;
  left: 6%;
  bottom: 7%;
  width: 116px;
  height: 116px;
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.38));
}

.sky-phase-label {
  position: absolute;
  left: 26px;
  top: 24px;
  z-index: 4;
  max-width: 58%;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(3, 11, 28, 0.62);
  backdrop-filter: blur(8px);
}

.sky-phase-label strong,
.sky-phase-label span {
  display: block;
}

.sky-phase-label strong {
  color: var(--white);
  font-size: 23px;
}

.sky-phase-label span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.sky-satellite {
  position: absolute;
  left: var(--satellite-left, 12%);
  bottom: var(--satellite-bottom, 10%);
  width: 102px;
  height: 102px;
  object-fit: contain;
  transform: rotate(-8deg);
  transition: left 180ms linear, transform 180ms linear;
  filter: drop-shadow(0 0 18px rgba(41, 216, 242, 0.48));
}

.child-primary {
  padding: 10px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.primary-action-icon {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  object-fit: contain;
}

.child-primary .evidence-counter {
  margin-left: 8px;
}

.child-primary .evidence-counter span {
  color: rgba(11, 20, 48, 0.22);
}

.child-primary .evidence-counter span.filled {
  color: #805d11;
  filter: none;
}

.child-scene.result-scene {
  grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
}

.result-copy .mascot-pose {
  width: min(19vw, 250px);
  max-width: 80%;
  max-height: 220px;
  margin-bottom: 10px;
}

.result-evidence div {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  column-gap: 10px;
  align-content: start;
}

.result-evidence img {
  width: 56px;
  height: 56px;
  grid-row: 1 / span 2;
  object-fit: contain;
}

.rfi-report-evidence div:nth-child(3) {
  border-color: rgba(255, 124, 124, 0.25);
  background: rgba(255, 124, 124, 0.08);
}

.scenario-selector {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.scenario-option {
  min-height: 132px;
  padding: 14px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  border: 2px solid var(--teacher-line);
  border-radius: 20px;
  color: var(--ink);
  background: white;
  text-align: left;
}

.scenario-option-art {
  width: 72px;
  height: 72px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(17, 123, 145, 0.06);
}

.scenario-option-copy {
  min-width: 0;
}

.scenario-option em {
  min-width: 86px;
  grid-column: 2;
  justify-self: start;
  padding: 9px 11px;
  border-radius: 999px;
  color: #516274;
  background: #edf1f5;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
}

.scenario-option.selected em {
  color: white;
  background: #117b91;
}

.scenario-option.selected {
  border-color: #117b91;
  background: #edfafd;
  box-shadow: 0 0 0 4px rgba(17, 123, 145, 0.1);
}

.scenario-option[data-accent="rfi"].selected {
  border-color: #d96f61;
  background: #fff3ef;
  box-shadow: 0 0 0 4px rgba(217, 111, 97, 0.1);
}

.scenario-option[data-accent="rfi"].selected em {
  background: #d96f61;
}

.scenario-option img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.scenario-option strong,
.scenario-option span,
.scenario-option small {
  display: block;
}

@media (max-width: 1250px), (max-height: 760px) {
  .child-shell.picture-first {
    grid-template-rows: 66px minmax(0, 1fr) 146px;
  }

  .target-badge.compact {
    min-width: 112px;
  }

  .target-badge.compact img {
    width: 34px;
    height: 34px;
  }

  .visual-instruction {
    padding: 12px;
    grid-template-rows: minmax(120px, 1fr) auto auto;
    border-radius: 24px;
  }

  .mascot-pose {
    width: min(23vw, 250px);
  }

  .visual-instruction-copy > strong {
    font-size: clamp(30px, 3vw, 44px);
  }

  .instruction-step {
    min-height: 56px;
    padding: 5px;
  }

  .instruction-step img {
    width: 40px;
    height: 40px;
  }

  .instruction-step strong {
    font-size: 14px;
  }

  .child-choice.picture-choice {
    min-height: 112px;
    grid-template-columns: 78px minmax(0, 1fr) 28px;
  }

  .picture-choice-art {
    width: 76px;
    height: 68px;
  }

  .picture-choice .choice-copy small {
    display: none;
  }

  .picture-story-scene {
    grid-template-columns: minmax(330px, 0.9fr) minmax(390px, 1.1fr);
  }

  .picture-side-panel {
    padding: 20px;
    gap: 14px;
  }

  .preflight-star {
    min-height: 104px;
    grid-template-columns: 68px minmax(0, 1fr) 40px;
    padding: 10px 12px;
  }

  .preflight-picture {
    width: 64px;
    height: 64px;
  }

  .primary-action-icon {
    width: 66px;
    height: 66px;
  }

  .child-scene.result-scene {
    grid-template-columns: minmax(260px, 0.65fr) minmax(520px, 1.35fr);
  }
}

.scenario-option span {
  color: #16788b;
  font-size: 11px;
  font-weight: 900;
}

.scenario-option strong {
  margin-top: 4px;
  font-size: 18px;
}

.scenario-option small {
  margin-top: 5px;
  color: var(--ink-soft);
  font-size: 11px;
  line-height: 1.4;
}

/* Review shell */

.review-body {
  overflow: hidden;
  background: #080c12;
  color: white;
}

.review-shell {
  width: 100vw;
  height: 100vh;
  padding: 14px;
  display: grid;
  grid-template-rows: 62px minmax(0, 1fr);
  gap: 12px;
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.review-title strong,
.review-title span {
  display: block;
}

.review-title strong {
  font-size: 18px;
}

.review-title span {
  margin-top: 4px;
  color: #8da1b7;
  font-size: 11px;
}

.review-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-actions button,
.review-actions a {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #2b3a4b;
  border-radius: 10px;
  color: #dce8f4;
  background: #101823;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.review-actions button.active {
  border-color: var(--signal);
  color: white;
  background: #123342;
}

.review-frames {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(430px, 1fr);
  gap: 12px;
}

.review-shell[data-focus="child"] .review-frames {
  grid-template-columns: 1fr;
}

.review-shell[data-focus="child"] .review-frame.teacher-frame,
.review-shell[data-focus="teacher"] .review-frame.child-frame {
  display: none;
}

.review-shell[data-focus="teacher"] .review-frames {
  grid-template-columns: 1fr;
}

.review-frame {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #263445;
  border-radius: 16px;
  background: #0d141e;
}

.review-frame iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  border: 0;
  transform: translate(-50%, -50%) scale(var(--review-scale, 0.5));
  transform-origin: center;
}

@keyframes scene-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes mascot-breathe {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

@keyframes marker-pop {
  0% { opacity: 0; transform: scale(0.2); }
  65% { opacity: 1; transform: scale(1.28); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1250px), (max-height: 760px) {
  .child-shell {
    padding: 18px 24px 22px;
    grid-template-rows: 66px minmax(0, 1fr) 122px;
    gap: 12px;
  }

  .child-brand img {
    width: 52px;
    height: 48px;
  }

  .child-brand-copy strong {
    font-size: 19px;
  }

  .child-brand-copy span,
  .chapter-node {
    font-size: 12px;
  }

  .child-pause-request {
    min-height: 42px;
    padding: 0 14px;
  }

  .child-stage {
    border-radius: 28px;
  }

  .child-scene {
    padding: 26px 32px;
    gap: 28px;
  }

  .child-choice,
  .child-primary {
    min-height: 84px;
  }

  .teacher-main {
    grid-template-columns: 205px minmax(440px, 1fr) 300px;
    gap: 10px;
    padding: 10px;
  }

  .teacher-workspace {
    padding: 17px;
  }

  .teacher-side {
    padding: 10px;
  }
}

@media (max-width: 1120px) {
  .teacher-shell {
    min-width: 900px;
  }

  .teacher-safety-bar {
    grid-template-columns: minmax(230px, 1fr) auto;
  }

  .safety-statuses {
    display: none;
  }

  .teacher-main {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .teacher-timeline {
    display: none;
  }
}

@media (max-width: 1023px), (max-height: 639px) {
  .child-body {
    overflow: auto;
  }

  .child-shell {
    width: max(100vw, 1024px);
    height: max(100vh, 640px);
  }
}

@media (max-width: 1099px), (max-height: 719px) {
  .teacher-body {
    overflow: auto;
  }

  .teacher-shell {
    width: max(100vw, 1100px);
    height: max(100vh, 720px);
  }
}

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