.workspace{grid-template-columns:minmax(0,1.25fr) minmax(0,.85fr)}.preview{align-self:start;background:#1a2226}.bag{border:1px solid #3a4a52;border-radius:12px;background:#212c31;padding:.8rem 1rem;margin:.7rem 0}.bag h3{margin:.1rem 0 .4rem;color:#e3ebe4}.bag p{margin:.2rem 0 .45rem;color:#e1ceb2;font-variant-numeric:tabular-nums}.meter{height:8px;border-radius:4px;background:#11191c;overflow:hidden}.meter i{display:block;height:100%;background:#7fb5a9}.bag ul{margin:.6rem 0 .1rem;padding-left:1.25rem;font-size:.92rem;color:var(--text-2)}.bag li{margin:.15rem 0}.tag{display:inline-block;font-size:.75rem;font-weight:700;padding:0 .45rem;border-radius:999px;color:var(--accent);background:var(--accent-dim);border:1px solid var(--accent-line);vertical-align:1px}.actions{display:flex;gap:.45rem;flex-wrap:wrap;margin-top:.8rem}.bar{display:flex;align-items:center;justify-content:space-between;gap:.6rem;flex-wrap:wrap}.bar h2{margin:0}textarea{width:100%;font:.92rem/1.55 ui-monospace,monospace!important}.controls button.primary{margin-top:.9rem;width:100%}#summary{color:#e1cfad;font-weight:600}#status{color:#9fcfc3}#status.bad{color:#f0a48c}.note{font-size:.86rem!important;color:var(--text-3)}@media(max-width:680px){.workspace{grid-template-columns:minmax(0,1fr)}}
:root[data-theme="light"] .preview{background:#eef3f2}:root[data-theme="light"] .bag{background:#fff;border-color:#cfdcd9}:root[data-theme="light"] .bag h3{color:#1d2a2e}:root[data-theme="light"] .bag p,:root[data-theme="light"] #summary{color:#7a5520}:root[data-theme="light"] .meter{background:#dbe6e3}:root[data-theme="light"] .meter i{background:#3f8f7f}:root[data-theme="light"] #status{color:#2c7465}:root[data-theme="light"] #status.bad{color:#b3412a}:root[data-theme="light"] .tag{color:#9a5b05}
@media print{html,body,main,.preview,.bag{width:auto;background:white!important;color:#222!important}.controls,nav,header p,.actions{display:none!important}.workspace{display:block}.preview{border:0;padding:0;box-shadow:none}.bag{break-inside:avoid}.bag h3,.bag p,.bag ul,#summary{color:#222!important}.tag{color:#222!important;background:none!important;border-color:#888!important}header{padding:5mm 0}h1{font-size:24pt}}

/* 밝은 테마: 공용 입력 칸의 어두운 바탕(#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}
