.mobile-favorite-r30[hidden],.mobile-photo-actions-r30[hidden]{display:none!important}
@media(max-width:700px){
 html{scroll-padding-top:env(safe-area-inset-top,0px)}
 .scene picture{display:contents}
 #hair-gallery[open]{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:6px 6px max(6px,env(safe-area-inset-bottom,0px));border:0;box-sizing:border-box;overscroll-behavior-y:contain;scrollbar-width:thin;scrollbar-color:#9b8568 transparent}
 #hair-gallery[open][data-material] .vitrine-heading{padding-top:max(6px,env(safe-area-inset-top,0px))}
 #hair-gallery[open][data-material][data-display-view=details] .vitrine-heading{margin-bottom:6px;padding-bottom:4px}
 #hair-gallery[open][data-material][data-display-view=details] .piece-detail{padding:8px;gap:20px}
 #hair-gallery[open][data-material] .piece-photo-tools{display:none}
 #hair-gallery[open][data-material] .photo-roles-r28{margin:0 0 8px;padding:0;gap:16px;scrollbar-width:none;overscroll-behavior-x:contain}
 #hair-gallery .photo-roles-r28::-webkit-scrollbar,#hair-gallery .series-gallery::-webkit-scrollbar{display:none}
 #hair-gallery[open][data-material] .photo-roles-r28 button{font-size:13px;padding:10px 3px;min-width:44px;min-height:44px}
 #hair-gallery[open][data-material] .series-presentation .piece-photo-stage{height:clamp(280px,52svh,560px);min-height:0;max-height:none;margin:0;background:transparent;touch-action:pan-y pinch-zoom}
 #hair-gallery .piece-photo-stage .reference-photo,#hair-gallery .piece-photo-stage>img{width:100%;height:100%;object-fit:contain}
 #hair-gallery[open][data-material] .piece-photo-steps{min-height:44px;padding:0 4px;margin:0;gap:4px}
 #hair-gallery .piece-photo-steps button{min-width:44px;min-height:44px;padding:8px 4px;font-size:12px}
 #hair-gallery .piece-photo-steps [role=status]{font-size:13px}
 #hair-gallery .series-gallery{gap:8px;padding:6px 0 4px;scrollbar-width:none;overscroll-behavior-x:contain;scroll-padding-inline:6px}
 #hair-gallery .series-thumb{flex:0 0 52px;padding:3px;gap:3px;font-size:11px;min-height:72px}
 #hair-gallery .series-thumb img{width:44px;height:58px}
 #hair-gallery .piece-photo-status{font-size:12px;margin:8px 0 0}
 #hair-gallery[open][data-material] .piece-information{margin-top:8px;padding:8px 6px 20px}
 #hair-gallery .piece-information p,#hair-gallery .disclosure-body{font-size:14px;line-height:1.65}
 #hair-gallery[open][data-material] .piece-specs dt{font-size:12px}
 #hair-gallery .piece-disclosure summary{font-size:14px;min-height:48px}
 #hair-gallery[open][data-material] .piece-consult-dock{display:flex;position:fixed;left:6px;right:6px;bottom:0;width:auto;box-sizing:border-box;padding:8px 10px calc(8px + env(safe-area-inset-bottom,0px));gap:10px;background:#f3eddf url('media/cotton-paper-v50.png') center/640px;color:#33291f;border-top:1px solid #d8cbb8;box-shadow:0 -8px 20px -16px #26190c80}
 #hair-gallery[data-mobile-first=true][data-display-view=details] .vitrine-content{padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))}
 #hair-gallery[open] .piece-consult-dock>p{display:none}
 #hair-gallery[open] .piece-consult-dock>button{min-height:48px;font-size:14px;padding:12px 16px;background:#33291f;color:#fff5e6;flex:1}
 #hair-gallery[open] .piece-consult-dock .mobile-favorite-r30{flex:0 0 48px;width:48px;padding:12px;justify-content:center;background:none;color:#33291f;border:1px solid #baa78b}
 .mobile-favorite-r30 .favorite-label{display:none}
 #hair-gallery .mobile-favorite-r30[aria-pressed=true] svg{fill:currentColor}
 #hair-gallery[open][data-material] .piece-consult-dock[hidden]{display:none!important}
 #hair-gallery[open][data-material] .inventory-state .prepared-caption h4{font-size:26px}
 #hair-gallery[open][data-material] .inventory-state .prepared-name-note{font-size:12px;line-height:1.5}
 #hair-gallery[open][data-material] .inventory-state .prepared-open{font-size:12px;min-height:44px}
 #hair-gallery[open] .catalogue-utility-r29 .favorites-access,#hair-gallery[open] .catalogue-utility-r29 .catalogue-layout-r28 button{font-size:12px}
 #hair-gallery[open] button:focus-visible,#photo-viewer[open] button:focus-visible{outline:2px solid #aa8653;outline-offset:3px}
 #photo-viewer[open][data-mobile-first=true]{height:100dvh;max-height:100dvh;width:100%;max-width:100%;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;padding:0!important}
 #photo-viewer .photo-viewer-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:56px;padding:max(6px,env(safe-area-inset-top,0px)) 12px 6px}
 #photo-viewer .photo-viewer-header h2{font-size:22px;line-height:1.1;max-width:calc(100% - 48px);margin:0}
 #photo-viewer .photo-viewer-close{font-size:0;gap:0;padding:12px;width:44px;min-width:44px;min-height:44px;max-width:44px;display:inline-flex;justify-content:center}
 #photo-viewer .photo-viewer-close svg{width:20px;height:20px}
 #photo-viewer .photo-viewer-viewport{min-height:0;grid-column:1;grid-row:2}
 #photo-viewer .photo-viewer-footer{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:4px 12px calc(6px + env(safe-area-inset-bottom,0px));min-height:0}
 #photo-viewer .series-viewer-nav,#photo-viewer .mobile-photo-actions-r30,#photo-viewer .photo-viewer-navigation{width:100%;box-sizing:border-box}
 #photo-viewer .series-viewer-nav{order:0;min-height:44px;gap:4px}
 #photo-viewer .series-viewer-nav button{font-size:13px;min-height:44px;padding:8px 2px}
 #photo-viewer .mobile-photo-actions-r30{order:1;display:flex;align-items:center;gap:8px;padding:4px 0}
 #photo-viewer .mobile-photo-actions-r30 button{min-height:48px;min-width:48px;margin:0;display:flex;align-items:center;justify-content:center;gap:8px;font-size:14px;border:1px solid #847157;padding:10px;color:#f3eddf}
 #photo-viewer .mobile-photo-actions-r30 .photo-viewer-favorite{width:48px;padding:12px}
 #photo-viewer .mobile-photo-actions-r30 .favorite-label{display:none}
 #photo-viewer .mobile-photo-actions-r30 .photo-viewer-favorite[aria-pressed=true] svg{fill:currentColor}
 #photo-viewer .mobile-photo-actions-r30 .photo-viewer-consult{flex:1;background:#f3eddf;color:#33291f;border-color:#f3eddf}
 #photo-viewer .photo-viewer-zoom{display:none;order:2;flex-wrap:wrap;justify-content:center;gap:8px;padding:6px 0}
 #photo-viewer[data-mobile-zoom=true] .photo-viewer-zoom{display:flex}
 #photo-viewer .photo-viewer-navigation{order:3;min-height:44px;gap:4px;margin:0;padding:0;border:0}
 #photo-viewer .photo-viewer-navigation button{font-size:12px;min-height:44px;padding:6px 2px;gap:4px}
 #photo-viewer .photo-viewer-position{font-size:12px;max-width:none}
 #photo-viewer[data-consulting=true] .photo-viewer-header{grid-row:1}
 #photo-viewer[data-consulting=true] .photo-viewer-viewport{display:none}
 #photo-viewer[data-consulting=true] .photo-viewer-consultation{grid-row:2 / -1;min-height:0;overflow-y:auto;overscroll-behavior:contain}
 #photo-viewer .photo-viewer-consultation textarea{font-size:16px}
 #photo-viewer .photo-viewer-footer[hidden]{display:none!important}
 .selection-dock{max-width:calc(100vw - 24px)}
 #photo-viewer[data-mobile-first=true][data-has-selection=true]{grid-template-rows:auto minmax(0,1fr) auto auto}
 #photo-viewer[data-mobile-first=true] .selection-dock{position:static;grid-row:4;grid-column:1;width:100%;max-width:100%;box-sizing:border-box;grid-template-columns:44px 1fr auto;gap:10px;padding:4px 12px max(4px,env(safe-area-inset-bottom,0px));box-shadow:none;border-top:1px solid #bba88a;border-radius:0}
 #photo-viewer .selection-dock .selection-thumbnails{width:42px;height:38px;min-height:0}
 #photo-viewer .selection-dock .selection-mini{width:25px;height:34px}
 #photo-viewer .selection-dock .selection-open,#photo-viewer .selection-dock .selection-compare{min-height:44px;font-size:12px}
 #photo-viewer .selection-dock .selection-open strong{font-size:12px}
 #photo-viewer .selection-dock .selection-open span{font-size:11px}
 #hair-gallery[data-mobile-first=true][data-display-view=details] .selection-dock{right:12px;bottom:calc(80px + env(safe-area-inset-bottom,0px));width:208px;grid-template-columns:38px 1fr;gap:0 8px;padding:6px 8px}
 #hair-gallery[data-mobile-first=true][data-display-view=details] .selection-dock .selection-thumbnails{width:38px;height:38px;min-height:0}
 #hair-gallery[data-mobile-first=true][data-display-view=details] .selection-dock .selection-mini{width:24px;height:32px}
 #hair-gallery[data-mobile-first=true][data-display-view=details] .selection-dock .selection-compare{display:none}
}
@media(max-width:360px){#hair-gallery[open] .catalogue-utility-r29{padding:4px 6px;gap:4px}#hair-gallery[open] .catalogue-utility-r29 button{font-size:11px;padding:8px 5px}#photo-viewer .photo-viewer-header h2{font-size:20px}}
@media(max-width:700px) and (max-height:500px){#hair-gallery[open][data-material] .series-presentation .piece-photo-stage{height:60svh;min-height:180px}#photo-viewer .photo-viewer-footer{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}#photo-viewer .mobile-photo-actions-r30{grid-row:1;grid-column:2}#photo-viewer .series-viewer-nav{grid-row:1;grid-column:1}#photo-viewer .photo-viewer-navigation{grid-column:1 / -1}}
