.c3ds-catalog:not(:empty){margin-block:1rem}
.c3ds-color-dialog{box-sizing:border-box;width:min(960px,96vw);max-width:96vw;max-height:90dvh;padding:clamp(16px,3vw,32px);background:#fffcf8;color:#322720;border:1px solid #ded3c8;border-radius:16px;overflow:auto;font:inherit}
.c3ds-color-dialog::backdrop{background:rgb(32 24 18 / .55)}
.c3ds-color-dialog header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}
.c3ds-color-dialog h2{font-size:clamp(22px,3vw,30px);margin:0}
.c3ds-color-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,2fr);gap:clamp(16px,3vw,32px)}
.c3ds-color-stage{min-width:0;height:clamp(260px,50vh,480px);border-radius:10px;overflow:hidden}
.c3ds-color-stage canvas{display:block;width:100%;height:100%;touch-action:none}
.c3ds-color-dialog fieldset{border:0;padding:0;margin:0 0 1.2rem}
.c3ds-color-dialog legend{display:flex;gap:.55rem;align-items:center;font-weight:600;font-size:16px;padding:0;margin-bottom:.6rem}
.c3ds-color-dialog legend i{width:18px;height:18px;border-radius:50%;border:1px solid #ada295}
.c3ds-color-swatches{display:flex;gap:8px;flex-wrap:wrap}
.c3ds-color-swatches button{box-sizing:border-box;width:36px;height:36px;min-height:0;border:2px solid white;outline:1px solid #988d83;border-radius:50%;padding:0}
.c3ds-color-swatches button[aria-pressed=true]{outline:3px solid #9c4d27}
.c3ds-color-dialog button:focus-visible{outline:3px solid #1758aa;outline-offset:3px}
.c3ds-color-dialog [role=status]:empty{display:none}
@media(max-width:660px){.c3ds-color-layout{grid-template-columns:1fr}.c3ds-color-stage{height:34dvh}}
.c3ds-color-stage{background:#f5f0e9}
.c3ds-color-stage canvas{cursor:grab}
.c3ds-color-stage canvas:active{cursor:grabbing}
