#scratchpad .sp-dot{position:fixed;z-index:15;width:48px;height:48px;border-radius:50%;padding:0;font-size:26px;box-shadow:0 3px 16px #0004;touch-action:none;background:var(--theme-accent-light,#fff);color:var(--text,#172b4d)}
#scratchpad .sp-window{position:fixed;z-index:15;display:flex;flex-direction:column;overflow:hidden;border:1px solid #94a3b8;border-radius:14px;background:var(--card,#fff);color:var(--text,#172b4d);box-shadow:0 12px 45px #0004;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
#scratchpad [hidden]{display:none!important}#scratchpad .sp-title{display:flex;align-items:center;gap:8px;padding:8px 12px;cursor:move;touch-action:none}#scratchpad .sp-title strong{flex:1}#scratchpad button,#scratchpad select{font-size:13px;padding:5px 8px;min-height:32px}#scratchpad .sp-tools{display:flex;flex-wrap:wrap;gap:5px;padding:6px 10px;border-bottom:1px solid #cbd5e1;max-height:45%;overflow:auto}#scratchpad label{display:flex;align-items:center;gap:3px;font-size:12px}#scratchpad canvas{display:block;flex:1;min-height:0;width:100%;touch-action:none;cursor:crosshair}#scratchpad small{padding:4px 30px 4px 10px;font-size:11px;background:#fff;color:#475569}#scratchpad .sp-resize{position:absolute;right:0;bottom:0;cursor:nwse-resize;touch-action:none;padding:0;width:26px;min-height:26px}#scratchpad :focus-visible{outline:3px solid #2563eb;outline-offset:2px}

#scratchpad .sp-tools label{white-space:nowrap;flex-shrink:0}#scratchpad select{width:auto;max-width:110px;margin:0}#scratchpad .sp-tools button{flex-shrink:0}

#scratchpad .sp-tools{gap:4px;overflow:visible;max-height:none}#scratchpad .sp-icon{width:40px;height:40px;min-height:40px;padding:0;border-radius:9px;font-size:25px;line-height:1;display:grid;place-items:center}#scratchpad .sp-icon span{pointer-events:none}#scratchpad button[aria-pressed="true"]{background:#e5edf8;box-shadow:inset 0 0 0 2px #46658c;color:#172b4d}#scratchpad .sp-palette{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:6px 12px;border-bottom:1px solid #cbd5e1;background:#f5f7fa}#scratchpad .sp-colors,#scratchpad .sp-widths{display:flex;gap:4px}#scratchpad .sp-palette button{width:36px;height:36px;padding:5px;display:grid;place-items:center;border-radius:50%;background:white}#scratchpad .sp-palette span{pointer-events:none;display:block;border-radius:50%}#scratchpad .sp-colors span{width:22px;height:22px;background:var(--swatch)}#scratchpad .sp-widths span{width:var(--nib);height:var(--nib);background:#172b4d}

#scratchpad .sp-icon svg{display:block;width:23px;height:23px;pointer-events:none}#scratchpad .sp-icon[data-action="clear"]{margin-left:6px;color:#b33d46;background:#fff5f5;border-color:#e8c5c9}#scratchpad .sp-icon[data-action="clear"]:hover{background:#ffe4e6}
