:root {
  --bg-app: #f4f2fa;
  --surface: #ffffff;
  --primary: #4e428a;
  --primary-light: #7466b2;
  --primary-soft: #e6e1f7;
  --teal: #1d8a93;
  --teal-soft: #e0f5f6;
  --green-opener: #15803d;
  --green-bg: #dcfce7;
  --amber: #d97706;
  --danger: #dc2626;
  --text-main: #231f33;
  --text-muted: #645e78;
  --border: #dcd6f0;
  --shadow: 0 8px 24px rgba(78, 66, 138, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-app);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* TOP NAVIGATION */
.topbar {
  background: var(--primary);
  color: #fff;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-logo {
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.15);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.brand h1 {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.wake-badge {
  background: rgba(45, 212, 191, 0.22);
  border: 1px solid rgba(45, 212, 191, 0.5);
  color: #99f6e4;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.12rem 0.45rem;
  border-radius: 99px;
}

.brand-sub {
  font-size: 0.75rem;
  opacity: 0.85;
}

.deck-selector-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.6rem;
  border-radius: 10px;
  max-width: 100%;
}

.deck-selector-wrap label {
  font-size: 0.78rem;
  font-weight: 600;
}

.deck-select {
  background: #fff;
  color: var(--text-main);
  border: none;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  max-width: 220px;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn {
  border: none;
  border-radius: 8px;
  padding: 0.48rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn:active {
  transform: scale(0.97);
}

.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.78rem;
}

.btn-secondary {
  background: var(--primary-soft);
  color: var(--primary);
}

.btn-cuecard {
  background: #fde047;
  color: #422006;
}

.btn-cuecard.active {
  background: #22c55e;
  color: #fff;
}

.btn-calm {
  background: #2dd4bf;
  color: #0f3d38;
}

.btn-accent {
  background: #fbbf24;
  color: #452700;
}

.btn-pacer {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1.5px solid #c084fc;
}

.btn-pacer.active {
  background: #7e22ce;
  color: #fff;
  border-color: #7e22ce;
}

.btn-tts {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #7dd3fc;
}

.btn-tts.speaking {
  background: #0284c7;
  color: #fff;
}

.btn-record {
  background: #ef4444;
  color: #fff;
  padding: 0.65rem 1.2rem;
  font-size: 0.92rem;
}

.btn-record.recording {
  background: #1e293b;
  animation: pulse-ring 1.5s infinite;
}

.btn-danger {
  background: #fee2e2;
  color: var(--danger);
}

.btn-peek {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.rec-dot {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  display: inline-block;
}

.recording .rec-dot {
  background: #ef4444;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* VIRTUAL CLASSROOM BAR */
.classroom-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.classroom-left {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex: 1;
  min-width: 220px;
}

.badge-live {
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.22rem 0.5rem;
  border-radius: 99px;
  white-space: nowrap;
}

.audience-status {
  font-size: 0.84rem;
  color: var(--text-muted);
  font-weight: 600;
}

.audience-avatars {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
}

.avatar-card {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 0.18rem 0.55rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  user-select: none;
}

.avatar-card span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nod-slow { animation: gentle-nod 3.5s ease-in-out infinite; }
.nod-mid  { animation: gentle-nod 2.8s ease-in-out infinite 0.5s; }
.nod-fast { animation: gentle-nod 3.1s ease-in-out infinite 1.1s; }

@keyframes gentle-nod {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  background: var(--primary-soft);
  padding: 0.28rem 0.65rem;
  border-radius: 99px;
  white-space: nowrap;
}

/* MOBILE SLIDE QUICK-JUMP STRIP */
.mobile-slide-strip {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 1rem 0;
  overflow-x: auto;
  justify-content: center;
}

.slide-dot-btn {
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  border-radius: 8px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.slide-dot-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* MAIN WORKSPACE GRID */
.workspace {
  flex: 1;
  display: grid;
  grid-template-columns: 1.02fr 1.18fr;
  gap: 1.15rem;
  padding: 0.85rem 1.25rem 1.5rem;
  max-width: 1560px;
  width: 100%;
  margin: 0 auto;
}

/* CUE CARD / INDEX CARD MODE */
body.cuecard-mode .slide-panel .collapsible-slide-area,
body.cuecard-mode .classroom-bar .audience-avatars {
  display: none !important;
}

body.cuecard-mode .workspace {
  grid-template-columns: 1fr;
  max-width: 780px;
}

body.cuecard-mode .prompter-text {
  font-size: 1.35rem !important;
  line-height: 1.75;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.05rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.slide-counter {
  font-weight: 800;
  color: var(--primary);
  font-size: 0.95rem;
}

.swipe-hint {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.slide-nav-btns {
  display: flex;
  gap: 0.4rem;
}

.collapsible-slide-area {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.collapsible-slide-area.collapsed {
  display: none;
}

/* SIMULATED PPT SLIDE CANVAS */
.ppt-canvas {
  aspect-ratio: 16 / 9;
  background: #f3f2f0;
  border: 2px solid var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.real-slide-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #f3f2f0;
}

.ppt-top-bar {
  height: 7px;
  background: var(--primary);
}

.ppt-bottom-bar {
  height: 7px;
  background: var(--primary-light);
}

.ppt-inner {
  flex: 1;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow-y: auto;
}

.ppt-tag {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary-light);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.ppt-title {
  font-size: 1.32rem;
  color: var(--primary);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.ppt-subtitle {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
}

.ppt-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ppt-bullet-card {
  background: #fff;
  border-left: 4px solid var(--primary);
  padding: 0.48rem 0.75rem;
  border-radius: 6px;
  font-size: 0.84rem;
  line-height: 1.38;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.ppt-bullet-card strong {
  color: var(--primary);
}

/* KEY CONCEPTS CHECKLIST */
.concepts-box {
  background: var(--bg-app);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
}

.concepts-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.concepts-header h3 {
  font-size: 0.86rem;
  color: var(--primary);
}

.concepts-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.concepts-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.concept-pill {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 99px;
  padding: 0.28rem 0.68rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.concept-pill.checked {
  background: var(--green-bg);
  border-color: #22c55e;
  color: var(--green-opener);
}

/* CONFIDENCE TIP BOX */
.confidence-tip-box {
  background: #fef9c3;
  border: 1px solid #fde047;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.83rem;
  color: #713f12;
  line-height: 1.4;
}

.tip-icon {
  font-size: 1.15rem;
}

/* RIGHT PANEL: MODE TABS & TELEPROMPTER */
.mode-tabs-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.mode-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.mode-tabs {
  display: flex;
  background: var(--bg-app);
  padding: 0.22rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 0.2rem;
  width: 100%;
}

.mode-tab {
  flex: 1;
  min-width: 115px;
  border: none;
  background: transparent;
  padding: 0.45rem 0.55rem;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
}

.mode-tab.active {
  background: var(--primary);
  color: #fff;
}

.prompter-container {
  background: #fcfbfe;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
  flex: 1;
  min-height: 230px;
  display: flex;
  flex-direction: column;
}

.prompter-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--border);
}

.lang-switch {
  display: inline-flex;
  background: var(--bg-app);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  gap: 0.2rem;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}

.lang-btn.active {
  background: #15803d;
  color: #fff;
}

/* EMERGENCY RESCUE BAR */
.rescue-bar {
  font-size: 0.76rem;
  color: #7c2d12;
  background: #ffedd5;
  border: 1px solid #fed7aa;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  margin-bottom: 0.7rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.rescue-pill {
  background: #fff;
  color: #9a3412;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: 99px;
  border: 1px solid #fdba74;
}

.font-controls {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}

.btn-icon {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.prompter-text {
  font-size: 1.18rem;
  line-height: 1.68;
  color: var(--text-main);
  overflow-y: auto;
  flex: 1;
}

/* ZERO-MEMORIZE 3-STEP CARDS */
.zeromem-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.zeromem-step {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}

.zeromem-step-1 {
  border-left: 5px solid #0284c7;
  background: #f0f9ff;
}

.zeromem-step-2 {
  border-left: 5px solid #16a34a;
  background: #f0fdf4;
}

.zeromem-step-3 {
  border-left: 5px solid #7e22ce;
  background: #faf5ff;
}

.zeromem-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

.zeromem-step-1 .zeromem-badge { color: #0369a1; }
.zeromem-step-2 .zeromem-badge { color: #15803d; }
.zeromem-step-3 .zeromem-badge { color: #6b21a8; }

/* ANTI-STUTTER CHUNKS & SLOW PACER */
.chunks-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.9;
}

.chunk-phrase {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.chunk-phrase.active-pace {
  background: #fde047;
  border-color: #ca8a04;
  color: #422006;
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(234, 179, 8, 0.3);
}

.pause-pill {
  font-size: 0.72rem;
  font-weight: 800;
  color: #0d9488;
  background: #ccfbf1;
  padding: 0.15rem 0.45rem;
  border-radius: 99px;
  user-select: none;
}

.opener-sentence {
  background: var(--green-bg);
  color: #14532d;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border-left: 4px solid #16a34a;
  display: inline;
}

.stage-cue {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85em;
  background: var(--primary-soft);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  margin-right: 0.3rem;
}

.cue-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.blind-placeholder {
  text-align: center;
  padding: 1.8rem 1rem;
  color: var(--text-muted);
}

/* SPEECH STUDIO & METRICS */
.speech-studio {
  background: var(--bg-app);
  border-radius: 12px;
  padding: 0.9rem;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.studio-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.audio-playback audio {
  height: 36px;
  max-width: 240px;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.55rem;
}

.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.metric-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}

.metric-value {
  font-size: 1.1rem;
  color: var(--primary);
}

.metric-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.transcript-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
}

.transcript-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.mic-status.listening {
  color: #16a34a;
}

.transcript-content {
  font-size: 0.84rem;
  color: var(--text-main);
  min-height: 38px;
  max-height: 80px;
  overflow-y: auto;
  line-height: 1.42;
}

.filler-highlight {
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 4px;
}

/* MOBILE STICKY BOTTOM BAR */
.mobile-bottom-bar {
  display: none;
}

.mobile-only {
  display: none;
}

/* ============================================================================
   MOBILE & TABLET RESPONSIVE OPTIMIZATIONS
   ============================================================================ */
@media (max-width: 960px) {
  .workspace {
    grid-template-columns: 1fr;
    padding: 0.65rem 0.75rem 5.2rem;
  }

  .mobile-only {
    display: inline-flex;
  }

  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(35, 31, 51, 0.96);
    backdrop-filter: blur(8px);
    padding: 0.5rem 0.55rem calc(0.5rem + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 0.9fr 1fr 1.15fr 0.95fr 0.9fr;
    gap: 0.35rem;
    z-index: 90;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.2);
  }

  .mob-btn {
    border: none;
    border-radius: 10px;
    padding: 0.65rem 0.25rem;
    font-size: 0.78rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    text-align: center;
  }

  .mob-btn:active {
    transform: scale(0.95);
  }

  .mob-btn-pacer {
    background: #7e22ce;
    color: #fff;
  }

  .mob-btn-rec {
    background: #ef4444;
    color: #fff;
  }

  .mob-btn-rec.recording {
    background: #22c55e;
  }
}

@media (max-width: 640px) {
  .topbar {
    padding: 0.6rem 0.8rem;
    gap: 0.55rem;
  }

  .brand h1 {
    font-size: 1.05rem;
  }

  .brand-sub {
    display: none;
  }

  .deck-selector-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .deck-select {
    flex: 1;
    max-width: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .topbar-actions .btn {
    flex: 1;
    padding: 0.45rem 0.35rem;
    font-size: 0.73rem;
  }

  .classroom-bar {
    padding: 0.45rem 0.8rem;
  }

  .audience-avatars {
    display: none;
  }

  .ppt-canvas {
    aspect-ratio: auto;
    min-height: 180px;
  }

  .ppt-title {
    font-size: 1.12rem;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .prompter-text {
    font-size: 1.1rem;
    line-height: 1.6;
  }

  .studio-controls .btn-record {
    width: 100%;
  }
}

/* MODALS */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(25, 20, 45, 0.65);
  backdrop-filter: blur(3px);
  display: grid;
  place-items: center;
  z-index: 120;
  padding: 0.8rem;
}

.hidden {
  display: none !important;
}

.modal-card {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 560px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-large {
  max-width: 760px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.15rem;
  color: var(--primary);
}

.btn-close {
  border: none;
  background: var(--bg-app);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: 700;
}

.modal-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.48;
}

/* BREATHING CIRCLE */
.breathing-stage {
  display: grid;
  place-items: center;
  padding: 1.35rem 0;
}

.breathing-circle {
  width: 145px;
  height: 145px;
  border-radius: 50%;
  background: radial-gradient(circle, #5eead4, #0d9488);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.35);
  transition: transform 4s ease-in-out, background 1s ease;
}

.breathing-circle.inhale {
  transform: scale(1.28);
}

.breathing-circle.exhale {
  transform: scale(0.88);
}

.breathing-circle span {
  font-size: 1.02rem;
  font-weight: 800;
}

.breathing-circle small {
  font-size: 0.88rem;
  opacity: 0.9;
  margin-top: 4px;
}

.warmup-checklist {
  background: var(--bg-app);
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.84rem;
}

.warmup-checklist h4 {
  margin-bottom: 0.4rem;
  color: var(--primary);
}

.warmup-checklist ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.qa-footer {
  justify-content: space-between;
}

/* QA CARD */
.qa-card {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.qa-question-badge {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
}

.qa-question {
  font-size: 1.02rem;
  color: var(--text-main);
}

.qa-answer {
  background: #dcfce7;
  border-left: 4px solid #16a34a;
  padding: 0.8rem;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.48;
  color: #14532d;
}

/* REPORT EDITOR */
.editor-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-row label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary);
}

.form-row input,
.slide-editor-card input,
.slide-editor-card textarea {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
}

.editor-slides-container {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 340px;
  overflow-y: auto;
}

.slide-editor-card {
  background: var(--bg-app);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.slide-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  font-size: 0.84rem;
  color: var(--primary);
}
