/* ============================================================
   Simulated Conversation · Charlala DrawRoom Style Guide
   Namespace: .scv-  (safe inside Bubble Toolbox HTML)
   Shared source of truth: /shared/styleguide/tokens.css
   The .scv-app tokens below are duplicated locally so this
   markup still renders standalone (e.g. Bubble Toolbox export).
   ============================================================ */

/* Kill the browser's default 8px body margin AND paint the lavender
   background on html + body so nothing shows through around the app.
   `!important` on the display fix because several `.scv-*` component
   selectors declare `display: flex/inline-flex/…` which otherwise
   beats the browser's built-in `[hidden] { display: none }` and
   causes hidden fields (Camera in audio-only mode, demo button, …)
   to visually leak through. */
html,
body {
  margin: 0 !important;
  padding: 0 !important;
  background: #f5f2fb;
  min-height: 100%;
}
[hidden] {
  display: none !important;
}

.scv-app {
  --p50: #f5f2fb;
  --p200: #ebe7f5;
  --p400: #b0a3d4;
  --p: #6651a1;
  --p600: #533f88;
  --p700: #3f2f6e;
  --surface: #ffffff;
  --bg: #f5f2fb;
  --border: #e4e4e7;
  --border2: #d4cce9;
  --text1: #333333;
  --text2: #52525b;
  --text3: #a1a1aa;
  --green: #16a34a;
  --red: #c93e3e;
  --amber: #d97706;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 2px 12px #6651a114;
  --shadow-pop: 0 6px 24px #3f2f6e21;
  font-family: "Nunito Sans", system-ui, sans-serif;
  color: var(--text1);
  background: var(--bg);
  min-height: 100vh;
  box-sizing: border-box;
  /* Zero outer padding so the lavender extends fully to the viewport
     edge. Inner cards (`.scv-shell`, `.scv-boot`, …) carry their own
     breathing room. */
  padding: 0;
  margin: 0;
}

/* Shared shell for the assignment header + phase content. Owns the
   only visible padding so the app has consistent gutters without any
   outer strip. */
.scv-shell {
  max-width: 1060px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}
/* During device setup the shell stays narrower so the setup card and
   the header above it feel matched. */
.scv-app.scv-phase-setup .scv-shell {
  max-width: 640px;
}
.scv-app *,
.scv-app *::before,
.scv-app *::after {
  box-sizing: border-box;
  font-family: inherit;
}
.scv-app button {
  cursor: pointer;
}
.scv-app button:disabled {
  cursor: not-allowed;
}
.scv-app :focus-visible {
  outline: 2px solid var(--p);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- shared bits ---------- */
.scv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  transition: background 0.12s, color 0.12s, box-shadow 0.12s, opacity 0.15s;
}
.scv-btn-primary {
  background: var(--p);
  color: #fff;
}
.scv-btn-primary:hover:not(:disabled) {
  background: var(--p600);
}
.scv-btn-primary:disabled {
  background: var(--p400);
  opacity: 0.55;
}
.scv-btn-secondary {
  background: var(--surface);
  color: var(--p700);
  border: 1.5px solid var(--border2);
}
.scv-btn-secondary:hover:not(:disabled) {
  background: var(--p50);
}
.scv-btn-ghost {
  background: transparent;
  color: var(--text2);
}
.scv-btn-ghost:hover {
  background: var(--p200);
  color: var(--p700);
}
.scv-btn-danger {
  background: var(--surface);
  color: var(--red);
  border: 1.5px solid #e8c7c7;
}
.scv-btn-danger:hover {
  background: #fbf3f3;
}
.scv-btn-lg {
  padding: 14px 28px;
  font-size: 15px;
}

.scv-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.scv-pill-ready {
  background: #e8f6ed;
  color: #0f7a37;
}
.scv-pill-notready {
  background: #fbeeee;
  color: var(--red);
}
.scv-pill-current {
  background: var(--p200);
  color: var(--p700);
}
.scv-pill-muted {
  background: #f0f0f2;
  color: var(--text3);
}
.scv-pill-warn {
  background: #fdf2e3;
  color: var(--amber);
}

.scv-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
}

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

/* ============================================================
   SCREEN 1 — DEVICE SETUP
   ============================================================ */
.scv-setup {
  max-width: 520px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 32px 28px;
}
/* When the shared header renders above the setup card, tighten the
   gap so they read as one connected block. */
.scv-app.scv-phase-setup .scv-header + .scv-setup {
  margin-top: 4px;
}
.scv-setup h1 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 6px;
  text-align: center;
}
.scv-setup .scv-sub {
  font-size: 14px;
  color: var(--text2);
  text-align: center;
  margin: 0 0 24px;
  line-height: 1.5;
}

.scv-field {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.scv-field-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-md);
  background: var(--p50);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--p);
}
.scv-field label {
  display: block;
}
.scv-field .scv-field-body {
  flex: 1;
  min-width: 0;
}
.scv-field .scv-label-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
  margin-bottom: 4px;
  display: block;
}
.scv-select {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text1);
  border: 1.5px solid var(--border2);
  border-radius: var(--radius-sm);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2352525b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.scv-select:focus-visible {
  border-color: var(--p);
}

.scv-preview {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #221f2b;
  aspect-ratio: 16/10;
  margin: 18px 0 14px;
  display: none;
}
.scv-preview.scv-show {
  display: block;
}
.scv-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.scv-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 20px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
}
.scv-setup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
.scv-error-box {
  display: none;
  background: #fbf3f3;
  border: 1.5px solid #eed3d3;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 13px;
  color: #8c2f2f;
  line-height: 1.5;
  margin-bottom: 14px;
}
.scv-error-box.scv-show {
  display: block;
}

/* ============================================================
   AUDIO METER — reactive bars driven by AnalyserNode + a pulsing
   mic-active indicator. Used both in the setup preview (audio-only
   assignments) and inside the assessment PiP frame.
   ============================================================ */
.scv-audio-meter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  color: #ece7f7;
  background: radial-gradient(
    circle at 50% 42%,
    #3a2c66 0%,
    #221f2b 70%
  );
}
.scv-audio-meter-mic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p400), var(--p));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px #00000055, 0 0 0 6px #6651a133;
  position: relative;
}
.scv-audio-meter-mic::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid #b0a3d466;
  animation: scv-orb-ring 1.6s ease-out infinite;
}
.scv-audio-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 60px;
}
.scv-audio-bars > span {
  display: block;
  width: 6px;
  height: 100%;
  background: linear-gradient(180deg, #dcd2f6, var(--p400));
  border-radius: 4px;
  transform: scaleY(0.16);
  transform-origin: center;
  transition: transform 0.08s ease-out;
}
.scv-audio-bars.scv-audio-bars-lg {
  gap: 6px;
  height: 68px;
}
.scv-audio-bars.scv-audio-bars-lg > span {
  width: 7px;
}
.scv-audio-caption {
  font-size: 13px;
  font-weight: 700;
  color: #d0c7e9;
  letter-spacing: 0.2px;
}
.scv-audio-caption.scv-audio-caption-live {
  color: #baf1c7;
}

.scv-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: none;
  border: 2.5px solid var(--p200);
  border-top-color: var(--p);
  animation: scv-spin 0.8s linear infinite;
}
@keyframes scv-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============================================================
   SCREEN 2 — ASSESSMENT
   ============================================================ */
.scv-assessment {
  display: none;
}
.scv-assessment.scv-show {
  display: block;
}

.scv-header {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
/* During setup the header shows only the title + collapsible details
   block. Progress + submit stay hidden via the [hidden] attribute the
   JS sets on them. */
.scv-app.scv-phase-setup .scv-header {
  padding: 20px 24px;
}
.scv-app.scv-phase-setup .scv-header-titles {
  flex: 1 1 auto;
}
.scv-header-titles {
  flex: 1;
  min-width: 140px;
}
.scv-header h1 {
  font-size: 17px;
  font-weight: 800;
  margin: 0;
}
.scv-details-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  background: transparent;
  border: none;
  padding: 2px 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--p);
}
.scv-details-toggle:hover {
  color: var(--p600);
  text-decoration: underline;
}
.scv-details-toggle svg {
  transition: transform 0.18s ease;
}
.scv-details-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.scv-header-details {
  width: 100%;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.scv-header-details.scv-open {
  grid-template-rows: 1fr;
}
.scv-header-details > div {
  overflow: hidden;
}
.scv-details-inner {
  border-top: 1.5px solid var(--border);
  margin-top: 4px;
  padding: 14px 2px 2px;
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.scv-details-block {
  flex: 1;
  min-width: 200px;
}
.scv-details-block .scv-eyebrow {
  display: block;
  margin-bottom: 6px;
}
.scv-details-block p {
  margin: 0;
  font-size: 13px;
  color: var(--text2);
  font-weight: 600;
  line-height: 1.55;
}
.scv-details-settings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.scv-details-settings li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
}
.scv-details-settings svg {
  color: var(--p);
  flex: none;
}
.scv-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}
.scv-progress-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text2);
}
.scv-progress-track {
  height: 6px;
  border-radius: 999px;
  background: var(--p200);
  overflow: hidden;
}
.scv-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--p);
  width: 0%;
  transition: width 0.3s ease;
}

.scv-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

/* ----- question rail ----- */
.scv-rail {
  width: clamp(96px, 20vw, 190px);
  flex: none;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px 10px;
  min-width: 0;
}
.scv-rail-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 2px 8px 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scv-q {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  min-width: 0;
  background: transparent;
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  padding: 9px 8px;
  margin-bottom: 4px;
  transition: background 0.12s, border-color 0.12s;
}
.scv-q:hover:not(:disabled) {
  background: var(--p50);
}
.scv-q[aria-current="step"] {
  background: var(--p200);
  border-color: var(--p400);
}
.scv-q:disabled {
  opacity: 0.55;
}
.scv-q-badge {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  background: var(--p50);
  color: var(--p700);
  border: 1.5px solid var(--border2);
}
.scv-q[data-state="done"] .scv-q-badge {
  background: #e8f6ed;
  border-color: #bfe4cd;
  color: #0f7a37;
}
.scv-q[data-state="locked"] .scv-q-badge {
  background: #f0f0f2;
  border-color: var(--border);
  color: var(--text3);
}
.scv-q[data-state="recording"] .scv-q-badge {
  background: #fbeeee;
  border-color: #eed3d3;
  color: var(--red);
}
.scv-q-status {
  margin-left: 12px;
  flex: 1;
  min-width: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scv-q[data-state="done"] .scv-q-status {
  color: #0f7a37;
}
.scv-q[data-state="recording"] .scv-q-status {
  color: var(--red);
}
.scv-q[aria-current="step"] .scv-q-status {
  color: var(--p700);
}

/* ----- main column ----- */
.scv-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scv-stage {
  position: relative;
  background: #221f2b;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16/9;
  box-shadow: var(--shadow-card);
}
.scv-stage-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  color: #e6e1f4;
}
.scv-stage-center h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0;
  color: #fff;
}
.scv-stage-center p {
  font-size: 13px;
  font-weight: 600;
  color: #bdb4d8;
  margin: 0;
  max-width: 380px;
  line-height: 1.5;
}

/* prompt media player (video/audio/image) — fills the stage above the center overlay */
.scv-prompt-media {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: #100e18;
}
.scv-prompt-media.scv-show {
  display: flex;
}
.scv-prompt-video,
.scv-prompt-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.scv-prompt-audio-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: #e6e1f4;
  padding: 24px;
  text-align: center;
}
.scv-prompt-audio-wrap audio {
  display: none;
}
.scv-stage-center.scv-behind {
  z-index: 0;
}
.scv-prompt-media {
  z-index: 1;
}
.scv-pip {
  z-index: 2;
}
.scv-prompt-progress {
  z-index: 2;
}

/* speaker orb — shown while audio prompt "plays" or as fallback */
.scv-orb {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--p400), var(--p));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.scv-orb::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid #b0a3d466;
  animation: scv-orb-ring 1.6s ease-out infinite;
}
@keyframes scv-orb-ring {
  0% {
    transform: scale(0.85);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.25);
    opacity: 0;
  }
}
.scv-wave {
  display: flex;
  gap: 4px;
  align-items: center;
  height: 26px;
}
.scv-wave span {
  width: 4px;
  border-radius: 2px;
  background: #fff;
  height: 8px;
  animation: scv-wave 1s ease-in-out infinite;
}
.scv-wave span:nth-child(2) {
  animation-delay: 0.15s;
}
.scv-wave span:nth-child(3) {
  animation-delay: 0.3s;
}
.scv-wave span:nth-child(4) {
  animation-delay: 0.45s;
}
.scv-wave span:nth-child(5) {
  animation-delay: 0.6s;
}
@keyframes scv-wave {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 24px;
  }
}

.scv-prompt-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: #ffffff22;
}
.scv-prompt-progress-fill {
  height: 100%;
  background: var(--p400);
  width: 0%;
}

/* student PiP */
.scv-pip {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 176px;
  border-radius: var(--radius-md);
  overflow: visible;
}
.scv-pip-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #161320;
  aspect-ratio: 4/3;
  box-shadow: 0 4px 18px #00000059;
  border: 2px solid #ffffff2b;
}
.scv-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
/* Audio-only PiP: replaces the video feed with the same reactive bars
   the setup preview uses, plus a compact "Mic live" badge so it's
   obvious the microphone is picked up. When the question actually
   records, `.scv-pip.scv-recording` swaps the ring + REC tag on. */
.scv-pip-audio-meter {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: radial-gradient(circle at 50% 40%, #3a2c66 0%, #16121e 78%);
  color: #ece7f7;
}
.scv-audio-bars.scv-audio-bars-pip {
  height: 44px;
  gap: 4px;
}
.scv-audio-bars.scv-audio-bars-pip > span {
  width: 5px;
}
.scv-pip-mic-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #d0c7e9;
}
.scv-pip.scv-recording .scv-pip-mic-label {
  color: #ffb0b0;
}
.scv-pip.scv-recording .scv-audio-bars-pip > span {
  background: linear-gradient(180deg, #ffd4d4, #e57575);
}
.scv-pip-ring {
  position: absolute;
  inset: -6px;
  pointer-events: none;
  display: none;
}
.scv-pip.scv-recording .scv-pip-ring {
  display: block;
}
.scv-pip-ring svg {
  width: 100%;
  height: 100%;
}
.scv-pip-ring circle {
  fill: none;
  stroke-linecap: round;
}
.scv-rec-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: none;
  align-items: center;
  gap: 6px;
  background: #c93e3ee6;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  border-radius: 999px;
  padding: 3px 9px;
}
.scv-pip.scv-recording .scv-rec-tag {
  display: inline-flex;
}
.scv-rec-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: scv-blink 1s ease-in-out infinite;
}
@keyframes scv-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

/* ----- transcript card ----- */
.scv-transcript {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 16px 20px;
}
.scv-transcript .scv-eyebrow {
  display: block;
  margin-bottom: 6px;
}
.scv-transcript p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text1);
  font-weight: 600;
}
.scv-transcript .scv-transcript-empty {
  color: var(--text3);
  font-weight: 600;
  font-size: 13px;
}

/* ----- control bar ----- */
.scv-controls {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  flex-wrap: wrap;
}
.scv-controls-status {
  flex: 1;
  min-width: 180px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.scv-controls-status .scv-status-text {
  font-size: 14px;
  font-weight: 700;
  color: var(--text2);
}
.scv-timer {
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 800;
  color: var(--p700);
  min-width: 64px;
}
.scv-timer.scv-low {
  color: var(--red);
}
.scv-controls-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* get-ready countdown */
.scv-bignum {
  font-size: 64px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

/* ============================================================
   MODALS
   ============================================================ */
.scv-overlay {
  position: fixed;
  inset: 0;
  background: #3f2f6e59;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
  padding: 20px;
}
.scv-overlay.scv-show {
  display: flex;
}
.scv-modal {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  max-width: 420px;
  width: 100%;
  padding: 26px 26px 22px;
  animation: scv-pop 0.14s ease-out;
}
@keyframes scv-pop {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.scv-modal h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.scv-modal p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.55;
  margin: 0 0 14px;
  font-weight: 600;
}
.scv-missing-list {
  background: #fdf2e3;
  border: 1.5px solid #f3ddb8;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin: 0 0 16px;
  list-style: none;
}
.scv-missing-list li {
  font-size: 13px;
  font-weight: 700;
  color: #8a5104;
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.scv-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.scv-warn-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #fdf2e3;
  color: var(--amber);
  display: flex;
  align-items: center;
  justify-content: center;
}
.scv-ok-icon {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: #e8f6ed;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   BOOT / ERROR SCREEN
   ============================================================ */
.scv-boot {
  max-width: 480px;
  margin: 80px auto 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  text-align: center;
}
.scv-boot h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}
.scv-boot p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.55;
  margin: 0;
  font-weight: 600;
}
.scv-boot .scv-boot-error {
  color: var(--red);
}

/* ============================================================
   SCREEN 3 — SUBMITTED
   ============================================================ */
.scv-done-screen {
  max-width: 460px;
  margin: 60px auto 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 40px 32px;
  text-align: center;
  display: none;
}
.scv-done-screen.scv-show {
  display: block;
}
.scv-done-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #e8f6ed;
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}
.scv-done-screen h1 {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 8px;
}
.scv-done-screen p {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.55;
  margin: 0;
  font-weight: 600;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* Columns never stack — they compress. Only the details inside shrink. */
@media (max-width: 820px) {
  .scv-pip {
    width: 128px;
    right: 10px;
    bottom: 10px;
  }
  .scv-header h1 {
    font-size: 15px;
  }
  .scv-controls {
    padding: 12px 14px;
  }
}
@media (max-width: 520px) {
  .scv-rail {
    width: clamp(52px, 17vw, 96px);
    padding: 10px 6px;
  }
  .scv-q {
    padding: 8px 6px;
    justify-content: center;
  }
  .scv-q-status {
    display: none;
  }
  .scv-rail-title {
    display: none;
  }
  .scv-pip {
    width: 96px;
  }
  .scv-stage-center h2 {
    font-size: 15px;
  }
  .scv-stage-center p {
    font-size: 12px;
  }
  .scv-bignum {
    font-size: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .scv-app *,
  .scv-app *::before,
  .scv-app *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}
