@media(min-width:681px){ .workspace { grid-template-columns:minmax(300px,.8fr) minmax(0,1.2fr); } }
textarea { width:100%; line-height:1.6; }
.hint { font-size:.9rem; color:var(--text-3); }
#print { width:100%; margin-top:.4rem; }
#status { color:#edbf77; }
.card { display:block; width:100%; height:auto; }
#preview { max-height:70vh; overflow:auto; padding:8px; background:#26272b; border-radius:10px; }
/* 어두운 테마에서 흰 종이가 눈부시지 않게 화면에서만 낮춘다(인쇄는 그대로) */
@media screen { :root:not([data-theme="light"]) #preview .sheet { filter:brightness(.72); } }
#preview:empty { display:none; }
.sheet { background:white; display:grid; align-content:start; justify-content:center; }
#preview .sheet { padding:4%; margin-bottom:.7rem; gap:.4rem; aspect-ratio:210/297; }
.wide { grid-template-columns:90%; }
.compact { grid-template-columns:44% 44%; }
#sheets { display:none; }
@page { size:A4 portrait; margin:10mm; }
@media print {
    html,body { margin:0!important; padding:0!important; background:white!important; }
    body > :not(#sheets) { display:none!important; }
    #sheets { display:block!important; }
    .sheet { align-content:start; padding-top:5mm; gap:5mm 4mm; break-inside:avoid; }
    .sheet + .sheet { break-before:page; }
    .wide { grid-template-columns:180mm; }
    .compact { grid-template-columns:88mm 88mm; }
    .card { height:120mm; }
}
[data-theme="light"] #preview { background:#e4e4e7; }
[data-theme="light"] #status { color:#805426; }
