:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --ink: #111c33;
  --muted: #748097;
  --line: #e5eaf2;
  --brand: #3b86f7;
  --brand-2: #2f78ec;
  --brand-soft: #eaf3ff;
  --brand-panel: #dcecff;
  --green: #1f9d68;
  --green-soft: #e8f7f0;
  --video: #d93c6a;
  --shadow: 0 18px 48px rgba(40, 79, 143, .09);
  --radius: 24px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body { min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
.print-only { display: none; }

.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 1000; transform: translateY(-180%); padding: .8rem 1rem; border: 0; border-radius: 12px; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }
.app-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid rgba(229,234,242,.9); background: rgba(255,255,255,.9); backdrop-filter: blur(18px); }
.header-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; width: min(1440px, calc(100% - 40px)); min-height: 76px; margin: auto; }
.brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #55a0ff, var(--brand-2)); color: white; font-weight: 850; box-shadow: 0 10px 22px rgba(47,120,236,.24); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .98rem; }
.brand small { margin-top: .14rem; color: var(--muted); font-size: .68rem; }
.desktop-nav { display: flex; justify-content: center; gap: .35rem; }
.nav-link { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem .85rem; border-radius: 12px; color: var(--muted); font-size: .78rem; font-weight: 720; text-decoration: none; transition: .18s ease; }
.nav-link:hover { background: var(--surface-soft); color: var(--ink); }
.nav-link.active { background: var(--brand); color: white; }
.nav-link > span { font-size: .9rem; }
.offline-pill { display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .75rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .7rem; font-weight: 750; background: var(--surface); }
.offline-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.page-shell { width: min(1440px, calc(100% - 40px)); margin: auto; padding: 38px 0 110px; }

.week-hero { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 24px; }
.overline { display: flex; gap: .55rem; margin-bottom: .8rem; }
.overline span { padding: .35rem .55rem; border-radius: 8px; background: var(--brand-soft); color: var(--brand-2); font-size: .68rem; font-weight: 800; letter-spacing: .03em; }
h1, h2, p { margin-top: 0; }
.week-hero h1 { margin-bottom: .35rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: .98; letter-spacing: -.055em; }
.week-range { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.week-actions { display: flex; align-items: center; gap: .55rem; }
.week-actions button { min-height: 44px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); cursor: pointer; font-size: .74rem; font-weight: 780; box-shadow: 0 5px 18px rgba(27,39,70,.04); }
.week-actions button:hover:not(:disabled) { transform: translateY(-1px); border-color: #bac4da; }
.week-actions button:disabled { opacity: .35; cursor: default; }
.icon-button { width: 44px; }
.current-week { padding: 0 .9rem; }
.week-actions .print-button { display: inline-flex; align-items: center; gap: .45rem; padding: 0 1rem; border-color: var(--brand); background: var(--brand); color: white; }
.week-progress { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-bottom: 18px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.75); }
.week-progress strong, .week-progress span { display: block; }
.week-progress strong { font-size: .82rem; }
.week-progress span { margin-top: .15rem; color: var(--muted); font-size: .66rem; }
.week-progress > b { color: var(--green); font-size: .85rem; }
.progress-track { height: 7px; overflow: hidden; border-radius: 999px; background: #e9edf4; }
.progress-track i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #43bf87, var(--green)); transition: width .35s ease; }

.week-board { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.week-day { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.88); box-shadow: 0 10px 30px rgba(27,39,70,.045); }
.week-day > header { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 6px 8px 12px; border-bottom: 1px solid var(--line); }
.week-day > header p { margin-bottom: .28rem; color: var(--muted); font-size: .65rem; font-weight: 780; text-transform: uppercase; letter-spacing: .09em; }
.week-day > header h2 { margin-bottom: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.week-day > header > span { display: grid; place-items: center; min-width: 35px; height: 28px; border-radius: 999px; background: #eef1f6; color: var(--muted); font-size: .66rem; font-weight: 800; }
.week-day.day-complete > header > span { background: var(--green-soft); color: var(--green); }
.day-lessons { display: grid; gap: 9px; padding-top: 11px; }
.week-day.is-day-off { background: rgba(255,255,255,.55); box-shadow: none; }
.week-day.is-day-off > header { border-bottom-color: #edf0f5; }
.week-day.is-day-off > header h2,.week-day.is-day-off > header p { color: #9aa4b5; }
.day-off-card { display: grid; place-items: center; align-content: center; min-height: 136px; padding: 18px; border: 1px dashed #cdd8e8; border-radius: 16px; background: linear-gradient(145deg,#f7fbff,#edf5ff); text-align: center; }
.day-off-card span { margin-bottom: .55rem; padding: .28rem .48rem; border-radius: 7px; background: white; color: var(--brand-2); font-size: .58rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.day-off-card strong { font-size: .72rem; line-height: 1.4; }
.day-off-card small { margin-top: .35rem; color: var(--muted); font-size: .58rem; }
.week-lesson { position: relative; display: grid; grid-template-columns: minmax(0,1fr) 28px; gap: 8px; min-height: 136px; padding: 13px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.week-lesson::before { position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--subject); content: ""; }
.week-lesson:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--subject), white 55%); box-shadow: 0 10px 25px rgba(27,39,70,.07); }
.lesson-main { min-width: 0; display: flex; flex-direction: column; }
.lesson-kicker { display: flex; align-items: center; gap: .4rem; color: var(--subject); font-size: .7rem; font-weight: 850; }
.subject-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--subject); }
.lesson-topic { display: -webkit-box; margin-top: .65rem; overflow: hidden; color: var(--ink); font-size: .72rem; font-weight: 680; line-height: 1.45; text-decoration: none; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.lesson-topic:hover { color: var(--brand-2); }
.lesson-meta { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .7rem; color: var(--muted); font-size: .59rem; }
.lesson-meta span { padding: .25rem .35rem; border-radius: 6px; background: #f1f3f7; }
.lesson-meta .video-mark { background: #fff0f5; color: var(--video); font-weight: 800; }
.topic-check { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 1px solid #cfd5df; border-radius: 9px; background: white; cursor: pointer; }
.topic-check span { display: grid; place-items: center; width: 100%; height: 100%; color: white; font-size: .75rem; font-weight: 900; }
.topic-check[aria-pressed="true"] { border-color: var(--green); background: var(--green); }
.week-lesson.is-complete { border-color: #bfe6d3; background: var(--green-soft); }
.week-lesson.is-complete::before { background: var(--green); }
.week-lesson.is-complete .lesson-kicker { color: var(--green); }
.week-lesson.is-complete .subject-dot { background: var(--green); }
.week-lesson.is-complete .lesson-topic { color: #287456; text-decoration: line-through; text-decoration-color: rgba(40,116,86,.35); }
.week-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-top: 18px; padding: 18px 20px; border: 1px solid #cfe1fb; border-radius: 20px; background: var(--brand-panel); color: var(--ink); box-shadow: 0 12px 30px rgba(47,120,236,.08); }
.note-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: white; color: var(--brand-2); font-weight: 850; box-shadow: 0 7px 18px rgba(47,120,236,.12); }
.week-note strong { font-size: .82rem; }
.week-note p { margin: .25rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.week-note a { color: var(--brand-2); font-size: .72rem; font-weight: 800; text-decoration: none; }
.empty-state { min-height: 65vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.empty-state > span { padding: .35rem .55rem; border-radius: 8px; background: #e9edfb; color: var(--brand); font-size: .67rem; font-weight: 850; }
.empty-state h1 { margin: 1rem 0 .5rem; font-size: clamp(2rem,5vw,3.5rem); }
.empty-state p { color: var(--muted); }
.primary-button { display: inline-flex; padding: .8rem 1rem; border-radius: 12px; background: var(--brand); color: white; font-size: .75rem; font-weight: 800; text-decoration: none; }
.mobile-nav { display: none; }
.toast { position: fixed; right: 18px; bottom: 18px; z-index: 100; transform: translateY(150%); padding: .8rem 1rem; border-radius: 12px; background: var(--ink); color: white; font-size: .72rem; opacity: 0; transition: .25s ease; }
.toast.show { transform: none; opacity: 1; }
.noscript { max-width: 640px; margin: 3rem auto; padding: 2rem; }

.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 2rem; width: min(1440px, calc(100% - 40px)); margin: 0 auto 90px; padding: 20px 0; border-top: 1px solid var(--line); color: var(--muted); }
.site-footer strong, .site-footer span { display: block; }.site-footer strong { color: var(--ink); font-size: .78rem; }.site-footer span { margin-top: .25rem; font-size: .66rem; }
.site-footer > div:last-child { display: flex; gap: 1rem; }.site-footer a { color: var(--brand-2); font-size: .7rem; font-weight: 750; text-decoration: none; }
.page-heading { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 2rem; align-items: end; margin-bottom: 25px; }
.page-heading h1 { margin-bottom: .7rem; font-size: clamp(2.3rem,5vw,4.2rem); line-height: .98; letter-spacing: -.06em; }
.page-heading > div > p { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: .88rem; line-height: 1.65; }
.heading-stat { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.8); }
.heading-stat strong, .heading-stat span { display: block; }.heading-stat strong { font-size: 1.7rem; letter-spacing: -.04em; }.heading-stat span { margin: .2rem 0 .8rem; color: var(--muted); font-size: .66rem; }
.quarter-tabs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 15px; }
.quarter-tabs a { display: flex; align-items: center; gap: .75rem; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.7); text-decoration: none; transition: .18s ease; }
.quarter-tabs a:hover { border-color: #b8c2d7; transform: translateY(-1px); }.quarter-tabs a.active { border-color: var(--brand-2); background: var(--brand); color: white; box-shadow: 0 12px 28px rgba(47,120,236,.2); }
.quarter-tabs a > b { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 11px; background: #eef1f8; color: var(--brand); font-size: .78rem; }.quarter-tabs a.active > b { background: rgba(255,255,255,.13); color: white; }
.quarter-tabs a > span, .quarter-tabs small { display: block; }.quarter-tabs a > span { font-size: .75rem; font-weight: 800; }.quarter-tabs small { margin-top: .2rem; color: var(--muted); font-size: .58rem; font-weight: 550; }.quarter-tabs a.active small { color: rgba(255,255,255,.68); }
.curriculum-note { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin-bottom: 15px; padding: 16px 18px; border: 1px solid #cfe1fb; border-radius: 18px; background: var(--brand-soft); }
.curriculum-note > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-2); color: white; font-weight: 850; }.curriculum-note strong { font-size: .75rem; }.curriculum-note p { margin: .25rem 0 0; color: var(--muted); font-size: .66rem; line-height: 1.55; }.curriculum-note a { color: var(--brand-2); font-size: .68rem; font-weight: 800; text-decoration: none; }
.subject-jumps { display: flex; gap: 7px; margin-bottom: 15px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: thin; }
.subject-jump { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); cursor: pointer; color: var(--muted); font-size: .64rem; font-weight: 750; }.subject-jump i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: color-mix(in srgb,var(--subject),white 85%); color: var(--subject); font-style: normal; font-weight: 850; }
.topic-subject-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; align-items: start; }
.subject-topic-card { scroll-margin-top: 92px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: rgba(255,255,255,.9); box-shadow: 0 8px 28px rgba(27,39,70,.035); }
.subject-topic-card summary { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: .8rem; padding: 14px; cursor: pointer; list-style: none; }.subject-topic-card summary::-webkit-details-marker { display: none; }.subject-topic-card summary:hover { background: var(--surface-soft); }
.subject-symbol { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: color-mix(in srgb,var(--subject),white 84%); color: var(--subject); font-size: .78rem; font-weight: 850; }
.subject-topic-card summary strong, .subject-topic-card summary small { display: block; }.subject-topic-card summary strong { font-size: .78rem; }.subject-topic-card summary small { margin-top: .25rem; color: var(--muted); font-size: .61rem; }.subject-topic-card summary > b { color: var(--subject); font-size: .72rem; }
.subject-topic-card ol { display: grid; gap: 1px; margin: 0; padding: 1px 0 0; border-top: 1px solid var(--line); background: var(--line); list-style: none; }
.topic-line { display: grid; grid-template-columns: 30px minmax(0,1fr) auto; gap: .7rem; align-items: center; min-height: 66px; padding: 10px 13px; background: var(--surface); }
.topic-line.is-complete { background: var(--green-soft); }.topic-line.is-complete .topic-copy strong { color: #257052; text-decoration: line-through; text-decoration-color: rgba(37,112,82,.28); }
.topic-copy { min-width: 0; text-decoration: none; }.topic-copy strong, .topic-copy small { display: block; }.topic-copy strong { color: var(--ink); font-size: .69rem; line-height: 1.4; }.topic-copy small { margin-top: .28rem; color: var(--muted); font-size: .57rem; }.topic-copy:hover strong { color: var(--brand-2); }
.topic-video { display: inline-flex; align-items: center; gap: .25rem; padding: .35rem .45rem; border-radius: 8px; background: #fff0f5; color: var(--video); font-size: .58rem; font-weight: 850; text-decoration: none; }.topic-no-video { width: 30px; color: #c7ccd5; font-size: .65rem; text-align: center; }
.wide-check { display: inline-flex; grid-template-columns: 25px auto; width: auto; min-height: 38px; padding: 5px 10px 5px 5px; gap: .5rem; }.wide-check span { width: 25px; height: 25px; border: 1px solid #cfd5df; border-radius: 8px; }.wide-check b { font-size: .65rem; white-space: nowrap; }.wide-check[aria-pressed="true"] span { border-color: rgba(255,255,255,.28); }

.breadcrumbs { display: flex; gap: .55rem; margin-bottom: 16px; color: var(--muted); font-size: .68rem; }.breadcrumbs a { color: var(--brand-2); font-weight: 750; text-decoration: none; }
.lesson-hero { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2rem; align-items: center; margin-bottom: 15px; padding: clamp(22px,4vw,42px); overflow: hidden; border: 1px solid #c9defa; border-radius: 28px; background: linear-gradient(135deg,var(--brand-panel),#edf6ff); color: var(--ink); box-shadow: var(--shadow); }
.lesson-title-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }.lesson-title-meta span { padding: .35rem .5rem; border-radius: 8px; background: rgba(255,255,255,.78); color: var(--brand-2); font-size: .64rem; font-weight: 750; }.lesson-title-meta .video-mark { background: #fff1f6; color: var(--video); }
.lesson-hero h1 { max-width: 920px; margin-bottom: .8rem; font-size: clamp(2rem,5vw,4rem); line-height: 1.02; letter-spacing: -.055em; }.lesson-hero p { max-width: 820px; margin-bottom: 0; color: var(--muted); font-size: .82rem; line-height: 1.6; }
.lesson-hero aside { display: grid; justify-items: end; gap: .2rem; min-width: 155px; }.lesson-hero aside > strong { color: var(--brand-2); font-size: 3rem; line-height: 1; }.lesson-hero aside > span { margin-bottom: .8rem; color: var(--muted); font-size: .61rem; }.lesson-hero .wide-check { border-color: #bfd4ef; background: rgba(255,255,255,.72); color: var(--ink); }
.lesson-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 15px; align-items: start; }
.lesson-content { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.lesson-section { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 1.3rem; padding: clamp(22px,4vw,38px); border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }.lesson-section:last-child { border-bottom: 0; }
.section-number { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #edf1ff; color: var(--brand-2); font-weight: 850; }.section-label { margin-bottom: .45rem; color: var(--muted); font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }.lesson-section h2 { margin-bottom: 1rem; font-size: 1.45rem; letter-spacing: -.035em; }.section-intro { color: var(--muted); font-size: .74rem; line-height: 1.55; }
.source-section { background: linear-gradient(145deg,#fff,var(--brand-soft)); }
.primary-resource { display: grid; grid-template-columns: 54px minmax(0,1fr); gap: 1rem; align-items: center; padding: 18px; border: 1px solid #cbdff8; border-radius: 18px; background: white; box-shadow: 0 9px 26px rgba(47,120,236,.08); }
.primary-resource-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--brand); color: white; font-size: .72rem; font-weight: 900; }
.primary-resource.video { border-color: #f1cada; background: #fffafd; }.primary-resource.video .primary-resource-icon { background: var(--video); }
.primary-resource.classic .primary-resource-icon { background: #3978cd; }
.primary-resource small,.primary-resource strong,.primary-resource p { display: block; }.primary-resource small { margin-bottom: .3rem; color: var(--brand-2); font-size: .6rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }.primary-resource strong { font-size: .82rem; line-height: 1.35; }.primary-resource p { margin: .35rem 0 .65rem; color: var(--muted); font-size: .66rem; line-height: 1.5; }.primary-resource a { color: var(--brand-2); font-size: .68rem; font-weight: 850; text-decoration: none; }
.source-note { margin: 10px 0 0; padding: 11px 13px; border-radius: 12px; background: #fff3f7; color: #9b4764; font-size: .63rem; line-height: 1.5; }.source-note.classic-note { background: #f1f6fd; color: #51667f; }
.tech-materials { margin-top: 14px; padding: 15px; border: 1px solid #dbe6f5; border-radius: 15px; background: white; }.tech-materials > strong { display: block; margin-bottom: 10px; font-size: .72rem; }
.material-list { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; margin: 0; padding: 0; list-style: none; }.material-list li { padding: 10px; border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: .69rem; }.material-list li::before { margin-right: .45rem; color: var(--green); content: "□"; }
.callout { margin-top: 14px; padding: 13px 15px; border-left: 3px solid var(--brand-2); border-radius: 0 12px 12px 0; background: #f0f3ff; }.callout strong { font-size: .7rem; }.callout p { margin: .3rem 0 0; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.explanation { display: grid; gap: 8px; }.explanation p { display: grid; grid-template-columns: 24px 1fr; gap: .65rem; margin: 0; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .75rem; line-height: 1.65; }.explanation p:last-child { border-bottom: 0; }.explanation b { display: grid; place-items: center; align-self: start; width: 24px; height: 24px; border-radius: 8px; background: var(--surface-soft); color: var(--brand-2); font-size: .65rem; }
.resource-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-top: 16px; }.resource-card { display: grid; grid-template-columns: 32px 1fr; gap: .7rem; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }.resource-card > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #eef1f7; color: var(--brand-2); font-size: .7rem; }.resource-card strong,.resource-card small { display: block; }.resource-card strong { font-size: .67rem; line-height: 1.35; }.resource-card small { margin-top: .25rem; color: var(--muted); font-size: .56rem; line-height: 1.4; }.resource-card.video-resource { border-color: #f1cada; background: #fff7fa; }.resource-card.video-resource > span { background: #ffe5ee; color: var(--video); }
.task-list { display: grid; gap: 10px; margin: 0; padding: 0; counter-reset: task; list-style: none; }.task-list li { position: relative; min-height: 44px; padding: 11px 12px 11px 48px; border-radius: 12px; background: var(--surface-soft); font-size: .74rem; line-height: 1.55; counter-increment: task; }.task-list li::before { position: absolute; left: 11px; top: 10px; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: var(--brand); color: white; font-size: .62rem; font-weight: 850; content: counter(task); }
.questions { display: grid; gap: 10px; }.question-card { padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface-soft); }.question-card > label:first-child { display: flex; align-items: flex-start; gap: .65rem; font-size: .72rem; font-weight: 720; line-height: 1.45; }.question-card > label:first-child span { display: grid; place-items: center; flex: 0 0 24px; height: 24px; border-radius: 8px; background: var(--brand-2); color: white; font-size: .62rem; }
textarea { width: 100%; min-height: 82px; margin-top: 10px; padding: 11px; resize: vertical; border: 1px solid #d9dee8; border-radius: 10px; background: white; color: var(--ink); font-size: .72rem; outline: none; }textarea:focus { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(49,87,213,.1); }.expected { margin-top: 8px; padding: 10px; border-radius: 9px; background: var(--green-soft); color: #2b6d54; font-size: .64rem; line-height: 1.45; }.mark { display: flex; align-items: center; gap: .45rem; margin-top: 8px; color: var(--muted); font-size: .64rem; font-weight: 700; }.mark input { width: 17px; height: 17px; accent-color: var(--green); }
.check-actions { display: flex; align-items: center; gap: 10px; margin-top: 13px; }.secondary-button,.primary-button,.text-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 13px; border-radius: 11px; cursor: pointer; font-size: .68rem; font-weight: 800; text-decoration: none; }.secondary-button { border: 1px solid var(--line); background: white; color: var(--ink); }.primary-button { border: 1px solid var(--brand); background: var(--brand); color: white; }.text-button { padding: 0; border: 0; background: transparent; color: var(--brand-2); }.score { margin-left: auto; text-align: center; }.score span,.score strong { display: block; }.score span { color: var(--muted); font-size: .57rem; }.score strong { font-size: 1.25rem; }.notes { min-height: 125px; }.review-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 10px; }.review-row span { padding: 10px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .59rem; }.review-row b { display: block; color: var(--brand-2); font-size: .78rem; }
.error-work { margin-top: 18px; padding-top: 17px; border-top: 1px solid var(--line); }.error-work > strong { display: block; font-size: .72rem; }
.homework-section { background: #fbfdff; }.homework-section .section-number { background: var(--green-soft); color: var(--green); }.homework-note { margin: 12px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.5; }
.lesson-sidebar { position: sticky; top: 92px; display: grid; gap: 10px; }.lesson-sidebar > * { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.88); }.lesson-sidebar strong { display: block; font-size: .72rem; }.lesson-sidebar nav button { display: block; width: 100%; padding: 8px 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: .65rem; text-align: left; }.lesson-sidebar p { color: var(--muted); font-size: .64rem; line-height: 1.5; }.lesson-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; }.lesson-pagination a { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); text-decoration: none; }.lesson-pagination a:last-child { text-align: right; }.lesson-pagination span,.lesson-pagination strong { display: block; }.lesson-pagination span { color: var(--muted); font-size: .6rem; }.lesson-pagination strong { margin-top: .25rem; font-size: .7rem; }

.term-progress-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }.term-progress-grid a { padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none; }.term-progress-grid span,.term-progress-grid strong,.term-progress-grid small { display: block; }.term-progress-grid > a > span { color: var(--brand-2); font-size: .65rem; font-weight: 800; }.term-progress-grid strong { margin: .4rem 0 .7rem; font-size: 1.25rem; }.term-progress-grid small { margin-top: .55rem; color: var(--muted); font-size: .58rem; }
.progress-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.progress-panel > header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 17px; border-bottom: 1px solid var(--line); }.progress-panel h2 { margin-bottom: .25rem; font-size: 1.15rem; }.progress-panel p { margin-bottom: 0; color: var(--muted); font-size: .64rem; }.progress-panel > header > span { padding: .4rem .55rem; border-radius: 8px; background: #eef1f8; color: var(--muted); font-size: .63rem; font-weight: 800; }
.subject-progress-list { display: grid; grid-template-columns: repeat(2,1fr); }.subject-progress-row { display: grid; grid-template-columns: 38px minmax(0,1fr) 110px 38px; align-items: center; gap: .75rem; min-height: 68px; padding: 10px 16px; border-bottom: 1px solid var(--line); }.subject-progress-row:nth-child(odd) { border-right: 1px solid var(--line); }.subject-progress-row > i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: color-mix(in srgb,var(--subject),white 85%); color: var(--subject); font-style: normal; font-size: .68rem; font-weight: 850; }.subject-progress-row strong,.subject-progress-row small { display: block; }.subject-progress-row strong { font-size: .68rem; }.subject-progress-row small { margin-top: .2rem; color: var(--muted); font-size: .56rem; }.subject-progress-row .progress-track { height: 6px; }.subject-progress-row .progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--subject); }.subject-progress-row > b { color: var(--subject); font-size: .65rem; text-align: right; }
.data-panel { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-top: 14px; padding: 18px; border-radius: 18px; background: var(--brand); color: white; }.data-panel h2 { margin-bottom: .35rem; font-size: 1.15rem; }.data-panel p { max-width: 650px; margin-bottom: 0; color: rgba(255,255,255,.68); font-size: .66rem; line-height: 1.5; }.data-panel > div:last-child { display: flex; gap: 8px; }.data-panel .secondary-button { border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.09); color: white; }.file-button { position: relative; }.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }

.guide-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 14px; }.guide-steps article,.guide-grid article { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }.guide-steps article > span { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 1.3rem; border-radius: 11px; background: var(--brand); color: white; font-size: .72rem; font-weight: 850; }.guide-steps h2,.guide-grid h2 { margin-bottom: .55rem; font-size: 1rem; }.guide-steps p,.guide-grid p { margin-bottom: 0; color: var(--muted); font-size: .67rem; line-height: 1.55; }
.guide-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 14px; }.guide-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 1.2rem; border-radius: 12px; font-size: .68rem; font-weight: 850; }.guide-icon.video { background: #fff0f5; color: var(--video); }.guide-icon.offline { background: #eaf7f1; color: var(--green); }.guide-icon.ai { background: #edf1ff; color: var(--brand-2); }.guide-grid .secondary-button { margin-top: 1rem; }
.vacation-panel { margin-bottom: 14px; padding: 20px; overflow: hidden; border: 1px solid #cfe1fb; border-radius: 22px; background: linear-gradient(145deg,#f6fbff,#eaf4ff); }
.vacation-panel > header { display: flex; align-items: center; gap: .9rem; margin-bottom: 15px; }.vacation-panel > header > span { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 14px; background: white; font-size: 1rem; box-shadow: 0 7px 18px rgba(47,120,236,.1); }.vacation-panel h2 { margin-bottom: .25rem; font-size: 1.05rem; }.vacation-panel header p { margin-bottom: 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.vacation-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }.vacation-grid article { display: flex; align-items: center; gap: .7rem; min-width: 0; padding: 12px; border: 1px solid #d8e6f7; border-radius: 14px; background: rgba(255,255,255,.82); }.vacation-grid article > span { display: grid; place-items: center; flex: 0 0 30px; height: 30px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-2); font-size: .68rem; font-weight: 850; }.vacation-grid strong,.vacation-grid small { display: block; }.vacation-grid strong { font-size: .68rem; }.vacation-grid small { margin-top: .25rem; color: var(--muted); font-size: .56rem; line-height: 1.35; }
.holiday-row { display: flex; align-items: center; gap: .7rem; margin-top: 9px; padding: 11px 12px; border-radius: 13px; background: rgba(255,255,255,.68); }.holiday-row strong { flex: 0 0 auto; color: var(--brand-2); font-size: .64rem; }.holiday-row span { color: var(--muted); font-size: .61rem; line-height: 1.45; }.first-grade-note { margin: 10px 0 0; color: var(--muted); font-size: .6rem; line-height: 1.45; }
.official-panel { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1rem; padding: 20px; border-radius: 18px; background: #17213a; color: white; }.official-panel h2 { margin-bottom: .45rem; font-size: .9rem; }.official-panel p { margin-bottom: 0; color: rgba(255,255,255,.66); font-size: .64rem; line-height: 1.55; }.official-links { display: grid; align-content: start; gap: 7px; }.official-links a { padding: 9px 11px; border-radius: 10px; background: rgba(255,255,255,.08); color: white; font-size: .62rem; font-weight: 750; text-decoration: none; white-space: nowrap; }

@media (min-width: 1321px) {
  .app-header { position: fixed; inset: 0 auto 0 0; width: 258px; border: 0; border-right: 1px solid var(--line); background: white; backdrop-filter: none; }
  .header-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; width: 100%; height: 100%; min-height: 0; padding: 34px 20px 24px; }
  .brand { margin: 0 8px 52px; }.brand-mark { flex: 0 0 auto; }
  .desktop-nav { display: grid; gap: 7px; justify-content: stretch; }.desktop-nav .nav-link { min-height: 54px; padding: .8rem .9rem; border-radius: 13px; font-size: .78rem; }.desktop-nav .nav-link > span { display: grid; place-items: center; width: 26px; height: 26px; font-size: 1rem; }
  .offline-pill { margin: auto 8px 0; justify-content: center; }
  .page-shell,.site-footer { width: min(1420px,calc(100% - 306px)); margin-left: calc(258px + clamp(24px,3vw,54px)); margin-right: auto; }
  .site-footer { margin-bottom: 40px; }
}

@media (max-width: 1320px) {
  .desktop-nav { display: none; }
  .header-inner { grid-template-columns: 1fr auto; }
  .week-board { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .week-day:last-child { grid-column: 1 / -1; }
  .week-day:last-child .day-lessons { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .mobile-nav { position: fixed; inset: auto 12px 12px; z-index: 50; display: grid; grid-template-columns: repeat(4,1fr); padding: 7px; border: 1px solid rgba(226,230,238,.95); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 18px 50px rgba(27,39,70,.18); backdrop-filter: blur(18px); }
  .mobile-nav .nav-link { flex-direction: column; gap: .15rem; justify-content: center; padding: .55rem .25rem; font-size: .6rem; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .subject-progress-row { grid-template-columns: 38px minmax(0,1fr) 80px 38px; }
}

@media (max-width: 720px) {
  .header-inner, .page-shell { width: min(100% - 24px, 1440px); }
  .header-inner { min-height: 66px; }
  .brand small { display: none; }
  .offline-pill { padding: .45rem .6rem; font-size: .62rem; }
  .page-shell { padding-top: 24px; }
  .week-hero { display: grid; gap: 1.25rem; }
  .week-hero h1 { font-size: 2.45rem; }
  .week-actions { display: grid; grid-template-columns: 44px 1fr 44px; width: 100%; }
  .week-actions .print-button { grid-column: 1 / -1; justify-content: center; }
  .week-progress { grid-template-columns: 1fr auto; }
  .progress-track { grid-column: 1 / -1; grid-row: 2; }
  .week-board { grid-template-columns: 1fr; }
  .week-day:last-child { grid-column: auto; }
  .week-day:last-child .day-lessons { grid-template-columns: 1fr; }
  .week-day { padding: 10px; }
  .week-lesson { min-height: 118px; }
  .lesson-topic { -webkit-line-clamp: 2; }
  .week-note { grid-template-columns: auto 1fr; }
  .week-note a { grid-column: 1 / -1; padding-top: .5rem; }
  .site-footer { display: none; }
  .page-heading { grid-template-columns: 1fr; gap: 1rem; align-items: start; }
  .page-heading h1 { font-size: 2.55rem; }
  .heading-stat { width: 100%; }
  .quarter-tabs { grid-template-columns: repeat(2,1fr); }
  .quarter-tabs a { padding: 10px; }
  .curriculum-note { grid-template-columns: auto 1fr; }
  .curriculum-note > a { grid-column: 1 / -1; padding-left: 42px; }
  .topic-subject-grid { grid-template-columns: 1fr; }
  .subject-topic-card { scroll-margin-top: 74px; }
  .lesson-hero { grid-template-columns: 1fr; padding: 22px; }
  .lesson-hero h1 { font-size: 2.25rem; }
  .lesson-hero aside { justify-items: start; min-width: 0; }
  .lesson-hero aside > strong,.lesson-hero aside > span { display: none; }
  .lesson-section { grid-template-columns: 1fr; gap: .8rem; padding: 20px; }
  .section-number { width: 35px; height: 35px; }
  .material-list,.resource-list { grid-template-columns: 1fr; }
  .check-actions { flex-wrap: wrap; }
  .check-actions .primary-button { width: 100%; order: 3; }
  .lesson-sidebar { grid-template-columns: 1fr; }
  .term-progress-grid { grid-template-columns: repeat(2,1fr); }
  .subject-progress-list { grid-template-columns: 1fr; }
  .subject-progress-row:nth-child(odd) { border-right: 0; }
  .subject-progress-row { grid-template-columns: 38px minmax(0,1fr) 38px; }
  .subject-progress-row .progress-track { grid-column: 2 / -1; grid-row: 2; }
  .data-panel { display: grid; gap: 1rem; }
  .data-panel > div:last-child { flex-wrap: wrap; }
  .guide-steps { grid-template-columns: repeat(2,1fr); }
  .guide-grid,.official-panel { grid-template-columns: 1fr; }
  .vacation-grid { grid-template-columns: repeat(2,1fr); }
  .holiday-row { align-items: flex-start; flex-direction: column; }
  .official-links a { white-space: normal; }
}

@media (max-width: 390px) {
  .brand strong { font-size: .87rem; }
  .brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .offline-pill { display: none; }
  .overline { flex-wrap: wrap; }
  .week-hero h1 { font-size: 2.1rem; }
  .week-day > header { min-height: 58px; }
  .quarter-tabs { grid-template-columns: 1fr; }
  .topic-line { grid-template-columns: 28px minmax(0,1fr) auto; padding-inline: 10px; }
  .topic-video span { display: none; }
  .subject-topic-card summary { grid-template-columns: 38px 1fr auto; padding: 11px; }
  .subject-symbol { width: 38px; height: 38px; }
  .lesson-pagination { grid-template-columns: 1fr; }
  .lesson-pagination a:last-child { text-align: left; }
  .review-row { grid-template-columns: 1fr; }
  .guide-steps { grid-template-columns: 1fr; }
  .vacation-grid { grid-template-columns: 1fr; }
  .primary-resource { grid-template-columns: 42px minmax(0,1fr); padding: 14px; }.primary-resource-icon { width: 42px; height: 42px; border-radius: 13px; font-size: .62rem; }
}

@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }

@media print {
  @page { size: A4 landscape; margin: 8mm; }
  :root { --line: #b8bdc8; }
  body { background: #fff !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .app-header, .mobile-nav, .no-print, .week-progress, .week-note, .toast { display: none !important; }
  .print-only { display: block; }
  .page-shell { width: 100%; padding: 0; }
  .week-hero { margin: 0 0 4mm; }
  .week-hero > div:first-child { display: none; }
  .print-heading { margin: 0 0 4mm; font-size: 9pt; font-weight: 800; }
  .week-board { grid-template-columns: repeat(5,1fr); gap: 2mm; }
  .week-day,.week-lesson { box-shadow: none; break-inside: avoid; }
  .week-day { padding: 2mm; border-radius: 3mm; }
  .week-day:last-child { grid-column: auto; }
  .week-day:last-child .day-lessons { grid-template-columns: 1fr; }
  .week-day > header { min-height: 13mm; padding: 1mm 1.5mm 2mm; }
  .week-day > header p { font-size: 6.5pt; }
  .week-day > header h2 { font-size: 10pt; }
  .week-day > header > span { display: none; }
  .day-lessons { gap: 2mm; padding-top: 2mm; }
  .day-off-card { min-height: 27mm; padding: 2mm; border-radius: 3mm; }
  .day-off-card span { display: none; }.day-off-card strong { font-size: 6.5pt; }.day-off-card small { font-size: 5.5pt; }
  .week-lesson { grid-template-columns: 1fr 6mm; min-height: 27mm; padding: 2.5mm; border-radius: 3mm; }
  .lesson-kicker { font-size: 6.5pt; }
  .lesson-topic { margin-top: 1.5mm; font-size: 6.5pt; line-height: 1.3; -webkit-line-clamp: 3; }
  .lesson-meta { padding-top: 1.5mm; font-size: 5.5pt; }
  .topic-check { width: 5mm; height: 5mm; border-radius: 1.5mm; }
}
