/* Phone layout is independent of desktop preferences. No service worker caches private data. */
@media(max-width:700px){
 html,body{height:100%;height:100dvh}#welcome,#os{height:100dvh;bottom:auto}#welcome{padding:88px 18px 100px;min-height:0;overscroll-behavior:contain}.welcome-clock time{font-size:clamp(3.2rem,14vw,5rem)}.welcome-brand{top:max(20px,env(safe-area-inset-top));left:20px}.welcome-footer{bottom:env(safe-area-inset-bottom)}
 .desktop-top{height:64px;padding:8px 10px;top:env(safe-area-inset-top);gap:7px}.desktop-brand{letter-spacing:.04em}.desktop-brand small,#iz-title,#session-label{display:none!important}#desktop-clock{margin-left:auto;padding:5px;font-size:.875rem}.u-site-entry,#iz-header{font-size:.8rem;padding:8px;min-height:44px;max-width:115px;overflow:hidden;text-overflow:ellipsis}
 body #surface,body[data-rail] #surface{inset:calc(64px + env(safe-area-inset-top)) 0 calc(70px + env(safe-area-inset-bottom)) 0!important;overflow:hidden}#desktop-icons{position:absolute;inset:0;padding:16px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-content:start;overflow-y:auto;overscroll-behavior:contain}.desktop-shortcut{position:static!important;width:auto!important;min-height:100px;touch-action:pan-y}.desktop-shortcut span{overflow-wrap:anywhere}
 #desktop-widgets,#folder-strip,#desk-switch,.desktop-footer{display:none!important}
 body #rail,body[data-rail] #rail{position:fixed!important;inset:auto 8px max(6px,env(safe-area-inset-bottom)) 8px!important;transform:none!important;width:auto!important;height:60px;max-height:60px;display:flex!important;flex-direction:row!important;align-items:center;gap:3px;padding:6px;border-radius:18px;overflow:hidden;z-index:30}#rail button{flex:0 0 44px!important;width:44px!important;height:44px;min-height:44px;padding:9px}#rail .rail-rule,#rail #pinned-apps,#rail [data-launch=notifications]{display:none!important}#running-apps{flex:1!important;min-width:0;display:flex!important;flex-direction:row!important;overflow-x:auto;overflow-y:hidden;gap:3px;scrollbar-width:none}#running-apps:empty{min-width:0}
 body #launcher,body[data-rail] #launcher{inset:calc(65px + env(safe-area-inset-top)) 8px calc(72px + env(safe-area-inset-bottom)) 8px!important;width:auto!important;padding:16px;border-radius:18px}#app-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.launcher-app{padding:12px 4px;font-size:.875rem;min-height:100px;overflow-wrap:anywhere}.launcher-app small{font-size:.75rem}
 .os-window{inset:0!important;width:100%!important;height:100%!important;max-width:none!important;border-radius:0!important;min-width:0!important;box-shadow:none}.os-window-head{height:54px;min-height:54px;padding:5px 8px;touch-action:pan-y}.os-window-title{font-size:.95rem}.os-window-controls button{width:44px;min-height:44px}.os-window-controls [data-control=layout],.os-window-controls [data-control=max],.window-resize{display:none!important}.os-window-body{min-height:0;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}.os-window-body iframe{width:100%;height:100%;border:0}
 .toolbar{flex-wrap:wrap;flex-shrink:0;padding:10px}.toolbar input,.toolbar select{min-width:0;max-width:100%}.app-pad{padding:16px}.two-columns,.data-list>div,.iz-balance,.iz-intro{grid-template-columns:minmax(0,1fr)}.iz-symbol{display:none}.iz-intro{padding:20px}.iz-app h2,.u-games-heading h2{font-size:1.5rem}.iz-products,.iz-badges{grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr))}.iz-product .row{display:flex;flex-wrap:wrap}
 button{min-height:44px}input,textarea,select{font-size:max(16px,1rem)}input[type=checkbox]{min-width:22px;min-height:22px}dialog{width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 36px);margin:auto;overflow-y:auto}#dialog-content{min-width:0}#dialog-content label{margin-bottom:14px}#toast{max-width:calc(100vw - 24px);bottom:calc(80px + env(safe-area-inset-bottom));overflow-wrap:anywhere}canvas{max-width:100%;touch-action:none}
 .u-nav{position:relative;gap:6px}.u-nav button{padding:8px}.u-nav b{width:100%}.u-section{min-height:450px}.u-section h1,.u-section h2{font-size:2rem}.u-site-entry{max-width:96px}.u-game-grid{grid-template-columns:1fr}
}
@media(max-width:370px){#app-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#desktop-clock{display:none}.desktop-top{justify-content:space-between}.iz-products{grid-template-columns:1fr}}
