#anizer-pwa{position:fixed;z-index:100100;right:max(12px,env(safe-area-inset-right));bottom:max(12px,env(safe-area-inset-bottom));max-width:min(390px,calc(100vw - 24px));font:14px/1.4 system-ui;color:#173b45}
#anizer-pwa [hidden]{display:none!important}
#anizer-pwa section{background:#fffdf8;border:1px solid #c8d4d5;border-radius:12px;padding:12px;margin-top:8px;box-shadow:0 4px 20px #0002}
#anizer-pwa p{margin:0 0 8px}
#anizer-pwa button,#anizer-pwa summary{font:inherit;cursor:pointer;min-height:40px}
#anizer-pwa button{border:1px solid #173b45;border-radius:8px;background:#173b45;color:white;padding:6px 12px;margin:3px}
#anizer-pwa button:disabled{opacity:.6;cursor:wait}
#anizer-pwa button:focus-visible{outline:3px solid #d09227;outline-offset:2px}
#anizer-pwa details p{max-width:28em}
#anizer-pwa #anizer-pwa-install{position:relative;padding-right:60px}
#anizer-pwa [data-dismiss-install]{position:absolute;top:4px;right:4px;width:44px;height:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;color:#173b45;font-size:26px;line-height:1}
#anizer-pwa [data-dismiss-install]:hover{background:#173b4510}
body.anizer-editing #anizer-pwa-install{display:none}
@media(display-mode:standalone){body{box-sizing:border-box;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}._mainMenu{padding-bottom:env(safe-area-inset-bottom)}}
@media(max-width:700px){
 ._formEditFiche{box-sizing:border-box!important;top:calc(var(--anizer-viewport-top,0px) + env(safe-area-inset-top) + 8px)!important;left:max(8px,env(safe-area-inset-left))!important;transform:none!important;margin:0!important;width:calc(100% - max(8px,env(safe-area-inset-left)) - max(8px,env(safe-area-inset-right)))!important;min-width:0!important;height:calc(var(--anizer-viewport-height,100dvh) - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 16px)!important;max-height:100dvh;overflow-y:auto!important;padding:16px 12px max(18px,env(safe-area-inset-bottom))!important;scroll-padding-bottom:72px;overscroll-behavior:contain}
 ._formEditFiche textarea,._formEditFiche input{font-size:16px!important}
 ._formEditFiche .class_input_submit_Save,._formEditFiche .class_input_submit_Cancel{min-height:44px}
 #anizer-pwa:has(#anizer-pwa-update:not([hidden])){max-height:35dvh;overflow:auto}
}

/* Keep the update notice clear of the lower bar while the login form is open. */
body:has(._formLogin:not([style*="display: none"]):not([style*="display:none"])) #anizer-pwa:has(#anizer-pwa-update:not([hidden])){
 bottom:calc(max(12px,env(safe-area-inset-bottom,0px)) + 24px);
}
