.color-intro{display:flex;align-items:center;justify-content:space-between;gap:16px}.colors-page button{cursor:pointer}.colors-page button:disabled{opacity:.4;cursor:default}.palette-workbench{border:1px solid var(--line);background:var(--color-panel,#fff);border-radius:16px;padding:24px}.color-controls,.color-selects,.color-generate,.color-actions,.color-below,.preview-bar,.visual-top,.preview-toggle{display:flex;gap:12px;align-items:center}.color-controls,.color-below,.preview-bar,.visual-top{justify-content:space-between}.color-selects label{display:flex;align-items:center;gap:10px;font-size:12px;font-weight:600}.colors-page select{padding:10px 30px 10px 12px;border:1px solid var(--line);max-width:100%}.colors-page button{border:1px solid var(--line);border-radius:7px;background:var(--color-panel,#fff);color:var(--ink);padding:12px 16px;font-size:12px}.colors-page button:hover:not(:disabled){border-color:var(--ink)}.colors-page .color-primary{background:var(--ink);color:var(--paper);border-color:var(--ink);display:flex;gap:28px;align-items:center;font-weight:600}.palette-swatches{display:grid;grid-template-columns:repeat(var(--count,5),minmax(0,1fr));gap:8px;margin-top:24px}.palette-swatch{min-width:0;border-radius:10px;background:var(--swatch);color:var(--swatch-ink);position:relative;min-height:280px;display:flex;flex-direction:column;justify-content:flex-end;border:2px solid transparent}.palette-swatch.selected{border-color:var(--swatch-ink);box-shadow:inset 0 0 0 4px var(--swatch)}.colors-page .swatch-edit{background:transparent;color:inherit;border:0;flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:12px;width:100%;padding:44px 3px 12px}.swatch-edit strong{font-size:clamp(11px,1.5vw,19px);font-weight:600}.swatch-edit small{font-size:10px;opacity:.8}.colors-page .swatch-lock{background:transparent;color:inherit;border:0;width:100%;border-top:1px solid currentColor;border-radius:0 0 8px 8px;display:flex;justify-content:center;gap:6px;padding:14px 3px;font-size:11px}.swatch-lock svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7}.color-below p{font-size:12px;max-width:720px;margin:16px 0}.color-key{font-size:10px;border:1px solid var(--line);padding:5px 9px;border-radius:5px;white-space:nowrap;color:var(--muted)}.color-actions{flex-wrap:wrap}.color-status{font-size:12px;min-height:22px;margin:16px 0 0}.color-presets{margin:36px 0 48px}.color-presets h2{font:600 14px Inter,sans-serif;letter-spacing:0;margin-bottom:16px}.preset-palettes{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}.colors-page .preset-palette{padding:0;overflow:hidden;text-align:left}.preset-palette>span{display:flex;height:42px}.preset-palette i{flex:1;background:var(--preset)}.preset-palette small{display:block;padding:11px;font-size:10px}.color-editor{background:var(--color-panel,#fff);border:1px solid var(--line);border-radius:16px;padding:28px;margin:36px 0 64px}.color-editor-intro{display:flex;gap:24px;align-items:center}.color-editor h2{font:500 clamp(20px,2vw,28px)/1.4 Unbounded,sans-serif;margin:10px 0}.color-editor-intro p{font-size:12px;margin:0}.color-editor h3,.contrast-panel h3{font-size:13px;margin:0 0 18px}.color-editor-grid{display:grid;grid-template-columns:1.3fr 1fr;gap:60px;margin-top:28px}#color-large-swatch{width:88px;height:88px;border-radius:50%;flex-shrink:0;background:#C0654A;border:1px solid var(--line)}.color-hex{display:flex;gap:16px;align-items:end}.color-hex label{display:block;font-size:11px;font-weight:600;margin-bottom:8px}.color-hex .native-label{margin:0}.colors-page #color-native{display:block;width:60px;height:49px;padding:5px;margin-top:8px;cursor:pointer}.color-hex form{flex:1;min-width:0}.color-hex form>div{display:flex;gap:8px}.color-hex input[type=text]{width:100%;min-width:0;border:1px solid var(--line);font-family:monospace}.color-sliders{display:grid;gap:18px;margin-top:24px}.color-sliders label{display:flex;flex-wrap:wrap;justify-content:space-between;font-size:11px;font-weight:600}.color-sliders input{width:100%;margin:12px 0 0;accent-color:var(--orange);padding:0!important;min-height:24px}.color-sliders output{color:var(--muted);font-weight:400}.color-note{font-size:11px;margin-bottom:0}#color-error{font-size:12px;color:var(--error)}#color-formats{margin:0}#color-formats>div{border-bottom:1px solid var(--line);padding:15px 0;display:flex;flex-direction:column;gap:8px}#color-formats dt{font-size:10px;letter-spacing:1px;color:var(--muted)}#color-formats dd{margin:0;font:13px/1.6 monospace;overflow-wrap:anywhere;display:flex;justify-content:space-between;gap:8px;align-items:center}#color-formats button{padding:6px 8px;font-size:10px}.visual-section{margin:0 0 64px}.visual-top h2{margin-top:14px;font-size:clamp(22px,2.5vw,32px)}.visual-help{font-size:13px;max-width:770px}.preview-toggle{gap:4px;background:var(--color-panel,#fff);border:1px solid var(--line);padding:4px;border-radius:8px}.colors-page .preview-toggle button{border:0;background:none;padding:9px 12px;white-space:nowrap}.colors-page .preview-toggle [aria-pressed=true]{background:var(--ink);color:var(--paper)}.preview-bar{margin:26px 0 16px}.palette-preview{--demo-bg:#F6F0E8;--demo-text:#292621;--demo-accent:#C0654A;--demo-surface:#D9B997;--demo-label:#fff;background:var(--demo-bg);color:var(--demo-text);border:1px solid var(--line);border-radius:14px;padding:32px 40px;overflow:hidden}.demo-nav{display:flex;justify-content:space-between;align-items:center;padding-bottom:28px;border-bottom:1px solid currentColor;font-size:13px}.demo-nav strong{font-size:19px;letter-spacing:-1px}.demo-nav strong>span{color:var(--demo-accent);margin-left:3px;font-size:11px}.demo-layout{display:grid;grid-template-columns:1.05fr 1fr;gap:48px;padding-top:38px;align-items:center}.demo-copy>small,#preview-poster>small{font-size:9px;letter-spacing:2px}.demo-copy h3{font:500 clamp(25px,3.5vw,47px)/1.3 Unbounded,sans-serif;letter-spacing:-1.8px;max-width:500px;margin:22px 0}.demo-copy p{color:inherit;font-size:13px;max-width:380px;line-height:1.9}.demo-cta{display:inline-flex;justify-content:space-between;gap:32px;background:var(--demo-accent);color:var(--demo-label);padding:15px 20px;font-size:12px;border-radius:5px;margin:12px 0 20px}.demo-palette{display:flex;gap:5px}.demo-palette i{width:20px;height:20px;border-radius:50%;background:var(--dot);border:1px solid currentColor}.demo-art{position:relative;padding:0 0 0 24px}.demo-orbit{height:220px;background:var(--demo-surface);border-radius:50% 50% 6px 6px;position:relative;overflow:hidden;max-width:340px;margin:auto}.demo-orbit>div{background:var(--demo-accent);width:150px;height:150px;border-radius:50%;position:absolute;bottom:-22px;left:12%}.demo-orbit>span{background:var(--demo-text);width:80px;height:170px;border-radius:50px;position:absolute;right:10%;top:20px;transform:rotate(30deg)}.demo-card{background:var(--demo-surface);color:var(--demo-text);border-radius:8px;padding:20px 24px;position:relative;margin:-15px 0 0;max-width:340px;border:1px solid currentColor}.demo-card small{font-size:9px}.demo-card h4{font:500 18px/1.5 Unbounded,sans-serif;margin:14px 0 8px;letter-spacing:-.5px}.demo-card p{font-size:11px;margin:0;color:inherit}.palette-roles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:20px}.palette-roles label{font-size:11px;font-weight:600;display:grid;gap:8px}.palette-roles select{width:100%;font:12px monospace}.contrast-panel{margin-top:24px;border:1px solid var(--line);border-radius:12px;padding:24px;background:var(--color-panel,#fff)}#palette-contrast{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}#palette-contrast>div{border-left:2px solid var(--line);padding-left:14px;display:grid;gap:8px}#palette-contrast span{font-size:11px;color:var(--muted)}#palette-contrast strong{font-size:22px}#palette-contrast small{font-size:11px}.contrast-panel>p{font-size:11px;max-width:860px;margin:20px 0 0}.contrast-panel a{text-decoration:underline}#preview-poster{min-height:420px;position:relative;padding:15px 20px}#preview-poster h3{font:500 clamp(35px,6vw,85px)/1.15 Unbounded,sans-serif;letter-spacing:-3px;max-width:650px;position:relative;z-index:1;margin:35px 0 80px}#preview-poster p{color:inherit;font-size:11px}.poster-shapes{position:absolute;inset:45px 5% 15% 45%;display:flex;align-items:end;transform:rotate(-15deg)}.poster-shapes i{width:35%;height:90%;border-radius:150px;background:var(--demo-accent)}.poster-shapes i:nth-child(2){height:70%;background:var(--demo-surface)}.poster-shapes i:nth-child(3){height:50%;background:var(--demo-text)}.colors-page textarea{width:100%;border:1px solid var(--line);padding:14px;background:var(--paper);color:var(--ink)}[data-theme=dark] .colors-page{--color-panel:#1e2228}.colors-page [hidden]{display:none!important}@media(min-width:1400px){.palette-swatch{min-height:320px}}@media(max-width:900px){.color-controls{align-items:stretch;flex-wrap:wrap}.color-generate{margin-left:auto}.palette-swatch{min-height:230px}.preset-palettes{grid-template-columns:repeat(3,minmax(0,1fr))}.color-editor-grid{gap:28px}.demo-layout{gap:20px}.demo-art{padding-left:0}.demo-copy h3{font-size:30px}.visual-top{flex-wrap:wrap}}@media(max-width:600px){.palette-workbench{padding:14px}.color-selects{justify-content:space-between;width:100%;gap:8px}.color-selects label{gap:6px;font-size:10px;flex-direction:column;align-items:start}.color-generate{width:100%;gap:7px}.color-generate .color-primary{flex:1;justify-content:space-between}.palette-swatches{display:flex;flex-direction:column;gap:6px;margin-top:16px}.palette-swatch{min-height:82px;flex-direction:row;align-items:stretch}.colors-page .swatch-edit{flex-direction:row;justify-content:space-between;padding:16px;gap:8px}.swatch-edit strong{font-size:18px}.colors-page .swatch-lock{width:70px;border-top:0;border-left:1px solid currentColor;align-items:center;flex-direction:column;border-radius:0 8px 8px 0;font-size:9px}.color-key{display:none}.color-actions{gap:6px}.color-actions button{flex:1 1 45%;font-size:10px;padding:12px 7px}.color-editor{padding:20px;margin-bottom:40px}.color-editor-intro{gap:15px;align-items:start}#color-large-swatch{width:45px;height:45px}.color-editor h2{font-size:20px}.color-editor-grid{grid-template-columns:1fr}.color-hex{gap:10px}.color-hex form>div{flex-wrap:wrap}.color-hex form button{padding:9px 12px}.color-hex input[type=text]{font-size:16px}.color-intro .tool-intro{margin-top:32px}.color-intro{align-items:start}.color-intro>.save-tool{margin-top:35px;padding:6px;white-space:nowrap}.colors-page .tool-intro h1{font-size:27px}.preset-palettes{gap:8px}.preset-palette small{font-size:9px;padding:9px}.palette-preview{padding:20px}.demo-layout{grid-template-columns:1fr;padding-top:28px}.demo-copy h3{font-size:32px}.demo-art{display:grid;grid-template-columns:1fr 1fr;align-items:center}.demo-orbit{width:100%;height:165px}.demo-orbit>div{width:100px;height:100px}.demo-orbit>span{width:50px;height:130px}.demo-card{margin:0 0 0 -12px;padding:14px;z-index:1}.demo-card h4{font-size:13px}.demo-nav strong{font-size:16px}.palette-roles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}#palette-contrast{grid-template-columns:1fr;gap:18px}.preview-bar{gap:8px;flex-wrap:wrap}.colors-page .preview-toggle button{font-size:10px;padding:9px}.colors-page #palette-auto{font-size:10px}#preview-poster{padding:0;min-height:340px}#preview-poster h3{font-size:42px;letter-spacing:-1.5px}.poster-shapes{inset:80px 0 20% 35%;opacity:.7}}

#color-formats button{flex-shrink:0;white-space:nowrap}#color-formats dd>span{min-width:0}.color-preview-jump{font-size:12px;font-weight:600;padding:12px 14px;border-radius:7px;color:var(--ink);text-decoration:underline;text-underline-offset:4px}.color-preview-jump:hover{color:var(--orange)}@media(max-width:600px){.color-preview-jump{flex-basis:100%;padding:6px 0 12px}}
/* The palette is the working canvas. */
.palette-swatches{display:flex;gap:0;position:relative;margin:24px 0 10px;border-radius:12px;isolation:isolate}.palette-swatch{flex:1;min-height:350px;border:0;border-radius:0;transform-origin:top left;transition:background-color .22s ease,color .22s ease;overflow:visible;min-width:0}.palette-swatch:first-child{border-radius:12px 0 0 12px}.palette-swatch:last-child{border-radius:0 12px 12px 0}.palette-swatch.selected{border:0;box-shadow:none}.palette-swatch.selected .swatch-edit strong{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px}.colors-page .swatch-edit{flex:1;padding:145px 4px 24px;gap:10px;outline-offset:-6px}.swatch-edit strong{font-size:clamp(11px,1.5vw,20px);transition:transform .18s ease}.swatch-edit:hover strong{transform:translateY(-2px)}.swatch-edit small{opacity:.65}.swatch-tools{position:absolute;top:28px;left:50%;transform:translateX(-50%);display:grid;gap:5px;opacity:0;transition:opacity .16s,translate .16s;translate:0 6px;z-index:2}.palette-swatch:hover .swatch-tools,.palette-swatch:focus-within .swatch-tools{opacity:1;translate:0 0}.colors-page .swatch-tools button,.colors-page .swatch-bottom button{padding:8px;background:transparent;color:inherit;border:0;line-height:1;border-radius:6px;display:grid;place-items:center;width:34px;height:34px;outline-offset:1px}.swatch-tools svg,.swatch-bottom svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.swatch-tools button:hover,.swatch-bottom button:hover{background:color-mix(in srgb,currentColor 12%,transparent)!important}.colors-page [data-swatch-action=drag]{cursor:grab;touch-action:none}.swatch-bottom{display:flex;align-items:center;justify-content:center;gap:6px;padding:0 2px 20px;z-index:1}.swatch-bottom button:not([data-swatch-action=lock]){opacity:0;transition:opacity .16s}.palette-swatch:hover .swatch-bottom button,.palette-swatch:focus-within .swatch-bottom button{opacity:1}.swatch-bottom button.is-locked{background:color-mix(in srgb,currentColor 15%,transparent)}.swatch-bottom button:disabled{opacity:.22!important}.colors-page .swatch-add{position:absolute;left:-16px;top:49%;width:32px;height:32px;padding:0;display:grid;place-items:center;background:var(--color-panel,#fff);color:var(--ink);border:1px solid var(--line);border-radius:50%;font:400 24px/1 Inter,sans-serif;z-index:4;box-shadow:0 3px 12px #0002;opacity:.28;transform:scale(.85);transition:opacity .16s,transform .16s,background .16s}.colors-page .swatch-add.is-end{left:auto;right:-16px}.swatch-add:hover,.swatch-add:focus-visible,.palette-swatch:hover .swatch-add,.palette-swatch:focus-within .swatch-add{opacity:1;transform:scale(1)}.colors-page .swatch-add:hover{background:var(--orange);color:#141618;border-color:var(--orange)!important}.colors-page .swatch-add:disabled{opacity:0;pointer-events:none}.palette-swatch.is-dragging{opacity:.25}.palette-swatch[data-drop=before]{box-shadow:inset 5px 0 var(--orange)}.palette-swatch[data-drop=after]{box-shadow:inset -5px 0 var(--orange)}.palette-dragging{cursor:grabbing;user-select:none}.swatch-ghost{position:fixed!important;z-index:10000;pointer-events:none;opacity:.94;box-shadow:0 20px 50px #0005!important;border-radius:10px!important;min-height:0!important;display:flex;flex-direction:column}.swatch-ghost .swatch-add{display:none!important}.swatch-ghost .swatch-tools{opacity:1}.swatch-ghost .swatch-edit{color:inherit;background:none;border:0}.palette-dragging .swatch-add{opacity:0!important}
#color-editor-dialog{position:fixed;inset:auto;margin:0;width:min(390px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);padding:0;background:var(--color-panel,#fff);color:var(--ink);border:1px solid var(--line);border-radius:14px;box-shadow:0 20px 70px #0004;overflow:auto}#color-editor-dialog::backdrop{background:#0002}#color-editor-dialog[open]{animation:color-dialog-in .18s ease-out}#color-editor-dialog .color-editor{margin:0;padding:20px;border:0;border-radius:0;background:transparent}#color-editor-dialog .color-dialog-top{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:16px}.color-dialog-top p{margin:0;font-size:9px;color:var(--muted)}.colors-page #color-editor-close{padding:6px 10px;font-size:11px}#color-editor-close span{margin-left:12px;font-size:19px}#color-editor-dialog .color-editor-intro{gap:14px}#color-editor-dialog #color-large-swatch{width:42px;height:42px}#color-editor-dialog h2{font-size:19px;letter-spacing:-.6px;margin:0 0 8px}#color-editor-dialog .color-editor-intro p{font-size:11px;line-height:1.6}#color-editor-dialog .color-editor-grid{grid-template-columns:1fr;gap:18px;margin-top:20px}#color-editor-dialog .color-hex{gap:10px}#color-editor-dialog .color-hex form>div{flex-wrap:nowrap}#color-editor-dialog .color-hex input[type=text]{font-size:14px;padding:12px;min-width:0}#color-editor-dialog .color-hex form button{font-size:10px;white-space:nowrap;padding:10px}#color-editor-dialog #color-native{width:48px;height:43px}#color-editor-dialog .color-sliders{gap:12px;margin-top:20px}#color-editor-dialog .color-sliders input{margin-top:6px}#color-editor-dialog .color-note{font-size:10px;line-height:1.6}#color-editor-dialog h3{font-size:11px;margin-bottom:10px}#color-shades{display:flex;gap:5px}#color-shades button{height:32px;flex:1;border:1px solid #0002;padding:0;border-radius:5px}#color-editor-dialog .color-values-disclosure{border-top:1px solid var(--line);padding-top:14px}#color-editor-dialog .color-values-disclosure summary{font-size:11px;cursor:pointer;font-weight:600}#color-editor-dialog #color-formats>div{padding:9px 0}#color-editor-dialog #color-formats dd{font-size:11px}#color-editor-dialog #color-formats dt{font-size:9px}#color-error{margin:8px 0 0!important}@keyframes color-dialog-in{from{opacity:0;translate:0 7px}to{opacity:1;translate:0 0}}
@media(hover:none){.swatch-tools{opacity:1;translate:0 0}.swatch-bottom button:not([data-swatch-action=lock]){opacity:1}.colors-page .swatch-add{opacity:.9;transform:none}}
@media(max-width:900px){.swatch-bottom{gap:0}.swatch-bottom button{width:28px!important;padding:6px!important}}
@media(max-width:600px){.palette-swatches{gap:0;flex-direction:column}.palette-swatch{flex:auto;min-height:122px;flex-direction:row;align-items:stretch}.palette-swatch:first-child{border-radius:10px 10px 0 0}.palette-swatch:last-child{border-radius:0 0 10px 10px}.colors-page .swatch-edit{padding:20px 42px 20px 16px;align-items:center;justify-content:start;gap:14px}.swatch-edit strong{font-size:19px}.swatch-tools{opacity:1;translate:none;transform:none;top:10px;right:8px;left:auto;gap:1px}.colors-page .swatch-tools button{width:28px;height:28px;padding:6px}.swatch-bottom{padding:10px 40px 10px 0;flex-direction:column;gap:0}.colors-page .swatch-bottom button{width:28px!important;height:28px!important}.swatch-bottom button:not([data-swatch-action=lock]){opacity:1}.swatch-bottom [data-swatch-action=back] svg,.swatch-bottom [data-swatch-action=next] svg{rotate:90deg}.colors-page .swatch-add{top:-14px;left:calc(50% - 14px);width:28px;height:28px;font-size:21px;opacity:.9;transform:none}.colors-page .swatch-add.is-end{top:auto;bottom:-14px;right:auto;left:calc(50% - 14px)}.palette-swatch[data-drop=before]{box-shadow:inset 0 5px var(--orange)}.palette-swatch[data-drop=after]{box-shadow:inset 0 -5px var(--orange)}.swatch-ghost{flex-direction:row}.swatch-ghost .swatch-edit{padding:20px 42px 20px 16px}.color-below{padding-top:8px}#color-editor-dialog .color-editor{padding:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.colors-page *,#color-editor-dialog[open]{animation:none!important;transition:none!important}}
.palette-styles{border:0;border-top:1px solid var(--line);padding:18px 0 0;margin:22px 0 0;min-width:0}.palette-styles legend{float:left;font-size:11px;font-weight:600;padding:0;margin:0 0 8px;width:100%}.palette-style-top{clear:both;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.palette-style-top p{font-size:11px;margin:0;max-width:700px;line-height:1.6}.colors-page #palette-style-reset{font-size:10px;padding:7px 10px;white-space:nowrap}.colors-page #palette-style-reset[aria-pressed=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}.palette-style-options{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.palette-style{position:relative;cursor:pointer;min-width:0}.palette-style input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}.style-content{display:block;padding:8px;border:1px solid var(--line);border-radius:9px;transition:border-color .16s,background .16s;overflow:hidden;background:var(--color-panel,#fff);height:100%}.style-sample{display:flex;height:22px;border-radius:4px;overflow:hidden;margin-bottom:9px}.style-sample i{flex:1}.style-content strong{display:block;font-size:11px;font-weight:600;margin-bottom:4px}.style-content small{display:block;font-size:9px;color:var(--muted);line-height:1.5}.palette-style:hover .style-content{border-color:var(--ink)}.palette-style input:checked+.style-content{border-color:var(--orange);box-shadow:inset 0 0 0 1px var(--orange)}.palette-style input:focus-visible+.style-content{outline:3px solid var(--orange);outline-offset:3px}.style-caveat{font-size:10px;margin:12px 0 0;line-height:1.6;color:var(--muted)}@media(max-width:900px){.palette-style-options{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(max-width:600px){.palette-style-options{gap:7px}.palette-style-top{align-items:start;gap:8px;flex-direction:column}.style-content{padding:7px}.style-sample{height:20px}.style-content strong{font-size:10px}.style-content small{font-size:9px}.palette-styles{margin-top:16px;padding-top:14px}}
/* Actions live in one quiet footer; extra commands open as a labelled list. */
.swatch-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 9px 18px;gap:3px}.colors-page .swatch-bottom button{display:flex;align-items:center;justify-content:center;gap:5px;width:100%!important;height:34px!important;padding:7px 3px!important;min-width:0;opacity:.65}.swatch-bottom svg{width:15px;height:15px;flex-shrink:0}.footer-label{font-size:10px;line-height:1.2;white-space:nowrap}.swatch-bottom button.is-locked{opacity:1!important}.swatch-bottom button:not([data-swatch-action=lock]){opacity:.55}.palette-swatch:hover .swatch-bottom button,.palette-swatch:focus-within .swatch-bottom button{opacity:1}.palette-swatches[data-count="7"] .footer-label,.palette-swatches[data-count="8"] .footer-label{display:none}.swatch-menu[popover]{position:fixed;inset:auto;margin:0;width:184px;max-width:calc(100vw - 24px);padding:7px;background:var(--color-panel,#fff);color:var(--ink);border:1px solid var(--line);border-radius:11px;box-shadow:0 14px 40px #0003;overflow:auto;max-height:calc(100dvh - 24px)}.swatch-menu-heading{display:block;padding:9px 10px 12px;font:600 12px monospace;border-bottom:1px solid var(--line);margin-bottom:5px}.colors-page .swatch-menu button{display:block;width:100%;border:0;border-radius:5px;background:transparent;color:var(--ink);text-align:left;padding:10px;font-size:12px}.colors-page .swatch-menu button:hover:not(:disabled),.colors-page .swatch-menu button:focus-visible{background:var(--paper)}.colors-page .swatch-menu [data-swatch-action=remove]{border-top:1px solid var(--line);margin-top:5px;padding-top:12px;color:var(--error)}.colors-page .swatch-add{opacity:0;pointer-events:none;transform:scale(.75)}.palette-swatch:hover>.swatch-add,.palette-swatch:focus-within>.swatch-add,.colors-page .swatch-add:focus-visible{opacity:1;pointer-events:auto;transform:scale(1)}.swatch-ghost .swatch-menu{display:none!important}.swatch-ghost .swatch-bottom button{opacity:1!important}@media(max-width:900px){.footer-label{font-size:9px}.swatch-bottom{gap:0;padding-left:4px;padding-right:4px}.swatch-bottom svg{width:14px;height:14px}.colors-page .swatch-bottom button{gap:3px}}@media(max-width:600px){.palette-swatch{display:block;min-height:132px}.colors-page .swatch-edit{width:100%;min-height:78px;padding:18px 20px 12px;gap:14px}.swatch-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:0 12px 12px;gap:5px;width:100%;max-width:265px;margin:auto}.swatch-bottom svg{rotate:0!important;width:15px;height:15px}.palette-swatch .footer-label{display:inline!important;font-size:10px}.colors-page .swatch-bottom button{opacity:1!important;height:32px!important}.swatch-ghost{display:block}.swatch-ghost .swatch-edit{padding:18px 20px 12px;min-height:78px}}@media(hover:none){.colors-page .swatch-add{display:none!important}.colors-page .swatch-bottom button{opacity:1!important}}@media(prefers-reduced-motion:reduce){.colors-page .swatch-add{transition:none}}
@media(min-width:601px) and (max-width:900px){.swatch-bottom .footer-label{display:none}}
/* Shared Dotool picker, with a compact list for short choices. */
.colors-page .picker-trigger{min-height:43px;padding:11px 12px;border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:8px;gap:12px;font:600 12px/1.4 Inter,sans-serif;width:100%;display:flex;align-items:center;text-align:left}.colors-page .picker-trigger:hover:not(:disabled){border-color:var(--muted)}.colors-page .picker-trigger[aria-expanded=true]{background:var(--color-panel,#fff);border-color:var(--ink);box-shadow:0 0 0 3px #14161808}.colors-page .picker-chevron{margin-left:0;flex-shrink:0}.colors-page .color-selects label:first-child .unit-picker{width:84px}.colors-page .color-selects label:nth-child(2) .unit-picker{width:185px}.colors-page .palette-roles .unit-picker{width:100%;min-width:0}.colors-page .picker-panel{padding:7px;width:max(100%,250px);border-radius:11px;background:var(--color-panel,#fff);box-shadow:0 12px 35px #14161820}.colors-page [data-picker-for=palette-count] .picker-panel{width:140px}.colors-page .picker-options{margin-top:0;outline:none}.colors-page .picker-option{padding:10px 11px;gap:10px;min-height:40px;font-size:12px;line-height:1.4}.colors-page .option-name{min-width:0;display:block}.colors-page .option-description{display:block;color:var(--muted);font:400 10px/1.5 Inter,sans-serif;margin-top:3px}.colors-page .picker-option[aria-selected=true]{background:var(--paper)}.colors-page .picker-option[aria-selected=true] .option-tick{color:var(--orange)}.colors-page .picker-code.has-swatch,.colors-page .option-code.has-swatch{display:block;min-width:16px;width:16px;height:16px;padding:0;border-radius:4px;box-shadow:inset 0 0 0 1px #0002;flex-shrink:0}.colors-page .option-code.has-swatch:after{display:none}.colors-page .picker-panel:not([hidden]){animation:compact-picker-in .14s ease-out;transform-origin:top}.colors-page .palette-roles .picker-trigger{font:12px/1.4 monospace;gap:8px}.colors-page .picker-empty{margin:0}@keyframes compact-picker-in{from{opacity:0;translate:0 -3px}to{opacity:1;translate:0 0}}@media(max-width:600px){.colors-page .color-selects label{min-width:0}.colors-page .color-selects label:first-child{flex:0 0 80px}.colors-page .color-selects label:nth-child(2){flex:1}.colors-page .color-selects label:first-child .unit-picker,.colors-page .color-selects label:nth-child(2) .unit-picker{width:100%}.colors-page .picker-trigger{min-height:43px;padding:11px 10px;font-size:12px;gap:8px}.colors-page .picker-panel{width:max(100%,235px)}.colors-page .picker-option{min-height:44px}.colors-page .palette-roles .picker-trigger{font-size:10px}}

/* Actions unfold inside the selected colour. */
.palette-swatch{flex:1 1 0;min-height:420px;transition:flex-grow .38s cubic-bezier(.2,.8,.2,1),flex-basis .38s cubic-bezier(.2,.8,.2,1),background-color .22s,color .22s}
.palette-swatches.has-actions .palette-swatch.actions-open{flex:0 0 clamp(280px,34%,380px)}
.palette-swatch.actions-open>.swatch-edit,.palette-swatch.actions-open>.swatch-bottom,.palette-swatch.actions-open>.swatch-add{display:none!important}
.has-actions .palette-swatch:not(.actions-open) .swatch-edit strong{writing-mode:vertical-rl;font-size:14px}
.has-actions .palette-swatch:not(.actions-open) .swatch-bottom{flex-wrap:wrap;gap:1px}
.has-actions .palette-swatch:not(.actions-open) .footer-label{display:none}
.has-actions .palette-swatch:not(.actions-open) .swatch-bottom button{width:28px!important;padding:5px!important;min-width:28px!important}
#palette-actions{position:relative;inset:auto;display:flex;flex-direction:column;flex:1;min-width:0;width:100%;height:420px;box-sizing:border-box;padding:14px 18px 18px;margin:0;border:0;border-radius:inherit;box-shadow:none;background:var(--swatch);color:var(--swatch-ink);overflow:hidden}
#palette-actions[hidden]{display:none!important}.palette-actions-nav{display:flex;flex:none;align-items:center;justify-content:center;gap:8px;min-height:38px;margin-bottom:12px}
.colors-page .palette-actions-nav button{display:grid;place-items:center;width:36px;height:36px;min-height:36px;padding:0;background:transparent;color:inherit;border:0;border-radius:50%;transition:background .16s}
.colors-page .palette-actions-nav button:hover,.colors-page .palette-actions-nav button:focus-visible{background:color-mix(in srgb,currentColor 13%,transparent)}
#palette-actions svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#palette-action-buttons{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;gap:6px;animation:colour-actions-enter .2s ease-out}
#palette-action-buttons[data-view=main]{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:5px}
.colors-page #palette-action-buttons>button{background:transparent;color:inherit;border:0;padding:9px 8px;border-radius:7px;min-height:34px;font-size:11px;text-align:left}
.colors-page #palette-action-buttons>button:hover:not(:disabled){background:color-mix(in srgb,currentColor 10%,transparent)}
#palette-action-buttons[data-view=main]>.colour-main-action,#palette-action-buttons[data-view=main]>button:last-child{grid-column:1/-1}
.colors-page #palette-action-buttons>.colour-main-action{display:flex;align-items:center;gap:10px;font-size:12px;min-height:42px;padding:10px 6px}
.colour-main-action span{flex:1}#palette-action-buttons[data-view=main]>button:nth-child(n+4):nth-child(-n+7){box-shadow:inset 0 0 0 1px color-mix(in srgb,currentColor 18%,transparent);margin-top:3px}
#palette-action-buttons[data-view=main]>button:last-child{margin-top:5px;opacity:.75}
#palette-actions-hex{display:block;flex:none;text-align:center;font-size:14px;letter-spacing:1px;padding-top:14px}
#palette-action-buttons small{display:block;font:11px/1.6 monospace;margin-top:5px;overflow-wrap:anywhere;opacity:.75}
#palette-actions[data-view=shades]{padding:10px 0 0}#palette-actions[data-view=shades] .palette-actions-nav{margin:0 0 10px}
#palette-action-buttons .action-shades{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden;border-radius:0}
.colors-page .action-shades button{display:block;flex:1;min-height:34px;padding:5px 16px;text-align:left;border:0;border-radius:0;font:11px/1.4 Inter,sans-serif;transition:box-shadow .15s}
.colors-page .action-shades button:hover,.colors-page .action-shades button:focus-visible{box-shadow:inset 0 0 0 2px currentColor;z-index:1}
@keyframes colour-actions-enter{from{opacity:0;translate:8px 0}to{opacity:1;translate:0 0}}
@media(max-width:900px) and (min-width:601px){.has-actions .palette-swatch:not(.actions-open) [data-swatch-action=drag]{display:none!important}}
@media(max-width:600px){.palette-swatch{min-height:120px;flex:none;transition:background-color .22s,color .22s}.palette-swatches.has-actions .palette-swatch.actions-open{flex:none;min-height:500px}.has-actions .palette-swatch:not(.actions-open) .swatch-edit strong{writing-mode:horizontal-tb;font-size:18px}.has-actions .palette-swatch:not(.actions-open) .footer-label{display:inline}.has-actions .palette-swatch:not(.actions-open) .swatch-bottom{flex-wrap:nowrap}#palette-actions{height:500px;flex:none;min-height:500px}.colors-page .palette-actions-nav button{width:44px;height:44px;min-height:44px}.colors-page #palette-action-buttons>button{min-height:44px}.colors-page .action-shades button{min-height:44px}}
@media(prefers-reduced-motion:reduce){.palette-swatch{transition:none}#palette-action-buttons{animation:none}}
.palette-workbench{overflow-anchor:none}

.palette-from-image{font-size:12px;padding:10px 12px;white-space:nowrap;text-decoration:underline;text-underline-offset:4px}.palette-from-image:hover{color:var(--orange)}@media(max-width:600px){.color-generate{flex-wrap:wrap}.palette-from-image{padding:8px 0;flex-basis:100%;font-size:11px}}
