/* FlashDiary Family PWA shell
   Matches Android WebView's full-height layout, preserving original parent/student UIs. */
html{min-height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}
@media(display-mode:standalone){
  html{min-height:100dvh;background:#eff5fd}
  body{min-height:100dvh;overscroll-behavior-y:contain}
  body.diary-login{
    min-height:100dvh;padding-top:env(safe-area-inset-top,0px);
    padding-right:env(safe-area-inset-right,0px);
    padding-bottom:env(safe-area-inset-bottom,0px);
    padding-left:env(safe-area-inset-left,0px);
    box-sizing:border-box
  }
  body.diary-login .diary-cover{min-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px))}
  .main{min-height:100dvh}
  body:has(.fdpx-page) .topbar,body:has(.fdsx-page) .topbar{padding-top:env(safe-area-inset-top,0px)}
  body:has(.fdpx-page) .content,body:has(.fdsx-page) .content{overscroll-behavior-y:contain}
  .fdd-bottom{touch-action:manipulation}
}
[data-pwa-install][hidden]{display:none!important}
.fd-pwa-login-install{
 display:flex;align-items:center;justify-content:center;gap:8px;
 width:100%;max-width:240px;margin:12px auto 5px;padding:10px 12px;
 border:1px solid #d1bc79;border-radius:14px;background:rgba(255,255,255,.08);
 font:700 12px/1.3 system-ui,-apple-system,sans-serif;color:#f1d395;
 cursor:pointer;box-sizing:border-box
}
.fd-pwa-login-install svg{width:18px;height:18px;flex-shrink:0}
.fd-pwa-login-install:hover,.fd-pwa-login-install:focus-visible{background:rgba(255,255,255,.16)}
.fd-pwa-install-help{
 max-width:260px;margin:5px auto!important;padding:3px!important;
 text-align:center;font:11px/1.5 system-ui!important;color:#decf9b!important
}
@media(max-height:650px){.fd-pwa-login-install{margin:5px auto;padding:7px 9px}}
