/* Install bar, update bar and the iOS install sheet. Tokens only (docs/UI.md). */
.pwa-bar { position: fixed; left: 50%; bottom: calc(18px + 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: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .pwa-bar { bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); } }
.pwa-bar-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--c-sun); color: #1E1B3A; flex: none; transform: rotate(-4deg); }
.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-family: var(--display); font-size: 1.02rem; } .pwa-bar-text span { color: var(--muted); font-size: .84rem; }
.pwa-x { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); cursor: pointer; }
.pwa-x:hover { color: var(--ink); } .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: var(--scrim); }
.pwa-sheet-body { width: min(520px, 100%); padding: 24px 24px calc(24px + env(safe-area-inset-bottom)); border-radius: 18px 18px 0 0; background: var(--surface); color: var(--ink); }
.pwa-sheet-body b { display: block; margin-bottom: 10px; font: 600 1.5rem var(--display); }
.pwa-sheet-body ol { margin: 0 0 18px; padding-left: 20px; color: var(--ink-2); line-height: 1.7; }
.pwa-key { display: inline-grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13px; }
@media (prefers-reduced-motion: no-preference) {
  .pwa-bar { 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: pwa-sheet .25s ease-out; } @keyframes pwa-sheet { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
/* App feel when installed: no pull-to-refresh rubber band, no text selection on chrome, smooth page changes. */
@media (display-mode: standalone) {
  html, body { overscroll-behavior-y: none; }
  .topbar, .tabbar, .topnav { -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; } }
