:root{
  --green:#166534;--green2:#15803d;--mint:#dcfce7;--ink:#17221b;--muted:#647067;
  --cream:#f8faf7;--white:#fff;--line:#dce5dd;--red:#b91c1c;--amber:#b45309;
  --shadow:0 12px 32px rgba(22,101,52,.09);--radius:22px;
}
*{box-sizing:border-box}
html{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--cream);color:var(--ink)}
body{margin:0;min-height:100vh;background:
 radial-gradient(circle at top right,#dcfce7 0,transparent 30rem),var(--cream)}
button,input,textarea{font:inherit}
button{cursor:pointer}
.topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;padding:14px clamp(16px,4vw,36px);background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid var(--line)}
.brand{display:flex;gap:12px;align-items:center}.brand-mark{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:var(--green);color:#fff;font-weight:900}
.brand h1{font-size:1rem;margin:0}.brand p{font-size:.78rem;margin:2px 0 0;color:var(--muted)}
.shell{width:min(1100px,calc(100% - 28px));margin:28px auto 80px}
.view{display:none}.view.active{display:block}
.card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}
.hero{display:grid;grid-template-columns:1.6fr .7fr;gap:20px;align-items:center;padding:32px}
.hero h2{font-size:clamp(1.7rem,4vw,3.1rem);line-height:1.05;margin:8px 0 12px;max-width:720px}.hero p{color:var(--muted);font-size:1.02rem;line-height:1.6}
.hero-badge{min-height:210px;border-radius:24px;background:linear-gradient(145deg,var(--green),#22c55e);display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;text-align:center;padding:20px}.hero-badge .big{font-size:4.2rem;font-weight:1000;line-height:1}
.eyebrow{font-size:.75rem;font-weight:900;letter-spacing:.13em;color:var(--green)}
.mode-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:18px 0}
.mode-card{border:1px solid var(--line);background:#fff;border-radius:20px;padding:22px;text-align:left;display:flex;flex-direction:column;gap:8px;box-shadow:var(--shadow);min-height:165px;transition:.2s}
.mode-card:hover{transform:translateY(-2px);border-color:#86efac}.mode-card strong{font-size:1.12rem}.mode-card span:last-child{color:var(--muted);line-height:1.45}.mode-icon{font-size:2rem}
.quick-status{display:grid;grid-template-columns:2fr 1fr 1fr;gap:20px}.quick-status>div{display:flex;flex-direction:column;gap:5px}.label,.stat span{font-size:.78rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.05em}
.section-head{display:grid;grid-template-columns:auto 1fr auto;gap:15px;align-items:center;margin-bottom:18px}.section-head h2{margin:4px 0 0}
.back,.ghost,.file-btn{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:14px;padding:11px 14px;font-weight:800}
.primary{border:0;background:var(--green);color:#fff;border-radius:14px;padding:12px 18px;font-weight:900}.primary:hover{background:var(--green2)}
.danger{border:1px solid #fecaca;background:#fff;color:var(--red);border-radius:14px;padding:11px 14px;font-weight:800}
.hidden{display:none!important}.inline,.button-row{display:flex;gap:10px;align-items:center}.button-row{margin-top:14px}.wrap{flex-wrap:wrap}.center{justify-content:center}.wide{width:100%;margin-top:16px}
input,textarea{width:100%;border:1px solid #cfd9d1;border-radius:14px;padding:13px 14px;background:#fff;outline:none;color:var(--ink)}
input:focus,textarea:focus{border-color:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.12)}
label{display:block;font-weight:800;font-size:.9rem;margin:14px 0 0}label input,label textarea{margin-top:7px;font-weight:500}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.lower{margin-top:18px}
.card-head,.setup-line{display:flex;justify-content:space-between;gap:12px;align-items:center}.card-head h3,.setup-line h3{margin:0}
.small{font-size:.82rem;color:var(--muted)}.message{min-height:1.2em;font-size:.88rem;font-weight:700}.message.ok{color:var(--green)}.message.error{color:var(--red)}
.pill{display:inline-flex;align-items:center;background:var(--mint);color:var(--green);padding:6px 10px;border-radius:999px;font-size:.78rem;font-weight:900}
.list-stack{display:flex;flex-direction:column;gap:10px;margin-top:12px}.list-item{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid var(--line);padding:12px;border-radius:15px;background:#fff}.list-item button{border:0;background:transparent;font-weight:900;color:var(--green)}.list-item small{color:var(--muted);display:block;margin-top:3px}
.file-btn{display:inline-flex;align-items:center;cursor:pointer}.file-btn input{display:none}
.student-list-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.student-list{border:1px solid var(--line);background:#fff;border-radius:16px;padding:16px;text-align:left}.student-list.active{border:2px solid #22c55e;background:#f0fdf4}.student-list strong{display:block}.student-list span{font-size:.84rem;color:var(--muted)}
.empty{text-align:center;color:var(--muted);padding:24px}
.practice-modes{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px}.radio-card{border:1px solid var(--line);border-radius:16px;padding:13px;margin:0}.radio-card:has(input:checked){border:2px solid #22c55e;background:#f0fdf4}.radio-card input{width:auto;margin:0 8px 0 0}.radio-card span{display:inline-flex;flex-direction:column;vertical-align:middle}.radio-card small{color:var(--muted);margin-top:2px}
.quiz-card{max-width:720px;margin:auto;text-align:center;padding:34px}.speaker{width:92px;height:92px;border:0;border-radius:50%;background:var(--green);font-size:2.2rem;box-shadow:0 10px 24px rgba(22,101,52,.25)}.speaker:active{transform:scale(.97)}
.speaker-wrap p{color:var(--muted)}.word-reveal{font-size:2rem;font-weight:1000;letter-spacing:.05em;background:var(--mint);padding:12px 18px;border-radius:16px;margin:12px auto;max-width:max-content}
.answer-label{text-align:left;margin:24px auto 0;max-width:520px}.answer-label input{text-align:center;font-size:1.2rem;font-weight:800}
.feedback{border-radius:16px;padding:15px;margin:18px 0;font-weight:800}.feedback.good{background:#dcfce7;color:#166534}.feedback.bad{background:#fee2e2;color:#991b1b}
.hint{margin:10px auto;color:var(--amber);font-weight:900}.score-bubble{background:var(--mint);color:var(--green);font-weight:1000;border-radius:999px;padding:10px 14px}
.result-card{max-width:720px;margin:auto;text-align:center;padding:36px}.result-emoji{font-size:4rem}.result-score{font-size:3.2rem;font-weight:1000;color:var(--green)}.result-card h2{font-size:2rem;margin-bottom:8px}
.wrong-wrap{border-top:1px solid var(--line);margin-top:22px;padding-top:20px}.chip-wrap{display:flex;flex-wrap:wrap;gap:8px;justify-content:center}.chip{background:#fef2f2;color:#991b1b;border-radius:999px;padding:7px 10px;font-weight:800}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.stat{display:flex;flex-direction:column;gap:6px}.stat strong{font-size:1.8rem;color:var(--green)}
.quiz-meta{text-align:center}
footer{text-align:center;color:var(--muted);font-size:.78rem;padding:20px}
@media(max-width:760px){
  .shell{width:min(100% - 18px,1100px);margin-top:16px}.hero{grid-template-columns:1fr;padding:22px}.hero-badge{min-height:140px}
  .mode-grid,.two-col,.stats-grid,.student-list-grid,.practice-modes{grid-template-columns:1fr}
  .quick-status{grid-template-columns:1fr 1fr}.quick-status>div:first-child{grid-column:1/-1}
  .section-head{grid-template-columns:auto 1fr}.section-head .score-bubble{grid-column:2;justify-self:end}
  .topbar{padding:10px 12px}.brand p{display:none}.brand h1{font-size:.92rem}
  .quiz-card{padding:24px 16px}.card{padding:18px}
}

/* studio-enlarged-type: bigger type across the tool screens — print keeps the exact SEAB paper layout */
@media screen{body{zoom:1.1}}
