:root {
  color-scheme: light;
  --bg: #f5f7fc;
  --surface: #fff;
  --ink: #17213b;
  --muted: #56627b;
  --border: #e1e7f3;
  --blue: #2449d7;
  --blue-dark: #1b36aa;
  --green: #127455;
  --radius: 19px;
  --shadow: 0 2px 8px rgba(24, 39, 80, .035);
  font: 16px/1.55 Inter, "DejaVu Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #416df7; outline-offset: 4px; }
main:focus { outline: none; }

.shell { min-height: 100vh; display: grid; grid-template-columns: 249px minmax(0, 1fr); }
.sidebar {
  position: sticky; top: 0; align-self: start; height: 100dvh; min-height: 440px;
  display: flex; flex-direction: column; padding: 29px 17px 22px;
  background: #fff; border-right: 1px solid var(--border);
}
.brand { display: flex; width: fit-content; align-items: center; gap: 11px; margin: 0 0 45px 8px; }
.brand-mark {
  display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px;
  background: #2749d7; color: #fff; font: 700 29px/1 Georgia, serif;
}
.brand-name { color: #596581; font-size: .64rem; font-weight: 800; letter-spacing: .12em; line-height: 1.25; }
.brand-name strong { display: block; margin-top: 4px; font-size: .91rem; color: var(--ink); letter-spacing: .04em; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { display: flex; min-height: 46px; align-items: center; gap: 13px; padding: 10px 13px; border-radius: 11px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.sidebar nav a:hover { background: #f3f6fc; color: var(--ink); }
.sidebar nav [aria-current] { color: #2545cb; background: #eaf0ff; }
.side-footer { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--border); color: var(--muted); font-size: .73rem; }
.side-footer p { margin-top: 5px; }
.language { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 700; }
.language-dot, .grade-dot { width: 7px; height: 7px; border-radius: 50%; background: #21845e; }
.text-button { padding: 0; border: 0; background: none; color: var(--blue-dark); font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.reset { margin-top: 10px; }

.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 71px; padding: 0 38px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .72); }
.top-label { font-size: .9rem; font-weight: 750; }
.grade { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 5px 11px; border: 1px solid #dce6f9; border-radius: 999px; background: #f2f6ff; color: #34528c; font-size: .75rem; font-weight: 750; }
.grade-dot { background: #446bea; }
main { max-width: 1360px; margin: 0 auto; padding: 32px 38px 48px; }

.icon { display: inline-block; position: relative; flex: 0 0 auto; width: 18px; height: 18px; color: inherit; }
.icon::before, .icon::after { content: ""; position: absolute; }
.icon-home::before { inset: 6px 2px 1px; border: 1.6px solid currentColor; border-top: 0; border-radius: 1px 1px 3px 3px; }
.icon-home::after { width: 11px; height: 11px; left: 3.5px; top: 3px; border-top: 1.6px solid currentColor; border-left: 1.6px solid currentColor; transform: rotate(45deg); border-radius: 2px; }
.icon-diagnosis::before { inset: 1px 3px; border: 1.6px solid currentColor; border-radius: 3px; }
.icon-diagnosis::after { width: 6px; height: 6px; left: 6px; top: 5px; border-top: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; }
.icon-plan::before { inset: 3px 1px 1px; border: 1.6px solid currentColor; border-radius: 3px; }
.icon-plan::after { inset: 1px 5px auto; height: 7px; border: 1.6px solid currentColor; border-top: 0; }
.icon-topics::before { width: 6px; height: 6px; top: 2px; left: 2px; border-radius: 1px; background: currentColor; box-shadow: 8px 0 currentColor, 0 8px currentColor, 8px 8px currentColor; }
.icon-clock::before { inset: 1px; border: 1.6px solid currentColor; border-radius: 50%; }
.icon-clock::after { height: 5px; width: 4px; top: 4px; left: 8px; border: 1.6px solid currentColor; border-top: 0; border-right: 0; }
.icon-check::before { top: 3px; left: 6px; width: 6px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }

.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center;
  min-height: 334px; padding: 37px 42px; border-radius: 24px; color: #fff;
  background: linear-gradient(111deg, #203cae 0%, #294dd2 58%, #4d6ae8 100%);
  box-shadow: 0 10px 25px rgba(38, 68, 180, .14);
}
.hero-content { position: relative; z-index: 1; max-width: 63%; }
.hero-chip { display: inline-block; padding: 5px 11px; border: 1px solid #aabaff80; border-radius: 999px; background: #f1f4ff15; font-size: .72rem; font-weight: 700; }
.hero h1 { margin-top: 15px; max-width: 610px; font-size: clamp(2.02rem, 3.45vw, 3.27rem); line-height: 1.12; font-weight: 820; letter-spacing: -.043em; text-wrap: balance; }
.hero p { margin-top: 13px; max-width: 490px; color: #eef1ff; font-size: clamp(.9rem, 1.2vw, 1rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 23px; }
.hero-art { pointer-events: none; position: absolute; width: 37%; height: 100%; top: 0; right: 0; overflow: hidden; }
.hero-art::before { content: ""; position: absolute; inset: 0; opacity: .33; background-image: linear-gradient(#b7c6ff55 1px, transparent 1px), linear-gradient(90deg, #b7c6ff55 1px, transparent 1px); background-size: 27px 27px; mask-image: linear-gradient(90deg, transparent, black 35%); }
.orbit { position: absolute; border: 1px solid #bdcaff63; border-radius: 50%; }
.orbit-a { width: 262px; height: 262px; top: calc(50% - 131px); left: calc(54% - 131px); }
.orbit-b { width: 207px; height: 207px; top: calc(50% - 103px); left: calc(54% - 103px); border-style: dashed; opacity: .8; }
.art-axis { position: absolute; background: #b7c6ff4d; }
.axis-h { height: 1px; inset: 50% 0 auto 10%; }
.axis-v { width: 1px; inset: 0 auto 0 54%; }
.math-tile {
  position: absolute; display: grid; place-content: center; min-width: 60px; min-height: 60px;
  border: 1px solid #ffffffb0; border-radius: 21px; box-shadow: 0 12px 24px #162b8b55;
  font: 700 40px/1 Georgia, serif; color: #263db5; background: #f1f5ff;
}
.tile-fraction { top: 28%; left: 24%; min-width: 101px; min-height: 108px; transform: rotate(-13deg); font-size: 31px; text-align: center; }
.tile-fraction span:first-child { border-bottom: 2px solid; padding: 0 9px 3px; }
.tile-fraction span:last-child { padding-top: 2px; }
.tile-percent { top: 20%; left: 58%; min-width: 76px; min-height: 76px; transform: rotate(13deg); color: #075640; background: #baf2da; }
.tile-angle { top: 59%; left: 57%; min-width: 68px; min-height: 68px; transform: rotate(-9deg); color: #2d2a8c; background: #e0d9ff; font-size: 45px; }
.art-spark, .art-dot { position: absolute; color: #c2d4ff; font-weight: 700; }
.spark-a { top: 19%; left: 23%; font-size: 21px; }
.spark-b { top: 68%; left: 23%; font-size: 25px; }
.art-dot { width: 8px; height: 8px; border-radius: 50%; background: #c6d3ff; }
.dot-a { top: 14%; left: 57%; }.dot-b { top: 52%; left: 85%; width: 5px; height: 5px; background: #aef2d5; }

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: 11px; min-height: 44px; padding: 10px 15px;
  border: 1px solid transparent; border-radius: 10px; font-size: .83rem; line-height: 1.35; font-weight: 780;
  text-align: center; transition: background .15s, color .15s;
}
.primary { color: #fff; background: var(--blue); }
.primary:hover { background: var(--blue-dark); }
.secondary { color: #263757; border-color: var(--border); background: #fff; }
.secondary:hover:not(:disabled) { background: #f2f5fc; }
.secondary:disabled { color: #727d94; background: #f5f7fa; }
.hero-button { color: #263eac; background: #fff; }
.hero-button:hover { background: #ecf2ff; }
.hero-secondary { color: #fff; border-color: #cad5ff90; background: #ffffff14; }
.hero-secondary:hover { background: #ffffff2e; }
.hero .button:focus-visible { outline-color: #dce7ff; }
.plain { min-height: 38px; padding: 6px 0; border: 0; color: var(--blue-dark); }
.plain:hover { text-decoration: underline; }
.danger { color: #fff; background: #a52e3c; }
.danger:hover { background: #862230; }

.course-section, .bottom-section { margin-top: 28px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-heading h2, .week h2 { font-size: 1.21rem; letter-spacing: -.023em; }
.stats, .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat, .steps article, .card, .day-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { min-width: 0; min-height: 94px; padding: 15px; display: flex; align-items: center; gap: 11px; }
.stat div { display: grid; gap: 1px; min-width: 0; }
.stat strong { font-size: 1.22rem; white-space: nowrap; line-height: 1.2; letter-spacing: -.04em; }
.stat div > span { color: var(--muted); font-size: .78rem; }
.stat .denominator { color: var(--muted); font-size: .88rem; letter-spacing: -.01em; }
.stat .meter { width: 21%; max-width: 75px; margin-left: auto; min-width: 18px; }
.stat-icon, .step-icon, .topic-icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 11px; }
.blue { background: #eaf0ff; color: #2b4bce; }
.purple { background: #eee9ff; color: #5944ad; }
.green { background: #e4f7ee; color: #126c50; }
.gold { background: #fff2d7; color: #805316; }
.steps article { padding: 18px; }
.steps h3 { margin-top: 11px; font-size: .94rem; }
.steps p { margin-top: 4px; color: var(--muted); font-size: .82rem; }

.page { width: 100%; }
.narrow { max-width: 765px; margin: 0 auto; }
.page-heading { margin-bottom: 18px; }
.page-heading h1 { font-size: clamp(1.85rem, 3.4vw, 2.65rem); font-weight: 810; letter-spacing: -.042em; line-height: 1.15; }
.page-heading p { margin-top: 7px; color: var(--muted); font-size: .93rem; max-width: 670px; }
.meter { display: block; appearance: none; width: 100%; height: 7px; border: 0; border-radius: 99px; background: #e8edf8; overflow: hidden; }
.meter::-webkit-progress-bar { background: #e8edf8; border-radius: 99px; }
.meter::-webkit-progress-value { background: #4165ed; border-radius: 99px; }
.meter::-moz-progress-bar { background: #4165ed; border-radius: 99px; }
.quiz, .lesson-theory { margin-top: 17px; padding: clamp(17px, 3vw, 29px); }
.quiz-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--muted); font-size: .83rem; font-weight: 700; }
.topic-chip { display: inline-flex; width: fit-content; padding: 4px 9px; border-radius: 999px; font-size: .73rem; font-weight: 750; }
fieldset { min-width: 0; padding: 0; border: 0; margin: 19px 0 0; }
legend { padding: 0; font-size: clamp(1.16rem, 2.7vw, 1.63rem); line-height: 1.35; font-weight: 790; }
legend:focus { outline: none; }
.field-note { margin-top: 7px; color: var(--muted); font-size: .87rem; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 13px; }
.option { position: relative; display: flex; align-items: center; min-height: 54px; gap: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: #f8faff; font-weight: 730; cursor: pointer; }
.option:hover { border-color: #a9b8ed; }
.option:has(:checked) { border-color: #4266ec; background: #edf2ff; box-shadow: inset 0 0 0 1px #4266ec; }
.option:has(:focus-visible) { outline: 3px solid #416df7; outline-offset: 3px; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option-letter { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 auto; border-radius: 7px; background: #ebf0fa; color: #455678; font-size: .76rem; }
.option:has(:checked) .option-letter { color: #fff; background: var(--blue); }
.quiz-actions, .dialog-actions { display: flex; justify-content: space-between; gap: 9px; margin-top: 22px; }
.result-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding: 20px; border: 1px solid #d9e3ff; border-radius: var(--radius); background: #edf2ff; }
.result-banner strong { font-size: clamp(1.25rem, 2.8vw, 1.9rem); letter-spacing: -.04em; }
.result-banner p { margin-top: 3px; color: #435477; font-size: .9rem; }
.result-banner .button { flex-shrink: 0; }
.scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.scores.compact { grid-template-columns: repeat(3, 1fr); }
.score-card { padding: 14px; min-width: 0; }
.score-head, .score-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.score-head h3 { flex: 1 1 auto; font-size: .93rem; line-height: 1.2; }
.score-head strong { white-space: nowrap; font-size: .85rem; }
.topic-icon { width: 34px; height: 34px; font-size: .9rem; font-weight: 800; }
.score-card .meter { margin: 11px 0 6px; }
.score-1::-webkit-progress-value { background: #bb6a30; }
.score-1::-moz-progress-bar { background: #bb6a30; }
.score-3::-webkit-progress-value { background: #1f8b68; }
.score-3::-moz-progress-bar { background: #1f8b68; }
.score-foot { color: var(--muted); font-size: .71rem; flex-wrap: wrap; }
.answer-review { margin-top: 16px; padding: 15px 18px; }
summary { cursor: pointer; font-weight: 730; }
.answer-review ol { margin-bottom: 0; padding-left: 25px; }
.answer-review li { padding: 8px 0; font-size: .9rem; }
.answer-review p { color: var(--muted); }

.empty { text-align: center; padding: 32px 18px; }
.empty h2 { margin-top: 9px; font-size: 1.23rem; }
.empty p { margin: 6px 0 15px; color: var(--muted); }
.route-progress { display: flex; gap: 14px; align-items: center; padding: 14px; font-size: .83rem; }
.route-progress strong { flex-shrink: 0; }
.week { margin-top: 19px; }
.week h2 { margin-bottom: 9px; }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.day-card { display: flex; flex-direction: column; min-height: 106px; gap: 4px; border-radius: 13px; padding: 10px; }
.day-card:hover { border-color: #91a6f7; background: #f8faff; }
.day-card.active { border-color: #839df6; background: #edf2ff; }
.day-card.done { background: #f1fbf6; border-color: #bce6d4; }
.day-number { display: flex; align-items: center; justify-content: space-between; min-height: 17px; font-size: .69rem; color: #485d8b; font-weight: 800; }
.day-card.done .day-number { color: var(--green); }
.day-card strong { font-size: .8rem; line-height: 1.25; overflow-wrap: anywhere; }
.day-status { color: var(--muted); font-size: .68rem; margin-top: auto; }

.back-link { margin: -5px 0 11px; }
.page-heading .lesson-kicker { margin: 0 0 4px; color: var(--blue-dark); font-weight: 760; }
.lesson-theory h2, .assignment-title { font-size: 1.19rem; letter-spacing: -.02em; }
.theory-title { display: flex; align-items: center; gap: 8px; }
.lesson-theory p { margin-top: 7px; font-size: .9rem; }
.worked-example { padding: 9px 12px; border-radius: 8px; background: #f0f4ff; }
.lesson-theory details { margin-top: 8px; color: #34466b; font-size: .9rem; }
.assignment-title { margin: 21px 0 8px; }
.task-list { display: grid; gap: 10px; }
.task-card { padding: 16px 18px; }
.task-heading { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--muted); font-weight: 760; }
.task-card h3 { margin-top: 4px; font-size: 1.02rem; }
.answer-form { margin-top: 11px; }
.answer-form label { display: block; margin-bottom: 4px; font-size: .76rem; font-weight: 730; }
.answer-row { display: flex; gap: 8px; }
.answer-row input { width: min(100%, 250px); min-width: 0; height: 44px; padding: 7px 10px; border: 1px solid #becbe4; border-radius: 8px; color: var(--ink); background: #fbfcff; }
.answer-row input[readonly] { border-color: #9ed4be; background: #eef9f3; color: #135e46; }
.answer-row input::placeholder { color: #5d6c88; font-size: .82rem; }
.feedback { margin-top: 6px; font-size: .84rem; font-weight: 740; }
.feedback:empty { margin: 0; }
.feedback.correct { color: var(--green); }
.feedback.incorrect, .feedback.invalid { color: #a3333f; }
.help { display: grid; gap: 3px; margin-top: 7px; font-size: .81rem; color: #435480; }
.help p { margin-left: 12px; }
.completion { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 13px 16px; margin-top: 15px; border-radius: 13px; background: #e1f7ed; color: #145d48; }
.completion div { display: flex; align-items: center; gap: 6px; }
.completion h2 { font-size: 1.03rem; }
.storage-message { padding: 10px; margin-bottom: 12px; border-radius: 8px; color: #644414; background: #fff1cb; }

dialog { max-width: min(450px, calc(100vw - 26px)); border: 1px solid var(--border); border-radius: 16px; padding: 22px; color: var(--ink); box-shadow: 0 16px 70px #14255045; }
dialog::backdrop { background: #17254b70; }
dialog h2 { font-size: 1.19rem; }
dialog p { margin-top: 6px; color: var(--muted); font-size: .89rem; }
.dialog-actions { justify-content: flex-end; flex-wrap: wrap; }

@media (max-width: 1130px) {
  .shell { grid-template-columns: 210px minmax(0, 1fr); }
  .sidebar { padding-inline: 12px; }
  .topbar, main { padding-inline: 25px; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { min-height: 303px; padding-inline: 29px; }
  .hero-art { width: 36%; }
  .tile-fraction { left: 17%; }
  .tile-percent, .tile-angle { left: 58%; }
}

@media (max-width: 830px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; min-height: 0; padding: 13px 19px 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: 0 0 11px; }
  .brand-mark { width: 37px; height: 37px; border-radius: 10px; font-size: 24px; }
  .sidebar nav { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .sidebar nav a { justify-content: center; font-size: .79rem; gap: 7px; padding: 7px 5px; }
  .side-footer { display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 7px; padding: 6px 0; font-size: .65rem; }
  .side-footer p, .reset { margin: 0; }
  .reset { margin-left: auto; }
  .topbar { min-height: 47px; padding-inline: 19px; }
  main { padding: 18px 19px 33px; }
  .hero { min-height: 275px; }
  .hero-content { max-width: 68%; }
}

@media (max-width: 540px) {
  .sidebar { padding-inline: 10px; }
  .sidebar nav a { font-size: .68rem; gap: 3px; min-height: 39px; }
  .sidebar nav .icon { transform: scale(.82); }
  .topbar { padding-inline: 12px; min-height: 42px; }
  .top-label, .grade { font-size: .68rem; }
  main { padding: 12px 11px 25px; }
  .hero { min-height: 0; padding: 20px 16px 22px; border-radius: 15px; }
  .hero-content { max-width: 100%; }
  .hero h1 { font-size: clamp(1.65rem, 8vw, 2.25rem); max-width: 13ch; }
  .hero p { max-width: 34ch; }
  .hero-art { opacity: .24; width: 56%; }
  .math-tile { display: none; }
  .hero-chip { font-size: .65rem; }
  .hero-actions { margin-top: 14px; }
  .course-section, .bottom-section { margin-top: 20px; }
  .stats { gap: 5px; }
  .stat { display: grid; gap: 5px; padding: 8px; min-height: 91px; border-radius: 12px; }
  .stat strong { font-size: .95rem; }
  .stat div > span { font-size: .66rem; }
  .stat .denominator { font-size: .7rem; }
  .stat .meter { display: none; }
  .stat-icon { width: 26px; height: 26px; border-radius: 6px; }
  .stat-icon .icon { transform: scale(.82); }
  .steps { grid-template-columns: 1fr; gap: 7px; }
  .steps article { display: grid; grid-template-columns: 31px 1fr; gap: 2px 8px; padding: 9px; border-radius: 12px; }
  .steps .step-icon { width: 31px; height: 31px; grid-row: span 2; }
  .steps h3, .steps p { margin: 0; }
  .steps p { font-size: .76rem; }
  .scores, .scores.compact { grid-template-columns: 1fr; gap: 7px; }
  .result-banner { align-items: flex-start; flex-direction: column; }
  .days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .day-card { min-height: 82px; }
  .route-progress { flex-wrap: wrap; gap: 5px; }
  .quiz, .lesson-theory { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

.top-actions { display:flex; align-items:center; justify-content:space-between; gap:9px; }
.language-switch { display:inline-flex; gap:3px; padding:3px; border:1px solid var(--border); border-radius:11px; background:#f0f4ff; }
.language-switch button { padding:5px 9px; min-height:36px; border:0; border-radius:8px; color:#354d83; background:transparent; font-size:.77rem; font-weight:750; }
.language-switch button[aria-pressed="true"] { color:#fff; background:var(--blue); }
.topic-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
.topic-grid .day-card { min-height:88px; padding:11px; }
.topic-grid .day-card strong { font-size:.9rem; }
.topic-grid .day-status { font-size:.74rem; }
.utility { padding:16px 18px; margin-top:15px; }
.utility h2 { font-size:1.08rem; }
.utility p,.source-note,.small-progress { color:var(--muted); font-size:.86rem; }
.utility p { margin:5px 0 11px; }
.utility .meter { margin-bottom:12px; }
.source-note { margin-top:14px; }
.source-note a { color:var(--blue-dark); text-decoration:underline; }
.small-progress { margin:4px 0 6px; font-weight:700; }
.section-links { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.section-links .button { min-height:36px; padding:6px 9px; }
.section-links [aria-current="step"] { border-color:#809af1; color:#2444bb; background:#ebf0ff; }
.level-section { margin-top:18px; }
.level-section>h3 { margin:0 0 7px; font-size:1rem; scroll-margin-top:14px; color:#2c488c; }
.exercise-id { padding:2px 5px; border-radius:5px; background:#edf2ff; color:#345594; font-size:.74rem; }
.answer-form>.button { margin-top:7px; }
.solution { margin-top:8px; font-size:.87rem; color:#435480; }
.solution p { margin-top:5px; }
.feedback.format { color:#a3333f; }
.quiz h2 { font-size:clamp(1.14rem,2.5vw,1.43rem); line-height:1.4; margin-top:10px; }
.quiz-footer { display:flex; justify-content:space-between; gap:10px; margin-top:7px; font-size:.84rem; }
.result-group { padding:12px 15px; margin:9px 0; }
.result-group .scores { margin-top:11px; }
.result-group>p { margin:8px 0; color:var(--muted); font-size:.85rem; }
.report-quarter { padding-top:6px; margin-top:8px; border-top:1px solid var(--border); }
.report-quarter ul { padding-left:20px; }
.report-quarter li { margin-bottom:8px; }
.report-quarter li p { color:var(--muted); font-size:.82rem; }
.plan-price h2 { font-size:1.34rem; }
.file-button { cursor:pointer; position:relative; }
.file-button:focus-within { outline:3px solid #416df7; outline-offset:3px; }
.file-button input { position:absolute; inset:0; opacity:0; width:100%; cursor:pointer; }

.task-table { border-collapse:collapse; margin:8px 0; font-size:.84rem; text-align:center; }
.task-table td,.task-table th { padding:5px 8px; border:1px solid #c9d6ee; }
.task-table th { background:#eff4ff; }
.cube-net { display:grid; width:fit-content; grid-template-columns:repeat(4,23px); grid-template-rows:repeat(3,23px); margin:8px 0; }
.cube-net i { border:1px solid #466ae6; background:#e5edff; }
.bar-figure,.line-figure { border:1px solid #cbd8ef; border-radius:8px; margin:8px 0; }
.bar-figure { width:fit-content; display:flex; align-items:flex-end; gap:12px; padding:6px 9px; }
.bar-figure>div { display:flex; flex-direction:column; align-items:center; gap:2px; font-size:.72rem; }
.bar-figure i { display:block; width:26px; border-radius:3px 3px 0 0; background:#476bea; }
.line-figure { position:relative; width:196px; height:113px; background:repeating-linear-gradient(to bottom,#fff 0 14px,#e8eefb 14px 15px); }
.line-figure i { position:absolute; height:2px; background:#466ae6; transform-origin:left; }
.line-figure span { position:absolute; width:7px; height:7px; transform:translate(-50%,-50%); border-radius:50%; background:#2646bd; }
.line-figure span b { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); font-size:.71rem; color:#263757; background:#fff; }
.line-figure small { position:absolute; bottom:2px; transform:translateX(-50%); font-size:.72rem; }
@media (max-width:830px) { .topic-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:540px) {
  .top-label { display:none; }
  .top-actions { width:100%; padding-block:3px; }
  .hero h1 { max-width:20ch; }
  .topic-grid { gap:6px; }
  .topic-grid .day-card { padding:8px; min-height:83px; }
  .topic-grid .day-card strong { font-size:.79rem; }
  .topic-grid .day-status { font-size:.68rem; }
  .option { gap:5px; padding:6px; font-size:.82rem; }
}

.program-picker { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:15px; }
.program-picker a { display:flex; align-items:center; flex:1 1 220px; padding:9px 12px; min-height:44px; font-size:.87rem; font-weight:750; color:#385282; background:#fff; border:1px solid var(--border); border-radius:10px; }
.program-picker a[aria-current="true"] { color:#223ea6; background:#e7eeff; border-color:#a8b9f6; }
.program-picker a:hover { border-color:#718be0; }
.diagnostic-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.diagnostic-card { display:flex; flex-direction:column; align-items:flex-start; padding:16px; gap:10px; }
.diagnostic-card h2 { font-size:1.08rem; }
.diagnostic-card p, .quarter-locked p { font-size:.87rem; color:var(--muted); }
.diagnostic-card .button { margin-top:auto; }
.quarter-locked { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:9px; padding:12px; }
@media (max-width:540px) {
  .program-picker a { flex-basis:100%; padding:7px 9px; min-height:38px; font-size:.81rem; }
  .diagnostic-grid { grid-template-columns:1fr; }
}

.icon-olympiad::before { inset: 1px 4px 5px; border: 1.6px solid currentColor; border-radius: 2px 2px 6px 6px; }
.icon-olympiad::after { left: 5px; right: 5px; bottom: 1px; height: 4px; border-bottom: 1.6px solid currentColor; border-radius: 2px; }
.olymp-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 22px; }
.olymp-tabs a { padding: 8px 12px; border-radius: 10px; font-size: .86rem; font-weight: 740; color: var(--muted); }
.olymp-tabs a:hover, .olymp-tabs [aria-current] { background: #e7eeff; color: var(--blue-dark); }
.olymp-hero { padding: clamp(22px,4vw,40px); border: 1px solid #d4e0fb; border-radius: 22px; background: linear-gradient(115deg,#e8efff,#f7faff 63%,#edf8f5); }
.olymp-hero h1 { font-size: clamp(1.72rem,4vw,2.7rem); line-height: 1.16; letter-spacing: -.04em; }
.olymp-hero p { color: var(--muted); margin-top: 10px; }
.olymp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 17px; }
.olymp-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.olymp-panels { margin-top: 15px; }
.olymp-panel, .olymp-entry { padding: 17px 19px; min-width: 0; }
.olymp-panel h2, .olymp-entry h2, .olymp-entry h3 { font-size: 1.08rem; line-height: 1.35; }
.olymp-panel p, .olymp-entry p { margin-top: 4px; color: var(--muted); font-size: .87rem; }
.olymp-panel-number { display: block; color: var(--blue-dark); font-size: 1.38rem; font-weight: 780; margin-bottom: 4px; }
.olymp-panel:hover, .olymp-study:hover { border-color: #a4b7ee; background: #fafdff; }
.olymp-progress { margin-top: 15px; padding: 16px 19px; display: grid; gap: 8px; }
.olymp-progress .meter { width: 100%; }
.olymp-filters { padding: 14px; margin: 0 0 13px; display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.olymp-filters label { min-width: min(132px,100%); flex: 1 1 150px; display: grid; gap: 4px; font-size: .81rem; font-weight: 730; }
.olymp-filters select, .olymp-filters input, .olymp-answer { width: 100%; min-width: 0; min-height: 43px; padding: 6px 9px; border: 1px solid #aebbd8; border-radius: 9px; font: inherit; background: #fff; color: var(--ink); }
.olymp-filters .button { min-height: 43px; }
.olymp-note { margin-bottom: 9px; color: var(--muted); font-size: .88rem; }
.olymp-empty { padding: 15px; color: var(--muted); }
.olymp-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 9px; color: var(--muted); font-size: .79rem; margin-bottom: 7px; }
.olymp-entry-meta strong { color: var(--blue-dark); }
.olymp-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.olymp-links a { border: 1px solid #d7e2f7; border-radius: 9px; color: var(--blue-dark); padding: 5px 9px; font-size: .82rem; font-weight: 700; }
.olymp-links a:hover { background: #eef3ff; }
.olymp-links small { color: var(--muted); white-space: nowrap; margin-left: 2px; }
.olymp-source { margin-top: 9px; font-size: .78rem; }
.olymp-source a, .olymp-original a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.olymp-original { margin: 0 0 12px; }
.olymp-solved { display: inline-block; margin-top: 5px; color: var(--green); font-size: .84rem; }
.olymp-week { margin-top: 16px; }
.olymp-week > h2 { font-size: 1.12rem; margin-bottom: 7px; }
.olymp-narrow { max-width: 830px; }
.olymp-lesson { padding: 18px 20px; margin: 13px 0; }
.olymp-lesson h2, .olymp-exercise h2, .olymp-exercise h3 { font-size: 1.03rem; line-height: 1.4; }
.olymp-lesson p + h2 { margin-top: 13px; }
.olymp-lesson p, .olymp-exercise p { margin-top: 5px; }
.olymp-task-list { display: grid; gap: 12px; }
.olymp-exercise { min-width: 0; margin: 0; padding: 15px 17px; }
.olymp-exercise legend { margin-left: -3px; padding: 0 5px; color: var(--ink); font-weight: 780; font-size: .9rem; }
.olymp-check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.olymp-answer { width: min(170px,100%); }
fieldset.olymp-exercise > .olymp-answer { display: block; margin-top: 10px; }
.olymp-feedback { min-height: 1em; color: var(--muted); font-size: .86rem; font-weight: 720; }
.olymp-feedback.correct { color: var(--green); }
.olymp-feedback.incorrect, .olymp-feedback.format { color: #a33424; }
.olymp-details { margin-top: 7px; }
.olymp-details summary { color: var(--blue-dark); cursor: pointer; font-weight: 720; font-size: .91rem; width: fit-content; }
.olymp-details p { color: var(--muted); }
.olymp-options { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.olymp-options label { display: inline-flex; align-items: center; min-height: 43px; gap: 4px; padding: 5px 9px; border: 1px solid #d7e2f7; border-radius: 9px; cursor: pointer; }
.olymp-options label:has(:checked) { border-color: #6e8ae3; background: #eef3ff; }
.olymp-options input { accent-color: var(--blue); }
.olymp-score { border-color: #9dcfbf; background: #f5fcf9; }
.olymp-score ul { margin-bottom: 0; padding-left: 20px; }
@media (max-width:540px) {
  .olymp-grid { grid-template-columns: minmax(0,1fr); }
  .olymp-tabs { gap: 4px; }
  .olymp-tabs a { padding: 6px 7px; font-size: .77rem; }
  .olymp-filters label { flex-basis: 130px; }
  .olymp-filters .button { width: 100%; }
}

.bank-hero { background: linear-gradient(112deg,#172b45,#1d4350 70%,#28595c); color:#fff; }
.bank-hero p { color:#d9ecec; }
.bank-hero .meter { margin-top: 12px; width: min(340px,100%); }
.bank-class-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px; margin-top:16px; }
.bank-grade { display:block; font-size:2.4rem; font-weight:800; color:#1d5262; line-height:1; margin-bottom:8px; }
.bank-top { display:flex; align-items:center; flex-wrap:wrap; gap:12px; justify-content:space-between; margin-bottom:12px; }
.bank-top nav { display:flex; flex-wrap:wrap; gap:5px; }
.bank-top nav a { display:grid; place-items:center; width:36px; height:36px; border:1px solid #ccd9e6; border-radius:8px; }
.bank-top nav a[aria-current] { background:#214a59; border-color:#214a59; color:#fff; }
.bank-tabs { margin-top:13px; }
.bank-task { max-width: 900px; }
.bank-task .button { margin-top: 8px; }
.bank-answer { display:grid; gap:4px; font-size:.85rem; font-weight:700; }
.bank-answer .olymp-answer { width:min(260px,100%); }
.bank-timer { position:sticky; top:0; z-index:2; width:fit-content; margin:0 0 12px; padding:7px 13px; border-radius:8px; background:#214a59; color:white; font-variant-numeric:tabular-nums; }
.olymp-exercise ul, .olymp-exercise ol { padding-left: 24px; }

.portal { min-height:100vh; }
.portal-top { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px clamp(16px,5vw,64px); background:white; border-bottom:1px solid var(--border); }
.portal-top .brand { margin:0; }
.portal-top .top-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; }
.portal-main { max-width:1170px; padding-top:24px; }
.portal-hero { display:grid; grid-template-columns:1fr auto; gap:24px; align-items:center; padding:clamp(24px,5vw,52px); border-radius:22px; background:#eaf0ff; border:1px solid #d4e1fb; }
.portal-hero h1 { margin:5px 0 8px; font-size:clamp(1.85rem,5.8vw,3.3rem); line-height:1.12; letter-spacing:-.045em; }
.portal-hero p { max-width:580px; color:var(--muted); }
.portal-hero .portal-eyebrow { font-size:.83rem; font-weight:750; color:var(--blue-dark); }
.portal-hero-art { display:flex; align-items:center; gap:7px; }
.portal-hero-art span { display:grid; place-items:center; min-width:43px; height:55px; background:white; border:1px solid #c9d7fb; border-radius:12px; font-size:1.5rem; color:var(--blue-dark); font-weight:700; }
.portal-grades { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:9px; margin:16px 0; }
.portal-grade { display:flex; flex-direction:column; gap:3px; padding:12px; min-width:0; }
.portal-grade:hover,.portal-grade[aria-current] { border-color:#7c96ec; background:#f2f6ff; }
.portal-grade-number { font-size:1.55rem; line-height:1; color:var(--blue-dark); font-weight:800; }
.portal-grade > span:not(:first-child) { font-size:.76rem; line-height:1.4; color:var(--muted); }
.portal-grade .portal-access { margin-top:auto; }
.portal-access.active { color:var(--green)!important; font-weight:760; }
.portal-columns { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(260px,1fr); align-items:start; gap:14px; }
.portal-sample,.portal-subscribe { padding:clamp(15px,3.5vw,24px); min-width:0; }
.portal-heading h2 { margin:8px 0 3px; }
.portal-sample h3 { margin-top:15px; font-size:1rem; }
.portal-sample h3+p { margin-top:4px; }
.portal-sample form { margin-top:14px; }
.portal-subscribe ul { margin:12px 0 17px; padding-left:21px; }
.portal-subscribe .button { margin:5px 0; }
.portal-note,.portal-account,.portal-heading p { color:var(--muted); font-size:.88rem; margin:7px 0; }
.portal-warning { padding:12px 16px; margin-bottom:14px; }
.portal-plans { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr)); gap:9px; }
.portal-admin { display:grid; gap:15px; }
.portal-table { overflow-x:auto; }
.portal-table table { border-collapse:collapse; width:100%; }
.portal-table th,.portal-table td { padding:8px; border-bottom:1px solid var(--border); text-align:left; white-space:nowrap; }
@media(max-width:850px) { .portal-grades { grid-template-columns:repeat(4,minmax(0,1fr)); } }
@media(max-width:600px) {
  .portal-top { align-items:flex-start; }
  .portal-top .brand-mark { width:35px;height:35px; }
  .portal-top .top-actions { gap:4px; }
  .portal-top .button { min-height:34px; padding:5px 7px; }
  .portal-columns { grid-template-columns:1fr; }
  .portal-hero-art { display:none; }
  .portal-grades { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .portal-grade { padding:10px; }
}

.portal-tariff { display:grid; gap:3px; align-content:start; padding:11px; border:1px solid var(--border); border-radius:11px; }
.portal-tariff span { color:var(--muted); font-size:.84rem; }
.portal-tariff strong { color:var(--blue-dark); font-size:1.1rem; }
.portal-tariff .button { justify-self:start; }
.portal-order { display:grid; gap:7px; border:1px solid var(--border); border-radius:11px; padding:12px; margin-top:9px; overflow-wrap:anywhere; }
.portal-order .button { justify-self:start; }
.portal-confirm-fields { display:flex; align-items:end; flex-wrap:wrap; gap:9px; }
.portal-confirm-fields label { display:grid; gap:3px; font-size:.84rem; }

.owner-heading { margin-top:16px; }
.owner-tabs,.owner-class-links,.owner-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.owner-class-links { margin:12px 0 18px; }
.owner-class-links .button { min-height:36px; padding:5px 12px; }
.owner-student-layout { display:grid; grid-template-columns:minmax(210px,1fr) minmax(0,2fr); gap:14px; align-items:start; }
.owner-student-layout > div { min-width:0; }
.owner-section h2 { overflow-wrap:anywhere; }
.owner-section .olymp-answer { width:100%; max-width:100%; min-height:40px; }
.owner-section label,.owner-grade-field { display:grid; gap:3px; font-weight:650; font-size:.88rem; }
.owner-grade-field { width:max-content; max-width:100%; }
.owner-fields { display:flex; flex-wrap:wrap; align-items:end; gap:8px; }
.owner-fields label { flex:1 1 145px; min-width:0; }
.owner-students { list-style:none; padding:0; margin:12px 0; }
.owner-student { display:flex; justify-content:space-between; align-items:start; gap:8px; width:100%; border:0; border-bottom:1px solid var(--border); text-align:left; padding:10px 6px; background:white; cursor:pointer; font:inherit; color:inherit; }
.owner-student:hover,.owner-student[aria-pressed="true"] { background:#edf2ff; border-radius:7px; }
.owner-student span { min-width:0; overflow-wrap:anywhere; }
.owner-student small,.owner-student time { color:var(--muted); font-size:.8rem; }
.owner-student small { display:block; }
.owner-student time { flex-shrink:0; }
.owner-program { border-top:1px solid var(--border); margin-top:16px; padding-top:3px; }
.owner-quarter summary { display:flex; flex-wrap:wrap; gap:4px 12px; justify-content:space-between; }
.owner-quarter .portal-table th:nth-child(1) { white-space:normal; }
.owner-answers { padding-left:22px; }
.owner-answers li { margin-bottom:14px; overflow-wrap:anywhere; }
.owner-answers p { margin:3px 0; }
.owner-settings { display:grid; gap:10px; max-width:680px; }
.owner-settings .owner-check { display:flex; align-items:center; gap:7px; }
.owner-settings fieldset { min-width:0; border:1px solid var(--border); border-radius:10px; padding:10px; }
.owner-settings legend { padding:0 4px; font-weight:650; }
.owner-section [role="status"]:empty { display:none; }
.class-switch { display:flex; align-items:center; gap:5px; font-size:.86rem; font-weight:650; }
.class-switch select { font:inherit; color:inherit; min-height:36px; border:1px solid var(--border); border-radius:8px; background:white; padding:4px; }
@media(max-width:740px) {
  .owner-student-layout { grid-template-columns:1fr; }
  .owner-student-layout:has(#owner-student-title) > div { grid-row:1; }
  .topbar:has(.class-switch) .top-actions { flex-wrap:wrap; justify-content:flex-end; }
}

.lesson-theory p, .worked-example p, .portal-sample .portal-heading ~ p { white-space:pre-line; }

.diagnostic-report-card { margin:18px 0; padding:clamp(16px,3vw,26px); }
.diagnostic-report { overflow-wrap:anywhere; }
.diagnostic-report > h2,.diagnostic-report > h3 { margin:16px 0 10px; }
.diagnostic-report p { margin:9px 0; line-height:1.65; }
.diagnostic-topic-list { display:grid; gap:12px; margin:12px 0 20px; }
.diagnostic-topic { padding:14px 16px; border:1px solid var(--border); border-radius:12px; background:#f9fbff; }
.diagnostic-topic h3,.diagnostic-topic h4 { font-size:1rem; margin:0 0 5px; }
.diagnostic-topic .diagnostic-status { font-weight:700; color:var(--blue-dark); margin-top:0; }
.diagnostic-priorities { padding-left:23px; }
.diagnostic-priorities li { margin:7px 0; }

.archive-reader { margin:16px 0; padding:clamp(14px,3vw,24px); scroll-margin-top:16px; }
.archive-reader h2 { font-size:clamp(1.05rem,2.5vw,1.4rem); margin:0 0 12px; overflow-wrap:anywhere; }
.archive-reader-controls { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:12px 0; }
.archive-reader [role="status"] { margin:10px 0; }
.archive-canvas-wrap { width:100%; min-height:60px; overflow:auto; text-align:center; }
.archive-canvas-wrap canvas { display:block; margin:auto; height:auto; background:white; }
.archive-video { display:block; border:0; width:100%; aspect-ratio:16/9; margin-top:14px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

[data-pdf-retry][hidden] { display:none; }
.archive-zoom { display:flex; align-items:center; gap:6px; font-size:1rem; }
.archive-zoom select { min-height:40px; padding:6px 10px; font:inherit; border:1px solid var(--border); border-radius:8px; background:white; }
/* Lesson explanations and progressive worked examples. */
.lesson-kicker{color:#2868b9;font-size:.875rem;font-weight:750;letter-spacing:.035em;margin:0 0 .5rem}
.lesson-intro{font-size:1.125rem;line-height:1.8}
.lesson-theory h3{font-size:1.1rem;margin:0 0 .65rem}
.lesson-theory p,.worked-card p{line-height:1.8;white-space:pre-line}
.lesson-formula{border-left:4px solid #3378cf;background:#edf4ff;padding:1rem 1.2rem;margin:1.3rem 0;border-radius:0 .6rem .6rem 0}
.lesson-formula span{font-size:.875rem;color:#355b83}
.lesson-formula p{font-size:1.2rem;font-weight:650;margin:.4rem 0 0;overflow-wrap:anywhere}
.lesson-reference,.mentor-guide{margin-top:1.4rem;border-top:1px solid #dce5f0;padding-top:1rem}
.lesson-reference summary,.mentor-guide summary,.lesson-book summary{cursor:pointer;font-weight:650;line-height:1.6}
.lesson-method{margin:1.4rem 0}
.lesson-shortcut{background:#e8f7f1;border:1px solid #b7dfd0;border-radius:.8rem;padding:1.25rem;margin:1.5rem 0}
.lesson-shortcut h3{color:#185b49}
.lesson-condition{border-top:1px solid #b7dfd0;padding-top:1rem;margin-top:1rem;font-size:.95rem}
.lesson-condition p{margin:.5rem 0 0}
.worked-card{margin:1rem 0;padding:1.4rem}
.worked-card h3{font-size:1.12rem;line-height:1.75;white-space:pre-line}
.worked-steps{margin:1.2rem 0;padding-left:1.6rem}
.worked-steps li{padding:.6rem .5rem;line-height:1.85;white-space:pre-line;overflow-wrap:anywhere}
.worked-steps li::marker{color:#2868b9;font-weight:750}
.worked-strategy{color:#46566d;background:#f3f6fb;border-radius:.5rem;padding:.8rem 1rem}
.worked-status{margin-bottom:0}
.worked-examples{margin:1.75rem 0}
.lesson-book{margin:1rem 0 2rem}
.lesson-video{margin:1.25rem 0}
.lesson-film{background:#f2f6ff;border:1px solid #c9d8f3;border-radius:1rem;padding:1rem;margin:1.25rem 0;color:#182540}
.film-toolbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;color:#36568f;font-size:.9rem;font-weight:650;margin-bottom:1rem}
.film-mentor{background:#dae7ff;border-radius:999px;padding:.45rem .8rem}
.film-board{min-height:340px;background:#fff;border-radius:.8rem;padding:1.4rem;display:flex;flex-direction:column;justify-content:center;box-shadow:0 8px 24px #2248860b}
.film-board h3{font-size:1.3rem;margin:0 0 1.4rem;line-height:1.5;color:#18315b}
.film-math{font-family:Georgia,'Times New Roman',serif;display:flex;flex-direction:column;gap:.65rem;overflow-x:auto;padding:.3rem 0 1rem}
.film-equation{display:flex;align-items:center;justify-content:center;gap:.1em;font-size:clamp(1.2rem,2.5vw,1.9rem);line-height:1.8;white-space:nowrap;min-width:max-content;padding:.25em .2em}
.film-fraction{display:inline-flex;flex-direction:column;vertical-align:middle;text-align:center;line-height:1.45;margin:0 .17em;min-width:1.1em}
.film-fraction>span{display:block;padding:0 .15em}
.film-fraction>span:first-child{border-bottom:2px solid currentColor}
[data-math-source]{border-radius:.15em;transition:background-color .12s,color .12s}
.is-speaking{background:#d9edff;color:#0755b9;box-shadow:0 0 0 3px #d9edff}
.film-intro{font-family:inherit;text-align:center;font-size:1.2rem;line-height:1.7;margin:.5rem 0}
.film-caption{min-height:3.5em;text-align:center;font-size:1rem;line-height:1.65;color:#334760;margin:1rem 0}
.lesson-film audio{display:block;width:100%;margin:.75rem 0}
.film-actions{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:.8rem 0}
.film-actions .button{font-size:.875rem;padding:.65rem .75rem}
.film-chapters{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1rem}
.film-chapters button{border:1px solid #c5d5ef;border-radius:.5rem;padding:.6rem .75rem;background:#fff;color:#23436c;cursor:pointer;text-align:left;line-height:1.5;font:inherit;font-size:.9rem}
.film-chapters button[aria-pressed=true]{background:#2449d7;color:#fff;border-color:#2449d7}
.film-status{font-size:.95rem;line-height:1.6;color:#8b3128}
.film-status:empty{display:none}
.film-rule{font-family:inherit;font-size:1.1rem;line-height:1.8;padding-left:1.6rem}
.film-rule li{padding:.35rem .4rem;margin:.5rem 0}
.film-multiples{display:grid;gap:1rem;font-family:inherit;font-size:1.3rem}
.film-multiples>div{display:flex;gap:2rem;padding:.75rem;border-bottom:1px solid #dce5f0}
.film-shortcut{font-family:inherit;font-size:1rem;text-align:center}
@media(max-width:600px){.lesson-film{padding:.7rem}.film-board{padding:1rem .6rem;min-height:300px}.film-board h3{font-size:1.1rem}.film-equation{font-size:1.25rem}.film-actions .button{font-size:.8rem;padding:.6rem .5rem}.film-multiples{font-size:1.1rem}}
.lesson-player{position:relative;width:100%;aspect-ratio:16/10;min-height:340px;margin:1.2rem 0;background:#eef3ff;border:1px solid #dce5f0;border-radius:.7rem;overflow:hidden}
.lesson-player iframe{display:block;width:100%;height:100%;position:absolute;inset:0;border:0}
@media(max-width:600px){.lesson-player{aspect-ratio:4/5;min-height:440px}}
.lesson-video video{display:block;width:100%;aspect-ratio:16/9;background:#12213d;border-radius:.65rem;margin:1.2rem 0;max-height:70vh}
.video-status:empty{display:none}
[data-worked-step][hidden],[data-worked-next][hidden],[data-video-retry][hidden]{display:none!important}
@media(max-width:600px){.lesson-shortcut,.worked-card{padding:1rem}.lesson-intro{font-size:1rem}.lesson-formula p{font-size:1.05rem}.lesson-formula{padding:.8rem}.worked-steps{padding-left:1.25rem}}

.top-actions{flex-wrap:wrap}
