/* Scoped installation control, shared by public and standalone headers. */
button.bs-pwa-install{
  box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:9px;
  flex:0 0 auto;width:44px;min-width:44px;min-height:44px;margin:0;padding:9px;
  border:1px solid #aacbea;border-radius:13px;background:linear-gradient(145deg,#fff,#eaf4ff);
  color:#154f87;font:inherit;font-size:14px;font-weight:700;line-height:1.4;cursor:pointer;
  box-shadow:0 3px 9px #164e7912;vertical-align:middle;
}
.bs-pwa-install svg{display:block;width:24px;height:24px;flex:0 0 24px}
.bs-pwa-install .bs-pwa-install-tray{stroke:#c65308}
.bs-pwa-install-label{display:none}
button.bs-pwa-install:hover{border-color:#e97825;background:#fff6ed}
button.bs-pwa-install:focus-visible,.bs-pwa-dialog button:focus-visible,.bs-pwa-dialog a:focus-visible{outline:3px solid #ef7c26;outline-offset:3px}
button.bs-pwa-install:disabled{cursor:default}
button.bs-pwa-install.is-installed{color:#286448;border-color:#81b99b;background:#f0faf4}
.v2b-header .v2b-header-main{grid-template-columns:44px minmax(0,1fr) auto;gap:10px;height:auto;min-height:64px}
.v2b-header .v2b-brand{min-width:0}
.v2b-header .v2b-head-actions{gap:7px}
.v2b-header .v2b-drawer{top:100%}
.city-topbar .city-topbar-in{flex-wrap:wrap;gap:10px}
.city-topbar .city-top-actions{flex-wrap:wrap}
.bs-pwa-owner-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.bs-pwa-owner-header .owner-brand{margin:0}
.bs-sc-admin>header,.lc-top,.bsm-public>.bsm-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.bs-notif-head{flex-wrap:wrap}
.bs-invoice-header>.bs-pwa-install{align-self:flex-start}
.bs-pwa-dialog{box-sizing:border-box;position:fixed;inset:0;width:min(460px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:24px;border:1px solid #aacbea;border-radius:20px;background:#fff;color:#172b46;font:inherit;line-height:1.7;box-shadow:0 16px 70px #102f5940;z-index:10000}
.bs-pwa-dialog::backdrop{background:#0c244ab3}
.bs-pwa-dialog h2{margin:0 0 14px;font-size:21px;color:#154f87;line-height:1.6}
.bs-pwa-dialog p{margin:12px 0}
.bs-pwa-dialog .bs-pwa-help-note{font-size:14px;color:#4b5d70}
.bs-pwa-dialog a{display:block;margin:12px 0;color:#154f87}
.bs-pwa-dialog button.bs-pwa-help-close{display:block;min-height:44px;margin:18px 0 0 auto;padding:9px 22px;border:0;border-radius:11px;background:#154f87;color:#fff;font:inherit;font-weight:700;cursor:pointer}
@media(min-width:1100px){.v2b-head-actions>.bs-pwa-install{width:auto;padding-inline:13px}.v2b-head-actions .bs-pwa-install-label{display:inline}}
@media(max-width:370px){
  .v2b-header .v2b-header-main{grid-template-columns:44px minmax(0,1fr);padding:7px 12px;gap:5px 10px}
  .v2b-header .v2b-brand{justify-self:end}
  .v2b-header .v2b-head-actions{grid-column:1 / -1;justify-content:flex-end}
  .v2b-head-actions>.bs-pwa-install{margin-right:auto}
  .v2b-head-actions .bs-pwa-install-label{display:inline;font-size:11px}
  .v2b-head-actions>.bs-pwa-install{width:auto;max-width:calc(100% - 100px);padding:7px;gap:5px}
  .bs-pwa-dialog{padding:20px}
}
@media print{.bs-pwa-install,.bs-pwa-dialog{display:none!important}}

/* Shared accessible regional install invitation. */
.bs-pwa-region-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.bs-pwa-region-actions button{flex:1 1 140px;min-height:46px;padding:10px 14px;border-radius:11px;font:inherit;font-weight:700;cursor:pointer}
.bs-pwa-region-install{border:1px solid #e97621;background:#ff6a00;color:#fff}
.bs-pwa-region-later{border:1px solid #aacbea;background:#f4f8ff;color:#154f87}

/* Build Setu install cards and browser-driven progress. */
.bs-pwa-dialog.bs-pwa-regional-prompt,.bs-pwa-dialog.bs-pwa-install-help,.bs-pwa-dialog.bs-pwa-install-status{width:min(440px,calc(100vw - 28px));padding:28px;border:1px solid #cbdff4;border-top:4px solid #ff6a00;border-radius:24px;background:linear-gradient(180deg,#f1f7ff 0,#fff 48%);text-align:center;box-shadow:0 28px 90px #0927474d}
.bs-pwa-brand{display:flex;align-items:center;justify-content:center;gap:14px;margin:0 0 22px}
.bs-pwa-brand img{width:80px;height:80px;object-fit:contain;border-radius:19px;border:1px solid #e2edf8;background:#fff;box-shadow:0 7px 22px #164e7912}
.bs-pwa-brand-word{color:#0d47a1;font-size:24px;font-weight:900;line-height:1.2;letter-spacing:.2px;text-align:left;white-space:nowrap}
.bs-pwa-brand-word strong{color:#ef6c00}
.bs-pwa-brand-word small{display:block;margin-top:6px;color:#60758d;font-size:10px;font-weight:500;letter-spacing:.3px}
.bs-pwa-regional-prompt h2,.bs-pwa-install-status h2{font-size:24px;line-height:1.5;margin:0 0 10px;color:#103d70}
.bs-pwa-regional-prompt p,.bs-pwa-install-status p{color:#50657c;font-size:15px;line-height:1.8}
.bs-pwa-region-actions{margin-top:24px;gap:10px}
.bs-pwa-region-actions button{border-radius:13px;min-height:48px;padding:11px 16px}
.bs-pwa-region-install{background:linear-gradient(135deg,#ff7d19,#ef6500);box-shadow:0 7px 16px #ef6c0026}
.bs-pwa-region-install:hover{background:#e65c00}
.bs-pwa-region-later{background:#fff;border-color:#d3e0ee;color:#486582}
.bs-pwa-dialog.bs-pwa-install-help .bs-pwa-help-close,.bs-pwa-dialog.bs-pwa-install-status .bs-pwa-help-close{margin:22px auto 0;min-width:132px;border-radius:13px}
.bs-pwa-install-help h2{font-size:19px}
.bs-pwa-install-help .bs-pwa-help-note{padding-top:12px;border-top:1px solid #e8eff7}
.bs-pwa-progress{display:block;appearance:none;-webkit-appearance:none;width:100%;height:9px;border:0;border-radius:999px;overflow:hidden;background:#e7eff9;margin:24px 0 8px}
.bs-pwa-progress[hidden]{display:none}
.bs-pwa-progress::-webkit-progress-bar{border-radius:999px;background:linear-gradient(90deg,#e7eff9 15%,#1565c0 40%,#ff7a14 55%,#e7eff9 80%);background-size:220% 100%;animation:bs-pwa-progress-motion 1.5s linear infinite}
.bs-pwa-progress::-moz-progress-bar{background:linear-gradient(90deg,#1565c0,#ff7a14);border-radius:999px}
.bs-pwa-install-status[data-stage="reported"]{border-top-color:#168256}
.bs-pwa-install-status[data-stage="reported"] h2{color:#126443}
@keyframes bs-pwa-progress-motion{from{background-position:110% 0}to{background-position:-110% 0}}
@media(max-width:370px){.bs-pwa-dialog.bs-pwa-regional-prompt,.bs-pwa-dialog.bs-pwa-install-help,.bs-pwa-dialog.bs-pwa-install-status{padding:22px}.bs-pwa-brand{gap:10px}.bs-pwa-brand img{width:68px;height:68px}.bs-pwa-brand-word{font-size:21px}.bs-pwa-regional-prompt h2{font-size:21px}}
@media(prefers-reduced-motion:reduce){.bs-pwa-progress::-webkit-progress-bar{animation:none}}

/* Chrome install readiness and Play Store style logo-ring progress. */
.bs-pwa-logo-shell{display:inline-flex;position:relative;flex:0 0 auto;align-items:center;justify-content:center}
.bs-pwa-install-status .bs-pwa-brand{padding-top:10px;padding-bottom:5px}
.bs-pwa-install-status .bs-pwa-brand img{border-radius:50%;padding:6px;box-sizing:border-box}
.bs-pwa-install-status[aria-busy="true"] .bs-pwa-logo-shell::after{content:"";position:absolute;inset:-8px;border:3px solid #dce8f6;border-top-color:#ff6a00;border-right-color:#1565c0;border-radius:50%;animation:bs-pwa-logo-spin 1s linear infinite;pointer-events:none}
.bs-pwa-install-status .bs-pwa-progress{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0);white-space:nowrap;border:0!important}
.bs-pwa-status-install{display:block;min-height:48px;margin:12px auto 0;padding:10px 22px;border-radius:13px;color:#fff;font:inherit;font-weight:700;cursor:pointer}
.bs-pwa-status-install[hidden]{display:none}
@keyframes bs-pwa-logo-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.bs-pwa-install-status[aria-busy="true"] .bs-pwa-logo-shell::after{animation:none}}
