/* Install app + push notification UI (assets/js/pwa.js) */
.pwa-panel { background: #fff; border: 1px solid #eadfd2; border-radius: 16px; padding: 18px; color: #1a1a2e; }
.pwa-panel-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.pwa-panel-head img { border-radius: 12px; flex: none; }
.pwa-panel-head strong { display: block; font-size: 16px; }
.pwa-panel-head span { display: block; font-size: 13.5px; color: #5f6669; line-height: 1.5; }
.pwa-install-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pwa-installed-note { font-size: 13.5px; color: #1e6b36; font-weight: 600; }
.pwa-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 0;
    font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; }
.pwa-btn:disabled { opacity: .6; cursor: default; }
.pwa-btn--dark { background: #171426; color: #fff; }
.pwa-btn--gold { background: #c2185b; color: #fff; }
.pwa-btn--light { background: #f4efe8; color: #1a1a2e; }
.pwa-btn--link { background: none; color: #8a5a1f; text-decoration: underline; padding: 0 6px; }
.pwa-btn.is-done { background: #eaf6ee; color: #1e6b36; }
.pwa-muted { margin: 0 0 12px; color: #5f6669; font-size: 14px; line-height: 1.55; }
.pwa-warn { color: #8a4b00; }
.pwa-error { margin: 10px 0 0; color: #b4202f; font-size: 13.5px; }
.pwa-error:empty { display: none; }
.pwa-on { margin: 0 0 12px; color: #1e6b36; font-weight: 600; font-size: 14px; }
.pwa-switches { display: flex; flex-direction: column; border: 1px solid #f0e9e0; border-radius: 12px; overflow: hidden; }
.pwa-switch { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 14px; border-top: 1px solid #f0e9e0; margin: 0; cursor: pointer; }
.pwa-switch:first-child { border-top: 0; }
.pwa-switch strong { display: block; font-size: 14.5px; font-weight: 600; }
.pwa-switch small { display: block; color: #6b6f73; font-size: 12.5px; }
.pwa-switch input { width: 2.6em; height: 1.4em; flex: none; accent-color: #c2185b; cursor: pointer; }
.pwa-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.push-on [data-push-enable]:not(.is-done) { display: none !important; }

/* Bottom banner */
.pwa-banner { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1060; display: flex; align-items: center; gap: 12px; max-width: 520px; margin: 0 auto;
    padding: 12px 12px 12px 14px; background: #171426; color: #fff; border-radius: 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); animation: pwa-up .3s ease-out; }
.pwa-banner img { width: 42px; height: 42px; border-radius: 10px; flex: none; }
.pwa-banner-text { flex: 1; min-width: 0; }
.pwa-banner-text strong { display: block; font-size: 15px; }
.pwa-banner-text span { display: block; font-size: 12.5px; color: #cfcbe0; line-height: 1.4; }
.pwa-banner .pwa-btn { min-height: 38px; padding: 0 16px; flex: none; }
.pwa-banner-close { background: none; border: 0; color: #cfcbe0; font-size: 24px; line-height: 1; width: 32px; height: 32px; flex: none; cursor: pointer; }
.pwa-banner--admin { right: auto; max-width: 440px; }
@keyframes pwa-up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pwa-banner { animation: none; } }

/* Install instructions sheet */
.pwa-sheet-wrap { position: fixed; inset: 0; z-index: 1080; background: rgba(15, 12, 28, .55); display: flex; align-items: flex-end; justify-content: center; padding: 12px; }
.pwa-sheet { position: relative; width: 100%; max-width: 440px; background: #fff; color: #1a1a2e; border-radius: 20px; padding: 22px 22px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.pwa-sheet h3 { margin: 0 0 12px; font-size: 19px; }
.pwa-steps { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; font-size: 15px; }
.pwa-steps li { margin-bottom: 6px; }
.pwa-sheet-close { position: absolute; top: 10px; right: 12px; border: 0; background: #f4efe8; width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; }
@media (min-width: 600px) { .pwa-sheet-wrap { align-items: center; } }
[data-push-enable][hidden] { display: none !important; }
