/* Phones get static previews. Tablets in portrait start at 768px.
   Touch phones in landscape remain static even when wider than 768px.
   Keep the media query identical to demo-access.js. */
.demo-desktop-only,
.inline-demo-panel[data-demo-panel] .desktop-live-demo,
[data-demo-panel] .demo-fullscreen-toggle,
[data-demo-panel] .inline-demo-note { display: none !important; }
.demo-mobile-only { display: block; }
.mobile-demo-gallery { display: block; margin-top: 10px; }
.hero-demo-availability {
  width: fit-content; max-width: 100%; margin: 16px auto 24px;
  padding: 10px 16px; border: 1px solid #d7e6f3; border-radius: 10px;
  background: #f2f7fc; color: #58718b; font-size: 13px; line-height: 1.6;
}
.inline-demo-panel { overflow: hidden; }
#live-monitoring .screenshot-bar { grid-template-columns: 1fr; }
.live-static-preview img { display: block; width: 100%; height: auto; }
.demo-page #demo-root, .demo-page #demo-dialog,
.demo-page #demo-toast, .demo-page > .skip { display: none !important; }
.demo-access-notice {
  box-sizing: border-box; width: min(100% - 32px, 640px); margin: 32px auto;
  padding: 24px; border: 1px solid #d0e0f0; border-radius: 16px;
  background: #fff; color: #172b4d; text-align: center;
  box-shadow: 0 12px 40px rgba(15,50,90,.08);
}
.demo-access-logo { display: block; margin: 0 auto 16px; }
.demo-access-notice h1 { font-size: 24px; line-height: 1.25; }
.demo-access-notice p { color: #58718b; font-size: 15px; line-height: 1.6; }
.demo-access-preview { display: block; width: 100%; height: auto; margin: 24px 0; border-radius: 8px; }
.demo-access-notice a { display: inline-block; padding: 12px 18px; color: #fff; background: #087ced; border-radius: 8px; text-decoration: none; }
@media (min-width: 768px) and (pointer: fine), (min-width: 768px) and (min-height: 600px) {
  .demo-desktop-only { display: revert !important; }
  .hero-actions .demo-desktop-only, .live-showcase-try.demo-desktop-only { display: inline-flex !important; }
  .demo-mobile-only, .mobile-demo-gallery { display: none !important; }
  .inline-demo-panel[data-demo-panel] .desktop-live-demo { display: block !important; }
  .inline-demo-panel[data-demo-panel]:fullscreen .desktop-live-demo { display: flex !important; }
  [data-demo-panel] .demo-fullscreen-toggle { display: grid !important; }
  [data-demo-panel] .inline-demo-note { display: block !important; }
  #live-monitoring .screenshot-bar { grid-template-columns: 1fr auto 1fr; }
  .demo-page #demo-root, .demo-page #demo-dialog,
  .demo-page #demo-toast, .demo-page > .skip { display: revert !important; }
}
