:where(dialog.sc-dialog){padding:0;border:none;border-radius:var(--radius, 14px);background:var(--panel, #ffffff);color:var(--text, #1f2430);width:min(92vw,calc(var(--sc-cols, 18) * 49px + 38px));min-width:min(92vw,360px);max-width:92vw;max-height:90dvh;box-shadow:0 24px 60px #00000047;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;overflow:hidden}dialog.sc-dialog[open]{display:flex;flex-direction:column}.sc-dialog::backdrop{background:#00000080;backdrop-filter:blur(3px)}.sc-header{display:flex;align-items:center;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line, #e6e8ef);flex:0 0 auto}.sc-title{margin:0;font-size:1.125rem;font-weight:700;flex:1}.sc-close{appearance:none;border:1px solid var(--line, #e6e8ef);background:transparent;color:inherit;border-radius:10px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.sc-close svg{width:18px;height:18px}.sc-body{padding:16px;display:flex;flex-direction:column;gap:14px;overflow-y:auto;flex:1;min-height:0}.sc-grid{display:grid;grid-template-columns:repeat(var(--sc-cols, 18),minmax(0,56px));justify-content:center;gap:6px}.sc-swatch{appearance:none;border:none;padding:0;aspect-ratio:1;min-width:0;border-radius:6px;cursor:pointer;box-shadow:inset 0 0 0 1px #00000038;transition:transform .15s ease}.sc-swatch:hover{transform:scale(1.15);box-shadow:inset 0 0 0 1px #00000038,0 4px 8px #00000026;z-index:1}.sc-swatch:active{transform:scale(1.05)}.sc-swatch[aria-pressed=true]{box-shadow:inset 0 0 0 2px var(--panel, #ffffff),0 0 0 2px var(--accent, #3b82f6)}.sc-swatch:focus-visible{outline:2px solid var(--accent, #3b82f6);outline-offset:2px;z-index:2}.sc-readout{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:12px;padding-top:12px;border-top:1px solid var(--line, #e6e8ef)}.sc-chip{width:44px;height:28px;border-radius:6px;box-shadow:inset 0 0 0 1px #00000038}.sc-lines{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.8125rem;color:var(--muted, #5a6072);font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,monospace}.sc-name{font-weight:700;color:var(--text, #1f2430);font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.sc-footer{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid var(--line, #e6e8ef);flex:0 0 auto}.sc-btn{appearance:none;border:1px solid var(--line, #e6e8ef);background:var(--panel, #ffffff);color:var(--text, #1f2430);border-radius:10px;padding:8px 14px;font-weight:600;font-size:.875rem;cursor:pointer}.sc-btn:hover{background:#0000000a}.sc-btn:focus-visible{outline:2px solid var(--accent, #3b82f6);outline-offset:2px}.sc-random{margin-right:auto;display:inline-flex;align-items:center;gap:6px}.sc-random span{display:inline-block;transition:transform .2s ease}.sc-random:hover span{transform:rotate(-12deg) scale(1.15)}.sc-field{display:inline-flex;align-items:center;gap:4px;vertical-align:middle;appearance:none;border:none;background:none;color:inherit;font:inherit;padding:0;cursor:pointer;min-height:24px}.sc-field:focus-visible{outline:2px solid var(--accent, #3b82f6);outline-offset:2px;border-radius:4px}.sc-field-name{white-space:nowrap}.sc-field-swatch{width:16px;height:16px;border-radius:4px;box-shadow:inset 0 0 0 1px #00000059;flex:0 0 auto}.sc-field-swatch.is-extra,.sc-swatch-extra,.sc-chip-extra{background:conic-gradient(red,#ff8000,#ff0,#0f0,#0ff,#00f,#f0f,red)}.sc-announce{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}:where(html[data-theme=dark]) .sc-dialog{--panel: #1f2937;--text: #f3f4f6;--muted: #9ca3af;--line: #374151}:where(html[data-theme=dark]) .sc-swatch,:where(html[data-theme=dark]) .sc-chip{box-shadow:inset 0 0 0 1px #ffffff47}:where(html[data-theme=dark]) .sc-btn:hover{background:#ffffff14}@media(pointer:coarse){.sc-btn,.sc-close{min-height:44px;min-width:44px}.sc-swatch:hover{transform:none}}@media(prefers-contrast:high){.sc-dialog{border:2px solid currentColor}.sc-swatch{box-shadow:inset 0 0 0 2px currentColor}.sc-btn,.sc-close{border-width:2px}}@media(prefers-reduced-motion:reduce){.sc-swatch,.sc-random span{transition:none}.sc-swatch:hover,.sc-random:hover span{transform:none}}
