#theme-dialog .td-color[data-edit-color]{border:0;cursor:pointer;width:100%;position:relative}
#theme-dialog .td-color[data-edit-color]:hover{outline:2px solid rgb(var(--atelier-rgb-6e775f, 110 119 95));outline-offset:2px}
#theme-dialog .td-color[data-edit-color]:after{content:'✎';position:absolute;right:3px;bottom:2px;background:rgb(var(--atelier-rgb-ffffff, 255 255 255));color:rgb(var(--atelier-rgb-232820, 35 40 32));border-radius:3px;padding:0 2px;font:12px Arial}
.palette-hint{font:11px/1.5 Arial;color:var(--muted);margin:0 0 4px}
.palette-editor{font:12px/1.4 Arial;min-width:0}
.palette-editor h3{margin:16px 0 8px}.palette-editor p{font-size:11px;color:var(--muted);line-height:1.5;margin:6px 0 12px}
.palette-back,.palette-reset,.palette-reset-all{border:1px solid var(--line);border-radius:4px;background:none;color:var(--ink);padding:8px;font:11px Arial;cursor:pointer}
.palette-back{border:0;padding:0 0 12px;display:flex;gap:8px}
.palette-current{display:flex;align-items:center;gap:12px}.palette-current i{background:var(--swatch);width:44px;height:38px;border-radius:5px;box-shadow:inset 0 0 0 1px rgb(var(--atelier-rgb-000000, 0 0 0) / 0.13333333333333333)}.palette-current strong{font:14px monospace}
.palette-suggestions,.palette-spectrum{display:grid;gap:6px;grid-template-columns:repeat(5,1fr)}.palette-spectrum{grid-template-columns:repeat(6,1fr)}
.palette-suggestions button,.palette-spectrum button{background:var(--swatch);border:1px solid rgb(var(--atelier-rgb-000000, 0 0 0) / 0.13333333333333333);border-radius:5px;height:33px;cursor:pointer;min-width:0}.palette-spectrum button{height:23px}
.palette-editor button[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:2px}
.palette-hue{display:grid;gap:6px;margin:16px 0}.palette-hue input{width:100%;margin:0;accent-color:rgb(var(--atelier-rgb-293822, 41 56 34))}
.palette-free{display:grid;grid-template-columns:1fr 1.3fr;gap:8px}.palette-free label{display:grid;gap:5px;font-size:11px}
.palette-free input{width:100%;min-width:0;height:34px;border:1px solid var(--line);border-radius:4px;background:var(--paper);color:var(--ink);padding:4px;font:12px monospace}
.palette-free input:invalid{border-color:rgb(var(--atelier-rgb-a32929, 163 41 41))}.palette-editor .palette-warning{color:rgb(var(--atelier-rgb-9c341f, 156 52 31));min-height:0}.palette-warning:empty{display:none}
.td-details:has(.palette-editor){align-self:center}.palette-reset-all{margin-top:6px;width:100%}
@media(max-width:1000px){.td-details:has(.palette-editor){grid-template-columns:1fr}.palette-editor{max-width:420px;width:100%;margin:auto}.palette-hint{grid-column:1/-1}}
@media(max-width:600px){.palette-suggestions button{height:38px}}
