.workspace{grid-template-columns:minmax(0,1.35fr) minmax(255px,.8fr);align-items:start}.preview{}.preview h2{margin-bottom:.75rem}#view{width:100%;height:clamp(235px,38vw,420px);background:#f4e9d7;border:10px solid #f4e9d7;border-radius:4px;display:block;touch-action:none}.handle{fill:#9d5243;cursor:grab;stroke:#fff5e4;stroke-width:.7}.handle:active{cursor:grabbing}.buttons,.fields{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.fields label{flex:1;min-width:95px}.controls textarea,.controls input[type=text]{width:100%}.controls textarea{font:14px/1.4 ui-monospace,monospace}.controls input,.controls select{margin-top:.3rem}.plan{margin-top:1rem}.plan a{color:var(--accent)}.plan p{margin-bottom:.5rem}#sheets{display:none}@media(max-width:700px){.workspace{grid-template-columns:1fr}}
@page{size:A4 portrait;margin:10mm}@media print{html,body{margin:0!important;padding:0!important;background:white!important;color:black!important}body>*:not(#sheets){display:none!important}#sheets{display:block!important}#sheets>.sheet{display:block;width:186mm;height:274mm;margin:0 auto;break-inside:avoid;break-after:page}#sheets>.sheet:last-child{break-after:auto}}

/* 어두운 테마: 종이색 미리보기가 눈부시지 않게 밝기를 낮춘다(인쇄와 파일은 그대로) */
:root[data-theme="dark"] #view{filter:brightness(.74)}
