/* The palette is entirely static; only its tiny cursor and selected color update. */
.mystic-color{--mc-selected:#c4a3ed;--mc-hue:#a45cff;--mc-bright:#c4a3ed;width:100%;min-width:0;padding:12px;border:1px solid #6c537b66;border-radius:13px;background:linear-gradient(145deg,#271d32bb,#15111cdd);box-sizing:border-box;color:#eee8f2;font:12px/1.4 var(--font-body,system-ui,sans-serif)}
.mystic-color *{box-sizing:border-box}
.mystic-color .mc-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:3px;font-weight:650;letter-spacing:.025em;color:#eee8f2}
.mystic-color .mc-color-chip{width:28px;height:12px;border:1px solid #ffffff55;border-radius:10px;background:var(--mc-selected);box-shadow:0 0 10px color-mix(in srgb,var(--mc-selected) 20%,transparent)}
.mystic-color .mc-palette-row{display:grid;grid-template-columns:minmax(112px,144px) minmax(0,1fr);align-items:center;gap:13px}
.mystic-color .mc-star{position:relative;width:100%;aspect-ratio:1;touch-action:none;cursor:crosshair;border-radius:10px;outline:none;user-select:none;-webkit-user-select:none}
.mystic-color .mc-star:focus-visible{outline:2px solid #d6b477;outline-offset:3px}
.mystic-color .mc-hues,.mystic-color .mc-star>svg{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
.mystic-color .mc-seal{fill:none;stroke:#c7a66bbf;stroke-width:.95}
.mystic-color .mc-seal-inner{stroke:#bfa16e66;stroke-width:.65}
.mystic-color .mc-seal-web{stroke:#c7a66b5c;stroke-width:.65}
.mystic-color .mc-hues{background:conic-gradient(#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00)}
.mystic-color .mc-compass-ribs{fill:none;stroke:#ffedbf66;stroke-width:.65}
.mystic-color .mc-outline{fill:none;stroke:#e5c489d9;stroke-width:.8;vector-effect:non-scaling-stroke}
.mystic-color .mc-marker{position:absolute;width:13px;height:13px;border:2px solid #fff;border-radius:50%;background:var(--mc-selected);box-shadow:0 0 0 1.5px #17121c,0 0 5px #0008;transform:translate(-50%,-50%);pointer-events:none}
.mystic-color .mc-sliders{min-width:0;display:grid;gap:3px;align-content:center}
:is(#workspace-body,#dialog-content) .mystic-color label.mc-slider-label,.mystic-color label.mc-slider-label{display:flex;align-items:center;justify-content:space-between;gap:5px;margin:0;color:#ccc0d3;font:inherit;font-size:11px;text-transform:none;letter-spacing:0}
.mystic-color .mc-slider-label output{color:#e9d3b0;font-variant-numeric:tabular-nums}
.mystic-color input[data-mc="s"],.mystic-color input[data-mc="v"]{appearance:none;-webkit-appearance:none;display:block;width:100%;height:26px;min-height:26px;margin:0 0 4px;padding:0;border:0;border-radius:0;background:transparent;accent-color:#ddc1f8;cursor:pointer;touch-action:pan-y}
.mystic-color input[type="range"]::-webkit-slider-runnable-track{height:7px;border:1px solid #ffffff33;border-radius:8px;background:linear-gradient(90deg,#fff,var(--mc-hue))}
.mystic-color input[data-mc="v"]::-webkit-slider-runnable-track{background:linear-gradient(90deg,#000,var(--mc-bright))}
.mystic-color input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;width:17px;height:17px;margin-top:-6px;border:2px solid #1c1527;border-radius:50%;background:#edddf8;box-shadow:0 0 0 1px #d6b477}
.mystic-color input[type="range"]::-moz-range-track{height:7px;border:1px solid #ffffff33;border-radius:8px;background:linear-gradient(90deg,#fff,var(--mc-hue))}
.mystic-color input[data-mc="v"]::-moz-range-track{background:linear-gradient(90deg,#000,var(--mc-bright))}
.mystic-color input[type="range"]::-moz-range-thumb{width:14px;height:14px;border:2px solid #1c1527;border-radius:50%;background:#edddf8;box-shadow:0 0 0 1px #d6b477}
.mystic-color .mc-hint{font-size:10px;line-height:1.35;color:#aa9bb5}
.mystic-color .mc-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:8px}
:is(#workspace-body,#dialog-content) .mystic-color label.mc-channel,.mystic-color label.mc-channel{display:flex;align-items:center;gap:5px;min-width:0;margin:0;padding:0 7px;border:1px solid #65516c99;border-radius:7px;background:#100c16a6;color:#b9a9c5;font:600 11px/1.4 var(--font-body,system-ui,sans-serif);text-transform:none;letter-spacing:0}
.mystic-color .mc-channel>span{width:10px;text-align:center;flex:none}
.mystic-color .mc-r>span{color:#ff9eaa}.mystic-color .mc-g>span{color:#a3dfbc}.mystic-color .mc-b>span{color:#a7c6ff}
.mystic-color .mc-values input{width:100%;min-width:0;height:36px;min-height:36px;margin:0;padding:4px 0;border:0;border-radius:0;background:transparent;color:#f3eaf7;font:12px/1.3 ui-monospace,monospace;appearance:textfield;-moz-appearance:textfield}
.mystic-color .mc-values input::-webkit-inner-spin-button,.mystic-color .mc-values input::-webkit-outer-spin-button{appearance:none;margin:0}
.mystic-color .mc-hex-row{display:flex;align-items:center;gap:8px;margin-top:8px;min-width:0}
:is(#workspace-body,#dialog-content) .mystic-color .mc-hex-row>label,.mystic-color .mc-hex-row>label{display:block;flex:none;margin:0;color:#b9a9c5;font:10px/1.4 ui-monospace,monospace;letter-spacing:.06em}
.mystic-color input[data-mc="hex"]{width:100%;min-width:0;height:36px;min-height:36px;margin:0;padding:7px 8px;border:1px solid #65516c99;border-radius:7px;background:#100c16a6;color:#eee8f2;font:12px/1.3 ui-monospace,monospace;letter-spacing:.05em;text-transform:uppercase}
.mystic-color input[data-mc="native"]{display:block;flex:0 0 36px;width:36px;height:36px;min-height:36px;margin:0;padding:4px;border:1px solid #65516c99;border-radius:8px;background:#21182b;cursor:pointer}
.mystic-color input[type="color"]::-webkit-color-swatch-wrapper{padding:0}.mystic-color input[type="color"]::-webkit-color-swatch{border:0;border-radius:4px}.mystic-color input[type="color"]::-moz-color-swatch{border:0;border-radius:4px}
.mystic-color input:focus-visible{outline:2px solid #d6b477;outline-offset:2px}
.mystic-color input[aria-invalid="true"]{outline:1px solid #ed8d9b}
.pm-appearance:has([data-mystic-color]){display:flex;flex-direction:column;align-items:stretch;gap:8px}
.pm-appearance>[data-mystic-color]{width:100%;flex:1 1 auto}
@media(max-width:420px){.mystic-color{padding:10px}.mystic-color .mc-palette-row{grid-template-columns:112px minmax(0,1fr);gap:10px}.mystic-color .mc-hint{font-size:9px}.mystic-color .mc-values input,.mystic-color input[data-mc="hex"]{font-size:16px;height:40px;min-height:40px}.mystic-color input[data-mc="native"]{flex-basis:40px;width:40px;height:40px;min-height:40px}}
