/* A quiet, in-flow notice: it never covers the form's final controls. */
.pwa-update-notice{position:sticky;inset-block-start:0;z-index:100;display:flex;align-items:center;gap:14px;padding:calc(14px + env(safe-area-inset-top,0px)) max(18px,env(safe-area-inset-right,0px)) 14px max(18px,env(safe-area-inset-left,0px));background:#fff;color:var(--ink,#222428);border-block-end:1px solid var(--line,#dfe2e5);box-shadow:0 8px 22px rgba(24,30,36,.08);font-size:1rem;line-height:1.4;overflow-wrap:anywhere}
.pwa-update-notice[hidden]{display:none!important}
.pwa-update-icon{width:24px;height:24px;flex:none;color:var(--red,#e31b2b);fill:none;stroke:currentColor;stroke-width:1.8}
.pwa-update-copy{flex:1;min-width:0}.pwa-update-copy strong{display:block;font-size:1rem;font-weight:850}.pwa-update-copy p{margin:3px 0 0;color:#555b61;font-size:.875rem;max-width:78ch}
.pwa-update-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;flex:none}.pwa-update-notice button{min-height:44px;border:0;border-radius:10px;padding:10px 14px;font:inherit;font-size:.875rem;font-weight:800;cursor:pointer;touch-action:manipulation}.pwa-update-apply{background:var(--red,#e31b2b);color:#fff}.pwa-update-later{background:#f0f2f4;color:#333a40}.pwa-update-notice button:disabled{opacity:.6;cursor:wait}.pwa-update-notice button:focus-visible{outline:3px solid #222428;outline-offset:3px}
.pwa-update-reopen{display:none;background:transparent;color:var(--red-dark,#c91423);text-align:start}.pwa-update-notice.is-collapsed{gap:8px;padding-block:4px}.pwa-update-notice.is-collapsed .pwa-update-copy,.pwa-update-notice.is-collapsed .pwa-update-actions{display:none}.pwa-update-notice.is-collapsed .pwa-update-reopen{display:block}.pwa-update-notice.is-collapsed .pwa-update-icon{width:20px;height:20px}
/* The original sidebar is fixed, so reserve the actual notice height for it too. */
body.pwa-update-visible .admin-sidebar{inset-block-start:var(--dallo-update-notice-height,0px);inset-block-end:0;height:calc(100vh - var(--dallo-update-notice-height,0px));height:calc(100dvh - var(--dallo-update-notice-height,0px));max-height:calc(100dvh - var(--dallo-update-notice-height,0px))}
body.pwa-update-visible :is(.admin-toolbar,.public-header,.activity-header){top:var(--dallo-update-notice-height,0px)}
body.pwa-update-visible .menu-toggle{top:calc(var(--dallo-update-notice-height,0px) + 12px + env(safe-area-inset-top,0px))}
body.pwa-update-lock>:not(#pwaUpdateNotice){pointer-events:none}
@media(max-width:680px){.pwa-update-notice{align-items:flex-start;flex-wrap:wrap;gap:9px 12px}.pwa-update-copy{flex-basis:calc(100% - 40px)}.pwa-update-actions{padding-inline-start:36px;flex:1}.pwa-update-actions button{flex:1}.pwa-update-notice.is-collapsed{align-items:center;flex-wrap:nowrap}.pwa-update-notice.is-collapsed .pwa-update-reopen{flex:1}}
@media(max-height:480px){.pwa-update-notice{max-height:52dvh;overflow-y:auto;overscroll-behavior:contain}}
@media(max-width:980px) and (max-height:600px){body.pwa-update-visible .admin-toolbar{top:0}}
@media(forced-colors:active){.pwa-update-notice{border-block-end:1px solid CanvasText}.pwa-update-notice button{border:1px solid ButtonText}}
