/* Scoped installation UI; no changes to financial controls or auth permissions. */
:root body .pwa-install-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:10px;background:transparent;color:#a4a4ad;border:1px solid #41444b;border-radius:6px;cursor:pointer;box-shadow:none;transition:color .16s,background .16s;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
:root body .pwa-install-button svg{width:20px;height:20px;flex:none}
:root body .pwa-install-button.pwa-install-text{width:auto;height:auto;min-height:44px;padding:10px 14px;font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;white-space:nowrap;color:#e3e3e7}
:root body .pwa-install-text svg{display:none}
:root body .pwa-install-button[hidden]{display:none!important}
:root body .pwa-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(460px,calc(100% - 32px));max-width:none;height:fit-content;max-height:calc(100dvh - 48px);padding:24px;border:1px solid #41444b;border-radius:8px;background:#17181a;color:#eeeef0;font:14px/1.6 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;overflow:auto;box-shadow:0 24px 80px #0006}
.pwa-dialog::backdrop{background:#0009}
.pwa-dialog .pwa-dialog-head{position:sticky;top:-24px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-8px -8px 16px;padding:8px;background:var(--surface-2,#202124);z-index:1}
.pwa-dialog h2{font-size:20px;font-weight:600;line-height:1.4;margin:0}
.pwa-dialog p{margin:0 0 16px;color:#a4a4ad;font-size:14px;line-height:1.7}
.pwa-dialog dl{display:grid;gap:16px;margin:24px 0}
.pwa-dialog dt{font-size:13px;font-weight:600;color:#eeeef0}
.pwa-dialog dd{margin:4px 0 0;font-size:13px;color:#a4a4ad;line-height:1.7}
:root body .pwa-dialog button{min-height:44px;min-width:44px;padding:10px 14px;border:1px solid #41444b;border-radius:6px;background:transparent;color:#eeeef0;font-family:inherit;font-size:13px;font-weight:500;line-height:1.5;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;box-shadow:none;transition:background .16s,color .16s}
:root body .pwa-dialog .pwa-primary{width:100%;background:#eeeef0;color:#101112;border-color:#eeeef0;font-weight:600}
:root body .pwa-dialog button[hidden]{display:none!important}
:root body .pwa-dialog button:disabled{opacity:.5;cursor:wait}
.pwa-dialog [data-pwa-status]:empty{display:none}
.pwa-dialog [data-pwa-status]{font-size:12px;margin:16px 0 0}
[data-ui-hover="true"] body .pwa-install-button:hover,[data-ui-hover="true"] body .pwa-dialog button:hover{background:#202124;color:#eeeef0}
[data-ui-hover="true"] body .pwa-dialog .pwa-primary:hover{background:#fff;color:#101112}
:root body .pwa-install-button:active,:root body .pwa-dialog button:active{background:#303136}
:root body .pwa-install-button:focus-visible,:root body .pwa-dialog button:focus-visible{outline:2px solid #9fa4b2;outline-offset:3px}
@media(max-width:760px){:root body dialog.pwa-dialog{inset:0!important;width:calc(100% - 32px)!important;height:fit-content!important;max-height:calc(100dvh - 48px)!important;margin:auto!important;padding:20px}.pwa-dialog .pwa-dialog-head{top:-20px}}
@media(max-width:760px){
  :root body .pwa-install-button.pwa-install-text{width:44px;height:44px;min-width:44px;padding:10px;color:#a4a4ad}
  :root body .pwa-install-text svg{display:block}
  :root body .pwa-install-label{display:none}
}
@media(max-width:700px){.auth-landing .auth-brandbar{gap:12px;flex-wrap:wrap}.auth-landing .auth-header-tools{gap:8px;margin-left:auto}}
@media(prefers-reduced-motion:reduce){:root body .pwa-install-button,:root body .pwa-dialog button{transition:none}}
@media(display-mode:standalone) and (max-width:760px){body .app-header{height:calc(58px + env(safe-area-inset-top));min-height:calc(58px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top);padding-left:max(12px,env(safe-area-inset-left));padding-right:max(12px,env(safe-area-inset-right))}}
@media(display-mode:standalone){body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}}
