:root {
  --ink: #14324a;
  --muted: #617587;
  --paper: #ffffff;
  --canvas: #f3f7fa;
  --line: #dbe5ec;
  --navy: #102f46;
  --present: #3369d8;
  --present-soft: #eaf1ff;
  --past: #8b5dce;
  --past-soft: #f2ebfc;
  --future: #188c70;
  --future-soft: #e7f6f1;
  --orange: #d8782e;
  --orange-soft: #fff1e5;
  --simple: #65798a;
  --danger: #b65058;
  --shadow: 0 18px 45px rgba(18, 48, 70, .09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
button, input { font: inherit; }
button { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 1000; padding: 10px 16px; border-radius: 999px; background: var(--navy); color: #fff; text-decoration: none; }
.skip-link:focus { top: 14px; }

.lesson-shell { min-height: 100vh; display: grid; grid-template-columns: 282px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 28px 20px; background: var(--navy); color: #fff; display: flex; flex-direction: column; gap: 18px; }
.back-button { width: 100%; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; padding: 10px 12px; background: transparent; color: #dceaf2; cursor: pointer; text-align: left; }
.back-button:hover, .back-button:focus-visible { background: rgba(255,255,255,.09); outline: 2px solid #fff; outline-offset: 2px; }
.lesson-brand { padding: 12px 6px 16px; border-bottom: 1px solid rgba(255,255,255,.14); }
.eyebrow { display: block; color: var(--present); font-size: .73rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.sidebar .eyebrow { color: #8db6ff; }
.lesson-brand h1 { margin: 8px 0; font-size: 2rem; line-height: 1.05; letter-spacing: -.04em; }
.lesson-brand h1 em { color: #86d7bf; font-family: Georgia, serif; font-weight: 500; }
.lesson-brand p { margin: 0; color: #b8cad7; font-size: .9rem; }
.overview-link, .nav-step { width: 100%; display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 9px; border: 0; border-radius: 12px; padding: 9px 10px; background: transparent; color: #bcd0dc; text-align: left; cursor: pointer; }
.overview-link > span, .nav-number { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.23); border-radius: 9px; font-size: .72rem; font-weight: 800; }
.nav-step > span:last-child { display: flex; flex-direction: column; font-weight: 700; font-size: .83rem; line-height: 1.25; }
.nav-step small { color: #7994a5; font-weight: 600; margin-top: 2px; }
.overview-link:hover, .nav-step:hover { background: rgba(255,255,255,.07); color: #fff; }
.overview-link[aria-current], .nav-step[aria-current] { background: #fff; color: var(--navy); }
.overview-link[aria-current] > span, .nav-step[aria-current] .nav-number { color: #fff; background: var(--present); border-color: var(--present); }
.sidebar-note { margin-top: auto; border-radius: 16px; padding: 14px 15px; background: rgba(255,255,255,.08); }
.sidebar-note b { color: #fff; font-size: .82rem; }
.sidebar-note p { margin: 6px 0 0; color: #a8c1d0; font-size: .82rem; }

.workspace { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 12px clamp(20px, 4vw, 54px); background: rgba(243,247,250,.92); border-bottom: 1px solid rgba(20,50,74,.09); backdrop-filter: blur(18px); }
.topbar > div:first-child { display: flex; flex-direction: column; }
.mobile-kicker { font-size: .68rem; letter-spacing: .13em; font-weight: 850; color: var(--present); }
#locationLabel { font-size: .94rem; }
.top-progress { min-width: 220px; display: grid; grid-template-columns: auto 120px; align-items: center; gap: 11px; font-size: .78rem; color: var(--muted); }
.top-progress progress { width: 120px; height: 7px; border: 0; border-radius: 999px; overflow: hidden; background: #dbe6ed; }
.top-progress progress::-webkit-progress-bar { background: #dbe6ed; border-radius: 999px; }
.top-progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--present), var(--past), var(--future)); border-radius: 999px; }
.top-progress progress::-moz-progress-bar { background: linear-gradient(90deg, var(--present), var(--past), var(--future)); border-radius: 999px; }
main { width: min(1320px, 100%); min-height: calc(100vh - 74px); margin: 0 auto; padding: clamp(24px, 4.5vw, 64px); }

.overview { display: grid; gap: 26px; }
.hero { overflow: hidden; border-radius: 32px; background: var(--navy); color: #fff; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); min-height: 500px; box-shadow: var(--shadow); }
.hero-copy { align-self: center; padding: clamp(34px, 5vw, 72px); }
.hero-copy .eyebrow { color: #8db6ff; }
.hero-copy h2 { max-width: 720px; margin: 14px 0 20px; font-size: clamp(2.4rem, 5vw, 4.9rem); line-height: .98; letter-spacing: -.055em; }
.hero-copy h2 em { display: block; color: #8cdec4; font-family: Georgia, serif; font-weight: 500; }
.hero-copy p { max-width: 650px; color: #c2d2dc; font-size: 1.04rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 28px; }
.hero-actions > span { color: #8fa7b6; font-size: .82rem; font-weight: 700; }
.primary, .secondary { border: 0; border-radius: 12px; padding: 11px 17px; font-weight: 800; cursor: pointer; }
.primary { background: var(--present); color: #fff; box-shadow: 0 9px 22px rgba(51,105,216,.26); }
.primary:hover, .primary:focus-visible { background: #2358c1; outline: 3px solid rgba(51,105,216,.24); outline-offset: 2px; }
.secondary { background: #e7eef3; color: var(--ink); }
.secondary:hover, .secondary:focus-visible { background: #dbe6ed; outline: 3px solid rgba(20,50,74,.12); outline-offset: 2px; }
.hero-timeline { position: relative; overflow: hidden; padding: 42px 34px; display: flex; flex-direction: column; justify-content: center; gap: 20px; background: linear-gradient(145deg, #173d59, #0c283b); }
.hero-timeline::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px); background-size: 44px 44px; }
.hero-tense { position: relative; padding: 18px 18px 18px 74px; border: 1px solid rgba(255,255,255,.15); border-radius: 18px; background: rgba(255,255,255,.07); }
.hero-tense::before { content: ""; position: absolute; left: 24px; top: 50%; width: 26px; height: 26px; border-radius: 50%; transform: translateY(-50%); background: currentColor; box-shadow: 0 0 0 7px rgba(255,255,255,.07); }
.hero-tense::after { content: "→"; position: absolute; right: 20px; top: 19px; opacity: .4; }
.hero-tense.present { color: #8db6ff; }
.hero-tense.past { color: #c39aff; }
.hero-tense.future { color: #82d9bd; }
.hero-tense span { display: block; font-size: .67rem; font-weight: 900; letter-spacing: .13em; }
.hero-tense b { display: block; margin: 3px 0; color: #fff; font-size: 1.04rem; }
.hero-tense small { color: #a9bdc9; }
.lesson-facts { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.lesson-facts div { padding: 20px; display: flex; align-items: baseline; justify-content: center; gap: 9px; border-right: 1px solid var(--line); }
.lesson-facts div:last-child { border-right: 0; }
.lesson-facts strong { color: var(--present); font-size: 1.55rem; }
.lesson-facts span { color: var(--muted); font-size: .84rem; }
.success-card { padding: 28px 30px; display: grid; grid-template-columns: .6fr 1.4fr; gap: 28px; align-items: center; border-radius: var(--radius); background: linear-gradient(135deg, #fff, #edf5ff); border: 1px solid #d8e5f7; }
.success-card h3 { margin: 4px 0 0; font-size: 1.45rem; }
.success-card ul { margin: 0; padding-left: 22px; display: grid; gap: 7px; }
.section-heading { margin-top: 12px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-heading h3 { margin: 4px 0 0; font-size: 1.7rem; }
.section-heading p { margin: 0; color: var(--muted); }
.route { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.route button { min-height: 76px; display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 16px; padding: 13px 16px; background: #fff; text-align: left; cursor: pointer; }
.route button:hover, .route button:focus-visible { transform: translateY(-2px); border-color: #afc6d5; box-shadow: 0 12px 24px rgba(20,50,74,.08); outline: none; }
.route-number { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: #fff; font-weight: 900; }
.route-number.blue { background: var(--present); }.route-number.purple { background: var(--past); }.route-number.green { background: var(--future); }.route-number.orange { background: var(--orange); }
.route-copy { min-width: 0; display: flex; flex-direction: column; }
.route-copy strong { font-size: .94rem; }
.route-copy small { color: var(--muted); }
.route-time { padding: 4px 8px; border-radius: 999px; background: #eff4f7; color: var(--muted); font-size: .73rem; font-weight: 800; white-space: nowrap; }
.teacher-note { border-left: 5px solid var(--orange); border-radius: 8px 18px 18px 8px; padding: 18px 22px; background: var(--orange-soft); }
.teacher-note p { margin: 4px 0 0; color: #704727; }

.stage { animation: stageIn .35s ease both; }
@keyframes stageIn { from { opacity: 0; transform: translateY(10px); } }
.stage-heading { margin-bottom: 28px; }
.stage-heading h2 { max-width: 980px; margin: 8px 0 10px; font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.04; letter-spacing: -.045em; outline: 0; }
.stage-heading p { max-width: 900px; margin: 0; color: var(--muted); font-size: 1.04rem; }
.prompt-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.prompt-grid article { position: relative; min-height: 150px; padding: 24px 24px 22px 72px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(20,50,74,.045); }
.prompt-grid article:nth-child(1) { border-top: 4px solid var(--present); }.prompt-grid article:nth-child(2) { border-top: 4px solid var(--present); }.prompt-grid article:nth-child(3) { border-top: 4px solid var(--past); }.prompt-grid article:nth-child(4) { border-top: 4px solid var(--future); }
.prompt-number { position: absolute; left: 22px; top: 25px; color: #a2b3bf; font-weight: 900; }
.prompt-grid p { margin: 0 0 14px; font-size: 1.08rem; font-weight: 750; }
.prompt-grid small { color: var(--muted); }
.two-column, .story-work { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 20px; padding: 24px; background: #fff; }
.card h3 { margin: 7px 0 12px; font-size: 1.3rem; }
.card p:last-child { margin-bottom: 0; }
.question-chips, .starter-row, .word-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.question-chips span, .starter-row span, .word-cloud span { padding: 7px 10px; border-radius: 999px; background: #edf3f7; color: #405d71; font-size: .82rem; font-weight: 700; }
.speaking-card { background: var(--present-soft); border-color: #cddcff; }

.visual-card { margin: 0 0 20px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.image-button { width: 100%; padding: 0; border: 0; background: #eaf0f4; cursor: zoom-in; }
.image-button:focus-visible { outline: 4px solid var(--present); outline-offset: -5px; }
.visual-card img { width: 100%; height: auto; }
.visual-card figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 13px 18px; color: var(--muted); font-size: .84rem; }
.visual-card figcaption b { color: var(--ink); }
.compact-visual { margin-top: 22px; }
.tense-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.tense-card { position: relative; overflow: hidden; border-radius: 20px; padding: 24px; background: #fff; border: 1px solid var(--line); }
.tense-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: currentColor; }
.tense-card.present { color: var(--present); }.tense-card.past { color: var(--past); }.tense-card.future { color: var(--future); }
.tense-card h3 { margin: 6px 0 4px; color: var(--ink); font-size: 1.45rem; }
.tense-card code { display: inline-block; margin-bottom: 18px; color: currentColor; font-family: inherit; font-weight: 900; }
.tense-card p, .tense-card q { color: var(--ink); }
.tense-card q { display: block; margin-top: 18px; padding: 13px; border-radius: 12px; background: color-mix(in srgb, currentColor 9%, white); font-style: normal; }
.tense-label { font-size: .69rem; font-weight: 900; letter-spacing: .11em; }
.mini-line { position: relative; height: 36px; margin: 4px 0 12px; }
.mini-line i { position: absolute; left: 0; right: 0; top: 14px; height: 3px; background: #b8c7d1; }
.mini-line i::after { content: "→"; position: absolute; right: -2px; top: -15px; color: #8397a6; font-style: normal; font-size: 1.25rem; }
.mini-line b { position: absolute; right: 9px; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: currentColor; color: transparent; }
.rule-strip { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; border-radius: 16px; padding: 15px 18px; background: var(--navy); color: #fff; }
.rule-strip b { color: #8db6ff; }.rule-strip span { padding: 5px 9px; border-radius: 999px; background: rgba(255,255,255,.09); font-size: .82rem; }
.decision-path { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.decision-path article { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.decision-path article > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #eaf0f4; font-weight: 900; }
.decision-path p { margin: 3px 0 0; color: var(--muted); }.present-text { color: var(--present); }.past-text { color: var(--past); }.future-text { color: var(--future); }.simple-text { color: var(--simple); }
.reveal { margin-top: 16px; overflow: hidden; border: 1px solid #cad7e0; border-radius: 16px; background: #fff; }
.reveal summary { position: relative; list-style: none; padding: 16px 52px 16px 18px; cursor: pointer; font-weight: 850; }
.reveal summary::-webkit-details-marker { display: none; }
.reveal summary::after { content: "+"; position: absolute; right: 18px; top: 12px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #edf3f7; color: var(--present); font-size: 1.2rem; }
.reveal[open] summary::after { content: "−"; }
.reveal > div { padding: 0 20px 18px; border-top: 1px solid #e2e9ee; }
.reveal.nuance { background: var(--past-soft); border-color: #d9c7ef; }
.reveal.nuance summary::after { color: var(--past); }

.practice-card { margin-bottom: 16px; border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; }
.practice-heading { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.practice-heading h3 { margin: 5px 0 0; font-size: 1.35rem; }.time-chip { padding: 5px 10px; border-radius: 999px; background: var(--past-soft); color: var(--past); font-weight: 850; font-size: .77rem; }
.exercise-list { margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; counter-reset: item; list-style: none; }
.exercise-list li { position: relative; min-height: 76px; padding: 13px 14px 13px 48px; border-radius: 13px; background: #f4f7f9; }
.exercise-list li::before { counter-increment: item; content: counter(item); position: absolute; left: 13px; top: 12px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: #dfe8ee; color: #476274; font-size: .72rem; font-weight: 900; }
.blank { color: var(--past); font-weight: 900; letter-spacing: .03em; }.exercise-list small { color: var(--muted); white-space: nowrap; }
.compact-list li { min-height: 60px; }
.answer-list { display: grid; gap: 8px; padding-left: 21px; }.answer-list li::marker { color: var(--future); font-weight: 900; }
.warning-card { border-radius: 18px; padding: 18px 20px; background: var(--orange-soft); border-left: 5px solid var(--orange); }
.warning-card > div { margin-top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; color: #6c4a30; font-size: .86rem; }

.formula-ribbon { margin: 16px 0; padding: 18px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; border-radius: 16px; background: var(--navy); color: #fff; }
.formula-ribbon span { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.1); font-weight: 750; font-size: .84rem; }.formula-ribbon b { color: #83d8bd; }
.vocab-columns { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.vocab-columns section { border-radius: 19px; padding: 21px; background: #fff; border: 1px solid var(--line); }
.vocab-columns section:nth-child(1) { border-top: 5px solid var(--future); }.vocab-columns section:nth-child(2) { border-top: 5px solid var(--present); }.vocab-columns section:nth-child(3) { border-top: 5px solid var(--orange); }
.vocab-columns dl { margin: 12px 0 0; }.vocab-columns dt { margin-top: 11px; font-weight: 900; }.vocab-columns dd { margin: 1px 0 0; color: var(--muted); font-size: .84rem; }
.quiz-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.quiz { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }.quiz > p:first-child { min-height: 52px; margin-top: 0; font-weight: 750; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }.choice-row button { border: 1px solid #c7d4dd; border-radius: 999px; padding: 7px 11px; background: #f7f9fa; cursor: pointer; font-weight: 750; font-size: .82rem; }
.choice-row button:hover { border-color: var(--present); }.choice-row button.correct { border-color: var(--future); background: var(--future-soft); color: #0c684f; }.choice-row button.incorrect { border-color: var(--danger); background: #fff0f1; color: #943d45; }
.quiz-result { min-height: 42px; margin-bottom: 0; color: var(--muted); font-size: .84rem; }
.upgrade-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }.upgrade-grid .reveal { margin-top: 12px; }

.story-visual { margin-bottom: 16px; }.story-visual figcaption span { color: var(--muted); }.panel-explorer { display: grid; grid-template-columns: 180px minmax(280px, .9fr) minmax(260px, .7fr); gap: 16px; align-items: stretch; margin: 16px 0; }
.panel-tabs { display: flex; flex-direction: column; gap: 7px; }.panel-tabs button { flex: 1; min-height: 52px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; text-align: left; cursor: pointer; font-weight: 800; }.panel-tabs button[aria-selected="true"] { border-color: var(--present); background: var(--present-soft); color: #2358bb; box-shadow: inset 4px 0 var(--present); }
.panel-focus { min-height: 300px; border-radius: 20px; background-repeat: no-repeat; background-color: #dfe7ec; box-shadow: var(--shadow); }
.restaurant-focus { aspect-ratio: .703; background-image: url("assets/01-restaurant-growth.png"); background-size: 400% 100%; background-position: 0 0; }
.travel-focus { aspect-ratio: .889; background-image: url("assets/02-travel-story.png"); background-size: 300% 100%; background-position: 0 0; }
.performance-focus { aspect-ratio: 1.779; background-image: url("assets/03-performance-turnaround.png"); background-size: 200% 200%; background-position: 0 0; }
.panel-caption { display: grid; align-content: center; gap: 7px; padding: 24px; border-radius: 20px; background: var(--navy); color: #d5e3eb; }.panel-caption b { margin-top: 8px; color: #85d8bd; font-size: .68rem; letter-spacing: .12em; }.panel-caption b:first-child { margin-top: 0; }.panel-caption span { font-weight: 700; }
.story-work ol, .card ol { margin-bottom: 0; padding-left: 21px; display: grid; gap: 7px; }.evidence-card { background: #edf4f8; }.evidence-card p { color: #476477; }
.model-reveal { border-color: #b9d8cd; background: var(--future-soft); }.model-reveal summary::after { color: var(--future); }.model-reveal p { font-size: .98rem; }
.speaking-mission { margin-top: 16px; padding: 18px 20px; border-radius: 17px; background: var(--present); color: #fff; }.speaking-mission p { margin: 4px 0 0; color: #dce8ff; }
.time-anchor-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 14px 0; }.time-anchor-row span { padding: 10px; border-radius: 10px; text-align: center; font-size: .74rem; font-weight: 900; letter-spacing: .05em; }.past-anchor { background: var(--past-soft); color: var(--past); }.present-anchor { background: var(--present-soft); color: var(--present); }.future-anchor { background: var(--future-soft); color: var(--future); }
.performance-bands { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin: 16px 0; }.performance-bands article { padding: 17px; border-radius: 15px; }.performance-bands span { font-size: .68rem; letter-spacing: .1em; font-weight: 900; }.performance-bands p { margin: 6px 0 0; font-size: .86rem; }.performance-bands .past { background: var(--past-soft); color: #65439a; }.performance-bands .present { background: var(--present-soft); color: #224eac; }.performance-bands .future { background: var(--future-soft); color: #0e6c55; }
.roleplay-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }.roleplay-brief { padding: 24px; background: linear-gradient(135deg,#102f46,#194660); color: #fff; }.roleplay-brief .eyebrow { color: #83d8bd; }.roleplay-brief h3 { margin: 6px 0; }.roleplay-brief p { margin: 0; color: #c6d7e1; }
.roleplay-steps { margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(4,1fr); gap: 9px; list-style: none; }.roleplay-steps li { padding: 14px; border-radius: 13px; background: #f1f5f8; }.roleplay-steps b { display: block; color: var(--present); font-size: .68rem; letter-spacing: .1em; }.roleplay-steps span { font-size: .84rem; }
.role-checks, .exit-checklist { padding: 0 22px 22px; display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }.role-checks label, .exit-checklist label { padding: 10px 11px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: .82rem; font-weight: 700; }.role-checks input, .exit-checklist input { accent-color: var(--future); margin-right: 7px; }.roleplay-card .reveal { margin: 0 22px 22px; }.dialogue p { padding: 8px 0; margin: 0; border-bottom: 1px solid #d7e8e2; }.dialogue p:last-child { border-bottom: 0; }

.timer-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; margin-bottom: 16px; padding: 20px 22px; border-radius: 20px; background: var(--navy); color: #fff; }.timer-card strong { display: block; font-size: 2.2rem; font-variant-numeric: tabular-nums; }.timer-card p { grid-column: 1 / -1; margin: -9px 0 0; color: #aac0cd; }.timer-card .eyebrow { color: #86d7bf; }
.scenario-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }.scenario { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 19px; background: #fff; }.scenario.required { border: 2px solid var(--future); box-shadow: var(--shadow); }.scenario h3 { margin: 8px 0; }.scenario p { color: var(--muted); }.scenario .reveal { margin-top: auto; }.scenario-tag { align-self: start; padding: 4px 8px; border-radius: 999px; background: #edf3f7; font-size: .67rem; font-weight: 900; letter-spacing: .08em; }.required .scenario-tag { background: var(--future-soft); color: var(--future); }.scenario-targets { display: flex; flex-wrap: wrap; gap: 5px; }.scenario-targets span { padding: 4px 7px; border-radius: 999px; background: var(--past-soft); color: #7144a7; font-size: .72rem; }
.pronunciation-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }.pronunciation-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }.pronunciation-grid article:nth-child(1) { border-top: 5px solid var(--present); }.pronunciation-grid article:nth-child(2) { border-top: 5px solid var(--past); }.pronunciation-grid article:nth-child(3) { border-top: 5px solid var(--future); }.pronunciation-grid span { display: block; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .1em; }.pronunciation-grid b { display: block; margin: 8px 0; font-size: 1.05rem; }.pronunciation-grid small { color: var(--muted); }
.audio-card { margin-top: 15px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: center; padding: 20px; border-radius: 18px; background: var(--present-soft); }.audio-card p { margin: 5px 0 0; }.audio-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }.audio-actions button { border: 1px solid #b8cdf7; border-radius: 999px; padding: 8px 11px; background: #fff; color: #2455b2; cursor: pointer; font-weight: 800; }.audio-actions button[aria-pressed="true"] { background: var(--present); color: #fff; }
.stress-line { margin-top: 14px; padding: 18px; border-radius: 16px; background: #fff; text-align: center; font-size: 1.12rem; }.stress-line strong { color: var(--present); }
.exit-card { border: 1px solid var(--line); border-radius: 24px; padding: 28px; background: #fff; box-shadow: var(--shadow); }.exit-card h3 { margin: 7px 0 6px; font-size: 1.5rem; }.exit-checklist { padding: 18px 0 0; grid-template-columns: repeat(3,1fr); }.check-status { padding: 11px 13px; border-radius: 11px; background: #edf4f7; color: var(--muted); font-weight: 800; font-size: .84rem; }.finish-card { margin-top: 18px; padding: 30px; border-radius: 24px; background: var(--navy); color: #fff; text-align: center; }.finish-card > span { color: #81d5ba; font-size: .7rem; font-weight: 900; letter-spacing: .14em; }.finish-card h3 { margin: 8px 0; font-size: 1.55rem; }.finish-card p { color: #b9ccd7; }.finish-card > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }

.step-footer { position: sticky; bottom: 0; z-index: 20; min-height: 76px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; padding: 12px 190px 12px clamp(20px,4vw,54px); border-top: 1px solid rgba(20,50,74,.12); background: rgba(255,255,255,.94); backdrop-filter: blur(18px); }.step-footer > div { display: flex; flex-direction: column; text-align: center; color: var(--muted); }.step-footer span { color: var(--ink); font-weight: 850; }.step-footer button:first-child { justify-self: start; }.step-footer button:last-child { justify-self: end; }

.image-dialog { width: min(96vw, 1500px); max-width: none; height: min(94vh, 980px); padding: 0; border: 0; border-radius: 20px; background: #091d2a; color: #fff; box-shadow: 0 30px 100px rgba(0,0,0,.42); }.image-dialog::backdrop { background: rgba(5,18,28,.84); backdrop-filter: blur(5px); }.dialog-bar { height: 58px; padding: 9px 14px 9px 22px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,.15); }.dialog-bar h2 { margin: 0; font-size: 1rem; }.dialog-bar button { width: 39px; height: 39px; border: 0; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; font-size: 1.5rem; }.dialog-image-wrap { height: calc(100% - 58px); overflow: auto; display: grid; place-items: center; padding: 18px; }.dialog-image-wrap img { max-width: none; width: auto; min-width: min(100%, 1000px); max-height: 100%; object-fit: contain; }
.muted { color: var(--muted); }

@media (max-width: 1100px) {
  .lesson-shell { grid-template-columns: 236px minmax(0,1fr); }
  .sidebar { padding: 22px 14px; }
  .lesson-brand h1 { font-size: 1.65rem; }
  main { padding: 32px; }
  .hero { grid-template-columns: 1fr; }.hero-timeline { min-height: 290px; padding: 28px; }.hero-tense { padding-top: 14px; padding-bottom: 14px; }
  .panel-explorer { grid-template-columns: 150px minmax(240px,1fr); }.panel-caption { grid-column: 1 / -1; grid-template-columns: auto 1fr auto 1fr; }
  .roleplay-steps { grid-template-columns: repeat(2,1fr); }
}

/* Arkadiusz · Past Perfect Simple vs. Continuous */
.two-tense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.comparison-table, .matching-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:18px 0; }
.comparison-table > div, .matching-grid > div { display:flex; flex-direction:column; gap:4px; padding:15px 17px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.comparison-table b, .matching-grid b { color:var(--ink); }
.comparison-table span, .matching-grid span { color:var(--muted); }
.compact-list { grid-template-columns:1fr; }
.compact-list li { min-height:64px; }
.scene-prompts { margin:18px 0; }
.scene-prompts article { min-height:100px; padding:20px; }
.scene-prompts article p { margin:0; }
.photo-story .image-button { background:#0b2436; }
.photo-story img { aspect-ratio:16/9; object-fit:contain; }
.starter-row.stacked { flex-direction:column; align-items:flex-start; }
.sentence-frames { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:18px; }
.sentence-frames p { margin:0; padding:15px 17px; border-radius:14px; background:var(--past-soft); font-weight:750; }
.roleplay-grid, .pronunciation-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.roleplay-grid ul, .success-card ul { margin:8px 0 0; }
.final-card { padding:28px; border-radius:24px; color:#fff; background:linear-gradient(135deg,var(--navy),#1d506d); box-shadow:var(--shadow); }
.final-card h3 { margin-top:0; font-size:1.6rem; }
.check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.check-grid label { display:flex; gap:10px; align-items:flex-start; padding:13px 15px; border:1px solid rgba(255,255,255,.18); border-radius:13px; background:rgba(255,255,255,.08); font-weight:700; }
.check-grid input { margin-top:4px; accent-color:#7dd7b8; }
.finish-button { display:block; width:min(520px,100%); margin:26px auto 0; padding:15px 20px; }
.image-dialog > img { display:block; width:100%; height:calc(100% - 58px); object-fit:contain; padding:14px; }

@media (max-width: 760px) {
  .two-tense, .comparison-table, .matching-grid, .sentence-frames, .roleplay-grid, .pronunciation-grid, .check-grid { grid-template-columns:1fr; }
  .photo-story img { aspect-ratio:auto; width:760px; max-width:none; }
  .photo-story .image-button { overflow:auto; }
}

@media (max-width: 820px) {
  .lesson-shell { display: block; }
  .sidebar { position: sticky; z-index: 40; height: auto; top: 0; overflow: visible; padding: 10px 12px; display: grid; grid-template-columns: auto 1fr; gap: 8px; border-bottom: 1px solid rgba(255,255,255,.15); }
  .back-button { width: auto; white-space: nowrap; }
  .lesson-brand, .sidebar-note { display: none; }
  .overview-link { width: 54px; height: 42px; padding: 6px; grid-template-columns: 1fr; font-size: 0; }.overview-link > span { margin: auto; }
  #lessonNav { grid-column: 1 / -1; display: flex; gap: 5px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
  .nav-step { min-width: max-content; width: auto; grid-template-columns: 28px 1fr; padding: 6px 8px; }.nav-step > span:last-child { font-size: .76rem; }.nav-step small { display: none; }
  .topbar { top: 100px; height: 64px; padding: 9px 18px; }.top-progress { min-width: 155px; grid-template-columns: auto 70px; }.top-progress progress { width: 70px; }
  main { padding: 26px 20px; }
  .lesson-facts { grid-template-columns: repeat(2,1fr); }.lesson-facts div:nth-child(2) { border-right: 0; }.lesson-facts div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .success-card { grid-template-columns: 1fr; gap: 10px; }.route { grid-template-columns: 1fr; }
  .tense-grid, .vocab-columns, .scenario-grid, .pronunciation-grid { grid-template-columns: 1fr; }
  .tense-card { padding: 21px; }.exercise-list { grid-template-columns: 1fr; }.warning-card > div { grid-template-columns: 1fr; }.quiz-grid { grid-template-columns: 1fr; }
  .panel-explorer { grid-template-columns: 1fr; }.panel-tabs { flex-direction: row; overflow-x: auto; }.panel-tabs button { flex: 0 0 auto; min-height: 44px; }.panel-focus { width: min(100%, 560px); justify-self: center; }.panel-caption { grid-column: auto; display: grid; grid-template-columns: auto 1fr; }
  .performance-bands { grid-template-columns: 1fr; }.role-checks, .exit-checklist { grid-template-columns: repeat(2,1fr); }.time-anchor-row { grid-template-columns: 1fr; }
  .audio-card { grid-template-columns: 1fr; }.audio-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .sidebar { grid-template-columns: 1fr auto; }.back-button { overflow: hidden; text-overflow: ellipsis; }
  .topbar { top: 100px; padding: 8px 14px; }.topbar > div:first-child { min-width: 0; }.topbar b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }.top-progress { min-width: 48px; display: block; }.top-progress span { display: none; }.top-progress progress { width: 48px; }
  main { padding: 22px 14px; }.hero { min-height: 0; border-radius: 24px; }.hero-copy { padding: 30px 23px; }.hero-copy h2 { font-size: 2.55rem; }.hero-timeline { padding: 22px 18px; }.hero-tense { padding-left: 63px; }.hero-tense::before { left: 20px; }.hero-tense::after { display: none; }
  .lesson-facts div { flex-direction: column; align-items: center; gap: 0; padding: 15px 8px; }.success-card { padding: 22px; }.section-heading { display: block; }.section-heading p { margin-top: 6px; }
  .stage-heading h2 { font-size: 2.15rem; }.prompt-grid, .two-column, .story-work, .upgrade-grid { grid-template-columns: 1fr; }.prompt-grid article { min-height: 0; padding: 20px 18px 18px 58px; }.prompt-number { left: 18px; top: 21px; }
  .visual-card { border-radius: 17px; }.visual-card figcaption { display: block; }.visual-card figcaption span { display: block; margin-top: 3px; }.infographic .image-button { overflow-x: auto; }.infographic img { width: 680px; max-width: none; }
  .decision-path { grid-template-columns: 1fr; }.rule-strip { align-items: flex-start; }.practice-card { padding: 18px; }.practice-heading { align-items: center; }.exercise-list li { padding-right: 10px; }.exercise-list small { white-space: normal; }
  .formula-ribbon { justify-content: flex-start; }.vocab-columns section { padding: 18px; }
  .story-visual .image-button { overflow-x: auto; }.story-visual img { width: 780px; max-width: none; }.square-story img { width: 560px; }.panel-focus { min-height: 260px; }.panel-caption { padding: 19px; }.roleplay-steps { grid-template-columns: 1fr; }.role-checks, .exit-checklist { grid-template-columns: 1fr; }.roleplay-card .reveal { margin-left: 14px; margin-right: 14px; }
  .timer-card { grid-template-columns: 1fr; }.timer-card .primary { justify-self: stretch; }.timer-card p { margin: 0; }.scenario { padding: 18px; }
  .audio-actions button { flex: 1 1 42%; }.step-footer { bottom: 70px; grid-template-columns: 1fr 1fr; padding: 9px 12px; }.step-footer > div { display: none; }.step-footer button { width: 100%; }.step-footer button:last-child { justify-self: stretch; }.finish-card { padding: 26px 18px; }
  .image-dialog { width: 100vw; height: 100vh; border-radius: 0; }.dialog-image-wrap { place-items: start; padding: 10px; }.dialog-image-wrap img { min-width: 900px; max-height: none; }
}

@media (max-width: 360px) {
  .back-button { max-width: 220px; font-size: .82rem; }.overview-link { width: 45px; }.topbar { top: 100px; }.hero-copy h2 { font-size: 2.2rem; }.hero-actions .primary { width: 100%; }.route button { grid-template-columns: 42px 1fr; }.route-time { display: none; }.panel-tabs button { font-size: .76rem; }.audio-actions button { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
