/* UIX colour picker (see colorpicker.js). Uses the site's --ux-* tokens; every value has a fallback so it also works alone. */
.uixcp { --cp-surface: var(--ux-surface, light-dark(#fff, #15121f)); --cp-text: var(--ux-text, light-dark(#130b2e, #f3f0ff)); --cp-muted: var(--ux-muted, light-dark(#6b6485, #a39cc0));
  --cp-line: var(--ux-line-strong, light-dark(#d8d2e7, #363049)); --cp-focus: var(--ux-focus, light-dark(#6301e4, #b79bff)); --cp-hover: var(--ux-hover, light-dark(#f2effa, #1c1929));
  position: absolute; z-index: 1000; display: grid; gap: 10px; width: 260px; padding: 12px; border: 1px solid var(--cp-line); border-radius: 16px; background: var(--cp-surface); color: var(--cp-text); color-scheme: light dark;
  font: 500 .8125rem/1.2 var(--ux-font, system-ui, sans-serif); box-shadow: 0 1px 2px rgb(0 0 0 / .06), 0 24px 56px -20px light-dark(rgb(30 18 80 / .35), rgb(0 0 0 / .8)); opacity: 0; transform: translateY(4px); transition: opacity .14s, transform .14s; }
.uixcp.is-open { opacity: 1; transform: none; }
.uixcp[data-up="true"] { transform: translateY(-4px); } .uixcp[data-up="true"].is-open { transform: none; }
:root[data-theme="dark"] .uixcp { color-scheme: dark; } :root[data-theme="light"] .uixcp { color-scheme: light; }
.uixcp__area { position: relative; height: 150px; border-radius: 10px; cursor: crosshair; touch-action: none;
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent), hsl(var(--h, 258) 100% 50%); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.uixcp__knob { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid #fff; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgb(0 0 0 / .45), 0 2px 5px rgb(0 0 0 / .35); pointer-events: none; }
.uixcp__area:focus-visible, .uixcp__hex:focus-visible, .uixcp__cur:focus-visible, .uixcp__sw:focus-visible, .uixcp__hue:focus-visible { outline: 2px solid var(--cp-focus); outline-offset: 2px; }
.uixcp__hue { width: 100%; height: 14px; margin: 0; border-radius: 99px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background: linear-gradient(to right, hsl(0 100% 50%), hsl(60 100% 50%), hsl(120 100% 50%), hsl(180 100% 50%), hsl(240 100% 50%), hsl(300 100% 50%), hsl(360 100% 50%)); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .12); }
.uixcp__hue::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: hsl(var(--h, 258) 100% 50%); box-shadow: 0 0 0 1px rgb(0 0 0 / .45), 0 2px 5px rgb(0 0 0 / .3); }
.uixcp__hue::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: hsl(var(--h, 258) 100% 50%); box-shadow: 0 0 0 1px rgb(0 0 0 / .45); }
.uixcp__row { display: flex; align-items: center; gap: 8px; }
.uixcp__prev { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); }
.uixcp__prev.is-cur { background: linear-gradient(135deg, var(--cp-text) 0 50%, var(--cp-surface) 50%); }
.uixcp__hexl { flex: 1 1 auto; min-width: 0; }
.uixcp__hex { width: 100%; height: 32px; padding: 0 10px; border: 1px solid var(--cp-line); border-radius: 9px; background: transparent; color: inherit; font: 500 .8125rem/1 var(--ux-mono, ui-monospace, monospace); text-transform: lowercase; }
.uixcp__hex[aria-invalid="true"] { border-color: #dc2626; }
.uixcp__cur { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 32px; padding: 0 10px; border: 1px solid var(--cp-line); border-radius: 9px; background: none; color: var(--cp-muted); font: inherit; font-size: .75rem; cursor: pointer; }
.uixcp__cur:hover { background: var(--cp-hover); color: var(--cp-text); }
.uixcp__cur[aria-pressed="true"] { border-color: var(--cp-text); color: var(--cp-text); }
.uixcp__curi { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, currentColor 0 50%, transparent 50%); box-shadow: inset 0 0 0 1px currentColor; }
.uixcp__lbl { margin-bottom: -4px; color: var(--cp-muted); font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.uixcp__sws { display: flex; flex-wrap: wrap; gap: 6px; }
.uixcp__sw { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14); cursor: pointer; transition: transform .12s; }
.uixcp__sw:hover { transform: scale(1.12); }
.uixcp__sw[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgb(0 0 0 / .14), 0 0 0 2px var(--cp-surface), 0 0 0 4px var(--cp-text); }
.uixcp__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .uixcp, .uixcp__sw { transition: none; } }
