.export-overlay{position:fixed;inset:0;z-index:2500;background:var(--bg,#f5f4f8);overflow:auto;color:var(--text,#242333);padding:16px;overscroll-behavior:contain}.export-open{overflow:hidden}.export-toolbar{max-width:900px;margin:0 auto 16px;padding:16px;background:var(--card,#fff);border-radius:16px}.export-toolbar h2{display:inline-block;margin:0 20px 12px 0}.export-settings{display:flex;gap:12px;flex-wrap:wrap;align-items:end}.export-settings label{display:block;max-width:100%;font-size:14px}.export-settings select,.export-settings input:not([type=checkbox]){max-width:100%;min-height:40px}.export-settings details{width:100%}.question-export-filter{display:flex;gap:10px;flex-wrap:wrap}.question-export-filter[hidden]{display:none}.export-preview{max-width:100%;overflow:auto;padding:8px}.export-pages{width:210mm;margin:auto;color:#151515}.export-sheet{position:relative;width:210mm;height:297mm;background:#fff;box-sizing:border-box;padding:20mm 15mm 20mm var(--binding,20mm);margin:0 0 16px;box-shadow:0 2px 12px #0002;font:15px/1.65 Arial,"Noto Sans CJK SC","Microsoft YaHei",sans-serif;overflow:visible}.export-sheet.duplex:nth-child(even){padding-left:15mm;padding-right:var(--binding,20mm)}.export-sheet header{position:absolute;top:8mm;left:var(--binding,20mm);right:15mm;font-size:12px;border-bottom:1px solid #aaa}.export-sheet footer{position:absolute;bottom:8mm;left:15mm;right:15mm;text-align:center;font-size:11px}.export-content{height:250mm;overflow:visible;overflow-wrap:anywhere}.export-content p{margin:0 0 2mm;white-space:pre-wrap}.export-content h3{font-size:18px;line-height:1.5;margin:3mm 0 2mm;break-after:avoid}.export-content .katex-display{max-width:100%;overflow:visible}.export-image{display:block;max-width:100%;max-height:195mm;object-fit:contain;margin:2mm auto}.export-visual{max-height:190mm;overflow:visible}.export-writing{box-sizing:border-box;border:1px solid #bbb;margin:3mm 0;font-size:11px;color:#777}.export-sheet.ink img,.export-sheet.ink svg{filter:grayscale(1)}.export-entry{margin-bottom:12px}
@media(max-width:767px){.export-overlay{padding:6px}.export-toolbar{padding:12px}.export-settings{display:block}.export-settings label{margin-bottom:8px}.export-preview{margin:0;padding:0}.export-pages{margin:0}.export-toolbar button{min-height:44px}}
@page{size:A4;margin:0}
@media print{body.export-open>*:not(#study-export){display:none!important}body.export-open{margin:0!important;overflow:visible!important;background:white!important}#study-export{position:static!important;inset:auto!important;padding:0!important;overflow:visible!important;background:white!important}#study-export .export-toolbar{display:none!important}#study-export .export-preview{overflow:visible!important;padding:0!important}#study-export .export-pages{margin:0!important;zoom:1!important}#study-export .export-sheet{margin:0!important;box-shadow:none!important;break-after:page!important;print-color-adjust:exact}#study-export .export-sheet:last-child{break-after:auto!important}}
