.preview{margin-bottom:1rem}.workspace{grid-template-columns:1fr 1fr}.bar,.settings{display:flex;align-items:center;flex-wrap:wrap;gap:.6rem}.bar h2{margin:0 auto 0 0}.bar{margin:.75rem 0}.settings label{flex:1;min-width:110px}.controls a{color:inherit}#editor{overflow-x:auto;background:#e9dfc7;color:#40372e;border-radius:6px;padding:.5rem;scrollbar-color:#8e8571 #d8c9ac}.notes{display:grid;grid-template-columns:2.2rem repeat(16,minmax(24px,1fr));min-width:450px;gap:1px;align-items:stretch}.notes b{text-align:center;font:600 .71rem/23px system-ui}.notes button{background:#f5f0e4;border-radius:0;color:#423d34;height:24px;padding:0;border:1px solid #c6bda9;font-size:14px;line-height:18px}.notes button.beat{border-left:2px solid #a69a81}.notes button.on{background:#6e5b43;color:#fff}.notes button.close{box-shadow:inset 0 0 0 2px #c94b36}#status{min-height:1.5em}#sheets{display:none}@media(max-width:680px){.workspace{grid-template-columns:1fr}}@media print{@page{size:A4 landscape;margin:10mm}html,body{background:white!important;margin:0!important;padding:0!important}body> :not(#sheets){display:none!important}#sheets{display:block!important}#sheets svg{display:block;width:274mm;height:185mm;break-inside:avoid;break-after:page}#sheets svg:last-child{break-after:auto}}

/* 어두운 테마: 넓은 밝은 종이가 눈부시지 않게 어두운 종이로. 밝은 테마는 원래 종이색 */
#editor{background:#26221c;color:#d8cdb8;scrollbar-color:#6b604f #26221c}.notes button{min-height:0;background:#332d25;color:#f3e7d0;border-color:#4a4236}.notes button.beat{border-left-color:#6f644f}.notes button.on{background:#e0a96a;color:#2a1d10}.notes button.close{box-shadow:inset 0 0 0 2px #f0705a}.notes button:hover{background:#40382d}.notes button.on:hover{background:#eab57a}
:root[data-theme="light"] #editor{background:#e9dfc7;color:#40372e;scrollbar-color:#8e8571 #d8c9ac}:root[data-theme="light"] .notes button{background:#f5f0e4;color:#423d34;border-color:#c6bda9}:root[data-theme="light"] .notes button.beat{border-left-color:#a69a81}:root[data-theme="light"] .notes button.on{background:#6e5b43;color:#fff}:root[data-theme="light"] .notes button.close{box-shadow:inset 0 0 0 2px #c94b36}
.pager{display:inline-flex;align-items:center;gap:.4rem}.pager button{min-width:44px}#position{min-width:5.5em;text-align:center}#count{color:var(--text-3);font-size:.9rem}#status{color:var(--text-2)}.controls .bar{margin-top:.9rem}
/* 밝은 테마: 공용 입력 칸의 어두운 바탕(#0f0f13)이 밝은 테마에서도 남아 글자가 안 보이던 것, 강조색 단추 위 글자 */
:root[data-theme="light"] :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]),select,textarea){background:#fff;color:var(--text)}
:root[data-theme="light"] button.primary{color:#fff}
