:root {
  color-scheme: dark;
  --bg: #111713;
  --panel: #18211b;
  --panel-raised: #202c23;
  --line: #344438;
  --text: #eaf0e6;
  --muted: #b1bdad;
  --accent: #d6f29e;
  --accent-ink: #192214;
  --warning: #f0ce8a;
  --topbar-height: 77px;
  font: 16px/1.65 "Avenir Next", Avenir, system-ui, -apple-system, sans-serif;
  font-synthesis: none;
}
* {box-sizing: border-box}
body {margin: 0; background: var(--bg); color: var(--text)}
a {color: var(--accent); text-underline-offset: 4px}
button, input {font: inherit; touch-action: manipulation}
button, .back-link {min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel-raised); color: var(--text); padding: .7rem 1rem; cursor: pointer; font-weight: 600; line-height: 1.35; transition: background-color .16s, border-color .16s}
button:hover:not(:disabled), .back-link:hover {background: #2a3a2c; border-color: #849475}
button:disabled {opacity: .45; cursor: default}
input {min-width: 0; min-height: 48px; width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); line-height: 1.35}
input::placeholder {color: #909e8c}
input[type=checkbox] {width: 22px; height: 22px; min-height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--accent); cursor: pointer}
button:focus-visible, a:focus-visible, input:focus-visible, summary:focus-visible {outline: 3px solid var(--accent); outline-offset: 4px}
[hidden] {display: none !important}
.course-loading {position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: auto; padding: 32px 24px; background: radial-gradient(ellipse at 50% 38%, #29422c55, transparent 65%), var(--bg)}
.course-loading-card {width: min(100%, 560px); text-align: center}
.course-loading .course-loading-brand {font-size: clamp(2.75rem, 9vw, 5rem); letter-spacing: -.06em}
.course-loading-course {margin-top: 12px; color: var(--muted); font-size: .78rem; letter-spacing: .18em}
.course-loading-dots {display: flex; justify-content: center; gap: 14px; margin-top: 40px}
.course-loading-dots span {width: 14px; height: 14px; border-radius: 50%; background: var(--accent); animation: course-loading-dot 1.4s ease-in-out infinite}
.course-loading-dots span:nth-child(2) {animation-delay: .16s}
.course-loading-dots span:nth-child(3) {animation-delay: .32s}
.course-loading-card p {margin: 22px 0 0; color: var(--muted); font-size: 1rem; line-height: 1.65}
.course-loading-actions {display: flex; flex-direction: column; align-items: center; gap: 16px; margin-top: 24px; font-size: .85rem}
.course-loading-error .course-loading-dots {display: none}
@keyframes course-loading-dot {0%, 80%, 100% {opacity: .3; transform: translateY(0)} 40% {opacity: 1; transform: translateY(-4px)}}
@media (prefers-reduced-motion: reduce) {.course-loading-dots span {animation: none; opacity: .7}}
.primary {background: var(--accent); color: var(--accent-ink); border-color: var(--accent)}
.primary:hover:not(:disabled) {background: #e2fac0; border-color: #e2fac0}
.quiet {background: transparent}
.full-width {width: 100%}
.eyebrow {font-size: .69rem; line-height: 1.4; letter-spacing: .13em; color: var(--accent); font-weight: 700}
.accent {color: var(--accent)}
.skip-link {position: fixed; z-index: 100; top: -80px; left: 16px; padding: 10px 20px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 700}
.skip-link:focus {top: 12px}
.topbar {position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: var(--topbar-height); padding: 12px max(24px, calc((100vw - 1440px) / 2)); border-bottom: 1px solid var(--line); background: #111713f5; backdrop-filter: blur(12px)}
.brand {display: flex; align-items: center; gap: 18px; color: var(--text); text-decoration: none; min-height: 44px}
.wordmark {font-weight: 750; font-size: 1.4rem; letter-spacing: -.06em; line-height: 1.2}
.wordmark span {color: var(--accent)}
.brand-course {border-left: 1px solid var(--line); padding-left: 18px; font-size: .85rem; color: var(--muted)}
.account-actions {display: flex; align-items: center; justify-content: flex-end; gap: 14px; min-width: 0}
.back-link {display: inline-flex; align-items: center; gap: 10px; background: transparent; font-size: .8rem; text-decoration: none; white-space: nowrap}
#accountName {font-size: .78rem; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap}
#signOut {font-size: .8rem}
.access {display: grid; grid-template-columns: 1.12fr 1fr; grid-template-areas: 'free free' 'offer offer' 'questions questions' 'intro account'; align-items: start; column-gap: clamp(2rem, 7vw, 6rem); row-gap: 18px; max-width: 1120px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) 28px 64px}
.free-intro {grid-area:free;display:grid;grid-template-columns:minmax(0,1fr) minmax(220px,.48fr);align-items:center;gap:40px;padding:36px;border:1px solid #789453;border-radius:22px;background:radial-gradient(ellipse at top right,#46603855,transparent 65%),var(--panel);margin-bottom:8px}
.free-intro h2 {font-size:clamp(2rem,4.5vw,3.25rem);line-height:1.12;letter-spacing:-.045em;margin:14px 0 18px}
.free-intro-copy>p {max-width:520px;color:var(--muted);font-size:.95rem;margin:0}
.free-intro-facts {display:flex;flex-wrap:wrap;gap:8px 18px;margin-top:22px;color:var(--muted);font-size:.74rem}
.free-intro-facts strong {color:var(--text)}
.free-intro-actions {display:grid;gap:12px;min-width:0}
.free-intro-start {display:flex;justify-content:space-between;align-items:center;gap:16px;min-height:60px;padding:16px 22px;border:1px solid var(--accent);border-radius:12px;font-size:1.05rem;font-weight:750;text-decoration:none}
.free-intro-start:hover {background:#e2fac0}
.free-intro-actions>p {font-size:.74rem;color:var(--muted);line-height:1.6;margin:2px 0 0}
.return-free {display:inline-flex;align-items:center;gap:10px;min-height:48px;margin-top:14px;font-size:.88rem}
.intro-upgrade {grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:22px 26px;border:1px solid #789453;border-radius:16px;background:var(--panel);margin-bottom:24px;min-width:0}
.intro-upgrade h2 {font-size:1.05rem;line-height:1.4;margin:8px 0}
.intro-upgrade p {font-size:.8rem;color:var(--muted);margin:0;max-width:640px}
.intro-upgrade-actions {display:grid;gap:8px;flex-shrink:0;max-width:100%}
.intro-upgrade-actions>button {font-size:.85rem;max-width:100%}
.locked-modules {border-top:1px solid var(--line);margin-top:22px;padding:20px 6px 0}
.locked-modules h3 {font-size:.77rem;line-height:1.5;margin:0 0 8px}
.locked-modules>p {font-size:.72rem;color:var(--muted);margin:0 0 14px}
.locked-module {display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;text-align:left;margin:8px 0;font-size:.78rem;background:transparent;color:var(--muted);padding:12px}
.locked-module small {display:block;font-size:.67rem;font-weight:400;margin-top:4px}
.locked-module svg {flex-shrink:0;width:18px;height:18px}
.course-questions {grid-area:questions;position:relative;isolation:isolate;overflow:hidden;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px;padding:27px 30px;margin-bottom:22px;border:1px solid #bfd49a;border-radius:22px;background:radial-gradient(ellipse at 65% 0,#d0dfa9aa,transparent 75%),#e9efdc;color:#213325;box-shadow:0 8px 40px #00000012}
.course-questions-copy,.course-questions-actions {position:relative;z-index:1;min-width:0}
.course-questions .eyebrow {font-size:.6rem;letter-spacing:.13em;color:#4b6539}
.course-questions h2 {font-size:clamp(1.8rem,3.5vw,2.35rem);font-weight:600;line-height:1.15;letter-spacing:-.05em;margin:9px 0 8px}
.course-questions h2>span {color:#567539}
.course-questions p {max-width:500px;margin:0;color:#52644b;font-size:.8rem;line-height:1.65}
.course-questions-actions {display:grid;gap:10px;min-width:258px}
.course-contact {display:flex;align-items:center;gap:12px;min-height:64px;padding:11px 14px;border:1px solid;border-radius:12px;text-decoration:none;transition:background .2s,border-color .2s,transform .2s}
.course-contact-icon {display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border-radius:10px;background:#ffffff18}
.course-contact>span:nth-child(2) {display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.course-contact strong {font-size:.78rem;font-weight:650;line-height:1.4}
.course-contact small {font-size:.66rem;line-height:1.3;opacity:.82}
.course-contact-arrow {margin-left:4px;font-size:17px;line-height:1}
.course-contact-telegram {background:#17455a;border-color:#17455a;color:#f2f9fc}
.course-contact-whatsapp {background:#214b34;border-color:#214b34;color:#f0f8ed}
.course-contact-telegram:hover {background:#12384a;border-color:#12384a;transform:translateY(-1px)}
.course-contact-whatsapp:hover {background:#183b28;border-color:#183b28;transform:translateY(-1px)}
.course-contact:focus-visible {outline:3px solid #345f33;outline-offset:4px}
.course-questions-particles {position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.course-questions-particles i {position:absolute;width:3px;height:3px;border-radius:50%;background:#628842;box-shadow:0 0 6px #759c5840;opacity:.25;animation:course-help-particle 16s ease-in-out infinite alternate}
.course-questions-particles i:nth-child(3n) {width:4px;height:4px;opacity:.18;animation-duration:21s}
.course-questions-particles i:nth-child(3n+1) {animation-duration:18s}
.course-questions-particles i:nth-child(1) {left:5%;top:23%;animation-delay:-3s}
.course-questions-particles i:nth-child(2) {left:16%;top:82%;animation-delay:-9s}
.course-questions-particles i:nth-child(3) {left:24%;top:12%;animation-delay:-5s}
.course-questions-particles i:nth-child(4) {left:33%;top:66%;animation-delay:-12s}
.course-questions-particles i:nth-child(5) {left:42%;top:24%;animation-delay:-7s}
.course-questions-particles i:nth-child(6) {left:49%;top:91%;animation-delay:-2s}
.course-questions-particles i:nth-child(7) {left:56%;top:40%;animation-delay:-11s}
.course-questions-particles i:nth-child(8) {left:64%;top:17%;animation-delay:-8s}
.course-questions-particles i:nth-child(9) {left:73%;top:76%;animation-delay:-4s}
.course-questions-particles i:nth-child(10) {left:81%;top:33%;animation-delay:-10s}
.course-questions-particles i:nth-child(11) {left:89%;top:85%;animation-delay:-6s}
.course-questions-particles i:nth-child(12) {left:96%;top:15%;animation-delay:-13s}
.course-questions:hover .course-questions-particles i,.course-questions:focus-within .course-questions-particles i {animation-play-state:paused}
@keyframes course-help-particle {from{transform:translate3d(-8px,12px,0)}to{transform:translate3d(12px,-12px,0)}}
.access-intro {grid-area: intro; padding-top: 10px}
.course-offer {grid-area: offer; min-width: 0; padding: clamp(22px, 3vw, 34px); margin-bottom: 8px; border: 1px solid #4c6145; border-radius: 24px; background: radial-gradient(ellipse at 90% 0, #d6f29e0c, transparent 65%), var(--panel); box-shadow: 0 20px 60px #00000018}
.course-offer h2 {font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; margin: 10px 0 24px; line-height: 1.2; letter-spacing: -.035em}
.course-symbol {display: inline-grid; place-items: center; width: 64px; height: 64px; border: 1px solid #536447; border-radius: 18px; background: #263322; color: var(--accent); margin-bottom: 24px}
.access h1 {font-size: clamp(2.7rem, 5.4vw, 4.25rem); letter-spacing: -.05em; line-height: 1.04; font-weight: 550; margin: 16px 0 22px}
.intro {font-size: 1.02rem; line-height: 1.75; color: var(--muted); max-width: 440px}
.access-jump {display: none}
.syllabus-button {display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: 4px; font-size: .88rem}
.syllabus-button svg {flex-shrink: 0}
.access-card {grid-area: account; scroll-margin-top: calc(var(--topbar-height) + 20px)}
.access-card:focus {outline: none}
.course-facts {display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 26px 0 30px; font-size: .77rem}
.course-facts span {padding: 7px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; color: var(--muted)}
.course-facts strong {color: var(--text); font-weight: 650}
.course-prices {display: grid; gap: 0; border-block: 1px solid var(--line); margin: 0}
.course-prices>div {display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(220px, .45fr); align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid #34443880; font-size: .88rem}
.course-prices>div:last-child {border-bottom: 0}
.course-prices>div>span {grid-column: 1 / 3; min-width: 0; color: var(--muted)}
.course-prices>.course-price-action>span {grid-column: 1}
.course-prices strong {grid-column: 3; font-size: 1.35rem; font-weight: 650; white-space: nowrap; text-align: right; line-height: 1.5}
.course-prices small {display: block; font-size: .7rem; font-weight: 400; color: var(--muted); white-space: normal}
.course-prices .included {font-size: 1.35rem; color: var(--accent)}
.course-subscribe {grid-column: 2; position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 14px; border: 1px solid #a7cc7580; border-radius: 12px; background: linear-gradient(120deg, #304938, #1c3328); color: var(--accent); text-decoration: none; font-size: .82rem; font-weight: 700; line-height: 1.4; box-shadow: 0 4px 18px #0000001c, inset 0 1px #ffffff0a; transition: background .2s, border-color .2s, box-shadow .2s}
.course-subscribe-lifetime {background: linear-gradient(120deg, #254b43, #1b332b)}
.course-subscribe:hover {background: #36513a; border-color: var(--accent); box-shadow: 0 4px 22px #c0e88b15}
.course-subscribe-label {position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; white-space: nowrap}
.course-subscribe-label>span {font-size: 1rem; font-weight: 400}
.course-subscribe-particles {position: absolute; inset: 0; z-index: 0; pointer-events: none}
.course-subscribe-particles i {position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #e5ffb9; opacity: .6; box-shadow: 0 0 7px #d6f29e90; animation: course-subscribe-particle 7s ease-in-out infinite alternate}
.course-subscribe-particles i:nth-child(1) {left: 7%; top: 25%; animation-delay: -2s}
.course-subscribe-particles i:nth-child(2) {left: 23%; top: 84%; animation-delay: -5s; width: 2px; height: 2px}
.course-subscribe-particles i:nth-child(3) {left: 42%; top: 14%; animation-delay: -3s; animation-duration: 9s}
.course-subscribe-particles i:nth-child(4) {left: 62%; top: 89%; animation-delay: -7s}
.course-subscribe-particles i:nth-child(5) {left: 78%; top: 19%; animation-delay: -1s; width: 2px; height: 2px}
.course-subscribe-particles i:nth-child(6) {left: 93%; top: 64%; animation-delay: -4s; animation-duration: 9s}
@keyframes course-subscribe-particle {from {transform: translate3d(-3px, 5px, 0); opacity: .25} to {transform: translate3d(4px, -5px, 0); opacity: .8}}
.access-note {font-size: .78rem; line-height: 1.75; color: var(--muted); margin-top: 20px}
.access-card {background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px); box-shadow: 0 20px 60px #00000018}
.access-card h2 {font-size: 1.6rem; font-weight: 550; letter-spacing: -.03em; line-height: 1.25; margin: 14px 0}
.card-intro {font-size: .86rem; color: var(--muted); margin: 0 0 24px}
.access-message {font-size: .82rem; color: var(--muted); margin: 0 0 22px; padding: 12px 14px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); overflow-wrap: anywhere}
.access-message:empty {display: none}
#googleLogin {display: flex; align-items: center; justify-content: center; gap: 12px}
.google-mark {display: inline-grid; place-items: center; font-weight: 750; width: 22px; height: 22px; background: var(--accent-ink); color: var(--accent); border-radius: 50%; font-size: .8rem}
.separator {display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .75rem; margin: 22px 0}
.separator::before, .separator::after {content: ''; flex: 1; height: 1px; background: var(--line)}
.access form {display: grid; gap: 10px}
.access form label {font-size: .8rem; font-weight: 600; margin-top: 3px}
.access form input+label {margin-top: 6px}
.access form input+button {margin-top: 10px}
.access form button {width: 100%; font-size: .88rem}
.text-button {border-color: transparent; background: transparent; text-decoration: underline; text-underline-offset: 4px; color: var(--muted); font-weight: 400}
.access-actions {display: grid; gap: 10px}
.access-actions:empty {display: none}
.purchase {margin-top: 24px}
.lifetime-purchase {border-top:1px solid var(--line);padding-top:25px}
.lifetime-purchase .purchase-price {font-size:2.5rem}
.bundle-course-link {display:inline-block;margin-top:10px;color:var(--accent);text-underline-offset:4px}
.purchase-price {font-size: 3rem; font-weight: 550; letter-spacing: -.05em; line-height: 1.2; color: var(--accent); margin: 20px 0 10px}
.purchase>p:not(.purchase-price) {font-size: .86rem; color: var(--muted)}
.purchase-terms {display: flex; align-items: flex-start; gap: 12px; font-size: .8rem; line-height: 1.8; margin: 24px 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer}
.purchase-terms input {margin-top: 3px}
#buyCourse {font-size: .9rem}
#purchaseStatus:empty {display: none}
.classroom {display: grid; grid-template-columns: 310px minmax(0, 1fr); column-gap: 32px; max-width: 1440px; margin: auto; padding: 30px 28px 60px; align-items: start}
.course-overview {grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 22px 26px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--panel)}
.course-heading {min-width: 0; max-width: 680px}
.course-heading h1 {font-size: clamp(1.4rem, 2.3vw, 2rem); line-height: 1.25; letter-spacing: -.035em; font-weight: 550; margin: 12px 0}
.course-heading>p {font-size: .85rem; color: var(--muted); margin: 0}
.learning-progress {flex: 0 0 285px}
.progress-heading {display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .8rem; font-weight: 600}
#progressPercent {font-size: .85rem; color: var(--accent); font-variant-numeric: tabular-nums}
progress {display: block; appearance: none; width: 100%; height: 8px; margin-top: 10px; border: 0; border-radius: 8px; overflow: hidden; background: #344438; accent-color: var(--accent)}
progress::-webkit-progress-bar {background: #344438; border-radius: 8px}
progress::-webkit-progress-value {background: var(--accent); border-radius: 8px; transition: width .2s}
progress::-moz-progress-bar {background: var(--accent); border-radius: 8px}
#progressText {font-size: .73rem; color: var(--muted); margin: 8px 0 12px; font-variant-numeric: tabular-nums}
.resume {width: 100%; background: #273723; border-color: #526648; color: var(--accent); font-size: .8rem; min-height: 42px}
.sidebar {min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 14px; position: sticky; top: calc(var(--topbar-height) + 20px); max-height: calc(100dvh - var(--topbar-height) - 40px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #566650 transparent; overscroll-behavior: contain}
.sidebar-heading {display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 6px}
.sidebar-heading h2 {font-size: 1rem; font-weight: 600; letter-spacing: -.02em; margin: 8px 0 22px}
#modulesTitle:focus {outline:none}
.close-modules {display: none; width: 44px; font-size: 1.8rem; padding: 0; line-height: 1}
.module-intro {display:none}
.search {display: block; margin: 0 6px 8px; font-size: .73rem; color: var(--muted)}
.search-field {display: flex; align-items: center; gap: 8px; padding: 0 12px; margin: 0 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--muted)}
.search-field:focus-within {outline: 3px solid var(--accent); outline-offset: 3px}
.search-field svg {flex-shrink: 0}
.search-field input {border: 0; background: transparent; padding-inline: 0; font-size: 1rem; outline: none; min-height: 44px}
.search-field input:focus-visible {outline: none}
.search-results {font-size: .72rem; color: var(--muted); margin: 10px 6px 16px}
.search-results:empty {margin: 14px 0 0}
.module-section {border-top: 1px solid var(--line); padding: 13px 0}
.module-section:last-child {padding-bottom: 0}
.module-summary {cursor: pointer; font-size: 1rem; font-weight: 650; line-height: 1.5; padding: 4px 6px; min-height: 44px; list-style: none; display: flex; align-items: center; gap: 9px}
.module-summary::-webkit-details-marker {display: none}
.module-summary::before {content: '›'; color: var(--muted); font-size: 1.2rem; transform: rotate(0deg); transition: transform .15s}
.module-section[open]>.module-summary::before {transform: rotate(90deg)}
.module-name {flex: 1; min-width: 0}
.module-progress {flex-shrink: 0; font-size: .75rem; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums}
#lessonList ul {padding: 0; margin: 10px 0 0; list-style: none}
#lessonList li {margin: 3px 0}
.lesson-link {display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; border: 1px solid transparent; background: transparent; padding: 12px 9px; border-radius: 9px; font-size: .95rem; font-weight: 500; line-height: 1.55; color: var(--text); min-height: 44px}
.lesson-link:hover:not(:disabled) {background: #263227; border-color: transparent}
.lesson-link.selected {background: #31402a; border-color: #5a704b; color: var(--text)}
.lesson-link.selected .lesson-number {color: var(--accent)}
.lesson-number {font-size: .8rem; line-height: 1.9; font-variant-numeric: tabular-nums; flex-shrink: 0; width: 22px; text-align: right; color: #b4c4a7}
.lesson-link-title {flex: 1; min-width: 0; overflow-wrap: anywhere}
.lesson-check {flex-shrink: 0; font-size: .8rem; color: var(--accent); min-width: 12px}
.draft-title {display: block; font-size: .63rem; color: var(--warning); margin-top: 3px}
.lesson-panel {min-width: 0; padding: 6px 8px}
.lesson-top {position: sticky; top: var(--topbar-height); z-index: 5; display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: .76rem; flex-wrap: wrap; margin: -8px 0 24px; padding: 8px 0; border-bottom: 1px solid var(--line); background: #111713f5; backdrop-filter: blur(12px)}
#moduleTitle {min-width: 0; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis}
.quick-navigation {display: flex; gap: 8px; margin-left: auto; flex-shrink: 0}
.quick-navigation button {width: 44px; height: 44px; padding: 0; font-size: 1.2rem; background: transparent}
.quick-navigation button:disabled {opacity: .28}
.draft {margin-left: auto; font-size: .68rem; color: var(--warning); border: 1px solid #6a5838; padding: 3px 9px; border-radius: 6px}
.lesson-heading {margin: 0 0 24px; scroll-margin-top: calc(var(--topbar-height) + 80px)}
.lesson-heading h2 {font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.18; letter-spacing: -.04em; font-weight: 550; margin: 10px 0 0; overflow-wrap: anywhere}
.lesson-audio {display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-top: 18px}
.lesson-audio button {display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-size: .82rem}
.lesson-audio button svg {flex-shrink: 0; color: var(--accent)}
.lesson-audio button[aria-pressed="true"] {border-color: #849475; background: #2a3a2c}
.lesson-audio p {flex-basis: 100%; margin: 0; font-size: .76rem; color: var(--muted)}
.lesson-audio-speed {display: inline-flex; align-items: center; gap: 9px; font-size: .76rem; color: var(--muted)}
.lesson-audio-speed select {font: inherit; min-height: 44px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--text); cursor: pointer}
.lesson-audio-speed select:focus-visible {outline: 3px solid var(--accent); outline-offset: 4px}
#lessonTitle:focus {outline: none}
#lessonStatus {font-size: .86rem; color: var(--muted); overflow-wrap: anywhere}
#lessonStatus:empty {display: none}
#retryLesson {margin-bottom: 20px; font-size: .85rem}
.lesson-content {min-width: 0; overflow-wrap: anywhere; color: #c7d1c1}
.lesson-content section {margin: 0}
.lesson-content section+section {margin-top: 28px}
.lesson-content h1, .lesson-content h2 {font-size: 1.35rem; font-weight: 600; line-height: 1.35; letter-spacing: -.02em; margin: 28px 0 14px; color: var(--text)}
.lesson-content h3 {font-size: 1.13rem; font-weight: 600; margin: 24px 0 10px; color: var(--text)}
.lesson-content p, .lesson-content li {font-size: 1rem; line-height: 1.8; max-width: 72ch}
.lesson-content p {margin: 0 0 16px}
.lesson-content section>:first-child {margin-top: 0}
.lesson-content section>:last-child {margin-bottom: 0}
.lesson-content :is(h1, h2, h3) u {text-decoration: none}
.lesson-content :is(h1, h2, h3) em {font-style: normal}
.lesson-content ul, .lesson-content ol {padding-left: 24px}
.lesson-content li+li {margin-top: 8px}
.lesson-content video, .lesson-content iframe {display: block; width: 100%; max-height: 70dvh; background: #080c09; border: 1px solid var(--line); border-radius: 14px}
.lesson-content video {aspect-ratio: 16 / 9; object-fit: contain}
.lesson-content iframe {aspect-ratio: 16 / 9; min-height: 200px}
.lesson-content img {display: block; max-width: 100%; height: auto; border-radius: 10px; margin: 18px 0}
.lesson-content table {display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: .85rem}
.lesson-content td, .lesson-content th {padding: .65rem; border: 1px solid var(--line)}
.lesson-content blockquote {margin: 20px 0; padding: 16px 22px; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 10px 10px 0}
.lesson-content pre {max-width: 100%; overflow-x: auto; font-size: .82rem}
.lesson-content strong {color: var(--text)}
.lesson-footer {display: flex; justify-content: space-between; align-items: center; gap: 24px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px}
.completion-control {min-width: 0}
.complete {display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .83rem; cursor: pointer; color: var(--text)}
#progressSaveStatus {font-size: .7rem; color: var(--muted); margin: 4px 0 0}
.lesson-navigation {display: flex; gap: 10px; flex-shrink: 0}
.lesson-navigation button {font-size: .83rem; min-width: 115px}
.admin-panel {margin-top: 36px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px}
.admin-panel summary {cursor: pointer; font-size: .87rem; font-weight: 600; min-height: 36px}
.admin-panel form {display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin: 20px 0}
.admin-panel form label {flex: 1 1 240px}
.admin-panel input[type=email] {display: block; margin-top: 6px}
.admin-panel p, .admin-panel label, .admin-panel button {font-size: .8rem}
.enrolment {display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .75rem; overflow-wrap: anywhere}
.mobile-menu {display: none}
.module-dialog {max-width: min(390px, calc(100vw - 24px)); width: 100%; max-height: calc(100dvh - 24px); padding: 0; border: 1px solid #56654d; border-radius: 18px; color: var(--text); background: var(--panel); box-shadow: 0 24px 100px #00000066; overscroll-behavior: contain}
.module-dialog::backdrop {background: #050a07b8; backdrop-filter: blur(3px)}
.syllabus-dialog {width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 1px solid #617553; border-radius: 24px; background: var(--panel); color: var(--text); box-shadow: 0 30px 120px #00000088; overflow: hidden}
.syllabus-dialog::backdrop {background: #050a07c9; backdrop-filter: blur(6px)}
.syllabus-dialog[open] {animation: syllabus-arrive .18s ease-out}
.syllabus-frame {display: flex; flex-direction: column; max-height: calc(100dvh - 34px)}
.syllabus-heading {display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 26px 28px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(115deg, #2e3e2566, var(--panel)); flex-shrink: 0}
.syllabus-heading h2 {font-size: clamp(1.4rem, 4vw, 1.9rem); letter-spacing: -.04em; line-height: 1.2; font-weight: 600; margin: 8px 0}
.syllabus-heading p {font-size: .82rem; line-height: 1.5; margin: 0; color: var(--muted)}
.syllabus-close {display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; min-height: 44px; padding: 9px 12px; font-size: .8rem}
.syllabus-close>span {font-size: 1.5rem; line-height: 1; font-weight: 400}
.syllabus-tools {padding: 16px 28px 12px; flex-shrink: 0}
#syllabusCount {margin: 0 0 10px; font-size: .8rem; font-weight: 650; color: var(--accent)}
.syllabus-tools label {display: block; font-size: .76rem; color: var(--muted); margin-bottom: 6px}
.syllabus-tools input {min-height: 44px; font-size: .85rem}
.syllabus-tools .search-results {margin: 6px 0 0}
.syllabus-list {min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #60764e transparent; padding: 0 28px 20px}
.syllabus-module {border: 1px solid var(--line); border-radius: 14px; margin: 0 0 10px; background: var(--bg)}
.syllabus-module>summary {display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: .84rem; font-weight: 650; line-height: 1.5}
.syllabus-module>summary::-webkit-details-marker {display: none}
.syllabus-module>summary>span:first-child {flex: 1; min-width: 0; overflow-wrap: anywhere}
.syllabus-module>summary::after {content: '⌄'; color: var(--accent); font-size: 1.2rem; line-height: 1; transition: transform .16s}
.syllabus-module[open]>summary::after {transform: rotate(180deg)}
.syllabus-module[open]>summary {border-bottom: 1px solid var(--line)}
.syllabus-module-count {font-size: .68rem; font-weight: 400; white-space: normal; color: var(--muted)}
.syllabus-module ol {list-style: none; margin: 0; padding: 4px 16px}
.syllabus-module li {display: flex; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid #34443880; font-size: .84rem; line-height: 1.6}
.syllabus-module li:last-child {border-bottom: 0}
.syllabus-module li>span:last-child {min-width: 0; overflow-wrap: anywhere}
.syllabus-number {flex: 0 0 25px; color: var(--accent); font-variant-numeric: tabular-nums; font-size: .76rem; font-weight: 600}
.syllabus-footer {display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 28px; border-top: 1px solid var(--line); flex-shrink: 0}
.syllabus-footer>span {font-size: .73rem; line-height: 1.5; color: var(--muted)}
.syllabus-footer button {font-size: .78rem; flex-shrink: 0}
@keyframes syllabus-arrive {from {opacity: 0; transform: translateY(8px)} to {opacity: 1; transform: translateY(0)}}
body:has(.module-dialog[open]),body:has(.syllabus-dialog[open]) {overflow: hidden}
.lesson-content .resource-note {display: block; margin: 6px 0 14px; color: var(--muted); font-size: .9rem; line-height: 1.6}
.page-footer {display: flex; justify-content: space-between; gap: 20px; max-width: 1440px; margin: auto; padding: 24px 28px max(28px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted)}
.page-footer nav {display: flex; gap: 18px; flex-wrap: wrap}
.page-footer a {color: var(--muted)}
@media (max-width: 1100px) {
  .classroom {grid-template-columns: 280px minmax(0, 1fr); column-gap: 24px; padding-inline: 22px}
  .course-overview {padding: 24px; gap: 28px}
  .learning-progress {flex-basis: 260px}
  #accountName {max-width: 120px}
  .lesson-footer {flex-wrap: wrap}
  .lesson-navigation {margin-left: auto}
}
@media (max-width: 900px) {
  .classroom {grid-template-columns: minmax(0, 1fr); padding: 22px 24px 44px}
  .course-overview {margin-bottom: 24px; gap: 24px}
  .course-heading h1 {font-size: 1.5rem}
  .learning-progress {flex-basis: 245px}
  .lesson-panel {padding: 0}
  .lesson-top {margin-bottom: 20px}
  .mobile-menu {display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; font-size: .8rem}
  .close-modules {display: block}
  .module-dialog .sidebar-heading {position:sticky;top:0;z-index:1;padding:8px 6px;background:var(--panel)}
  .module-intro {display:block;margin:0 6px 18px;color:var(--muted);font-size:.8rem;line-height:1.6}
  .module-dialog .sidebar {position: static; margin: 0; border: 0; max-height: none; border-radius: 0; padding: 22px 14px; width: 100%; overflow: visible}
  .sidebar-heading h2 {margin-bottom: 16px}
  .topbar {padding-inline: 24px}
  #accountName {display: none}
  .access {column-gap: 30px; padding-top: 40px}
  .access h1 {font-size: 3rem}
}
@media (max-width: 650px) {
  :root {--topbar-height: 69px}
  .topbar {padding: 10px 16px; gap: 10px}
  .brand {display: block; min-height: 44px}
  .wordmark {display: block; font-size: 1.2rem}
  .brand-course {display: block; border: 0; padding: 0; font-size: .64rem; line-height: 1.4; margin-top: 3px}
  .account-actions {gap: 8px}
  .back-link {padding: 9px 11px; font-size: .7rem}
  #signOut {padding: 9px 11px; font-size: .72rem}
  .access {grid-template-columns: minmax(0, 1fr); grid-template-areas: 'free' 'offer' 'questions' 'intro' 'account'; padding: 26px 18px 40px; gap: 24px}
  .free-intro {grid-template-columns:minmax(0,1fr);gap:24px;padding:26px 22px;border-radius:18px;margin-bottom:0}
  .free-intro h2 {font-size:clamp(2rem,8.5vw,3rem)}
  .free-intro-copy>p {font-size:.88rem}
  .free-intro-facts {gap:8px 14px;margin-top:18px;font-size:.7rem}
  .free-intro-start {min-height:56px}
  .intro-upgrade {display:block;padding:18px;margin-bottom:20px}
  .intro-upgrade-actions {margin-top:16px}
  .intro-upgrade-actions>button {width:100%;min-height:48px}
  .course-questions {grid-template-columns:minmax(0,1fr);gap:18px;padding:23px 20px;margin-bottom:0;border-radius:18px}
  .course-questions-actions {min-width:0;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
  .course-contact {flex-wrap:wrap;gap:8px;padding:12px 10px;min-width:0}
  .course-contact>span:nth-child(2) {flex:1 1 100%;order:1}
  .course-contact-arrow {margin-left:auto}
  .course-contact strong {font-size:.7rem}
  .course-contact small {font-size:.6rem;overflow-wrap:anywhere}
  .access-intro {padding: 0}
  .course-symbol {width: 44px; height: 44px; margin-bottom: 14px; border-radius: 12px}
  .course-symbol svg {width: 30px; height: 30px}
  .access h1 {font-size: clamp(2.3rem, 9vw, 3rem); margin-bottom: 16px}
  .intro {font-size: .93rem}
  .access-jump {display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 16px; margin-top: 4px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 650; text-decoration: none}
  .course-facts {margin: 18px 0 0; gap: 7px; font-size: .72rem}
  .course-facts span {padding: 6px 9px}
  .course-offer {padding: 22px 20px; margin-bottom: 0; border-radius: 18px}
  .course-offer h2 {margin-bottom: 20px}
  .course-prices>div {padding: 18px 0; gap: 14px; font-size: .8rem; grid-template-columns: minmax(0, 1fr) 122px minmax(190px, .45fr)}
  .course-prices strong {font-size: 1.2rem}
  .access-note {font-size: .75rem}
  .access-card {padding: 22px; border-radius: 18px}
  .access-card h2 {font-size: 1.5rem}
  .classroom {padding: 18px 16px 36px}
  .course-overview {display: block; padding: 16px; margin-bottom: 20px; border-radius: 16px}
  .course-heading h1 {font-size: 1.18rem; line-height: 1.35; margin: 8px 0 0}
  .course-heading>p {font-size: .78rem}
  .learning-progress {display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 6px 14px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line)}
  .learning-progress .progress-heading, .learning-progress progress, .learning-progress #progressText {grid-column: 1}
  .learning-progress progress {margin-top: 0; height: 6px}
  .learning-progress #progressText {margin: 0; font-size: .67rem; line-height: 1.45}
  .learning-progress .resume {grid-column: 2; grid-row: 1 / 4; min-height: 48px; padding: 8px 10px; font-size: .75rem}
  .progress-heading {font-size: .78rem}
  .lesson-top {gap: 10px; margin-bottom: 18px; font-size: .72rem}
  .quick-navigation {gap: 6px}
  .draft {margin-left: 0}
  .lesson-heading {margin-bottom: 20px}
  .lesson-heading h2 {font-size: clamp(1.5rem, 6vw, 1.8rem); line-height: 1.25}
  .lesson-content p, .lesson-content li {font-size: 1rem}
  .lesson-content section+section {margin-top: 24px}
  .lesson-content video, .lesson-content iframe {border-radius: 10px}
  .lesson-footer {display: block; margin-top: 30px; padding-top: 20px}
  .complete {font-size: .87rem}
  .lesson-navigation {margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr}
  .lesson-navigation button {min-height: 48px; min-width: 0; font-size: .83rem}
  .admin-panel {padding: 16px}
  .enrolment {display: block}
  .enrolment>span {display: block}
  .page-footer {display: block; padding: 22px 18px max(24px, env(safe-area-inset-bottom))}
  .page-footer nav {margin-top: 12px; gap: 12px 18px}
  .page-footer a {display: inline-flex; align-items: center; min-height: 36px}
}
@media (max-width: 600px) {
  .syllabus-dialog {width: calc(100vw - 20px); max-height: calc(100dvh - 20px); border-radius: 18px}
  .syllabus-frame {max-height: calc(100dvh - 22px)}
  .syllabus-heading {padding: 20px 18px 16px; gap: 10px}
  .syllabus-heading p {font-size: .75rem}
  .syllabus-tools {padding: 14px 18px 10px}
  .syllabus-list {padding: 0 14px 12px}
  .syllabus-module>summary {padding: 13px 12px; gap: 8px; font-size: .78rem}
  .syllabus-module-count {font-size: .61rem}
  .syllabus-module ol {padding-inline: 12px}
  .syllabus-module li {gap: 9px; font-size: .8rem; padding-block: 11px}
  .syllabus-footer {padding: 12px 18px; gap: 12px}
  .course-prices>div {grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px}
  .course-prices>div>span {grid-column: 1}
  .course-prices strong {grid-column: 2}
  .course-prices>.course-price-action>strong {grid-column: 1 / -1}
  .course-subscribe {font-size: .75rem; padding: 10px 12px; min-height: 46px}
  .course-subscribe-label {gap: 7px}
  .course-prices .included {font-size: 1.25rem}
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {scroll-behavior: auto !important; transition: none !important; animation: none !important}
}

/* Original Teachable wordmark: a light tile keeps its black lettering legible.
   CSS frames the transparent source margins without changing the logo asset. */
.course-title-lockup {display:flex;align-items:center;gap:20px;min-width:0}
.value-academia-logo {position:relative;display:block;flex:0 0 132px;width:132px;height:64px;overflow:hidden;background:#fff;border:1px solid #ffffff38;border-radius:12px;box-shadow:0 5px 18px #0002}
.value-academia-logo img {position:absolute;width:186%;max-width:none;height:auto;left:50%;top:50%;transform:translate(-50%,-49%)}
.course-heading .value-academia-logo {flex-basis:112px;width:112px;height:56px}
.course-title-lockup h1 {min-width:0}
@media(max-width:600px){.course-title-lockup{gap:14px}.value-academia-logo{flex-basis:100px;width:100px;height:52px;border-radius:10px}.course-heading .value-academia-logo{flex-basis:90px;width:90px;height:48px}.course-title-lockup h1{font-size:clamp(2rem,8vw,2.8rem)}.course-heading .course-title-lockup h1{font-size:1.15rem}}

/* Video durations and nested subsections share the existing lesson progress. */
.module-media,.lesson-media,.syllabus-video{display:block;color:#e5cf96;font-size:.78rem;font-weight:500;margin-top:5px;line-height:1.5}
#lessonList .video-parts{margin:0 0 10px 36px;border-left:1px solid var(--line);padding-left:10px}
.video-parts>summary,.syllabus-parts>summary{cursor:pointer;font-size:.85rem;color:#e5cf96;min-height:44px;display:flex;align-items:center;gap:8px}
.video-parts>summary::before,.syllabus-parts>summary::before{content:'+';font-size:1rem}
.video-parts[open]>summary::before,.syllabus-parts[open]>summary::before{content:'−'}
.video-part-link{width:100%;text-align:left;background:transparent;border:1px solid transparent;border-radius:8px;min-height:44px;padding:10px;font-size:.9rem;font-weight:400;color:var(--text);overflow-wrap:anywhere}
.video-part-link small{display:block;margin-top:5px;font-size:.78rem;color:#e5cf96}

.course-lesson-contact{display:inline-flex;align-items:center;min-height:44px;padding:12px 18px;border-radius:12px;background:#17455a;color:#f2f9fc;text-decoration:none;font-weight:600}
.course-table-scroll{overflow-x:auto;border:1px solid var(--line);border-radius:14px;margin:20px 0}
.course-table-scroll table{border-collapse:collapse;width:100%;font-size:.9rem;text-align:left}
.course-table-scroll caption{text-align:left;padding:16px;color:var(--accent);font-weight:600}
.course-table-scroll th,.course-table-scroll td{padding:14px 16px;vertical-align:top;border-top:1px solid var(--line);line-height:1.65}
.course-table-scroll th{color:var(--text);background:var(--panel)}
.course-table-scroll th[scope=row]{width:27%}
.lesson-compound{padding:24px;border:1px solid var(--line);border-radius:18px;background:var(--panel);margin:24px 0}
.lesson-compound h3{margin-top:0}
.compound-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin:22px 0}
.compound-inputs label{display:flex;flex-direction:column;gap:8px;font-size:.85rem;color:var(--muted)}
.compound-inputs input[type=range]{accent-color:var(--accent);padding:0;background:transparent}
.compound-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;padding:18px 0;border-block:1px solid var(--line);font-size:.78rem;color:var(--muted)}
.compound-results strong{display:block;font-size:1.12rem;color:var(--text);margin-top:5px;overflow-wrap:anywhere}
.lesson-compound figure{margin:24px 0 12px}
.lesson-compound svg{display:block;width:100%;height:auto;overflow:visible}
.lesson-compound svg text{font:12px system-ui,sans-serif;fill:var(--muted)}
.compound-grid{stroke:var(--line);stroke-width:1}
.compound-line-total,.compound-line-invested{fill:none;stroke-width:3;stroke:var(--accent)}
.compound-line-invested{stroke:#e5cf96;stroke-dasharray:6 4}
.compound-area{fill:#d6f29e12}
.lesson-compound figcaption{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:.78rem}
.compound-key::before{content:'';display:inline-block;width:16px;height:3px;vertical-align:middle;margin-right:8px;background:var(--accent)}
.compound-key-invested::before{background:#e5cf96}
.lesson-compound .compound-assumption{font-size:.75rem;color:var(--muted);margin-bottom:0}
.lesson-compound [data-error]{color:var(--warning);font-size:.8rem}
.lesson-compound [data-error]:empty{display:none}
@media(max-width:600px){.lesson-compound{padding:18px 14px}.compound-inputs{grid-template-columns:minmax(0,1fr)}.compound-results{grid-template-columns:minmax(0,1fr);gap:12px}.course-table-scroll th,.course-table-scroll td{padding:12px 10px}}
.video-part-link.selected{background:#31402a;border-color:#5a704b;color:var(--text)}
.video-subsection{scroll-margin-top:calc(var(--topbar-height) + 100px)}
.syllabus-module li>span:last-child{min-width:0;flex:1}
.syllabus-parts ul{padding:0 0 0 14px;margin:0;border-left:1px solid var(--line);list-style:none}
.syllabus-parts li{display:block;font-size:.75rem;color:var(--muted);padding:8px 0}

@media(max-width:600px){.syllabus-module>summary{flex-wrap:wrap}.syllabus-module>summary>span:first-child{flex-basis:100%}.syllabus-module-count{flex:1;white-space:normal}}

/* Practical bridge to accounting, integrated into the existing classroom. */
.foundations-intro{padding:18px 22px;border-left:3px solid var(--accent);background:#23302566;border-radius:0 14px 14px 0}
.foundations-jump{margin-top:8px;min-height:44px;white-space:normal;text-align:left}
#lesson-dcf-calculator{scroll-margin-top:calc(var(--topbar-height) + 100px)}
.foundations-intro p:first-child{margin-top:0}.foundations-intro p:last-child{margin-bottom:0}
.lesson-dcf,.lesson-thesis{margin:24px 0;padding:24px;border:1px solid #6c7e5355;border-radius:18px;background:var(--panel)}
.foundations-tool-heading h3,.lesson-thesis h3{margin-top:8px}
.dcf-form,.thesis-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}
.dcf-form label,.thesis-form label{display:flex;flex-direction:column;gap:8px;font-size:.86rem;color:var(--muted)}
.dcf-mode,.thesis-form label,.thesis-form>.course-table-scroll{grid-column:1/-1}
.dcf-form select,.thesis-form textarea{width:100%;min-height:46px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#111713;color:var(--text);font:inherit}
.dcf-form select{white-space:normal;max-width:100%;font-size:.86rem}.thesis-form textarea{resize:vertical;line-height:1.6}
.dcf-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:18px 0;border-block:1px solid var(--line);font-size:.8rem;color:var(--muted)}
.dcf-results strong{display:block;margin-top:8px;font-size:1.3rem;color:var(--accent);font-variant-numeric:tabular-nums}
.dcf-interpretation{font-size:.91rem}.dcf-figure{margin:24px 0}.dcf-figure svg{display:block;width:100%;height:auto;overflow:visible}.dcf-figure svg text{fill:var(--muted);font-size:11px}.dcf-figure figcaption{margin-top:8px;font-size:.8rem;color:#e5cf96}
.dcf-details{border-top:1px solid var(--line);padding:12px 0;font-size:.88rem}.dcf-details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:var(--accent)}.dcf-details summary::before{content:'+';margin-right:12px}.dcf-details[open] summary::before{content:'−'}
.dcf-error:empty{display:none}.dcf-error{color:var(--warning)}
.foundations-pillars{display:grid;gap:16px}.foundations-card{border:1px solid var(--line);border-radius:16px;padding:22px;background:#182119}.foundations-card h4{font-size:1.18rem;color:var(--text);margin:10px 0}.foundations-card p:last-child{margin-bottom:0}.foundations-example{padding:14px 16px;border-left:2px solid #e5cf96;background:#e5cf9608;font-size:.9rem}
.thesis-form>.course-table-scroll{margin:0}.thesis-form table{min-width:570px}.thesis-form table input{font-size:.85rem;min-width:145px}.thesis-actions{display:flex;gap:12px;flex-wrap:wrap}.thesis-actions button{min-height:44px;font-size:.88rem}
.foundations-close{border-top:1px solid var(--line);padding-top:20px}.foundations-close details{font-size:.88rem}.foundations-close summary{cursor:pointer;color:var(--accent);min-height:44px}
@media(max-width:600px){.lesson-dcf,.lesson-thesis{padding:18px 16px}.dcf-form,.thesis-form{grid-template-columns:1fr}.dcf-results{grid-template-columns:1fr;gap:14px}.dcf-results strong{font-size:1.2rem}.foundations-card{padding:18px}.foundations-intro{padding:16px}}
