@font-face{font-family:"Roboto";src:url(../fonts/Roboto-var-latin.woff) format("woff");font-weight:100 900;font-display:swap}
:root{--navy:#152450;--ink:#0B1228;--orange:#FF451A;--orange-d:#CC3715;--blue:#2243A2;--cream:#F9F8F5;--sand:#F1EFEA;--sky:#B1CADA;--ok:#18CAA8;--ok-d:#0e8d76;--bad:#CC3715;--radius:20px}
*{box-sizing:border-box}
html,body{margin:0}
body{font-family:Roboto,Arial,sans-serif;background:var(--cream);color:var(--navy);line-height:1.5;font-size:16px}
a{color:var(--blue)}
h1,h2,h3{font-weight:500;line-height:1.2;margin:0 0 .5em}
h1{font-size:2rem}h2{font-size:1.4rem}h3{font-size:1.1rem}
.boot{padding:4rem;text-align:center;color:var(--blue)}
header.top{background:var(--navy);color:#fff;display:flex;align-items:center;gap:1.5rem;padding:.8rem 1.5rem;flex-wrap:wrap}
header.top img.logo{height:30px;display:block}
header.top nav{display:flex;gap:.25rem;flex:1}
header.top nav a{color:#fff;text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding:.45rem .9rem;border-radius:999px;font-weight:500;font-size:.95rem}
header.top nav a:hover{background:rgba(255,255,255,.12)}
header.top nav a.active{background:var(--orange-d)}
header.top .who{font-size:.85rem;color:var(--sky);display:flex;align-items:center;gap:.8rem}
main{max-width:1180px;margin:0 auto;padding:1.6rem 1.2rem 4rem}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:2px solid transparent;border-radius:999px;background:var(--orange-d);color:#fff;font:500 1rem Roboto,Arial,sans-serif;padding:.55rem 1.5rem;cursor:pointer;text-decoration:none;text-align:center}
.btn:hover{background:#A92A0E}
.btn:disabled{background:#c9c6bf;color:#4A4F63;cursor:not-allowed}
.btn.secondary{background:transparent;color:var(--navy);border:2px solid var(--navy);padding:.5rem 1.3rem}
.btn.secondary:hover{background:var(--navy);color:#fff}
.btn.small{padding:.4rem 1rem;font-size:.9rem;min-height:44px}
.btn.disabled{background:#e4e1d9;color:#4A4F63;cursor:not-allowed;border-color:transparent}
.btn.disabled:hover{background:#e4e1d9}
.card{background:#fff;border-radius:var(--radius);padding:1.4rem;box-shadow:0 1px 0 rgba(21,36,80,.06),0 8px 24px rgba(21,36,80,.05)}
.panel{background:var(--sand);border-radius:var(--radius);padding:1.2rem 1.4rem}
.muted{color:var(--blue);font-size:.9rem}
.eyebrow{color:var(--orange-d);font-weight:500;font-size:.78rem;letter-spacing:.14em;text-transform:uppercase}
.grid{display:grid;gap:1.1rem}
.grid.modules{grid-template-columns:repeat(auto-fill,minmax(270px,1fr))}
.mod{padding:0;overflow:hidden;display:flex;flex-direction:column}
.mod img{width:100%;aspect-ratio:16/9;object-fit:cover;display:block;background:var(--navy)}
.mod .body{padding:1rem 1.2rem 1.3rem;display:flex;flex-direction:column;gap:.5rem;flex:1}
.mod .body p{margin:0;font-size:.9rem;color:#3a4670;flex:1}
.pill{display:inline-block;border-radius:999px;padding:.12rem .7rem;font-size:.78rem;font-weight:500;background:var(--sand);color:var(--navy)}
.pill.done{background:var(--ok);color:#052f27}.pill.prog{background:var(--sky)}.pill.lock{background:#ddd}
.bar{height:10px;border-radius:99px;background:var(--sand);overflow:hidden}
.bar>span{display:block;height:100%;background:var(--orange);border-radius:99px;transition:width .3s}
.stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin:1rem 0 1.6rem}
.stat b{display:block;font-size:1.9rem;font-weight:500}
.hero{background:var(--navy);color:#fff;border-radius:28px;padding:2rem 2.2rem;position:relative;overflow:hidden;margin-bottom:1.4rem}
.hero h1{color:#fff;max-width:640px}.hero p{max-width:620px;color:var(--sky);margin:.2rem 0 1rem}
.hero:before{content:"";position:absolute;right:-40px;top:-30px;width:300px;height:200px;border-radius:200px;background:var(--orange)}
.hero:after{content:"";position:absolute;right:70px;bottom:-60px;width:200px;height:150px;border-radius:200px;background:var(--blue)}
/* login */
.login-wrap{min-height:100vh;display:grid;place-items:center;background:var(--navy);padding:1rem;position:relative;overflow:hidden}
.login-wrap:before{content:"";position:absolute;right:6%;top:10%;width:320px;height:230px;border-radius:200px;background:var(--orange)}
.login-wrap:after{content:"";position:absolute;left:4%;bottom:8%;width:220px;height:160px;border-radius:200px;background:var(--blue)}
.login{position:relative;z-index:1;width:100%;max-width:440px;background:#fff;border-radius:28px;padding:2.2rem}
.login img.logo{height:34px;margin-bottom:1.2rem}
label{display:block;font-weight:500;margin:1rem 0 .3rem;font-size:.92rem}
input[type=email],input[type=text],input[type=search],input[type=number],input[type=date]{min-height:44px;width:100%;font:inherit;padding:.75rem 1rem;border-radius:12px;border:2px solid #d9d6cf;background:#fff;color:var(--navy)}
input:focus-visible{border-color:var(--blue)}
input.code{font-size:1.8rem;letter-spacing:.5em;text-align:center;font-weight:500}
.msg{margin:.8rem 0 0;padding:.65rem .9rem;border-radius:12px;font-size:.92rem}
.msg.err{background:#ffe3dc;color:#8a2410}.msg.ok{background:#d9f7f0;color:#0b5b4b}
/* player */
.player-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,1fr);gap:1.2rem;align-items:start}
@media(max-width:980px){.player-grid{grid-template-columns:1fr}}
.vwrap{position:relative;background:#000;border-radius:var(--radius);overflow:hidden;aspect-ratio:16/9}
.vwrap video{width:100%;height:100%;display:block;background:#000}
.cp-overlay{position:fixed;inset:0;background:rgba(11,18,40,.78);color:#fff;overflow:auto;padding:2rem 1rem;display:none;z-index:40}
.cp-box{max-width:780px;margin:0 auto;background:var(--navy);border-radius:24px;padding:1.5rem 1.8rem;box-shadow:0 20px 60px rgba(0,0,0,.45)}
.cp-overlay.show{display:block}
.cp-overlay h3{color:#fff;font-size:1.15rem}
.cp-overlay .tag{display:inline-block;background:var(--orange-d);border-radius:99px;padding:.1rem .7rem;font-size:.75rem;font-weight:500;letter-spacing:.08em;margin-bottom:.6rem}
.opt{display:flex;gap:.7rem;align-items:flex-start;min-height:44px;background:rgba(255,255,255,.08);border:2px solid transparent;border-radius:14px;padding:.6rem .9rem;margin:.45rem 0;cursor:pointer;font-size:.98rem}
.opt:hover{background:rgba(255,255,255,.15)}
.opt input{margin-top:.2rem;width:22px;height:22px;flex:none;accent-color:var(--orange-d)}
.opt.sel{border-color:var(--orange)}
.opt.right{border-color:var(--ok);background:rgba(24,202,168,.18)}
.opt.wrong{border-color:#ff8a70;background:rgba(255,69,26,.2)}
.fb{background:#fff;color:var(--navy);border-radius:14px;padding:.9rem 1.1rem;margin-top:.8rem;font-size:.92rem}
.fb.good{border-left:8px solid var(--ok)}.fb.bad{border-left:8px solid var(--orange)}
blockquote.quote{margin:.5rem 0 0;padding:.5rem .9rem;border-left:4px solid var(--sky);background:var(--sand);font-style:italic;font-size:.88rem}
.chapters{list-style:none;padding:0;margin:0}
.chapters li{margin:0}
.chapters button{width:100%;min-height:44px;align-items:center;text-align:left;border:0;background:transparent;font:inherit;color:var(--navy);padding:.5rem .7rem;border-radius:12px;cursor:pointer;display:flex;gap:.6rem;justify-content:space-between}
.chapters button:hover{background:var(--sand)}
.chapters button.cur{background:var(--navy);color:#fff}
.chapters .t{color:var(--blue);font-variant-numeric:tabular-nums;font-size:.85rem}
.chapters button.cur .t{color:var(--sky)}
.cpdots{display:flex;gap:.35rem;flex-wrap:wrap;margin:.4rem 0}
.cpdot{width:26px;height:12px;border-radius:12px;background:#d9d6cf}
.cpdot.ok{background:var(--ok)}.cpdot.no{background:var(--orange-d)}
.banner{background:var(--ok);color:#052f27;border-radius:16px;padding:.8rem 1.1rem;margin:1rem 0;font-weight:500}
.banner.demo{background:var(--sky);color:var(--navy)}
.narr{font-size:.92rem;color:#2c3a66}
/* exam */
.q{background:#fff;border-radius:var(--radius);padding:1.2rem 1.4rem;margin:1rem 0;box-shadow:0 1px 0 rgba(21,36,80,.06)}
.q .opt{background:var(--sand);color:var(--navy);margin:.4rem 0}
.q .opt:hover{background:#e8e4db}
.q .opt.sel{border-color:var(--orange)}
.q .opt.right{background:#d9f7f0;border-color:var(--ok)}.q .opt.wrong{background:#ffe3dc;border-color:var(--orange)}
.score{font-size:3rem;font-weight:500;line-height:1}
.score.pass{color:var(--ok-d)}.score.fail{color:var(--orange-d)}
table{width:100%;border-collapse:collapse;font-size:.9rem}
th,td{text-align:left;padding:.55rem .7rem;border-bottom:1px solid var(--sand);vertical-align:top}
th{background:var(--sand);font-weight:500;position:sticky;top:0}
tr.clickable{cursor:pointer}tr.clickable:hover td{background:#faf9f6}
.toast{position:fixed;left:50%;bottom:24px;transform:translateX(-50%) translateY(80px);background:var(--navy);color:#fff;padding:.7rem 1.2rem;border-radius:999px;transition:transform .25s;z-index:50;font-size:.92rem;pointer-events:none}
.toast.show{transform:translateX(-50%) translateY(0)}
footer{max-width:1180px;margin:0 auto;padding:0 1.2rem 2rem;color:var(--blue);font-size:.8rem}
.btn.secondary.light{color:#fff;border-color:#fff}.btn.secondary.light:hover{background:#fff;color:var(--navy)}
.num{flex:none;display:grid;place-items:center;width:2.4rem;height:2.4rem;border-radius:999px;background:var(--orange-d);color:#fff;font-weight:500}
html{scroll-behavior:smooth}
/* vimeo / player */
.vwrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;display:block}
.vsrc{font-size:.78rem;color:var(--blue);margin:.4rem 0 0}
.login .back{display:inline-block;margin-bottom:.8rem;font-size:.88rem}

/* courses */
.course{margin:0 0 2.4rem}.course-head h2{margin:.2rem 0 .4rem}
.course .grid.modules{margin-top:.4rem}
.btn[disabled]{opacity:.45;cursor:not-allowed;pointer-events:none}
.exam-card.locked{background:#f4f4f6}.lock-reason{font-size:.82rem;display:block;margin-top:.4rem}
.course-admin{margin:0 0 2rem}.course-admin h2{margin:.2rem 0 .2rem}
table.mini{width:100%;margin:.4rem 0 .8rem;font-size:.85rem}

/* transparent click shield over Vimeo's right-hand action buttons (like / watch later / share / embed); the bottom 64px (control bar) stay clickable */
.vshield{position:absolute;top:0;right:0;bottom:64px;width:76px;z-index:3;background:transparent}

/* admin: assignment */
#assign-card select,#assign-card textarea{width:100%;max-width:560px;font:inherit;padding:.55rem .7rem;border:1px solid #c9cbd8;border-radius:10px;background:#fff;color:inherit}
#assign-card textarea{resize:vertical}
ul.results{list-style:none;padding:0;margin:.6rem 0 0;font-size:.9rem}ul.results li{padding:.25rem 0;border-bottom:1px solid #eee}
li.r-rejected,li.r-failed,li.r-not_assigned{color:#a12a0e}li.r-assigned,li.r-sent{color:#0b6b57}
.pill.selfstart{background:#FFE9B8;color:#5A3B00;font-weight:500;text-transform:none;letter-spacing:0}
.pill.asg{background:var(--orange-d);color:#fff;margin-left:.5rem;text-transform:none;letter-spacing:0}
.course.assigned .course-head h2{color:var(--navy)}

.course-source{margin:.6rem 0 0;color:var(--blue);font-size:.8rem}

/* ---------- UX batch ---------- */
/* keyboard focus: always visible (never outline:none); light ring on dark backgrounds */
:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
header.top :focus-visible,.cp-overlay :focus-visible,.hero :focus-visible{outline-color:#fff}
.opt:focus-within{outline:3px solid var(--blue);outline-offset:2px}
.cp-overlay .opt:focus-within{outline-color:#fff}
[tabindex="-1"]:focus:not(:focus-visible){outline:none}
.sr-only{position:absolute!important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.hero .eyebrow,.cp-overlay .eyebrow{color:#FF8A70}
.hint{margin:.4rem 0 0;font-size:.85rem;color:var(--blue)}.cp-overlay .hint{color:var(--sky)}
.pill.overdue{background:#B3261E;color:#fff;font-weight:700}
.due{font-weight:500}.due.is-overdue{color:#B3261E}
/* dashboard: sticky Continue / Start card */
.continue-card{position:sticky;top:0;z-index:15;display:flex;gap:1.2rem;align-items:center;justify-content:space-between;background:#fff;border-left:8px solid var(--orange-d);border-radius:var(--radius);padding:.9rem 1.3rem;margin:0 0 1rem;box-shadow:0 2px 0 rgba(21,36,80,.06),0 10px 28px rgba(21,36,80,.14)}
.continue-card .cc-main{flex:1;min-width:0}.continue-card h2{margin:.1rem 0 .15rem;font-size:1.25rem}
.continue-card .cc-sub{margin:0 0 .5rem}.continue-card .bar{max-width:420px}
.continue-card .cc-btn{flex:none;min-width:200px;font-size:1.05rem}
@media(max-width:640px){.continue-card{flex-direction:column;align-items:stretch;gap:.6rem;padding:.8rem 1rem}.continue-card h2{font-size:1.1rem}.continue-card .cc-btn{min-width:0;width:100%}header.top{padding:.5rem 1rem;gap:.4rem 1rem}.hero{padding:1.2rem 1.3rem}.hero h1{font-size:1.6rem}main{padding-top:1rem}}
.due-line,.completed-line{margin:.2rem 0 .4rem}
/* module page */
.mod-progress{margin:.2rem 0 .6rem;max-width:520px}.mod-progress .bar{margin:.3rem 0}
.rules-line{margin:.2rem 0 1rem;color:var(--ink)}
.watchbox{margin-top:.8rem;padding:.9rem 1.2rem}.watch-label{font-weight:500;margin-bottom:.4rem}
.watchbar{position:relative;height:14px;border-radius:99px;background:var(--sand);overflow:visible}
.watchbar .fill{display:block;height:100%;background:var(--blue);border-radius:99px;transition:width .3s;max-width:100%}
.watchbar.met .fill{background:var(--ok-d)}
.watchbar .mark{position:absolute;top:-4px;bottom:-4px;width:3px;background:var(--navy);border-radius:2px}
.mod-nav{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap;margin-top:1rem}
.nav-next{display:flex;align-items:center;gap:.8rem;flex-wrap:wrap}.nav-hint{font-size:.85rem}
/* exam run */
.exam-intro ul.rules{padding-left:1.2rem}.exam-intro ul.rules li{margin:.35rem 0}
.run-head{margin-bottom:.6rem}.run-meta{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.run-meta h1.qcount{margin:0;font-size:1.6rem}
.timer{display:flex;align-items:baseline;gap:.2rem;font-variant-numeric:tabular-nums;background:var(--navy);color:#fff;border-radius:999px;padding:.35rem 1.1rem;min-width:96px;justify-content:center}
.timer .tnum{font-size:1.8rem;font-weight:700}.timer .tunit{font-size:1rem}
.timer.warn{background:#B3261E;animation:pulse 1s infinite}
.tbar{height:10px;border-radius:99px;background:var(--sand);overflow:hidden;margin:.6rem 0}
.tbar>span{display:block;height:100%;background:var(--blue);border-radius:99px;transition:width .25s linear}
.tbar>span.warn{background:#B3261E}
.warn-line{margin:.2rem 0;color:#B3261E;font-weight:700}
@keyframes pulse{50%{opacity:.75}}
@media(prefers-reduced-motion:reduce){.timer.warn{animation:none}.confetti i{animation:none!important;opacity:0}}
#qf h2{font-size:1.3rem}#qf .opt{font-size:1.05rem}
.res.ok{border-left:8px solid var(--ok)}.res.bad{border-left:8px solid #B3261E}
.res .ans{list-style:none;padding:0;margin:.4rem 0}.res .yc{font-size:.92rem;margin:.6rem 0}
.res summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
.res-state{font-weight:700}
/* certificate / celebration */
.celebrate{max-width:900px;margin:0 auto}
.cert{background:#F9F8F5;border:2px solid #D9D5C8;border-radius:12px;overflow:hidden;box-shadow:0 10px 30px rgba(21,36,80,.15);margin-top:1rem;aspect-ratio:842/595;display:flex;flex-direction:column;container-type:inline-size}
.cert-band{background:#152450;border-bottom:6px solid #FF451A;padding:3% 6%;display:flex;justify-content:space-between;align-items:center;color:#fff;font-weight:700;font-size:clamp(.5rem,1.6vw,.9rem);letter-spacing:.06em}
.cert-band img{width:24%;height:auto;display:block}
.cert-body{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:2% 5%;gap:1.6%}
.cert-title{font-size:clamp(1rem,3.6vw,2rem);font-weight:700;color:#152450}
.cert-line{font-size:clamp(.65rem,1.8vw,1rem);color:#4A4F63}
.cert-name{font-size:clamp(1.2rem,4.8vw,2.6rem);font-weight:700;color:#C2310F;border-bottom:1px solid #D9D5C8;padding:0 1.5rem .2rem;max-width:90%;overflow-wrap:anywhere}
.cert-course{font-size:clamp(.9rem,3vw,1.7rem);font-weight:700;color:#152450}
.cert-meta{display:flex;gap:6%;justify-content:center;margin-top:2%;flex-wrap:wrap}
.cert-meta div{display:flex;flex-direction:column;align-items:center}
.cert-meta span{font-size:clamp(.5rem,1.2vw,.7rem);letter-spacing:.08em;text-transform:uppercase;color:#2243A2;font-weight:700}
.cert-meta b{font-size:clamp(.7rem,1.8vw,1rem);color:#152450}.cert-meta small{font-size:clamp(.5rem,1.2vw,.7rem);color:#4A4F63}
.cert-verify{font-size:clamp(.5rem,1.3vw,.72rem);color:#4A4F63;margin-top:1%;overflow-wrap:anywhere}
.cert-actions{display:flex;gap:.8rem;flex-wrap:wrap}
.name-card{max-width:560px;margin:2rem auto}
.confetti{position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:30}
.confetti i{position:absolute;top:-16px;width:10px;height:16px;border-radius:2px;opacity:.9;animation:fall 3.2s ease-in forwards}
@keyframes fall{to{transform:translateY(105vh) rotate(540deg);opacity:.7}}
@media print{
  @page{size:A4 landscape;margin:10mm}
  body{background:#fff}header.top,footer,.no-print,.toast,.confetti{display:none!important}
  main{padding:0;max-width:none}.celebrate{max-width:none}
  .cert{box-shadow:none;margin:0;width:100%;-webkit-print-color-adjust:exact;print-color-adjust:exact;break-inside:avoid}
  .cert *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}
/* admin */
.chk{display:flex;align-items:center;gap:.5rem;min-height:44px;font-weight:500;margin:.4rem 0}
.chk input{width:20px;height:20px;accent-color:var(--orange-d)}
.due-opts{border:1px solid #D9D5C8;border-radius:12px;margin:.4rem 0;padding:.4rem 1rem}
.due-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.due-row input[type=number]{width:96px}
.filters{display:flex;gap:1rem;flex-wrap:wrap;align-items:flex-end;margin-bottom:.8rem}
.filters .f-item{flex:1;min-width:160px}.filters label{margin:0 0 .3rem}.filters select,.filters input{width:100%;font:inherit;padding:.5rem .7rem;min-height:44px;border:2px solid #d9d6cf;border-radius:12px;background:#fff;color:var(--navy)}
.filters .f-btns{flex:none;display:flex;gap:.6rem}
th.plain{background:transparent;font-weight:500;position:static}
.pill.st-passed{background:var(--ok);color:#052f27}.pill.st-failed{background:#FFD9CF;color:#7A200C}.pill.st-in_progress{background:var(--sky)}
.due-form{margin-top:.8rem;display:flex;gap:.8rem;align-items:center;flex-wrap:wrap}.due-form label:not(.chk){font-weight:500;margin:0}
tr.clickable:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
tr.detail[hidden]{display:none}

/* ---- batch: results page, profile step, leave-exam dialog, checkpoint retry / flags ---- */
.field{margin:.2rem 0}.field-err{color:#8a2410;font-size:.88rem;min-height:1.2rem;margin-top:.2rem}
input[aria-invalid=true]{border-color:#B3261E}
.profile-card{max-width:560px;margin:2rem auto}.pf-actions{display:flex;flex-wrap:wrap;gap:.6rem;align-items:center}
textarea{width:100%;font:inherit;padding:.75rem 1rem;border-radius:12px;border:2px solid #d9d6cf;background:#fff;color:var(--navy);box-sizing:border-box}
textarea:focus-visible{border-color:var(--blue)}
.cert-who{display:flex;flex-direction:column;gap:.1rem;background:var(--sand);border-radius:14px;padding:.9rem 1.1rem;margin:.4rem 0 .8rem}.cert-who b{font-size:1.5rem;overflow-wrap:anywhere}.cert-who span{color:#41507a}
.res-head .sc-pct{font-size:1.4rem}.res-verdict{font-size:1.25rem;margin:.6rem 0}.res-verdict.pass{color:var(--ok-d)}.res-verdict.fail{color:#B3261E}
.res-head.is-pass{border-top:8px solid var(--ok)}.res-head.is-fail{border-top:8px solid #B3261E}
.res-chips{list-style:none;display:flex;flex-wrap:wrap;gap:.5rem;padding:0;margin:.6rem 0 0}.res-chips li{background:var(--sand);border-radius:999px;padding:.25rem .8rem;font-size:.9rem;font-weight:500}
.res-title{margin-top:1.4rem}.res-list{list-style:none;padding:0;margin:0}.res-item{margin:0 0 .8rem}
.res-top{display:flex;flex-wrap:wrap;gap:.4rem .9rem;align-items:center}.res-n{font-weight:500;font-size:.9rem;color:#41507a}
.res-state{display:inline-flex;gap:.35rem;align-items:center;border-radius:999px;padding:.12rem .75rem;font-weight:700;font-size:.9rem}
.res-state.ok{background:#d9f7f0;color:#0b5b4b}.res-state.bad{background:#ffe3dc;color:#8a2410}
.res-q{margin:.5rem 0;font-size:1.08rem;overflow-wrap:anywhere}
.yc{display:grid;gap:.5rem;margin:.5rem 0}.yc div{background:var(--sand);border-radius:12px;padding:.55rem .8rem}.yc dt{font-size:.78rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#41507a}.yc dd{margin:.1rem 0 0;overflow-wrap:anywhere}
.res-why summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.res-src{overflow-wrap:anywhere}
.res .btn.small{white-space:normal;text-align:left}
.res-actions{margin-top:1rem;position:sticky;bottom:.5rem}
.timer .tpause{display:none;font-size:.95rem;font-weight:700;margin-left:.4rem}.timer.paused{background:#41507a;animation:none}.timer.paused .tpause{display:inline}
.q.q-hidden{visibility:hidden;filter:blur(14px);user-select:none;pointer-events:none}
.modal-back{position:fixed;inset:0;background:rgba(11,18,40,.6);display:grid;place-items:center;padding:1rem;z-index:1000}
.modal{background:#fff;color:var(--navy);border-radius:20px;padding:1.5rem;max-width:480px;width:100%;box-shadow:0 20px 60px rgba(0,0,0,.4)}
.modal h2{margin-top:0}.modal-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.btn.danger{border-color:#B3261E;color:#8a2410}.modal-open{overflow:hidden}
.cp-tries{font-size:.92rem;margin:.4rem 0}.cp-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.flag-answers{margin:.3rem 0 0;padding-left:1.1rem;font-size:.88rem}.inline-label{display:inline;margin:0 .4rem 0 0}
.cpdot{display:inline-block}
@media(max-width:640px){
  .score{font-size:2.3rem}.res-head .sc-pct{font-size:1.1rem}
  .res-actions{position:static}.res-actions .btn,.pf-actions .btn,.modal-actions .btn{width:100%;text-align:center}
  .profile-card,.name-card{margin:1rem 0}.cert-who b{font-size:1.2rem}
  .res-list,.res-item,.res .q{max-width:100%}main{overflow-wrap:anywhere}
  .modal{padding:1.1rem}
}

/* courses list (#/) and course detail (#/course/<id>) */
.crumbs{margin:0 0 .8rem;font-size:.92rem}.crumbs a{display:inline-flex;align-items:center;min-height:44px;padding:0 .15rem}.crumbs [aria-current]{font-weight:500}
.course-list{list-style:none;margin:0 0 2rem;padding:0;display:grid;gap:1.3rem;grid-template-columns:repeat(auto-fill,minmax(320px,1fr))}
.cl-item{display:flex;min-width:0}
.course-card{position:relative;padding:0;overflow:hidden;display:flex;flex-direction:column;width:100%;cursor:pointer;transition:transform .15s ease,box-shadow .15s ease}
.course-card:hover{transform:translateY(-2px);box-shadow:0 1px 0 rgba(21,36,80,.06),0 14px 32px rgba(21,36,80,.12)}
.course-card.assigned{border-top:6px solid var(--orange-d)}
.cl-thumb{background:var(--navy);aspect-ratio:16/9}.cl-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cl-body{display:flex;flex-direction:column;gap:.55rem;padding:1.1rem 1.3rem 1.3rem;flex:1}
.cl-badges{display:flex;flex-wrap:wrap;gap:.35rem;align-items:center;font-size:.85rem}.cl-badges .pill.asg{margin-left:0}
.cl-title{margin:.1rem 0 0;font-size:1.3rem;line-height:1.25}
.course-link{color:var(--navy);text-decoration:none}.course-link:hover{text-decoration:underline}
.course-link::after{content:"";position:absolute;inset:0;z-index:1;border-radius:var(--radius)}
.course-link:focus-visible{outline:none;text-decoration:underline}.course-link:focus-visible::after{outline:3px solid var(--blue);outline-offset:-3px}
.cl-desc{margin:0;font-size:.92rem;color:#3a4670}
.cl-prog{display:flex;flex-direction:column;gap:.35rem;margin-top:.2rem;padding-top:.7rem;border-top:1px solid var(--sand)}
.cl-row{display:flex;justify-content:space-between;gap:.8rem;font-size:.9rem}.cl-row span{color:#3a4670}.cl-row b{font-weight:500;text-align:right}
.cl-exam.ok{color:#0b6b59}
.cl-actions{margin:auto 0 0;padding-top:.5rem}.cl-actions .btn,.cl-actions a{position:relative;z-index:2}.course-action{min-height:44px;min-width:160px}
.course-soon{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;gap:.3rem;border:2px dashed var(--sky);border-radius:var(--radius);padding:1.6rem 1.2rem;min-height:220px;color:var(--navy);background:transparent}
.course-soon p{margin:0;font-size:.9rem;color:#3a4670;max-width:260px}
.empty-courses{text-align:center;padding:2rem 1.4rem}
.continue-card.in-page{position:static;margin:0 0 1.4rem}
.course-desc{font-size:1rem;margin:.2rem 0 .5rem}
.sec-h{margin:1.4rem 0 .6rem;font-size:1.3rem}
.cert-earned{display:flex;gap:1rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 1.4rem;border-left:8px solid var(--ok-d)}
#course-h:focus{outline:none}
@media(max-width:640px){.course-list{grid-template-columns:1fr}.cert-earned .btn{width:100%;text-align:center}}
.hero>*{position:relative;z-index:1}
@media(max-width:640px){.hero:before{width:120px;height:84px;right:-34px;top:-26px}.hero:after{width:90px;height:62px;right:14px;bottom:-34px}.hero h1,.hero p{max-width:100%}}

/* signed-out header: logo, Courses tab and Sign in stay on one row on phones */
header.top.pub .who{margin-left:auto}
@media(max-width:640px){header.top.pub{gap:.4rem}header.top.pub img.logo{height:24px}header.top.pub nav{flex:none}header.top.pub nav a{padding:.45rem .7rem}header.top.pub .who .btn{padding:.4rem .8rem}}

/* admin: admins section (super admins) */
.grant-form{margin:.2rem 0 1.2rem}.grant-form label{display:block;font-weight:500;margin-bottom:.3rem}
.grant-row{display:flex;gap:.6rem;flex-wrap:wrap;align-items:stretch}.grant-row input{flex:1 1 260px;min-width:0}
.admin-log{margin-top:1rem;font-size:.9rem}.admin-log summary{cursor:pointer;min-height:44px;display:flex;align-items:center}.admin-log ul{margin:.2rem 0 0;padding-left:1.2rem;line-height:1.6}
@media(max-width:640px){.grant-row .btn{width:100%}}

.role-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--sand)}
.role-item{display:grid;grid-template-columns:minmax(0,2fr) 8rem minmax(0,2fr) auto;gap:.4rem 1rem;align-items:center;padding:.8rem 0;border-bottom:1px solid var(--sand)}
.role-item .ri-meta{font-size:.9rem;overflow-wrap:anywhere}.role-item .ri-who{overflow-wrap:anywhere}.role-item .ri-act{justify-self:end}
@media(max-width:640px){.role-item{grid-template-columns:1fr auto}.role-item .ri-who{grid-column:1}.role-item .ri-role{grid-column:2;grid-row:1;justify-self:end}.role-item .ri-meta{grid-column:1 / -1}.role-item .ri-act{grid-column:1 / -1;justify-self:stretch}.role-item .ri-act .btn{width:100%}}

/* course publication: draft pill/note (super admins and admins only), empty video slot */
.pill.draft{background:#FFE9B8;color:#5A3B00;font-weight:700}
.msg.draft-note{background:#FFF3D6;color:#5A3B00;border:1px solid #F0CF86}
.vph{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.4rem;background:#F1EFEA;color:var(--navy);text-align:center;padding:1rem}
.vph img{max-width:46%;max-height:55%;border-radius:12px}.vph p{margin:0}
#courses-table th[scope=row]{text-align:left}
/* highlighted key point on a module page */
.key-point{border:2px solid var(--orange-d,#FF451A);background:#FFF6F2;margin:.8rem 0 1rem}.key-point h2{margin:.35rem 0 .4rem;font-size:1.15rem}.key-point p{margin:.3rem 0}
.pill.hl{background:var(--orange-d,#FF451A);color:#fff;font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.as-preview{margin:.5rem 0 .2rem}.as-preview:empty{display:none}.pv-table{margin:.3rem 0;font-size:.88rem}.pv-table th{text-align:left;font-weight:600;border-bottom:2px solid #ddd;padding:.25rem .5rem}.pv-table td{padding:.25rem .5rem;border-bottom:1px solid #eee}.pv-table tr.pv-rejected td{background:#fff3f0}.pv-invalid{margin:.4rem 0;padding-left:1.1rem;font-size:.88rem}.results .nm{color:#444}.err{color:#8a2410}
