:root {
  --navy:#063968; --blue:#087aa5; --cyan:#15b8ca; --ink:#142536;
  --muted:#667686; --line:#dbe5eb; --soft:#f3f7f9; --white:#fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
*{box-sizing:border-box}
body{margin:0;color:var(--ink);background:var(--soft);font-size:16px}
.language-switch{display:flex;justify-content:flex-end;gap:.45rem;margin-bottom:.4rem}.language-switch a,.language-nav{font-weight:800;text-decoration:none;color:#0b4f7d;border:1px solid #b7d5e5;border-radius:999px;padding:.3rem .55rem;background:#fff}.language-switch a[aria-current="true"],.language-nav[aria-current="true"]{background:#0b4f7d;color:#fff}.language-nav{font-size:.78rem}
button{font:inherit}
.auth-gate{min-height:100vh;display:grid;place-items:center;padding:32px;background:radial-gradient(circle at 10% 10%,#dff8ff 0,transparent 34%),linear-gradient(135deg,#f7fbfd,#eaf6fb)}
.auth-gate[hidden],#portalShell[hidden]{display:none}
.auth-card{width:min(460px,100%);background:#fff;border:1px solid #dce9ef;border-radius:24px;padding:38px;box-shadow:0 24px 70px rgba(0,51,83,.14)}
.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:36px;color:var(--navy)}.auth-brand strong{display:block;font-size:1.35rem}.auth-brand small{display:block;letter-spacing:.18em;font-weight:800}
.auth-card h1{margin:.35rem 0 .65rem;color:var(--navy);font-size:2rem}.auth-card>p{line-height:1.55;color:#526777}
.auth-card form{display:grid;gap:17px;margin-top:25px}.auth-card label{display:grid;gap:7px;font-weight:700;color:#24465d}.auth-card input{width:100%;border:1px solid #bfcfd8;border-radius:11px;padding:13px 14px;font:inherit}.auth-card input:focus{outline:3px solid rgba(0,174,239,.18);border-color:#00aeef}
.auth-card .primary{width:100%;margin-top:5px}.auth-message{min-height:24px;margin:15px 0 0!important;color:#0c6b48!important}.auth-message.error{color:#a22b2b!important}.text-button{display:block;margin:4px auto 0;border:0;background:none;color:#006fa6;font-weight:800;cursor:pointer;padding:9px}
.purchase-option{border-top:1px solid var(--line);margin-top:18px;padding-top:18px;text-align:center;display:grid;gap:10px;color:var(--muted);font-size:.92rem}.purchase-option a{display:block;border:1px solid var(--cyan);border-radius:10px;padding:11px 14px;color:var(--navy);font-weight:800;text-decoration:none}.purchase-option a:hover{background:#eaf8fa}
.account-menu{position:relative;margin-left:auto}.account-button{display:flex;align-items:center;gap:10px;border:1px solid transparent;background:transparent;padding:6px 8px;border-radius:12px;cursor:pointer;text-align:left}.account-button:hover,.account-button[aria-expanded="true"]{background:#eef7fa;border-color:var(--line)}.account-summary{display:flex;flex-direction:column;max-width:210px}.account-summary strong{color:var(--navy);font-size:.9rem}.account-summary small{font-size:.76rem;color:#4f6573;overflow:hidden;text-overflow:ellipsis}.account-chevron{color:var(--muted)}.account-dropdown{position:absolute;right:0;top:calc(100% + 8px);width:260px;background:white;border:1px solid var(--line);border-radius:12px;box-shadow:0 14px 35px rgba(2,49,82,.18);padding:10px;z-index:30}.account-dropdown[hidden]{display:none}.account-dropdown-identity{display:flex;flex-direction:column;padding:9px 10px 12px;border-bottom:1px solid var(--line)}.account-dropdown-identity strong{color:var(--navy)}.account-dropdown-identity span{font-size:.8rem;color:var(--muted);overflow-wrap:anywhere}.account-dropdown button{width:100%;border:0;background:transparent;color:#9a2b2b;text-align:left;padding:11px 10px;margin-top:5px;border-radius:8px;cursor:pointer;font-weight:700}.account-dropdown button:hover{background:#fff0f0}.locked .video-stage{filter:saturate(.3)}
.topbar{height:82px;background:var(--white);border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 4vw;gap:40px;position:sticky;top:0;z-index:10}
.brand{display:flex;align-items:center;gap:10px;color:var(--navy);text-decoration:none;margin-right:auto}
.brand-mark{width:42px;height:48px;border:3px solid var(--navy);border-radius:8px;display:grid;place-items:center;color:var(--cyan);font-size:26px}
.brand strong{font-size:23px;display:block;line-height:1}.brand small{font-size:11px;letter-spacing:.2em;font-weight:800}
nav{display:flex;gap:8px}.nav-button{border:0;background:transparent;color:var(--muted);padding:12px 14px;border-radius:8px;cursor:pointer}.nav-button.active{color:var(--navy);background:#eaf5f8;font-weight:700}
.profile-button{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:0;background:var(--navy);color:white;font-weight:800;flex:0 0 auto}
main{max-width:1440px;margin:auto;padding:34px 4vw 50px}
.course-tabs{display:flex;gap:8px;margin:0 0 20px;padding:8px;background:white;border:1px solid var(--line);border-radius:14px;box-shadow:0 8px 24px rgba(2,49,82,.08)}.course-tabs .nav-button{flex:1;border:1px solid transparent;font-weight:750}.course-tabs .nav-button.active{border-color:#b7dfe8;box-shadow:inset 0 -3px var(--cyan)}
.course-hero{background:linear-gradient(120deg,var(--navy),#075584);color:white;border-radius:20px;padding:30px 34px;display:grid;grid-template-columns:1.7fr 1fr;gap:40px;align-items:center;box-shadow:0 18px 50px rgba(2,49,82,.16)}
.course-switcher{margin-bottom:20px;background:white;border:1px solid var(--line);border-radius:18px;padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:24px}.course-switcher h2{margin:3px 0 0;color:var(--navy);font-size:1.25rem}.course-switcher .eyebrow{color:var(--blue);margin:0}.course-choices{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.course-choice{border:1px solid var(--line);background:var(--soft);color:var(--navy);padding:12px 15px;border-radius:11px;cursor:pointer;font-weight:750;max-width:260px;text-align:left}.course-choice.active{background:var(--navy);border-color:var(--navy);color:white}.course-choice small{display:block;font-weight:500;opacity:.82;margin-top:3px}
.eyebrow{color:#9de7ed;font-size:13px;font-weight:800;letter-spacing:.14em}.course-hero h1{font-size:clamp(30px,4vw,48px);line-height:1.05;margin:8px 0 12px;max-width:760px}.course-hero p{max-width:760px;line-height:1.6}
.progress-card{background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.24);border-radius:14px;padding:20px}.progress-card>div:first-child{display:flex;justify-content:space-between}.progress-card strong{font-size:26px}.progress-track{height:9px;background:rgba(255,255,255,.2);border-radius:10px;margin:14px 0 9px;overflow:hidden}.progress-track span{display:block;height:100%;width:0;background:var(--cyan);transition:width .3s}
.purchase-banner{margin-top:20px;padding:22px 26px;border:2px solid var(--cyan);border-radius:16px;background:white;display:flex;align-items:center;justify-content:space-between;gap:28px;box-shadow:0 10px 30px rgba(2,49,82,.1)}.purchase-banner .eyebrow{color:#007da8;margin:0 0 5px}.purchase-banner h2{margin:0;color:var(--navy);font-size:24px}.purchase-banner p:last-child{margin:7px 0 0;color:var(--muted);line-height:1.5}.purchase-button{flex:0 0 auto;border-radius:11px;padding:15px 22px;background:var(--navy);color:white;text-decoration:none;font-weight:800;box-shadow:0 8px 18px rgba(0,50,83,.18)}.purchase-button:hover{background:#075584}.purchase-banner[hidden]{display:none}
.workspace{display:grid;grid-template-columns:330px 1fr;background:white;border:1px solid var(--line);border-radius:18px;overflow:hidden;margin-top:26px;min-height:680px}
.view[hidden]{display:none}
.module-list{border-right:1px solid var(--line);background:#fbfdfe}.module-list-heading{padding:22px;display:flex;justify-content:space-between;border-bottom:1px solid var(--line);font-weight:800}.module-list-heading small{color:var(--muted);font-weight:500}
.module-button{width:100%;border:0;border-bottom:1px solid #edf2f5;background:transparent;text-align:left;padding:15px 18px;display:grid;grid-template-columns:32px 1fr 22px;gap:10px;align-items:start;color:var(--ink);cursor:pointer}.module-button:hover,.module-button.selected{background:#eaf5f8}.module-button.selected{box-shadow:inset 4px 0 var(--cyan)}.module-index{width:28px;height:28px;border-radius:50%;background:#e5edf1;display:grid;place-items:center;font-size:13px;font-weight:800}.module-button.selected .module-index{background:var(--navy);color:white}.module-title{font-weight:650;line-height:1.35}.module-status{color:var(--cyan);font-weight:900}
.lesson-panel{padding:32px 38px}.lesson-meta{display:flex;justify-content:space-between;color:var(--blue);font-size:13px;font-weight:800;letter-spacing:.08em}.lesson-panel h2{font-size:32px;color:var(--navy);margin:12px 0 8px}.lesson-panel>p{color:var(--muted);line-height:1.55;margin-top:0}.video-stage{aspect-ratio:16/8.4;background:linear-gradient(145deg,#082f53,#0b6e8e);border-radius:16px;margin:25px 0;color:white;display:grid;place-items:center;box-shadow:inset 0 0 80px rgba(0,0,0,.18)}.video-lockup{text-align:center;max-width:480px;padding:25px}.play-button{width:72px;height:72px;border-radius:50%;border:2px solid rgba(255,255,255,.7);background:white;color:var(--navy);font-size:27px;cursor:pointer;padding-left:7px}.video-lockup p{line-height:1.5;color:#d6f1f4}
.lesson-selector{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0}.lesson-chip{border:1px solid var(--line);background:white;color:var(--navy);border-radius:999px;padding:9px 13px;cursor:pointer;font-weight:700}.lesson-chip.active{background:#dff5f7;border-color:var(--cyan);color:#023152}
.course-video{width:100%;height:100%;border:0;border-radius:16px;grid-area:1/1}
.lesson-actions{display:grid;grid-template-columns:auto 1fr auto;gap:12px}.primary,.secondary,.resource-grid button{border-radius:10px;padding:12px 18px;border:1px solid var(--line);cursor:pointer}.primary{background:var(--navy);color:white;border-color:var(--navy);font-weight:750}.primary.completed{background:#e9f8f3;color:#087857;border-color:#93d7c4}.secondary{background:white;color:var(--navy)}button:disabled{opacity:.5;cursor:not-allowed}.lesson-notes{margin-top:26px;padding:22px;background:var(--soft);border-radius:13px}.lesson-notes h3{margin-top:0;color:var(--navy)}.lesson-notes li{margin:9px 0;line-height:1.45}
.info-view{margin-top:26px;background:white;border:1px solid var(--line);border-radius:18px;padding:34px}.info-view h2{color:var(--navy);font-size:32px;margin-top:0}.resource-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:25px}.resource-grid article{border:1px solid var(--line);border-radius:14px;padding:22px;display:flex;flex-direction:column}.resource-grid article>span{font-size:12px;font-weight:800;color:var(--blue);letter-spacing:.1em}.resource-grid h3{color:var(--navy)}.resource-grid p{color:var(--muted);min-height:50px;flex:1}.resource-download{display:inline-block;border-radius:10px;padding:12px 18px;background:var(--navy);color:white;text-decoration:none;font-weight:750;text-align:center}.resource-download:hover{background:#075584}.resource-notice{color:#9a2b2b;font-weight:700}.progress-overview{margin-top:24px;padding:22px;background:var(--navy);color:white;border-radius:14px}.progress-overview strong{font-size:2rem;display:block}.progress-overview>span{display:block;margin:4px 0 14px}.progress-rows{display:grid;gap:10px;margin-top:24px}.progress-row{width:100%;border:0;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;background:var(--soft);border-radius:10px;text-align:left;cursor:pointer}.progress-row:hover{background:#e4f2f6}.progress-row strong{color:var(--navy)}.progress-row span{color:var(--muted)}.progress-row.done span{color:#087857;font-weight:700}
.quiz-panel{margin-top:26px;padding:24px;border:1px solid var(--line);border-radius:14px;background:#fff}.quiz-heading{display:flex;align-items:center;justify-content:space-between;gap:18px}.quiz-heading .eyebrow{margin:0 0 5px;color:var(--blue)}.quiz-heading h3{margin:0;color:var(--navy);font-size:1.45rem}.quiz-score-badge{padding:9px 12px;background:var(--soft);border-radius:999px;color:var(--muted);font-weight:700;white-space:nowrap}.quiz-score-badge.passed{background:#e9f8f3;color:#087857}.quiz-status{font-weight:700;color:var(--navy)}#quizForm{margin-top:22px}.quiz-question{border:1px solid var(--line);border-radius:12px;padding:18px;margin:0 0 16px}.quiz-question legend{font-weight:750;color:var(--navy);padding:0 6px;line-height:1.4}.quiz-question legend span{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--navy);color:white;margin-right:10px}.quiz-question label{display:flex;align-items:flex-start;gap:10px;margin:11px 0;padding:10px;border-radius:8px;cursor:pointer}.quiz-question label:hover{background:var(--soft)}.quiz-question input{margin-top:3px}.quiz-result{margin-top:18px;padding:18px;border-radius:12px;background:#eaf5f8;color:var(--navy)}.quiz-result strong{font-size:1.15rem}.quiz-result p{margin-bottom:0}
footer{max-width:1440px;margin:auto;padding:0 4vw 35px;color:var(--muted);font-size:13px;display:flex;justify-content:space-between;gap:20px}
@media(max-width:900px){.topbar{gap:12px;padding:0 18px}.brand small{display:none}nav{position:fixed;left:0;right:0;bottom:0;background:white;border-top:1px solid var(--line);justify-content:center;padding:7px;z-index:20}.course-switcher{align-items:stretch;flex-direction:column}.course-choices{justify-content:flex-start}.course-hero{grid-template-columns:1fr}.purchase-banner{align-items:stretch;flex-direction:column}.purchase-button{text-align:center}.workspace{grid-template-columns:1fr}.module-list{border-right:0;border-bottom:1px solid var(--line);max-height:300px;overflow:auto}.lesson-panel{padding:24px}.resource-grid{grid-template-columns:1fr}footer{padding-bottom:90px;flex-direction:column}}
@media(max-width:560px){main{padding:18px 12px 40px}.auth-card{padding:26px 22px}.auth-card h1{font-size:1.65rem}.account-summary,.account-chevron{display:none}.course-tabs{display:grid;grid-template-columns:1fr;padding:6px}.course-tabs .nav-button{padding:10px 8px}.course-hero{padding:24px 20px}.lesson-panel h2{font-size:26px}.lesson-actions{grid-template-columns:1fr 1fr}.primary{grid-column:1/-1;grid-row:1}.video-stage{aspect-ratio:4/3}.progress-row{align-items:flex-start;gap:10px}.progress-row span{white-space:nowrap}}
