.pwa-nav{display:none}
.pwa-header-title,.pwa-back-row,.app-return-label{display:none}
.pwa-framed body{padding-bottom:0!important}
.pwa-framed .pwa-nav{display:none!important}
.pwa-standalone :is(button,a,[role="button"]){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.pwa-standalone :is(button,a,[role="button"]):active{filter:brightness(.92)}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.16s}
::view-transition-old(app-nav),::view-transition-new(app-nav){animation-duration:.08s}
::view-transition-old(app-header),::view-transition-new(app-header){animation-duration:.08s}
@media (max-width:800px){
  .pwa-standalone body{padding-bottom:calc(92px + env(safe-area-inset-bottom))}
  .pwa-standalone body[data-pwa-page] .wrap{width:calc(100% - 36px)}
  .pwa-standalone body[data-pwa-page] .header{display:flex;align-items:center;flex-wrap:nowrap;gap:11px;min-height:72px;padding-block:10px;border-bottom:1px solid #ffffff20;view-transition-name:app-header}
  .pwa-standalone body[data-pwa-page] .header .brand{flex:none;gap:0}
  .pwa-standalone body[data-pwa-page] .header .brand>span:last-child{display:none}
  .pwa-standalone body[data-pwa-page] .header .brand-mark,
  .pwa-standalone body[data-pwa-page] .header .logo{width:42px;height:42px}
  .pwa-standalone body[data-pwa-page] .header .brand img,
  .pwa-standalone body[data-pwa-page] .header .logo img{width:37px;height:37px;object-fit:contain}
  .pwa-standalone body[data-pwa-page] .pwa-header-title{display:block;min-width:0;margin-right:auto;color:#f8f4e9;font:750 17px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:-.02em}
  .pwa-standalone body[data-pwa-page="events"] .header-label,
  .pwa-standalone body[data-pwa-page="photos"] .header .portal-link{display:none}
  .pwa-standalone body[data-pwa-page="photos"] .header-actions{flex:none}
  .pwa-standalone body[data-pwa-page="photos"] .header-actions .outline{min-height:40px;padding:7px 10px;font-size:11px}
  .pwa-standalone body[data-pwa-page="events"] .portal-return-row,
  .pwa-standalone body[data-pwa-page="photos"] .pwa-back-row{display:flex;align-items:center;min-height:48px;padding-block:2px}
  .pwa-standalone body[data-pwa-page="events"] .portal-return-row{justify-content:space-between;gap:10px}
  .pwa-standalone body[data-pwa-page="events"] .portal-return-row .regular-return-label{display:none}
  .pwa-standalone body[data-pwa-page="events"] .portal-return-row .app-return-label{display:inline}
  .pwa-standalone body[data-pwa-page="events"] .portal-return-row .portal-return-link,
  .pwa-standalone body[data-pwa-page="photos"] .pwa-back-row .portal-return-link{display:inline-flex;align-items:center;gap:7px;min-height:44px;color:#f2c45b;font-size:13px;font-weight:750;text-decoration:none}
  .pwa-standalone body[data-pwa-page="events"] .hero{padding-block:24px 34px}
  .pwa-standalone body[data-pwa-page="events"] .hero h1{margin:0 0 10px;font-size:clamp(32px,9vw,40px);letter-spacing:-.04em}
  .pwa-standalone body[data-pwa-page="events"] .hero h1 br{display:none}
  .pwa-standalone body[data-pwa-page="events"] .hero .lead{margin:0;font-size:14px;line-height:1.55}
  .pwa-standalone body[data-pwa-page="events"] .hero-note{display:none}
  .pwa-standalone body[data-pwa-page="photos"] .hero{padding-block:22px 32px}
  .pwa-standalone body[data-pwa-page="photos"] .hero h1{margin:0 0 12px;font-size:clamp(31px,8vw,39px)}
  .pwa-standalone body[data-pwa-page="photos"] .hero .lead{margin-bottom:16px;font-size:14px;line-height:1.55}
  .pwa-standalone .pwa-nav{display:flex}
  .pwa-standalone body[data-pwa-page="documents"] .header .portal-link,
  .pwa-standalone body[data-pwa-page="expenses-admin"] .header [data-portal-return]:not(.brand){display:none}
  .pwa-standalone body[data-pwa-page="documents"] .header-actions,
  .pwa-standalone body[data-pwa-page="expenses-admin"] .header-actions{flex:none}
}
/* Shared by standalone pages and the persistent app shell. No blur/filter work. */
.pwa-standalone .pwa-nav{position:fixed;z-index:40;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:560px;margin-inline:auto;justify-content:center;gap:6px;padding:8px;border:1px solid #ffffff26;border-radius:24px;background:linear-gradient(165deg,#243b5c,#0b1b36 65%,#06112c);color:#cbd7e8;box-shadow:0 10px 24px #06112c38,inset 0 1px 0 #ffffff1c;view-transition-name:app-nav}
.pwa-standalone .pwa-nav a{display:flex;flex:1;min-width:0;min-height:52px;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:5px 8px;border:1px solid transparent;border-radius:16px;color:inherit;text-decoration:none;white-space:nowrap;font:650 11px/1.2 system-ui,-apple-system,sans-serif;touch-action:manipulation;transition:transform .12s ease,box-shadow .12s ease,background-color .12s ease,color .12s ease}
.pwa-standalone .pwa-nav svg{width:23px;height:23px;flex:none}
.pwa-standalone .pwa-nav a[aria-current]{color:#06112c;background:linear-gradient(160deg,#ffe4a4,#f2c45b);border-color:#ffe7b0;box-shadow:0 4px 10px #020b2630,inset 0 1px 0 #fff8;transform:translateY(-2px);font-weight:750}
.pwa-standalone .pwa-nav a[data-pending]:not([aria-current]){background:#243b5c;border-color:#f2c45b99;color:#ffe4a4}
.pwa-standalone .pwa-nav a{position:relative}
.pwa-standalone .pwa-nav a[data-pending]::after{content:'';position:absolute;top:5px;right:7px;width:8px;height:8px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:pwa-pending .8s linear infinite}
@keyframes pwa-pending{to{transform:rotate(360deg)}}
.pwa-standalone .pwa-nav a:active{transform:translateY(1px);filter:none;box-shadow:inset 0 2px 4px #020b2630}
.pwa-standalone .pwa-nav a:focus-visible{outline:3px solid #ffe4a4;outline-offset:2px}
@media(hover:hover) and (pointer:fine){.pwa-standalone .pwa-nav a:not([aria-current]):hover{background:#ffffff12;color:#fff}}
@media (prefers-reduced-motion:reduce){
  .pwa-standalone .pwa-nav a{transition:none}
  .pwa-standalone .pwa-nav a[data-pending]::after{animation:none;border-right-color:currentColor}
  ::view-transition-old(root),::view-transition-new(root),::view-transition-old(app-nav),::view-transition-new(app-nav){animation-duration:.01ms}
}
