/* ====================================================
   SEMIMUS — Premium Design System v2.0
   SENA Green: #39A900 | Dark BG: #0B0F14
   ==================================================== */

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(57,169,0,0.3); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(57,169,0,0.6); }

/* ── Alpine cloak ── */
[x-cloak] { display: none !important; }

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── Base body ── */
body { background: #0B0F14; color: #fff; }
.light body { background: #F8FAFC; color: #111827; }

/* ══════════════════════════════════════
   SIDEBAR — Spotify Premium Style
   ══════════════════════════════════════ */

.sidebar {
  background: #080C10;
  border-right: 1px solid rgba(255,255,255,0.06);
  width: 256px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 40;
  transition: width 0.3s ease;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0.875rem;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 200ms ease;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  position: relative;
  cursor: pointer;
}
.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}
.nav-item:hover svg { transform: scale(1.1); }
.nav-item.active {
  background: #39A900;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(57,169,0,0.35);
}
.nav-item svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  transition: transform 200ms ease;
}

/* ══════════════════════════════════════
   TOPBAR
   ══════════════════════════════════════ */

.topbar {
  background: rgba(11,15,20,0.9);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 30;
}

.search-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.625rem;
  padding: 0.5rem 1rem;
  color: #fff;
  font-size: 0.875rem;
  transition: all 200ms;
  outline: none;
  width: 300px;
}
.search-input::placeholder { color: rgba(255,255,255,0.35); }
.search-input:focus {
  border-color: rgba(57,169,0,0.4);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(57,169,0,0.12);
}

/* Light mode overrides */
.light .search-input {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #111827;
}
.light .search-input::placeholder { color: #9CA3AF; }
.light .topbar {
  background: rgba(255,255,255,0.95);
  border-bottom-color: #E5E7EB;
}
.light .sidebar { background: #fff; border-right-color: #E5E7EB; }
.light .nav-item { color: #4B5563; }
.light .nav-item:hover { background: #F3F4F6; color: #111827; }
.light .nav-item.active { background: #39A900; color: #fff; }
.light .sidebar .text-white { color: #111827 !important; }
.light .sidebar .nav-item.active { color: #fff !important; }
.light .learning-page .text-white { color: #111827 !important; }

/* ══════════════════════════════════════
   CARDS — Glassmorphism Premium
   ══════════════════════════════════════ */

.card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all 250ms ease;
}

.card-hover:hover {
  border-color: rgba(57,169,0,0.25);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3), 0 0 0 1px rgba(57,169,0,0.1);
  transform: translateY(-2px);
}

.light .card {
  background: #fff;
  border-color: #E5E7EB;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.light .card-hover:hover {
  border-color: rgba(57,169,0,0.3);
  box-shadow: 0 8px 24px rgba(57,169,0,0.08);
}

/* ── Glass card variant ── */
.card-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1rem;
}

/* ══════════════════════════════════════
   TRAINING MODE CARDS
   ══════════════════════════════════════ */

.training-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  padding: 0.875rem;
  cursor: pointer;
  transition: all 250ms ease;
  text-decoration: none;
  display: block;
  overflow: hidden;
  position: relative;
}
.training-card:hover {
  transform: translateY(-4px) scale(1.015);
  border-color: rgba(57,169,0,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(57,169,0,0.15);
}
.training-card:hover .training-card-img {
  transform: scale(1.05);
}

.training-card-img {
  width: 100%;
  height: 80px;
  border-radius: 0.5rem;
  object-fit: cover;
  transition: transform 300ms ease;
  background: linear-gradient(135deg, #2d2d2d 0%, #4a3728 100%);
}

.light .training-card {
  background: #F8FAFC;
  border-color: #E5E7EB;
}
.light .training-card:hover { border-color: #39A900; }

/* ══════════════════════════════════════
   INSTRUMENT CARDS
   ══════════════════════════════════════ */

.instrument-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 0.875rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 280ms ease;
  text-decoration: none;
  display: block;
}
.instrument-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  border-color: rgba(57,169,0,0.3);
}
.instrument-card:hover .instrument-img { transform: scale(1.07); }

.instrument-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  transition: transform 350ms ease;
}

.img-tiple    { background: linear-gradient(145deg, #3D1F08 0%, #8B5E3C 35%, #C4956A 60%, #6B3A1F 100%); }
.img-requinto { background: linear-gradient(145deg, #2A1506 0%, #704214 35%, #A0522D 60%, #4A2210 100%); }
.img-bandola  { background: linear-gradient(145deg, #1A0C04 0%, #5C3D2E 35%, #8B6B52 60%, #3D2010 100%); }

.light .instrument-card { background: #fff; border-color: #E5E7EB; }

/* ══════════════════════════════════════
   XP BAR — Animated
   ══════════════════════════════════════ */

.xp-bar-track {
  height: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #39A900, #4ADE80);
  border-radius: 9999px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.xp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4));
  border-radius: 9999px;
  animation: xpShimmer 2s ease-in-out infinite;
}
@keyframes xpShimmer {
  0%, 100% { opacity: 0; transform: translateX(-20px); }
  50% { opacity: 1; transform: translateX(10px); }
}

.xp-bar-mini {
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  overflow: hidden;
}
.xp-bar-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, #39A900, #4ADE80);
  border-radius: 9999px;
  transition: width 1s ease;
}

.light .xp-bar-track { background: #E5E7EB; }
.light .xp-bar-mini { background: #E5E7EB; }

/* ══════════════════════════════════════
   BUTTONS — Premium
   ══════════════════════════════════════ */

.btn-sena {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: #39A900;
  color: #fff;
  border-radius: 0.625rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.btn-sena:hover {
  background: #2d8a00;
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(57,169,0,0.45);
}
.btn-sena:active { transform: scale(0.97); }

.btn-sena-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: transparent;
  color: #39A900;
  border: 1px solid #39A900;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}
.btn-sena-outline:hover {
  background: rgba(57,169,0,0.1);
  transform: scale(1.02);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: transparent;
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 200ms ease;
  text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.2); }

/* ── Primary (legacy) ── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.625rem 1.25rem; background: #39A900; color: #fff;
  border-radius: 0.75rem; font-size: 0.875rem; font-weight: 600;
  border: none; cursor: pointer;
  transition: background 150ms, transform 100ms, box-shadow 150ms;
  text-decoration: none;
}
.btn-primary:hover { background: #2d8a00; box-shadow: 0 4px 16px rgba(57,169,0,0.4); }
.btn-primary:active { transform: scale(0.98); }

/* ══════════════════════════════════════
   AUDIO PLAYER — Spotify Style
   ══════════════════════════════════════ */

.audio-player {
  background: #0B0F14;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.audio-play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #39A900;
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 200ms ease;
  box-shadow: 0 0 0 0 rgba(57,169,0,0.4);
}
.audio-play-btn:hover {
  background: #4ADE80;
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(57,169,0,0.15);
}
.audio-play-btn.playing { animation: pulseGreenBtn 1.5s ease-in-out infinite; }

@keyframes pulseGreenBtn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(57,169,0,0.4); }
  50% { box-shadow: 0 0 0 10px rgba(57,169,0,0); }
}

.waveform-container {
  flex: 1;
  height: 48px;
  position: relative;
  overflow: hidden;
}

.waveform-bars {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}
.waveform-bar {
  flex: 1;
  background: rgba(57,169,0,0.25);
  border-radius: 2px;
  transition: height 100ms ease;
  min-width: 2px;
}
.waveform-bar.active { background: #39A900; }
.waveform-bar.played { background: rgba(57,169,0,0.6); }

@keyframes waveAnim {
  0%, 100% { height: 20%; }
  50% { height: 80%; }
}
.waveform-bar.playing { animation: waveAnim 0.8s ease-in-out infinite; }

/* ══════════════════════════════════════
   TRAINING ANSWER OPTIONS
   ══════════════════════════════════════ */

.option-btn {
  width: 100%;
  text-align: left;
  padding: 0.875rem 1.125rem;
  border-radius: 0.75rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  font-weight: 500;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  transition: all 200ms ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.option-btn:hover:not(:disabled) {
  border-color: rgba(57,169,0,0.4);
  background: rgba(57,169,0,0.08);
  color: #fff;
}
.option-btn:disabled { cursor: not-allowed; opacity: 0.75; }
.option-btn.correct {
  border-color: #39A900 !important;
  background: rgba(57,169,0,0.15) !important;
  color: #4ADE80 !important;
}
.option-btn.wrong {
  border-color: #F87171 !important;
  background: rgba(248,113,113,0.1) !important;
  color: #FCA5A5 !important;
}

.light .option-btn {
  background: #F8FAFC;
  border-color: #E5E7EB;
  color: #111827;
}
.light .option-btn:hover:not(:disabled) { border-color: #39A900; background: rgba(57,169,0,0.05); }

/* ══════════════════════════════════════
   PROGRESS BAR — Mode Cards
   ══════════════════════════════════════ */

.progress-bar {
  height: 4px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.progress-fill { height: 100%; border-radius: 9999px; transition: width 1s ease; }

.light .progress-bar { background: #E5E7EB; }

/* ══════════════════════════════════════
   STAT MINI CARDS
   ══════════════════════════════════════ */

.stat-mini {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}
.stat-mini .stat-value {
  font-size: 1.375rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.stat-mini .stat-label {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.stat-mini .stat-change {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 0.125rem;
}
.stat-change.up { color: #4ADE80; }
.stat-change.down { color: #F87171; }

.light .stat-mini .stat-value { color: #111827; }
.light .stat-mini .stat-label { color: #6B7280; }

/* ══════════════════════════════════════
   TOP LEARNERS
   ══════════════════════════════════════ */

.learner-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.learner-item:last-child { border-bottom: none; }
.learner-item.is-current { color: #39A900; }

.learner-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #39A900, #1a5200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.light .learner-item { border-bottom-color: #F3F4F6; }

/* ══════════════════════════════════════
   CORRECT ANSWER CARD
   ══════════════════════════════════════ */

.correct-card {
  background: linear-gradient(145deg, #111827 0%, #0f1f0f 100%);
  border: 1px solid rgba(57,169,0,0.2);
  border-radius: 1rem;
  overflow: hidden;
}

.correct-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #39A900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 30px rgba(57,169,0,0.4);
}

/* ══════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════ */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes audio-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.animate-fade-in { animation: fadeIn 0.4s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.4s ease-out forwards; }
.animate-slide-right { animation: slideRight 0.4s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.audio-playing { animation: audio-pulse 0.7s ease-in-out infinite; }

/* Stagger delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* ══════════════════════════════════════
   FORM INPUTS
   ══════════════════════════════════════ */

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  background: rgba(255,255,255,0.05);
  color: #fff;
  color-scheme: dark;
  transition: border-color 200ms, box-shadow 200ms;
  outline: none;
}
.form-input::placeholder { color: rgba(255,255,255,0.3); }
.form-input:focus {
  border-color: #39A900;
  box-shadow: 0 0 0 3px rgba(57,169,0,0.15);
}

select.form-input {
  background-color: #1a2230;
  color-scheme: dark;
}

select.form-input option {
  background-color: #111827;
  color: #f8fafc;
}

.light .form-input {
  background: #fff;
  border-color: #D1D5DB;
  color: #111827;
  color-scheme: light;
}
.light .form-input::placeholder { color: #9CA3AF; }
.light .form-input:focus { border-color: #39A900; box-shadow: 0 0 0 3px rgba(57,169,0,0.12); }

.light select.form-input {
  background-color: #ffffff;
  color-scheme: light;
}

.light select.form-input option {
  background-color: #ffffff;
  color: #111827;
}

/* ══════════════════════════════════════
   THEME TOGGLE
   ══════════════════════════════════════ */

.theme-toggle {
  width: 42px;
  height: 24px;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background 200ms;
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle.active { background: #39A900; }
.theme-toggle::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  top: 3px;
  left: 3px;
  transition: transform 200ms ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.theme-toggle.active::after { transform: translateX(18px); }

/* ══════════════════════════════════════
   TABS
   ══════════════════════════════════════ */

.tab-btn {
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 150ms;
  border: none;
  background: transparent;
}
.tab-btn.active {
  color: #39A900;
  background: rgba(57,169,0,0.1);
}
.tab-btn:hover:not(.active) { color: rgba(255,255,255,0.7); }

.light .tab-btn { color: #9CA3AF; }
.light .tab-btn.active { color: #39A900; background: rgba(57,169,0,0.08); }

/* ══════════════════════════════════════
   SECTION HEADINGS
   ══════════════════════════════════════ */

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.875rem;
}
.light .section-title { color: #111827; }

/* ══════════════════════════════════════
   NOTIFICATION BADGE
   ══════════════════════════════════════ */

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  width: 18px; height: 18px;
  background: #EF4444;
  border-radius: 50%;
  font-size: 0.625rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #080C10;
}

/* ══════════════════════════════════════
   LIGHT MODE MAIN AREA
   ══════════════════════════════════════ */

.main-content { background: #0B0F14; min-height: 100vh; }
.light .main-content { background: #F8FAFC; }

/* ══════════════════════════════════════
   LEVEL BADGE
   ══════════════════════════════════════ */

.level-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: #39A900;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

/* ══════════════════════════════════════
   STREAK FLAME
   ══════════════════════════════════════ */

.streak-icon {
  font-size: 2rem;
  animation: float 2s ease-in-out infinite;
}

/* ══════════════════════════════════════
   CHALLENGE PROGRESS
   ══════════════════════════════════════ */

.challenge-progress {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 9999px;
  overflow: hidden;
}
.challenge-fill {
  height: 100%;
  background: linear-gradient(90deg, #39A900, #4ADE80);
  border-radius: 9999px;
  transition: width 0.8s ease;
}

.light .challenge-progress { background: #E5E7EB; }

/* ══════════════════════════════════════
   PRINT
   ══════════════════════════════════════ */

@media print {
  .sidebar, .topbar { display: none !important; }
  .main-content { padding: 0 !important; }
}

/* Dashboard: texto y superficies legibles en ambos temas. */
.light .dashboard-page .text-white { color: #111827 !important; }
.light .dashboard-page [style*="color:rgba(255,255,255"] { color: #64748B !important; }
.light .dashboard-page .interval-hero {
  background: linear-gradient(135deg, #FFFBEB, #FFFFFF) !important;
  border-color: #F3D37A !important;
}
.light .dashboard-page .dashboard-session-row { background: #F8FAFC !important; }
.light .dashboard-page .instrument-card { color: #111827; }

/* ══════════════════════════════════════
   RANGE SLIDER
   ══════════════════════════════════════ */

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255,255,255,0.15);
  cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #39A900;
  box-shadow: 0 2px 6px rgba(57,169,0,0.4);
}

/* ══════════════════════════════════════
   TYPEWRITER CURSOR
   ══════════════════════════════════════ */

.typewriter-cursor::after {
  content: '|';
  animation: blink 0.8s step-end infinite;
  color: #39A900;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ====================================================
   INTERVAL TRAINING — SENA neumorphic surface
   ==================================================== */
.training-neumorphic {
  --sena: #39a900;
  --ink: #183126;
  --muted: #6f8378;
  --surface: #eef4f0;
  background: var(--surface);
  color: var(--ink);
  margin: -1.5rem;
  padding: 2.5rem clamp(1rem, 4vw, 4rem);
  min-height: calc(100vh - 6rem);
}
.dark .training-neumorphic {
  --surface: #0f1720;
  --ink: #f8fafc;
  --muted: #a7b5ae;
  background: #0b0f14;
}
.dark .training-panel,
.dark .choice-card,
.dark .interval-pills span {
  background: #111827;
  box-shadow: 8px 8px 18px #070b10, -8px -8px 18px rgba(255,255,255,.025);
}
.dark .step-number,
.dark .choice-card:has(input:checked),
.dark .interval-pills span {
  box-shadow: inset 3px 3px 7px #070b10, inset -3px -3px 7px rgba(255,255,255,.025);
}
.dark .neumorphic-cta {
  box-shadow: 7px 7px 14px #070b10, -7px -7px 14px rgba(255,255,255,.025);
}
.training-shell { max-width: 960px; margin: 0 auto; }
.training-hero { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.eyebrow { color: var(--sena); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .7rem; }
.training-hero h1 { color: var(--ink); font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.02; letter-spacing: -.055em; max-width: 570px; }
.hero-copy { color: var(--muted); max-width: 580px; margin-top: .9rem; line-height: 1.65; }
.hero-mark { color: var(--sena); display: flex; align-items: center; gap: .2rem; font-size: 2.7rem; transform: rotate(-8deg); }
.hero-mark span:nth-child(2) { font-size: 4rem; margin-top: -1.8rem; }
.training-form { display: grid; gap: 1.2rem; }
.training-panel { background: var(--surface); border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 12px 12px 26px #d5ded8, -12px -12px 26px #fff; }
.panel-heading { display: flex; align-items: flex-start; gap: .9rem; margin-bottom: 1.35rem; }
.step-number { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .8rem; color: var(--sena); font-size: .7rem; font-weight: 900; box-shadow: inset 3px 3px 7px #d5ded8, inset -3px -3px 7px #fff; flex: 0 0 auto; }
.panel-heading h2 { font-size: 1.08rem; font-weight: 800; }
.panel-heading p { color: var(--muted); font-size: .85rem; margin-top: .25rem; }
.instrument-choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.choice-card { display: flex; flex-direction: column; align-items: center; gap: .25rem; padding: 1rem .6rem; border-radius: 1rem; cursor: pointer; color: var(--ink); box-shadow: 5px 5px 11px #d5ded8, -5px -5px 11px #fff; transition: .2s ease; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card:has(input:checked) { color: var(--sena); box-shadow: inset 4px 4px 9px #d5ded8, inset -4px -4px 9px #fff; }
.choice-icon { font-size: 1.8rem; line-height: 1; color: var(--sena); }
.choice-card strong { font-size: .84rem; }
.choice-card small { color: var(--muted); font-size: .68rem; }
.interval-pills { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.interval-pills span { border-radius: .85rem; padding: .9rem .5rem; text-align: center; color: var(--sena); font-size: .82rem; font-weight: 800; box-shadow: inset 3px 3px 7px #d5ded8, inset -3px -3px 7px #fff; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.settings-grid label { color: var(--muted); font-size: .83rem; font-weight: 700; }
.settings-grid label span { display: flex; justify-content: space-between; margin-bottom: .75rem; }
.settings-grid b { color: var(--sena); }
.settings-grid input { width: 100%; background: transparent; accent-color: var(--sena); }
.neumorphic-cta { display: inline-flex; align-items: center; justify-content: center; gap: 1rem; align-self: end; border: 0; border-radius: 1rem; padding: 1rem 1.5rem; background: var(--sena); color: #fff; font-weight: 800; cursor: pointer; box-shadow: 7px 7px 14px #c6d1c9, -7px -7px 14px #fff; transition: transform .2s, box-shadow .2s; }
.neumorphic-cta:hover { transform: translateY(-2px); box-shadow: 9px 9px 17px #c6d1c9, -9px -9px 17px #fff; }
.neumorphic-cta b { font-size: 1.3rem; }

.interval-session { --sena: #39a900; --ink: #183126; --muted: #718278; min-height: 100vh; background: #eef4f0; color: var(--ink); display: flex; flex-direction: column; }
.dark .interval-session { --ink: #f8fafc; --muted: #a7b5ae; background: #0b0f14; }
.dark .interval-topbar, .dark .session-card, .dark .interval-option { background: #111827; }
.dark .session-card { box-shadow: 14px 14px 30px #070b10, -14px -14px 30px rgba(255,255,255,.025); }
.dark .interval-option { color: var(--ink); box-shadow: 5px 5px 11px #070b10, -5px -5px 11px rgba(255,255,255,.025); }
.session-card.feedback-correct { animation: feedbackCorrect .6s ease; }
.session-card.feedback-wrong { animation: feedbackWrong .6s ease; }
@keyframes feedbackCorrect { 50% { box-shadow: 0 0 0 7px rgba(57,169,0,.18), 14px 14px 30px #d5ded8, -14px -14px 30px #fff; } }
@keyframes feedbackWrong { 50% { box-shadow: 0 0 0 7px rgba(198,74,74,.18), 14px 14px 30px #d5ded8, -14px -14px 30px #fff; } }
.interval-topbar { display: flex; align-items: center; gap: 1.3rem; padding: 1.2rem max(1.2rem, calc((100vw - 780px) / 2)); background: #eef4f0; }
.session-exit { color: var(--muted); font-size: 1.8rem; text-decoration: none; line-height: 1; }
.session-progress { flex: 1; }.session-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: .74rem; margin-bottom: .5rem; }.green-progress { height: .5rem; border-radius: 99px; box-shadow: inset 3px 3px 6px #d5ded8, inset -3px -3px 6px #fff; overflow: hidden; }.green-progress i { display: block; height: 100%; background: var(--sena); border-radius: inherit; transition: width .4s; }.session-time { color: var(--muted); font: 700 .75rem monospace; }
.session-main { width: min(100% - 2rem, 620px); margin: auto; display: grid; gap: 1.2rem; padding: 2rem 0 6rem; }.session-card { background: #eef4f0; border-radius: 1.8rem; padding: clamp(1.5rem, 5vw, 3rem); text-align: center; box-shadow: 14px 14px 30px #d5ded8, -14px -14px 30px #fff; }.session-label { display: flex; justify-content: space-between; align-items: center; color: var(--sena); font-size: .7rem; font-weight: 900; letter-spacing: .12em; }.session-label small { color: var(--muted); font-size: .66rem; font-weight: 600; letter-spacing: 0; }.session-card h1 { font-size: clamp(1.55rem, 5vw, 2.2rem); margin-top: 2rem; }.session-instruction { color: var(--muted); font-size: .88rem; margin-top: .55rem; }.session-play { display: grid; place-items: center; width: 6.4rem; height: 6.4rem; border: 0; border-radius: 50%; margin: 2rem auto .8rem; color: #fff; background: var(--sena); font-size: 1.8rem; cursor: pointer; box-shadow: 8px 8px 15px #c6d1c9, -8px -8px 15px #fff; }.session-play.is-playing { animation: audio-pulse 1s ease-in-out infinite; }.play-state { color: var(--muted); font-size: .75rem; margin-bottom: 1.8rem; }.session-options { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }.interval-option { display: flex; align-items: center; gap: .7rem; border: 0; border-radius: .95rem; padding: .95rem; background: #eef4f0; color: var(--ink); font-size: .82rem; font-weight: 700; text-align: left; cursor: pointer; box-shadow: 5px 5px 11px #d5ded8, -5px -5px 11px #fff; }.interval-option:hover:not(:disabled) { color: var(--sena); transform: translateY(-1px); }.interval-option:disabled { cursor: default; }.option-key { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: .45rem; color: var(--sena); font-size: .7rem; box-shadow: inset 2px 2px 4px #d5ded8, inset -2px -2px 4px #fff; }.interval-option.correct { color: var(--sena); box-shadow: inset 4px 4px 8px #d5ded8, inset -4px -4px 8px #fff; }.interval-option.wrong { color: #c64a4a; }.answer-feedback { margin-top: 1.3rem; font-size: .82rem; }.answer-feedback.is-correct { color: var(--sena); }.answer-feedback.is-wrong { color: #c64a4a; }.session-next { justify-self: center; }.session-stats { display: flex; justify-content: center; align-items: center; gap: 1rem; padding: 1rem; color: var(--muted); font-size: .73rem; }.session-stats b { color: var(--sena); font-size: .9rem; }.session-stats i { width: 4px; height: 4px; border-radius: 50%; background: #b7c6bb; }
@media (max-width: 640px) { .training-hero { align-items: flex-start; }.hero-mark { display: none; }.instrument-choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }.choice-card { min-width: 0; }.interval-pills { grid-template-columns: repeat(2, 1fr); }.settings-grid { grid-template-columns: 1fr; gap: 1.2rem; }.neumorphic-cta { width: 100%; }.training-neumorphic { margin: -1.25rem; }.session-options { grid-template-columns: 1fr; }.interval-topbar { gap: .7rem; }.session-time { display: none; } }

@media (max-width: 1024px) {
  .main-content { margin-left: 0 !important; width: 100%; }
  .topbar { padding-inline: 1rem; }
}

@media (max-width: 640px) {
  .main-content > main { padding: 1rem !important; }
  .training-neumorphic { padding: 1.25rem .75rem 3rem; }
  .training-panel { border-radius: 1rem; padding: 1rem; }
  .panel-heading { gap: .6rem; }
  .panel-heading h2 { font-size: .98rem; }
  .panel-heading p { font-size: .75rem; }
  .step-number { width: 2rem; height: 2rem; }
  .choice-card { min-width: 7rem; padding: .8rem .45rem; }
}

/* Entrenamiento: controles y estados más claros en ambos temas. */
.training-neumorphic {
  --training-accent: #278300;
  --training-border: #dce5df;
  --training-panel: #fff;
  --training-soft: #f4f8f5;
  --muted: #586b60;
  background: #f4f7f5;
}
.dark .training-neumorphic {
  --training-accent: #54c51d;
  --training-border: #283447;
  --training-panel: #111827;
  --training-soft: #182232;
  --muted: #a7b5ae;
  background: #0b0f14;
}
.training-shell { max-width: 1000px; }
.training-hero { margin-bottom: 1.75rem; }
.training-hero h1 { max-width: 720px; line-height: 1.08; letter-spacing: -.04em; }
.hero-copy { font-size: .98rem; }
.training-form { gap: 1rem; }
.training-panel {
  background: var(--training-panel);
  border: 1px solid var(--training-border);
  border-radius: 1.25rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 8px 24px rgba(20, 45, 30, .06);
}
.dark .training-panel { box-shadow: 0 12px 28px rgba(0, 0, 0, .2); }
.panel-heading { align-items: center; margin-bottom: 1.25rem; }
.panel-heading h2 { font-size: 1.12rem; line-height: 1.35; }
.panel-heading p { font-size: .9rem; line-height: 1.5; }
.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--training-border);
  color: var(--training-accent);
  box-shadow: none;
  background: var(--training-soft);
  font-size: .76rem;
}
.dark .step-number { box-shadow: none; }
.eyebrow, .choice-icon, .interval-pills li { color: var(--training-accent); }
.control-label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .82rem; font-weight: 700; }
.training-select {
  display: block;
  width: min(100%, 42rem);
  min-height: 3.25rem;
  padding: .75rem 2.75rem .75rem 1rem;
  border: 1.5px solid var(--training-border);
  border-radius: .8rem;
  outline: none;
  background-color: var(--training-panel);
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  color-scheme: light;
  transition: border-color .2s, box-shadow .2s;
}
.training-select:focus { border-color: #39a900; box-shadow: 0 0 0 3px rgba(57, 169, 0, .16); }
.training-select option { background: #fff; color: #17231c; }
.dark .training-select { color-scheme: dark; }
.dark .training-select option { background: #111827; color: #f8fafc; }
.interval-list-wrap { margin-top: 1.25rem; }
.interval-pills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; padding: 0; margin: 0; list-style: none; }
.interval-pills li {
  display: grid;
  min-height: 2.75rem;
  place-items: center;
  border: 1px solid var(--training-border);
  border-radius: .7rem;
  background: var(--training-soft);
  font-size: .84rem;
  font-weight: 800;
}
.dark .interval-pills li { background: #182232; box-shadow: none; }
.instrument-choice-grid { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .7rem; }
.choice-card {
  position: relative;
  min-height: 8rem;
  justify-content: center;
  gap: .35rem;
  border: 1.5px solid var(--training-border);
  background: var(--training-soft);
  box-shadow: none;
}
.dark .choice-card { background: #182232; box-shadow: none; }
.choice-card:hover { border-color: #80c95c; transform: translateY(-1px); }
.choice-card:has(input:checked) {
  border-color: #39a900;
  background: rgba(57, 169, 0, .08);
  color: var(--training-accent);
  box-shadow: inset 0 0 0 1px #39a900;
}
.dark .choice-card:has(input:checked) { background: rgba(57, 169, 0, .13); box-shadow: inset 0 0 0 1px #54c51d; }
.choice-card strong { font-size: .9rem; }
.choice-card small { font-size: .74rem; }
.choice-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 2.5rem;
}
.choice-thumb {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.range-field {
  --thumb-size: 1.15rem;
  width: 100%;
}
.range-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; color: var(--muted); font-size: .88rem; font-weight: 700; }
.range-heading output { color: var(--training-accent); font-weight: 800; text-align: right; }
.range-field input[type="range"] {
  display: block;
  width: 100%;
  height: 1.25rem;
  margin: 0;
  padding: 0;
  background: transparent;
  accent-color: #39a900;
  cursor: pointer;
  touch-action: pan-y;
}
.range-field input[type="range"]::-webkit-slider-runnable-track { height: .4rem; border-radius: 999px; background: #dce5df; }
.dark .range-field input[type="range"]::-webkit-slider-runnable-track { background: #344155; }
.range-field input[type="range"]::-moz-range-track { height: .4rem; border-radius: 999px; background: #dce5df; }
.dark .range-field input[type="range"]::-moz-range-track { background: #344155; }
.range-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: var(--thumb-size);
  height: var(--thumb-size);
  margin-top: -.375rem;
  border: 3px solid var(--training-panel);
  border-radius: 50%;
  background: #39a900;
  box-shadow: 0 0 0 2px #39a900;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.range-field input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px #39a900;
}
.range-field input[type="range"]::-moz-range-thumb {
  width: var(--thumb-size);
  height: var(--thumb-size);
  border: 3px solid var(--training-panel);
  border-radius: 50%;
  background: #39a900;
  box-shadow: 0 0 0 2px #39a900;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.range-field input[type="range"]::-moz-range-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px #39a900;
}
.range-field input[type="range"]:focus-visible { outline: 3px solid rgba(57, 169, 0, .3); outline-offset: 4px; border-radius: 999px; }
.range-ticks {
  position: relative;
  width: 100%;
  height: 1.6rem;
  margin-top: .55rem;
}
.range-tick-btn {
  position: absolute;
  top: 0;
  left: calc(var(--tick-p) * 100% + (0.5 - var(--tick-p)) * var(--thumb-size, 1.15rem));
  transform: translateX(-50%);
  background: transparent;
  border: none;
  padding: .15rem .45rem;
  border-radius: .375rem;
  font-size: .75rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s ease, font-weight .15s ease, background-color .15s ease, transform .15s ease;
  user-select: none;
  line-height: 1.2;
}
.range-tick-btn:hover {
  color: var(--training-accent);
  background-color: var(--training-soft);
}
.range-tick-btn.is-active {
  color: var(--training-accent);
  font-weight: 700;
}
.neumorphic-cta {
  width: 100%;
  min-height: 3.5rem;
  margin-top: .15rem;
  border-radius: .9rem;
  box-shadow: 0 5px 14px rgba(39, 131, 0, .2);
  font-size: 1rem;
}
.neumorphic-cta:hover { box-shadow: 0 8px 18px rgba(39, 131, 0, .28); }
.dark .neumorphic-cta { box-shadow: 0 5px 16px rgba(0, 0, 0, .3); }
.neumorphic-cta:focus-visible { outline: 3px solid var(--training-accent); outline-offset: 3px; }

@media (max-width: 640px) {
  .training-neumorphic { margin: -1rem; padding: 1.25rem .75rem 2rem; }
  .training-hero { margin-bottom: 1.25rem; }
  .training-hero h1 { font-size: clamp(1.85rem, 9vw, 2.5rem); }
  .hero-copy { font-size: .9rem; }
  .training-panel { padding: 1rem; border-radius: 1rem; }
  .panel-heading { align-items: flex-start; }
  .interval-pills { gap: .45rem; }
  .interval-pills li { min-height: 2.5rem; font-size: .75rem; }
  .instrument-choice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choice-card { min-height: 7rem; min-width: 0; }
  .range-tick-btn { font-size: .68rem; padding: .1rem .25rem; }
  .range-heading { font-size: .82rem; }
}

/* Confirmación de respuestas: feedback visible y consistente en la sesión. */
.interval-option.correct {
  border: 1px solid #278300;
  background: #edf8e8;
  color: #226b08;
  box-shadow: inset 0 0 0 1px #278300;
}
.interval-option.wrong {
  border: 1px solid #c74747;
  background: #fff0f0;
  color: #9b2929;
  box-shadow: inset 0 0 0 1px #c74747;
}
.dark .interval-option.correct { background: rgba(57, 169, 0, .16); color: #a7ed83; }
.dark .interval-option.wrong { background: rgba(220, 65, 65, .15); color: #ffb4b4; }
.answer-feedback {
  display: flex;
  align-items: flex-start;
  gap: .8rem;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid;
  border-radius: 1rem;
  text-align: left;
  line-height: 1.5;
}
.answer-feedback.is-correct { border-color: #91c87a; background: #eff9ea; color: #225f10; }
.answer-feedback.is-wrong { border-color: #e5a0a0; background: #fff1f1; color: #8d2929; }
.dark .answer-feedback.is-correct { border-color: #397a2a; background: rgba(57, 169, 0, .14); color: #c9f4b4; }
.dark .answer-feedback.is-wrong { border-color: #854242; background: rgba(220, 65, 65, .13); color: #ffc1c1; }
.answer-feedback strong { display: block; font-size: .95rem; }
.answer-feedback p { margin-top: .3rem; font-size: .82rem; opacity: .9; }
.feedback-mark {
  display: grid;
  flex: 0 0 1.8rem;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: currentColor;
  color: inherit;
  font-weight: 900;
}
.answer-feedback.is-correct .feedback-mark { color: #fff; background: #278300; }
.answer-feedback.is-wrong .feedback-mark { color: #fff; background: #b93434; }
.answer-error { margin-top: 1rem; padding: .8rem 1rem; border: 1px solid #e9bb62; border-radius: .8rem; background: #fff8e8; color: #744d08; font-size: .85rem; text-align: left; }
.dark .answer-error { border-color: #735c2c; background: rgba(211, 154, 39, .12); color: #f6d58e; }

/* Acompañantes visuales del aprendizaje. */
.site-companion {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  z-index: 35;
  width: 13rem;
  transform: translateY(-50%);
  pointer-events: auto;
  cursor: pointer;
  text-decoration: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .24));
  animation: companion-float 4s ease-in-out infinite;
  transition: filter .2s, transform .2s;
}
.site-companion:hover { filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .34)); transform: translateY(-50%) scale(1.04); }
.site-companion:focus-visible { outline: 3px solid #39a900; outline-offset: 4px; border-radius: 1rem; }
.site-companion img { display: block; width: 100%; height: 12rem; object-fit: cover; object-position: center top; border-radius: 1rem; }
.site-companion-label {
  position: absolute;
  right: .3rem;
  top: -.7rem;
  z-index: 1;
  padding: .3rem .55rem;
  border: 1px solid rgba(57, 169, 0, .35);
  border-radius: 999px;
  background: var(--session-card, #fff);
  color: #278300;
  font-size: .68rem;
  font-weight: 800;
  white-space: nowrap;
}
.feedback-character { width: 6.5rem; height: 4.5rem; flex: 0 0 6.5rem; object-fit: cover; object-position: center 34%; border-radius: .7rem; }
@keyframes companion-float { 0%, 100% { transform: translateY(-50%); } 50% { transform: translateY(calc(-50% - 5px)); } }
@media (max-width: 640px) {
  .site-companion { right: .5rem; width: 7.5rem; }
  .site-companion img { height: 7rem; border-radius: .7rem; }
  .site-companion-label { top: -.55rem; right: 0; font-size: .55rem; }
  .feedback-character { width: 4.5rem; height: 3.5rem; flex-basis: 4.5rem; }
}

/* Tema claro: reemplazar los textos blancos translúcidos del layout compartido. */
.light .sidebar [style*="color:rgba(255,255,255"],
.light .topbar [style*="color:rgba(255,255,255"],
.light .main-content > footer [style*="color:rgba(255,255,255"] {
  color: #526256 !important;
}
.light .sidebar [style*="border-color:rgba(255,255,255"],
.light .main-content > footer[style*="border-color:rgba(255,255,255"] {
  border-color: #e2e8e3 !important;
}
.light .main-content .text-gray-400 { color: #64748b !important; }

/* La sesión conserva contraste en el tema claro y deja visibles sus estadísticas. */
.interval-session {
  --sena: #278300;
  --muted: #596b60;
  --session-surface: #f3f7f4;
  --session-card: #fff;
  --session-border: #d7e1da;
  background: var(--session-surface);
}
.dark .interval-session {
  --sena: #54c51d;
  --session-surface: #0b0f14;
  --session-card: #111827;
  --session-border: #283447;
}
.interval-topbar { background: var(--session-surface); border-bottom: 1px solid var(--session-border); }
.dark .interval-topbar { background: var(--session-card); }
.session-card {
  background: var(--session-card);
  border: 1px solid var(--session-border);
  box-shadow: 0 10px 28px rgba(20, 45, 30, .08);
}
.dark .session-card { box-shadow: 0 12px 28px rgba(0, 0, 0, .22); }
.interval-option {
  min-height: 3.25rem;
  border: 1px solid var(--session-border);
  background: var(--session-card);
  box-shadow: 0 2px 8px rgba(20, 45, 30, .07);
}
.interval-option:disabled { opacity: 1; }
.dark .interval-option { border-color: var(--session-border); background: var(--session-card); }
.interval-option:focus-visible,
.session-play:focus-visible,
.session-exit:focus-visible,
.session-next:focus-visible { outline: 3px solid rgba(57, 169, 0, .45); outline-offset: 3px; }
.session-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: auto;
  padding: 1rem;
  border-top: 1px solid var(--session-border);
  background: var(--session-card);
  color: var(--muted);
  font-size: .8rem;
}
.session-stats b { color: var(--ink); }
.session-stats i { width: 1px; height: 1rem; background: var(--session-border); }

@media (max-width: 480px) {
  .session-stats { gap: .55rem; padding: .85rem .45rem; font-size: .72rem; }
}
