/* Compact picker; loaded with the editor on every layout. */
.theme-color-picker[open] { display: grid; gap: 5px; position: fixed; z-index: 10000; margin: 0; box-sizing: border-box; width: 235px; max-width: calc(100vw - 10px); max-height: calc(100dvh - 10px); padding: 5px; border: 1px solid var(--col_pop_header_bg); overflow: auto; background: var(--col_pop_bg, #eee); color: var(--col_pop_txt, #111); font: 12px Arial, sans-serif; }
.theme-color-picker [hidden] { display: none !important; }
.theme-color-picker h2 { display: none; }
.theme-color-samples { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.theme-color-check { display: block; height: 20px; background: conic-gradient(#bbb 25%, white 0 50%, #bbb 0 75%, white 0) 0 0 / 10px 10px; }
.theme-color-check > span { display: block; height: 100%; }
.theme-color-hex { display: flex; gap: 5px; }
.theme-color-picker .theme-color-hex input { width: 0; flex: 1; min-width: 0; box-sizing: border-box; height: 30px; padding: 0 5px; font: 12px monospace; }
.theme-color-picker .theme-color-hex button { width: 30px; height: 30px; min-width: 30px; padding: 5px; display: grid; place-items: center; }
.theme-color-picker svg { width: 18px; height: 18px; }
.theme-color-plane { position: relative; height: 110px; overflow: hidden; }
.theme-color-plane canvas { display: block; width: 100%; height: 110px; touch-action: none; }
.theme-color-plane > span { position: absolute; box-sizing: border-box; width: 12px; height: 12px; border: 2px solid white; box-shadow: 0 0 0 1px black; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.theme-color-controls { display: grid; gap: 5px; }
.theme-color-controls > div { display: grid; grid-template-columns: minmax(0, 1fr) 45px; gap: 5px; }
.theme-color-picker .theme-color-controls input { box-sizing: border-box; min-width: 0; width: 100%; height: 20px; margin: 0; padding: 0 2px; font: 11px Arial, sans-serif; }
.theme-color-picker .theme-color-controls input[type="range"] { appearance: none; -webkit-appearance: none; padding: 0; border: 0; border-radius: 0; cursor: pointer; }
.theme-color-controls input[type="range"]::-webkit-slider-runnable-track { background: transparent; height: 20px; }
.theme-color-controls input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 8px; height: 20px; border: 2px solid white; box-shadow: 0 0 1px 1px #333; background: transparent; border-radius: 3px; }
.theme-color-controls input[type="range"]::-moz-range-track { background: transparent; height: 20px; }
.theme-color-controls input[type="range"]::-moz-range-thumb { width: 5px; height: 16px; border: 2px solid white; background: transparent; border-radius: 3px; }
.theme-color-picker p { margin: 0; font-size: 11px; }
.theme-color-picker p:empty { display: none; }
.theme-color-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.theme-color-picker .theme-color-actions button { height: 40px; padding: 0 5px; box-sizing: border-box; }
.theme-element-fields .theme-color-trigger { box-sizing: border-box; width: 40px; height: 40px; padding: 5px; border: 0; flex-shrink: 0; background: #fff; }
.theme-color-trigger > span { display: block; width: 30px; height: 30px; }
