/* Keep normal document scrolling and nested classroom/Settings scrollers. */
:root{--app-safe-top:0px;--app-safe-right:0px;--app-safe-bottom:0px;--app-safe-left:0px}
html{min-height:100%;overflow-x:clip;overscroll-behavior:none}
body{min-height:100vh;min-height:100dvh;max-width:100%;padding:var(--app-safe-top) var(--app-safe-right) var(--app-safe-bottom) var(--app-safe-left)}
#app{min-width:0;max-width:100%}
@supports not (overflow:clip){html{overflow-x:hidden}}
html.app-standalone{--app-safe-top:env(safe-area-inset-top,0px);--app-safe-right:env(safe-area-inset-right,0px);--app-safe-bottom:env(safe-area-inset-bottom,0px);--app-safe-left:env(safe-area-inset-left,0px)}
@media(display-mode:standalone){:root{--app-safe-top:env(safe-area-inset-top,0px);--app-safe-right:env(safe-area-inset-right,0px);--app-safe-bottom:env(safe-area-inset-bottom,0px);--app-safe-left:env(safe-area-inset-left,0px)}[data-pwa-guide]{display:none!important}}
html.app-standalone [data-pwa-guide]{display:none!important}
html.app-standalone .wrap{padding-inline:clamp(12px,3vw,30px);padding-bottom:24px}
.room-scroll,.room-editor-scroll,.seat-editor-scroll,.seat-layout-scroll{overscroll-behavior-x:contain}
.timer-panel,.timer-panel:is(.is-expanded,.is-picker,.is-active){top:calc(90px + var(--app-safe-top));right:calc(18px + var(--app-safe-right));max-width:calc(100vw - 36px - var(--app-safe-left) - var(--app-safe-right));max-height:calc(100dvh - 110px - var(--app-safe-top) - var(--app-safe-bottom))}
.timer-display-dialog{top:calc(84px + var(--app-safe-top));right:calc(18px + var(--app-safe-right));max-width:calc(100vw - 28px - var(--app-safe-left) - var(--app-safe-right));max-height:calc(100dvh - 110px - var(--app-safe-top) - var(--app-safe-bottom))}
.day-modal{padding-top:max(20px,var(--app-safe-top));padding-right:max(20px,var(--app-safe-right));padding-bottom:max(20px,var(--app-safe-bottom));padding-left:max(20px,var(--app-safe-left))}
.student-link-dialog{left:calc(50% + (var(--app-safe-left) - var(--app-safe-right))/2);top:calc(50% + (var(--app-safe-top) - var(--app-safe-bottom))/2);max-width:calc(100vw - 32px - var(--app-safe-left) - var(--app-safe-right));max-height:calc(100dvh - 32px - var(--app-safe-top) - var(--app-safe-bottom))}
.pwa-install-guide ol{padding-left:22px;margin:10px 0 14px;color:var(--navy);font-size:14px;line-height:1.55}
.pwa-install-guide li{margin:6px 0}.pwa-install-guide .quiet{margin:8px 0;line-height:1.5}.pwa-install-guide [hidden]{display:none!important}
@media(max-width:600px){.timer-panel,.timer-panel:is(.is-expanded,.is-picker,.is-active){top:calc(72px + var(--app-safe-top));right:calc(10px + var(--app-safe-right));max-width:calc(100vw - 20px - var(--app-safe-left) - var(--app-safe-right));max-height:calc(100dvh - 84px - var(--app-safe-top) - var(--app-safe-bottom))}}
