:root {
  color-scheme: dark;
  --bg: #0b1120;
  --panel: #151e30;
  --panel-2: #1d2940;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #f97316;
  --accent-2: #fb923c;
  --ok: #22c55e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 100% 0, #26324a 0, var(--bg) 35%); color: var(--text); }
button { font: inherit; }
.topbar { position: sticky; top: 0; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding: 18px 18px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); }
.eyebrow { color: var(--accent-2); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
h1 { margin: 2px 0 0; font-size: 27px; letter-spacing: -.04em; }
main { width: min(720px, 100%); margin: auto; padding: 0 14px 48px; }
.hero { padding: 14px; border: 1px solid #27334a; border-radius: 22px; background: linear-gradient(140deg, #1d2940, #121a2a); box-shadow: 0 18px 60px #0005; }
.progress-copy { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }
.progress-copy strong { color: var(--text); }
.progress-track { height: 9px; margin: 10px 0 16px; overflow: hidden; border-radius: 99px; background: #090f1c; }
#progressBar { height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #facc15); transition: width .25s ease; }
.primary, .watch, .complete { display: block; width: 100%; min-height: 54px; border: 0; border-radius: 16px; color: #fff; font-weight: 800; text-align: center; text-decoration: none; }
.primary, .watch { background: linear-gradient(135deg, var(--accent), #ea580c); }
.months { display: flex; gap: 8px; margin: 20px -14px 0; padding: 0 14px 8px; overflow-x: auto; scrollbar-width: none; }
.months::-webkit-scrollbar { display: none; }
.month-button { flex: 0 0 auto; min-width: 45px; height: 45px; border: 1px solid #334155; border-radius: 14px; background: var(--panel); color: var(--muted); font-weight: 800; }
.month-button.active { border-color: var(--accent); background: var(--accent); color: white; }
.month-button:disabled { opacity: .45; }
.month-intro { padding: 12px 3px 4px; }
.month-intro h2 { margin: 8px 0 4px; font-size: 22px; }
.month-intro p { margin: 0; color: var(--muted); line-height: 1.45; }
.lessons { display: grid; gap: 9px; margin-top: 12px; }
.lesson-card { overflow: hidden; border: 1px solid #253249; border-radius: 18px; background: var(--panel); }
.lesson-open { display: grid; grid-template-columns: 38px 1fr 12px; align-items: center; gap: 10px; width: 100%; min-height: 82px; padding: 12px 14px; border: 0; background: transparent; color: inherit; text-align: left; }
.lesson-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--panel-2); color: var(--accent-2); font-weight: 850; }
.lesson-body { display: grid; gap: 3px; }
.lesson-body small { color: var(--accent-2); font-weight: 750; }
.lesson-body strong { line-height: 1.25; }
.lesson-body em { color: var(--muted); font-size: 13px; font-style: normal; }
.status-dot { width: 11px; height: 11px; border: 2px solid #64748b; border-radius: 50%; }
.lesson-card.done .status-dot { border-color: var(--ok); background: var(--ok); box-shadow: 0 0 0 4px #22c55e22; }
.lesson-card.done .lesson-body strong { color: #94a3b8; }
dialog { width: min(680px, calc(100% - 18px)); max-height: calc(100dvh - 18px); padding: 0; overflow: auto; border: 1px solid #334155; border-radius: 24px; background: #111a2b; color: var(--text); box-shadow: 0 30px 100px #000c; }
dialog::backdrop { background: #020617cc; backdrop-filter: blur(4px); }
.close { position: sticky; top: 10px; float: right; z-index: 2; width: 42px; height: 42px; margin: 10px; border: 1px solid #475569; border-radius: 14px; background: #1e293b; color: white; font-size: 25px; }
#lessonDetail { padding: 30px 18px 24px; }
.detail-kicker { color: var(--accent-2); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.detail-title { margin: 7px 48px 6px 0; font-size: 26px; line-height: 1.12; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0 20px; }
.chip { padding: 7px 10px; border-radius: 99px; background: #22304a; color: #cbd5e1; font-size: 13px; font-weight: 700; }
.video-list { display: grid; gap: 9px; }
.watch { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-height: 58px; padding: 10px 14px; text-align: left; }
.watch small { color: #ffedd5; font-size: 12px; }
.focus { margin: 20px 0; padding: 16px; border-radius: 18px; background: var(--panel-2); }
.focus h3 { margin: 0 0 10px; font-size: 15px; }
.focus ol { margin: 0; padding-left: 22px; color: #dbe4f0; line-height: 1.5; }
.complete { border: 1px solid #475569; background: transparent; }
.complete.done { border-color: var(--ok); background: #166534; }
.icon-button { width: 42px; height: 42px; border: 1px solid #475569; border-radius: 14px; background: var(--panel); color: white; font-size: 24px; }
.hidden { display: none !important; }
.empty { padding: 28px 18px; border: 1px dashed #475569; border-radius: 18px; color: var(--muted); text-align: center; }
@media (min-width: 700px) { .topbar { width: min(720px, 100%); margin: auto; } }
