/* Pricing follows the actual stock unit: a watch body or a case-and-strap kit. */
.inv-values{display:flex;align-items:baseline;gap:.65rem;font-variant-numeric:tabular-nums;line-height:1.35}
.inv-price{color:#202322;font-weight:670;letter-spacing:-.035em;overflow-wrap:anywhere}
.inv-stock{color:#28563e;font-weight:500;line-height:1.4}
.inv-stock:empty,.inv-sync:empty,.inv-meta:empty,.inv-lineup-status:empty,.inv-hero-status:empty{display:none}
.inv-stock.inv-sold{color:#903a2a}
#hero-inventory{display:flex;align-items:baseline;flex-wrap:wrap;column-gap:.62rem;row-gap:.12rem;margin-top:clamp(.6rem,1.1vw,1rem);color:#302f2a;max-width:32rem}
.inv-hero-label{font-size:.94rem;font-weight:550}
#hero-inventory .inv-price{font-size:clamp(1.38rem,2.05vw,2.3rem);line-height:1.15}
#hero-inventory .inv-price.inv-unpriced{font-size:1.06rem}
#hero-inventory .inv-stock{font-size:.94rem;color:#344438}
#hero-inventory .inv-stock.inv-sold{color:#7f3028}
.inv-hero-status{color:#594e40;font-size:.81rem}
.hero:has(#hero-inventory) .hero-actions{margin-top:clamp(.68rem,1.45vw,1.35rem)}
.inv-lineup-status{display:block;line-height:1.5;color:#796044;font-size:.87rem;margin-top:.45rem;max-width:28rem}
.lineup-options{align-items:start}
.lineup-call-note{grid-column:1 / -1;margin:0;color:#5a554d;font-size:.9rem;line-height:1.4}
.lineup-call-note .subtle-link{font:inherit}
.lineup-options .inv-values{display:grid;gap:.1rem;justify-items:center;font-size:.87rem;text-align:center}
.lineup-options .inv-price{font-size:1.1rem}
.lineup-options .inv-price.inv-unpriced{font-size:.87rem;font-weight:550;color:#5a554d}
.lineup-options .inv-stock{color:#4c5550;font-size:.85rem}
.lineup-options .inv-stock.inv-sold{color:#903a2a}
#studio-inventory{border-radius:13px;background:#f0efeb;border:1px solid #dedbd4;overflow:hidden;padding:.85rem 1rem .65rem;margin:.65rem 0 1rem}
.inv-total,.inv-component{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:.5rem 1rem;align-items:start}
.inv-total{padding:.12rem 0 .75rem}
.inv-total-label{margin:0;font-size:1.05rem;letter-spacing:-.015em}
.inv-total-detail,.inv-label,.inv-name,.inv-meta{display:block;line-height:1.42}
.inv-total-detail,.inv-label{font-size:.82rem;color:#514e47}
.inv-total-detail{margin-top:.16rem}
.inv-total .inv-values,.inv-component .inv-values{display:grid;justify-items:end;text-align:right;gap:.12rem}
.inv-total .inv-price{font-size:clamp(1.7rem,2.65vw,2.42rem);line-height:1.02}
.inv-total .inv-price.inv-unpriced{font-size:1.15rem;line-height:1.4}
.inv-total .inv-stock{font-size:.89rem}
.inv-component{align-items:center;border-top:1px solid #d5d2c9;padding:.55rem 0}
.inv-component[hidden]{display:none}
.inv-item-info{min-width:0}
.inv-name{font-size:.92rem;color:#222421;font-weight:545;overflow-wrap:anywhere}
.inv-meta{font-size:.80rem;color:#605a51;margin-top:.12rem;overflow-wrap:anywhere}
.inv-component .inv-price{font-size:1.02rem}
.inv-component .inv-price.inv-unpriced{font-size:.87rem}
.inv-component .inv-stock{font-size:.81rem}
.inv-controls{display:flex;flex-wrap:wrap;gap:.35rem .85rem;align-items:center;border-top:1px solid #d5d2c9;padding-top:.24rem}
.inv-controls button,.inv-photo-original{color:#3f4b46;text-decoration:underline;text-underline-offset:.2em;font-size:.87rem}
.inv-controls button{min-height:2rem}
.inv-sync{font-size:.85rem;color:#754d24;line-height:1.5;margin:.12rem 0 .23rem}
#purchase-quote{margin:0 0 .3rem;width:100%;color:#243f31;line-height:1.45;font-size:.95rem;font-weight:600;font-variant-numeric:tabular-nums}

#stock-photos{margin:1rem 0;border-top:1px solid var(--rule);padding:.85rem 0 0;scroll-margin-block:.65rem}
#stock-photos:focus-visible{outline:2px solid #526453;outline-offset:3px}
#stock-photos h4{font-size:1.03rem;margin:0 0 .7rem}
.inv-photo-groups{display:grid;gap:.8rem}
.inv-photo-group h5,.inv-photo-choice{display:inline;margin:0;font-size:.89rem;line-height:1.5}
.inv-photo-group h5{font-weight:650;margin-right:.4rem}
.inv-photo-choice{color:#615c53;overflow-wrap:anywhere}
.inv-thumbs{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.35rem}
.inv-thumb{position:relative;display:grid;place-items:center;color:#635d55;width:clamp(58px,22%,88px);aspect-ratio:1.24;min-height:42px;border:1px solid #d3cec5;background:#e9e6df;border-radius:7px;overflow:hidden;cursor:zoom-in}
.inv-thumb img{display:block;position:absolute;inset:0;object-fit:cover;width:100%;height:100%}
.inv-thumb-index{position:absolute;bottom:3px;right:3px;display:grid;place-items:center;padding:0 4px;min-width:17px;height:17px;line-height:1;background:#171916c9;color:white;font-size:.72rem;font-variant-numeric:tabular-nums;border-radius:6px}
.inv-thumb-fallback{display:none;font-size:.82rem}
.inv-broken-thumb img{display:none}.inv-broken-thumb .inv-thumb-fallback{display:block}
.inv-empty-photo{font-size:.85rem;margin:.2rem 0 0;color:#6b655c;line-height:1.4}
.inv-photo-dialog{width:min(680px,calc(100% - 20px));max-height:92dvh;overflow:auto;padding:0;border:none;border-radius:14px;background:#fbfaf7;color:#202322;box-shadow:0 18px 80px #0004}
.inv-photo-dialog::backdrop{background:#171916b8}
.inv-photo-top,.inv-photo-nav{display:flex;align-items:center;justify-content:space-between;gap:.6rem;padding:.75rem 1rem}
.inv-photo-top h2{margin:0;font-size:1.08rem;line-height:1.4}
.inv-photo-top button,.inv-photo-nav button{border-radius:50%;border:1px solid #c9c5bc;width:40px;height:40px;font:1.5rem/1 system-ui;flex-shrink:0}
.inv-photo-canvas{background:#242421;display:grid;align-items:center;justify-content:center;min-height:115px}
.inv-photo-canvas img{display:block;max-width:100%;max-height:65dvh;object-fit:contain}
.inv-image-error{padding:1rem;color:#fff;text-align:center}
.inv-photo-nav{justify-content:flex-start;font-size:.9rem;font-variant-numeric:tabular-nums}
.inv-photo-original{margin-left:auto;padding:.45rem 0;min-height:32px}

@media(max-width:660px){
  #hero-inventory{margin-top:.55rem}
  .hero:has(#hero-inventory) .hero-actions{margin-top:.6rem}
  #studio-inventory{padding:.7rem .8rem .45rem}
  .inv-total{padding-bottom:.55rem}
  .inv-component{padding-block:.38rem}
  .inv-total,.inv-component{gap:.4rem .65rem}
  .lineup-options:has(.inv-values){grid-template-columns:repeat(2,minmax(0,1fr));column-gap:.7rem;row-gap:.35rem}
  .lineup-options button:has(.inv-values){display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;justify-items:start;column-gap:.62rem;row-gap:.13rem;text-align:left;white-space:normal;padding:.45rem .12rem;border-bottom:1px solid var(--rule)}
  .lineup-options button:has(.inv-values) img{grid-column:1;grid-row:1/3;width:40px;height:40px}
  .lineup-options button:has(.inv-values)>span:not(.inv-values){font-size:.9rem;font-weight:600}
  .lineup-options .inv-values{display:flex;flex-wrap:wrap;justify-content:flex-start;align-items:baseline;gap:.12rem .38rem;text-align:left}
  .lineup-options .inv-price{font-size:.99rem}
  .lineup-options .inv-stock,.lineup-options .inv-price.inv-unpriced{font-size:.8rem}
  .inv-photo-top,.inv-photo-nav{padding:.6rem .7rem}
}
@media(max-width:370px){
  .lineup-options button:has(.inv-values){column-gap:.4rem}
  .lineup-options button:has(.inv-values) img{width:32px;height:32px}
}

.inv-card-line{display:flex;align-items:baseline;gap:.25rem .65rem;flex-wrap:wrap;padding-top:.55rem}
.inv-card-label{font-size:.83rem;color:#514e47}
.inv-card-line .inv-price{font-size:1.2rem}
.inv-card-line .inv-price.inv-unpriced,.inv-card-line .inv-stock{font-size:.87rem}
@media(max-width:660px){.inv-card-line,.inv-card-line .inv-values{gap:.13rem .45rem;flex-wrap:wrap}}

.inv-stock.inv-pending,#hero-inventory .inv-stock.inv-pending{color:#635d53}

.inv-compact-quote{margin-left:auto;margin-right:.65rem;display:grid;justify-items:end;gap:.05rem;color:#1d2520;font-variant-numeric:tabular-nums;min-height:42px;padding:.18rem .25rem;line-height:1.2}
.inv-compact-quote span{color:#5c584f;font-size:.78rem}
.inv-compact-quote strong{font-size:1.18rem;font-weight:650}
.inv-compact-quote[hidden]{display:none}

.inv-hero-link{min-height:32px;font-size:.91rem;text-decoration:underline;text-underline-offset:.18em;color:#3f4138}

#srp-lineup { display: block; }
.lineup-intro, .lineup-actions { display: flex; align-items: center; flex-wrap: wrap; }
.lineup-intro { gap: .75rem 1.5rem; }
.lineup-actions { gap: .5rem; }
.lineup-actions button { min-height: 44px; padding: .45rem .9rem; justify-content: center; line-height: 1.3; }
@media (max-width: 540px) {
  .lineup-actions { gap: .4rem; }
  .lineup-actions button { font-size: .875rem; padding-inline: .65rem; }
}
#lineup-options {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
#lineup-options button {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  justify-items: center;
  gap: .25rem;
  padding: .4rem .1rem;
  border: 0;
  white-space: normal;
  text-align: center;
}
#lineup-options button img, #core-options img {
  grid-area: auto;
  object-fit: contain;
  border-radius: 0;
  outline: none;
  box-shadow: none;
}
#lineup-options button img {
  width: 100%;
  height: clamp(5.25rem, 8vw, 8rem);
  margin-bottom: .35rem;
}
#core-options { flex-wrap: wrap; }
#core-options button { border-radius: .4rem; }
@media (max-width: 900px) {
  #lineup-options { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  #lineup-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem .65rem; }
  #lineup-options button img { height: 6rem; }
}

.studio.shopping .config > :not(#model-order,.product-light-panel) { display: none; }
.studio.shopping .macro-views, .studio.shopping .inspection-toggle, .studio.shopping .inv-compact-quote { display: none; }
#model-order label { display: grid; gap: .4rem; font-weight: 600; }
#model-order select { width: 100%; font: inherit; padding: .7rem; border: 1px solid var(--rule); border-radius: .5rem; background: white; }
#model-order p { margin: .55rem 0 1.2rem; }
#model-order .order-price { display: flex; justify-content: space-between; align-items: baseline; }
#model-order .order-total { border-top: 1px solid var(--rule); padding-top: 1rem; font-size: 1.3rem; }
#model-order [hidden] { display: none; }
#order-strap-photos img { width: 4rem; height: 4rem; object-fit: contain; }
#order-fit, #order-status { font-size: .9rem; }
#order-fit:empty, #order-status:empty { display: none; }

.lineup-options .orient-crown, .core-discs .orient-crown { rotate: 90deg; }
.reference-stage img.orient-crown { rotate: 90deg; max-width: min(100%, 46vh); margin-inline: auto; }
.studio.shopping .reference-stage { padding: 3.5rem 2rem; }
.studio.shopping .reference-stage img { max-width: min(100%, 46vh); margin-inline: auto; }
.inv-card-line[hidden] { display: none; }
a.inbox-after-copy { display: flex; width: fit-content; margin-top: .6rem; text-decoration: none; }

/* Keep the quote and the handoff within reach at every viewport height. */
.order-checkout, .product-photo-rail { display: none; }
.studio.shopping[open] { display: flex; flex-direction: column; height: min(840px, 94dvh); overflow: hidden; }
.studio.shopping .dialog-top { flex: none; }
.studio.shopping .studio-layout { flex: 1; min-height: 0; max-height: none; height: auto; }
.studio.shopping .config { overflow-y: auto; min-height: 0; }
.studio.shopping .order-checkout {
  display: flex; flex: none; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .8rem clamp(1rem,3vw,2.2rem); background: #fcfaf5; border-top: 1px solid var(--rule);
}
.order-amount { display: grid; font-variant-numeric: tabular-nums; line-height: 1.25; }
.order-amount span { font-size: .88rem; }
.order-amount strong { font-size: clamp(1.25rem,2.1vw,1.75rem); }
.order-amount small { font-size: .77rem; color: #625c54; }
#order-call-actions:not([hidden]) { display:grid; justify-items:start; gap:.15rem; }
#order-call-actions .tel-body { width:fit-content; text-align:start; }
#order-call-actions:has(a[href^="tel:"]) strong { display:none; }
#order-call-actions a[href^="tel:"] { font-size:clamp(1.15rem,2.1vw,1.65rem); font-weight:700; }
.order-handoff { min-width: 0; }
.order-handoff .solid { min-height: 44px; justify-content: center; margin: 0; }
.order-handoff:has(.inbox-after-copy) #copy-order { display: none; }
.order-handoff #order-status { line-height: 1.45; font-size: .82rem; }
.order-handoff .inbox-after-copy { margin: .25rem 0 0 auto; }
.order-handoff textarea { display: block; width: 100%; max-height: 55px; }
#copy-order:disabled { opacity: .48; cursor: default; }
#model-order { display: grid; grid-template-columns:minmax(0,1fr); gap: .75rem; }
#model-order p { margin: 0; }
#model-order label { gap: .3rem; }
#model-order .order-price { font-size: .94rem; }
#model-order select { min-width: 0; min-height: 44px; }
#order-fit { color: #5a544d; }
#order-strap-photos { display: flex; flex-wrap: nowrap; gap: .35rem; overflow-x: auto; }
#order-strap-photos:empty, #product-saved-note:empty { display: none; }
#order-strap-photos button { flex: none; margin: 0; }
#order-strap-photos button[aria-pressed="true"] { outline: 2px solid var(--ink,#242423); outline-offset: -2px; }
#order-strap-photos img { display: block; width: 3.25rem; height: 3.25rem; object-fit: cover; }
#order-try-on, #save-product { justify-self: start; min-height: 44px; }
.studio.shopping .reference-stage { padding: 2.75rem .45rem 2.85rem; }
.studio.shopping .reference-stage img { max-width: 100%; }
.studio.shopping .reference-stage span { bottom: .55rem; max-width: 94%; width: max-content; line-height: 1.3; color: #28251e; }
.studio.shopping .viewer.show-photo .product-photo-rail {
  position:absolute; z-index:2; top:.55rem; right:.55rem; display:flex; align-items:center; gap:.3rem;
}
.product-photo-rail > :not([hidden]) { display: flex; align-items:center; }
#product-photo-nav, #preview-photo-pick { border:1px solid #d4cec4; background:#fffdf8f5; border-radius:2rem; }
#product-photo-nav button { width:39px; height:42px; color:#37332d; font-size:1.45rem; border:0; background:transparent; }
#photo-position { font-size:.75rem; font-variant-numeric:tabular-nums; white-space:nowrap; }
#preview-photo-pick { min-height:42px; padding:.35rem .8rem; }
@media (max-width:760px) {
  .studio.shopping .viewer.show-photo .product-photo-rail { top:auto; left:.5rem; right:.5rem; bottom:.4rem; justify-content:space-between; }
  .studio.shopping .reference-stage span { top:3rem; bottom:auto; font-size:.72rem; max-width:92%; padding:.2rem .5rem; pointer-events:none; }
}
@media (max-width:660px) {
  .studio.shopping[open] { width: min(100% - 12px,520px); max-width: 100%; height: min(96dvh,920px); }
  .studio.shopping .studio-layout { grid-template-rows: minmax(135px,42%) minmax(0,1fr); }
  .studio.shopping .order-checkout { gap:.5rem; padding:.55rem .8rem max(.55rem,env(safe-area-inset-bottom)); }
  .order-handoff { max-width:65%; }
  .order-handoff .solid { padding:.45rem .7rem; font-size:.9rem; }
  .order-amount small { font-size:.72rem; }
  .studio.shopping .config { padding:.85rem; }
  .studio.shopping .reference-stage { padding: .25rem .35rem; }
}
@media(max-height:470px) and (orientation:landscape) {
  .studio.shopping { max-height:98dvh; }
  .studio.shopping .studio-layout { display:grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0,1fr); }
  .studio.shopping .studio-layout > .viewer { position:relative; min-height:0; align-self:stretch; }
}
#save-product[aria-pressed=true] { color: #163e31; background: #e6ede7; border-color: #92aa96; }
#save-product:disabled { opacity: .5; }
.saved-products-entry { min-height: 36px; color: #374840; background: transparent; border: 0; text-decoration: underline; text-underline-offset:.22em; }
#saved:has(#saved-products:not([hidden])) { width: min(820px, 96vw); }
#saved-products { padding: 1rem clamp(.75rem,2.8vw,1.6rem); }
#saved-products h3 { margin: 0 0 .65rem; font-size: 1.05rem; }
#saved-products > p { font-size: .84rem; margin: .6rem 0 0; color: #59574e; }
.saved-product-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(175px,100%),1fr)); gap:.65rem; }
.saved-product-grid article { display:flex; flex-direction:column; min-width:0; padding:.6rem; background:#f6f4ee; border-radius:.65rem; border:1px solid var(--rule); }
.saved-product-grid img { display:block; width:100%; height:clamp(115px,17vw,160px); border-radius:.35rem; object-fit:contain; }
.saved-product-grid small { margin:.55rem 0 .15rem; color:#635a50; }
.saved-product-grid h4, .saved-product-grid p { margin:0; }
.saved-product-grid p, .saved-product-grid dl { font-size:.87rem; }
.saved-product-grid dl { display:grid; grid-template-columns:1fr auto; gap:.18rem; margin:auto 0 .35rem; padding:.55rem 0; border-bottom:1px solid var(--rule); }
.saved-product-grid dd { margin:0; }
.saved-product-grid strong { font-size:1.15rem; }
.saved-product-actions { display:flex; align-items:center; justify-content:space-between; gap:.2rem; }
.saved-product-actions :is(a,button) { display:inline-flex; align-items:center; min-height:44px; font-size:.88rem; text-decoration:underline; text-underline-offset:.18em; }
@media(max-width:540px) { .saved-product-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.order-tools { display:flex; flex-wrap:wrap; align-items:center; gap:.4rem; }
.order-tools .outline { min-height:44px; margin:0; padding:.35rem .8rem; font-size:.88rem; }
.order-tools button:disabled { opacity:.45; }
#share-product-status { font-size:.88rem; color:#4b564e; }
#share-product-status:empty { display:none; }
#share-product-status input { width:100%; }
.saved-compare:not([hidden]) { margin-bottom:.8rem; min-height:44px; }
.saved-compare:disabled { opacity:.5; }
.saved-compare-choice { display:flex; align-items:center; gap:.4rem; min-height:38px; font-size:.84rem; }
.saved-compare-choice input { accent-color:#173b39; }
@media (min-width:360px) and (max-width:540px) {
  #lineup-options { grid-template-columns:repeat(4,minmax(0,1fr)); gap:.65rem .25rem; }
  #lineup-options button img { height:clamp(3.7rem,16vw,5.3rem); }
  #lineup-options .lineup-name { display:grid; align-items:center; min-height:2.5em; font-size:.82rem; line-height:1.25; }
  #lineup-options .inv-price { font-size:.92rem; }
}

#order-core-specs { container:original-body / inline-size; }
.original-body-photos { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:.45rem; margin-block:.55rem; }
@container original-body (max-width:19rem) { .original-body-photos { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.original-body-photos button { display:grid; justify-items:center; gap:.2rem; padding:.38rem; border:1px solid var(--rule); border-radius:.55rem; background:#faf9f6; color:inherit; font:inherit; cursor:zoom-in; }
.inv-product-photo .inv-photo-canvas.inv-photo-neutral { background:#e7e5df; }
.original-body-photos img { display:block; width:min(100%,88px); height:auto; aspect-ratio:1; border-radius:.25rem; object-fit:contain; }
.original-body-photos img.orient-crown { rotate:90deg; }

.order-delivery { padding-block: .1rem; border-block: 1px solid var(--rule); }
.order-delivery summary { cursor:pointer; padding:.65rem 0; font-size:.9rem; }
#product-delivery .service-legend { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
#product-delivery .service-choices { padding:0 0 .55rem; margin:0; }
#product-delivery .service-choice { display:flex; gap:.45rem; }
#product-delivery .service-choice-copy { min-width:0; }

/* Let enlarged text reflow into a single scrolling product sheet. */
.studio.shopping[open] { container: order-studio / size; overflow-y:auto; }
.studio.shopping .view-modes button,
.studio.shopping #close-studio { min-height:44px; min-width:44px; }
@container order-studio (max-width:19rem) or ((max-height:15rem) and (max-width:30rem)) {
  .studio.shopping .dialog-top { position:sticky; top:0; z-index:4; background:#fbfaf8; padding:.4rem .65rem; }
  .studio.shopping .dialog-top .smallcap { display:none; }
  .studio.shopping .dialog-top h2 { margin:0; font-size:1.08rem; }
  .studio.shopping .studio-layout { display:block; flex:none; }
  .studio.shopping .studio-layout > .viewer { height:clamp(190px,38dvh,350px); min-height:0; }
  .studio.shopping .config { overflow:visible; }
  .studio.shopping .order-checkout { flex-direction:column; align-items:stretch; }
  .studio.shopping .order-handoff { max-width:none; }
  .studio.shopping .order-handoff .solid { width:100%; white-space:normal; }
}

#model-order #order-variant-label { margin-bottom:-.4rem; color:#46443e; font-size:.9rem; }

.mobile-photo-caption { display:none; }
@media(max-width:760px) {
  .studio.shopping .viewer.show-photo {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    grid-template-rows:auto minmax(0,1fr) auto;
    align-items:center;
    gap:2px 6px;
    padding:4px 6px;
  }
  .studio.shopping .viewer.show-photo .view-modes {
    position:static; grid-area:1/1; justify-self:start;
  }
  .studio.shopping .viewer.show-photo .mobile-photo-caption {
    display:block; grid-area:3/1/4/-1; font-size:.75rem; line-height:1.25; overflow-wrap:anywhere;
  }
  .studio.shopping .viewer.show-photo:has(#preview-photo-pick:not([hidden])) .mobile-photo-caption { grid-column:1; }
  .studio.shopping .viewer.show-photo .reference-stage {
    position:relative; inset:auto; grid-area:2/1/3/-1; padding:0; min-height:0;
    background:transparent; cursor:zoom-in;
  }
  .studio.shopping .viewer.show-photo .reference-stage span { display:none; }
  .studio.shopping .viewer.show-photo .product-photo-rail { display:contents; }
  .studio.shopping .viewer.show-photo #product-photo-nav { grid-area:1/2; justify-self:end; }
  .studio.shopping .viewer.show-photo #preview-photo-pick { grid-area:3/2; justify-self:end; max-width:100%; }
}
.inv-product-photo[open] {
  width:100vw; height:100dvh; max-width:100vw; max-height:100dvh; margin:0;
  border-radius:0; display:grid; grid-template-rows:auto minmax(0,1fr) auto;
}
.inv-product-photo .inv-photo-canvas {
  display:flex; min-height:0; height:100%; min-width:0; background:#241f1b;
}
.inv-product-photo .inv-photo-zoom {
  position:relative; container-type:size; width:100%; height:100%; border:0; padding:0; background:transparent; cursor:zoom-in; overflow:hidden;
}
.inv-product-photo .inv-photo-zoom:focus-visible { outline-offset:-4px; }
.inv-product-photo .inv-photo-zoom img { width:100%; height:100%; max-height:none; object-fit:contain; }
.inv-product-photo .inv-photo-zoom img.orient-crown {
  position:absolute; left:50%; top:50%; translate:-50% -50%; rotate:90deg;
  width:100cqh; height:100cqw; max-width:none;
}
.inv-product-photo .inv-photo-zoom[aria-pressed=true] { cursor:zoom-out; }
.inv-product-photo .inv-photo-zoom[aria-pressed=true] img, .reference-stage.is-zoomed img {
  transform:translate(var(--photo-zoom-x,0px),var(--photo-zoom-y,0px)) scale(2);
}
.inv-product-photo .inv-photo-top { padding-top:max(.55rem,env(safe-area-inset-top)); }
.inv-product-photo .inv-photo-nav { padding-bottom:max(.55rem,env(safe-area-inset-bottom)); }
.inv-product-photo .inv-photo-close, .inv-product-photo .inv-photo-nav button { min-width:44px; min-height:44px; }
@media(max-width:660px) and (orientation:portrait) {
  /* A product photograph needs room to inspect on a small phone. Let it
     scroll with the options while the purchase total stays within reach. */
  @container order-studio (min-width:19.01rem) and (min-height:26rem) {
    .studio.shopping .studio-layout:has(.viewer.show-photo) {
      display:block; overflow-y:auto; overscroll-behavior:contain;
    }
    .studio.shopping .studio-layout > .viewer.show-photo {
      height:auto; grid-template-rows:auto clamp(200px,69vw,330px) auto;
      row-gap:.35rem; padding:.45rem;
    }
    .studio.shopping .viewer.show-photo + .config { overflow:visible; }
  }
}
@container order-studio (max-width:19rem) {
  .studio.shopping .studio-layout > .viewer.show-photo {
    height:auto; display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px;
  }
  .studio.shopping .viewer.show-photo #product-photo-nav { order:1; }
  .studio.shopping .viewer.show-photo .reference-stage { order:2; width:100%; height:34dvh; }
  .studio.shopping .viewer.show-photo .mobile-photo-caption { order:3; }
  .studio.shopping .viewer.show-photo #preview-photo-pick { order:4; }
}

.product-camera { display: none; }
.studio.shopping .viewer:not(.show-photo) .product-camera {
  display: inline-flex; align-items: center; gap: .35rem; position: relative;
  min-height: 38px; padding-inline: .65rem .45rem; border: 1px solid #c4bfb5;
  border-radius: 2rem; background: #fcfaf5f2; color: #34312d; pointer-events: auto;
}
.product-camera select {
  max-width: 8rem; min-height: 38px; padding-inline: .1rem;
  color: inherit; background: transparent; border: 0; font: inherit; font-size: .84rem; cursor: pointer;
}
.product-camera:focus-within { outline: 2px solid currentColor; outline-offset: 2px; }
.studio.shopping .viewer-bottom > span { display: none; }
.watch-surface { position:absolute; inset:0; overflow:hidden; }
.viewer:has(.watch-surface.has-product-shadow)::before { opacity:0; }
.viewer.show-photo .watch-surface { visibility:hidden; }
.watch-surface.has-product-shadow::before {
  content:''; position:absolute; pointer-events:none;
  left: var(--contact-x,50%); right:auto; top:var(--contact-y,83%); bottom:auto;
  width:var(--contact-width,42%); height:var(--contact-height,6%);
  transform:translate(-50%,-40%) rotate(var(--contact-roll,0rad)) skewX(-12deg); filter:blur(1.3px);
  background:
    radial-gradient(ellipse at 47% 45%,rgba(44,35,28,.30),rgba(50,41,33,.11) 22%,transparent 47%),
    radial-gradient(ellipse at 51% 53%,rgba(54,44,36,.15),rgba(65,53,44,.09) 37%,transparent 72%);
}
.viewer.is-inspecting .watch-surface::before, .studio:has(#explode-view:checked) .watch-surface::before { opacity:0; }
.product-parts-switch { display:none; }
.studio.shopping .viewer:not(.show-photo) .product-parts-switch:not([hidden]) {
  position:absolute; z-index:2; top:14px; right:14px; display:inline-flex; align-items:center;
  min-height:36px; padding:.35rem .8rem; border-radius:20px; cursor:pointer; border:1px solid #c4bfb5;
  background:#fcfaf5f2; color:#34312d; font:inherit; font-size:.84rem;
}
.product-parts-switch[aria-pressed=true] { font-weight:650; }
@media (max-width:660px) {
  .studio.shopping .viewer:not(.show-photo) .product-parts-switch:not([hidden]) { top:9px; right:9px; }
}
.render-notice:not([hidden]) {
  position:absolute; z-index:3; left:12px; right:12px; bottom:12px;
  width:fit-content; max-width:calc(100% - 24px); padding:.45rem .7rem;
  border:1px solid var(--rule); border-radius:.6rem; background:#fcfaf5f5; color:#39362f;
  font-size:.81rem; line-height:1.5;
}
.render-notice .subtle-link { font:inherit; }
.studio-match { padding:.65rem .8rem; margin-bottom:1rem; border-left:2px solid #ad7b59; background:#f3f0e9; }
#model-order .studio-match p { margin:0 0 .25rem; font-size:.89rem; line-height:1.55; }
.studio-match .subtle-link { font-size:.87rem; }

.inv-photo-canvas, .studio.shopping .reference-stage { touch-action:pan-y pinch-zoom; }

.viewer .studio-cast { pointer-events:none; filter:blur(4px); }
.watch-surface.daylight-ground .studio-cast { filter:blur(1.4px); }
.viewer.show-photo .studio-cast, .viewer.is-inspecting .studio-cast { display:none; }

.product-light { display:none; }
.studio.shopping .viewer:not(.show-photo):not(.is-inspecting) .product-light {
  display:inline-flex; align-items:center; margin-inline-end:auto; pointer-events:auto;
  padding:.35rem .7rem; min-height:38px; font-size:.84rem; border:1px solid #c4bfb5;
  border-radius:2rem; background:#fcfaf5; color:#34312d;
}
.product-light::after {
  content:''; width:.36rem; height:.36rem; margin:.16rem 0 0 .5rem;
  border:solid currentColor; border-width:1.5px 1.5px 0 0; transform:rotate(-45deg);
}
.product-light[aria-expanded=true]::after { margin-block:-.15rem 0; transform:rotate(135deg); }
.product-light-panel {
  position:absolute; bottom:calc(100% + .45rem); left:0; z-index:2;
  width:min(15rem,100%); box-sizing:border-box; padding:.65rem .85rem .4rem;
  border:1px solid #c4bfb5; border-radius:.75rem; background:#fcfaf5; color:#34312d;
  box-shadow:0 3px 20px #27221a22; align-items:center; pointer-events:auto;
}
.studio.shopping .product-light-panel:not([hidden]) {
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.1rem .3rem;
}
.product-light-panel[hidden] { display:none !important; }
.product-light-panel label { font-size:.86rem; font-weight:650; }
.product-light-panel select { font:inherit; font-size:.82rem; min-height:36px; border:1px solid #aaa69c; border-radius:.4rem; padding:.2rem .35rem; background:#fffdf9; color:inherit; }
.product-light-status { grid-column:1/-1; font-size:.75rem; }
.product-light-status:empty { display:none; }
.product-light-panel output { font-size:.78rem; font-variant-numeric:tabular-nums; }
.product-light-panel input { width:100%; height:36px; margin:0; grid-column:1/-1; accent-color:#725132; }
.product-light-panel button { justify-self:start; min-height:32px; padding:.2rem 0; font-size:.8rem; text-decoration:underline; }

.studio.shopping .watch-surface.afterglow-ground {
  background:radial-gradient(ellipse at 48% 40%,#171c25,#090c12 78%);
}
.watch-surface.afterglow-ground::before,
.watch-surface.afterglow-ground .studio-cast { visibility:hidden; }
.product-light-panel:has(#product-light-angle:disabled) :is([for="product-light-angle"],#product-light-angle) { display:none; }
.studio.shopping .product-light-panel:has(#product-light-angle:disabled) button { grid-column:1/-1; grid-row:auto; }

.product-light:focus-visible,.product-light-panel :focus-visible { outline:2px solid #795637; outline-offset:2px; }
@media(max-width:410px){
  .studio.shopping .viewer-bottom { gap:4px; }
  .studio.shopping .product-camera { gap:.1rem; }
  .studio.shopping .viewer:not(.show-photo):not(.is-inspecting) .product-light { padding-inline:.48rem; }
}
@media(max-width:360px){
  .studio.shopping .viewer:not(.show-photo) .product-camera { padding-inline:.4rem; }
  .studio.shopping .product-camera .icon { display:none; }
  .studio.shopping .product-camera select { max-width:5rem; }
}
@media(max-width:660px) and (orientation:portrait) and (min-height:540px) {
  .studio.shopping .studio-layout:has(.viewer:not(.show-photo)) {
    grid-template-rows:minmax(165px,calc(42% + 44px)) minmax(0,1fr);
  }
}
@media(max-width:760px) and (orientation:portrait){
  .studio.shopping .viewer:not(.show-photo) .watch-surface { bottom:47px; }
  .studio.shopping .viewer:not(.show-photo) .viewer-bottom {
    left:0; right:0; bottom:0; min-height:47px; padding:3px 8px;
    background:#f6f3ed; border-top:1px solid #ded9ce;
  }
  .studio.shopping .config .product-light-panel:not([hidden]) {
    position:sticky; top:0; bottom:auto; width:100%; grid-template-columns:minmax(0,1fr) auto auto;
    gap:0 .65rem; padding:.2rem .65rem; margin-bottom:.65rem; box-shadow:none; border-radius:.55rem;
  }
  .product-light-panel select { grid-column:2/4; }
  .product-light-panel button { grid-column:3; grid-row:2; }
  .product-light-panel input { grid-row:3; }
}

.product-loading-photo:not([hidden]) {
  position:absolute; inset:0; z-index:1; pointer-events:none; display:grid; place-items:center;
  grid-template-rows:minmax(0,1fr) auto; gap:.3rem; padding:2.8rem .5rem .5rem; background:#f1eee7;
}
.product-loading-photo img { width:100%; height:100%; min-height:0; object-fit:contain; }
.product-loading-photo img.orient-crown { rotate:90deg; max-width:min(100%,40vh); }
.product-loading-photo span {
  width:max-content; max-width:92%;
  background:#fbf9f3ed; color:#38332c; padding:.3rem .7rem; border-radius:1rem; font-size:.82rem;
}

.viewer:has(.product-loading-photo:not([hidden])) .viewer-bottom,
.viewer:has(.product-loading-photo:not([hidden])) .product-parts-switch { visibility:hidden; }
.viewer:has(.product-loading-photo:not([hidden])) > canvas { pointer-events:none; }

/* In a short viewport let the product, controls and total scroll together. */
.studio.shopping.product-reflow:has(.viewer:not(.show-photo)) .dialog-top {
  position:static; padding:.4rem .65rem;
}
.studio.shopping.product-reflow:has(.viewer:not(.show-photo)) .dialog-top .smallcap { display:none; }
.studio.shopping.product-reflow:has(.viewer:not(.show-photo)) .dialog-top h2 { margin:0; font-size:1.08rem; }
.studio.shopping.product-reflow .studio-layout:has(.viewer:not(.show-photo)) { display:block; flex:none; }
.studio.shopping.product-reflow .studio-layout > .viewer:not(.show-photo) {
  display:flex; flex-wrap:wrap; align-items:center; gap:4px; padding:4px;
  position:relative; height:auto; min-height:0;
}
.studio.shopping.product-reflow .viewer:not(.show-photo) :is(.view-modes,.product-parts-switch:not([hidden])) {
  position:static; margin:0; flex:none; max-width:100%;
}
.studio.shopping.product-reflow .viewer:not(.show-photo) .watch-surface {
  position:relative; inset:auto; flex:0 0 100%; order:1; height:clamp(132px,43dvh,270px);
}
.studio.shopping.product-reflow .viewer:not(.show-photo) .viewer-bottom {
  position:relative; inset:auto; order:2; flex:0 0 100%; display:flex; flex-wrap:wrap;
  align-items:center; gap:4px; padding:2px; background:#f6f3ed; border-top:1px solid #ded9ce;
}
.studio.shopping.product-reflow .viewer:not(.show-photo) + .config { overflow:visible; }
.studio.shopping.product-reflow .config .product-light-panel:not([hidden]) {
  position:static; width:100%; margin:0 0 .65rem; padding:.4rem .65rem; box-shadow:none;
  grid-template-columns:minmax(0,1fr) auto; gap:.1rem .4rem;
}
.studio.shopping.product-reflow .config .product-light-panel :is(select,button,input) { grid-row:auto; grid-column:auto; }
.studio.shopping.product-reflow .config .product-light-panel input { grid-column:1/-1; }
/* The control panel can be narrow in enlarged text even on a wide device. */
.product-light-panel { container: product-light / inline-size; }
@container product-light (max-width:12em) {
  .studio.shopping .config .product-light-panel :is(label,select,output,input,button) {
    grid-column:1/-1; grid-row:auto; min-width:0; max-width:100%;
  }
}


/* Compare the confirmed shop photo and its live configuration using the existing viewer. */
.comparison-model-label, .view-modes [hidden] { display:none; }
.studio.shopping.is-photo-comparison { width:min(1480px,calc(100% - 32px)); max-width:calc(100% - 32px); }
.studio.shopping.is-photo-comparison .studio-layout { grid-template-columns:minmax(0,2.35fr) minmax(280px,1fr); }
.product-scene-pane { display:contents; }
.is-photo-comparison .product-scene-pane { display:block; position:absolute; inset:0 0 0 50%; overflow:hidden; }
.is-photo-comparison .product-scene-pane:has(.afterglow-ground) { background:#0b0e15; }
.is-photo-comparison .product-loading-photo:not([hidden]) { left:50%; }
.is-photo-comparison .product-loading-photo:not([hidden]) { display:grid; grid-template-rows:1fr; padding:.65rem; }
.is-photo-comparison .product-loading-photo img { display:none; }
.studio.shopping.is-photo-comparison .reference-stage {
  inset:0 50% 0 0; width:50%; padding:4.35rem .5rem 3.6rem; background:#f1eee7; border-right:1px solid #ccc5ba;
}
.studio.shopping.is-photo-comparison .reference-stage span {
  bottom:.6rem; left:.5rem; transform:none; max-width:calc(100% - 122px); width:fit-content;
  background:#fcfaf5eb; text-align:left; padding:.25rem .5rem; font-size:.75rem;
}
.is-photo-comparison .comparison-model-label {
  display:block; position:absolute; top:1rem; left:calc(50% + .75rem); z-index:2;
  background:#fcfaf5eb; color:#413c35; border-radius:1rem; padding:.3rem .65rem; font-size:.8rem; pointer-events:none;
}
.is-photo-comparison .product-photo-rail { display:flex; position:absolute; right:calc(50% + .5rem); bottom:.5rem; z-index:2; }
.studio.shopping.is-photo-comparison .viewer-bottom { left:calc(50% + .5rem); right:.5rem; bottom:.5rem; gap:.25rem; }
.studio.shopping.is-photo-comparison .viewer-bottom > div { gap:.15rem; }

@media (max-height:690px) {
  .studio.shopping.is-photo-comparison .watch-surface { top:2.6rem; bottom:3rem; }
}

.photo-wipe {
  box-sizing:border-box; width:min(92vw,65dvh,640px); min-width:min(92vw,290px); max-height:94dvh;
  overflow:auto; border:1px solid var(--rule); border-radius:16px; padding:0; color:#25231f; background:#fbfaf7;
}
.photo-wipe::backdrop { background:rgba(18,20,20,.65); }
.photo-wipe header { position:static; display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding:.85rem 1rem; }
.photo-wipe h2 { font-size:clamp(1.15rem,4.8vw,1.55rem); margin:0; }
.photo-wipe header p { font-size:.8rem; color:#575047; margin:.25rem 0 0; line-height:1.3; }
.photo-wipe header button { flex:none; min-width:42px; min-height:42px; font-size:1.5rem; }
.wipe-stage { position:relative; aspect-ratio:1; overflow:hidden; isolation:isolate; background:#efebe4; }
.wipe-render, .wipe-render canvas, .wipe-photo { position:absolute; inset:0; width:100%; height:100%; }
.wipe-render { visibility:hidden; }
.wipe-stage.wipe-night, .wipe-render.afterglow-ground { background:#0b0e15; }
.wipe-render .studio-cast { filter:blur(2px); }
.wipe-photo { object-fit:contain; user-select:none; pointer-events:none; }
.wipe-ready .wipe-stage { touch-action:pan-y; cursor:ew-resize; }
.wipe-ready .wipe-render { visibility:visible; }
.wipe-ready .wipe-photo { clip-path:inset(0 calc(100% - var(--split,50%)) 0 0); }
.wipe-divider, .wipe-labels { display:none; }
.wipe-ready .wipe-divider { display:block; position:absolute; top:0; bottom:0; left:var(--split,50%); width:2px; transform:translateX(-1px); background:white; box-shadow:0 0 0 1px #45382750; pointer-events:none; }
.wipe-ready .wipe-labels { position:absolute; display:flex; justify-content:space-between; inset:.45rem .45rem auto; pointer-events:none; }
.wipe-labels span { border-radius:1rem; padding:.15rem .45rem; font-size:.7rem; background:#faf8f1ed; color:#352f28; }
.wipe-labels span:last-child { margin-inline-start:auto; }
.wipe-control:not([hidden]) { display:flex; flex-wrap:wrap; gap:.65rem; align-items:center; padding:.5rem 1rem; font-size:.85rem; }
.wipe-control input { padding:0; margin:0; flex:1; min-width:min(9rem,100%); min-height:44px; accent-color:#76543e; }
.wipe-status:not([hidden]) { margin:.75rem 1rem; font-size:.85rem; }
.wipe-retry:not([hidden]) { margin:0 1rem .75rem; padding:.4rem .7rem; border:1px solid var(--rule); border-radius:1rem; }
@media (max-height:550px) and (min-aspect-ratio:6/5) {
  .photo-wipe[open] {
    display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); grid-template-rows:auto 1fr auto;
    width:min(96vw,154dvh,740px); align-items:start;
  }
  .photo-wipe .wipe-stage { grid-column:1; grid-row:1/5; width:100%; }
  .photo-wipe header { grid-column:2; padding:.65rem .7rem; align-items:start; }
  .photo-wipe .wipe-control:not([hidden]) { grid-column:2; flex-direction:column; align-items:stretch; gap:0; padding:.5rem .7rem; }
  .photo-wipe .wipe-status, .photo-wipe .wipe-retry { grid-column:2; }
}
