:root {
  --bg-deep: #0B1324;
  --bg-dark: #101A30;
  --card-bg: #16233F;
  --card-elevated: #1D2E52;
  --border-subtle: rgba(247, 248, 252, 0.1);
  --gold: #FF7817;
  --gold-bright: #FFB038;
  --gold-dim: rgba(255, 120, 23, 0.16);
  --coral: #E51F3A;
  --coral-dim: rgba(229, 31, 58, 0.18);
  --green: #34D399;
  --green-dim: rgba(52, 211, 153, 0.16);
  --blue: #60A5FA;
  --purple: #C084FC;
  --text-primary: #F7F8FC;
  --text-secondary: #CBD5E1;
  --text-muted: #8B9BB8;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.4);
}

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

body {
  margin: 0;
  padding: 0;
  background: radial-gradient(circle at top center, #1E2235 0%, #090A10 70%);
  color: var(--text-primary);
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
}

.app-shell {
  width: 100%;
  max-width: 480px;
  min-height: 100vh;
  background: var(--bg-deep);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.65);
}

/* Header */
.top-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(12px, calc(env(safe-area-inset-top, 0px) + 10px)) 16px 12px;
  background: rgba(15, 17, 26, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--gold);
}

.brand-title {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.4px;
  color: var(--gold);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-secondary);
}

.stats-pills {
  display: flex;
  gap: 8px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
}

.stat-pill.streak { color: #FF8A65; }
.stat-pill.xp { color: var(--gold); }

/* Main Content */
.main-content {
  flex: 1;
  padding: 16px 16px 124px;
  overflow-y: auto;
}

.tab-view { display: none; }
.tab-view.active { display: block; animation: fadeIn 0.22s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Progress Card */
.hero-card {
  background: linear-gradient(145deg, #212638 0%, #171A26 100%);
  border: 1px solid rgba(255, 209, 92, 0.22);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 22px;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.badge-gold {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.7px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 6px;
}

.badge-gold-sm {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
}

.badge-subtle {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-secondary);
}

.hero-title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
}

.hero-desc {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.progress-ring-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.progress-ring { transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.ring-fg { fill: none; stroke: var(--gold); stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 0.5s ease; }

.ring-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  color: var(--gold);
}

.skill-bars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 16px 0;
}

.sb-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.sb-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.sb-fill { height: 100%; border-radius: 999px; transition: width 0.4s ease; }
.sb-fill.gold { background: var(--gold); }
.sb-fill.coral { background: var(--coral); }
.sb-fill.green { background: var(--green); }
.sb-fill.blue { background: var(--blue); }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #FFD15C 0%, #F5A623 100%);
  color: #14161F;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }

.btn-secondary {
  background: var(--card-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-coral {
  background: linear-gradient(135deg, #E85D4A 0%, #D43F2D 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-green {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  color: #082018;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 18px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
}

.btn-danger-outline {
  background: transparent;
  color: var(--coral);
  border: 1px solid rgba(232, 93, 74, 0.4);
  border-radius: var(--radius-md);
  padding: 11px 16px;
  font-weight: 700;
  cursor: pointer;
}

.btn-full { width: 100%; }

/* Section Head & Path */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.section-head h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.text-muted { color: var(--text-muted); font-size: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }

.phase-banner {
  background: rgba(255, 209, 92, 0.08);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 13px;
}

.lesson-path {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lesson-node {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.2s ease;
}

.lesson-node:hover { border-color: rgba(255, 209, 92, 0.45); }
.lesson-node.active-day {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 209, 92, 0.12), var(--card-bg));
}
.lesson-node.done { border-color: rgba(52, 211, 153, 0.4); }

.node-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--card-elevated);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  color: var(--gold);
  flex-shrink: 0;
}

.lesson-node.done .node-badge {
  background: var(--green-dim);
  color: var(--green);
}

.node-info { flex: 1; min-width: 0; }
.node-zh { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.node-vi { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.node-meta { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.node-action {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
}

.lesson-node.done .node-action {
  background: var(--green-dim);
  color: var(--green);
}

/* Roadmap Preview */
.roadmap-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.preview-tile {
  background: rgba(30, 34, 48, 0.55);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 12px;
}

.preview-day { font-size: 11px; font-weight: 800; color: var(--text-muted); }
.preview-zh { font-size: 14px; font-weight: 700; margin: 4px 0 2px; }
.preview-vi { font-size: 12px; color: var(--text-secondary); }

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  display: flex;
  justify-content: space-around;
  background: rgba(20, 22, 31, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-subtle);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 30;
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 16px;
}

.nav-item.active { color: var(--gold); }
.nav-icon { font-size: 20px; }

/* Lesson Player Overlay */
.lesson-player {
  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-deep);
  z-index: 50;
  display: flex;
  flex-direction: column;
}

.lesson-player.hidden { display: none; }

.player-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.step-progress-wrap { flex: 1; }
.step-segments {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 5px;
  margin-bottom: 6px;
}

.step-seg {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
.step-seg.done { background: var(--green); }
.step-seg.active { background: var(--gold); }

.step-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

.player-stage {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px 32px;
  display: flex;
  flex-direction: column;
}

/* Flashcard */
.flashcard-wrap {
  perspective: 1000px;
  margin: 8px 0 18px;
}

.flashcard {
  background: linear-gradient(160deg, #23283B 0%, #191C29 100%);
  border: 1px solid rgba(255, 209, 92, 0.25);
  border-radius: 22px;
  padding: 26px 20px;
  text-align: center;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.fc-illus {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255, 209, 92, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.fc-hanzi {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 6px;
}

.fc-pinyin {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 14px;
}

.tone-1 { color: #FF6B6B; }
.tone-2 { color: #FFD15C; }
.tone-3 { color: #34D399; }
.tone-4 { color: #60A5FA; }
.tone-0 { color: #94A3B8; }

.fc-meaning-box {
  margin-top: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  width: 100%;
}

.fc-vi { font-size: 20px; font-weight: 700; color: var(--gold); }
.fc-tip { font-size: 13px; color: var(--text-secondary); margin-top: 6px; line-height: 1.45; }

.audio-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 12px;
}

.btn-audio {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-audio:active { background: var(--gold-dim); color: var(--gold); }

.action-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: auto;
}

/* Chunks & Cards */
.card-panel {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
}

.chunk-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 12px;
}

.chunk-zh { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.kw-gold { color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255,209,92,0.4); }
.chunk-pinyin { font-size: 14px; color: var(--text-secondary); }
.chunk-vi { font-size: 15px; font-weight: 700; color: var(--green); margin-top: 6px; }
.chunk-note { font-size: 12.5px; color: var(--text-muted); margin-top: 6px; line-height: 1.45; }

/* Sentence Builder */
.sb-prompt {
  background: var(--card-elevated);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin-bottom: 16px;
}

.sb-slots {
  min-height: 68px;
  background: rgba(255,255,255,0.03);
  border: 1.5px dashed rgba(255,209,92,0.35);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 8px;
  align-items: flex-start;
  align-content: flex-start;
  margin-bottom: 16px;
}

.sb-bank {
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 8px;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 18px;
}

.tile-btn {
  background: var(--card-elevated);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text-primary);
  padding: 9px 13px;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  cursor: pointer;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  flex: 0 1 auto;
}

.tile-btn.used { opacity: 0.25; pointer-events: none; }
.tile-btn.placed { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }

.feedback-banner {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 14px;
}
.feedback-banner.ok { background: var(--green-dim); color: var(--green); border: 1px solid rgba(52,211,153,0.4); }
.feedback-banner.err { background: var(--coral-dim); color: #FF9485; border: 1px solid rgba(232,93,74,0.4); }

/* Dialogue */
.dialogue-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.dl-bubble {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 15px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.dl-bubble.speaking { border-color: var(--gold); background: rgba(255,209,92,0.08); }
.dl-bubble.speaker-b { border-left: 3px solid var(--coral); }
.dl-bubble.speaker-a { border-left: 3px solid var(--blue); }

.dl-speaker { font-size: 11px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; display: flex; justify-content: space-between; }
.dl-zh { font-size: 18px; font-weight: 700; }
.dl-py { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.dl-vi { font-size: 13px; color: var(--green); margin-top: 4px; }

/* Shadowing & Recording */
.shadow-box {
  background: linear-gradient(155deg, #22273A 0%, #171A26 100%);
  border: 1px solid rgba(255,209,92,0.28);
  border-radius: 20px;
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 16px;
}

.shadow-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 14px;
}

.wave-bars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  height: 36px;
  margin: 14px 0;
}

.wave-bar {
  width: 5px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  transition: height 0.15s ease;
}

.wave-bars.active .wave-bar {
  animation: wavePulse 0.7s infinite ease-in-out alternate;
}
.wave-bars.active .wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bars.active .wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bars.active .wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bars.active .wave-bar:nth-child(5) { animation-delay: 0.15s; }

@keyframes wavePulse {
  from { height: 8px; opacity: 0.5; }
  to { height: 32px; opacity: 1; }
}

.rec-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  border: 3px solid rgba(232, 93, 74, 0.45);
  background: var(--coral);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 10px auto;
  box-shadow: 0 0 0 0 rgba(232, 93, 74, 0.5);
}

.rec-btn.recording {
  animation: recPulse 1.2s infinite;
  background: #FF3B30;
}

@keyframes recPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0.6); }
  70% { box-shadow: 0 0 0 18px rgba(255, 59, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 59, 48, 0); }
}

/* Quiz */
.quiz-option {
  width: 100%;
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 10px;
}

.quiz-option.correct { background: var(--green-dim); border-color: var(--green); color: var(--green); }
.quiz-option.wrong { background: var(--coral-dim); border-color: var(--coral); color: #FF9485; }

/* Profile & Settings */
.profile-card {
  background: linear-gradient(145deg, #212638 0%, #171A26 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  margin-bottom: 10px;
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.profile-metrics strong { display: block; font-size: 20px; color: var(--gold); }
.profile-metrics span { font-size: 11px; color: var(--text-muted); }

.panel-title { margin: 0 0 12px; font-size: 15px; }
.setting-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}
.setting-row.col { flex-direction: column; align-items: stretch; border-bottom: none; }
.setting-label { font-size: 14px; font-weight: 600; }
.setting-desc { font-size: 11.5px; color: var(--text-muted); }

.input-compact, .input-full {
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
}
.input-compact { width: 140px; }
.input-full { width: 100%; }

/* Switch */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; inset: 0;
  background-color: rgba(255,255,255,0.16);
  transition: .2s; border-radius: 999px;
}
.slider:before {
  position: absolute; content: ""; height: 18px; width: 18px;
  left: 3px; bottom: 3px; background-color: white;
  transition: .2s; border-radius: 50%;
}
input:checked + .slider { background-color: var(--gold); }
input:checked + .slider:before { transform: translateX(20px); }

/* Submissions */
.submissions-list { display: flex; flex-direction: column; gap: 10px; }
.sub-item {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px;
}
.sub-top { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 6px; }
.sub-status { color: var(--green); font-weight: 700; }

/* Toast */
.toast {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  background: #2A3045;
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--gold);
  z-index: 100;
  box-shadow: var(--shadow-card);
}
.toast.hidden { display: none; }
.small-text { font-size: 12.5px; line-height: 1.5; }


/* Brand Wide Banner & New Components */
body.player-open {
  overflow: hidden;
}

.brand-wide-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
  object-fit: contain;
}

.node-progress-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.node-progress-bar {
  flex: 1;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.node-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  transition: width 0.3s ease;
}

.node-pct {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
}

.node-time {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Clickable Step Pills & Skip/Back Bar */
.step-pills {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(16, 26, 48, 0.7);
  scrollbar-width: none;
}
.step-pills::-webkit-scrollbar { display: none; }

.step-pill {
  flex-shrink: 0;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.step-pill.active {
  background: var(--gold);
  color: #101A30;
  border-color: var(--gold);
}
.step-pill.done {
  border-color: var(--green);
  color: var(--green);
}

.player-footer-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px 16px calc(76px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-dark);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.25);
  z-index: 60;
}

.btn-nav-sm {
  background: var(--card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  min-height: 42px;
}
.btn-nav-next {
  background: var(--gold-dim);
  border-color: rgba(255, 120, 23, 0.5);
  color: var(--gold);
}
.btn-nav-sm:disabled { opacity: 0.35; cursor: not-allowed; }

/* Registration Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 20, 0.82);
  backdrop-filter: blur(8px);
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-backdrop.hidden { display: none; }

.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 120, 23, 0.35);
  border-radius: 22px;
  padding: 22px 18px;
  box-shadow: var(--shadow-card);
  max-height: 90vh;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 12px;
}
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

/* Community & Share */
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 12px;
  background: var(--card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.social-btn.zalo { border-color: rgba(0, 104, 255, 0.5); background: rgba(0, 104, 255, 0.14); }
.social-btn.yt { border-color: rgba(229, 31, 58, 0.5); background: rgba(229, 31, 58, 0.14); }
.social-btn.fb { border-color: rgba(24, 119, 242, 0.5); background: rgba(24, 119, 242, 0.14); }
.social-btn.tt { border-color: rgba(255, 120, 23, 0.5); background: rgba(255, 120, 23, 0.14); }
.social-btn.ig { border-color: rgba(225, 48, 108, 0.55); background: rgba(225, 48, 108, 0.14); }

.promo-box {
  background: rgba(255, 120, 23, 0.08);
  border: 1px dashed rgba(255, 120, 23, 0.4);
  border-radius: 12px;
  padding: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-top: 10px;
}


/* ==================== v3: Eye-Comfort, Persistent Logo & Score Trend Chart ==================== */
.app-shell, .lesson-player, .bottom-nav {
  max-width: 540px;
}

body {
  font-size: 16px;
  line-height: 1.55;
}

.node-zh { font-size: 19px; }
.node-vi { font-size: 14.5px; }
.node-time { font-size: 12px; }
.text-muted { font-size: 13px; }
.tile-btn { font-size: 18px; padding: 12px 16px; }
.quiz-option { font-size: 16px; padding: 15px 16px; }

.player-logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  object-fit: cover;
  flex-shrink: 0;
}

.keyword-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--gold-dim);
  color: var(--gold);
  margin-bottom: 8px;
}

.trend-chart-wrap {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  margin-top: 12px;
}

.attempt-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.attempt-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Soft Eye-Comfort Light Mode */
body.light-mode {
  background: #E9EEF6;
  --bg-deep: #F4F6FB;
  --bg-dark: #FFFFFF;
  --card-bg: #FFFFFF;
  --card-elevated: #EDF2F9;
  --border-subtle: rgba(16, 26, 48, 0.12);
  --text-primary: #101A30;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --shadow-card: 0 8px 24px rgba(16, 26, 48, 0.08);
}

body.light-mode .hero-card,
body.light-mode .flashcard,
body.light-mode .shadow-box,
body.light-mode .profile-card {
  background: #FFFFFF;
}

body.light-mode .top-header,
body.light-mode .bottom-nav {
  background: rgba(255, 255, 255, 0.94);
}

/* ==================== v4: Netlify Safe Clearance, Reflex Countdown & Car Podcast ==================== */
.bottom-nav {
  padding: 8px 4px calc(16px + env(safe-area-inset-bottom));
}
.nav-item {
  padding: 4px 10px;
}

/* Phase Filter Pills on Home */
.phase-filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}
.phase-filter-row::-webkit-scrollbar { display: none; }
.phase-chip {
  flex-shrink: 0;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.phase-chip.active {
  background: var(--gold);
  color: #101A30;
  border-color: var(--gold);
}

/* Flashcard Example Box */
.fc-example-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 120, 23, 0.08);
  border: 1px solid rgba(255, 120, 23, 0.25);
  text-align: left;
  width: 100%;
}
.fc-ex-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.4px;
  margin-bottom: 4px;
}
.fc-ex-zh { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.fc-ex-py { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.fc-ex-vi { font-size: 13px; color: var(--green); font-weight: 600; margin-top: 3px; }

/* Reflex Countdown Drill */
.reflex-countdown-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  margin: 14px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reflex-countdown-ring {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
}
.reflex-ring-bg { fill: none; stroke: rgba(255,255,255,0.1); stroke-width: 8; }
.reflex-ring-fg {
  fill: none;
  stroke: var(--coral);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.25s linear;
}
.reflex-countdown-num {
  position: absolute;
  font-size: 36px;
  font-weight: 900;
  color: var(--gold);
}
.reflex-reply-box {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: var(--green-dim);
  border: 1px solid rgba(52, 211, 153, 0.45);
  text-align: left;
}

/* Car Podcast Tab */
.podcast-hero-card {
  background: linear-gradient(155deg, #212638 0%, #141A2C 100%);
  border: 1px solid rgba(255, 120, 23, 0.32);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
body.light-mode .podcast-hero-card {
  background: #FFFFFF;
}
.podcast-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #0F172A;
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.podcast-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.podcast-cover-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(11, 19, 36, 0.85);
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 120, 23, 0.5);
}
.podcast-now-title { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: var(--text-primary); }
.podcast-now-sub { font-size: 13px; color: var(--text-secondary); margin: 0 0 12px; }
.podcast-audio-el { width: 100%; height: 42px; margin-bottom: 12px; }
.podcast-car-controls {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.car-btn {
  background: var(--card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 14px;
  padding: 12px 6px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  min-height: 48px;
}
.car-btn.play-main {
  background: linear-gradient(135deg, #FFD15C 0%, #F5A623 100%);
  color: #14161F;
  border: none;
  font-size: 18px;
}
.podcast-speed-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.podcast-auto-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}
.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.podcast-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
}
.podcast-item.playing {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 120, 23, 0.14), var(--card-bg));
}
.podcast-thumb-sm {
  width: 68px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--card-elevated);
  border: 1px solid var(--border-subtle);
}
.podcast-item-info { flex: 1; min-width: 0; }
.podcast-item-title { font-size: 14.5px; font-weight: 700; color: var(--text-primary); }
.podcast-item-meta { font-size: 12px; color: var(--text-muted); margin-top: 2px; }


/* ==================== v6: Omni-Search, Smart Filters, Radio Hub, SRS 3-Box & 4-Tier Funnel ==================== */
.hidden { display: none !important; }

/* Tier Pills & Badges */
.tier-pill {
  cursor: pointer;
  font-size: 11.5px;
  padding: 5px 9px;
  transition: transform 0.12s ease, border-color 0.2s ease;
}
.tier-pill:active { transform: scale(0.96); }
.tier-follower { color: var(--text-secondary); border-color: var(--border-subtle); }
.tier-community { color: #60A5FA; border-color: rgba(96, 165, 250, 0.5); background: rgba(96, 165, 250, 0.12); }
.tier-elearning { color: #34D399; border-color: rgba(52, 211, 153, 0.55); background: rgba(52, 211, 153, 0.14); }
.tier-vip {
  color: #14161F;
  background: linear-gradient(135deg, #FFE082 0%, #FFB300 50%, #FF7817 100%);
  border: none;
  font-weight: 800;
  box-shadow: 0 2px 12px rgba(255, 179, 0, 0.35);
}

.tier-tag-inline {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
}

/* Smart Due Alert inside Hero */
.smart-due-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(229, 31, 58, 0.14);
  border: 1px solid rgba(229, 31, 58, 0.42);
  font-size: 12.5px;
}
body.light-mode .smart-due-banner {
  background: rgba(229, 31, 58, 0.08);
}

/* Omni-Search Engine */
.omni-search-card {
  position: relative;
  margin-bottom: 14px;
}
.omni-search-input-wrap {
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1.5px solid rgba(255, 120, 23, 0.42);
  border-radius: 16px;
  padding: 4px 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.22);
}
.omni-search-input-wrap:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 120, 23, 0.18);
}
.omni-search-icon {
  font-size: 16px;
  margin-right: 8px;
  flex-shrink: 0;
}
.omni-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  padding: 10px 0;
  outline: none;
}
.omni-search-input::placeholder {
  color: var(--text-muted);
  font-size: 13px;
}
.omni-clear-btn {
  background: var(--card-elevated);
  border: none;
  color: var(--text-secondary);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 12px;
  flex-shrink: 0;
}
.omni-search-results {
  margin-top: 8px;
  background: var(--bg-dark);
  border: 1px solid rgba(255, 120, 23, 0.45);
  border-radius: 16px;
  padding: 12px;
  max-height: 440px;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
}
.search-group-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 10px 0 6px;
}
.search-group-title:first-child { margin-top: 0; }
.search-hit-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}
.search-hit-main { flex: 1; min-width: 0; cursor: pointer; }
.search-hit-zh { font-size: 15.5px; font-weight: 800; color: var(--text-primary); }
.search-hit-sub { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.search-hit-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.mini-icon-btn {
  background: var(--card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.mini-icon-btn.gold { color: var(--gold); border-color: rgba(255, 120, 23, 0.4); }

/* Tier Funnel Strip on Home */
.tier-funnel-strip {
  background: linear-gradient(135deg, rgba(255, 120, 23, 0.16) 0%, rgba(229, 31, 58, 0.12) 100%);
  border: 1px solid rgba(255, 176, 56, 0.4);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}

/* Smart Filter Bar */
.smart-filter-bar {
  margin-bottom: 12px;
}
.filter-sub-row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.filter-sub-row::-webkit-scrollbar { display: none; }
.filter-pill-sm {
  flex-shrink: 0;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.filter-pill-sm.active {
  background: rgba(255, 120, 23, 0.2);
  color: var(--gold);
  border-color: var(--gold);
}

/* Enhanced Lesson Node with Quick Replay & Lock States */
.lesson-node-wrap {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  transition: border-color 0.2s ease;
}
.lesson-node-wrap.done { border-color: rgba(52, 211, 153, 0.42); }
.lesson-node-wrap.active-day {
  border-color: var(--gold);
  background: linear-gradient(135deg, rgba(255, 209, 92, 0.11), var(--card-bg));
}
.lesson-node-wrap.needs-review {
  border-color: rgba(229, 31, 58, 0.5);
}
.lesson-node-wrap.locked-node {
  opacity: 0.86;
  border-style: dashed;
}
.lesson-node-top {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.quick-jump-strip {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed var(--border-subtle);
}
.qj-btn {
  background: var(--card-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.qj-btn:hover, .qj-btn.bookmarked {
  border-color: var(--gold);
  color: var(--gold);
}
.topic-tag-sm {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(96, 165, 250, 0.14);
  color: var(--blue);
  margin-left: 6px;
  vertical-align: middle;
}

/* SRS 3-Box Grid */
.srs-boxes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.srs-box-stat {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}
.srs-box-stat strong { display: block; font-size: 18px; }
.srs-box-stat span { font-size: 11px; color: var(--text-muted); }

/* 4-Tier Modal Ladder Cards */
.tier-modal-card {
  max-width: 480px;
}
.tier-ladder-item {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}
.tier-ladder-item.current-tier {
  border: 1.5px solid var(--green);
}
.tier-ladder-item.recommended-tier {
  border: 2px solid var(--gold);
  background: linear-gradient(145deg, rgba(255, 120, 23, 0.14), var(--card-bg));
}
.tier-perks-list {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.vip-replay-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 179, 0, 0.35);
  border-radius: 14px;
  padding: 13px;
  margin-bottom: 10px;
}


/* ==================== v9: Hanzi Breakdown (Chiết tự) & Typing Practice ==================== */
.vocab-mode-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
}
.vocab-mode-btn {
  padding: 9px 10px;
  border-radius: 10px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.vocab-mode-btn.active {
  background: linear-gradient(135deg, #FF9933 0%, #FF7817 100%);
  color: #101A30;
  box-shadow: 0 3px 10px rgba(255, 120, 23, 0.32);
}

.btn-audio-active {
  border-color: var(--gold) !important;
  color: var(--gold) !important;
  background: rgba(255, 120, 23, 0.14) !important;
}

/* Hanzi Breakdown Box */
.hanzi-breakdown-box {
  margin-top: 14px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.32);
  text-align: left;
  width: 100%;
}
body.light-mode .hanzi-breakdown-box {
  background: #F4F8FF;
  border-color: rgba(59, 130, 246, 0.28);
}
.hz-box-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #60A5FA;
  letter-spacing: 0.3px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
body.light-mode .hz-box-title {
  color: #2563EB;
}
.hz-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hz-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
}
.hz-char-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(145deg, rgba(255, 120, 23, 0.2), rgba(255, 120, 23, 0.06));
  border: 1px solid rgba(255, 120, 23, 0.45);
  color: var(--gold);
  font-size: 26px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}
.hz-info {
  flex: 1;
  min-width: 0;
}
.hz-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-bottom: 3px;
}
.hz-hv {
  color: var(--gold);
  font-size: 12.5px;
}
.hz-py {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 11.5px;
}
body.light-mode .hz-py {
  background: rgba(15, 23, 42, 0.07);
}
.hz-rad {
  color: var(--text-muted);
  font-size: 11.5px;
}
.hz-parts {
  font-size: 12.5px;
  color: var(--text-primary);
  margin-bottom: 3px;
}
.hz-story {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Typing Practice Card */
.typing-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
}
.typing-prompt-label {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.typing-prompt-vi {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold);
  margin-top: 6px;
  line-height: 1.3;
}
.typing-input-wrap {
  margin-top: 10px;
}
.typing-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;
  border: 1.5px solid var(--border-subtle);
  background: var(--bg-dark);
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
body.light-mode .typing-input {
  background: #F8FAFC;
}
.typing-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(255, 120, 23, 0.18);
}
.typing-input.is-ok {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18);
}
.typing-input.is-err {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(229, 31, 58, 0.18);
}
.typing-btn-row {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 8px;
  margin-top: 10px;
}
.typing-hint-pill {
  margin: 6px 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 120, 23, 0.1);
  border: 1px dashed rgba(255, 120, 23, 0.4);
  font-size: 12.5px;
  color: var(--text-primary);
  text-align: left;
}
.typing-feedback {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  text-align: left;
  line-height: 1.45;
}
.typing-feedback.ok {
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: var(--text-primary);
}
.typing-feedback.ok-py {
  background: rgba(255, 179, 0, 0.14);
  border: 1px solid rgba(255, 179, 0, 0.45);
  color: var(--text-primary);
}
.typing-feedback.err {
  background: rgba(229, 31, 58, 0.14);
  border: 1px solid rgba(229, 31, 58, 0.45);
  color: var(--text-primary);
}
.typing-feedback.info {
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: var(--text-primary);
}
.typing-ans-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.typing-ans-zh {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold);
}


/* ==================== v11 LIVE COMMUNITY PULSE & SITUATIONAL REFLEX ==================== */
.community-pulse-card {
  background: linear-gradient(135deg, rgba(22, 35, 63, 0.96), rgba(16, 26, 48, 0.96));
  border: 1px solid rgba(52, 211, 153, 0.32);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.pulse-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 13.5px;
}

.pulse-head .badge-subtle {
  margin-left: auto;
  color: var(--green);
  border-color: rgba(52, 211, 153, 0.35);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.22);
  animation: pulseLive 1.8s infinite;
  flex-shrink: 0;
}

@keyframes pulseLive {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.22); opacity: 0.7; }
}

.pulse-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pulse-stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.pulse-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1.2;
}

.pulse-stat span {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.25;
}

body.light-mode .community-pulse-card {
  background: #FFFFFF;
  border-color: rgba(16, 185, 129, 0.35);
}

body.light-mode .pulse-stat {
  background: #F4F7FB;
}

.reflex-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.reflex-mode-btn {
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.reflex-mode-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.reflex-situation-box {
  background: rgba(255, 120, 23, 0.09);
  border: 1px solid rgba(255, 120, 23, 0.35);
  border-radius: 14px;
  padding: 14px 16px;
  margin: 10px 0 6px;
  text-align: left;
}

.reflex-sit-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--gold-bright);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.reflex-sit-vi {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.4;
}

.reflex-sit-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ==================== v11 FULL-SCREEN DESKTOP / PC RESPONSIVE LAYOUT (>= 900px) ==================== */
@media (min-width: 900px) {
  body {
    display: block;
    background: var(--bg-deep);
  }

  .app-shell {
    width: 100%;
    max-width: none !important;
    min-height: 100vh;
    padding-left: 236px;
    box-shadow: none;
  }

  .top-header {
    padding: 14px 36px;
  }

  .brand-title {
    font-size: 17px;
  }

  /* Transform bottom-nav into a crisp full-height left Desktop Sidebar */
  .bottom-nav {
    position: fixed !important;
    top: 0;
    left: 0 !important;
    right: auto !important;
    bottom: 0;
    transform: none !important;
    width: 236px !important;
    max-width: 236px !important;
    height: 100vh;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 84px 14px 24px;
    gap: 8px;
    border-top: none;
    border-right: 1px solid var(--border-subtle);
    background: var(--bg-dark);
    z-index: 25;
  }

  .bottom-nav .nav-item {
    flex: 0 0 auto;
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 14px;
    font-size: 14.5px;
    font-weight: 700;
    text-align: left;
  }

  .bottom-nav .nav-item .nav-icon {
    font-size: 20px;
  }

  .bottom-nav .nav-item.active {
    background: var(--gold-dim);
    border: 1px solid rgba(255, 120, 23, 0.35);
    color: var(--gold-bright);
  }

  .main-content {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding: 26px 36px 56px;
  }

  /* Multi-column desktop grids for effortless scanning */
  .lesson-path {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .podcast-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .roadmap-preview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .skill-bars {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  .pulse-stat strong {
    font-size: 22px;
  }

  /* Wide comfortable Desktop Studio for Lesson Player */
  .lesson-player {
    left: 0 !important;
    right: 0 !important;
    transform: none !important;
    max-width: none !important;
    width: 100% !important;
    align-items: center;
    background: var(--bg-deep);
  }

  .lesson-player .player-top,
  .lesson-player .step-pills,
  .lesson-player .player-stage,
  .lesson-player .player-footer-nav {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .modal-card {
    max-width: 580px;
  }
}

@media (min-width: 1360px) {
  .lesson-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}


/* ==================== v12 SPEECH SCORING, HANDWRITING, AI CHAT, FREQUENCY & LEADERBOARD ==================== */
.vocab-mode-bar-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.speech-eval-card {
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 120, 23, 0.35);
  text-align: left;
}
.speech-eval-card.level-great { border-color: rgba(52, 211, 153, 0.6); background: rgba(52, 211, 153, 0.08); }
.speech-eval-card.level-good { border-color: rgba(255, 120, 23, 0.55); background: rgba(255, 120, 23, 0.08); }
.speech-eval-card.level-warn { border-color: rgba(255, 176, 32, 0.55); background: rgba(255, 176, 32, 0.08); }
.speech-eval-card.level-low { border-color: rgba(255, 107, 107, 0.55); background: rgba(255, 107, 107, 0.08); }

.speech-eval-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}
.speech-score-badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--gold);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}
.speech-praise {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.45;
}
.speech-diff-label {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.speech-diff-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}
.speech-ch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 30px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
}
.speech-ch.ch-ok {
  background: rgba(52, 211, 153, 0.18);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.45);
}
.speech-ch.ch-miss {
  background: rgba(255, 107, 107, 0.18);
  color: #FF6B6B;
  border: 1px solid rgba(255, 107, 107, 0.5);
  text-decoration: underline wavy #FF6B6B;
}
.speech-heard {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Handwriting Canvas (米字格) */
.write-char-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.write-char-pill {
  min-width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
}
.write-char-pill.active {
  border-color: var(--gold);
  background: rgba(255, 120, 23, 0.18);
  color: var(--gold);
}
.hw-canvas-wrap {
  display: flex;
  justify-content: center;
  margin: 8px 0;
}
#hanzi-write-canvas {
  width: 260px;
  height: 260px;
  max-width: 100%;
  border-radius: 14px;
  border: 2px solid rgba(255, 120, 23, 0.5);
  background: rgba(255, 255, 255, 0.04);
  touch-action: none;
  cursor: crosshair;
}
body.light-mode #hanzi-write-canvas {
  background: #FFFDF9;
}

/* Step 9: AI Topic Chat */
.ai-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  padding: 4px 2px;
}
.ai-msg {
  padding: 10px 12px;
  border-radius: 14px;
  max-width: 92%;
}
.ai-msg-bot {
  align-self: flex-start;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.ai-msg-user {
  align-self: flex-end;
  background: rgba(255, 120, 23, 0.14);
  border: 1px solid rgba(255, 120, 23, 0.4);
}
.ai-msg-meta { font-size: 11.5px; color: var(--text-muted); margin-bottom: 4px; }
.ai-msg-zh { font-size: 16px; font-weight: 700; line-height: 1.4; }
.ai-msg-py { font-size: 12.5px; color: var(--gold); margin-top: 2px; }
.ai-msg-vi { font-size: 12.5px; color: var(--text-secondary); margin-top: 2px; }
.ai-msg-fb { font-size: 12px; color: var(--green); margin-top: 5px; padding-top: 5px; border-top: 1px dashed rgba(255,255,255,0.12); }

.ai-composer-card {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.ai-hint-box {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
}
.ai-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Study Frequency 7-Day Chart */
.freq-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.freq-metric {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
}
.freq-metric strong { display: block; font-size: 16px; color: var(--gold); }
.freq-metric span { font-size: 10.5px; color: var(--text-muted); }

.freq-bars-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 96px;
  padding-top: 8px;
}
.freq-bar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
}
.freq-bar-val { font-size: 10px; color: var(--text-muted); }
.freq-bar-track {
  width: 100%;
  max-width: 26px;
  height: 54px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.freq-bar-fill {
  width: 100%;
  border-radius: 8px;
  background: rgba(184, 196, 224, 0.25);
  transition: height 0.3s ease;
}
.freq-bar-fill.has-min { background: var(--gold); }
.freq-bar-fill.goal-ok { background: var(--green); }
.freq-bar-lbl { font-size: 11px; color: var(--text-secondary); font-weight: 600; }
.freq-bar-col.is-today .freq-bar-lbl { color: var(--gold); font-weight: 800; }

/* Top Diligent Students Leaderboard */
.lb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.lb-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.lb-row.lb-me {
  border-color: var(--gold);
  background: rgba(255, 120, 23, 0.12);
}
.lb-rank {
  width: 30px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}
.lb-info { flex: 1; min-width: 0; }
.lb-name {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lb-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.lb-stats { text-align: right; flex-shrink: 0; }
.lb-streak { font-size: 12.5px; font-weight: 700; color: var(--gold); }
.lb-mins { font-size: 11px; color: var(--green); }


/* ==================== v13 SINGLE-SCREEN PROPORTIONS, ILLUSTRATIONS & GREEN/ORANGE MIC MATCH ==================== */
.lesson-player {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.lesson-player .player-top {
  padding: max(10px, calc(env(safe-area-inset-top, 0px) + 8px)) 12px 10px;
  gap: 8px;
  position: relative;
  z-index: 10;
}

.player-home-btn {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  touch-action: manipulation;
  flex-shrink: 0;
  -webkit-tap-highlight-color: rgba(255, 120, 23, 0.25);
}

.player-home-btn:active {
  transform: scale(0.94);
}

.btn-back-home {
  min-width: 40px;
  min-height: 40px;
  touch-action: manipulation;
}

.lesson-player .step-pills {
  padding: 5px 12px 7px;
  gap: 6px;
}

.lesson-player .step-pill {
  padding: 5px 10px;
  font-size: 11.5px;
}

.lesson-player .player-stage {
  padding: 10px 14px 12px;
  gap: 8px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.lesson-player .player-footer-nav {
  padding: 8px 12px max(10px, calc(env(safe-area-inset-bottom, 0px) + 8px));
}

.dual-voice-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.dual-voice-bar .btn-audio {
  flex: 1 1 auto;
  min-width: 78px;
  justify-content: center;
}

.btn-audio.voice-female {
  border-color: rgba(244, 114, 182, 0.45);
}

.btn-audio.voice-male {
  border-color: rgba(96, 165, 250, 0.45);
}

.btn-audio.voice-dual {
  border-color: rgba(255, 176, 56, 0.55);
  color: var(--gold-bright);
}

.live-stt-box {
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  font-size: 12px;
  color: var(--text-primary);
}

.ai-diff-strip {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(11, 19, 36, 0.55);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 1px;
}

.compact-head {
  margin-bottom: 4px !important;
  font-size: 12px;
}

.vocab-mode-bar {
  margin-bottom: 6px !important;
}

.vocab-mode-btn {
  padding: 7px 8px !important;
  font-size: 12px !important;
}

/* Balanced Single-Screen Flashcard */
.flashcard-wrap {
  margin: 4px 0 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.flashcard {
  min-height: 210px;
  padding: 16px 16px 14px;
  border-radius: 18px;
  justify-content: flex-start;
  gap: 8px;
}

.fc-top-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  margin-top: 2px;
}

.fc-illus-sm {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.fc-illus-xs {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.fc-illus-xs svg {
  width: 32px;
  height: 32px;
}

.fc-word-col {
  text-align: left;
  min-width: 0;
}

.flashcard .fc-hanzi {
  font-size: clamp(28px, 6.2vw, 38px);
  line-height: 1.15;
  margin-bottom: 2px;
}

.flashcard .fc-pinyin {
  font-size: clamp(15px, 3.6vw, 18px);
  margin-bottom: 0;
}

.compact-controls {
  margin-top: 4px !important;
  gap: 6px !important;
  flex-wrap: wrap;
}

.compact-controls .btn-audio {
  padding: 6px 11px;
  font-size: 12px;
}

.btn-audio-xs {
  padding: 5px 9px !important;
  font-size: 11.5px !important;
}

.fc-tap-hint {
  margin: 10px 0 2px;
  font-size: 12.5px;
}

.fc-meaning-box {
  margin-top: 6px;
  padding-top: 10px;
  text-align: left;
}

.fc-vi {
  font-size: 17px;
  text-align: center;
}

.fc-tip {
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.35;
  text-align: center;
}

.fc-example-box {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-subtle);
}

.fc-ex-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.fc-ex-btns {
  display: flex;
  gap: 5px;
}

.fc-ex-zh {
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}

.fc-ex-py {
  font-size: 12px;
  color: var(--text-secondary);
}

.fc-ex-vi {
  font-size: 12.5px;
  color: var(--green);
  margin-top: 2px;
}

/* Dialogue Scene Illustration & Compact Scrollable List */
.dl-scene-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.12), rgba(255, 120, 23, 0.1));
  border: 1px solid rgba(255, 209, 92, 0.22);
  margin-bottom: 6px;
}

.dl-scene-illus {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(15, 23, 42, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dl-scene-illus svg {
  width: 34px;
  height: 34px;
}

.dl-scene-info {
  flex: 1;
  min-width: 0;
}

.dl-scene-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-scene-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dl-scene-actions {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.compact-toolbar {
  margin-bottom: 6px !important;
  gap: 6px !important;
}

.dl-list-scroll {
  flex: 1;
  overflow-y: auto;
  max-height: calc(100dvh - 285px);
  padding-right: 2px;
}

.dl-bubble {
  padding: 9px 11px;
  margin-bottom: 7px;
  border-radius: 13px;
}

.dl-row-flex {
  display: flex;
  align-items: center;
  gap: 9px;
}

.dl-avatar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.dl-body {
  flex: 1;
  min-width: 0;
}

.dl-mini-illus {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.dl-mini-illus svg {
  width: 24px;
  height: 24px;
}

.dl-zh {
  font-size: 16px;
  line-height: 1.3;
}

.dl-py {
  font-size: 12px;
}

.dl-vi {
  font-size: 12px;
  margin-top: 2px;
}

/* Compact Shadowing & Short-Sentence Mic Matcher */
.compact-shadow {
  padding: 14px 14px 12px;
  margin-bottom: 8px;
  border-radius: 16px;
}

.compact-shadow .shadow-status {
  padding: 4px 11px;
  font-size: 11.5px;
  margin-bottom: 10px;
}

.shadow-hero-row {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  padding: 10px 12px;
  border-radius: 13px;
  margin-bottom: 8px;
}

.shadow-text-col {
  flex: 1;
  min-width: 0;
}

.shadow-hanzi {
  font-size: clamp(20px, 5vw, 25px) !important;
  line-height: 1.35 !important;
  letter-spacing: 1px;
  margin-bottom: 3px !important;
}

.shadow-py {
  font-size: 13.5px !important;
  margin-bottom: 2px !important;
  color: var(--text-secondary);
}

.shadow-vi {
  font-size: 13px;
  color: var(--green);
  font-weight: 600;
}

.mic-action-wrap {
  margin-top: 10px;
}

.btn-mic-start {
  background: linear-gradient(135deg, #22C55E, #16A34A) !important;
  color: #fff !important;
  padding: 11px 16px !important;
  font-size: 14.5px !important;
}

.btn-mic-stop {
  background: linear-gradient(135deg, #F97316, #EA580C) !important;
  color: #fff !important;
  padding: 11px 16px !important;
  font-size: 14.5px !important;
}

/* Green (Matched) & Orange (Not Matched) Phonetic Highlights */
.inline-ch {
  display: inline-block;
  padding: 0 2px;
  border-radius: 5px;
  transition: color 0.15s ease, background 0.15s ease;
}

.inline-ch.ch-ok {
  color: #22C55E;
  background: rgba(34, 197, 94, 0.14);
}

.inline-ch.ch-miss {
  color: #F97316;
  background: rgba(249, 115, 22, 0.16);
  text-decoration: underline wavy #F97316;
  text-underline-offset: 3px;
}

.speech-eval-card {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 12px;
}

.speech-eval-card.level-great {
  border-color: rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.08);
}

.speech-eval-card.level-warn {
  border-color: rgba(249, 115, 22, 0.55);
  background: rgba(249, 115, 22, 0.08);
}

.speech-ch.ch-ok {
  background: rgba(34, 197, 94, 0.18) !important;
  color: #22C55E !important;
  border: 1px solid rgba(34, 197, 94, 0.5) !important;
}

.speech-ch.ch-miss {
  background: rgba(249, 115, 22, 0.18) !important;
  color: #F97316 !important;
  border: 1px solid rgba(249, 115, 22, 0.55) !important;
  text-decoration: none !important;
}

.speech-legend-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.dot-ok, .dot-miss {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}

.dot-ok { background: #22C55E; }
.dot-miss { background: #F97316; }

.rec-sent-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 6px;
}

.rec-pill {
  flex: 1;
  padding: 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.rec-pill.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.compact-submit-box {
  padding: 10px 12px !important;
  margin-bottom: 6px;
}

.submit-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rec-btn-sm {
  flex-shrink: 0;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid rgba(232, 93, 74, 0.6);
  background: var(--coral);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

.rec-btn-sm.recording {
  background: #E51F3A;
  animation: pulseRec 1.1s infinite;
}

body.light-mode .dl-scene-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(249, 115, 22, 0.08));
}

body.light-mode .dl-scene-illus,
body.light-mode .dl-mini-illus,
body.light-mode .shadow-hero-row,
body.light-mode .fc-example-box {
  background: rgba(15, 23, 42, 0.04);
}


/* ==================== v14 4-SKILL LAYERED NAV, TOP % BADGE, 3-COLOR MIC, SHARE MODAL & FEEDBACK ==================== */
.badge-pct-top {
  background: rgba(34, 197, 94, 0.16);
  color: #22C55E;
  border: 1px solid rgba(34, 197, 94, 0.45);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.lesson-player .step-pills {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px 12px 6px;
  overflow: visible;
}

.pillar-tabs-4 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: 100%;
}

.pillar-tab {
  padding: 6px 2px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s ease;
}

.pillar-tab.done {
  border-color: rgba(34, 197, 94, 0.45);
  color: #22C55E;
}

.pillar-tab.active {
  background: linear-gradient(135deg, #FF7817, #E51F3A);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 8px rgba(255, 120, 23, 0.35);
}

.sublayer-pills {
  display: flex;
  gap: 6px;
  justify-content: center;
  width: 100%;
}

.sublayer-pill {
  flex: 1;
  max-width: 160px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.sublayer-pill.done {
  border-color: rgba(34, 197, 94, 0.4);
  color: #22C55E;
}

.sublayer-pill.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}

.single-screen-card {
  padding: 18px 16px;
  border-radius: 18px;
  margin-bottom: 0;
}

/* 3-Color Grading: Green (ok), Orange (near), Red (red) */
.inline-ch.ch-near {
  color: #F97316;
  background: rgba(249, 115, 22, 0.16);
}

.inline-ch.ch-red {
  color: #EF4444;
  background: rgba(239, 68, 68, 0.16);
  text-decoration: underline wavy #EF4444;
  text-underline-offset: 3px;
}

.speech-ch.ch-near {
  background: rgba(249, 115, 22, 0.18) !important;
  color: #F97316 !important;
  border: 1px solid rgba(249, 115, 22, 0.55) !important;
}

.speech-ch.ch-red {
  background: rgba(239, 68, 68, 0.18) !important;
  color: #EF4444 !important;
  border: 1px solid rgba(239, 68, 68, 0.55) !important;
}

.dot-near, .dot-red {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 3px;
}

.dot-near { background: #F97316; }
.dot-red { background: #EF4444; }

.mic-error-banner {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #FCA5A5;
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

.rec-playback-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px;
  text-align: left;
}

.submit-status-banner {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  text-align: left;
}

.submit-status-banner.sending {
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.45);
  color: #93C5FD;
}

.submit-status-banner.sent {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #4ADE80;
}

/* Facebook Share Card Modal */
.share-modal-card {
  max-width: 440px;
  padding: 16px;
}

.share-canvas-wrap {
  display: flex;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 14px;
  padding: 8px;
}

.share-card-img {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.share-caption-box {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  padding: 9px 10px;
  font-size: 12.5px;
  font-family: inherit;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.share-btn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

/* App Feedback Tab */
.fb-star-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.fb-star-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 6px 9px;
  font-size: 17px;
  cursor: pointer;
  opacity: 0.4;
  transition: all 0.15s ease;
}

.fb-star-btn.active {
  opacity: 1;
  border-color: var(--gold);
  background: var(--gold-dim);
}

.fb-topic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.fb-topic-chip {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.fb-topic-chip.active {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

body.light-mode .mic-error-banner { color: #B91C1C; }
body.light-mode .submit-status-banner.sent { color: #15803D; }
body.light-mode .share-caption-box { background: #fff; color: #0F172A; }


/* ==================== v15 HSK 3.0 MOCK EXAM TAB & LESSON CROSS-MAP BRIDGE ==================== */
.hsk-hero {
  background: linear-gradient(145deg, rgba(255, 120, 23, 0.14), rgba(96, 165, 250, 0.12));
  border: 1px solid rgba(255, 209, 92, 0.28);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 12px;
}

.hsk-exam-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 10px;
}

.hsk-exam-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}

.hsk-exam-title {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 2px 0;
}

.hsk-exam-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 6px 0 10px;
}

.hsk-runner-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hsk-q-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 8px;
}

.hsk-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.hsk-dot.answered {
  background: rgba(96, 165, 250, 0.22);
  border-color: rgba(96, 165, 250, 0.55);
  color: #93C5FD;
}

.hsk-dot.current {
  background: var(--gold);
  border-color: var(--gold);
  color: #0F172A;
}

.hsk-q-card {
  background: var(--card-bg);
  border: 1px solid rgba(255, 209, 92, 0.25);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 10px;
}

.hsk-q-prompt {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  white-space: pre-line;
  margin: 6px 0 8px;
}

.hsk-opt-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 8px;
}

.hsk-opt-btn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.15s ease;
}

.hsk-opt-btn.selected {
  border-color: var(--gold);
  background: var(--gold-dim);
  color: var(--gold);
}

.hsk-opt-btn.is-correct {
  border-color: #22C55E;
  background: rgba(34, 197, 94, 0.16);
  color: #4ADE80;
}

.hsk-opt-btn.is-wrong {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.16);
  color: #FCA5A5;
}

.hsk-opt-key {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}

.hsk-explain-box {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.10);
  border: 1px solid rgba(96, 165, 250, 0.35);
  font-size: 12.5px;
  line-height: 1.45;
}

.hsk-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 10px 0;
}

.hsk-skill-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 8px 6px;
  text-align: center;
}

.hsk-skill-box strong {
  display: block;
  font-size: 15px;
  color: var(--gold);
}

.hsk-skill-box span {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Sleek HSK 3.0 Bridge Strip inside Practical Lessons */
.hsk-bridge-strip {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px dashed rgba(96, 165, 250, 0.4);
  text-align: left;
  font-size: 12px;
}

.hsk-bridge-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 5px 0;
}

.hsk-tag-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 209, 92, 0.14);
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
}

.hsk-gram-chip {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.14);
  color: #4ADE80;
  font-size: 11px;
  font-weight: 700;
}

body.light-mode .hsk-opt-btn.is-correct { color: #15803D; }
body.light-mode .hsk-opt-btn.is-wrong { color: #B91C1C; }
body.light-mode .hsk-gram-chip { color: #15803D; }


/* ==================== v16 DREAM 1-SCREEN HOME DASHBOARD, 10 MILESTONES & REWARD SHOP ==================== */
.home-hero-compact {
  padding: 13px 14px !important;
  margin-bottom: 10px !important;
}

.home-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 9px 0 8px;
}

.kpi-tile {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 6px 5px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.kpi-tile:hover {
  border-color: var(--gold);
}

.kpi-lbl {
  display: block;
  font-size: 9.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-val {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  margin-top: 2px;
}

.milestone-mini-bar {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 6px 8px;
}

.ms-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.ms-mini-track {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 3px;
}

.ms-mini-seg {
  height: 18px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ms-mini-seg.active {
  background: rgba(255, 209, 92, 0.25);
  color: var(--gold);
  border: 1px solid var(--gold);
}

.ms-mini-seg.passed {
  background: #22C55E;
  color: #062814;
}

.home-subtabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 10px;
}

.home-subtab {
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}

.home-subtab.active {
  background: linear-gradient(135deg, #FF7817, #E51F3A);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 3px 10px rgba(255, 120, 23, 0.3);
}

.home-pane { display: none; }
.home-pane.active { display: block; }

.compact-search {
  margin-bottom: 8px !important;
  padding: 6px 10px !important;
}

.compact-phase-banner {
  padding: 8px !important;
  margin-bottom: 8px !important;
}

.stage-tabs-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.stage-tab-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 7px 6px;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  cursor: pointer;
}

.stage-tab-btn strong { font-size: 12.5px; color: var(--text-primary); }
.stage-tab-btn span { font-size: 10px; margin-top: 2px; }

.stage-tab-btn.active {
  background: var(--gold-dim);
  border-color: var(--gold);
  color: var(--gold);
}
.stage-tab-btn.active strong { color: var(--gold); }

.phase-gate-note {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(255, 120, 23, 0.12);
  border: 1px solid rgba(255, 120, 23, 0.35);
  font-size: 11.5px;
  line-height: 1.4;
}

.compact-filter-bar { margin-bottom: 6px !important; }

.node-pinyin {
  font-size: 12px;
  color: #93C5FD;
  font-weight: 600;
  margin: 1px 0 2px;
}

.rank-bar-track {
  position: relative;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: visible;
  margin: 8px 0 4px;
}

.rank-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #60A5FA, #22C55E);
}

.rank-bar-pin {
  position: absolute;
  top: -7px;
  font-size: 16px;
}

.reward-balance-pill {
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 800;
  white-space: nowrap;
}

.reward-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reward-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  font-size: 12.5px;
}

.btn-xs {
  padding: 6px 10px !important;
  font-size: 11.5px !important;
  white-space: nowrap;
  flex-shrink: 0;
}

.ms-10-grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ms-10-item {
  padding: 9px 10px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
}

.ms-10-item.passed {
  border-color: rgba(34, 197, 94, 0.5);
  background: rgba(34, 197, 94, 0.08);
}

body.light-mode .node-pinyin { color: #2563EB; }
body.light-mode .milestone-mini-bar { background: rgba(15, 23, 42, 0.05); }

/* ==================== AUTH MODE TABS (CRM PHONE LOGIN / REGISTER) ==================== */
.auth-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 4px;
  margin-bottom: 14px;
}
.auth-mode-tab {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.auth-mode-tab.active {
  background: linear-gradient(135deg, var(--gold), #ff9838);
  color: #101a30;
  box-shadow: 0 4px 12px rgba(255, 168, 52, 0.28);
}
body.light-theme .auth-mode-tabs {
  background: rgba(16, 26, 48, 0.06);
  border-color: rgba(16, 26, 48, 0.14);
}
body.light-theme .auth-mode-tab {
  color: #475569;
}
body.light-theme .auth-mode-tab.active {
  color: #101a30;
}

/* ==================== HSK 3.0 VOCABULARY BANK & KARAOKE STORIES (v19) ==================== */
.hsk-hub-subtabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 4px;
  margin-bottom: 12px;
}
.hsk-hub-tab {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
}
.hsk-hub-tab.active {
  background: linear-gradient(135deg, var(--gold), #ff9838);
  color: #101a30;
  box-shadow: 0 4px 12px rgba(255, 120, 23, 0.3);
}
.hsk-tab-cnt {
  font-size: 10.5px;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.22);
  color: inherit;
}
.hsk-hub-tab.active .hsk-tab-cnt {
  background: rgba(16, 26, 48, 0.18);
}

.hsk-level-strip {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  margin-bottom: 8px;
  scrollbar-width: none;
}
.hsk-level-strip::-webkit-scrollbar { display: none; }
.hsk-lv-pill {
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.18s ease;
}
.hsk-lv-pill.active {
  background: rgba(255, 209, 92, 0.18);
  border-color: var(--gold-bright);
  color: #FFD15C;
  box-shadow: 0 2px 10px rgba(255, 176, 56, 0.22);
}
.hsk-lv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}
.hsk-lv-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 99px;
  border: 1px solid transparent;
}

/* Vivid Yellow Phrase Highlight */
.hsk-hl-yellow {
  background: linear-gradient(120deg, #FACC15 0%, #FDE047 100%);
  color: #111827 !important;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(250, 204, 21, 0.35);
}

.hsk-toolbar-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 10px;
  margin-bottom: 12px;
}
.hsk-toggle-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.hsk-mini-toggle {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 8px;
  cursor: pointer;
}
.hsk-mini-toggle.active {
  background: rgba(255, 176, 56, 0.18);
  border-color: rgba(255, 176, 56, 0.55);
  color: var(--gold-bright);
}

.hsk-vocab-list, .hsk-story-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hsk-vocab-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  transition: border-color 0.2s ease;
}
.hsk-vocab-card.is-mastered {
  border-color: rgba(52, 211, 153, 0.45);
}
.hsk-vocab-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.hsk-master-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  cursor: pointer;
}
.hsk-master-btn.done {
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.55);
  color: #34D399;
}
.hsk-vocab-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.hsk-vocab-zh {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}
.hsk-vocab-py {
  font-size: 13.5px;
  color: var(--blue);
  font-weight: 600;
  margin-top: 2px;
}
.hsk-vocab-vi {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin-top: 3px;
}
.hsk-vocab-audio-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
}

.hsk-phrase-strip {
  background: rgba(250, 204, 21, 0.08);
  border: 1px dashed rgba(250, 204, 21, 0.4);
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.hsk-phrase-lbl {
  font-size: 11.5px;
  font-weight: 700;
  color: #FDE047;
}
.hsk-phrase-py {
  font-size: 12px;
  color: var(--blue);
}
.hsk-phrase-vi {
  font-size: 12.5px;
  color: var(--text-secondary);
}

.hsk-example-box {
  background: rgba(11, 19, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
}
.hsk-example-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.hsk-example-zh {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.6;
}
.hsk-example-py {
  font-size: 12.5px;
  color: var(--blue);
  margin-top: 4px;
}
.hsk-example-vi {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 3px;
}
.hsk-vocab-tip {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--gold-bright);
  line-height: 1.45;
}

.hsk-user-sent-wrap {
  margin-top: 9px;
}
.btn-link-xs {
  background: none;
  border: none;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 0;
  cursor: pointer;
}
.hsk-user-sent-saved {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 12.5px;
  color: var(--text-primary);
}
.hsk-user-sent-editor {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.btn-xs-save {
  padding: 8px 12px !important;
  font-size: 12px !important;
  flex-shrink: 0;
}

/* ==================== KARAOKE STORY CARDS & READER ==================== */
.hsk-story-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.hsk-story-card:hover {
  border-color: rgba(255, 176, 56, 0.55);
}
.hsk-story-title-zh {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
}
.hsk-story-title-py {
  font-size: 12.5px;
  color: var(--blue);
  margin-top: 2px;
}
.hsk-story-title-vi {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold-bright);
  margin-top: 3px;
}

.krk-reader-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.krk-sticky-player {
  position: sticky;
  top: 62px;
  z-index: 20;
  background: linear-gradient(160deg, rgba(22, 35, 63, 0.97), rgba(16, 26, 48, 0.98));
  border: 1px solid rgba(255, 176, 56, 0.4);
  border-radius: 16px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}
.krk-title-block {
  text-align: center;
  margin-bottom: 8px;
}
.krk-title-zh {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-primary);
}
.krk-title-vi {
  font-size: 12.5px;
  color: var(--gold-bright);
  font-weight: 600;
}
.krk-seek-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.krk-clock {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  min-width: 36px;
  text-align: center;
}
.krk-seek-slider {
  flex: 1;
  accent-color: #FACC15;
  cursor: pointer;
}
.krk-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
}
.krk-main-play {
  padding: 9px 18px !important;
  font-size: 13.5px !important;
  min-width: 145px;
}
.krk-options-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.krk-spd-group, .krk-toggle-group {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.krk-spd-btn {
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: 7px;
  cursor: pointer;
}
.krk-spd-btn.active {
  background: var(--gold);
  color: #101a30;
  border-color: var(--gold);
}

.krk-lines-stage {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 24px;
}
.krk-lines-stage.hide-pinyin .krk-line-py { display: none; }
.krk-lines-stage.hide-vi .krk-line-vi { display: none; }

.krk-line {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 13px 14px;
  cursor: pointer;
  transition: all 0.22s ease;
}
.krk-line.krk-line-active {
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.14), rgba(255, 120, 23, 0.1));
  border-color: #FACC15;
  box-shadow: 0 0 0 2px rgba(250, 204, 21, 0.2), 0 8px 22px rgba(0, 0, 0, 0.25);
  transform: scale(1.01);
}
.krk-line-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 11px;
}
.krk-line-num {
  font-weight: 800;
  color: var(--text-muted);
}
.krk-line-kw {
  font-size: 11px;
  color: var(--text-secondary);
}
.krk-line-time {
  margin-left: auto;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.krk-line-zh {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.65;
  color: rgba(247, 248, 252, 0.88);
  letter-spacing: 0.4px;
}
.krk-tok {
  display: inline;
  border-radius: 5px;
  padding: 2px 1px;
  transition: color 0.08s linear, background-color 0.08s linear;
}
.krk-tok.krk-passed {
  background: rgba(250, 204, 21, 0.88);
  color: #111827 !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.krk-tok.krk-now {
  background: linear-gradient(120deg, #FACC15 0%, #FEF08A 100%);
  color: #0F172A !important;
  padding: 2px 4px;
  box-shadow: 0 0 14px rgba(250, 204, 21, 0.85);
}

.krk-paragraph-card {
  background: var(--card-bg);
  border: 1.5px solid rgba(250, 204, 21, 0.45);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 14px;
}
.krk-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #FDE047;
  margin-bottom: 10px;
}
.krk-paragraph-body {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.95;
  color: var(--text-primary);
  letter-spacing: 0.6px;
  text-align: justify;
  cursor: pointer;
}
.krk-section-divider {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold-bright);
  margin: 4px 2px 8px;
}
.krk-line-replay-btn {
  margin-left: auto;
  padding: 4px 10px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
}
.krk-line-replay-btn.krk-btn-playing {
  background: #EF4444 !important;
  border-color: #EF4444 !important;
  color: #FFFFFF !important;
}
.krk-line-py {
  font-size: 13px;
  color: var(--blue);
  margin-top: 6px;
  line-height: 1.45;
}
.krk-line-vi {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 4px;
  line-height: 1.45;
}

.podcast-karaoke-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.14), rgba(255, 120, 23, 0.14));
  border: 1px solid rgba(250, 204, 21, 0.45);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 12px;
  cursor: pointer;
}

/* Light mode adjustments */
body.light-mode .hsk-example-box { background: rgba(15, 23, 42, 0.04); }
body.light-mode .hsk-phrase-lbl { color: #B45309; }
body.light-mode .hsk-lv-pill.active { color: #B45309; background: rgba(250, 204, 21, 0.25); }
body.light-mode .krk-sticky-player { background: rgba(255, 255, 255, 0.96); }
body.light-mode .krk-line-zh, body.light-mode .krk-paragraph-body { color: #1E293B; }
body.light-mode .krk-section-head { color: #B45309; }
body.light-mode .krk-tok.krk-passed { background: #FDE047; color: #111827 !important; }

/* ==================== v25 EXECUTIVE CLEAN HOME DASHBOARD, DILIGENCE SCALE, LEADERBOARD & DEEP TABS ==================== */
.exec-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
}

.exec-hero-card {
  background: linear-gradient(155deg, #1B2847 0%, #111A30 100%);
  border-color: rgba(255, 176, 56, 0.28);
}

.exec-hero-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.exec-hero-identity {
  flex: 1;
  min-width: 0;
}

.exec-badge-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.exec-ring-cluster {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.exec-ring-caption {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}

.exec-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.exec-kpi-box {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 10px 11px;
  cursor: pointer;
  transition: border-color 0.16s ease, transform 0.14s ease;
}

.exec-kpi-box:hover {
  border-color: rgba(255, 176, 56, 0.55);
  transform: translateY(-1px);
}

.exec-kpi-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.exec-kpi-val {
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin: 3px 0 2px;
  line-height: 1.25;
}

.exec-kpi-sub {
  display: block;
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* Personal Diligence Scale (5 Levels + 7-Day Rhythm) */
.exec-diligence-box {
  margin-top: 12px;
  background: rgba(11, 19, 36, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
}

.dil-scale-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.dil-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.dil-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary);
  margin-right: 6px;
}

.dil-badge-cur {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--gold-dim);
  border: 1px solid rgba(255, 176, 56, 0.45);
  color: var(--gold-bright);
}

.dil-next-note {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.dil-steps-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}

.dil-step-col {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 9px;
  padding: 6px 5px;
  text-align: center;
}

.dil-step-col.is-done {
  border-color: rgba(52, 211, 153, 0.4);
  background: rgba(52, 211, 153, 0.08);
}

.dil-step-col.is-cur {
  border-color: var(--gold);
  background: rgba(255, 120, 23, 0.14);
}

.dil-step-bar {
  height: 5px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  margin-bottom: 5px;
}

.dil-step-fill {
  height: 100%;
  background: linear-gradient(90deg, #FF7817, #22C55E);
  border-radius: 99px;
}

.dil-step-lbl {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dil-step-min {
  font-size: 9.5px;
  color: var(--text-muted);
  margin-top: 1px;
}

.dil-scale-right {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 10px;
}

.dil-week-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-align: center;
}

.dil-mini-7 {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  height: 58px;
  align-items: end;
}

.dil-day-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 2px;
}

.dil-day-v {
  font-size: 9.5px;
  color: var(--text-muted);
}

.dil-day-track {
  width: 100%;
  max-width: 20px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.dil-day-fill {
  width: 100%;
  background: rgba(148, 163, 184, 0.25);
  border-radius: 6px;
}

.dil-day-fill.mid { background: var(--gold); }
.dil-day-fill.ok { background: var(--green); }

.dil-day-l {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-secondary);
}

.dil-day-col.today .dil-day-l {
  color: var(--gold-bright);
}

.exec-cta-bar {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.exec-main-cta {
  flex: 1 1 240px;
  padding: 12px 16px !important;
  font-size: 14px !important;
}

.exec-sec-cta {
  flex: 0 0 auto;
  padding: 12px 14px !important;
  font-size: 13px !important;
}

/* Card Heads & Study Plan */
.exec-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.exec-card-title {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
  color: var(--text-primary);
}

.exec-card-sub {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

.plan-today-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.plan-task-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
}

.plan-task-step {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid rgba(255, 176, 56, 0.45);
  color: var(--gold-bright);
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-task-body {
  flex: 1;
  min-width: 0;
}

.plan-task-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 13px;
}

.plan-time-pill {
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 99px;
  background: rgba(96, 165, 250, 0.14);
  color: #93C5FD;
}

.plan-task-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.35;
}

.plan-stages-bar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--border-subtle);
}

.plan-stage-card {
  background: rgba(11, 19, 36, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.16s ease;
}

.plan-stage-card:hover {
  border-color: var(--gold);
}

.plan-stage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.plan-stage-head span {
  font-size: 11px;
  color: var(--text-muted);
}

.plan-stage-stat {
  font-size: 11.5px;
  color: var(--gold-bright);
  font-weight: 700;
  margin: 4px 0 6px;
}

/* Two-Column Peer Compare + Leaderboard */
.exec-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.cmp-axis-box {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 11px 12px;
}

.cmp-axis-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  margin-bottom: 5px;
}

.cmp-rank-pill {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 99px;
}

.cmp-rank-pill.gold {
  background: rgba(255, 176, 56, 0.16);
  color: var(--gold-bright);
  border: 1px solid rgba(255, 176, 56, 0.4);
}

.cmp-rank-pill.blue {
  background: rgba(59, 130, 246, 0.16);
  color: #93C5FD;
  border: 1px solid rgba(96, 165, 250, 0.4);
}

.cmp-axis-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.cmp-advice-box {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 176, 56, 0.09);
  border: 1px dashed rgba(255, 176, 56, 0.4);
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-primary);
}

.cmp-pulse-mini {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.pulse-dot-inline {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 4px;
}

.lb-sort-pills {
  display: inline-flex;
  background: rgba(11, 19, 36, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.lb-sort-btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
}

.lb-sort-btn.active {
  background: var(--gold);
  color: #101A30;
}

.exec-lb-row {
  padding: 8px 10px;
}

.lb-tier-mini {
  font-size: 12px;
  margin-left: 2px;
}

.lb-dual-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.lb-score-pill {
  font-size: 12px;
  font-weight: 800;
  color: var(--gold-bright);
}

.lb-divider-dots {
  text-align: center;
  font-size: 11px;
  color: var(--text-muted);
  padding: 2px 0;
}

/* 4 Deep Gateways Grid */
.exec-section-label {
  margin: 6px 2px 10px;
}

.exec-section-label h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.exec-section-label p {
  margin: 3px 0 0;
}

.exec-gateway-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.gateway-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 15px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: border-color 0.18s ease, transform 0.15s ease;
}

.gateway-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.gw-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.gw-icon {
  font-size: 26px;
}

.gw-stat-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--gold-bright);
  border: 1px solid var(--border-subtle);
}

.gw-title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.gw-bullets {
  margin: 0 0 10px;
  padding-left: 17px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  flex: 1;
}

.gw-bullets li {
  margin-bottom: 3px;
}

.gw-cta {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--gold);
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

.exec-install-strip {
  padding: 12px 15px;
}

/* Deep Tab Top Header / Breadcrumb */
.tab-deep-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: linear-gradient(145deg, rgba(27, 40, 71, 0.9), rgba(16, 26, 48, 0.92));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.btn-back-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 99px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-back-pill:hover {
  border-color: var(--gold);
}

.tab-deep-title-wrap {
  flex: 1;
  min-width: 200px;
}

.tab-deep-title-wrap h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 800;
}

.tab-deep-title-wrap p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
}

.stage-tabs-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.filter-pill-sm.topic-pill {
  font-size: 11px;
  opacity: 0.92;
}

/* Compact 6-tab Mobile Bottom Nav */
@media (max-width: 899px) {
  .bottom-nav .nav-item {
    padding: 4px 2px;
    font-size: 10px;
    flex: 1 1 0;
    min-width: 0;
  }
  .bottom-nav .nav-icon {
    font-size: 18px;
  }
}

/* Desktop Grid Refinements (>= 900px) */
@media (min-width: 900px) {
  .exec-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
  }
  .dil-scale-grid {
    grid-template-columns: 1.65fr 1fr;
    align-items: center;
    gap: 16px;
  }
  .dil-scale-right {
    border-top: none;
    border-left: 1px dashed var(--border-subtle);
    padding-top: 0;
    padding-left: 16px;
  }
  .plan-today-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .plan-task-item {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
  }
  .plan-stages-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .exec-two-col {
    grid-template-columns: 1fr 1.08fr;
    align-items: stretch;
  }
  .exec-two-col > .exec-card {
    margin-bottom: 14px;
    display: flex;
    flex-direction: column;
  }
  .exec-gateway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .stage-tabs-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Light Mode Executive Support */
body.light-mode .exec-card {
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}
body.light-mode .exec-hero-card {
  background: linear-gradient(155deg, #FFFDF7 0%, #F4F7FB 100%);
}
body.light-mode .exec-diligence-box,
body.light-mode .plan-stage-card,
body.light-mode .lb-sort-pills {
  background: #F8FAFC;
}
body.light-mode .exec-kpi-box,
body.light-mode .plan-task-item,
body.light-mode .cmp-axis-box,
body.light-mode .dil-step-col {
  background: #F8FAFC;
}
body.light-mode .tab-deep-header {
  background: #FFFFFF;
}
body.light-mode .btn-back-pill {
  background: #F1F5F9;
  color: #B45309;
}
body.light-mode .cmp-rank-pill.blue,
body.light-mode .plan-time-pill {
  color: #1D4ED8;
}
body.light-mode .cmp-rank-pill.gold,
body.light-mode .dil-badge-cur,
body.light-mode .lb-score-pill,
body.light-mode .gw-stat-pill,
body.light-mode .plan-stage-stat {
  color: #B45309;
}


/* ==================== U30+ CHINESE v3.0 (BUILD 30) STYLES ==================== */
.hdr-ver-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 99px;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #4ADE80;
  vertical-align: middle;
  margin-left: 4px;
  cursor: pointer;
}

.admin-pill {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(245, 158, 11, 0.25)) !important;
  border: 1px solid #F59E0B !important;
  color: #FDE68A !important;
  font-weight: 800;
  cursor: pointer;
}

.v30-version-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.v30-ver-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6EE7B7;
  padding: 5px 11px;
  border-radius: 99px;
  font-size: 11.5px;
  cursor: pointer;
  text-align: left;
}
.v30-ver-sub {
  color: var(--text-secondary);
  font-weight: 500;
}
@media (max-width: 640px) {
  .v30-ver-sub { display: none; }
}

.v30-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  display: inline-block;
}

.btn-admin-quick {
  background: linear-gradient(135deg, #DC2626, #D97706);
  color: #FFF;
  border: none;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(220, 38, 38, 0.35);
}

.btn-upgrade-399 {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(255, 120, 23, 0.25));
  border: 1px solid rgba(255, 209, 92, 0.65);
  color: #FDE047;
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

/* Favorite Quick Studios Grid */
.v30-fav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
@media (min-width: 900px) {
  .v30-fav-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }
}

.v30-fav-tile {
  background: linear-gradient(155deg, rgba(30, 41, 68, 0.92), rgba(18, 27, 46, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 13px;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}
.v30-fav-tile:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.v30-fav-tile.red-accent { border-color: rgba(239, 68, 68, 0.45); }
.v30-fav-tile.gold-accent { border-color: rgba(245, 158, 11, 0.45); }
.v30-fav-tile.green-accent { border-color: rgba(34, 197, 94, 0.45); }
.v30-fav-tile.blue-accent { border-color: rgba(59, 130, 246, 0.45); }

.v30-fav-icon {
  font-size: 24px;
  line-height: 1;
}
.v30-fav-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary);
}
.v30-fav-desc {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.38;
}
.v30-fav-cta {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold-bright);
  margin-top: 2px;
}

/* Paste Word/Phrase/Sentence Studio */
.v30-paste-card {
  border: 1px solid rgba(96, 165, 250, 0.42);
  background: linear-gradient(160deg, rgba(20, 33, 61, 0.96), rgba(15, 23, 42, 0.98));
}
.paste-input-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.paste-textarea {
  flex: 1 1 260px;
  min-height: 54px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 16, 30, 0.72);
  color: var(--text-primary);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.paste-sample-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.paste-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border-radius: 99px;
  padding: 4px 10px;
  font-size: 11.5px;
  cursor: pointer;
}
.paste-chip:hover {
  border-color: var(--gold);
  color: var(--gold-bright);
}
.paste-result-box {
  margin-top: 12px;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 209, 92, 0.3);
}
.paste-seg-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.paste-seg-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 7px 10px;
  cursor: pointer;
  min-width: 72px;
  text-align: center;
}
.paste-seg-card:hover {
  border-color: var(--gold);
}
.paste-seg-zh {
  font-size: 18px;
  font-weight: 800;
  color: #FDE047;
}
.paste-seg-py {
  font-size: 11.5px;
  color: #93C5FD;
}
.paste-seg-vi {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Home Chunk Cards (Click for 5-10 examples) */
.v30-chunk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 820px) {
  .v30-chunk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.v30-chunk-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.v30-chunk-item:hover {
  border-color: var(--gold);
  background: rgba(255, 209, 92, 0.06);
}
.v30-chunk-kw {
  display: inline-block;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.5);
  color: #FDE047;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 8px;
  font-size: 14px;
}
.v30-example-row {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  margin-bottom: 8px;
}

/* Red-First Karaoke Pronunciation Styling */
.krk-red-first-char {
  color: #FF4D4F;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(239, 68, 68, 0.32);
  transition: color 0.16s ease, transform 0.16s ease;
  display: inline-block;
}
.krk-red-first-char.sweep-active {
  color: #FF2A2A;
  transform: scale(1.14);
  text-decoration: underline;
  text-underline-offset: 5px;
}
.krk-voice-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 800;
}
.krk-voice-badge.waiting {
  background: rgba(239, 68, 68, 0.16);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #FCA5A5;
}
.krk-voice-badge.comparing {
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.55);
  color: #86EFAC;
}

/* Illustrated Story Studio Cards */
.v30-story-scroll {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 10px;
}
@media (min-width: 820px) {
  .v30-story-scroll {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.v30-story-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.v30-story-card:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
}
.v30-story-art {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.v30-story-body {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Cohort 4-Metric Reference Banner */
.v30-cohort-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 860px) {
  .v30-cohort-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.v30-cohort-box {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  padding: 10px 11px;
}
.v30-cohort-box.highlight-me {
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.18), rgba(234, 88, 12, 0.12));
  border-color: rgba(245, 158, 11, 0.55);
}
.v30-cohort-val {
  font-size: 18px;
  font-weight: 900;
  display: block;
  margin: 3px 0 2px;
}

/* Personal Behavior Advice & Viral Hub */
.v30-advice-card {
  border-color: rgba(52, 211, 153, 0.42);
}
.v30-advice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}
@media (min-width: 820px) {
  .v30-advice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.v30-advice-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 11px;
  border-left: 3px solid var(--gold);
}

.v30-advanced-drawer {
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.v30-advanced-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
}
.v30-advanced-summary::-webkit-details-marker { display: none; }

/* Admin Master Portal Table & Analytics */
.admin-subtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
@media (min-width: 860px) {
  .admin-kpi-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 920px;
}
.admin-table th,
.admin-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
  vertical-align: middle;
}
.admin-table th {
  background: rgba(15, 23, 42, 0.92);
  color: var(--gold);
  font-weight: 800;
  position: sticky;
  top: 0;
}
.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}
.admin-feat-bar-row {
  margin-bottom: 10px;
}
body.light-mode .v30-fav-tile,
body.light-mode .v30-paste-card,
body.light-mode .paste-seg-card,
body.light-mode .v30-chunk-item,
body.light-mode .v30-story-card,
body.light-mode .v30-cohort-box {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.12);
}
body.light-mode .paste-textarea {
  background: #F8FAFC;
  color: #0F172A;
  border-color: rgba(15, 23, 42, 0.18);
}
body.light-mode .paste-seg-zh,
body.light-mode .v30-chunk-kw {
  color: #B45309;
}
body.light-mode .admin-table th {
  background: #F1F5F9;
  color: #0F172A;
}


/* ==================== 5-STEP FLOW: INTRO & DIALOGUE SIDE PANEL ==================== */
.intro-card {
  background: var(--bg-card, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 12px;
}
.intro-meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.intro-hook-box {
  background: rgba(255, 209, 92, 0.08);
  border-left: 3px solid var(--gold, #FFD15C);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.55;
  margin: 10px 0;
}
.intro-section-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 10px 12px;
  margin-top: 10px;
}
.intro-section-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold, #FFD15C);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.intro-formula-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.intro-formula-chip {
  flex: 1 1 120px;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
}
.dl-split-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}
@media (min-width: 768px) {
  .dl-split-layout {
    grid-template-columns: 1.35fr 1fr;
  }
}
.dl-side-panel {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 12px;
  max-height: 440px;
  overflow-y: auto;
}
.dl-side-header {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold, #FFD15C);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dl-side-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.dl-side-item:hover {
  background: rgba(255, 209, 92, 0.1);
}
.dl-side-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
}
.dl-side-item-py {
  font-size: 11.5px;
  color: var(--gold, #FFD15C);
}
.dl-side-item-vi {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
}
