.generation-settings{display:flex;flex-wrap:wrap;gap:18px;margin-top:20px}.generation-settings .field{min-width:180px;margin:0}
#handoutEdit>summary{padding:12px 0;cursor:pointer}#handoutFields{max-width:900px}.handout-edit-page{margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:16px}.handout-evidence{margin:8px 0 18px}
.handout-preview{display:grid;gap:24px;padding:20px;border-radius:16px;background:#e7ece7;overflow-x:auto}
.handout-paper{position:relative;width:100%;max-width:794px;min-height:1040px;margin:auto;padding:42px 44px 62px;background:#fff;color:#183c30;box-shadow:0 5px 20px #183c3015;font-size:18px;line-height:1.55;overflow-wrap:anywhere}
.handout-paper .paper-label{font-size:16px;color:#527364;margin-bottom:12px}.handout-paper .paper-title{font-size:30px;line-height:1.3;margin:0 0 12px}.paper-subtitle{font-size:22px;font-weight:400;margin:0 0 14px}.paper-identity{padding-bottom:16px;border-bottom:2px solid #245c49;font-size:16px}
.paper-summary{margin:20px 0;padding:18px 22px;background:#f1f6f2;border:1px solid #bdcfc3;border-radius:12px}.paper-summary h3,.paper-practice-title{font-size:21px;font-weight:400}.paper-summary ul{margin:10px 0 0;padding-left:22px}.paper-summary li+li{margin-top:8px}.paper-exercise{margin-top:16px}.paper-question{white-space:pre-wrap}.answer-lines{margin:12px 0 18px}.answer-lines>div{height:28px;border-bottom:1px solid #b8c8be}.paper-footer{position:absolute;bottom:24px;left:30px;right:30px;text-align:center;font-size:14px;color:#62776c}
.handout-preview .teacher-key{display:none}.handout-preview.show-answers .teacher-key{display:block}.paper-solution{margin:28px 0;padding-bottom:20px;border-bottom:1px solid #bdcfc3}.paper-solution h3{font-size:20px;font-weight:400}.paper-correct{margin:14px 0!important;color:#245c49}
@media(max-width:650px){.handout-preview{padding:8px}.handout-paper{padding:22px 18px 54px;min-height:0}.handout-paper .paper-title{font-size:25px}.paper-summary{padding:12px}.handout-edit-page{padding:12px}}
@page{size:A4 portrait;margin:12mm}
@media print{
 body[data-print-handout]{background:white!important;margin:0!important;zoom:1!important}
 body[data-print-handout]>:not(#editor){display:none!important}
 body[data-print-handout] #editor{display:block!important;max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
 body[data-print-handout] #editor>:not(#handoutReview){display:none!important}
 body[data-print-handout] #handoutReview{display:block!important;border:0!important;box-shadow:none!important;margin:0!important;padding:0!important;background:white!important}
 body[data-print-handout] #handoutReview>:not(.handout-preview){display:none!important}
 body[data-print-handout] .handout-preview{display:block!important;padding:0!important;overflow:visible!important;background:white!important}
 body[data-print-handout] .handout-paper{display:none!important;box-sizing:border-box;width:186mm;max-width:100%;height:272mm;min-height:0;margin:0;padding:5mm 6mm 13mm;box-shadow:none;font-size:12pt;line-height:1.45;break-after:page;page-break-after:always}
 body[data-print-handout=student] .student-sheet,body[data-print-handout=answers] .teacher-key{display:block!important}
 body[data-print-handout=student] .student-sheet:has(+.teacher-key),body[data-print-handout=answers] .teacher-key:last-child{break-after:auto;page-break-after:auto}
 .handout-paper .paper-title{font-size:21pt}.paper-subtitle{font-size:15pt}.handout-paper .paper-label,.paper-identity{font-size:11pt}.paper-summary{margin:5mm 0;padding:4mm;border-radius:3mm;background:white}.paper-summary h3,.paper-practice-title{font-size:14pt}.paper-summary li+li{margin-top:2mm}.paper-exercise{margin-top:4mm}.answer-lines{margin:2mm 0 4mm}.answer-lines>div{height:7mm}.paper-footer{bottom:4mm;font-size:10pt}.paper-solution h3{font-size:14pt}
}
