:root{--bg: #0f1115;--panel: #1b1e27cc;--accent: #e63946;color-scheme:dark}*{box-sizing:border-box}html,body{margin:0;padding:0;height:100%;width:100%;background:var(--bg);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overscroll-behavior:none;touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}#app{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:12px}#bowl-wrap{position:relative;flex:1 1 auto;width:100%;min-height:0;display:flex;align-items:center;justify-content:center}#bowl{display:block;width:100%;height:100%;max-width:100%;max-height:100%;border-radius:min(6vw,48px);touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;box-shadow:0 10px 40px #00000080;cursor:crosshair}#controls{flex:0 0 auto;width:100%;max-width:900px;display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px;background:var(--panel);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:16px;padding:10px}#swatch-group{display:flex;align-items:center;gap:8px;min-width:0}#swatches{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scrollbar-width:thin;min-width:0;padding:2px}.swatch{flex:0 0 auto;width:28px;height:28px;border-radius:50%;border:2px solid rgba(255,255,255,.25);cursor:pointer;padding:0}.swatch.selected{border-color:#fff;transform:scale(1.15)}.swatch-divider{flex:0 0 auto;width:1px;align-self:stretch;margin:2px;background:#fff3}#btn-palette{flex:0 0 auto}.anchored-color-input{position:fixed;width:1px;height:1px;padding:0;margin:0;border:0;opacity:0;pointer-events:none}#tool-buttons,#action-buttons{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}button{font-size:14px;padding:8px 12px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:#262a36;color:#fff;cursor:pointer;white-space:nowrap}#tool-buttons button,#action-buttons button,#btn-palette{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;font-size:20px;line-height:1}#tool-buttons .icon-sm{font-size:16px}#tool-buttons .icon-lg{font-size:26px}button:active{transform:scale(.96)}.tool-btn.active{background:var(--accent);border-color:var(--accent)}button[aria-pressed=true]:not(.tool-btn){background:#2f8f5b;border-color:#2f8f5b}@media (max-width: 520px){#tool-buttons button,#action-buttons button,#btn-palette{width:38px;height:38px;font-size:17px}#tool-buttons .icon-sm{font-size:14px}#tool-buttons .icon-lg{font-size:22px}}
