/* Responsive presentation. Shared case metadata and filter disclosure;
   The two-column scene uses the existing 128 × 163 reference cushion and
   201px slot. One transform scales the ENTIRE scene, never a watch or cushion. */
.mobile-navigation,.mobile-case-actions{display:none}
body.signature-shell > main > .intro[hidden]{display:none}
.case-toolbar .collection-identity{min-width:0;text-align:right;padding-top:2px}
.case-toolbar .collection-identity h1{font:400 13px/1.35 'Watchgrid Typewriter','Courier New',monospace;letter-spacing:-.25px;color:#594c43;margin:0;overflow-wrap:anywhere}
.case-toolbar .collection-identity .subtitle{font-size:11px;line-height:1.4;letter-spacing:0;text-transform:none;color:#786b60;margin:4px 0 0;overflow-wrap:anywhere}
.mobile-filter-toggle{display:flex;justify-content:center;align-items:center;gap:9px;width:fit-content;min-width:134px;min-height:44px;padding:10px 14px;margin:10px 0 14px;border:1px solid #44342b;border-radius:3px;background:#44342b;color:#fff8ed;font-size:13px;text-align:left}
.mobile-filter-toggle:focus-visible{outline:2px solid #9a683e;outline-offset:3px}
.mobile-filter-count{display:grid;place-items:center;min-width:18px;height:18px;padding:0 4px;border-radius:3px;background:#fff8ed;color:#44342b;font-size:10px}
.mobile-filter-count[hidden]{display:none}
.mobile-filter-chevron{transition:transform .15s}
.mobile-filter-toggle[aria-expanded=true] .mobile-filter-chevron{transform:rotate(180deg)}
.mobile-filter-panel[hidden]{display:none}
.case-toolbar{display:grid;grid-template-columns:minmax(200px,1fr) auto;align-items:start;gap:8px 24px}
.case-toolbar>div:first-child{grid-row:1/3;min-width:0}
.case-toolbar .collection-identity{grid-column:2;grid-row:1}
.case-config{grid-column:2;grid-row:2;justify-content:flex-end}
.mobile-case-layout,.mobile-case-scene{display:contents}
/* Preserve the pending header patch’s direct-child centering through wrappers. */
.mobile-case-scene>.watch-case[data-size="3"]{margin-left:auto;margin-right:auto}
@media (max-width:700px), (max-width:1020px) and (pointer:coarse) {
  body.signature-shell > .masthead{height:98px;padding-top:10px;padding-bottom:10px}
  body.signature-shell .workspace{padding-top:8px}
  .mobile-navigation{display:flex;position:sticky;top:0;z-index:30;gap:8px;padding:6px 0;background:#fdfcfa;border-bottom:1px solid var(--line)}
  .mobile-navigation button{flex:1;min-height:44px;border:1px solid #d8cbb6;border-radius:5px;background:#fdfcfa;color:#725538;font-size:14px}
  .planner,.catalogue,#inspector{scroll-margin-top:68px}
  .case-stage{scroll-margin-top:130px}
  .mobile-case-layout{display:block;position:relative;width:100%;max-width:min(395px,calc(100vw - 40px));margin-inline:auto;overflow:hidden}
  .mobile-case-scene{display:block;width:395px;padding:20px 20px 40px;transform:scale(var(--mobile-case-scale,1));transform-origin:top left}
  .watch-case[data-size]{width:355px;min-width:355px;max-width:355px}
  .watch-case[data-size] .case-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .watch-case .slot{height:201px}
  .watch-case .cushion{height:163px}
  .case-scroll{margin:0;padding:3px 0 26px;overflow:visible}
  .mobile-hint{display:block;text-align:center;font-size:12px;line-height:1.5;margin:0 0 12px;color:#78664e}
  .slot.drag-origin{outline:2px solid #e8c997;outline-offset:-3px}
  .slot.drag-hover{outline:3px solid #fff0bd;outline-offset:-4px;box-shadow:inset 0 0 16px #e8c99766}
  .touch-drag-ghost{filter:drop-shadow(0 10px 8px #2c1d1855)}
  .drag-handle{display:none}
  .slot:not(.empty-slot){cursor:pointer}
  .mobile-case-actions{display:flex;position:sticky;top:57px;z-index:25;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 0;background:#f5f4f2;border-block:1px solid #dedbd2;margin-bottom:12px}
  .mobile-case-actions[hidden]{display:none}
  .mobile-case-actions strong{flex:1 1 150px;font-size:12px;line-height:1.5;font-weight:500}
  .mobile-case-actions button{min-height:44px;padding:9px 12px}
  .case-toolbar{display:grid;grid-template-columns:minmax(0,1fr) minmax(96px,38%);align-items:start;gap:12px;padding:12px 0 10px}
  .case-toolbar>div:first-child{min-width:0;grid-row:1}
  .case-stage{padding-top:0}
  .case-config{grid-column:1/-1;width:100%;justify-content:space-between;gap:12px}
  .size-picker{flex:1;max-width:170px}
  .size-picker select{width:100%;max-width:none;min-height:44px;font-size:16px;padding:8px}
  .finish{width:44px;height:44px;border-width:10px;background-clip:padding-box;flex-shrink:0}
  .finishes{gap:5px}
  .collection-value{max-width:none}
  .collection-value-line{align-items:center}
  .pricing-info>summary{display:grid;place-items:center;min-width:44px;min-height:44px}
  .primary,.secondary,.text-button,.close-button,.instruction button{min-height:44px}
  .close-button{min-width:44px}
  .case-actions{width:100%;justify-content:flex-end;align-self:auto;gap:20px;margin:0}
  .case-footer{gap:8px}
  .box-view-controls{justify-content:stretch}
  .box-view-controls button{flex:1}
  .instruction p{font-size:12px}
  .instruction button{min-width:64px;margin-left:10px}
  .catalogue-grid{grid-template-columns:repeat(2,minmax(0,1fr));max-height:none;overflow:visible;gap:12px}
  .watch-card:hover{transform:none}
  .card-brand{font-size:9px}
  .card-model{font-size:12px;overflow-wrap:anywhere}
  .card-name,.card-spec,.in-case{font-size:10px}
  .card-bottom{gap:6px;flex-wrap:wrap}
  .place-button{width:auto;min-width:64px;min-height:44px;padding:0 10px;border-radius:5px;font-size:14px}
  .place-button::after{content:' Add';white-space:pre}
  .search{height:48px;max-width:none}
  .search input,.brand-picker select{font-size:16px;min-height:44px}
  .search>span{display:none}
  .brand-picker{font-size:12px;margin-top:0}
  .filters{gap:8px;padding-bottom:18px}
  .filters button{min-height:44px;padding:8px 12px;font-size:12px}
  .size-filter-heading button{min-height:44px}
  .size-slider input[type=range]::-webkit-slider-thumb{width:44px;height:44px;margin-top:-20px}
  .size-slider input[type=range]::-moz-range-thumb{width:40px;height:40px}
  .overflow-list{scroll-snap-type:x proximity}
  .overflow-card{flex-basis:160px;scroll-snap-align:start}
  .overflow-card .text-button{font-size:12px;min-height:44px}
  .source-link{display:inline-flex;align-items:center;min-height:44px;font-size:12px}
  .detail-actions{flex-wrap:wrap;align-self:stretch}
  .detail-actions button{flex:1}
  .fullscreen-header{padding-top:max(12px,env(safe-area-inset-top));padding-inline:max(14px,env(safe-area-inset-left)) max(14px,env(safe-area-inset-right))}
  .fullscreen-controls{padding-bottom:max(16px,env(safe-area-inset-bottom));flex-wrap:wrap}
  .fullscreen-selection{flex:1 1 180px}
  .fullscreen-move-actions{margin-left:auto}
  .watchbox-fullscreen{height:100dvh}
  .toast{bottom:max(20px,env(safe-area-inset-bottom))}
}
@media (max-width:700px) and (max-height:500px){
  .fullscreen-header{padding-top:6px;padding-bottom:6px}
  .fullscreen-header strong{font-size:15px}
  .fullscreen-controls{padding-top:6px;padding-bottom:6px}
  .fullscreen-selection span{display:none}
}

/* Prevent iOS image/background callouts only inside the draggable case and its
   floating preview. Cover all view sizes and composed/pseudo image layers.
   Keep touch-action and touchstart defaults intact so ordinary swipes scroll. */
.watch-case,.watch-case *,.watch-case::before,.watch-case::after,
.watch-case *::before,.watch-case *::after,
.case-drag-ghost,.case-drag-ghost *,.case-drag-ghost::before,.case-drag-ghost::after,
.case-drag-ghost *::before,.case-drag-ghost *::after{
  -webkit-touch-callout:none;
  -webkit-user-select:none;
  user-select:none;
}
.watch-case img,.case-drag-ghost img{-webkit-user-drag:none}
.watch-case .cushion::before{pointer-events:none}
