.worksheet-dialog{position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;border:0;padding:0;background:#edf0f4;color:#111;overflow:auto}.worksheet-dialog::backdrop{background:#edf0f4}.worksheet-open{overflow:hidden}.worksheet-toolbar{position:sticky;top:0;z-index:2;background:white;border-bottom:1px solid #ccd3dc;padding:16px 24px;display:flex;align-items:center;justify-content:space-between;gap:18px}.worksheet-toolbar p{max-width:680px;font-size:13px;line-height:1.5;margin:6px 0 0}.worksheet-buttons{display:flex;gap:8px;flex-wrap:wrap}.worksheet-content{padding:24px}.worksheet-page{box-sizing:border-box;width:186mm;min-height:269mm;margin:0 auto 24px;padding:8mm;background:white;box-shadow:0 4px 20px #0002;font-family:Arial,sans-serif;font-size:11pt;line-height:1.4;color:#111}.worksheet-page header{border-bottom:1.5px solid #222;padding-bottom:3mm;margin-bottom:4mm}.worksheet-page header p{margin:2mm 0}.worksheet-page h1{font-size:17pt;margin:2mm 0}.worksheet-instruction{font-size:10pt}.worksheet-question{break-inside:avoid;page-break-inside:avoid;margin:0 0 7mm}.worksheet-question h2{font-size:11pt;font-weight:600;white-space:pre-line;line-height:1.5;margin:0 0 3mm;overflow-wrap:anywhere}.worksheet-question ol{padding-left:8mm;margin:0 0 4mm}.worksheet-question li{padding-left:1mm;line-height:1.5;overflow-wrap:anywhere}.worksheet-question p{margin:2mm 0}.worksheet-label{font-size:10pt}.writing-lines div{height:7mm;border-bottom:1px solid #aaa}.worksheet-page footer{font-size:9pt;color:#444;border-top:1px solid #ddd;padding-top:3mm}.worksheet-export{margin-bottom:20px}.worksheet-export p{margin:6px 0}.worksheet-dialog button{white-space:nowrap}@media(max-width:760px){.worksheet-toolbar{position:relative;display:block;padding:16px}.worksheet-buttons{margin-top:12px}.worksheet-content{padding:12px}.worksheet-page{width:100%;min-height:0;padding:18px}.worksheet-page h1{font-size:20px}.worksheet-question p{overflow-wrap:anywhere}}
@page{size:A4 portrait;margin:12mm}
@media print{body.worksheet-open{margin:0!important;padding:0!important;overflow:visible!important;background:#fff!important}body.worksheet-open>*:not(.worksheet-dialog){display:none!important}.worksheet-dialog[open]{display:block!important;position:static!important;inset:auto!important;width:auto!important;height:auto!important;max-height:none!important;overflow:visible!important;background:white!important;padding:0!important}.worksheet-dialog::backdrop,.worksheet-toolbar{display:none!important}.worksheet-content{padding:0!important}.worksheet-page{width:auto!important;min-height:0!important;margin:0!important;padding:0!important;box-shadow:none!important;break-after:page;page-break-after:always}.worksheet-page:last-child{break-after:auto;page-break-after:auto}.worksheet-question{break-inside:avoid;page-break-inside:avoid}.worksheet-page header,.worksheet-page footer{break-inside:avoid}.writing-lines div{border-bottom:1px solid #aaa!important}}
