.brush-color-panel{position:fixed;z-index:65;width:280px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;border-radius:24px;color:#374151;background:linear-gradient(135deg,#ffffffe8,#ffffffcf);border:1px solid #ffffffc7;backdrop-filter:blur(32px);box-shadow:0 0 0 1px #0000000d,inset 0 1px 0 #fff,0 8px 32px #0000001a;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.brush-color-panel[hidden],.brush-color-panel [hidden]{display:none!important}
.brush-color-heading{display:flex;align-items:center;justify-content:space-between;padding:10px 16px;border-bottom:1px solid #0000000d;font-size:13px;font-weight:500}
.brush-color-close{width:32px;height:32px;display:grid;place-items:center;border:0;border-radius:50%;background:transparent;color:#6b7280;font-size:23px;line-height:1;cursor:pointer}
.brush-color-close:hover{background:#00000007}.brush-color-body{display:grid;gap:14px;padding:16px}
.brush-wheel-wrap{position:relative;width:224px;height:224px;margin:auto}
.brush-color-wheel{display:block;width:224px;height:224px;border-radius:50%;touch-action:none;cursor:crosshair;outline-offset:5px}
.brush-wheel-marker{position:absolute;pointer-events:none;transform:translate(-50%,-50%);width:13px;height:13px;box-sizing:border-box;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #0006,0 1px 5px #0004}
.brush-brightness-row{display:grid;gap:7px;font-size:11px;color:#6b7280}
.brush-brightness{display:block;width:100%;margin:0;height:18px;appearance:none;background:linear-gradient(#000,#000) center/100% 4px no-repeat;accent-color:#000;cursor:pointer;touch-action:pan-x}
.brush-brightness::-webkit-slider-thumb{appearance:none;width:18px;height:18px;border:1px solid #00000012;border-radius:50%;background:#fff;box-shadow:0 2px 6px #0003}
.brush-brightness::-moz-range-thumb{width:16px;height:16px;border:1px solid #00000012;border-radius:50%;background:#fff;box-shadow:0 2px 6px #0003}
.brush-color-swatches,.brush-color-recents{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:5px}
.brush-color-swatch{position:relative;display:grid;place-items:center;min-width:0;height:25px;padding:0;border:1px solid transparent;border-radius:8px;background:transparent;cursor:pointer}
.brush-color-swatch::before{content:'';display:block;width:18px;height:18px;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #00000012}
.brush-color-swatch[aria-pressed=true]{border-color:#68737d;background:#ffffff80}
.brush-color-fields{display:flex;align-items:end;gap:12px}.brush-color-hex-label{display:grid;gap:5px;flex:1;min-width:0;font-size:10px;color:#6b7280}
.brush-color-hex{box-sizing:border-box;width:100%;min-width:0;border:1px solid #00000012;border-radius:9px;background:#ffffff70;padding:8px 10px;color:#374151;font:12px ui-monospace,"Courier New",monospace;outline:0}
.brush-color-hex:focus{border-color:#7b879c}.brush-color-hex[aria-invalid=true]{border-color:#b4534c}
.brush-color-native-label{position:relative;display:flex;align-items:center;justify-content:center;min-height:34px;flex:1;padding:7px 10px;border-radius:10px;border:1px solid #0000000f;background:#ffffff80;color:#4b5563;font-size:11px;cursor:pointer;overflow:hidden}
.brush-color-native{position:absolute;inset:0;width:100%;height:100%;padding:0;border:0;opacity:0;cursor:pointer;touch-action:manipulation}
.brush-color-native-label:focus-within{outline:2px solid #7b879c;outline-offset:2px}
.brush-color-error{margin:0;font-size:10px;line-height:1.5;color:#9b453e}
@media(max-width:640px),(pointer:coarse),(pointer:none){.brush-color-panel{width:min(328px,calc(100vw - 24px));max-height:calc(100dvh - 116px - env(safe-area-inset-bottom,0px));border-radius:22px}.brush-color-heading{padding:10px 16px;font-size:13px}.brush-color-close{width:36px;height:36px}.brush-color-body{gap:12px;padding:14px 16px 16px}.brush-color-desktop{display:none!important}.brush-color-swatches{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.brush-color-swatch{height:42px;border-radius:11px}.brush-color-swatch::before{width:25px;height:25px}.brush-color-native-label{min-height:44px;font-size:13px}.brush-color-fields{display:block}.brush-color-native-label{width:100%;box-sizing:border-box}}
@media(prefers-reduced-transparency:reduce){.brush-color-panel{background:#f8f8f8;backdrop-filter:none}}
