/* Independent palette overlay; the specification behind it keeps its position. */
.stone-palette-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(980px,calc(100vw - 32px));height:min(800px,calc(100dvh - 32px));max-width:none;max-height:calc(100dvh - 32px);border:1px solid #cbdce6;border-radius:14px;background:#fff;color:#404041;box-shadow:0 18px 70px #1238;font:13px/1.5 Montserrat,Arial,sans-serif;overflow:hidden;box-sizing:border-box}
.stone-palette-dialog:not([open]){display:none}.stone-palette-dialog[open]{display:flex;flex-direction:column}
.stone-palette-dialog::backdrop{background:rgba(18,39,52,.55)}
.stone-palette-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 22px;border-bottom:1px solid #dce6ec;flex-shrink:0}
.stone-palette-header h2{margin:0;font:600 25px/1.2 Georgia,serif;color:#004b76}
.stone-palette-header button{flex-shrink:0;min-height:44px;padding:8px 12px;border:1px solid #b9cedc;border-radius:7px;background:white;color:#006ab6;font:600 12px/1.4 Montserrat,Arial,sans-serif;cursor:pointer;touch-action:manipulation}
.stone-palette-header button:focus-visible{outline:3px solid #ff9c59;outline-offset:2px}
.stone-palette-dialog .stone-palette-intro{margin:0;padding:12px 22px;font-size:12px;color:#536b7a;flex-shrink:0}
.stone-palette-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:4px 22px 22px;scrollbar-gutter:stable}
.stone-palette-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.stone-palette-grid article{min-width:0;padding:10px;border:1px solid #dce5eb;border-radius:8px;background:#fff}
.stone-palette-grid img,.stone-palette-grid .palette-swatch{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:4px}
.stone-palette-grid h3{margin:9px 0 3px;font:700 13px/1.4 Montserrat,Arial,sans-serif;color:#004b76}
.stone-palette-grid p{margin:0;font:400 11px/1.4 Montserrat,Arial,sans-serif;color:#536b7a}
.stone-palette-grid .palette-tier{display:flex;align-items:center;gap:5px;min-height:28px;margin:0 0 7px;font-weight:600;color:#004b76}
.palette-tier:before{content:'';width:5px;height:5px;border-radius:50%;background:#969696;flex-shrink:0}.palette-tier-cl:before{background:#d72d32}.palette-tier-premium:before{background:#006ab6}.palette-tier-both:before{width:12px;background:radial-gradient(circle at 2.5px 50%,#d72d32 2.5px,transparent 2.6px),radial-gradient(circle at 9.5px 50%,#006ab6 2.5px,transparent 2.6px)}
.palette-pending{display:grid;place-items:center;aspect-ratio:1;border-radius:4px;background:#f1f3f2;padding:10px;font-size:11px;text-align:center;color:#536b7a}.stone-palette-grid .palette-description{margin-top:6px}
.stone-palette-grid.palette-information{grid-template-columns:repeat(2,minmax(0,1fr))}.palette-information img{aspect-ratio:1.8;object-fit:cover}.stone-palette-grid .palette-choice-label{color:#004b76;font-weight:700;margin-bottom:8px}.palette-information .palette-description{font-size:12px;line-height:1.6}
@media(max-width:650px){.stone-palette-dialog{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);border-radius:10px}.stone-palette-header{padding:12px}.stone-palette-header h2{font-size:22px}.stone-palette-dialog .stone-palette-intro{padding:10px 12px}.stone-palette-scroll{padding:2px 12px 16px}.stone-palette-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
