dialog.brush-color-picker {
    position:fixed;inset:auto;margin:0;padding:12px;width:258px;max-width:calc(100vw - 16px);
    box-sizing:border-box;background:#222;border:1px solid #444;border-radius:10px;
    color:#eee;color-scheme:dark;box-shadow:0 10px 32px #0006;font:12px/1.4 Arial,sans-serif;
}
.brush-color-picker::backdrop {background:transparent}
.brush-color-picker * {box-sizing:border-box}
.brush-color-picker .bcp-heading {display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.brush-color-picker .bcp-close {border:0;background:none;color:#ccc;font-size:22px;line-height:24px;width:28px;height:28px;padding:0;cursor:pointer}
.brush-color-picker .bcp-plane {display:block;width:100%;height:138px;touch-action:none;cursor:crosshair;border-radius:4px}
.brush-color-picker .bcp-hue {display:block;width:100%;height:12px;margin:14px 0;appearance:none;border:0;border-radius:8px;background:linear-gradient(to right,red,#ff0,#0f0,#0ff,#00f,#f0f,red)}
.brush-color-picker .bcp-hue::-webkit-slider-thumb {appearance:none;width:16px;height:16px;border:2px solid white;border-radius:50%;background:transparent;cursor:pointer}
.brush-color-picker .bcp-hue::-moz-range-thumb {width:12px;height:12px;border:2px solid white;border-radius:50%;background:transparent;cursor:pointer}
.brush-color-picker .bcp-fields {display:flex;gap:7px}
.brush-color-picker label {display:block;flex:1;min-width:0;text-align:center;color:#aaa}
.brush-color-picker input:not([type=range]) {display:block;width:100%;min-width:0;background:#292929;border:1px solid #555;border-radius:4px;color:#eee;padding:6px 4px;font:12px Arial,sans-serif;text-align:center;margin-bottom:4px}
.brush-color-picker .bcp-hex {margin-top:8px}
.brush-color-picker :focus-visible {outline:2px solid #00d5ed;outline-offset:2px}
