/* Closed preview: safe viewport and wide-screen sizing. */
:root{
  --crx-safe-top:env(safe-area-inset-top,0px);
  --crx-safe-left:env(safe-area-inset-left,0px);
  --crx-safe-right:env(safe-area-inset-right,0px);
  --crx-safe-bottom:env(safe-area-inset-bottom,0px);
  --crx-header-base:76px;
  scroll-padding-top:calc(var(--crx-header-base) + var(--crx-safe-top) + 8px);
}
html body>header{
  --crx-head-side:max(30px, (100% - 1560px)/2);
  padding-top:calc(12px + var(--crx-safe-top));
  padding-bottom:12px;
  padding-left:max(var(--crx-head-side),calc(12px + var(--crx-safe-left)));
  padding-right:max(var(--crx-head-side),calc(12px + var(--crx-safe-right)));
  min-height:calc(var(--crx-header-base) + var(--crx-safe-top));
}
html body>main,html body>footer{
  margin-left:var(--crx-safe-left);
  margin-right:var(--crx-safe-right);
}
html body #menu{max-width:min(520px,calc(100vw - 24px - var(--crx-safe-left) - var(--crx-safe-right)));max-height:calc(100dvh - 24px - var(--crx-safe-top) - var(--crx-safe-bottom));}
@media(max-width:600px){
  :root{--crx-header-base:68px}
  html body>header{--crx-head-side:16px;padding-top:calc(10px + var(--crx-safe-top));padding-bottom:10px}
}
@media(max-width:350px){html body>header{--crx-head-side:12px}}
@media(min-width:761px) and (max-width:1023px) and (orientation:portrait){
  html body #app #home .home-swipe-shell>.home-swipe-prev{left:16px;right:auto}
  html body #app #home .home-swipe-shell>.home-swipe-next{right:16px;left:auto}
  html body #app #home .home-swipe-shell>.gallery-arrow{width:48px;height:48px;min-height:48px;display:grid;place-items:center}
}
@media(min-width:761px){
  html body #home.entry-home{padding-block:clamp(21px,2.15vw,38px)}
  html body #home .entry-heading{margin-bottom:16px}
  html body #home .entry-heading .hero-wide-break{display:none}
  html body #home .entry-heading .preview-hero-terms{margin-top:8px}
  html body #home .entry-card-copy{gap:6px}
  html body #home .entry-card-copy>span:not(.preview-direction-price){display:none}
  html body #crystal-display .studio-panorama{max-width:1120px;margin-inline:auto}
}
@media(min-width:1024px) and (max-height:850px) and (orientation:landscape){
  html body #home .entry-card img{height:clamp(210px,29vh,251px)}
}
@media(min-width:1600px){
  html body main .entry-home .entry-card img{height:clamp(330px,30vh,365px)}
}
/* Consistent down chevrons and a balanced, two-column site footer. */
html body details:not(.language-picker)>summary::after{border-color:#3987ff;color:#3987ff}
html body details:not(.language-picker)>summary::marker{color:#3987ff}
html body details:not(.language-picker)>summary svg{color:#3987ff}
html body>footer.crx-final-footer>.crx-footer-address{margin:0 0 14px;font-style:normal;color:var(--ui-text,#f5f5f5)}
html body>footer.crx-final-footer>.site-bottom-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;gap:4px clamp(12px,3vw,38px);max-width:720px;margin:0 0 18px}
html body>footer.crx-final-footer>.site-bottom-links>a{min-width:0;min-height:32px;white-space:normal}
html body>footer.crx-final-footer .preview-footer-columns{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){html body>footer.crx-final-footer .preview-footer-columns{grid-template-columns:minmax(0,1fr)}}
html body #lighting .crx-led-controls{display:none}
@media(max-width:760px){
html body #lighting .lighting-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:100%;gap:12px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
html body #lighting .lighting-grid>figure{scroll-snap-align:start;scroll-snap-stop:always;min-width:0}
html body #lighting .lighting-grid img{width:100%;height:auto;aspect-ratio:3/2;object-fit:contain}
html body #lighting .crx-led-controls{display:grid;grid-template-columns:44px auto 44px;justify-content:space-between;align-items:center;margin:2px 0 8px;text-align:center}
html body #lighting .crx-led-controls button{display:grid;place-items:center;min-width:44px;min-height:44px;background:transparent;color:#3987ff;border:0;font-family:inherit;font-size:2.4rem;font-weight:500;line-height:1;padding:0;cursor:pointer}
html body #lighting .crx-led-controls button:disabled{visibility:hidden}
}
