.workspace{grid-template-columns:minmax(0,1.5fr) minmax(240px,.8fr);align-items:start}.preview{background:#2e302e}.sheet{position:relative;width:100%;border:7px solid #cbbca2;box-shadow:0 3px 12px #1118;background:#e4d5b8}.sheet canvas{display:block;width:100%;aspect-ratio:1;touch-action:none;cursor:crosshair}.sheet svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.bar,.tools,.pair,#swatches{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}.bar{margin:.8rem 0}.tools button{flex:1}.tools button[aria-pressed=true],#png{background:#eac49c;color:#261d18}.pair label{flex:1;margin:.5rem 0}.pair input{display:block;margin-top:.35rem;width:100%;height:34px}.controls input[type=range]{accent-color:#dcb48c;width:78%;vertical-align:middle}output{font-size:.85rem;padding-left:.4rem}#swatches button{border-radius:50%;width:28px;height:28px;padding:0;border:1px solid #b4aaa0}.plan{margin-top:1rem}.plan a{color:#e1bc9b}#status{margin-bottom:0}#count{color:#ccb9a8}.controls label{font-size:.92rem}@media(max-width:685px){.workspace{grid-template-columns:1fr}}

.preview{background:var(--surface)}.pair input[type=color]{appearance:none;-webkit-appearance:none;height:44px;padding:4px;border:1px solid var(--border-2);border-radius:10px;background:#0f0f13;cursor:pointer}.pair input[type=color]::-webkit-color-swatch-wrapper{padding:0}.pair input[type=color]::-webkit-color-swatch{border:0;border-radius:7px}.pair input[type=color]::-moz-color-swatch{border:0;border-radius:7px}
.tools button[aria-pressed=true]{background:var(--accent-dim);color:var(--accent);border-color:var(--accent-line)}#png{background:var(--accent);color:#1a1206}:root[data-theme="light"] #png{color:#fff}#count{color:var(--text-3);margin-left:auto}#status{min-height:1.6em;color:var(--text-2)}#swatches{margin-top:.6rem}#swatches button{min-height:0;width:32px;height:32px;border:2px solid rgba(255,255,255,.18)}
:root[data-theme="light"] .pair input[type=color]{background:#fff}:root[data-theme="light"] #swatches button{border-color:rgba(0,0,0,.18)}

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