.pwa-install { color: #172a43; font: 14px/1.7 Tahoma, Arial, sans-serif; text-align: right; }
.pwa-install *, .pwa-install *::before, .pwa-install *::after { box-sizing: border-box; }
.pwa-install[hidden], .pwa-install [hidden] { display: none !important; }
.pwa-install button, .pwa-install a { font-family: inherit; -webkit-tap-highlight-color: transparent; }
.pwa-banner { position: relative; display: flex; align-items: center; gap: 14px; padding: 14px max(20px, env(safe-area-inset-right)) 14px max(48px, env(safe-area-inset-left)); background: linear-gradient(110deg, #f2f7ff, #fff 60%, #fff9ef); border-bottom: 1px solid #dce7f3; }
.pwa-banner-icon { flex: 0 0 auto; width: 60px; height: 60px; background: #fff; border-radius: 15px; box-shadow: 0 3px 14px #0f172a0d; border: 1px solid #e4eaf2; }
.pwa-banner-copy { flex: 1; min-width: 0; }
.pwa-banner-copy strong { display: block; color: #172a43; font-size: 15px; }
.pwa-banner-copy span { display: block; margin-top: 3px; color: #526176; font-size: 12px; }
.pwa-banner-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pwa-install .pwa-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 13px; padding: 11px 18px; background: #0053b3; color: white; font-size: 13px; font-weight: 700; line-height: 1.5; text-decoration: none; cursor: pointer; transition: background .15s; }
.pwa-install .pwa-button:hover { background: #003f8a; }
.pwa-install .pwa-button:disabled { cursor: wait; opacity: .65; }
.pwa-install .pwa-text-button { border: 0; padding: 8px 2px; background: transparent; color: #0053b3; font-size: 12px; font-weight: 700; cursor: pointer; }
.pwa-install .pwa-close { position: absolute; top: 9px; left: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #526176; font: 25px/1 Arial, sans-serif; cursor: pointer; }
.pwa-install .pwa-close:hover { background: #eaf0f7; }
.pwa-install .pwa-launcher { position: fixed; z-index: 35; left: max(12px, env(safe-area-inset-left)); bottom: calc(96px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 9px 13px; background: #fff; color: #0053b3; border: 1px solid #d6e3f1; border-radius: 24px; box-shadow: 0 4px 18px #0f172a14; font-size: 12px; font-weight: 700; cursor: pointer; }
.pwa-dialog { position: fixed; inset: 0; width: min(480px, calc(100% - 28px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: auto; border: 1px solid #e4eaf2; border-radius: 26px; background: #fff; color: #172a43; box-shadow: 0 24px 100px #0f172a38; direction: rtl; text-align: right; font: 14px/1.8 Tahoma, Arial, sans-serif; overscroll-behavior: contain; }
.pwa-dialog::backdrop { background: #10223e99; backdrop-filter: blur(4px); }
.pwa-dialog-content { position: relative; padding: 28px; }
.pwa-install .pwa-dialog-close { top: 12px; left: 12px; background: #f3f6fa; }
.pwa-app-preview { text-align: center; padding: 8px 0 18px; }
.pwa-app-preview img { display: block; width: 88px; height: 88px; margin: 0 auto 12px; border: 1px solid #e4eaf2; border-radius: 22px; box-shadow: 0 8px 24px #0f172a0a; }
.pwa-eyebrow { font: 700 10px/1.5 Arial, sans-serif; letter-spacing: 2px; color: #0053b3; }
.pwa-app-preview h2 { margin: 8px 0; color: #172a43; font-size: 23px; line-height: 1.5; font-weight: 800; }
.pwa-app-preview p { margin: 0; color: #526176; font-size: 13px; }
.pwa-dialog h3 { margin: 4px 0 12px; font-size: 15px; font-weight: 700; color: #172a43; }
.pwa-install .pwa-button-wide { display: flex; width: 100%; margin-top: 12px; }
.pwa-note { margin: 12px 0; font-size: 13px; line-height: 1.9; color: #526176; }
.pwa-steps { display: grid; gap: 14px; list-style: none; padding: 0; margin: 16px 0; }
.pwa-steps li { display: flex; align-items: flex-start; gap: 11px; color: #35455c; font-size: 13px; }
.pwa-steps li > span { display: grid; place-items: center; flex: 0 0 29px; height: 29px; border-radius: 10px; background: #edf4ff; color: #0053b3; font-weight: 700; }
.pwa-steps strong { color: #172a43; }
.pwa-steps small { display: block; text-align: right; color: #526176; font-size: 11px; }
.pwa-inline-icon { display: inline-block; width: 19px; height: 19px; vertical-align: middle; margin: 0 3px; color: #0053b3; }
.pwa-context-note { border: 1px solid #f2d6a4; background: #fff8ec; border-radius: 12px; padding: 10px 12px; color: #79501c; }
.pwa-feedback { color: #0053b3; margin: 10px 0; font-size: 12px; overflow-wrap: anywhere; }
.pwa-feedback:empty { display: none; }
.pwa-install .pwa-copy-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 1px solid #dce7f3; border-radius: 13px; margin-top: 16px; padding: 10px; color: #0053b3; background: #f7faff; font-size: 13px; cursor: pointer; }
.pwa-footer-note { text-align: center; color: #526176; font-size: 11px; margin: 16px 0 0; }
.pwa-install :is(button, a):focus-visible { outline: 3px solid #ec9a1d; outline-offset: 3px; }
@media (min-width: 900px) {
    .pwa-banner { padding-inline: max(28px, calc((100vw - 1100px) / 2)); }
    .pwa-banner .pwa-close { left: 12px; top: calc(50% - 18px); }
    .pwa-install .pwa-launcher { bottom: 24px; }
}
@media (max-width: 580px) {
    .pwa-banner { gap: 10px; padding: 12px 14px 12px 44px; flex-wrap: wrap; }
    .pwa-banner-icon { width: 48px; height: 48px; border-radius: 12px; }
    .pwa-banner-copy strong { font-size: 13px; }
    .pwa-banner-copy span { font-size: 11px; }
    .pwa-banner-actions { flex-basis: 100%; padding-inline-start: 58px; }
    .pwa-banner-actions .pwa-button { font-size: 12px; padding: 9px 14px; }
    .pwa-dialog-content { padding: 24px 20px; }
    .pwa-app-preview h2 { font-size: 21px; }
}
@media print { .pwa-install { display: none !important; } }
