*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:18px;line-height:1.5;background:#f4f5f7;color:#1a1a1a}
.top{position:sticky;top:0;z-index:5;display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background:#1f3a5f;color:#fff}
.top a{color:#fff}
.brand{font-weight:700;text-decoration:none;font-size:19px}
#who a{margin-inline-start:8px}
main{max-width:720px;margin:0 auto;padding:16px 12px 110px}
h1{font-size:24px;margin:8px 0 16px}
h2{font-size:20px;margin:0 0 8px}
.muted{color:#555}
.card{background:#fff;border-radius:12px;padding:14px;margin-bottom:12px;box-shadow:0 1px 3px rgba(0,0,0,.08)}
a.card{display:block;text-decoration:none;color:inherit;min-height:44px}
.row{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}
.badge{display:inline-block;padding:3px 10px;border-radius:999px;font-size:16px;background:#e3e7ee;color:#333}
.badge.good{background:#d6f2dc;color:#145a24}.badge.mid{background:#fff1c9;color:#6b4e00}.badge.bad{background:#fbd9d9;color:#8a1616}
button,.btn{font:inherit;min-height:48px;padding:10px 18px;border-radius:10px;border:0;background:#1f6feb;color:#fff;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
button.secondary,.btn.secondary{background:#e3e7ee;color:#1a1a1a}
button:disabled{background:#9aa5b5;cursor:not-allowed}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}
.actions>*{flex:1 1 160px}
input[type=text]{font:inherit;width:100%;min-height:48px;padding:10px;border:2px solid #9aa5b5;border-radius:10px}
.q-text{font-weight:600;margin-bottom:10px}
.opt{display:flex;align-items:center;gap:10px;min-height:52px;padding:10px 12px;margin:6px 0;border:2px solid #d0d6df;border-radius:10px;cursor:pointer;background:#fafbfc}
.opt input{width:22px;height:22px;flex:none}
.opt.sel{border-color:#1f6feb;background:#e8f0fe}
.letter{font-weight:700;min-width:1.5em}
.bar{position:fixed;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #d0d6df;padding:10px 12px;box-shadow:0 -2px 6px rgba(0,0,0,.06)}
.bar .inner{max-width:720px;margin:0 auto;display:flex;align-items:center;gap:12px}
.bar button{flex:1}
.grade{font-size:56px;font-weight:800;text-align:center;margin:8px 0 0}
.res.ok{border-inline-start:6px solid #1e8e3e}.res.no{border-inline-start:6px solid #c62828}
.mark{font-size:22px;font-weight:800}.ok .mark{color:#1e8e3e}.no .mark{color:#c62828}
.explain{background:#f4f5f7;border-radius:8px;padding:8px;margin-top:8px}
details summary{min-height:44px;display:flex;align-items:center;cursor:pointer;color:#1f3a5f}
.err{color:#8a1616}
