*{box-sizing:border-box}body{margin:0;background:linear-gradient(125deg,#eef8ff,#effbf4);color:#19465c;font:16px system-ui,Arial}main{max-width:1040px;margin:auto;padding:16px}.card{background:white;border:1px solid #d4e8f1;border-radius:20px;padding:clamp(16px,3vw,27px);margin:15px 0;box-shadow:0 8px 23px #17547b12}.logo{font-size:34px;font-weight:850;color:#178bd1}.logo span{color:#219b71}.muted{font-size:13px;color:#627f8e}.topic{width:100%;padding:18px;text-align:left;border:2px solid #d0e7f0;border-radius:14px;background:#f6fbff;color:#1c5878;font:700 19px system-ui;cursor:pointer;margin:8px 0}.topic.active{border-color:#219a70;background:#e8f9ef}.topic small{display:block;font:14px system-ui;color:#607e90;margin-top:5px}.upcoming{padding:16px;border-radius:12px;background:#f3f7fa;color:#607c8b}.field{width:100%;max-width:420px;border:1px solid #bcdce9;border-radius:10px;padding:12px;margin:12px 0;font:inherit}.btn{border:0;border-radius:12px;padding:12px 17px;background:#168bd1;color:white;font:700 15px system-ui;cursor:pointer}.btn.green{background:#23976e}.btn.light{background:#e5f4fb;color:#19668d}.btn:disabled{opacity:.45;cursor:default}.flex{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.hidden{display:none}.nav{display:grid;grid-template-columns:repeat(auto-fill,minmax(43px,1fr));gap:7px;margin:15px 0}.nav button{min-height:41px;border:1px solid #c8e1ed;border-radius:9px;background:#f5fbff;color:#245a75;font-weight:700;cursor:pointer}.nav button.current{background:#168bd1;color:white}.nav button.correct{background:#d6f3e3;color:#176a4a}.nav button.incorrect{background:#ffe5e3;color:#95413d}.nav button.pending{background:#fff0cf;color:#7b6018}.task-description{font:500 clamp(16px,2.2vw,19px)/1.55 system-ui,Arial,sans-serif;color:#214c63;background:#f5fbff;padding:16px;border:1px solid #dcecf4;border-radius:12px}.figure{display:block;width:auto;max-width:100%;height:auto;max-height:min(42vh,320px);object-fit:contain;margin:12px auto;border-radius:12px;background:#fff}.figure.hidden{display:none!important}.task-description.hidden{display:none!important}.option{display:flex;align-items:flex-start;gap:12px;text-align:left;width:100%;padding:13px;border:1px solid #cde3ee;border-radius:12px;background:#f8fcff;color:#19465c;margin:8px 0;font:inherit;cursor:pointer}.option.selected{background:#e7f6ed;border-color:#23976e}.option b{min-width:24px}.feedback{padding:15px;border-radius:12px;background:#e2f6e9;margin:13px 0}.feedback.bad{background:#fff0ec}.feedback.wait{background:#fff6dd}.bar{height:8px;background:#dbeef8;border-radius:10px;overflow:hidden;margin:12px 0}.bar div{height:100%;background:linear-gradient(90deg,#168bd1,#23976e)}.scroll{overflow-x:auto}table{width:100%;border-collapse:collapse}td,th{text-align:left;padding:9px;border-bottom:1px solid #e0edf3}button:focus-visible,input:focus-visible{outline:3px solid orange;outline-offset:2px}@media(max-width:520px){main{padding:10px}.nav{grid-template-columns:repeat(6,minmax(0,1fr))}.flex .btn{flex:1 1 130px}}
h1{font-size:clamp(24px,4vw,35px);line-height:1.2;margin:8px 0 12px}
h2{font-size:21px;margin:0 0 10px}
h3{font-size:17px;margin:0 0 8px}
p{line-height:1.55;margin:0 0 12px}
.brand{display:flex;gap:8px 18px;align-items:baseline;flex-wrap:wrap}
.badge{display:inline-block;border-radius:20px;padding:5px 11px;background:#e8f9ef;color:#176a4a;font-size:13px;font-weight:700}
label{display:block;font-weight:700;margin:12px 0 4px}
textarea.field{max-width:none;min-height:105px;resize:vertical}
.field{color:#19465c}
fieldset{border:0;padding:0;margin:0 0 16px;min-width:0}
legend{font-weight:700;margin-bottom:5px}
.option{font-weight:400;margin:5px 0}
.option:has(input:checked){background:#e7f6ed;border-color:#23976e}
.option input{accent-color:#23976e;margin-top:5px}
.block{margin:18px 0;padding:16px;border-radius:14px;border:1px solid #d4e8f1;background:#f6fbff}
.task-description{font-size:16px;margin:12px 0 18px}
.task-description summary{cursor:pointer;font-weight:700;margin-bottom:9px}
table{font-size:15px}
.stage{display:flex;align-items:center;justify-content:space-between;gap:12px}
.actions{margin-top:18px}
#status{margin-top:12px}
q{overflow-wrap:anywhere}
@media(max-width:520px){th,td{padding:7px 4px;font-size:14px}.task-description{padding:12px}}
.brand{justify-content:space-between;align-items:center;background:radial-gradient(circle at 94% 55%,#e7f7f1,transparent 43%),linear-gradient(105deg,#fff,#eaf7fb);overflow:hidden}
.brand-left{display:flex;align-items:center;gap:17px;min-width:0}
.brand-icon{display:grid;place-items:center;width:72px;height:76px;border:1px solid #c5e5ec;border-radius:22px;background:linear-gradient(125deg,#e0f2fa,#d9f1e8);flex:none}
.school{font-weight:750;font-size:14px;letter-spacing:.065em;color:#4d7686}
.school strong{color:#187d69}.brand .logo{font-size:clamp(27px,5vw,46px);line-height:1.15;color:#1284b9}
.brand-right{font-weight:750;color:#1b6378}.brand-right .badge{margin-left:5px}
@media(max-width:520px){.brand-left{gap:11px}.brand-icon{width:52px;height:57px;border-radius:15px}.brand-icon svg{width:38px;height:38px}.school{font-size:12px}.brand-right{font-size:14px}}
progress{width:100%;height:8px;display:block;margin:12px 0 16px;border:0;border-radius:10px;background:#dbeef8;color:#23976e;overflow:hidden}
progress::-webkit-progress-bar{background:#dbeef8}
progress::-webkit-progress-value{background:linear-gradient(90deg,#168bd1,#23976e)}
progress::-moz-progress-bar{background:linear-gradient(90deg,#168bd1,#23976e)}
caption{text-align:left;font-weight:700;padding:5px 0}
textarea:focus-visible,select:focus-visible,summary:focus-visible,a:focus-visible{outline:3px solid orange;outline-offset:2px}
.btn[href]{display:inline-block;text-decoration:none}

#app h1[tabindex="-1"]:focus { outline: none; }

.review-text{white-space:pre-wrap;overflow-wrap:anywhere}
.teacher-answer{white-space:pre-wrap;overflow-wrap:anywhere;margin-top:8px}
.teacher-actions{margin:14px 0}
