
/* Precision stone layout editor */
.tooth-mode-controls button[aria-pressed="true"]{
  background:#c9ad70;color:#17130b;border-color:#e6cd91;
  box-shadow:0 0 0 1px rgba(230,205,145,.34)
}
.stone-editor-hint{margin:6px 0 12px;color:#aaa396;font-size:.78rem;line-height:1.5}
.tooth-arch-picker .arch-tooth.stone-target .tooth-crown{
  fill:#d3dce5;stroke:#54718c;stroke-width:2.6;stroke-dasharray:2 1
}
.tooth-arch-picker .arch-tooth.stone-target[aria-pressed="true"] .tooth-crown{
  fill:#b6d2e6;stroke:#315f7b;stroke-width:3
}
.grill-stone-studio{
  margin:20px 0 22px;padding:20px;border:1px solid rgba(201,178,118,.5);
  border-radius:13px;background:linear-gradient(155deg,#1c1b18,#111110 75%)
}
.grill-stone-studio h3{margin:0 0 8px;color:#f3e7ca;font-size:1.18rem}
.grill-stone-studio>.grill-studio-panel__lead{max-width:900px}
.stone-target-section{
  margin:15px 0;padding:14px;background:#171613;border:1px solid #50432e;border-radius:8px
}
.stone-target-heading{display:flex;justify-content:space-between;gap:10px;align-items:baseline;margin-bottom:10px}
.stone-target-heading strong{color:#ead8ae;font-size:.88rem}
.stone-target-heading span{color:#9b9488;font-size:.72rem}
.stone-target-chips{display:flex;gap:7px;flex-wrap:wrap;min-height:34px}
.stone-target-chip{
  min-width:42px;padding:8px 10px;border:1px solid #5e543f;border-radius:6px;
  background:#22201b;color:#c9c1b4;font-size:.78rem;font-weight:800;cursor:pointer
}
.stone-target-chip[aria-pressed="true"]{
  color:#15120c;background:#d9bd7b;border-color:#f3dc9f;box-shadow:0 0 0 1px rgba(243,220,159,.32)
}
.stone-empty{color:#8f887c;font-size:.78rem}
.stone-layout-toolbar{
  display:grid;grid-template-columns:minmax(0,1.2fr) minmax(180px,.8fr);gap:14px;align-items:end
}
.stone-shape-choice{display:flex;gap:7px;align-items:center;flex-wrap:wrap}
.stone-toolbar-label{width:100%;color:#b9ae98;font-size:.74rem;font-weight:700}
.stone-shape-choice button{
  display:flex;align-items:center;gap:8px;min-width:105px;padding:9px 12px;
  border:1px solid #63553b;border-radius:6px;background:#1d1b17;color:#d8d0c2;
  font-size:.78rem;font-weight:700;cursor:pointer
}
.stone-shape-choice button[aria-pressed="true"]{
  background:#d0b578;color:#17130b;border-color:#edd9a4
}
.shape-symbol{display:inline-block;width:13px;height:13px;border:2px solid currentColor}
.shape-symbol--round{border-radius:50%}
.shape-symbol--square{border-radius:2px}
.stone-tooth-editor-select label{display:block;margin:0 0 5px;color:#b9ae98;font-size:.74rem;font-weight:700}
.stone-tooth-editor-select select{
  width:100%;min-height:39px;padding:8px 10px;border:1px solid #71664e;
  border-radius:6px;background:#1d1d1d;color:#fff
}
.stone-editor-actions{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0}
.stone-editor-actions button{
  padding:9px 12px;border:1px solid #716144;border-radius:6px;background:#25221c;
  color:#e1d1ac;font-size:.77rem;font-weight:700;cursor:pointer
}
.stone-editor-actions button:disabled{opacity:.38;cursor:not-allowed}
.stone-editor-actions button:hover:not(:disabled){border-color:#e1c27c;background:#30291c;color:#fff1c6}
.stone-placement-editor{
  padding:15px;border:1px solid #806b43;border-radius:10px;
  background:radial-gradient(ellipse at center,#27241e,#171614 75%)
}
.stone-placement-editor[hidden]{display:none!important}
.stone-placement-editor__head{
  display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:12px
}
.stone-placement-editor__head strong{color:#f0dfba;font-size:.88rem}
.stone-placement-editor__head span{color:#a59b89;font-size:.72rem}
.stone-placement-grid{
  --slot-size:clamp(39px,7vw,58px);
  display:grid;grid-template-columns:repeat(5,var(--slot-size));
  gap:clamp(7px,1.8vw,13px);justify-content:center;
  width:max-content;max-width:100%;margin:0 auto;padding:13px;
  border:1px solid rgba(217,189,123,.24);border-radius:9px;
  background:linear-gradient(145deg,rgba(240,232,211,.06),rgba(0,0,0,.22))
}
.stone-slot{
  position:relative;display:grid;place-items:center;width:var(--slot-size);height:var(--slot-size);
  border:1px dashed rgba(222,203,164,.3);border-radius:50%;
  background:rgba(240,231,210,.045);color:#fff2d2;cursor:crosshair;
  transition:background .12s ease,border-color .12s ease,transform .12s ease
}
.stone-slot[data-stone-shape="square"]{border-radius:5px}
.stone-slot:hover,.stone-slot:focus-visible{
  background:rgba(215,184,119,.18);border-color:#e5c77e;outline:2px solid #d7b76f;outline-offset:2px
}
.stone-slot.is-occupied{
  border:1px solid rgba(248,244,231,.8);
  background:radial-gradient(circle at 31% 25%,#fff,#b9d1e0 35%,#52758f 70%,#162b3b);
  box-shadow:0 0 12px rgba(184,214,234,.23),inset 0 1px 5px rgba(255,255,255,.72);
  cursor:grab
}
.stone-slot[data-stone-shape="square"].is-occupied{
  border-radius:5px;
  background:linear-gradient(140deg,#fff9e8 0%,#dcecf5 28%,#718ba3 63%,#243a4d 100%);
}
.stone-slot.is-moving{
  outline:3px solid #e5c77e;outline-offset:3px;transform:scale(1.08)
}
.stone-slot__gem{
  width:42%;height:42%;display:block;transform:rotate(45deg);
  border:1px solid rgba(255,255,255,.86);
  background:linear-gradient(135deg,#fff 0%,#d9edf9 42%,#7997ae 72%,#ecf7ff 100%);
  box-shadow:0 0 6px rgba(255,255,255,.8)
}
.stone-slot[data-stone-shape="square"] .stone-slot__gem{border-radius:1px}
.stone-slot:not(.is-occupied) .stone-slot__gem{display:none}
.stone-layout-status{
  min-height:1.4em;margin:11px 0 0;color:#d7c28d;font-size:.78rem;line-height:1.5;text-align:center
}
.stone-capacity-notice{
  min-height:1.4em;margin:10px 0 0;color:#a9a193;font-size:.78rem;line-height:1.5
}
.stone-capacity-notice.is-warning{color:#f0b59a}
@media(max-width:620px){
  .grill-stone-studio{padding:13px}
  .stone-layout-toolbar{grid-template-columns:1fr}
  .stone-target-heading{display:block}
  .stone-target-heading span{display:block;margin-top:4px}
  .stone-placement-editor{padding:10px 6px}
  .stone-placement-grid{--slot-size:clamp(38px,14vw,50px);gap:6px;padding:8px}
  .stone-target-chip{min-width:39px;padding:8px}
}

.tooth-arch-picker .tooth-groove{
  fill:none;stroke:#b9ad99;stroke-width:1.35;stroke-linecap:round;pointer-events:none
}
.tooth-arch-picker .arch-tooth[data-stone-target="true"] .tooth-crown{
  fill:#e7d4a2;stroke:#9b793c;stroke-width:2.8;stroke-dasharray:2.2 1.2
}
.tooth-arch-picker .arch-tooth[data-stone-target="true"][aria-pressed="true"] .tooth-crown{
  fill:#d9b96e;stroke:#785722;stroke-width:2.8
}

.stone-slot.is-disabled{
  opacity:.16;cursor:not-allowed;pointer-events:auto;
  border-color:rgba(150,140,120,.12);background:rgba(0,0,0,.12)
}
.stone-slot.is-disabled:hover{outline:none;transform:none;border-color:rgba(150,140,120,.12)}
.stone-slot:disabled .stone-slot__gem{display:none}

/* Locked visual direction: luxury mouth-first studio */
:root{--sprinkle-gold:#d6b36b;--sprinkle-teal:#22c6c8;--sprinkle-ink:#07090b}
.grill-studio-panel{
  border-color:rgba(34,198,200,.25);
  background:linear-gradient(155deg,#11181a 0%,#090c0e 66%,#11100d 100%);
}
.grill-studio-panel__eyebrow{color:var(--sprinkle-teal)}
.grill-studio-panel__eyebrow span{border-color:var(--sprinkle-teal);color:var(--sprinkle-teal)}
.grill-studio-panel h3{color:#f8edcf;font-size:1.3rem;letter-spacing:.015em}
.mouth-preview-kicker{
  display:flex;align-items:center;gap:8px;margin:0 0 9px;
  color:#8ce3df;font-size:.68rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase
}
.mouth-preview-kicker__dot{
  width:7px;height:7px;border-radius:50%;background:var(--sprinkle-teal);
  box-shadow:0 0 9px rgba(34,198,200,.8)
}
.mouth-preview-kicker__tag{
  margin-left:auto;padding:4px 7px;border:1px solid rgba(214,179,107,.38);
  border-radius:4px;color:#e6ca8f;font-size:.6rem;letter-spacing:.12em
}
.grill-3d-viewport--mouth{
  height:520px;min-height:420px;border-radius:12px;
  border:1px solid rgba(34,198,200,.25);
  background:radial-gradient(ellipse at 50% 48%,#182326 0%,#0b1114 57%,#07090b 100%);
  box-shadow:inset 0 0 55px rgba(0,0,0,.72),0 16px 34px rgba(0,0,0,.38);
  cursor:crosshair;touch-action:pan-y
}
.grill-3d-viewport--mouth canvas{cursor:crosshair}
.grill-3d-viewport--mouth canvas:active{cursor:crosshair}
.grill-materials,.grill-stone-studio{
  border-color:rgba(34,198,200,.23);
  background:linear-gradient(140deg,#111719,#0a0d0f 75%)
}
.grill-materials__title strong,.grill-stone-studio h3{color:#f1dfb9}
.grill-materials__title span{color:#7bbfc0}
.grill-selection-summary{border-color:rgba(34,198,200,.24);background:#0c1416}
.grill-arch-card{border-color:rgba(34,198,200,.38)}
.grill-metal-swatch[aria-pressed="true"]{
  border-color:var(--sprinkle-teal);
  box-shadow:0 0 0 1px var(--sprinkle-teal),0 0 18px rgba(34,198,200,.11)
}
.grill-metal-swatch__chip{box-shadow:inset 0 1px 3px rgba(255,255,255,.5),0 0 8px rgba(34,198,200,.10)}
.grill-view-controls{display:none!important}
.grill-config-controls{border-top-color:rgba(34,198,200,.2)}
.grill-stone-studio{box-shadow:0 12px 30px rgba(0,0,0,.2)}
.stone-tooth-profile{
  margin:14px 0 12px;padding:13px;border:1px solid rgba(34,198,200,.23);
  border-radius:8px;background:rgba(4,9,11,.54)
}
.stone-tooth-profile__heading{
  margin-bottom:10px;color:#ead8ae;font-size:.82rem;font-weight:800;letter-spacing:.03em
}
.stone-profile-controls{
  display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px
}
.stone-profile-controls label{
  display:block;margin:0 0 5px;color:#bdb4a3;font-size:.74rem;font-weight:700
}
.stone-profile-controls select{
  width:100%;min-height:38px;padding:8px 10px;border:1px solid #6e6655;
  border-radius:6px;background:#151b1d;color:#fff
}
.stone-color-row{display:flex;align-items:center;gap:9px;min-height:38px}
.stone-color-row input[type="color"]{
  width:44px;height:34px;padding:2px;border:1px solid #756747;
  border-radius:6px;background:#171a1a;cursor:pointer
}
.stone-color-row span{color:#e2d7c1;font-size:.76rem}
.stone-color-swatches{display:flex;flex-wrap:wrap;gap:9px;margin:11px 0 0}
.stone-color-swatches button{
  width:29px;height:29px;border:2px solid rgba(255,255,255,.28);
  border-radius:50%;background:var(--swatch);cursor:pointer;
  box-shadow:0 2px 7px rgba(0,0,0,.4);transition:transform .12s,border-color .12s
}
.stone-color-swatches button[aria-pressed="true"]{
  border-color:#fff;outline:2px solid var(--sprinkle-teal);outline-offset:2px;transform:scale(1.08)
}
.stone-profile-hint{margin:9px 0 0;color:#99998f;font-size:.72rem;line-height:1.5}
@media(max-width:900px){.grill-3d-viewport--mouth{height:470px;min-height:390px}}
@media(max-width:620px){
  .grill-3d-viewport--mouth{height:390px;min-height:340px}
  .stone-profile-controls{grid-template-columns:1fr}
  .mouth-preview-kicker{font-size:.62rem}
}

/* Direct tooth switching: no select-menu rebuild while editing a set */
.stone-target-item{display:flex;align-items:stretch;gap:4px}
.stone-target-chip{min-width:77px}
.stone-target-chip.is-active{
  border-color:var(--sprinkle-teal);background:#17383a;color:#e7ffff;
  box-shadow:0 0 0 1px rgba(34,198,200,.55),0 0 12px rgba(34,198,200,.15)
}
.stone-target-remove{
  width:27px;min-width:27px;border:1px solid rgba(221,120,120,.35);
  border-radius:5px;background:#211719;color:#e5a6a6;font-size:1.1rem;
  line-height:1;cursor:pointer
}
.stone-target-remove:hover{border-color:#ea9999;background:#3a2024;color:#fff}
.stone-edit-tooth-chips{display:flex;gap:6px;flex-wrap:wrap}
.stone-edit-tooth-chip{
  min-width:40px;padding:8px 11px;border:1px solid #60553f;border-radius:6px;
  background:#1e1d19;color:#cfc7b8;font-size:.78rem;font-weight:800;cursor:pointer
}
.stone-edit-tooth-chip.is-active,.stone-edit-tooth-chip[aria-pressed="true"]{
  border-color:var(--sprinkle-teal);background:#17383a;color:#f0ffff;
  box-shadow:0 0 0 1px rgba(34,198,200,.45)
}
.stone-profile-label{display:block;margin:0 0 6px;color:#bdb4a3;font-size:.74rem;font-weight:700}
.stone-material-choices{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px
}
.stone-material-choices button{
  display:flex;align-items:center;gap:8px;min-height:52px;padding:8px 9px;
  border:1px solid #4d514a;border-radius:7px;background:#181d1d;color:#ddd5c6;
  font-size:.7rem;font-weight:700;text-align:left;line-height:1.25;cursor:pointer
}
.stone-material-choices button[aria-pressed="true"]{
  border-color:var(--sprinkle-teal);background:#173235;color:#f4ffff;
  box-shadow:0 0 0 1px rgba(34,198,200,.42),0 0 12px rgba(34,198,200,.12)
}
.stone-material-choices button:disabled{opacity:.38;cursor:not-allowed}
.stone-material-icon{
  display:grid;place-items:center;flex:0 0 25px;height:25px;border-radius:50%;
  color:#111;background:linear-gradient(145deg,#fff,#c3d8e6 50%,#6d8798);
  box-shadow:0 0 9px rgba(210,230,245,.15);font-size:.94rem
}
@media(max-width:620px){
  .stone-target-item{flex:0 0 auto}
  .stone-material-choices button{min-height:50px}
  .stone-edit-tooth-chip{min-width:38px;padding:8px 9px}
}

/* Enamel finish studio */
.grill-enamel-studio{
  margin:18px 0 22px;padding:19px;
  border:1px solid rgba(34,198,200,.24);border-radius:12px;
  background:linear-gradient(150deg,#101718 0%,#090d0f 72%,#13110d 100%);
  box-shadow:0 12px 30px rgba(0,0,0,.22)
}
.grill-enamel-studio h3{margin:7px 0 9px;color:#f2e4c3;font-size:1.15rem}
.grill-enamel-studio .grill-studio-panel__lead{max-width:900px;color:#c8c0b4;font-size:.88rem;line-height:1.6}
.enamel-target-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin:15px 0 9px}
.enamel-target-heading strong{color:#f0dfbb;font-size:.83rem}
.enamel-target-heading span{color:#9a9b92;font-size:.72rem}
.enamel-target-teeth{display:flex;flex-wrap:wrap;gap:7px}
.enamel-target-item{display:flex;align-items:stretch;gap:4px}
.enamel-target-chip{
  min-width:78px;padding:9px 11px;border:1px solid #65573d;border-radius:6px;
  background:#1c1c18;color:#d8cba9;font-size:.76rem;font-weight:800;cursor:pointer
}
.enamel-target-chip[aria-pressed="true"]{border-color:rgba(34,198,200,.75)}
.enamel-target-chip.is-active{
  border-color:var(--sprinkle-teal);background:#173638;color:#f2ffff;
  box-shadow:0 0 0 1px rgba(34,198,200,.42)
}
.enamel-target-remove{
  width:27px;min-width:27px;border:1px solid rgba(221,120,120,.35);
  border-radius:5px;background:#211719;color:#e5a6a6;font-size:1.1rem;
  line-height:1;cursor:pointer
}
.enamel-active-editor{
  margin-top:14px;padding:13px;border:1px solid rgba(214,179,107,.22);
  border-radius:8px;background:rgba(5,9,10,.62)
}
.enamel-active-editor__title{color:#c8c0b4;font-size:.79rem;font-weight:700}
.enamel-active-editor__title strong{color:#80d6d4}
.enamel-color-swatches{display:flex;flex-wrap:wrap;gap:11px;margin:12px 0 10px}
.enamel-color-swatches button{
  width:33px;height:33px;border:2px solid rgba(255,255,255,.32);
  border-radius:50%;background:var(--enamel-swatch);cursor:pointer;
  box-shadow:inset 0 1px 3px rgba(255,255,255,.45),0 2px 7px rgba(0,0,0,.35)
}
.enamel-color-swatches button[aria-pressed="true"]{
  outline:2px solid var(--sprinkle-teal);outline-offset:3px;border-color:#fff;transform:scale(1.06)
}
.enamel-color-swatches button:disabled{opacity:.35;cursor:not-allowed}
.enamel-custom-color{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.enamel-custom-color label{color:#a9a89e;font-size:.74rem;font-weight:700}
.enamel-custom-color input[type="color"]{
  width:44px;height:32px;padding:2px;border:1px solid #776847;border-radius:6px;
  background:#151a1a;cursor:pointer
}
.enamel-custom-color input:disabled{opacity:.35;cursor:not-allowed}
.custom-artwork-request{
  margin-top:16px;padding:15px;border:1px solid rgba(214,179,107,.35);
  border-radius:9px;background:linear-gradient(135deg,rgba(214,179,107,.08),rgba(34,198,200,.035))
}
.custom-artwork-request h4{margin:0 0 7px;color:#f2dfb1;font-size:.9rem}
.custom-artwork-request p{margin:0 0 12px;color:#c3bcae;font-size:.79rem;line-height:1.55}
.custom-artwork-request .cta-btn--outline{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid rgba(34,198,200,.55);background:#111c1e;color:#d9ffff;
  text-decoration:none;padding:10px 14px;border-radius:7px;font-weight:800;font-size:.78rem
}
.custom-artwork-request .cta-btn--outline:hover{border-color:var(--sprinkle-teal);background:#183235}
@media(max-width:620px){
  .grill-enamel-studio{padding:14px}
  .enamel-target-chip{min-width:70px;padding:8px 9px}
  .custom-artwork-request .cta-btn--outline{width:100%}
}

/* Close-up open articulator view inspired by the supplied dental stone model */
.grill-3d-viewport--cast{
  height:620px;min-height:520px;border-radius:12px;
  border:1px solid rgba(34,198,200,.26);
  background:radial-gradient(ellipse at 50% 47%,#343a3b 0%,#171d20 67%,#0b1012 100%);
  box-shadow:inset 0 0 42px rgba(0,0,0,.42),0 16px 34px rgba(0,0,0,.32)
}
.grill-3d-viewport--cast canvas{cursor:crosshair}
.grill-3d-viewport--cast canvas:active{cursor:crosshair}
@media(max-width:900px){.grill-3d-viewport--cast{height:540px;min-height:460px}}
@media(max-width:620px){.grill-3d-viewport--cast{height:450px;min-height:390px}}

/* Mr. Sprinkle smile viewer v2 — a close-up product mouth, not a dental cast */
.grill-3d-viewport--smile{
  height:640px;min-height:540px;
  overflow:hidden;
  border:1px solid rgba(214,179,107,.28);
  border-radius:14px;
  background:
    radial-gradient(ellipse at 50% 48%,rgba(91,39,43,.68) 0%,rgba(35,13,17,.72) 39%,rgba(9,6,7,.98) 79%),
    linear-gradient(145deg,#160d0f,#080607);
  box-shadow:
    inset 0 0 75px rgba(0,0,0,.48),
    0 18px 48px rgba(0,0,0,.42),
    0 0 24px rgba(115,48,56,.09)
}
.grill-3d-viewport--smile canvas{
  display:block;width:100%;height:100%;cursor:crosshair
}
.grill-3d-viewport--smile canvas:active{cursor:crosshair}
@media(max-width:900px){
  .grill-3d-viewport--smile{height:580px;min-height:500px}
}
@media(max-width:620px){
  .grill-3d-viewport--smile{height:470px;min-height:410px;border-radius:10px}
}

/* Keep the complete smile large and legible on phones as well as desktop. */
.grill-3d-viewport--smile{
  height:560px;min-height:500px;
  background:radial-gradient(ellipse at 50% 48%,#281317 0%,#10090b 66%,#070506 100%);
}
@media(max-width:900px){.grill-3d-viewport--smile{height:500px;min-height:450px}}
@media(max-width:620px){.grill-3d-viewport--smile{height:390px;min-height:360px}}

/* Artwork upload stays with the Grill Maker design through appointment booking */
.grill-artwork-upload{
  display:grid;grid-template-columns:1fr;gap:8px;margin:13px 0 15px;
  padding:14px;border:1px solid rgba(34,198,200,.24);border-radius:8px;
  background:rgba(3,8,10,.48)
}
.grill-artwork-upload label{margin:3px 0 0;color:#e3d2aa;font-size:.76rem;font-weight:800}
.grill-artwork-upload input[type="file"]{
  width:100%;max-width:100%;padding:10px;border:1px solid #555047;border-radius:6px;
  background:#15191a;color:#ded8ca;font-size:.78rem
}
.grill-artwork-upload textarea{
  width:100%;min-height:84px;padding:10px;border:1px solid #555047;border-radius:6px;
  background:#15191a;color:#eee;font:inherit;font-size:.8rem;resize:vertical
}
.grill-artwork-upload textarea:focus,.grill-artwork-upload input:focus{outline:2px solid var(--sprinkle-teal);outline-offset:1px}
.grill-artwork-upload #grillArtworkHandoffStatus{margin:2px 0 0;font-size:.72rem;line-height:1.45}


/* Reference-matched smile composition: show the complete two-arch grill on phones. */
@media(max-width:620px){
  .grill-3d-viewport--smile{
    height:auto;min-height:0;aspect-ratio:1.105 / 1;
    border-radius:12px;
  }
}

/* The supplied reference is the default sample image; keep its native framing. */
.grill-3d-viewport--smile{overflow:hidden}
.grill-reference-tooth-hit:focus-visible{
  outline:2px solid #00bcd4!important;
  outline-offset:-3px;
  background:rgba(0,188,212,.10)!important;
}
