/* SGL LMS Kit: student pages. Colors and fonts come from theme.css (brand.json). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 560; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 .5em; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
em.accent, .accent-word { font-style: italic; color: var(--accent); font-weight: 500; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.eyebrow { font: 700 .74rem/1 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--accent2); margin-bottom: 14px; display: inline-flex; gap: 10px; align-items: center; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 650; font-size: .98rem; text-decoration: none; transition: transform .25s cubic-bezier(.2,.7,.2,1), background-color .25s ease, box-shadow .25s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -10px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-accent:hover { background: color-mix(in srgb, var(--accent) 88%, white); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-soft); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 22%, transparent); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-light { background: rgba(255,255,255,.14); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-sm { min-height: 38px; padding: 0 15px; font-size: .9rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--accent2); font-weight: 650; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* Sample bar (demo mode) */
.sample-bar { background: var(--ink); color: #f4ead8; font-size: .82rem; padding: 7px 16px; text-align: center; position: relative; z-index: 60; }
.sample-bar b { color: var(--accent); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .72rem; margin-right: 8px; }
.sample-bar a { color: #fff; font-weight: 600; margin-left: 10px; }
@media (max-width: 720px) { .sample-bar .long { display: none; } }
.chip-sample { display: inline-flex; align-items: center; gap: 6px; background: color-mix(in srgb, var(--accent) 22%, white); color: #6e4b06; font-size: .7rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.site-head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font: 600 1.2rem/1 var(--font-display); color: var(--ink); white-space: nowrap; }
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.site-nav a { text-decoration: none; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.site-nav .btn { margin-left: 6px; }
.site-nav a.btn-ink { color: #fff; } .site-nav a.btn-ink:hover { background: var(--ink-soft); }
.site-head.over { position: absolute; left: 0; right: 0; background: transparent; border: 0; backdrop-filter: none; }
.site-head.over .brand, .site-head.over .site-nav a:not(.btn) { color: #fff; }
.site-head.over .site-nav a:not(.btn):hover { background: rgba(255,255,255,.12); }
@media (max-width: 720px) {
  .site-head .wrap { min-height: 60px; gap: 10px; }
  .brand { font-size: 1.05rem; } .brand img { width: 32px; height: 32px; }
  .site-nav a:not(.btn) { padding: 8px 10px; font-size: .9rem; }
  .site-nav .hide-sm { display: none; }
  .site-nav .btn { min-height: 38px; padding: 0 14px; font-size: .88rem; }
}

/* Catalog hero */
.hero { position: relative; min-height: min(86vh, 820px); display: grid; align-items: end; color: #fff; isolation: isolate; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-image) center 40% / cover no-repeat; z-index: -2; transform: scale(1.03); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 94%, transparent) 0%, color-mix(in srgb, var(--ink) 78%, transparent) 38%, color-mix(in srgb, var(--ink) 18%, transparent) 72%, transparent 100%), linear-gradient(0deg, color-mix(in srgb, var(--ink) 70%, transparent), transparent 40%); }
.hero .wrap { padding: 150px 0 84px; }
.hero h1 { color: #fff; max-width: 16.5ch; font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 520; }
.hero .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 34rem; color: rgba(255,255,255,.86); margin: 18px 0 30px; }
.hero .eyebrow { color: var(--accent); }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 44px; color: rgba(255,255,255,.8); font-size: .92rem; }
.hero-proof span { display: inline-flex; gap: 8px; align-items: center; }
.hero-proof svg { color: var(--accent); }
@media (max-width: 720px) {
  .hero { min-height: 88svh; }
  .hero::before { background-image: var(--hero-image-phone); background-position: center 30%; }
  .hero::after { background: linear-gradient(0deg, color-mix(in srgb, var(--ink) 96%, transparent) 0%, color-mix(in srgb, var(--ink) 84%, transparent) 46%, color-mix(in srgb, var(--ink) 10%, transparent) 78%); }
  .hero .wrap { padding: 120px 0 44px; }
  .hero-proof { gap: 14px 20px; margin-top: 30px; font-size: .86rem; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.section-head p { max-width: 36rem; margin: 0; }
.sand { background: var(--sand); }
#courses { background: radial-gradient(ellipse 70% 60% at 85% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%), radial-gradient(ellipse 60% 50% at 0% 100%, color-mix(in srgb, var(--accent2) 10%, transparent), transparent 70%), var(--paper); }

/* Course cards */
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.course-card { background: #fff; border-radius: calc(var(--radius) + 4px); overflow: hidden; text-decoration: none; display: flex; flex-direction: column; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -26px color-mix(in srgb, var(--ink) 55%, transparent); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.course-card:hover { transform: translateY(-4px); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 28px 50px -26px color-mix(in srgb, var(--ink) 65%, transparent); }
.course-card .pic { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.course-card .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.course-card:hover .pic img { transform: scale(1.04); }
.course-card .pic .chip-sample { position: absolute; left: 14px; top: 14px; }
.course-card .price { position: absolute; right: 14px; bottom: 14px; background: var(--ink); color: #fff; font-weight: 700; border-radius: 999px; padding: 6px 13px; font-size: .92rem; }
.course-card .txt { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { margin-bottom: 8px; }
.course-card p { color: var(--muted); font-size: .97rem; margin-bottom: 18px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: .86rem; margin-top: auto; }
.meta span { display: inline-flex; align-items: center; gap: 6px; }
.meta svg { color: var(--accent2); }

/* Steps over photo */
.steps-band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.steps-band::before { content: ""; position: absolute; inset: 0; background: url(/assets/img/covers/default.webp) center/cover; z-index: -2; }
.steps-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, color-mix(in srgb, var(--ink) 95%, transparent), color-mix(in srgb, var(--ink) 82%, transparent)); z-index: -1; }
.steps-band h2 { color: #fff; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 24px 22px; backdrop-filter: blur(4px); }
.step .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); margin-bottom: 18px; }
.step h3 { color: #fff; font-size: 1.15rem; }
.step p { color: rgba(255,255,255,.75); font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Footer */
.site-foot { background: var(--ink); color: rgba(255,255,255,.72); padding: 44px 0 36px; font-size: .92rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-foot a { color: #fff; text-decoration: none; margin-left: 18px; }
.site-foot .brand { color: #fff; }

/* Course page */
.course-hero { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.course-hero .bg { position: absolute; inset: 0; z-index: -2; }
.course-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.course-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 95%, transparent) 0%, color-mix(in srgb, var(--ink) 80%, transparent) 50%, color-mix(in srgb, var(--ink) 40%, transparent)); }
.course-hero .wrap { padding: 64px 0 72px; display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.course-hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); }
.course-hero .sub { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 38rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .86rem; font-weight: 600; }
.chip svg { color: var(--accent); }
.buy-card { background: #fff; color: var(--text); border-radius: calc(var(--radius) + 4px); padding: 26px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); position: relative; top: 0; }
.buy-card .amount { font: 600 2.4rem/1 var(--font-display); color: var(--ink); margin-bottom: 4px; }
.buy-card ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: .94rem; }
.buy-card li { display: flex; gap: 10px; align-items: flex-start; }
.buy-card li svg { color: var(--success); flex: none; margin-top: 3px; }
.buy-card .btn { width: 100%; margin-top: 18px; }
.course-body { display: grid; grid-template-columns: 1fr 360px; gap: 48px; padding: 56px 0 90px; }
.learn-card { background: #fff; border-radius: var(--radius); padding: 28px; border-top: 4px solid var(--accent); margin-bottom: 32px; }
.learn-card ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 26px; }
.learn-card li { display: flex; gap: 10px; }
.learn-card li svg { color: var(--accent2); flex: none; margin-top: 4px; }
.curriculum .mod { background: #fff; border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.curriculum summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; gap: 14px; align-items: center; }
.curriculum summary::-webkit-details-marker { display: none; }
.curriculum summary .n { width: 34px; height: 34px; border-radius: 10px; background: var(--sand); color: var(--ink); font-weight: 750; display: grid; place-items: center; flex: none; }
.curriculum summary h3 { margin: 0; font-size: 1.1rem; }
.curriculum summary small { display: block; color: var(--muted); font-size: .84rem; margin-top: 2px; }
.curriculum summary .caret { margin-left: auto; transition: transform .3s ease; color: var(--muted); }
.curriculum details[open] .caret { transform: rotate(180deg); }
.curriculum ol { list-style: none; margin: 0; padding: 0 22px 14px 70px; }
.curriculum ol li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); font-size: .96rem; }
.curriculum ol li span:last-child { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.cert-teaser { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; position: sticky; top: 90px; }
.cert-teaser h3 { color: #fff; }
.cert-mini { background: #fbf8f2; color: var(--ink); border-radius: 8px; aspect-ratio: 11 / 8.5; padding: 7%; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 20px 40px -24px rgba(0,0,0,.6); margin: 16px 0 14px; }
.cert-mini::before { content: ""; position: absolute; inset: 4%; border: 1.5px solid var(--ink); border-radius: 3px; }
.cert-mini::after { content: ""; position: absolute; inset: 6%; border: 1px solid var(--accent); border-radius: 2px; }
.cert-mini small { font: 700 .55rem/1 var(--font-body); letter-spacing: .14em; color: var(--accent); text-transform: uppercase; }
.cert-mini b { font: 600 1.25rem/1.1 var(--font-display); margin: 8px 0 4px; }
.cert-mini i { font-size: .62rem; color: var(--muted); }
.cert-mini .ln { width: 46%; height: 1px; background: var(--accent); margin: 4px 0 6px; }
@media (max-width: 900px) {
  .course-hero .wrap, .course-body { grid-template-columns: 1fr; gap: 28px; }
  .course-hero .wrap { padding: 40px 0 44px; }
  .learn-card ul { grid-template-columns: 1fr; }
  .cert-teaser { position: static; }
  .curriculum ol { padding-left: 22px; }
}

/* Panels and forms */
.panel { background: #fff; border-radius: calc(var(--radius) + 2px); padding: 28px; box-shadow: 0 16px 40px -30px color-mix(in srgb, var(--ink) 60%, transparent); }
label.f { display: block; font-weight: 650; font-size: .92rem; margin: 0 0 16px; color: var(--ink); }
label.f span { display: block; margin-bottom: 6px; }
label.f small { display: block; font-weight: 400; color: var(--muted); margin-top: 5px; }
.input, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="number"], input[type="date"], select, textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent); background: #fff; padding: 11px 14px; font-size: 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent2) 18%, transparent); }
.msg { border-radius: 12px; padding: 12px 15px; font-size: .94rem; margin: 0 0 16px; }
.msg.err { background: color-mix(in srgb, var(--danger) 10%, white); color: color-mix(in srgb, var(--danger) 80%, black); }
.msg.ok { background: color-mix(in srgb, var(--success) 12%, white); color: color-mix(in srgb, var(--success) 75%, black); }
.msg.info { background: color-mix(in srgb, var(--accent2) 12%, white); color: color-mix(in srgb, var(--accent2) 60%, black); }

/* Sign in */
.auth { min-height: calc(100vh - 68px); display: grid; grid-template-columns: 1.05fr 1fr; }
.auth .photo { position: relative; background: url(/assets/img/hero-m.webp) center 30% / cover; }
.auth .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--ink) 92%, transparent), color-mix(in srgb, var(--ink) 15%, transparent) 60%); }
.auth .photo .quote { position: absolute; left: 48px; right: 48px; bottom: 48px; color: #fff; z-index: 1; }
.auth .photo .quote h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth .form-side { display: grid; place-items: center; padding: 48px 24px; }
.auth .panel { width: min(440px, 100%); }
.tabs { display: flex; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 999px; padding: 4px; margin-bottom: 24px; }
.tabs button { flex: 1; border: 0; background: transparent; border-radius: 999px; min-height: 42px; font-weight: 650; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: color-mix(in srgb, var(--ink) 12%, transparent); }
.demo-box { background: color-mix(in srgb, var(--accent) 14%, white); border-radius: 12px; padding: 16px; margin-top: 20px; font-size: .92rem; }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } .auth .photo { min-height: 240px; } .auth .photo .quote { left: 20px; right: 20px; bottom: 22px; } .auth .photo .quote h2 { font-size: 1.6rem; } }

/* Dashboard */
.dash-hero { background: linear-gradient(120deg, var(--ink), var(--ink-soft)); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.dash-hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-image) right 30% / cover no-repeat; opacity: .32; z-index: -1; mask-image: linear-gradient(90deg, transparent 20%, #000 75%); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000 75%); }
.dash-hero .wrap { padding: 46px 0 96px; }
.dash-hero h1 { color: #fff; font-size: clamp(2rem, 3.6vw, 2.9rem); }
.dash-hero p { color: rgba(255,255,255,.8); margin: 0; }
.dash-stats { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.dash-stats div { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 18px; min-width: 128px; }
.dash-stats b { display: block; font: 600 1.6rem/1.1 var(--font-display); color: #fff; }
.dash-stats small { color: rgba(255,255,255,.72); font-size: .82rem; }
.my-courses { margin-top: -64px; position: relative; display: grid; gap: 20px; }
.my-course { background: #fff; border-radius: calc(var(--radius) + 4px); display: grid; grid-template-columns: 260px 1fr auto; overflow: hidden; box-shadow: 0 22px 50px -30px color-mix(in srgb, var(--ink) 60%, transparent); }
.my-course .pic { position: relative; min-height: 190px; }
.my-course .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.my-course .pic .chip-sample { position: absolute; left: 12px; top: 12px; }
.my-course .txt { padding: 24px 26px; min-width: 0; }
.my-course h3 { margin-bottom: 6px; }
.my-course .side { padding: 24px 26px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border-left: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); min-width: 230px; }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--accent2) calc(var(--p) * 1%), color-mix(in srgb, var(--ink) 9%, transparent) 0); display: grid; place-items: center; position: relative; }
.ring::before { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; }
.ring b { position: relative; font: 650 1.35rem/1 var(--font-display); color: var(--ink); }
.ring b small { font-size: .7rem; }
.ring.done { background: conic-gradient(var(--success) 100%, transparent 0); }
.status-line { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 6px 12px; font-size: .84rem; font-weight: 650; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink); }
.pill.wait { background: color-mix(in srgb, var(--accent) 20%, white); color: #6e4b06; }
.pill.good { background: color-mix(in srgb, var(--success) 14%, white); color: color-mix(in srgb, var(--success) 75%, black); }
.pill.info { background: color-mix(in srgb, var(--accent2) 14%, white); color: color-mix(in srgb, var(--accent2) 60%, black); }
.next-up { margin-top: 16px; padding: 14px 16px; background: var(--paper); border-radius: 12px; display: flex; align-items: center; gap: 12px; }
.next-up small { display: block; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.next-up b { font-weight: 650; color: var(--ink); }
.next-up .play { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; }
@media (max-width: 900px) {
  .my-course { grid-template-columns: 1fr; }
  .my-course .pic { min-height: 0; aspect-ratio: 16 / 7; }
  .my-course .side { border-left: 0; border-top: 1px solid color-mix(in srgb, var(--ink) 7%, transparent); flex-direction: row; justify-content: space-between; min-width: 0; }
  .ring { width: 74px; height: 74px; flex: none; } .ring::before { inset: 8px; } .ring b { font-size: 1rem; }
  .my-course .side .link { white-space: nowrap; }
  .dash-stats { flex-wrap: nowrap; gap: 8px; } .dash-stats div { min-width: 0; flex: 1; padding: 10px 12px; } .dash-stats b { font-size: 1.35rem; }
  .dash-hero .wrap { padding: 30px 0 84px; }
}

/* Player */
.player { display: grid; grid-template-columns: 330px 1fr; min-height: calc(100vh - 68px); }
.outline { background: #fff; border-right: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); padding: 22px 0 40px; position: sticky; top: 68px; height: calc(100vh - 68px); overflow: auto; }
.outline .course-top { padding: 0 22px 18px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); margin-bottom: 8px; }
.outline .course-top a { font-size: .86rem; color: var(--muted); text-decoration: none; font-weight: 600; }
.outline .course-top h2 { font-size: 1.22rem; margin: 8px 0 12px; }
.bar { height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), color-mix(in srgb, var(--accent2) 60%, var(--accent))); border-radius: inherit; transition: width .6s cubic-bezier(.2,.7,.2,1); }
.outline .mod-title { padding: 16px 22px 6px; font: 750 .72rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.outline .mod-title em { font-style: normal; color: #8a5f0a; letter-spacing: .02em; text-transform: none; font-weight: 650; }
.outline a.l, .outline div.l { display: flex; gap: 12px; align-items: flex-start; padding: 10px 22px; text-decoration: none; color: var(--text); font-size: .95rem; line-height: 1.35; border-left: 3px solid transparent; }
.outline a.l:hover { background: var(--paper); }
.outline .l.current { background: color-mix(in srgb, var(--accent2) 10%, white); border-left-color: var(--accent2); font-weight: 650; }
.outline .l .st { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: -1px; }
.outline .l .st.done { background: var(--success); color: #fff; }
.outline .l .st.open { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--ink) 25%, transparent); color: var(--ink); }
.outline .l .st.waiting { background: color-mix(in srgb, var(--accent) 22%, white); color: #8a5f0a; }
.outline .l .st.locked { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--muted); }
.outline .l.locked, .outline .l.waiting { color: var(--muted); }
.outline .l small { display: block; color: var(--muted); font-size: .8rem; font-weight: 400; margin-top: 2px; }
.outline .quiz-row { margin: 6px 22px; padding: 10px 12px; border-radius: 10px; background: var(--paper); display: flex; gap: 10px; align-items: center; font-size: .9rem; text-decoration: none; color: var(--ink); font-weight: 600; }
.stage { padding: 28px clamp(16px, 3.4vw, 48px) 80px; min-width: 0; }
.stage-inner { max-width: 960px; margin: 0 auto; }
.versions { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.versions button { border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 650; font-size: .88rem; cursor: pointer; background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.versions button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.versions .lbl { font-size: .8rem; color: var(--muted); align-self: center; margin-right: 4px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: calc(var(--radius) + 2px); overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -36px rgba(0,0,0,.7); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video .poster { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; text-align: center; }
.video .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video .poster::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 45% at center 58%, color-mix(in srgb, var(--ink) 62%, transparent), color-mix(in srgb, var(--ink) 35%, transparent) 70%, color-mix(in srgb, var(--ink) 70%, transparent)); }
.video .poster .in { text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.video .poster .in { position: relative; z-index: 1; padding: 20px; }
.video .poster .big-play { width: 84px; height: 84px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin: 0 auto 16px; box-shadow: 0 0 0 12px rgba(255,255,255,.12); }
.video .poster small { display: block; color: rgba(255,255,255,.85); font-size: .9rem; max-width: 30rem; }
.lesson-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin: 26px 0 8px; flex-wrap: wrap; }
.lesson-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 6px; }
.lesson-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-done { background: var(--success); color: #fff; }
.grid-2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; margin-top: 26px; align-items: start; }
.card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: 0 12px 30px -26px color-mix(in srgb, var(--ink) 60%, transparent); }
.card + .card { margin-top: 22px; }
.card h3 { font-size: 1.12rem; display: flex; align-items: center; gap: 10px; }
.card h3 svg { color: var(--accent2); }
.prose h2 { font-size: 1.3rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--accent2); }
.homework { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, white), #fff 70%); border-left: 4px solid var(--accent); }
.files { list-style: none; padding: 0; margin: 0; }
.files a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 12px; text-decoration: none; transition: background .2s ease; }
.files a:hover { background: var(--paper); }
.files .ic { width: 40px; height: 40px; border-radius: 10px; background: color-mix(in srgb, var(--accent2) 14%, white); color: var(--accent2); display: grid; place-items: center; flex: none; }
.files b { display: block; font-weight: 650; font-size: .95rem; color: var(--ink); }
.files small { color: var(--muted); font-size: .8rem; }
.saved { font-size: .8rem; color: var(--muted); margin-top: 6px; min-height: 1.2em; }
.qa { border-top: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); padding: 14px 0 0; margin-top: 14px; font-size: .93rem; }
.qa .a { background: var(--paper); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.qa .a b { color: var(--success); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; display: block; }
.locked-card { text-align: center; padding: 56px 24px; }
.locked-card .big { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: color-mix(in srgb, var(--accent) 22%, white); color: #8a5f0a; }
.countdown { font: 600 2rem/1.2 var(--font-display); color: var(--ink); margin: 8px 0; }
.outline-toggle { display: none; }
.scrim { display: none; }
@media (max-width: 980px) {
  .player { grid-template-columns: 1fr; }
  .outline { position: fixed; inset: 0 auto 0 0; width: min(88vw, 360px); height: 100%; z-index: 80; transform: translateX(-102%); transition: transform .35s cubic-bezier(.2,.7,.2,1); box-shadow: 20px 0 60px rgba(0,0,0,.25); top: 0; padding-top: 18px; }
  .outline.open { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(10,20,25,.45); z-index: 79; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .scrim.open { opacity: 1; pointer-events: auto; }
  .outline-toggle { display: inline-flex; margin-bottom: 14px; }
  .grid-2 { grid-template-columns: 1fr; }
  .stage { padding-top: 18px; }
  .lesson-actions { width: 100%; } .lesson-actions .btn { flex: 1; }
}

/* Quiz */
.quiz-top { position: sticky; top: 68px; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent); }
.quiz-top .wrap { display: flex; align-items: center; gap: 16px; }
.quiz-top .bar { flex: 1; }
.qcard { background: #fff; border-radius: var(--radius); padding: 24px; margin-bottom: 16px; box-shadow: 0 12px 30px -26px color-mix(in srgb, var(--ink) 60%, transparent); }
.qcard legend { float: left; width: 100%; padding: 0; }
.qcard legend + * { clear: both; }
.qcard .num { font: 750 .74rem/1 var(--font-body); color: var(--accent2); letter-spacing: .12em; text-transform: uppercase; }
.qcard h3 { font-family: var(--font-body); font-weight: 650; font-size: 1.1rem; margin: 10px 0 16px; line-height: 1.4; }
.opt { display: flex; gap: 12px; align-items: center; padding: 13px 15px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 12%, transparent); margin-bottom: 9px; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.opt:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.opt input { accent-color: var(--accent2); width: 20px; height: 20px; flex: none; }
.opt:has(input:checked) { border-color: var(--accent2); background: color-mix(in srgb, var(--accent2) 8%, white); }
.result { text-align: center; padding: 48px 28px; }
.result .ring { width: 150px; height: 150px; margin: 0 auto 22px; }
.result .ring::before { inset: 12px; }
.result .ring b { font-size: 2.2rem; }
.result.pass .ring { background: conic-gradient(var(--success) calc(var(--p) * 1%), color-mix(in srgb, var(--ink) 9%, transparent) 0); }
.result.fail .ring { background: conic-gradient(var(--accent) calc(var(--p) * 1%), color-mix(in srgb, var(--ink) 9%, transparent) 0); }

/* Finish */
.tracker { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; margin: 26px 0 30px; }
.tracker div { background: #fff; border-radius: 14px; padding: 14px 16px; display: flex; gap: 10px; align-items: center; font-weight: 650; font-size: .92rem; color: var(--muted); }
.tracker div .d { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 7%, transparent); flex: none; font-size: .8rem; }
.tracker div.ok { color: var(--ink); } .tracker div.ok .d { background: var(--success); color: #fff; }
.tracker div.now { color: var(--ink); box-shadow: inset 0 0 0 2px var(--accent); } .tracker div.now .d { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 720px) { .quiz-top { top: 60px; } .tracker { grid-template-columns: 1fr 1fr; } .tracker div { padding: 12px; font-size: .86rem; } }
.cert-done { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.cert-done .cert-mini { margin: 0; }
.cert-done .cert-mini b { font-size: clamp(1.2rem, 2.4vw, 1.9rem); }
.cert-done .cert-mini i { font-size: .78rem; }
@media (max-width: 800px) { .cert-done { grid-template-columns: minmax(0, 1fr); } }
.rating { display: flex; gap: 8px; }
.rating label { flex: 1; }
.rating input { position: absolute; opacity: 0; }
.rating span { display: grid; place-items: center; min-height: 48px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 14%, transparent); font-weight: 700; cursor: pointer; }
.rating input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.rating input:focus-visible + span { outline: 3px solid var(--accent); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; opacity: 0; transition: opacity .3s ease, transform .3s cubic-bezier(.2,.7,.2,1); z-index: 200; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skeleton { background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 6%, transparent), color-mix(in srgb, var(--ink) 11%, transparent), color-mix(in srgb, var(--ink) 6%, transparent)); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.page-pad { padding: 44px 0 90px; }
.narrow { width: min(760px, 100% - 32px); margin-inline: auto; }

/* Install pieces (snippets/pwa-install), restyled to the brand */
.app-banner { display: flex; gap: 10px; align-items: center; padding: 9px 14px; background: #fff; border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent); font-size: .9rem; position: relative; z-index: 55; }
.app-banner img { border-radius: 9px; } .app-banner div { flex: 1; } .app-banner small { display: block; color: var(--muted); }
.app-banner [data-ab-install] { padding: 7px 14px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; font-weight: 650; }
.app-banner .ab-x { border: 0; background: none; font-size: 22px; color: var(--muted); }
.app-sheet { position: fixed; inset: 0; z-index: 1000; background: rgba(10,20,25,.5); display: flex; align-items: flex-end; justify-content: center; }
.as-card { position: relative; background: #fff; border-radius: 20px 20px 0 0; padding: 24px; max-width: 480px; width: 100%; }
.as-card img { border-radius: 14px; } .as-x { position: absolute; top: 8px; right: 12px; border: 0; background: none; font-size: 26px; }
.is-app .only-browser { display: none; }
.ao { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 24px; background: var(--ink); color: #fff; }
.ao img { border-radius: 22px; margin: 0 auto 18px; } .ao h1 { color: #fff; }
