/* LARA PWA responsive shell — phone, iPad/tablet, laptop */
html{width:100%;max-width:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{width:100%;max-width:100%;overflow-x:hidden}
#shell,main,.app,.page,.section,.head,.hero{min-width:0}

@media(max-width:767px){
  #shell>.side{display:none!important}
  #shell.shell{display:block!important;width:100%!important}
  #shell>main{width:100%!important;min-width:0!important}
  .app{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
  .nav{display:flex!important;position:fixed!important;left:0!important;right:0!important;bottom:0!important;width:100%!important;transform:none!important;height:calc(72px + env(safe-area-inset-bottom))!important;padding-bottom:env(safe-area-inset-bottom)!important;overflow-x:auto!important;overflow-y:hidden!important;z-index:120!important}
  .nav button{flex:0 0 76px!important;min-width:76px!important}
  .section{padding-left:12px!important;padding-right:12px!important}
  .head{padding-left:14px!important;padding-right:14px!important}
  .hero{padding-left:14px!important;padding-right:14px!important}
  .grid,.bento,.users,.settingsGrid{grid-template-columns:1fr!important}
  .quick{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .modal{align-items:flex-end!important;padding:0!important}
  .sheet{width:100%!important;max-width:100%!important;margin:0!important;border-radius:22px 22px 0 0!important;max-height:92dvh!important;padding-bottom:calc(20px + env(safe-area-inset-bottom))!important}
  input,select,textarea{font-size:16px!important}
}

@media(min-width:768px) and (max-width:1099px){
  #shell>.side{display:none!important}
  #shell.shell{display:block!important;width:100%!important}
  #shell>main{width:100%!important;min-width:0!important}
  .app{padding-bottom:86px!important}
  .nav{display:flex!important;position:fixed!important;left:50%!important;bottom:16px!important;transform:translateX(-50%)!important;width:min(720px,calc(100% - 32px))!important;height:68px!important;border:1px solid var(--line)!important;border-radius:20px!important;overflow-x:auto!important;overflow-y:hidden!important;z-index:120!important}
  .nav button{flex:1 0 110px!important;min-width:100px!important}
  .section,.head{width:min(980px,100%)!important;margin-inline:auto!important;padding-left:22px!important;padding-right:22px!important}
  .hero{padding-left:24px!important;padding-right:24px!important}
  .quick{grid-template-columns:repeat(4,minmax(0,1fr))!important}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .bento,.users{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .settingsGrid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .sheet{width:min(860px,calc(100vw - 32px))!important}
}

@media(min-width:1100px){
  #shell.shell{grid-template-columns:minmax(0,1fr) 238px!important}
  #shell>.side{display:flex!important;width:238px!important;min-width:238px!important;max-width:238px!important}
  #shell>main{min-width:0!important}
  .nav{display:none!important}
  .section,.head{width:min(1450px,100%)!important;margin-inline:auto!important}
}

@media(display-mode:standalone){
  body{padding-top:env(safe-area-inset-top)!important}
  .nav{padding-bottom:env(safe-area-inset-bottom)!important}
}
