#pwa-update{position:fixed;z-index:99999;left:12px;right:12px;bottom:90px;max-width:420px;margin:auto;padding:12px;background:#fff;border:1px solid #aaa;border-radius:12px;box-shadow:0 8px 30px #0002;font:14px system-ui}#pwa-update button{margin:8px;padding:8px 14px}.pwa-home{font-family:Inter,system-ui;max-width:440px;margin:8vh auto;padding:24px}.pwa-home img{width:150px}.pwa-home a{display:block;margin:16px 0;padding:20px;border:1px solid #ddd;border-radius:14px;color:#202024;text-decoration:none}.pwa-home small{display:block;margin-top:8px;color:#626269}.pwa-home h1{font-size:24px}.pwa-home button{padding:12px}.pwa-route{display:block;color:inherit;padding:12px;text-decoration:none;font:14px Inter,system-ui}a.personal-link{text-decoration:none;color:inherit}
@media(max-width:760px){
 body>.sw{width:100%;max-width:100%;min-width:0}
 .sw-body,.sw-header,.sw-header>div{min-width:0;max-width:100%}
 .sw-header{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
 .sw-header-actions{justify-content:flex-end;flex-wrap:wrap}
 .sw-header-actions a.sw-button{width:auto;padding:6px 10px;white-space:nowrap}
 .sw-period-filter{max-width:100%}
 .sw-period-filter select{min-width:0}
}

/* A waiting update must leave the Coach header, form and action tray clickable. */
body:has(> #app):has(> #pwa-update) > #app{height:calc(100dvh - var(--coach-update-space,112px));margin-top:var(--coach-update-space,112px)}
body:has(> #app) > #pwa-update{top:max(12px,env(safe-area-inset-top,0px));bottom:auto;display:flex;align-items:center;gap:8px;box-sizing:border-box;max-width:min(420px,calc(100vw - 24px))}
body:has(> #app) > #pwa-update button{flex-shrink:0;min-height:44px;margin:0}
