/* ==========================================================================
   SIMULADO ENEM - DESIGN SYSTEM: DEEP TEAL & ICE MINT (OPÇÃO B)
   Ergonomia visual para longas horas de estudo • Micro-ícones SVG vetoriais
   ========================================================================== */

:root {
  /* Paleta Primária: Deep Teal & Ice Mint */
  --teal-darkest: #071922;
  --teal-dark: #0c2633;
  --teal-surface: #113344;
  --teal-border: #164e63;
  --mint-primary: #0d9488;
  --mint-light: #14b8a6;
  --mint-glow: #5eead4;
  --mint-bg: #f0fdfa;
  --mint-border: #99f6e4;
  
  /* Tons Neutros e Fundo Ergonômico */
  --bg-ice-slate: #f0f4f8;
  --card-bg: #ffffff;
  --border-subtle: #cbd5e1;
  --border-strong: #94a3b8;
  --text-main: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Estados Funcionais */
  --success: #059669;
  --success-bg: #f0fdf4;
  --success-border: #86efac;
  --danger: #e11d48;
  --danger-bg: #fff1f2;
  --danger-border: #fecdd3;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --warning-border: #fde68a;

  /* Tipografia & Formas */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 3px rgba(12, 38, 51, 0.05);
  --shadow-md: 0 4px 12px rgba(12, 38, 51, 0.08);
  --shadow-lg: 0 10px 25px rgba(12, 38, 51, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-ice-slate);
  color: var(--text-body);
  line-height: 1.6;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Micro-Ícones SVG Vetoriais Gerais */
.ui-icon {
  display: inline-block;
  vertical-align: middle;
  width: 17px;
  height: 17px;
  stroke-width: 1.85;
  stroke: currentColor;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  transition: transform 0.15s ease, stroke 0.15s ease;
}

/* Header */
.app-header {
  background: linear-gradient(135deg, var(--teal-darkest) 0%, var(--teal-dark) 100%);
  color: #ffffff;
  padding: 12px 24px;
  box-shadow: 0 2px 12px rgba(7, 25, 34, 0.25);
  position: relative;
  z-index: 100;
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  width: 100%;
  max-width: 100vw;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(20, 184, 166, 0.25));
  transition: transform 0.2s ease;
}

.brand:hover .brand-logo {
  transform: scale(1.04);
}

.brand-title {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 7px;
}

.brand-ai-tag {
  font-size: 0.72rem;
  font-weight: 800;
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 4px rgba(20, 184, 166, 0.35);
}

.brand-day-badge {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(20, 184, 166, 0.2);
  color: var(--mint-glow);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 0.76rem;
  color: #94a3b8;
}

/* Day Switcher (1º Dia vs 2º Dia) */
.day-switcher {
  display: inline-flex;
  background: rgba(7, 25, 34, 0.5);
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: var(--radius-md);
  padding: 3px;
  gap: 4px;
}

.day-switch-btn {
  background: transparent;
  color: #cbd5e1;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.day-switch-btn .day-sub {
  font-weight: 500;
  font-size: 0.74rem;
  opacity: 0.85;
}

.day-switch-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.day-switch-btn.active {
  background: var(--mint-primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.45);
}

.day-switch-btn.active .ui-icon {
  stroke: #ffffff;
}

/* Timer Widget (Horizontal Sleek Pill) */
.timer-box {
  display: inline-flex;
  align-items: center;
  background: rgba(7, 25, 34, 0.55);
  padding: 5px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(20, 184, 166, 0.28);
  gap: 10px;
  white-space: nowrap;
}

.timer-clock-icon {
  color: var(--mint-glow);
  width: 16px;
  height: 16px;
}

.timer-display {
  font-family: var(--font-sans);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #ffffff;
  min-width: 78px;
  text-align: center;
}

.timer-controls {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
}

.btn-icon:hover {
  background: rgba(20, 184, 166, 0.25);
  border-color: var(--mint-glow);
  color: var(--mint-glow);
  transform: translateY(-1px);
}

/* Header Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 15px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.18s ease;
}

.btn-primary {
  background-color: var(--mint-primary);
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(13, 148, 136, 0.3);
}

.btn-primary:hover {
  background-color: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(13, 148, 136, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-finish {
  background-color: #059669;
  color: white;
}

.btn-finish:hover {
  background-color: #047857;
  transform: translateY(-1px);
}

/* Toolbar & Subheader Bar */
.toolbar-section {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
}

.toolbar-container {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* Abas de Área (Geometria 8px suave, sem oval) */
.area-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.area-tab {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 7px 15px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.area-tab:hover {
  background: var(--bg-ice-slate);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.area-tab.active {
  background: var(--teal-dark);
  color: var(--mint-glow);
  border-color: var(--teal-dark);
  box-shadow: 0 2px 6px rgba(12, 38, 51, 0.2);
}

.quick-stats {
  display: flex;
  gap: 10px;
  font-size: 0.84rem;
  font-weight: 600;
}

.stat-pill {
  padding: 5px 12px;
  border-radius: var(--radius-md);
  background: var(--bg-ice-slate);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.dot-success { background: var(--success); }
.dot-danger { background: var(--danger); }

.text-success {
  color: #065f46;
  background: var(--success-bg);
  border-color: var(--success-border);
}

.text-danger {
  color: #9f1239;
  background: var(--danger-bg);
  border-color: var(--danger-border);
}

/* Progress Bar (Degradê Teal to Mint) */
.progress-bar-wrapper {
  width: 100%;
  height: 3px;
  background: #e2e8f0;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 50%, #06b6d4 100%);
  transition: width 0.35s ease;
}

/* ==========================================================================
   MAIN WORKSPACE (2 COLUNAS NO DESKTOP: QUESTÃO + MAPA FIXO NA DIREITA)
   ========================================================================== */
.main-layout {
  max-width: 1400px;
  margin: 24px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  flex: 1;
  width: 100%;
  align-items: start;
}

.question-stage {
  min-width: 0;
}

.question-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Header da Questão */
.q-meta-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.q-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.q-num-pill {
  background: var(--teal-dark);
  color: var(--mint-glow);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(20, 184, 166, 0.3);
}

.q-area-badge {
  background: #f1f5f9;
  color: #334155;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.q-discipline-badge {
  background: var(--mint-bg);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--mint-border);
}

.q-topic-badge {
  background: #fef3c7;
  color: #92400e;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--warning-border);
}

.q-origin-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

/* Botão Revisar Interativo (com Marcador SVG) */
.btn-review {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.btn-review:hover {
  background: #fffbeb;
  border-color: #f59e0b;
  color: #b45309;
  transform: translateY(-1px);
}

.btn-review.marked {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.25);
}

.icon-bookmark {
  transition: fill 0.2s ease, stroke 0.2s ease;
}

.btn-review.marked .icon-bookmark {
  fill: #f59e0b;
  stroke: #d97706;
}

/* ==========================================================================
   CAIXAS SEPARADAS DE CONTEÚDO (TEXTO DE APOIO & ENUNCIADO)
   ========================================================================== */
.question-body-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Caixa 1: Texto de Apoio / Referência */
.box-reference {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--mint-primary);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.box-header-badge {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.box-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #0f766e;
  background: var(--mint-bg);
  border: 1px solid var(--mint-border);
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.box-reference-body {
  font-family: var(--font-serif);
  font-size: 1.04rem;
  line-height: 1.85;
  color: #1e293b;
  word-break: break-word;
}

.ref-paragraph {
  margin-bottom: 12px;
  text-align: justify;
}

.ref-paragraph:last-child {
  margin-bottom: 0;
}

.ref-poem {
  white-space: pre-line;
  line-height: 1.7;
  font-style: italic;
  padding-left: 14px;
  border-left: 3px solid #94a3b8;
  margin-bottom: 12px;
}

.box-reference-citation {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 0.84rem;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-sans);
}

/* Imagens, Circuitos e Gráficos */
.reference-images {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.q-figure-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
  max-width: 100%;
  text-align: center;
  box-shadow: 0 1px 4px rgba(7, 25, 34, 0.04);
}

.q-figure-img {
  max-width: 100%;
  max-height: 400px;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  border-radius: 6px;
  transition: transform 0.15s ease;
}

.q-figure-caption {
  margin-top: 6px;
  font-size: 0.76rem;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Caixa 2: Enunciado / Comando da Questão */
.box-prompt {
  background: #f8fafc;
  border: 1.5px solid var(--border-subtle);
  border-left: 4px solid #0284c7;
  border-radius: var(--radius-md);
  padding: 18px 22px;
  box-shadow: 0 1px 4px rgba(2, 132, 199, 0.05);
}

.prompt-tag {
  color: #0369a1;
  background: #e0f2fe;
  border-color: #bae6fd;
}

.box-prompt-body {
  font-family: var(--font-sans);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-main);
  margin-top: 6px;
}

.box-reference.hidden,
.box-reference-citation.hidden,
.reference-images.hidden {
  display: none !important;
}

/* ==========================================================================
   AMBIENTE DE APRENDIZADO & CÁLCULO (LINHA DE RACIOCÍNIO / TUTOR / RASCUNHO)
   ========================================================================== */
.learning-toolbar {
  margin: 10px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.learning-toolbar-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-tutor {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1.5px solid transparent;
}

.btn-tutor .btn-sub {
  font-weight: 500;
  font-size: 0.76rem;
  opacity: 0.9;
}

/* Botão Exclusivo 1º Dia: Linha de Raciocínio */
.btn-tutor-reasoning {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.btn-tutor-reasoning:hover {
  background: #d1fae5;
  border-color: #34d399;
  transform: translateY(-1px);
}

/* Botões Exclusivos 2º Dia: Exatas */
.btn-tutor-hint {
  background: #fffbeb;
  color: #92400e;
  border-color: #fde68a;
}

.btn-tutor-hint:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.btn-tutor-steps {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.btn-tutor-steps:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.btn-tutor-scratch {
  background: #f8fafc;
  color: #334155;
  border-color: #cbd5e1;
}

.btn-tutor-scratch:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  transform: translateY(-1px);
}

.btn-tutor.hidden {
  display: none !important;
}

/* Lousa Digital da IA (Tema Deep Teal Dark) */
.tutor-board {
  background: var(--teal-darkest);
  color: #f8fafc;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--teal-border);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: fadeIn 0.25s ease;
}

.tutor-board.hidden {
  display: none !important;
}

.tutor-board-header {
  background: var(--teal-dark);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--mint-glow);
  border-bottom: 1px solid var(--teal-border);
}

.tutor-board-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-close-inline {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.btn-close-inline:hover {
  color: #ffffff;
}

.tutor-board-content {
  padding: 18px;
  font-size: 0.94rem;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cards da Linha de Raciocínio (1º Dia) */
.tutor-step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: var(--mint-primary);
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  margin-right: 6px;
  flex-shrink: 0;
}

.tutor-reasoning-section {
  background: rgba(17, 51, 68, 0.7);
  border: 1px solid var(--teal-border);
  border-left: 4px solid var(--mint-light);
  border-radius: 8px;
  padding: 14px 18px;
}

.tutor-reasoning-title {
  font-weight: 700;
  color: var(--mint-glow);
  margin-bottom: 6px;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tutor-clues-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.tutor-clue-item {
  background: rgba(7, 25, 34, 0.6);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--teal-border);
  color: #e2e8f0;
}

.tutor-alert-box {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fde68a;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
}

/* Cards de Cálculo e Passos (2º Dia) */
.tutor-step-card {
  background: rgba(17, 51, 68, 0.7);
  border: 1px solid var(--teal-border);
  border-left: 4px solid #38bdf8;
  border-radius: 8px;
  padding: 12px 16px;
}

.tutor-step-title {
  font-weight: 700;
  color: #7dd3fc;
  margin-bottom: 6px;
  font-size: 0.9rem;
}

.tutor-step-calc {
  margin-top: 8px;
  padding: 10px 14px;
  background: rgba(7, 25, 34, 0.75);
  border-radius: 6px;
  color: #fde047;
  overflow-x: auto;
  font-size: 1rem;
}

.tutor-conclusion {
  background: rgba(13, 148, 136, 0.2);
  border: 1px solid rgba(20, 184, 166, 0.4);
  color: var(--mint-glow);
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
}

/* Scratchpad Pessoal */
.scratchpad-panel {
  background: #fefce8;
  border: 1.5px dashed #eab308;
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

.scratchpad-panel.hidden {
  display: none !important;
}

.scratchpad-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.84rem;
  font-weight: 700;
  color: #854d0e;
  margin-bottom: 8px;
}

.scratchpad-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-clear-scratch {
  background: #fef08a;
  border: 1px solid #facc15;
  color: #854d0e;
  border-radius: 5px;
  padding: 3px 9px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
}

.scratchpad-textarea {
  width: 100%;
  min-height: 95px;
  border: 1px solid #fde047;
  border-radius: 6px;
  background: #ffffff;
  padding: 10px 12px;
  font-family: monospace;
  font-size: 0.92rem;
  color: #1e293b;
  resize: vertical;
}

/* ==========================================================================
   ALTERNATIVAS DE RESPOSTA (SELEÇÃO SATISFATÓRIA & FEEDBACK)
   ========================================================================== */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--text-body);
  transition: all 0.18s ease;
  width: 100%;
}

.option-btn:hover:not(:disabled) {
  border-color: var(--mint-light);
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(13, 148, 136, 0.12);
}

.option-btn:active:not(:disabled) {
  transform: scale(0.995);
}

.option-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  font-weight: 700;
  color: #475569;
  border: 1px solid var(--border-subtle);
  transition: all 0.18s ease;
}

.option-text {
  flex: 1;
  padding-top: 4px;
}

/* Estados da Alternativa */
.option-btn.selected-correct {
  background-color: var(--success-bg) !important;
  border-color: var(--success) !important;
  color: #065f46;
}
.option-btn.selected-correct .option-letter {
  background-color: var(--success);
  color: white;
  border-color: var(--success);
}

.option-btn.selected-incorrect {
  background-color: var(--danger-bg) !important;
  border-color: var(--danger) !important;
  color: #9f1239;
}
.option-btn.selected-incorrect .option-letter {
  background-color: var(--danger);
  color: white;
  border-color: var(--danger);
}

.option-btn.reveal-correct {
  background-color: #ecfdf5 !important;
  border-color: #10b981 !important;
  border-style: dashed !important;
}
.option-btn.reveal-correct .option-letter {
  background-color: #10b981;
  color: white;
}

/* Painel de Feedback e Justificativa */
.feedback-panel {
  margin-top: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  animation: fadeIn 0.25s ease;
}

.feedback-panel.hidden {
  display: none !important;
}

.feedback-header {
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.feedback-header.correct {
  background: #ecfdf5;
  color: #065f46;
  border-bottom: 1px solid #a7f3d0;
}

.feedback-header.incorrect {
  background: #fff1f2;
  color: #9f1239;
  border-bottom: 1px solid #fecdd3;
}

.justification-content {
  padding: 20px;
  font-size: 0.94rem;
  line-height: 1.7;
}

.just-section {
  margin-bottom: 16px;
}

.just-title {
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.web-sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.web-source-item {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.source-title {
  color: var(--teal-dark);
  font-weight: 600;
  font-size: 0.9rem;
}

.web-source-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.loading-spinner-box {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--mint-primary);
  font-weight: 600;
  padding: 14px 0;
}

.spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #ccfbf1;
  border-top-color: var(--mint-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

/* Rodapé de Navegação da Questão */
.q-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
}

.q-jump-info {
  font-weight: 600;
  color: var(--text-muted);
}

/* ==========================================================================
   BARRA LATERAL DIREITA: MAPA DA PROVA (DESKTOP: 340px FIXO)
   ========================================================================== */
.sidebar-stage {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 340px;
}

.sidebar-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sidebar-header {
  margin-bottom: 14px;
}

.navigator-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.navigator-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.navigator-title-row h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.lang-selector {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
}

.lang-select {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  background: #f8fafc;
  cursor: pointer;
}

/* Legenda */
.grid-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.legend-dot.unanswered { background: #cbd5e1; }
.legend-dot.correct { background: var(--success); }
.legend-dot.incorrect { background: var(--danger); }
.legend-dot.review { background: var(--warning); }

/* Grade das 90 Questões (5 por linha no PC) */
.questions-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.grid-q-btn {
  aspect-ratio: 1;
  min-height: 38px;
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.15s ease;
}

.grid-q-btn:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

.grid-q-btn.current {
  border: 2px solid var(--teal-dark);
  box-shadow: 0 0 0 2px var(--mint-light);
  font-weight: 800;
  background: #ffffff;
}

.grid-q-btn.correct {
  background: var(--success);
  color: white;
  border-color: #047857;
}

.grid-q-btn.incorrect {
  background: var(--danger);
  color: white;
  border-color: #be123c;
}

.grid-q-btn.review::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  background: var(--warning);
  border-radius: 50%;
}

/* Card de Dicas */
.tips-card {
  background: var(--mint-bg);
  border: 1px solid var(--mint-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.tips-card-header {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #0f766e;
  margin-bottom: 6px;
}

.tips-card h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.tips-card p {
  font-size: 0.82rem;
  color: #134e4a;
  line-height: 1.55;
}

/* ==========================================================================
   MODAIS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 25, 34, 0.7);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  background: white;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: fadeIn 0.25s ease;
}

.modal-card.modal-lg {
  max-width: 860px;
}

.modal-header {
  padding: 20px 24px;
  background: var(--teal-dark);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--mint-glow);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.95rem;
}

.modal-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.recurrence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 16px;
}

.rec-area-card {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  background: #f8fafc;
}

.rec-area-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 8px;
}

.rec-topic-item {
  margin-top: 12px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.rec-topic-header {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.rec-topic-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
  margin: 6px 0;
}

.rec-topic-bar-fill {
  height: 100%;
  background: var(--mint-primary);
}

.rec-topic-tips {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Image Zoom Modal */
.zoom-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 92vh;
  background: #ffffff;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-modal-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.btn-close-zoom {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--danger);
  color: white;
  border: 2px solid white;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}

/* ==========================================================================
   RESPONSIVIDADE & MOBILE-FIRST (SEPARAÇÃO RIGOROSA PC VS CELULAR)
   ========================================================================== */
.mobile-only {
  display: none !important;
}

.mobile-bottom-bar {
  display: none;
}

@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
    padding: 0 16px;
  }
  .sidebar-stage {
    width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 74px; /* Espaço para a barra fixa inferior */
  }

  .hide-mobile {
    display: none !important;
  }

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

  .header-container {
    gap: 10px;
    padding: 8px 12px;
  }

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

  .brand-subtitle {
    display: none;
  }

  .day-switcher {
    width: 100%;
    order: 3;
  }

  .day-switch-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .day-switch-btn .day-sub {
    display: none;
  }

  .timer-box {
    padding: 4px 10px;
  }

  .timer-display {
    font-size: 1.1rem;
    min-width: 80px;
  }

  .toolbar-container {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 12px;
    width: 100%;
    max-width: 100vw;
  }

  .area-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
    overflow-x: visible;
    white-space: normal;
  }

  .area-tab {
    flex: 1 1 calc(50% - 6px);
    text-align: center;
    padding: 6px 8px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .quick-stats {
    justify-content: space-between;
    font-size: 0.74rem;
    flex-wrap: wrap;
    gap: 6px;
  }

  .main-layout {
    margin: 12px auto;
    padding: 0 10px;
  }

  .question-card {
    padding: 16px 14px;
  }

  .box-reference,
  .box-prompt {
    padding: 14px 14px;
  }

  .box-reference-body,
  .box-prompt-body {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .option-btn {
    padding: 14px 14px;
    min-height: 54px;
    font-size: 0.94rem;
  }

  .q-footer {
    display: none; /* Substituído pela barra inferior fixa */
  }

  /* Gaveta Deslizante (Bottom Sheet Drawer) para o Mapa de Questões no Celular */
  .sidebar-stage {
    position: fixed;
    inset: 0;
    background: rgba(7, 25, 34, 0.75);
    z-index: 300;
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0;
    width: 100%;
  }

  .sidebar-stage.drawer-open {
    display: flex !important;
  }

  .sidebar-stage .sidebar-card {
    border-radius: 20px 20px 0 0;
    max-height: 82vh;
    overflow-y: auto;
    padding: 18px 16px 28px;
    margin: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.3);
  }

  .sidebar-stage .tips-card {
    display: none;
  }

  .btn-close-drawer {
    background: #f1f5f9;
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.4rem;
    color: var(--text-body);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .questions-grid {
    grid-template-columns: repeat(6, 1fr);
    max-height: 55vh;
  }

  /* Barra Inferior Fixa para Celular (Deep Teal & Ice Mint) */
  .mobile-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: var(--teal-darkest);
    border-top: 1px solid var(--teal-border);
    display: grid;
    grid-template-columns: 1fr 1.15fr 1fr 1fr;
    gap: 6px;
    padding: 8px 10px;
    z-index: 250;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
  }

  .mob-nav-btn {
    border: 1px solid var(--teal-border);
    background: var(--teal-dark);
    color: #f8fafc;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.15s ease;
  }

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

  .mob-nav-btn:disabled {
    opacity: 0.4;
  }

  .mob-nav-map {
    background: var(--teal-surface);
    color: var(--mint-glow);
  }

  .mob-nav-ai {
    background: #042f2e;
    border-color: var(--mint-primary);
    color: var(--mint-glow);
  }

  .mob-nav-primary {
    background: var(--mint-primary);
    border-color: var(--mint-light);
    color: #ffffff;
  }
}

/* ==========================================================================
   MODO ESCURO CALMO: DEEP OCEAN TEAL (data-theme="dark")
   Ergonomia noturna sem preto puro (#000), preservando a paleta fria e suave
   ========================================================================== */
.btn-theme-toggle {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
  background: rgba(7, 25, 34, 0.55);
  border: 1px solid rgba(20, 184, 166, 0.32);
  color: var(--mint-glow);
}

.btn-theme-toggle:hover {
  background: rgba(20, 184, 166, 0.22);
  border-color: var(--mint-glow);
  color: #ffffff;
}

[data-theme="dark"] {
  --bg-ice-slate: #06131a;
  --card-bg: #0b1e29;
  --border-subtle: #183747;
  --border-strong: #234f66;
  --text-main: #f1f5f9;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --mint-bg: rgba(13, 148, 136, 0.16);
  --mint-border: rgba(45, 212, 191, 0.32);
  --success-bg: rgba(5, 150, 105, 0.18);
  --success-border: rgba(16, 185, 129, 0.45);
  --danger-bg: rgba(225, 29, 72, 0.18);
  --danger-border: rgba(244, 63, 94, 0.45);
  --warning-bg: rgba(217, 119, 6, 0.18);
  --warning-border: rgba(245, 158, 11, 0.45);
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.38);
  --shadow-lg: 0 12px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .toolbar-section {
  background: #081821;
  border-bottom-color: var(--border-subtle);
}

[data-theme="dark"] .area-tab {
  background: #0d2330;
  border-color: var(--border-subtle);
  color: var(--text-body);
}

[data-theme="dark"] .area-tab:hover {
  background: #123040;
  color: #ffffff;
  border-color: var(--border-strong);
}

[data-theme="dark"] .area-tab.active {
  background: var(--mint-primary);
  color: #ffffff;
  border-color: var(--mint-light);
}

[data-theme="dark"] .progress-bar-wrapper {
  background: #0d2330;
}

[data-theme="dark"] .text-success {
  color: #6ee7b7;
}

[data-theme="dark"] .text-danger {
  color: #fda4af;
}

[data-theme="dark"] .q-area-badge,
[data-theme="dark"] .q-origin-badge {
  background: #102a38;
  color: #cbd5e1;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .q-discipline-badge {
  color: var(--mint-glow);
}

[data-theme="dark"] .q-topic-badge {
  background: rgba(217, 119, 6, 0.16);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .btn-review {
  background: #0f2735;
  border-color: var(--border-subtle);
  color: var(--text-body);
}

[data-theme="dark"] .btn-review:hover {
  background: rgba(245, 158, 11, 0.15);
  border-color: #f59e0b;
  color: #fde68a;
}

[data-theme="dark"] .btn-review.marked {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #fde68a;
}

[data-theme="dark"] .box-reference {
  background: #0e2533;
  border-color: var(--border-subtle);
  border-left-color: var(--mint-light);
}

[data-theme="dark"] .box-tag {
  color: var(--mint-glow);
}

[data-theme="dark"] .box-reference-body {
  color: #e2e8f0;
}

[data-theme="dark"] .q-figure-wrapper {
  background: #f8fafc;
  border-color: var(--border-strong);
}

[data-theme="dark"] .q-figure-img {
  filter: brightness(0.95) contrast(1.02);
}

[data-theme="dark"] .q-figure-caption {
  color: #475569;
}

[data-theme="dark"] .box-prompt {
  background: #102a3a;
  border-color: var(--border-strong);
  border-left-color: #38bdf8;
}

[data-theme="dark"] .prompt-tag {
  background: rgba(56, 189, 248, 0.16);
  color: #7dd3fc;
  border-color: rgba(56, 189, 248, 0.35);
}

[data-theme="dark"] .btn-tutor-reasoning {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .btn-tutor-reasoning:hover {
  background: rgba(16, 185, 129, 0.25);
}

[data-theme="dark"] .btn-tutor-hint {
  background: rgba(245, 158, 11, 0.15);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.35);
}

[data-theme="dark"] .btn-tutor-hint:hover {
  background: rgba(245, 158, 11, 0.25);
}

[data-theme="dark"] .btn-tutor-steps {
  background: rgba(59, 130, 246, 0.16);
  color: #93c5fd;
  border-color: rgba(59, 130, 246, 0.38);
}

[data-theme="dark"] .btn-tutor-steps:hover {
  background: rgba(59, 130, 246, 0.26);
}

[data-theme="dark"] .btn-tutor-scratch {
  background: #102a38;
  color: #cbd5e1;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .scratchpad-panel {
  background: #112a36;
  border-color: #ca8a04;
}

[data-theme="dark"] .scratchpad-header {
  color: #fde047;
}

[data-theme="dark"] .scratchpad-textarea {
  background: #081821;
  border-color: #854d0e;
  color: #f1f5f9;
}

[data-theme="dark"] .option-btn {
  background: #0e2533;
  border-color: var(--border-subtle);
  color: #e2e8f0;
}

[data-theme="dark"] .option-btn:hover:not(:disabled) {
  background: #133142;
  border-color: var(--mint-light);
}

[data-theme="dark"] .option-letter {
  background: #081821;
  color: #cbd5e1;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .option-btn.selected-correct {
  color: #ecfdf5;
}

[data-theme="dark"] .option-btn.selected-incorrect {
  color: #ffe4e6;
}

[data-theme="dark"] .option-btn.reveal-correct {
  background-color: rgba(16, 185, 129, 0.14) !important;
  color: #a7f3d0;
}

[data-theme="dark"] .feedback-panel {
  background: #0e2533;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .feedback-header.correct {
  background: rgba(5, 150, 105, 0.22);
  color: #6ee7b7;
  border-bottom-color: rgba(16, 185, 129, 0.35);
}

[data-theme="dark"] .feedback-header.incorrect {
  background: rgba(225, 29, 72, 0.22);
  color: #fda4af;
  border-bottom-color: rgba(244, 63, 94, 0.35);
}

[data-theme="dark"] .just-title,
[data-theme="dark"] .source-title,
[data-theme="dark"] .navigator-title-row h3,
[data-theme="dark"] .rec-area-title {
  color: var(--mint-glow);
}

[data-theme="dark"] .web-source-item {
  background: #081821;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .lang-select {
  background: #081821;
  color: #f1f5f9;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .grid-q-btn {
  background: #0e2533;
  border-color: var(--border-subtle);
  color: #cbd5e1;
}

[data-theme="dark"] .grid-q-btn:hover {
  background: #16384c;
}

[data-theme="dark"] .grid-q-btn.current {
  background: #133346;
  border-color: var(--mint-glow);
  color: #ffffff;
}

[data-theme="dark"] .tips-card {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(45, 212, 191, 0.28);
}

[data-theme="dark"] .tips-card-header {
  color: var(--mint-glow);
}

[data-theme="dark"] .tips-card p {
  color: #cbd5e1;
}

[data-theme="dark"] .modal-card {
  background: #0b1e29;
  color: var(--text-body);
  border: 1px solid var(--border-subtle);
}

[data-theme="dark"] .modal-footer,
[data-theme="dark"] .rec-area-card {
  background: #081821;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .rec-topic-item {
  background: #0e2533;
  border-color: var(--border-subtle);
}

[data-theme="dark"] .rec-topic-header {
  color: #f1f5f9;
}

[data-theme="dark"] .btn-close-drawer {
  background: #133142;
  color: #f1f5f9;
}

