:root {
  color-scheme: light;
  --ink: #211c36; --muted: #625e75; --faint: #746f84; --line: #e4e0ed;
  --canvas: #f8f8fc; --white: #fff; --violet: #6243cc; --violet-hover: #5031b3;
  --lavender: #eeebfc; --lavender-edge: #e3dcfa; --green: #237254; --green-pale: #e9f7ef;
  --red: #a42f48; --red-pale: #fff0f2;
  --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  color: var(--ink); background: var(--canvas);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 290px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .58; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
#lesson-title:focus { outline: none; }
::selection { color: #281561; background: #e0d6fc; }
svg { display: block; width: 18px; height: 18px; flex: none; }
[data-icon] { display: inline-flex; align-items: center; justify-content: center; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: .7rem; left: .7rem; z-index: 20; padding: .6rem 1rem; background: var(--white); }
.startup { min-height: 100dvh; display: grid; place-content: center; color: var(--muted); }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-size: 1.15rem; font-weight: 750; letter-spacing: -.025em; color: var(--ink); white-space: nowrap; }
.brand img { flex: none; }
.brand-accent { color: var(--violet); }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .52rem .9rem; border: 1px solid transparent; border-radius: 9px; font-size: .9rem; font-weight: 650; color: var(--ink); background: transparent; transition: background-color .16s ease, color .16s ease, border-color .16s ease; }
.button.primary { background: var(--violet); color: var(--white); border-color: var(--violet); }
.button.primary:hover:enabled { background: var(--violet-hover); border-color: var(--violet-hover); }
.button.secondary { border-color: var(--line); background: var(--white); }
.button.secondary:hover:enabled, .button.subtle:hover:enabled { background: var(--lavender); color: var(--violet-hover); border-color: var(--lavender-edge); }
.button.subtle { color: var(--muted); }
.button.compact { min-height: 38px; padding: .4rem .7rem; }
.button.icon-button { padding: .35rem; min-width: 38px; }
.topbar { min-height: 68px; display: flex; padding: .65rem 2rem; align-items: center; justify-content: space-between; gap: .8rem; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-right { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-size: .87rem; }
.avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lavender); color: #4c35a9; font-weight: 750; }
#nav-toggle { display: none; }
.app-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: calc(100dvh - 68px); }
.sidebar { background: #fff; border-right: 1px solid var(--line); padding: 1.75rem 1rem; display: flex; flex-direction: column; }
.sidebar h2 { font-size: .92rem; color: var(--muted); margin: 0 .65rem .95rem; }
.course-group { margin: 0 0 .4rem; }
.course-button { display: flex; align-items: center; gap: .65rem; text-align: left; width: 100%; padding: .57rem .55rem; background: transparent; color: var(--ink); border: 1px solid transparent; border-radius: 10px; }
.course-button:hover, .course-button.selected { background: #f7f5fd; }
.course-button.selected { border-color: #ede8fb; }
.course-chip { width: 33px; height: 33px; border-radius: 8px; flex: none; display: grid; place-items: center; font-weight: 750; font-family: var(--mono); font-size: .73rem; }
.course-chip.coral { background: #fae9e9; color: #983b49; }
.course-chip.blue { background: #e8edfd; color: #3953a6; }
.course-chip.gold { background: #f8eed5; color: #7d5109; }
.course-chip.mint { background: #e2f1e9; color: #216346; }
.course-info { flex: 1; min-width: 0; }
.course-info strong, .course-info small { display: block; }
.course-info strong { font-size: .91rem; margin-bottom: .14rem; }
.course-info small { font-size: .77rem; color: var(--muted); }
.course-total { font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.lesson-list { list-style: none; padding: .27rem 0 .24rem .75rem; margin: 0; }
.lesson-list button { display: flex; width: 100%; gap: .5rem; align-items: flex-start; font-size: .84rem; line-height: 1.4; text-align: left; color: var(--muted); background: transparent; border: 1px solid transparent; padding: .47rem .5rem; border-radius: 7px; }
.lesson-list button:hover { color: var(--violet-hover); background: #f7f5fd; }
.lesson-list button[aria-current] { color: #4e32b6; background: var(--lavender); font-weight: 700; }
.lesson-list button > span:first-child { font-size: .75rem; min-width: 16px; height: 16px; display: inline-grid; place-items: center; margin-top: .13rem; }
.lesson-list svg { width: 14px; height: 14px; color: var(--green); }
.sidebar-progress { margin: auto .45rem .4rem; padding-top: 1.35rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .83rem; }
.progress-label { display: flex; justify-content: space-between; gap: .4rem; }
.progress-label strong { color: var(--ink); }
progress { width: 100%; height: 7px; accent-color: var(--violet); appearance: none; border: 0; background: var(--lavender); border-radius: 20px; margin-top: .55rem; }
progress::-webkit-progress-bar { background: var(--lavender); border-radius: 20px; }
progress::-webkit-progress-value, progress::-moz-progress-bar { background: var(--violet); border-radius: 20px; }
progress::-webkit-progress-value { background: var(--violet); border-radius: 20px; }
.sidebar-progress p { margin: .55rem 0 0; line-height: 1.42; }
.main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 1.6rem clamp(1.25rem, 3.2vw, 3.5rem) 2.5rem; }
.course-context { display: flex; justify-content: space-between; align-items: center; gap: .7rem; margin-bottom: 1rem; }
#breadcrumb { color: var(--muted); font-size: .87rem; }
#breadcrumb strong { color: var(--ink); }
#open-tutor { color: #5638bf; }
.daily { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.1rem 1.2rem; background: var(--lavender); border: 1px solid var(--lavender-edge); border-radius: 13px; }
.daily-left { display: flex; gap: .8rem; align-items: center; }
.daily-icon { width: 43px; height: 43px; border-radius: 10px; color: #5b3cc4; background: #e2dafa; flex: none; }
.daily-icon svg { width: 22px; height: 22px; }
.daily h2 { font-size: 1.02rem; margin: 0 0 .22rem; }
.daily p { color: #584d77; margin: 0; font-size: .88rem; line-height: 1.42; }
.daily .preparation { margin-top: .24rem; }
.daily-parts { display: flex; flex-wrap: wrap; gap: .45rem; flex-shrink: 0; }
.daily-part { padding: .4rem .58rem; background: #f8f5ff; border: 1px solid #e6dff9; border-radius: 7px; color: #534478; font-size: .82rem; white-space: nowrap; }
.daily-part strong { color: #33205f; }
.lesson-heading { display: flex; align-items: end; justify-content: space-between; gap: .9rem; margin: 1.55rem 0 1.25rem; }
.lesson-heading h1 { font-size: 2.05rem; letter-spacing: -.037em; line-height: 1.15; margin: 0 0 .38rem; }
.lesson-heading p { color: var(--muted); margin: 0; line-height: 1.5; }
.lesson-status { color: #5c5475; background: #eeebf7; border-radius: 20px; font-size: .81rem; font-weight: 650; white-space: nowrap; padding: .36rem .68rem; align-self: center; }
.lesson-status.done { color: var(--green); background: var(--green-pale); }
.lesson-workspace { display: grid; grid-template-columns: minmax(265px, .87fr) minmax(0, 1.22fr); gap: 1rem; align-items: start; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 13px; min-width: 0; }
.lesson-panel { padding: 1.2rem; }
.panel h2 { display: flex; align-items: center; gap: .52rem; font-size: 1.04rem; letter-spacing: -.015em; margin: 0; }
.panel h2 svg { color: #6446cd; }
.lesson-panel > p { line-height: 1.62; margin: .7rem 0 .95rem; color: #403951; overflow-wrap: anywhere; }
pre { overflow: auto; }
#example, .answer pre { margin: 0; padding: .7rem .75rem; color: #4b3488; background: #f7f5fc; border: 1px solid #eeebf7; border-radius: 8px; font: .85rem/1.6 var(--mono); }
.challenge { margin: 1.2rem 0 .9rem; padding-top: 1.05rem; border-top: 1px solid var(--line); }
.challenge ol { padding-left: 1.35rem; margin: .63rem 0 0; }
.challenge li { margin: .44rem 0; padding-left: .13rem; line-height: 1.5; color: #403951; }
.challenge li::marker { color: #6446cd; font-weight: 650; }
.hint, .answer { font-size: .9rem; line-height: 1.5; }
.hint summary, .answer summary { cursor: pointer; color: #5538ba; font-weight: 650; }
.hint summary { display: flex; align-items: center; gap: .42rem; min-height: 38px; list-style: none; }
.hint summary::-webkit-details-marker { display: none; }
.hint summary::after { content: ''; width: 7px; height: 7px; border-bottom: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: .15rem; margin-top: -.25rem; }
.hint[open] summary::after { transform: rotate(225deg); margin-top: .2rem; }
.hint p { padding: .7rem .8rem; margin: .1rem 0 .6rem; color: #45366d; border-radius: 8px; background: var(--lavender); }
.answer summary { padding: .45rem 0; }
.practice-panel { padding: 1rem; }
.practice-title { display: flex; justify-content: space-between; align-items: center; gap: .5rem; margin: 0 0 .65rem; }
.editor-wrap { border: 1px solid #ded9e9; border-radius: 10px; overflow: hidden; }
.filebar { display: flex; gap: .43rem; align-items: center; padding: .6rem .7rem; background: #f3f1f8; border-bottom: 1px solid var(--line); color: #4f4567; font: .82rem/1.4 var(--mono); }
.filebar svg { width: 15px; height: 15px; }
.saved { margin-left: auto; font: .77rem/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #625a73; }
.editor { min-width: 0; display: flex; height: 219px; background: #fcfbff; }
.numbers { user-select: none; color: #6b647d; background: #f7f5fb; border-right: 1px solid #ede9f4; min-width: 2.67rem; white-space: pre; overflow: hidden; text-align: right; padding: .75rem .65rem .75rem .35rem; }
#code, .numbers { font: .872rem/1.57 var(--mono); font-variant-numeric: tabular-nums; }
#code { min-width: 0; flex: 1; color: #302450; background: transparent; resize: none; border: none; outline-offset: -2px; padding: .75rem; caret-color: var(--violet); tab-size: 4; }
.editor-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .62rem .68rem; border-top: 1px solid var(--line); background: var(--white); }
.editor-help { color: var(--muted); font-size: .8rem; margin-left: auto; }
.result { margin-top: .9rem; }
.result-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: .46rem; gap: .5rem; }
.result-heading h3 { font-size: .9rem; margin: 0; }
#result-status { font-size: .81rem; color: var(--muted); text-align: right; }
#result-status.pass { color: var(--green); }
#result-status.fail { color: var(--red); }
.output { border: 1px solid var(--line); border-radius: 8px; min-height: 84px; background: #faf9fc; overflow: hidden; }
.output p { font-size: .88rem; margin: 0; padding: .7rem .77rem; color: var(--muted); line-height: 1.45; }
.output pre { font: .83rem/1.5 var(--mono); padding: .7rem .77rem; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 240px; }
.output iframe { width: 100%; height: 128px; display: block; background: #fff; border: 0; }
.query-result { width: 100%; border-collapse: collapse; font-size: .88rem; color: var(--ink); }
.query-result th, .query-result td { padding: .58rem .75rem; text-align: left; border-bottom: 1px solid var(--line); }
.query-result th { background: #f1eef8; font-weight: 650; }
.query-result tr:last-child td { border-bottom: 0; }
#query-result { overflow: auto; }
.checks { margin: .65rem 0 0; padding: 0; list-style: none; }
.checks li { padding: .45rem .65rem; background: var(--green-pale); color: #205a45; margin-top: .3rem; border-radius: 7px; display: flex; gap: .5rem; align-items: center; font-size: .87rem; }
.checks li.fail { background: var(--red-pale); color: var(--red); }
.checks svg { width: 15px; height: 15px; }
.lesson-nav { margin-top: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .55rem; color: var(--green); font-size: .9rem; }
.lesson-nav .next, #finish { margin-left: auto; }
#task-location { margin: .4rem 0 .45rem; color: var(--muted); }
.session-completion { margin: .75rem 0 0; padding: .65rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: var(--green-pale); color: var(--green); font-size: .88rem; line-height: 1.5; }
.sign-in { min-height: 100dvh; display: grid; place-items: center; padding: 1.4rem; }
.login-card { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 464px; max-width: 880px; width: 100%; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.login-art { padding: 2rem; display: flex; flex-direction: column; gap: 3rem; background: var(--lavender); }
.login-intro h1 { color: #2f1d63; font-size: 3.15rem; letter-spacing: -.04em; line-height: 1.05; margin: 0 0 1rem; }
.login-intro p { color: #51416f; line-height: 1.6; margin: 0 0 1.4rem; max-width: 32ch; }
.login-languages { display: flex; gap: .38rem; flex-wrap: wrap; }
.login-languages span { font-size: .84rem; color: #513c92; background: #f7f3ff; border: 1px solid #dfd6f7; padding: .32rem .55rem; border-radius: 6px; }
.login-form-area { display: grid; align-content: center; padding: clamp(1.3rem, 4vw, 3rem); }
.login-form { display: flex; flex-direction: column; }
.login-form h2 { font-size: 1.74rem; margin: 0 0 .36rem; letter-spacing: -.03em; }
.login-form p { margin: 0 0 1.15rem; color: var(--muted); line-height: 1.5; }
.login-form label { margin: .45rem 0 .32rem; font-weight: 620; font-size: .92rem; }
.login-form input, .tutor input, .tutor textarea { width: 100%; min-width: 0; border: 1px solid #dcd7e7; border-radius: 8px; padding: .65rem .7rem; color: var(--ink); background: #fff; }
.login-form input { margin-bottom: .55rem; min-height: 42px; }
.login-form .button { margin-top: .6rem; }
.login-form .form-error { color: var(--red); margin: .36rem 0; }
.tutor { margin: 0 0 0 auto; width: min(460px, 100%); max-width: 100%; padding: 0; max-height: 100dvh; height: 100dvh; border: 0; background: var(--white); color: var(--ink); box-shadow: -10px 0 35px #24154624; }
.tutor[open] { display: flex; flex-direction: column; }
.tutor::backdrop { background: #281f4460; }
.tutor-header { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.15rem; border-bottom: 1px solid var(--line); }
.tutor-header h2 { font-size: 1.1rem; margin: 0 0 .16rem; }
.tutor-header p { color: var(--muted); margin: 0; font-size: .85rem; }
.tutor-header form { margin-left: auto; }
.tutor-symbol { background: var(--lavender); color: var(--violet); width: 38px; height: 38px; border-radius: 9px; flex: none; }
.tutor-context { margin: 0; padding: .7rem 1.15rem; background: #faf8fe; color: #57467e; font-size: .87rem; border-bottom: 1px solid var(--line); }
.tutor-conversation { overflow: auto; flex: 1; min-height: 30px; padding: 1rem 1.15rem; }
.bubble { padding: .7rem .85rem; border-radius: 10px; margin: 0 0 .65rem; max-width: 95%; line-height: 1.54; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .93rem; background: #f3f1fa; }
.bubble.user { background: var(--lavender); margin-left: auto; }
.tutor-bottom { padding: .85rem 1.15rem max(1rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.suggestions { display: flex; flex-wrap: wrap; gap: .35rem; }
#tutor-form, #key-form { display: flex; align-items: end; gap: .5rem; margin-top: .62rem; }
#question { resize: vertical; max-height: 8rem; }
.ai-setup { font-size: .86rem; margin-top: .7rem; }
.ai-setup summary { color: #5538ba; cursor: pointer; font-weight: 650; }
.ai-setup p { color: var(--muted); margin: .4rem 0; }
.tutor-privacy { font-size: .79rem; color: var(--muted); margin: .65rem 0 0; }
@media (max-width: 1090px) {
  .app-layout { grid-template-columns: 221px minmax(0, 1fr); }
  .main { padding-inline: 1.35rem; }
  .lesson-workspace { grid-template-columns: minmax(230px, .87fr) minmax(0, 1.1fr); }
  .editor-help { flex-basis: 100%; margin-left: 0; }
}
@media (max-width: 830px) {
  .topbar { justify-content: start; padding: .55rem .9rem; }
  #nav-toggle { display: inline-flex; }
  .topbar-right { margin-left: auto; }
  .app-layout { display: block; }
  .sidebar { display: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 1rem; }
  .sidebar.open { display: flex; }
  .sidebar h2 { margin-bottom: .6rem; }
  .sidebar-progress { margin-top: .5rem; padding-top: .7rem; }
  .main { padding: 1rem; }
}
@media (max-width: 610px) {
  #top-progress, .avatar { display: none; }
  .brand { font-size: 1rem; gap: .34rem; }
  .brand img { width: 28px; height: 28px; }
  .topbar { min-height: 57px; gap: .45rem; padding-inline: .62rem; }
  .daily { align-items: start; flex-direction: column; padding: .85rem; gap: .7rem; }
  .daily-parts { margin-left: 0; }
  .lesson-workspace { grid-template-columns: minmax(0, 1fr); }
  .lesson-heading { align-items: start; flex-direction: column; margin-top: 1.2rem; }
  .lesson-heading h1 { font-size: 1.65rem; }
  .lesson-status { align-self: start; }
  .login-card { grid-template-columns: 1fr; }
  .login-art { padding: 1.25rem; gap: 1.25rem; }
  .login-intro h1 { font-size: 2.25rem; }
  .login-intro h1 br { display: none; }
  .login-form-area { padding: 1.25rem; }
  .sign-in { padding: .8rem; }
  #code, .numbers { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; } }
.study-sessions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.15rem; margin-bottom: .95rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.study-sessions h2 { grid-column: 1 / -1; margin: 0; font-size: 1rem; }
.study-session { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.study-session a:not(.button), .roadmap-project a { color: var(--violet-hover); font-weight: 650; text-underline-offset: .15em; }
.study-session span { margin-left: .5rem; color: var(--muted); font-size: .8rem; white-space: nowrap; }
.study-session p, .roadmap-summary p, .roadmap-project { margin: .2rem 0 0; color: var(--muted); font-size: .88rem; line-height: 1.48; }
.study-sessions .button, .roadmap-summary .button { flex-shrink: 0; text-decoration: none; }
.roadmap-summary h2 { margin: 0 0 .23rem; font-size: 1rem; }
.study-tracks { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.study-tracks a { display: block; padding: .45rem .75rem; border-radius: 7px; color: var(--muted); text-decoration: none; font-weight: 650; }
.study-tracks a:hover, .study-tracks a[aria-current] { color: var(--violet-hover); background: var(--lavender); }
.sidebar-module { display: block; margin: .4rem .65rem; color: var(--violet-hover); font-size: .79rem; text-underline-offset: .15em; }
.sidebar nav .topic-practice-title { margin-top: 1.15rem; }
.study-page-heading { margin: 0 0 1.15rem; }
.study-page-heading h1 { margin: 0 0 .4rem; font-size: 2rem; line-height: 1.15; letter-spacing: -.035em; }
.study-page-heading p { max-width: 65ch; margin: 0; color: var(--muted); line-height: 1.5; }
.dashboard-tracks { display: grid; gap: .85rem; }
.dashboard-track { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr); gap: .85rem 1.2rem; padding: 1rem 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.dashboard-track h2 { margin: 0 0 .36rem; font-size: 1.12rem; }
.dashboard-track p, .wizard-plan p { margin: .28rem 0; line-height: 1.5; }
.track-meta { color: var(--muted); font-size: .83rem; }
.dashboard-track progress { display: block; width: min(230px, 100%); margin-top: .75rem; background: var(--lavender); }
.dashboard-track-next { padding-left: 1.15rem; border-left: 1px solid var(--line); }
.dashboard-track-next h3 { margin: 0; font-size: .9rem; }
.track-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.track-actions a, .roadmap-header a { text-decoration: none; }
.study-wizard { max-width: 720px; }
.wizard-form { padding: 1.05rem 1.15rem; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.wizard-options { margin: 0; padding: 0; border: 0; }
.wizard-options legend, .wizard-step-title { margin: 0 0 .6rem; padding: 0; font-size: 1.17rem; font-weight: 720; }
.wizard-options label { display: flex; align-items: flex-start; gap: .6rem; padding: .68rem .75rem; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.wizard-options label + label { margin-top: .45rem; }
.wizard-options label:hover, .wizard-options label:has(input:checked) { background: var(--lavender); border-color: var(--lavender-edge); }
.wizard-options small { display: block; margin-top: .18rem; color: var(--muted); line-height: 1.4; }
.wizard-options input { margin-top: .25rem; accent-color: var(--violet); }
.wizard-form label[for="wizard-module"] { font-size: .9rem; font-weight: 650; }
.wizard-form select { display: block; max-width: 100%; margin-top: .35rem; padding: .42rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 7px; font: inherit; }
.wizard-plan { margin-top: .85rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.wizard-plan h3 { margin: .2rem 0; font-size: 1.06rem; }
.wizard-plan dl { margin: .8rem 0 0; }
.wizard-plan dl div + div { margin-top: .6rem; }
.wizard-plan dt { font-weight: 680; }
.wizard-plan dd { margin: .12rem 0 0; color: var(--muted); line-height: 1.45; }
.wizard-actions { justify-content: flex-end; }
.study-page-heading h1:focus, #wizard-title:focus, .wizard-step-title:focus, .wizard-options legend:focus { outline: none; }
.syllabus-level { margin-top: 1.4rem; }
.syllabus-level h2 { margin: 0 0 .45rem; font-size: 1.18rem; }
.syllabus-module { border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.syllabus-module + .syllabus-module { margin-top: .5rem; }
.syllabus-module summary { padding: .72rem .85rem; cursor: pointer; }
.syllabus-module summary:hover { background: var(--lavender); border-radius: 8px; }
.syllabus-module summary > span { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; }
.syllabus-module small { color: var(--muted); }
.syllabus-details { padding: .15rem .85rem .75rem; }
.syllabus-details > p { margin: .35rem 0; color: var(--muted); font-size: .88rem; line-height: 1.48; }
.syllabus-details strong { color: var(--ink); }
.syllabus-details .roadmap-days { margin-top: .65rem; }
.roadmap-project { margin-top: .8rem; }
.roadmap-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.roadmap-header h1 { margin: .1rem 0 .45rem; font-size: 2rem; line-height: 1.15; letter-spacing: -.035em; }
.roadmap-header p { color: var(--muted); margin: 0; line-height: 1.52; }
.roadmap-header .button { flex-shrink: 0; }
.roadmap-summary { display: flex; justify-content: space-between; align-items: center; gap: .85rem; padding: 1rem; border: 1px solid var(--lavender-edge); border-radius: 12px; background: var(--lavender); }
.roadmap-summary > div { flex: 1; }
.roadmap-summary progress { display: block; max-width: 290px; background: #e2dafa; }
.roadmap-days { margin: 1rem 0 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.roadmap-days li + li { border-top: 1px solid var(--line); }
.roadmap-day { display: grid; grid-template-columns: 4.2rem minmax(0, 1fr) max-content; align-items: center; gap: .7rem; width: 100%; padding: .72rem .95rem; text-decoration: none; color: var(--ink); }
.roadmap-day:hover, .roadmap-day[aria-current] { background: #f7f4ff; }
.roadmap-days li:first-child .roadmap-day { border-radius: 11px 11px 0 0; }
.roadmap-days li:last-child .roadmap-day { border-radius: 0 0 11px 11px; }
.roadmap-day span:first-child { font-size: .85rem; font-weight: 650; color: #554590; }
.roadmap-day strong, .roadmap-day small { display: block; }
.roadmap-day strong { font-size: .95rem; line-height: 1.35; }
.roadmap-day small { color: var(--muted); margin-top: .13rem; font-size: .82rem; }
.roadmap-day .lesson-status { justify-self: end; }
#roadmap-title:focus { outline: none; }
@media (max-width: 610px) {
  .dashboard-track { grid-template-columns: 1fr; }
  .dashboard-track-next { padding: .65rem 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .study-sessions { grid-template-columns: 1fr; }
  .roadmap-header, .roadmap-summary { align-items: flex-start; flex-direction: column; }
  .roadmap-summary > div { width: 100%; }
  .roadmap-header h1 { font-size: 1.65rem; }
  .roadmap-day { grid-template-columns: 3.3rem minmax(0, 1fr) max-content; padding: .6rem .58rem; gap: .38rem; }
  .roadmap-day .lesson-status { font-size: .71rem; padding: .28rem .43rem; }
}
