:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;
  --primary: #2563eb;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --accent: #7c3aed;
  --success: #059669;
  --warning: #d97706;
  --danger: #e11d48;
  --highlight-bg: #fef08a;
  --highlight-text: #854d0e;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.07);
  --radius: 14px;
  --radius-sm: 9px;
  --font: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

[data-theme="dark"] {
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #1e293b;
  --border: #263248;
  --text: #f1f5f9;
  --text-muted: #cbd5e1;
  --text-soft: #94a3b8;
  --primary: #60a5fa;
  --primary-soft: rgba(96, 165, 250, 0.15);
  --highlight-bg: rgba(250, 204, 21, 0.22);
  --highlight-text: #fde047;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button, input {
  font-family: inherit;
}

/* Topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  filter: brightness(1.08);
}

.btn-active {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* Breadcrumbs */
.breadcrumbs {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-soft);
}

.crumb-btn {
  background: none;
  border: none;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--text-muted);
  font-weight: 600;
  cursor: pointer;
}

.crumb-btn:hover {
  background: var(--surface-2);
  color: var(--primary);
}

.crumb-current {
  color: var(--text);
  font-weight: 700;
  padding: 4px 6px;
}

/* Main container */
.container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 20px 24px 64px;
}

/* Hero / Filter Bar */
.hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-title {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.hero-desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 760px;
  font-size: 14.5px;
}

.hero-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-pill {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 108px;
}

.stat-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.stat-lbl {
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 2px;
}

.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.search-input {
  flex: 1;
  min-width: 240px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
}

.search-input:focus {
  outline: 2px solid var(--primary);
  border-color: transparent;
}

.stage-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill:hover, .pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Stage Section (Layer 1) */
.stage-block {
  margin-bottom: 30px;
}

.stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.stage-title {
  margin: 6px 0 4px;
  font-size: 18px;
  font-weight: 800;
}

.stage-desc {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 18px;
}

@media (max-width: 640px) {
  .groups-grid {
    grid-template-columns: 1fr;
  }
}

.group-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.group-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.group-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
}

.group-sub {
  font-size: 12px;
  color: var(--text-soft);
}

.topics-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 520px) {
  .topics-list {
    grid-template-columns: 1fr;
  }
}

.topic-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.topic-item:hover {
  border-color: var(--primary);
  background: var(--surface);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.topic-item.has-full {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.06);
}

.topic-num {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.topic-item.priority .topic-num {
  background: var(--primary-soft);
  color: var(--primary);
}

.topic-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

.badge-full {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
}

[data-theme="dark"] .badge-full {
  color: #34d399;
}

.badge-q {
  background: rgba(37, 99, 235, 0.14);
  color: var(--primary);
}

/* Layer 2: Topic Hub (4 Levels) */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.level-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: all 0.18s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.level-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.level-tag {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
}

.level-card h3 {
  margin: 8px 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.level-card p {
  margin: 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

/* Layer 3 + Layer 4 Split Workspace */
.workspace-grid {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

@media (max-width: 960px) {
  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 96px);
  overflow-y: auto;
}

.sidebar-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
  padding: 4px 8px 10px;
}

.session-btn {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  margin-bottom: 4px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.14s ease;
}

.session-btn:hover {
  background: var(--surface-2);
}

.session-btn.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.session-code {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary);
}

.session-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.session-vi {
  font-size: 11.5px;
  color: var(--text-soft);
}

/* Question Tabs */
.question-strip {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.question-card-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.question-card-btn:hover {
  border-color: var(--primary);
}

.question-card-btn.active {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: var(--shadow-sm);
}

.q-index {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.q-text {
  flex: 1;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.38;
}

/* Layer 4 Studio Card */
.studio-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-md);
}

.persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 820px) {
  .persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.persona-btn {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all 0.16s ease;
}

.persona-btn:hover {
  border-color: var(--primary);
  background: var(--surface);
}

.persona-btn.active {
  border-color: var(--persona-color, var(--primary));
  background: color-mix(in srgb, var(--persona-color, var(--primary)) 10%, var(--surface));
  box-shadow: 0 4px 12px color-mix(in srgb, var(--persona-color, var(--primary)) 18%, transparent);
}

.persona-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
}

.persona-angle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.35;
}

/* Layer 4 Sub-tabs */
.subtabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.subtab {
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.subtab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Summary Banner */
.summary-box {
  background: linear-gradient(135deg, var(--primary-soft), rgba(124, 58, 237, 0.08));
  border: 1px solid color-mix(in srgb, var(--primary) 30%, var(--border));
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.summary-title {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 3px;
}

.summary-angle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Arrow Mind Map */
.mindmap-flow {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 14px 0 20px;
}

.mm-node {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  position: relative;
}

.mm-symbol {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.mm-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.mm-content {
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
}

.mm-arrow {
  text-align: center;
  font-size: 18px;
  color: var(--text-soft);
  line-height: 0.7;
  user-select: none;
}

/* Highlighted Band 8+ Vocab */
.kw {
  background: var(--highlight-bg);
  color: var(--highlight-text);
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 800;
  cursor: pointer;
  border-bottom: 2px solid rgba(202, 138, 4, 0.45);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.kw:hover {
  box-shadow: 0 2px 8px rgba(202, 138, 4, 0.28);
}

.kw-common {
  background: rgba(14, 165, 233, 0.14);
  color: #0369a1;
  border-bottom-color: rgba(14, 165, 233, 0.45);
}

body.dark .kw-common {
  background: rgba(56, 189, 248, 0.18);
  color: #7dd3fc;
  border-bottom-color: rgba(56, 189, 248, 0.45);
}

/* Instant Floating Keyword Tooltip */
.kw-tooltip-pop {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  max-width: 310px;
  background: #0f172a;
  color: #f8fafc;
  padding: 10px 13px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.kw-tooltip-pop.visible {
  opacity: 1;
  transform: translateY(0);
}

.kw-tip-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 3px;
}

.kw-tip-word {
  font-weight: 800;
  font-size: 14px;
  color: #fde047;
}

.kw-tip-pos {
  font-size: 11px;
  font-style: italic;
  color: #94a3b8;
}

.kw-tip-ipa {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  color: #38bdf8;
  margin-bottom: 4px;
}

.kw-tip-vi {
  color: #f1f5f9;
  font-weight: 500;
}

.kw-tip-hint {
  margin-top: 5px;
  font-size: 11px;
  color: #94a3b8;
}

/* Vietnamese Reverse Translation Flow */
.vi-flow-step {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  margin-bottom: 10px;
}

.vi-flow-step:last-child {
  margin-bottom: 0;
}

.vi-cue-line {
  font-size: 14.5px;
  font-weight: 600;
  color: #059669;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px dashed var(--border);
}

body.dark .vi-cue-line {
  color: #34d399;
}

/* Fill-in-the-blank Interactive Quiz */
.quiz-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.quiz-score-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary);
}

.quiz-card {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  margin-bottom: 14px;
}

.quiz-sentence {
  font-size: 16px;
  line-height: 1.65;
  font-weight: 500;
  margin-bottom: 8px;
}

.quiz-blank {
  display: inline-block;
  min-width: 90px;
  padding: 1px 10px;
  margin: 0 3px;
  border-radius: 6px;
  border-bottom: 2px dashed var(--primary);
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-weight: 800;
  text-align: center;
}

.quiz-blank.solved {
  border-bottom-style: solid;
  border-bottom-color: #059669;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.quiz-hint {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 12px;
}

.quiz-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
}

.quiz-opt {
  text-align: left;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.quiz-opt:hover:not(:disabled) {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.06);
}

.quiz-opt.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.quiz-opt.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

body.dark .quiz-opt.correct {
  color: #6ee7b7;
}

body.dark .quiz-opt.wrong {
  color: #fca5a5;
}

.quiz-feedback {
  margin-top: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--text);
}

.practice-q-cell {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  min-width: 220px;
}

/* Sample Answer Box */
.answer-prose {
  font-size: 17px;
  line-height: 1.75;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.answer-step-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.answer-step-row:last-child {
  margin-bottom: 0;
}

.tech-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.blur-recall {
  filter: blur(6px);
  transition: filter 0.2s ease;
  cursor: pointer;
}

.blur-recall:hover {
  filter: blur(0);
}

/* Vocab Table */
.vocab-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-top: 12px;
}

.vocab-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.vocab-table th, .vocab-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.vocab-table th {
  background: var(--surface-2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.vocab-word {
  font-weight: 800;
  color: var(--primary);
  font-size: 14.5px;
}

.ipa {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--text-soft);
}

/* Podcast Debate View (Level 4) */
.podcast-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
}

.pros-cons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0 20px;
}

@media (max-width: 720px) {
  .pros-cons {
    grid-template-columns: 1fr;
  }
}

.pc-box {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.dialogue-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
}

.speaker-badge {
  min-width: 110px;
  font-weight: 800;
  font-size: 13px;
  color: var(--primary);
}

/* Slide / Presentation Mode */
body.slide-mode .breadcrumbs,
body.slide-mode .sidebar-card {
  display: none;
}

body.slide-mode .workspace-grid {
  grid-template-columns: 1fr;
}

body.slide-mode .container {
  max-width: 1220px;
  padding-top: 12px;
}

body.slide-mode .question-strip {
  gap: 5px;
  margin-bottom: 10px;
}

body.slide-mode .question-card-btn {
  padding: 7px 12px;
}

body.slide-mode .q-text {
  font-size: 16.5px;
  line-height: 1.35;
}

body.slide-mode .studio-card {
  padding: 14px 18px;
}

body.slide-mode .persona-grid {
  gap: 8px;
  margin-bottom: 10px;
}

body.slide-mode .persona-btn {
  padding: 8px 10px;
}

body.slide-mode .subtabs {
  margin-bottom: 10px;
}

body.slide-mode .summary-box {
  padding: 10px 14px;
  margin-bottom: 10px;
}

body.slide-mode .summary-title {
  font-size: 16.5px;
}

body.slide-mode .mm-node {
  padding: 9px 14px;
}

body.slide-mode .mm-arrow {
  margin: 1px 0;
  font-size: 12px;
}

body.slide-mode .vi-cue-line {
  font-size: 13.5px;
  margin-bottom: 2px;
}

body.slide-mode .mm-content,
body.slide-mode .answer-prose {
  font-size: 16.5px;
  line-height: 1.5;
}

body.slide-mode .answer-prose {
  padding: 14px 16px;
}

body.slide-mode .answer-step-row {
  margin-bottom: 8px;
}

.slide-nav-bar {
  display: none;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  box-shadow: var(--shadow-md);
  gap: 10px;
  align-items: center;
  z-index: 50;
}

body.slide-mode .slide-nav-bar {
  display: flex;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
}

/* ==================== HYBRID AUDIO PLAYER ==================== */
.audio-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.audio-bar audio {
  flex: 1;
  min-width: 210px;
  height: 36px;
}

.audio-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  white-space: nowrap;
}

.speed-group {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.speed-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
}

.speed-btn:hover {
  color: var(--text);
}

.speed-btn.active {
  background: var(--primary);
  color: #fff;
}

.audio-error-note {
  width: 100%;
  font-size: 12.5px;
  color: var(--warning);
  font-weight: 600;
  display: none;
}

.audio-error-note.show {
  display: block;
}

/* ==================== ILLUSTRATIONS & TOPIC MEDIA ==================== */
.topic-cover-wrap {
  width: 220px;
  max-width: 100%;
  flex-shrink: 0;
}

.topic-cover-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  display: block;
  box-shadow: var(--shadow-sm);
}

.teacher-note-box {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  font-size: 13.5px;
  color: var(--text);
}

.illustration-card {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.illustration-img {
  width: 240px;
  max-width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  cursor: zoom-in;
  border: 1px solid var(--border);
  display: block;
}

body.slide-mode .illustration-img {
  width: 340px;
  max-height: 240px;
}

.illustration-meta {
  flex: 1;
  min-width: 180px;
  font-size: 13px;
  color: var(--text-soft);
}

.vocab-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  vertical-align: middle;
  margin-right: 8px;
}

/* ==================== MODAL & LIGHTBOX ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.modal-backdrop.open {
  display: flex;
}

.modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.modal-section {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.modal-section h4 {
  margin: 0 0 8px;
  font-size: 14.5px;
  font-weight: 800;
}

.modal-section p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--text-muted);
}

.dropzone {
  border: 2px dashed var(--primary);
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropzone:hover,
.dropzone.dragover {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.status-banner {
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.status-banner.success {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #047857;
}

[data-theme="dark"] .status-banner.success {
  color: #6ee7b7;
}

.status-banner.error {
  background: rgba(225, 29, 72, 0.12);
  border-color: rgba(225, 29, 72, 0.35);
  color: #be123c;
}

.code-hint {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--border);
}

.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 120;
  cursor: zoom-out;
}

.lightbox-backdrop.open {
  display: flex;
}

.lightbox-img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

/* SkyPass Protected Access Lock & Topic Loader */
.skypass-lock-screen {
  min-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.skypass-lock-card {
  max-width: 520px;
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}
.skypass-lock-icon {
  font-size: 44px;
  margin-bottom: 12px;
}
.skypass-lock-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  color: var(--text, #0f172a);
}
.skypass-lock-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-soft, #475569);
  margin: 0;
}
.topic-loading-card {
  padding: 56px 24px;
  text-align: center;
  background: var(--card, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  margin-top: 16px;
}
.topic-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: sp-spin 0.75s linear infinite;
}
@keyframes sp-spin { to { transform: rotate(360deg); } }

/* Anti-copy selection lock (search inputs remain editable) */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
input, textarea {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

/* SkyPass Logo & Contact Footer */
.brand-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  display: block;
}
.skypass-footer-logo-wrap {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.skypass-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border, #e2e8f0);
  background: var(--card, #ffffff);
  padding: 20px 24px;
}
body.slide-mode .skypass-footer {
  display: none;
}
.skypass-footer-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.skypass-footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.skypass-footer-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.28);
  display: block;
}
.skypass-footer-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #0f172a);
}
.skypass-footer-sub {
  font-size: 12px;
  color: var(--text-soft, #64748b);
}
.skypass-footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--text-soft, #475569);
}
.skypass-footer-links a {
  color: var(--text-soft, #475569);
  text-decoration: none;
  transition: color 0.15s ease;
}
.skypass-footer-links a:hover {
  color: var(--primary, #2563eb);
}
.skypass-footer-links strong {
  color: var(--text, #0f172a);
}

/* Author Bio Card in Hero */
.author-bio-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--bg-soft, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-left: 4px solid var(--primary, #2563eb);
}
.author-bio-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.author-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--text, #0f172a);
}
.author-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary, #2563eb);
}
.author-creds {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft, #475569);
}
.author-creds strong {
  color: var(--text, #0f172a);
}

/* Mobile Fix for Level 1 Workspace (compact horizontal session strip, no sticky overlay) */
.workspace-grid > * {
  min-width: 0;
}
@media (max-width: 960px) {
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .sidebar-card {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 12px;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
  }
  .sidebar-title {
    display: none;
  }
  .session-btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 145px;
    max-width: 190px;
    margin-bottom: 0;
    padding: 8px 10px;
    border: 1px solid var(--border);
    background: var(--surface-2, #f8fafc);
  }
  .session-vi {
    display: none;
  }
  .studio-card {
    padding: 16px 14px;
  }
  .persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px;
  }
  .topbar-actions {
    flex-wrap: wrap;
    gap: 6px;
  }
}
@media (max-width: 520px) {
  .persona-grid {
    grid-template-columns: 1fr;
  }
}

/* Slide Nav Hint & Floating Quick Nav Bar (Level 1) */
.slide-nav-hint {
  font-size: 12px;
  color: var(--text-soft);
  font-weight: 600;
}
@media (max-width: 720px) {
  .slide-nav-hint { display: none; }
}
body.has-quick-nav {
  padding-bottom: 72px;
}
.quick-nav-bar {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 95;
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #cbd5e1);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
  max-width: calc(100vw - 14px);
  backdrop-filter: blur(8px);
}
.quick-nav-bar.visible {
  display: flex;
}
.qnav-btn {
  border: 1px solid var(--border, #cbd5e1);
  background: var(--surface-2, #f8fafc);
  color: var(--text, #0f172a);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}
.qnav-btn:hover {
  background: var(--primary-soft, #eff6ff);
  color: var(--primary, #2563eb);
  border-color: var(--primary, #2563eb);
}
.qnav-center {
  background: var(--primary, #2563eb);
  color: #ffffff;
  border-color: var(--primary, #2563eb);
}
.qnav-center:hover {
  background: #1d4ed8;
  color: #ffffff;
}
.qnav-edge {
  font-weight: 800;
}
@media (max-width: 560px) {
  .quick-nav-bar {
    bottom: 58px;
    padding: 5px 6px;
    gap: 4px;
  }
  body.has-quick-nav {
    padding-bottom: 118px;
  }
  .qnav-btn {
    font-size: 12px;
    padding: 7px 9px;
  }
}

/* Mobile Typography & Compact Reading Polish (Questions, Mind Map, Sample Band 8+) */
@media (max-width: 768px) {
  .quick-nav-bar {
    bottom: 58px;
  }
  body.has-quick-nav {
    padding-bottom: 118px;
  }

  /* 1. Compact Question Strip */
  .question-strip {
    gap: 6px;
    margin-bottom: 12px;
  }
  .question-card-btn {
    padding: 8px 10px;
    gap: 8px;
  }
  .q-index {
    width: 22px;
    height: 22px;
    font-size: 11.5px;
  }
  .q-text {
    font-size: 13.5px !important;
    line-height: 1.38 !important;
  }

  /* 2. Compact Mind Map / Outline (fits 4 steps cleanly on 1 mobile screen) */
  .summary-box {
    padding: 10px 12px;
    margin-bottom: 10px;
    gap: 8px;
  }
  .summary-title {
    font-size: 14.5px !important;
    line-height: 1.3;
  }
  .summary-angle {
    font-size: 12px !important;
  }
  .mindmap-flow {
    gap: 0;
  }
  .mm-node {
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 10px;
  }
  .mm-symbol {
    width: 24px !important;
    height: 24px !important;
    font-size: 12px !important;
  }
  .mm-label {
    font-size: 10.5px !important;
    margin-bottom: 2px !important;
  }
  .mm-content {
    font-size: 13.5px !important;
    line-height: 1.45 !important;
  }
  .vi-cue-line {
    font-size: 12.5px !important;
    line-height: 1.38 !important;
    margin-bottom: 3px !important;
  }
  .mm-arrow {
    font-size: 11px !important;
    line-height: 1 !important;
    margin: 2px 0 !important;
  }

  /* 3. Sample Band 8+ Tab: Stack technique tag ABOVE each sentence + cleaner font size */
  .answer-prose {
    padding: 12px !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
  }
  .answer-step-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--border, #e2e8f0);
  }
  .answer-step-row:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0;
    border-bottom: none;
  }
  .answer-step-row .tech-pill {
    font-size: 10.5px !important;
    padding: 2px 8px !important;
    margin: 0 !important;
    white-space: nowrap;
  }
}

/* Voice Picker Modal */
.voice-modal-card {
  width: min(520px, calc(100vw - 24px));
  max-height: 85vh;
  overflow-y: auto;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.voice-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.voice-modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}
.voice-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border, #cbd5e1);
  background: var(--surface-2, #f8fafc);
  color: var(--text, #0f172a);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}
.voice-speed-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.voice-hint-box {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-soft, #475569);
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 14px;
}

/* Tab 5: Listening Cloze (Find the Missing Word) */
.lc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.lc-audio-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.lc-script-box {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 18px 20px;
  font-size: 16px;
  line-height: 1.95;
  color: var(--text, #0f172a);
}
.lc-blur {
  display: inline-block;
  padding: 1px 7px;
  margin: 0 2px;
  border-radius: 6px;
  background: rgba(250, 204, 21, 0.28);
  border: 1px dashed #eab308;
  color: var(--text, #0f172a);
  font-weight: 700;
  cursor: pointer;
  filter: blur(5.5px);
  transition: filter 0.18s ease, background 0.18s ease;
}
.lc-blur:hover,
.lc-blur.revealed {
  filter: none;
  background: rgba(250, 204, 21, 0.45);
}
.lc-input {
  display: inline-block;
  width: 138px;
  max-width: 46vw;
  padding: 3px 8px;
  margin: 0 3px;
  border-radius: 8px;
  border: 1.5px solid var(--primary, #2563eb);
  background: var(--surface, #ffffff);
  color: var(--text, #0f172a);
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
  outline: none;
}
.lc-input:focus {
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}
.lc-res {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  margin: 0 2px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 14.5px;
}
.lc-res.ok {
  background: rgba(16, 185, 129, 0.16);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.45);
}
.lc-res.bad {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.4);
}
.lc-score-banner {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary, #2563eb);
  font-weight: 800;
  font-size: 14px;
}
@media (max-width: 768px) {
  .lc-script-box {
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.85;
  }
  .lc-input {
    width: 118px;
    font-size: 13.5px;
  }
}

/* Sentence Scramble Mode inside Tab 1 */
.scramble-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scramble-step-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.scramble-card {
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 14px;
  padding: 16px;
}
.scramble-vi {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary, #2563eb);
  background: rgba(37, 99, 235, 0.07);
  border-left: 4px solid var(--primary, #2563eb);
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 14px;
  line-height: 1.5;
}
.scramble-zone-label {
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-soft, #64748b);
  margin-bottom: 6px;
}
.scramble-answer-zone {
  min-height: 54px;
  padding: 10px;
  border-radius: 12px;
  background: var(--surface, #ffffff);
  border: 2px dashed var(--border, #cbd5e1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.scramble-answer-zone.correct {
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.07);
}
.scramble-answer-zone.wrong {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.05);
}
.scramble-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
}
.scramble-chip {
  border: 1px solid var(--border, #cbd5e1);
  background: var(--surface, #ffffff);
  color: var(--text, #0f172a);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.14s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}
.scramble-chip:hover {
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
  transform: translateY(-1px);
}
.scramble-chip.in-answer {
  background: var(--primary-soft, #eff6ff);
  border-color: var(--primary, #2563eb);
  color: var(--primary, #2563eb);
}
.scramble-chip.chip-ok {
  background: rgba(16, 185, 129, 0.16);
  border-color: #10b981;
  color: #047857;
}
.scramble-chip.chip-bad {
  background: rgba(239, 68, 68, 0.14);
  border-color: #ef4444;
  color: #b91c1c;
}
.scramble-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
@media (max-width: 768px) {
  .scramble-card { padding: 12px; }
  .scramble-vi { font-size: 13.5px; padding: 8px 10px; }
  .scramble-chip { font-size: 13px; padding: 5px 10px; }
}
