:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #737a72;
  --paper: #f3f3ed;
  --line: #d9ddd3;
  --lime: #d8fa66;
  --blue: #425de5;
  --coral: #f17c61;
  --mono: "DM Mono", "Courier New", monospace;
  --display: "Space Grotesk", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--display); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 6.3%; border-bottom: 1px solid var(--line); background: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.brand-mark { display: block; width: 31px; height: 31px; flex: 0 0 31px; }
.brand-light { font-weight: 400; }
.main-nav { display: flex; align-items: center; gap: 34px; height: 100%; }
.nav-link { display: grid; height: 100%; align-items: center; color: #777d76; font-size: 13px; transition: color .18s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--ink); }
.nav-link.is-current { box-shadow: inset 0 -2px var(--ink); }
.header-cta { padding: 11px 15px; border: 1px solid var(--ink); font-size: 12px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.header-cta span { padding-left: 8px; }
.header-cta:hover { background: var(--ink); color: white; }

.hero { display: grid; grid-template-columns: 1.06fr .94fr; min-height: 434px; margin: 26px 3.2% 0; background: #17201d; color: #f8f8f2; overflow: hidden; }
.hero-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 56px 7.4%; }
.eyebrow { margin: 0; font: 10px var(--mono); letter-spacing: .11em; }
.hero .eyebrow { color: #c2c9bd; }
.status-dot, .caption-marker { display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--lime); vertical-align: 1px; }
.hero h1 { margin: 26px 0 16px; font-size: clamp(43px, 5.5vw, 76px); line-height: .98; letter-spacing: -.055em; }
.hero-period { color: var(--coral); }
.hero-description { max-width: 440px; margin: 0; color: #c6ccc3; font-size: 16px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 29px; }
.button { display: inline-flex; min-height: 47px; align-items: center; justify-content: center; gap: 19px; padding: 0 18px; border: 0; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #e5ff91; }
.hero-note { color: #b9c0b7; font-size: 11px; }
.note-star { margin-right: 6px; color: var(--lime); font-size: 16px; vertical-align: -1px; }
.hero-bottomline { position: absolute; right: 7.4%; bottom: 19px; left: 7.4%; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid #39423d; color: #a4ada3; font: 8px var(--mono); letter-spacing: .08em; }
.hero-art { position: relative; min-height: 434px; background: #b9c3ab url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1200&q=85") center 52% / cover no-repeat; }
.hero-art::before { position: absolute; inset: 0; background: linear-gradient(0deg, rgb(15 23 20 / 54%), transparent 55%), linear-gradient(90deg, rgb(15 23 20 / 10%), transparent 35%); content: ""; }
.art-label { position: absolute; top: 19px; right: 19px; left: 19px; display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; background: var(--paper); color: var(--ink); font: 9px var(--mono); letter-spacing: .07em; }
.art-arrow { font: 16px var(--display); }
.art-sticker { position: absolute; top: 43%; left: 9%; display: grid; width: 106px; height: 106px; align-content: center; justify-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.05; text-align: center; transform: rotate(-11deg); }
.art-sticker span { position: absolute; top: 6px; right: 12px; font-size: 17px; }
.art-caption { position: absolute; right: 20px; bottom: 19px; left: 20px; color: white; font: 9px var(--mono); letter-spacing: .07em; }

.quick-stats { min-height: 77px; display: grid; grid-template-columns: repeat(3, 1fr) 1.08fr; align-items: center; gap: 12px; margin: 0 6.3%; border-bottom: 1px solid var(--line); }
.stat { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.stat-number { color: #91988f; font: 10px var(--mono); }
.stat-link { justify-self: end; color: var(--blue); font-size: 11px; font-weight: 600; }
.stat-link span { margin-left: 7px; }

.lesson-section { padding: 83px 10.4% 86px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; }
.section-kicker { color: #848a80; }
.section-heading h2 { margin: 12px 0 8px; font-size: clamp(29px, 3.3vw, 43px); line-height: 1.08; letter-spacing: -.045em; }
.section-intro { margin: 0; color: #6d756c; font-size: 13px; line-height: 1.6; }
.lesson-count { padding-bottom: 4px; color: #7b827a; font: 9px var(--mono); letter-spacing: .09em; }
.lesson-count span { color: var(--ink); font-size: 14px; }
.lesson-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 31px 0 4px; }
.filter-list { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-button { min-height: 34px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: #70776f; font-size: 11px; cursor: pointer; transition: .16s ease; }
.filter-button:hover { color: var(--ink); }
.filter-button.is-active { border-color: var(--ink); background: var(--ink); color: white; }
.search-box { display: flex; width: 195px; height: 36px; flex: 0 0 auto; align-items: center; gap: 8px; padding: 0 9px; border: 1px solid var(--line); background: #f8f8f4; }
.search-icon { color: #777e75; font-size: 20px; line-height: 1; }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11px; }
.search-box input::placeholder { color: #929890; }
.search-box kbd { padding: 2px 5px; border: 1px solid var(--line); color: #8b9189; font: 10px var(--mono); }
.lesson-list { border-top: 1px solid var(--line); }
.lesson-row { display: grid; grid-template-columns: 41px minmax(0, 1fr) 120px 40px; align-items: center; gap: 17px; min-height: 115px; border-bottom: 1px solid var(--line); animation: reveal .36s ease both; }
.lesson-row[hidden] { display: none; }
.lesson-index { align-self: start; padding-top: 26px; color: #8b9288; font: 10px var(--mono); }
.lesson-meta { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; }
.lesson-tag { padding: 4px 7px; font: 8px var(--mono); letter-spacing: .03em; }
.tag-html { background: #f8d3c6; color: #994a34; }
.tag-css { background: #dce4ff; color: #3851b2; }
.tag-vibe { background: #e5e8aa; color: #586024; }
.tag-js { background: #f7e5a4; color: #765f18; }
.tag-build { background: #f4d4e1; color: #994567; }
.tag-workflow { background: #d4e8dd; color: #36654d; }
.tag-accessibility { background: #f6d7c2; color: #87512f; }
.tag-pro { background: #d5e3bb; color: #4c642c; }
.lesson-level { color: #92988f; font: 8px var(--mono); letter-spacing: .05em; }
.lesson-main h3 { margin: 0 0 4px; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.lesson-main p { margin: 0; color: #737a72; font-size: 11px; line-height: 1.5; }
.lesson-duration { color: #727971; font: 8px var(--mono); white-space: nowrap; }
.lesson-duration span { padding: 0 3px; color: #a7ada4; }
.lesson-open { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 17px; cursor: pointer; transition: background .16s ease, border-color .16s ease, transform .16s ease; }
.lesson-open:hover { border-color: var(--lime); background: var(--lime); transform: rotate(45deg); }
.lesson-row.is-complete .lesson-index { color: #608b31; }
.lesson-row.is-complete .lesson-index::after { margin-left: 5px; color: #608b31; content: "✓"; }
.empty-state { padding: 55px 15px; color: #81877e; text-align: center; }
.empty-state > span { font-size: 24px; }
.empty-state p { font-size: 13px; }

.path-section { display: grid; grid-template-columns: .85fr 1.15fr; gap: 10%; padding: 76px 10.4%; background: #e7e9df; }
.path-copy .eyebrow { color: #7b8278; }
.path-copy h2 { margin: 16px 0 14px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; letter-spacing: -.045em; }
.path-copy > p:not(.eyebrow) { max-width: 395px; margin: 0; color: #697168; font-size: 13px; line-height: 1.7; }
.text-link { display: inline-block; margin-top: 20px; color: var(--blue); font-size: 11px; font-weight: 700; }
.text-link span { margin-left: 8px; }
.path-steps { border-top: 1px solid #cbd0c5; }
.path-step { display: grid; grid-template-columns: 40px 1fr 42px; align-items: center; gap: 15px; min-height: 82px; border-bottom: 1px solid #cbd0c5; }
.step-number { color: #82897f; font: 10px var(--mono); }
.path-step h3 { margin: 0 0 3px; font-size: 14px; font-weight: 600; }
.path-step p { margin: 0; color: #737a72; font-size: 11px; }
.step-symbol { justify-self: end; display: grid; width: 33px; height: 33px; place-items: center; font-size: 16px; }
.symbol-yellow { background: var(--lime); }
.symbol-blue { background: #d3dcff; color: var(--blue); }
.symbol-pink { background: #f7d6e3; color: #b25476; }

.about-strip { display: flex; align-items: center; gap: 22px; padding: 43px 10.4%; border-bottom: 1px solid var(--line); }
.about-mark { color: var(--blue); font-size: 28px; font-weight: 700; letter-spacing: -.06em; }
.about-strip p { max-width: 575px; margin: 0; font-size: 14px; line-height: 1.55; }
.about-signoff { margin-left: auto; color: #848b82; font: 8px var(--mono); letter-spacing: .07em; white-space: nowrap; }
.site-footer { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 2fr); align-items: start; gap: 20px 32px; padding: 25px 6.3%; border-top: 1px solid var(--line); }
.footer-brand { font-size: 13px; }
.footer-brand .brand-mark { width: 27px; height: 27px; }
.footer-identity { display: grid; justify-items: start; gap: 13px; }
.footer-identity > span { color: #7e857c; font: 8px/1.6 var(--mono); letter-spacing: .04em; }
.footer-contact > .eyebrow { margin-bottom: 12px; color: #737a72; }
.footer-contact-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 14px; }
.footer-contact-links a { display: inline-flex; min-width: 0; align-items: center; gap: 7px; color: #4f5a50; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.footer-contact-links a:hover { color: var(--blue); }
.footer-contact-links svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-contact-links .footer-report { color: #8f3f2c; font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-links a { color: #737a72; font-size: 10px; }
.footer-links a:hover { color: var(--blue); }
.back-top { justify-self: end; color: var(--ink); font: 8px var(--mono); letter-spacing: .04em; }

.lesson-dialog { width: min(510px, calc(100% - 30px)); padding: 0; border: 1px solid #39423d; background: var(--paper); color: var(--ink); box-shadow: 0 25px 90px rgb(12 19 16 / 25%); }
.lesson-dialog::backdrop { background: rgb(13 20 17 / 65%); backdrop-filter: blur(3px); }
.dialog-top { display: flex; min-height: 50px; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
.dialog-brand { color: #777e75; font: 9px var(--mono); letter-spacing: .06em; }
.dialog-close { width: 30px; height: 30px; border: 0; background: transparent; font-size: 24px; cursor: pointer; }
.dialog-content { padding: 31px 34px 34px; }
.dialog-content .eyebrow { color: #7d847a; }
.dialog-content h2 { margin: 10px 0; font-size: 30px; line-height: 1.12; letter-spacing: -.04em; }
.dialog-content > p:not(.eyebrow):not(.dialog-hint) { margin: 0; color: #6f766d; font-size: 13px; line-height: 1.65; }
.dialog-code { display: grid; gap: 8px; margin: 22px 0; padding: 17px 19px; background: #17201d; }
.code-line { font: 12px var(--mono); }
.code-muted { color: #929b92; }
.code-tag { color: #aab7ff; }
.code-text { color: var(--lime); }
.dialog-hint { margin: 0 0 21px; color: #727970; font-size: 11px; line-height: 1.5; }
.dialog-hint span { margin-right: 6px; color: #bd7e26; }
.dialog-start { width: 100%; justify-content: space-between; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 5; padding: 13px 17px; background: var(--ink); color: white; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateY(0); }

@keyframes reveal { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

@media (max-width: 760px) {
  .site-header { height: 64px; padding: 0 5%; }
  .main-nav { gap: 16px; }
  .nav-link { font-size: 11px; }
  .header-cta { padding: 9px 10px; font-size: 10px; }
  .hero { grid-template-columns: 1fr .78fr; min-height: 390px; margin: 17px 2.5% 0; }
  .hero-copy { padding: 40px 7%; }
  .hero h1 { font-size: clamp(39px, 7vw, 58px); }
  .hero-description { font-size: 14px; }
  .hero-art { min-height: 390px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
  .hero-bottomline { font-size: 7px; }
  .quick-stats { margin: 0 5%; }
  .stat { gap: 7px; font-size: 10px; }
  .stat-link { font-size: 10px; }
  .lesson-section, .path-section { padding-right: 7%; padding-left: 7%; }
  .lesson-row { grid-template-columns: 27px minmax(0, 1fr) 36px; gap: 10px; padding: 13px 0; }
  .lesson-duration { grid-column: 2; grid-row: 2; padding-top: 5px; }
  .lesson-open { grid-column: 3; grid-row: 1 / span 2; }
  .lesson-index { padding-top: 4px; }
  .path-section { gap: 6%; }
  .about-strip { padding-right: 7%; padding-left: 7%; }
  .about-signoff { display: none; }
}

@media (max-width: 540px) {
  .site-header { padding: 0 4%; }
  .brand { gap: 7px; font-size: 13px; }
  .brand-mark { width: 28px; height: 28px; }
  .main-nav { gap: 12px; }
  .main-nav .nav-link:last-child { display: none; }
  .header-cta { font-size: 0; }
  .header-cta span { padding: 0; font-size: 15px; }
  .hero { display: flex; flex-direction: column; margin: 12px 3% 0; }
  .hero-copy { min-height: 355px; padding: 40px 7% 56px; }
  .hero h1 { margin-top: 22px; font-size: clamp(43px, 13vw, 62px); }
  .hero-description { max-width: 380px; }
  .hero-actions { flex-direction: row; align-items: center; gap: 13px; }
  .hero-note { font-size: 10px; }
  .hero-art { min-height: 230px; background-position: center 48%; }
  .art-sticker { top: 30%; left: 8%; width: 82px; height: 82px; font-size: 12px; }
  .art-caption { font-size: 8px; }
  .quick-stats { grid-template-columns: 1fr 1fr; gap: 15px 8px; padding: 16px 0; }
  .stat { font-size: 10px; }
  .stat-link { justify-self: start; }
  .lesson-section { padding: 59px 6% 62px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2 { max-width: 270px; font-size: 32px; }
  .section-intro { max-width: 300px; font-size: 12px; }
  .lesson-count { padding-top: 6px; font-size: 8px; white-space: nowrap; }
  .lesson-controls { align-items: stretch; flex-direction: column-reverse; gap: 12px; margin-top: 23px; }
  .search-box { width: 100%; }
  .filter-list { gap: 3px; }
  .filter-button { min-height: 31px; padding: 0 8px; font-size: 10px; }
  .lesson-row { min-height: 112px; }
  .lesson-main h3 { font-size: 14px; }
  .lesson-main p { max-width: 280px; font-size: 10px; }
  .lesson-tag, .lesson-level { font-size: 7px; }
  .lesson-duration { font-size: 7px; }
  .path-section { grid-template-columns: 1fr; gap: 28px; padding: 54px 7%; }
  .path-copy h2 { font-size: 36px; }
  .about-strip { gap: 14px; padding: 30px 7%; }
  .about-mark { font-size: 23px; }
  .about-strip p { font-size: 12px; }
  .site-footer { grid-template-columns: 1fr; gap: 16px; padding: 20px 4%; }
  .footer-contact-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .back-top { justify-self: start; }
  .dialog-content { padding: 25px 22px; }
}

.inner-page { width: min(1120px, 100%); margin: 0 auto; padding: 67px 6.5% 85px; }
.page-intro { max-width: 700px; padding: 0 0 34px; }
.page-intro .eyebrow, .lesson-heading .eyebrow { color: #727a70; }
.page-intro h1, .lesson-heading h1, .auth-card h1 { margin: 18px 0 14px; font-size: clamp(40px, 6vw, 68px); line-height: 1; font-weight: 600; }
.page-intro > p:last-child, .lesson-heading > p:last-child { max-width: 580px; margin: 0; color: #697168; font-size: 15px; line-height: 1.65; }
.compact-intro { padding-bottom: 30px; }
.compact-intro h1 { font-size: clamp(38px, 5.3vw, 58px); }
.course-catalog { border-top: 1px solid var(--line); }
.course-catalog .lesson-controls { margin-top: 13px; margin-bottom: 21px; }
.course-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.course-card { min-width: 0; padding: 22px 23px 13px; border: 1px solid var(--line); background: #fafaf6; animation: reveal .3s ease both; }
.course-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-count { color: #7a8178; font: 9px var(--mono); white-space: nowrap; }
.course-card h2 { margin: 20px 0 7px; font-size: 21px; font-weight: 600; }
.course-card > p { min-height: 35px; margin: 0; color: #727a70; font-size: 12px; line-height: 1.55; }
.course-lesson-links { margin: 17px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.course-lesson-links li { border-bottom: 1px solid var(--line); }
.course-lesson-links a { display: flex; min-height: 41px; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; transition: color .15s ease; }
.course-lesson-links a:hover { color: var(--blue); }
.course-lesson-links a span:last-child { color: #737a72; }
.course-lesson-links a.is-locked { color: #737a72; }
.course-lesson-links a.is-locked:hover { color: #8f3f2c; }
.course-lesson-links a.is-locked .course-lesson-state { color: #8f3f2c; }
.course-lesson-state { flex: 0 0 auto; color: #7d857a; font: 8px var(--mono); }
.pro-gate { display: grid; justify-items: start; gap: 14px; max-width: 720px; padding: 28px; border: 1px solid #c9d9a0; background: #f8fbef; }
.pro-gate .eyebrow { color: #687168; }
.pro-gate h1 { margin: 0; font-size: clamp(35px, 5vw, 52px); }
.pro-gate p:not(.eyebrow) { max-width: 560px; margin: 0; color: #596458; font-size: 13px; line-height: 1.7; }
.pro-gate .text-link { color: var(--blue); font-size: 12px; }
.course-catalog .empty-state { margin: 0; }
.back-link { display: inline-block; margin: 0 0 25px; color: #687168; font-size: 12px; }
.lesson-heading { max-width: 770px; padding-bottom: 30px; }
.lesson-heading h1 { font-size: clamp(38px, 5.2vw, 59px); }
.lesson-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); align-items: start; gap: 38px; }
.lesson-content-column { min-width: 0; }
.lesson-block { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.lesson-block .eyebrow { color: #788076; }
.lesson-block h2 { margin: 11px 0 8px; font-size: 24px; font-weight: 600; }
.lesson-block > p:not(.eyebrow) { max-width: 660px; color: #687168; font-size: 13px; line-height: 1.7; }
.lesson-example { max-width: 100%; overflow: auto; padding: 15px; background: #17201d; color: #d8fa66; font: 11px/1.65 var(--mono); white-space: pre; }
.lesson-example code { font: inherit; }
.task-block { padding: 22px 20px; border: 0; background: #e8eadd; }
.task-block > p:not(.eyebrow) { margin-bottom: 9px; }
.quiz-block { margin-top: 22px; }
.quiz-question { margin: 19px 0; padding: 0; border: 0; }
.quiz-question legend { margin-bottom: 10px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.quiz-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 11px; border: 1px solid var(--line); background: #fafaf6; font-size: 12px; line-height: 1.5; cursor: pointer; }
.quiz-option + .quiz-option { margin-top: 5px; }
.quiz-option:has(input:checked) { border-color: var(--blue); background: #e9edff; }
.quiz-option input { margin: 2px 0 0; accent-color: var(--blue); }
.quiz-block form > .button { margin-top: 3px; }
.form-status { min-height: 19px; margin: 12px 0 0; color: #426a2a; font-size: 12px; line-height: 1.55; }
.form-status.is-error { color: #a34432; }
.lesson-aside { position: sticky; top: 20px; padding: 17px; border: 1px solid var(--line); background: #fafaf6; }
.lesson-aside > .eyebrow { margin-bottom: 13px; color: #737a72; }
.video-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #17201d; }
.video-credit { margin: 10px 0 20px; color: #747b72; font-size: 10px; line-height: 1.55; }
.video-credit a { color: var(--blue); }
.video-placeholder { display: grid; min-height: 155px; align-content: center; gap: 9px; padding: 16px; background: #e7e9df; }
.video-placeholder .eyebrow { color: #72796e; }
.video-placeholder p { margin: 0; color: #687168; font-size: 11px; line-height: 1.55; }
.video-placeholder a, .pro-inline-link { color: var(--blue); font-size: 11px; font-weight: 600; }
.lesson-progress-box { display: flex; gap: 11px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line); }
.lesson-progress-box p { margin: 0; color: #6c746b; font-size: 11px; line-height: 1.55; }
.progress-mark { color: #9b7d2d; }
.lesson-pagination { display: flex; justify-content: space-between; gap: 20px; margin-top: 27px; padding-top: 17px; border-top: 1px solid var(--line); }
.lesson-pagination a { max-width: 48%; color: var(--blue); font-size: 11px; line-height: 1.5; }
.lesson-pagination a:last-child { text-align: right; }

.playground-shell { border: 1px solid #303b35; background: #17201d; color: #f3f3ed; }
.playground-toolbar { display: flex; min-height: 59px; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 15px; border-bottom: 1px solid #354039; }
.playground-toolbar .eyebrow { color: #bbc4b8; }
.playground-toolbar > div { display: flex; align-items: center; gap: 8px; }
.small-button { min-height: 36px; padding: 0 12px; border: 1px solid var(--line); background: transparent; color: inherit; font-size: 11px; cursor: pointer; }
.small-button:hover { background: var(--lime); color: var(--ink); }
.run-button { min-height: 36px; padding: 0 13px; }
.editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editor-panel, .preview-panel { display: flex; min-width: 0; min-height: 280px; flex-direction: column; border-right: 1px solid #354039; border-bottom: 1px solid #354039; }
.editor-panel > span, .preview-label { display: flex; min-height: 37px; align-items: center; justify-content: space-between; padding: 0 12px; color: #c0c8bd; font: 9px var(--mono); letter-spacing: .05em; }
.editor-panel textarea { width: 100%; min-height: 245px; flex: 1; resize: vertical; padding: 13px; border: 0; outline: 0; background: #202a25; color: #e1e8dc; font: 11px/1.6 var(--mono); tab-size: 2; }
.editor-panel textarea:focus { box-shadow: inset 0 0 0 1px #91aa57; }
.preview-panel { border-right: 0; border-bottom: 0; background: #fff; color: var(--ink); }
.preview-label { background: #17201d; color: #c0c8bd; }
.preview-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }
.preview-panel iframe { width: 100%; min-height: 280px; flex: 1; border: 0; background: white; }
.playground-footnote { margin: 0; padding: 12px 15px; color: #b9c2b6; font-size: 10px; line-height: 1.5; }
.playground-task { margin: 0; padding: 15px 17px; background: #e7e9df; color: #343d35; font-size: 12px; line-height: 1.6; }

.tutor-layout { display: grid; grid-template-columns: 235px minmax(0, 1fr); gap: 18px; }
.tutor-side, .tutor-room { border: 1px solid var(--line); background: #fafaf6; }
.tutor-side { padding: 20px; }
.tutor-side > .eyebrow { color: #737a72; }
.tutor-side > label { display: block; margin: 17px 0 8px; font-size: 12px; font-weight: 600; }
.tutor-side select, .account-form input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); background: white; color: var(--ink); font-size: 12px; }
.tutor-prompt { margin-top: 24px; padding: 13px; background: #e8eadd; }
.tutor-prompt span { color: #916f18; }
.tutor-prompt p, .tutor-disclaimer { margin: 8px 0 0; color: #687168; font-size: 11px; line-height: 1.6; }
.tutor-disclaimer { color: #878e84; }
.tutor-room { display: flex; min-height: 505px; flex-direction: column; }
.chat-log { display: flex; min-height: 360px; max-height: 570px; flex: 1; flex-direction: column; gap: 12px; overflow-y: auto; padding: 20px; }
.chat-message { max-width: 88%; padding: 12px 14px; }
.tutor-message { align-self: flex-start; background: #e9eadf; }
.learner-message { align-self: flex-end; background: #e8ecff; }
.message-label { color: #747b72; font: 9px var(--mono); letter-spacing: .05em; }
.chat-message p { margin: 7px 0 0; color: #343d35; font-size: 12px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { padding: 13px; border-top: 1px solid var(--line); }
.chat-form textarea { display: block; width: 100%; min-height: 73px; resize: vertical; padding: 11px; border: 1px solid var(--line); outline-color: var(--blue); background: white; color: var(--ink); font: 12px/1.6 var(--display); }
.chat-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.chat-actions > span { color: #737a72; font-size: 10px; line-height: 1.5; }
.chat-actions .button { min-height: 39px; flex: 0 0 auto; }
.tutor-library, .tutor-admin { margin-top: 34px; padding-top: 24px; border-top: 1px solid var(--line); }
.resource-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.resource-heading .eyebrow { margin: 0 0 6px; color: #737a72; }
.resource-heading h2 { margin: 0; font-size: 23px; }
.resource-heading > .form-status { margin: 0; text-align: right; }
.resource-player { display: grid; width: 100%; min-height: 150px; aspect-ratio: 16 / 9; max-height: 620px; place-items: center; overflow: hidden; background: #202723; color: #e1e8dc; }
.resource-player > p { margin: 20px; text-align: center; font-size: 12px; line-height: 1.6; }
.resource-player video { display: block; width: 100%; height: 100%; max-height: 620px; background: #101311; }
.resource-list { display: grid; }
.resource-item { display: grid; grid-template-columns: 176px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.resource-thumb { position: relative; display: grid; width: 176px; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; border: 0; background: #e8eadd; color: #343d35; font: 10px var(--mono); text-decoration: none; cursor: pointer; }
.resource-thumb img { width: 100%; height: 100%; object-fit: cover; }
.resource-play-icon { position: absolute; display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--lime); color: #202723; }
.resource-copy h3 { margin: 5px 0; font-size: 15px; }
.resource-copy p, .resource-empty { margin: 0; color: #687168; font-size: 12px; line-height: 1.6; }
.resource-open { color: #343d35; font-size: 11px; font-weight: 700; white-space: nowrap; }
.resource-delete { grid-column: 3; }
.resource-upload-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 760px; padding: 20px; border: 1px solid var(--line); background: #fafaf6; }
.resource-upload-form label { display: grid; gap: 7px; color: #343d35; font-size: 11px; font-weight: 600; }
.resource-upload-form input, .resource-upload-form textarea, .resource-upload-form select { width: 100%; min-height: 40px; padding: 9px 10px; border: 1px solid var(--line); background: white; color: var(--ink); font: 12px var(--display); }
.resource-upload-form textarea { resize: vertical; }
.resource-upload-form button, .resource-upload-form .form-status { justify-self: start; }
.resource-upload-form .form-status { margin: 0; }
.resource-upload-form [hidden] { display: none; }
.tutor-admin[hidden] { display: none; }

.auth-page { display: grid; min-height: calc(100vh - 155px); place-items: center; padding: 50px 20px; }
.auth-card { width: min(455px, 100%); padding: 33px; border: 1px solid var(--line); background: #fafaf6; }
.auth-card > .eyebrow { color: #737a72; }
.auth-card h1 { margin: 15px 0 10px; font-size: 43px; }
.auth-copy { margin: 0 0 22px; color: #6d756c; font-size: 12px; line-height: 1.6; }
.account-form { display: grid; gap: 9px; }
.account-form label { margin-top: 7px; font-size: 11px; font-weight: 600; }
.account-form .button { margin-top: 12px; }
.auth-switch { margin: 17px 0 0; color: #70776e; font-size: 11px; }
.auth-switch a { color: var(--blue); font-weight: 600; }
.google-button { display: grid; width: 100%; grid-template-columns: 27px 1fr; align-items: center; margin: 18px 0 0; border: 1px solid var(--line); background: white; color: var(--ink); text-align: left; }
.google-button:hover { background: #f0f2eb; }
.google-mark { display: block; width: 23px; height: 23px; }
.auth-separator { margin: 13px 0 8px; color: #838a80; font: 8px var(--mono); letter-spacing: .06em; text-align: center; }

.account-content, .certificate-content { border-top: 1px solid var(--line); padding-top: 22px; }
.account-empty { padding: 25px; border: 1px solid var(--line); background: #fafaf6; }
.account-empty h2 { margin: 9px 0; font-size: 22px; }
.account-empty p { max-width: 600px; color: #6d756c; font-size: 12px; line-height: 1.6; }
.account-welcome { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 22px; background: #e8eadd; }
.account-welcome .eyebrow { color: #71786e; }
.account-welcome h2 { margin: 7px 0 4px; font-size: 25px; }
.account-welcome p:last-child { margin: 0; color: #687168; font: 9px var(--mono); }
.account-welcome .small-button { border-color: #9da398; color: var(--ink); }
.account-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 14px 0; border: 1px solid var(--line); }
.account-stats > div { display: grid; min-height: 100px; align-content: center; gap: 6px; padding: 14px 18px; border-right: 1px solid var(--line); }
.account-stats > div:last-child { border-right: 0; }
.account-stats strong { font-size: 28px; }
.account-stats span { color: #70776e; font: 9px var(--mono); }
.account-links { display: flex; gap: 10px; flex-wrap: wrap; }
.account-links a { flex: 1 1 180px; padding: 16px; border: 1px solid var(--line); background: #fafaf6; font-size: 12px; }
.account-links a span { float: right; color: var(--blue); }
.account-invite { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 14px; padding: 17px; border: 1px solid #c9d9a0; background: #f8fbef; }
.account-invite h3 { margin: 0 0 5px; font-size: 13px; }
.account-invite p { margin: 0 0 9px; color: var(--muted); font-size: 10px; }
.account-invite .invite-link { width: min(440px, 100%); min-height: 36px; padding: 8px 10px; border: 1px solid var(--line); background: white; color: var(--ink); font: 11px var(--mono); }
.account-invite .small-button { flex: 0 0 auto; border-color: #9da398; color: var(--ink); }
.account-danger { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 27px; padding: 17px; border: 1px solid #e2c6bc; background: #fbf4ef; }
.account-danger h3 { margin: 0 0 5px; font-size: 13px; }
.account-danger p { margin: 0; color: #7b6c65; font-size: 10px; line-height: 1.5; }
.account-danger .small-button { flex: 0 0 auto; border-color: #b76a52; color: #8f3f2c; }

.pro-layout { display: grid; grid-template-columns: 1.2fr .8fr; gap: 35px; align-items: stretch; }
.pro-includes { padding: 27px 0; }
.pro-includes > .eyebrow, .pro-price-label { color: #737a72; }
.pro-includes h2 { margin: 17px 0; font-size: 32px; line-height: 1.12; }
.pro-includes ul { display: grid; gap: 14px; margin: 24px 0; padding: 0; list-style: none; }
.pro-includes li { padding-bottom: 13px; border-bottom: 1px solid var(--line); color: #4e584e; font-size: 13px; }
.pro-includes li::before { margin-right: 10px; color: #6d8d27; content: "✓"; }
.certificate-note { color: #858c82; font-size: 10px; line-height: 1.6; }
.pro-price { align-self: center; padding: 25px; border: 1px solid #354039; background: #17201d; color: #f5f5ef; }
.pro-badge { padding: 5px 8px; background: var(--lime); color: var(--ink); font: 9px var(--mono); }
.pro-price-label { margin: 24px 0 8px; color: #b6beb3; font: 9px var(--mono); }
.pro-price h2 { margin: 0 0 13px; font-size: 28px; line-height: 1.1; }
.pro-price > p:not(.pro-price-label):not(.form-status) { margin: 0 0 19px; color: #c3cbc0; font-size: 12px; line-height: 1.6; }
.pro-price .form-status { color: var(--lime); }

.certificate-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.certificate-card { display: grid; justify-items: start; gap: 13px; padding: 20px; border: 1px solid var(--line); background: #fafaf6; }
.certificate-card h2 { margin: 0; font-size: 19px; }
.certificate-card > p { margin: 0; color: #70776e; font-size: 11px; }
.certificate-card .small-button { color: var(--ink); }
.certificate-paper { position: relative; display: grid; justify-items: center; gap: 13px; max-width: 840px; min-height: 530px; margin: 16px auto; padding: 48px; border: 1px solid #737f5f; outline: 7px double #becb90; outline-offset: -15px; background: #fafaf6; text-align: center; }
.certificate-paper > .eyebrow { color: #687168; }
.certificate-mark { color: var(--blue); font-size: 34px; font-weight: 700; }
.certificate-paper h2 { margin: 0; font-size: clamp(36px, 6vw, 58px); line-height: 1; }
.certificate-presented { margin: 3px 0 0; color: #727970; font-size: 12px; }
.certificate-paper h3 { margin: 0; font-size: 29px; font-weight: 500; }
.certificate-paper h4 { margin: 0; color: #425de5; font-size: 22px; }
.certificate-footer { display: flex; width: 100%; justify-content: space-between; gap: 15px; margin-top: auto; padding-top: 20px; border-top: 1px solid var(--line); text-align: left; font-size: 9px; line-height: 1.6; }
.certificate-footer span:last-child { text-align: right; }
.certificate-footer small { color: #747b72; font: 8px var(--mono); overflow-wrap: anywhere; }
.no-print { margin-top: 8px; }
.home-path-links { padding: 54px 10.4%; background: #e7e9df; }
.home-path-links h2 { margin: 12px 0 8px; font-size: 32px; }
.home-path-links > p:not(.eyebrow) { max-width: 650px; color: #687168; font-size: 13px; line-height: 1.65; }
.home-path-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.school-byline { padding-top: 14px; border-top: 1px solid #cbd0c5; font: 9px var(--mono); }
.legal-copy { max-width: 790px; border-top: 1px solid var(--line); }
.legal-copy h2 { margin: 29px 0 8px; font-size: 20px; }
.legal-copy p { margin: 0; color: #697168; font-size: 13px; line-height: 1.8; }

@media (max-width: 760px) {
  .inner-page { padding: 50px 6% 65px; }
  .lesson-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, .8fr); gap: 20px; }
  .tutor-layout { grid-template-columns: 190px minmax(0, 1fr); }
  .pro-layout { gap: 22px; }
  .home-path-links { padding-right: 7%; padding-left: 7%; }
}
@media (max-width: 560px) {
  .site-header.app-header { padding: 0 4%; }
  .app-header .main-nav { gap: 8px; }
  .app-header .nav-link { font-size: 10px; }
  .app-header .nav-link:last-child { display: none; }
  .app-header .brand { gap: 6px; font-size: 12px; }
  .app-header .brand-mark { width: 26px; height: 26px; font-size: 9px; }
  .inner-page { padding: 42px 5% 54px; }
  .page-intro h1, .lesson-heading h1 { font-size: 42px; }
  .page-intro > p:last-child, .lesson-heading > p:last-child { font-size: 13px; }
  .course-grid, .certificate-grid { grid-template-columns: 1fr; }
  .course-card { padding: 18px; }
  .course-card h2 { font-size: 19px; }
  .lesson-layout { grid-template-columns: 1fr; }
  .lesson-aside { position: static; grid-row: 1; }
  .editor-grid { grid-template-columns: 1fr; }
  .editor-panel, .preview-panel { min-height: 230px; border-right: 0; }
  .editor-panel textarea, .preview-panel iframe { min-height: 195px; }
  .playground-toolbar { align-items: flex-start; }
  .playground-toolbar > div { flex-wrap: wrap; justify-content: flex-end; }
  .tutor-layout, .pro-layout { grid-template-columns: 1fr; }
  .tutor-room { min-height: 470px; }
  .chat-log { min-height: 300px; padding: 13px; }
  .chat-message { max-width: 96%; }
  .resource-heading { align-items: flex-start; flex-direction: column; gap: 4px; }
  .resource-heading > .form-status { text-align: left; }
  .resource-item { grid-template-columns: 112px minmax(0, 1fr); gap: 11px; }
  .resource-thumb { width: 112px; }
  .resource-copy h3 { font-size: 13px; overflow-wrap: anywhere; }
  .resource-copy p { font-size: 11px; }
  .resource-open, .resource-delete { grid-column: 2; justify-self: start; }
  .resource-upload-form { grid-template-columns: 1fr; padding: 15px; }
  .resource-player { min-height: 190px; }
  .auth-page { min-height: calc(100vh - 135px); padding: 28px 15px; }
  .auth-card { padding: 24px 20px; }
  .account-stats > div { min-height: 84px; padding: 10px; }
  .account-stats strong { font-size: 22px; }
  .account-stats span { font-size: 7px; }
  .certificate-paper { min-height: 480px; padding: 38px 23px; }
  .certificate-paper h3 { font-size: 22px; }
  .certificate-footer { font-size: 8px; }
  .account-danger { align-items: flex-start; flex-direction: column; }
  .account-invite { align-items: flex-start; flex-direction: column; }
  .account-invite .invite-link { width: 100%; }
  .site-footer.app-footer { grid-template-columns: 1fr; padding: 18px 4%; }
  .footer-links { margin-left: 0; }
  .footer-contact-links { grid-template-columns: 1fr 1fr; }
  .home-path-links { padding: 38px 6%; }
  .home-path-links h2 { font-size: 27px; }
  .home-path-actions { align-items: flex-start; flex-direction: column; gap: 12px; }
}
@media print {
  body * { visibility: hidden !important; }
  .certificate-paper, .certificate-paper * { visibility: visible !important; }
  .certificate-paper { position: absolute; inset: 0; width: 100%; max-width: none; min-height: 95vh; margin: 0; border: 0; outline: 7px double #becb90; box-shadow: none; }
  .no-print { display: none !important; }
}