:root{font-family:Inter,Arial,Helvetica,sans-serif;background:#f6f6f5;color:#202020}
*{box-sizing:border-box}body{margin:0}
.topbar{background:#fff;border-bottom:1px solid #ddd;padding:17px max(18px,calc((100vw - 1080px)/2));display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.topbar a{color:#222;text-decoration:none;font-size:13px}
.topbar .brand{font-size:20px;font-weight:750;letter-spacing:-.04em}
main{max-width:1080px;padding:30px 18px 72px;margin:auto}
.eyebrow{font-size:11px;letter-spacing:.12em;color:#777;text-transform:uppercase;font-weight:750}
h1{font-size:clamp(27px,4vw,40px);letter-spacing:-.04em;margin:8px 0 10px}
.lead{color:#666;font-size:14px;line-height:1.58;max-width:820px;margin:0 0 18px}
h2{font-size:18px;margin:0 0 12px}h3{font-size:15px;margin:0 0 10px}
.card{background:#fff;border:1px solid #dedede;border-radius:11px;padding:21px 23px;margin-bottom:17px}
.controls{display:flex;align-items:end;gap:11px;flex-wrap:wrap}
.selection{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 11px}
.selection label{display:flex;align-items:center;gap:7px;font-size:12px;line-height:1.3;cursor:pointer;min-height:32px}
.selection input,.toggle input{width:17px;height:17px;accent-color:#222;flex:none;margin:0}
button{font:inherit;font-size:13px;padding:10px 14px;min-height:42px;background:#fff;color:#222;border:1px solid #bbb;border-radius:7px;cursor:pointer}
button.primary{color:#fff;background:#222;border-color:#222;font-weight:650}
button:hover:not(:disabled){opacity:.84}button:disabled{opacity:.45;cursor:not-allowed}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7190ba;outline-offset:2px}
.field{display:grid;gap:7px;font-size:13px;font-weight:650}
.field select{height:42px;padding:7px 10px;font:inherit;font-size:13px;border:1px solid #aaa;background:#fff;border-radius:6px;min-width:155px}
.toggle{display:flex;gap:8px;align-items:center;font-size:13px;cursor:pointer;min-height:42px}
.status,.footnote{color:#777;font-size:12px;line-height:1.52}
.status{margin:11px 0 0}
.quiz{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:17px;align-items:start}
.clock{width:min(100%,390px);margin:12px auto 0}
.clock svg{width:100%;height:auto;display:block;overflow:visible}
.clock-buttons{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin:12px auto;max-width:410px}
.clock-buttons button{min-width:0;min-height:38px;padding:7px 3px;touch-action:manipulation}
.clock-buttons button.selected{background:#b2b2b2;border-color:#555;font-weight:700}
.clock-buttons button.tonic{color:#fff;background:#111;border-color:#111;font-weight:700}
.task-title{font-size:23px;letter-spacing:-.035em;margin:5px 0 12px;line-height:1.3}
.progress{color:#777;font-size:12px;margin:0 0 6px}
.answers{display:grid;gap:7px;margin:14px 0 0}
.answerrow{display:grid;grid-template-columns:minmax(80px,1fr) minmax(160px,1.7fr);gap:9px;align-items:center;font-size:13px;padding:7px 9px;background:#fafafa;border:1px solid #eee;border-radius:7px}
.answerrow select{font:inherit;font-size:13px;height:37px;width:100%;background:#fff;border:1px solid #aaa;border-radius:5px;padding:4px}
.answerrow.correct{background:#edf4ee;border-color:#9cbfa5}
.answerrow.wrong{background:#fbefec;border-color:#cf9e91}
.inline-actions{display:flex;gap:8px;flex-wrap:wrap;margin:15px 0 0}
.inline-actions button{flex:1;min-width:110px}
.feedback{min-height:36px;color:#444;line-height:1.56;font-size:13px;margin:14px 0 0}
.solution-structure{display:flex;align-items:baseline;flex-wrap:wrap;gap:7px 12px;margin:8px 0 0;padding:12px 14px;border:1px solid #e3e3e3;border-radius:7px;background:#f7f7f7}
.solution-structure-label{color:#666;font-size:12px}
.solution-structure-values{font-size:17px;font-variant-numeric:tabular-nums;letter-spacing:.025em;font-weight:700;color:#222}
.legend{font-size:12px;line-height:1.58;color:#777}
.pair{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border:1px solid #eee;border-radius:7px;font-size:13px}
.pair strong{font-weight:700}
[hidden]{display:none!important}
.sheets{display:flex;flex-direction:column;align-items:center;gap:20px}
.sheet{width:210mm;height:297mm;background:#fff;box-shadow:0 4px 20px #0002;padding:16mm 16mm 13mm;position:relative;overflow:hidden;flex:none}
.sheethead{height:34mm}
.sheethead small{font-size:7.5pt;letter-spacing:.1em;color:#777;font-weight:700}
.sheethead h2{font-size:17pt;margin:5mm 0 2mm}
.sheethead p{font-size:8.5pt;line-height:1.45;color:#555;margin:0}
.sheetgrid{height:230mm;display:grid;gap:1mm 4mm}
.sheetgrid.twocol{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}
.sheetgrid.threecol{grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(4,minmax(0,1fr))}
.sheetcell{min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:1mm}
.sheetcell svg{width:43mm;height:43mm;flex:none}
.sheetgrid.threecol .sheetcell svg{width:41mm;height:41mm}
.sheetcell .number{font-size:7.5pt;color:#777}
.sheetcell .taskname{font-size:9pt;line-height:1.2;font-weight:650;text-align:center}
.sheetcell .answerline{border-bottom:.4pt solid #777;width:83%;height:4mm}
.sheetcell .printnote{font-size:7pt;color:#777;text-align:center}
.sheetgrid.notegrid .sheetcell{align-items:stretch;justify-content:flex-start;gap:0; padding:4mm}
.sheetgrid.notegrid .taskname{text-align:left;margin-bottom:3mm}
.sheetgrid.notegrid .answerline{width:100%;height:5.3mm;border:0;display:flex;align-items:end;gap:3mm;font-size:7.5pt;color:#555}
.sheetgrid.notegrid .answerline .write{flex:1;border-bottom:.4pt solid #777;height:3mm}
.sheetfoot{position:absolute;bottom:11.5mm;left:16mm;right:16mm;border-top:.4pt solid #ccc;padding-top:2mm;display:flex;justify-content:space-between;font-size:7pt;color:#777}
@media(max-width:850px){.selection{grid-template-columns:repeat(2,minmax(0,1fr))}.quiz{grid-template-columns:1fr}.clock{max-width:360px}.sheets{align-items:flex-start;overflow-x:auto}}
@media(max-width:500px){main{padding:20px 12px 48px}.card{padding:16px 13px}.selection{grid-template-columns:1fr}.answerrow{grid-template-columns:minmax(70px,1fr) minmax(140px,1.5fr)}.topbar .brand{font-size:17px}}
@page{size:A4;margin:0}
@media print{
 html,body{margin:0;padding:0;background:#fff}
 .topbar,.setup,.introblock,.no-print{display:none!important}
 main{padding:0;margin:0;max-width:none}
 .sheets{display:block}
 .sheet{margin:0;box-shadow:none;width:210mm;height:297mm;break-after:page;page-break-after:always}
 .sheet:last-child{break-after:auto;page-break-after:auto}
}
