:root{--study:#126c70;--study-dark:#084c50;--study-light:#e9f6f4;--study-border:#d5e2e1}
.cna-course{--accent:var(--study);--accent-dark:var(--study-dark)}
.review-shell{max-width:1120px;margin:0 auto;padding:clamp(18px,3vw,32px)}
.review-hero{padding:34px clamp(22px,4vw,48px);background:#fff;border-radius:18px;border:1px solid var(--study-border);margin-bottom:18px}
.review-hero .program-kicker{font-size:12px;font-weight:850;letter-spacing:.12em;color:var(--study);margin-bottom:8px}
.review-hero h1{font-family:ScienceWeiseDisplay,system-ui,sans-serif;font-size:clamp(30px,4vw,48px);line-height:1.12;margin:0 0 12px}
.review-hero p{color:#464e58;max-width:770px;font-size:17px;margin:0}
.review-note{border:1px solid #b7d6d4;background:#edf8f7;border-radius:12px;padding:13px 18px;font-size:14px;margin:0 0 20px}
.review-controls,.review-stage{background:white;border:1px solid var(--study-border);box-shadow:0 2px 12px #1118270a;border-radius:18px;padding:clamp(18px,3vw,30px);margin-bottom:20px}
.review-controls fieldset{border:0;padding:0;margin:0 0 18px;min-width:0}
.review-controls legend{font-size:16px;font-weight:800;margin-bottom:10px}
.choice-tabs{display:flex;flex-wrap:wrap;gap:8px}
.choice-tabs button,.activity-grid button,.restart,.review-action,.review-choice{font:inherit;cursor:pointer}
.choice-tabs button{background:#fff;color:#1e3640;border:1px solid #c8d1d6;padding:10px 18px;border-radius:999px;font-weight:750;min-height:44px}
.choice-tabs button[aria-pressed=true]{background:var(--study-dark);color:white;border-color:var(--study-dark)}
.select-grid{display:grid;grid-template-columns:minmax(260px,2fr) minmax(165px,1fr);gap:16px;margin-bottom:12px}
.select-grid label{display:flex;flex-direction:column;gap:7px;font-size:14px;font-weight:750}
.select-grid select{border:1px solid #b7c8ce;border-radius:10px;background:white;color:#1c292e;font-size:16px;padding:11px 12px;width:100%;max-width:100%;min-height:48px}
.set-description{padding:12px 15px;background:#f2f7f6;border-radius:10px;color:#3d4c50;font-size:14px;margin-bottom:20px}
.activity-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.activity-grid button{border:1px solid #cbd8da;border-radius:12px;min-height:95px;text-align:center;background:white;color:#27373c;font-weight:750;padding:11px 8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;line-height:1.35}
.activity-grid button span{font-size:23px;font-weight:800;color:var(--study)}
.activity-grid button[aria-pressed=true]{background:var(--study-light);border:2px solid var(--study-dark)}
.stage-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:13px}
.stage-kicker{color:var(--study);font-size:11px;letter-spacing:.13em;font-weight:850}
.stage-head h2{font-size:clamp(21px,2.8vw,28px);line-height:1.25;margin:4px 0 0}
.restart{border:1px solid #bccbce;background:#fff;border-radius:10px;min-height:43px;padding:8px 15px;font-size:14px;font-weight:800}
.stage-status{color:#4f5d62;font-size:14px;margin-bottom:14px;min-height:20px}
.study-card{border:1px solid #d5e2e1;border-radius:15px;background:#fcfdfd;padding:clamp(22px,4vw,40px);min-height:220px;text-align:center;display:flex;flex-direction:column;justify-content:center;gap:15px}
.study-card .mini-label{color:#466063;font-weight:800;text-transform:uppercase;letter-spacing:.1em;font-size:12px}
.study-card .big-term{font-family:ScienceWeiseDisplay,system-ui,sans-serif;font-size:clamp(25px,4vw,40px);line-height:1.2;margin:0}
.study-card .meaning{font-size:clamp(17px,2vw,23px);max-width:780px;margin:0 auto;overflow-wrap:anywhere}
.study-card .safety-warning{font-size:14px;text-align:left;border-left:4px solid #ca8a04;padding:10px 13px;background:#fff8e2;color:#5d4311}
.review-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin-top:17px}
.review-action{border:1px solid var(--study-dark);background:var(--study);color:white;font-weight:800;min-height:45px;padding:10px 18px;border-radius:10px}
.review-action.secondary{background:white;color:var(--study-dark)}
.review-action.studyagain{background:#a64b28;border-color:#a64b28}
.review-action.almost{background:#e2ebef;color:#183841;border-color:#c3d3dc}
.review-action.know{background:#155e53;border-color:#155e53}
.review-action:disabled{cursor:not-allowed;opacity:.45}
.mini-text{color:#536168;font-size:14px}
.feedback{padding:13px 16px;border-radius:11px;border:1px solid #bbd3c9;background:#eef8f3;color:#193e33;margin-top:15px}
.feedback.incorrect{background:#fff3e8;border-color:#ebc1a0;color:#693c20}
.review-options{display:grid;grid-template-columns:1fr;gap:10px;margin:17px 0}
.review-choice{min-height:48px;border:1px solid #b9cbd2;border-radius:10px;background:#fff;color:#253138;padding:13px 17px;text-align:left}
.review-choice.correct{border-color:#26785f;background:#e9f6ee}
.review-choice.incorrect{border-color:#a64329;background:#fff0e8}
.review-choice[disabled]{opacity:.85;cursor:default}
.match-grid{display:grid;gap:13px}
.match-row{display:grid;grid-template-columns:minmax(120px,2fr) minmax(210px,3fr);gap:12px;align-items:center;padding:13px;background:#f8faf9;border:1px solid #dfebea;border-radius:10px}
.match-row strong{overflow-wrap:anywhere}
.match-row select{width:100%;padding:12px;font:inherit;min-height:46px;border:1px solid #bccbce;border-radius:9px;background:white}
.match-row .result{grid-column:1 / -1;font-size:14px;margin-top:-5px}
.match-row[data-result=correct]{border-color:#8dc6ae;background:#eef8f2}
.match-row[data-result=wrong]{border-color:#e3b5a1;background:#fff7f1}
.word-build-selects{display:flex;gap:15px;flex-wrap:wrap;margin:15px 0}
.word-build-selects label{font-weight:700;display:grid;gap:6px;flex:1;min-width:160px}
.word-build-selects select{font:inherit;padding:12px;border:1px solid #b9cbd2;border-radius:9px;min-height:46px}
.wordlist{display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));margin:15px 0}
.term-item{border:1px solid #e2e9e9;border-radius:12px;padding:13px;background:#fbfdfc}
.term-item strong{display:block;font-size:16px}
.term-item small{display:block;font-size:12px;color:#50636a;margin-top:4px}
.empty-state{background:#f6f8f9;border:1px dashed #bacbc9;border-radius:12px;padding:22px}
.review-footer{color:#4c5962;font-size:13px;padding:0 4px 25px}
.review-footer p{max-width:900px}
.review-footer a{font-weight:700}
button:focus-visible,select:focus-visible{outline:3px solid #d48d35;outline-offset:3px}
@media(max-width:760px){.activity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.select-grid{grid-template-columns:1fr}.match-row{grid-template-columns:1fr}.stage-head{align-items:center}}
@media(max-width:480px){.program-header .header-context span{display:none}.review-shell{padding:12px}.review-hero{padding:24px 20px}.activity-grid button{min-height:87px}.choice-tabs button{flex:1;padding:10px 8px}.stage-head{flex-direction:column;gap:9px}.restart{align-self:flex-end}.review-controls,.review-stage{padding:18px}}
