/* Install bar, update bar and the iOS install sheet: small paper slips. Self-contained (token fallbacks). */
.pwa-bar{position:fixed;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:12px;
  width:min(560px,calc(100vw - 24px));padding:12px 14px;border:1.5px dashed var(--line,#D8CCB2);border-radius:8px;background:var(--surface,#FBF8F0);color:var(--ink,#16202B);box-shadow:0 12px 28px -14px rgba(22,32,43,.5)}
@media (max-width:860px){.pwa-bar{bottom:calc(84px + env(safe-area-inset-bottom))}}
body.public .pwa-bar{bottom:calc(16px + env(safe-area-inset-bottom))}
.pwa-bar-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--brand,#1E4FD0);color:var(--on-brand,#fff);flex:none}
.pwa-bar-mark .i{width:20px;height:20px}
.pwa-bar-text{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.pwa-bar-text b{font-weight:700}.pwa-bar-text span{color:var(--muted,#6A685F);font-size:13px}
.pwa-x{flex:none;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:6px;background:transparent;color:var(--muted,#6A685F);cursor:pointer}
.pwa-x:hover{color:var(--ink,#16202B)}.pwa-x .i{width:16px;height:16px}
.pwa-sheet{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center;background:rgba(15,22,32,.55)}
.pwa-sheet-body{width:min(520px,100%);padding:24px 24px calc(24px + env(safe-area-inset-bottom));border-radius:14px 14px 0 0;background:var(--surface,#FBF8F0);color:var(--ink,#16202B)}
.pwa-sheet-body b{display:block;margin-bottom:10px;font-size:20px;letter-spacing:-.02em}
.pwa-sheet-body ol{margin:0 0 18px;padding-left:20px;color:var(--ink,#16202B);line-height:1.6}
.pwa-key{display:inline-grid;place-items:center;width:22px;height:22px;border:1px solid var(--line,#D8CCB2);border-radius:5px;font-size:13px}
.pwa-bar .btn,.pwa-sheet .btn{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:9px 16px;border:2px solid var(--brand,#1E4FD0);border-radius:8px;background:var(--brand,#1E4FD0);color:var(--on-brand,#fff);font:700 14px/1 inherit;font-family:inherit;cursor:pointer}
.pwa-bar :focus-visible,.pwa-sheet :focus-visible{outline:3px solid var(--brand,#1E4FD0);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.pwa-bar,.pwa-sheet-body{animation:pwa-in .25s ease-out}}
@keyframes pwa-in{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}
.pwa-sheet-body{animation-name:pwa-sheet}@keyframes pwa-sheet{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}

/* App feel when installed: no rubber-band pull-to-refresh, no text selection on chrome, smooth page changes. */
@media (display-mode: standalone){
  html,body{overscroll-behavior-y:none}
  .topbar,.tabbar,.nav,.lp-bar{-webkit-user-select:none;user-select:none}
}
@view-transition{navigation:auto}
::view-transition-old(root),::view-transition-new(root){animation-duration:.18s}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
