.sb-v13 .sb-charm-editor{margin-top:14px}
.sb-v13 .sb-charm-editor-prompt{font-size:12px;color:var(--muted);margin:0 0 3px}
.sb-v13 .sb-charm-editor-open{background:transparent;border:0;border-bottom:1px solid currentColor;padding:0 0 4px;color:var(--ink);display:inline-flex;align-items:center;gap:18px;font-size:12px;line-height:1.55;min-height:0;border-radius:0}
.sb-v13 .sb-charm-editor-status{font-size:10px;line-height:1.6;color:var(--muted);margin:7px 0 0}
.sb-v13 .sb-charm-color-dialog{box-sizing:border-box;background:var(--paper);color:var(--ink);width:760px;max-width:calc(100vw - 32px);max-height:88dvh;padding:0;border:1px solid var(--line);border-radius:5px;overflow:hidden;font:14px/1.55 var(--sans);margin:auto}
.sb-v13 .sb-charm-color-dialog[open]{display:flex;flex-direction:column}
.sb-v13 .sb-charm-color-dialog::backdrop{background:#142b2370}
.sb-v13 .sb-charm-dialog-head{padding:25px 28px 20px;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);flex:none}
.sb-v13 .sb-charm-dialog-head h2{font-family:var(--sans);font-size:29px;font-weight:600;letter-spacing:-.045em;line-height:1.1;margin:0}
.sb-v13 .sb-charm-dialog-head p{font-size:12px;color:var(--muted);margin:10px 0 0;line-height:1.6}
.sb-v13 .sb-charm-dialog-close{font:26px/1 var(--sans);background:transparent;padding:0;min-width:40px;min-height:40px;flex:none;display:grid;place-items:center;color:var(--ink);border:0}
.sb-v13 .sb-charm-dialog-body{padding:22px 28px 25px;overflow:auto;overscroll-behavior:contain;min-height:0}
.sb-v13 .sb-charm-selection-head,.sb-v13 .sb-charm-palette-head{display:flex;align-items:center;justify-content:space-between;gap:15px}
.sb-v13 .sb-charm-selection-head strong,.sb-v13 .sb-charm-palette-head strong{font-weight:600;font-size:13px;line-height:1.5}
.sb-v13 .sb-charm-selection-head>div{display:flex;align-items:center;gap:20px}
.sb-v13 :is(.sb-charm-selection-head,.sb-charm-palette-head) button{background:transparent;border:0;padding:5px 0;min-height:34px;text-decoration:underline;font-size:12px;color:var(--ink)}
.sb-v13 .sb-charm-dialog-help{font-size:12px;color:var(--muted);margin:11px 0 18px;line-height:1.6}
.sb-v13 .sb-charm-selection-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.sb-v13 .sb-charm-select-tile{position:relative;min-width:0;min-height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;background:#eeeee4;border:2px solid transparent;border-radius:4px;padding:12px 8px;color:var(--ink)}
.sb-v13 .sb-charm-select-tile[aria-pressed=true]{border-color:var(--ink);background:#e2ead6}
.sb-v13 .sb-charm-select-tile .sb-charm-select-icon{display:block;flex:none;width:62px;height:62px;background-repeat:no-repeat;background-size:600% 500%}
.sb-v13 .sb-charm-select-tile small{font-size:11px;line-height:1.5}
.sb-v13 .sb-charm-selected-mark{position:absolute;right:8px;top:5px;font-size:12px;font-weight:600}
.sb-v13 .sb-charm-palette-panel{background:#efd3c4;padding:20px;margin-top:20px}
.sb-v13 .sb-charm-palette-head{align-items:flex-start}
.sb-v13 .sb-charm-palette-head button{padding-top:0;min-height:26px;flex:none}
.sb-v13 .sb-charm-editor-palette{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.sb-v13 .sb-charm-editor-palette button{background:var(--swatch);border:4px solid #efd3c4;outline:1px solid #243c3229;border-radius:50%;width:38px;height:38px;min-width:38px;min-height:38px;padding:0;flex:none}
.sb-v13 .sb-charm-editor-palette button[aria-pressed=true]{outline:2px solid var(--ink);outline-offset:2px}
.sb-v13 .sb-charm-palette-hint{font-size:11px;color:var(--muted);line-height:1.6;min-height:18px;margin:13px 0 0}
.sb-v13 .sb-charm-dialog-footer{flex:none;display:flex;gap:20px;align-items:center;justify-content:space-between;padding:18px 28px;border-top:1px solid var(--line);background:var(--paper)}
.sb-v13 .sb-charm-dialog-footer p{max-width:340px;font-size:10px;color:var(--muted);line-height:1.6;margin:0}
.sb-v13 .sb-charm-dialog-footer>div{display:flex;gap:9px;flex:none}
.sb-v13 .sb-charm-dialog-footer button{font-size:12px;min-height:44px;padding:11px 16px;border:1px solid var(--line);border-radius:3px;background:transparent;color:var(--ink)}
.sb-v13 .sb-charm-dialog-footer button.sb-charm-save{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.sb-v13 .sb-charm-color-dialog button:disabled{opacity:.4;cursor:not-allowed}
.sb-v13 .sb-charm-color-dialog button:focus-visible,.sb-v13 .sb-charm-editor-open:focus-visible{outline:2px solid var(--ink);outline-offset:4px}
@media(min-width:601px) and (max-height:800px){.sb-v13 .sb-charm-dialog-head{padding:18px 24px 15px}.sb-v13 .sb-charm-dialog-head h2{font-size:26px}.sb-v13 .sb-charm-dialog-head p{margin-top:8px;font-size:11px}.sb-v13 .sb-charm-dialog-body{padding:16px 24px}.sb-v13 .sb-charm-dialog-help{margin:8px 0 14px}.sb-v13 .sb-charm-select-tile{min-height:90px;padding:8px}.sb-v13 .sb-charm-select-tile .sb-charm-select-icon{width:48px;height:48px}.sb-v13 .sb-charm-palette-panel{padding:16px;margin-top:16px}.sb-v13 .sb-charm-editor-palette{margin-top:12px}.sb-v13 .sb-charm-dialog-footer{padding:14px 24px}}
@media(max-width:600px){.sb-v13 .sb-charm-color-dialog{max-width:calc(100vw - 20px);width:100%;max-height:90dvh}.sb-v13 .sb-charm-dialog-head{padding:20px 18px 15px;gap:12px}.sb-v13 .sb-charm-dialog-head h2{font-size:25px}.sb-v13 .sb-charm-dialog-body{padding:17px 18px 20px}.sb-v13 .sb-charm-selection-head strong{font-size:12px}.sb-v13 .sb-charm-selection-head>div{gap:16px}.sb-v13 .sb-charm-selection-head button{min-height:44px}.sb-v13 .sb-charm-selection-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.sb-v13 .sb-charm-select-tile{min-height:108px}.sb-v13 .sb-charm-palette-panel{padding:16px;margin-top:16px}.sb-v13 .sb-charm-editor-palette{gap:9px}.sb-v13 .sb-charm-editor-palette button{width:40px;height:40px;min-width:40px;min-height:40px}.sb-v13 .sb-charm-palette-head strong{font-size:12px}.sb-v13 .sb-charm-dialog-footer{padding:14px 18px;display:block}.sb-v13 .sb-charm-dialog-footer>div{justify-content:flex-end;margin-top:12px}.sb-v13 .sb-charm-dialog-footer p{max-width:none}}
