/* One viewport-bound wallet on both Hub routes, above all fixed controls. */
html body.hub-mode #hub-shell .hub-wallet-float.is-open {
 position:fixed!important;inset:0!important;top:0!important;right:0!important;
 bottom:0!important;left:0!important;width:100%!important;max-width:none!important;
 height:100vh!important;height:100dvh!important;margin:0!important;
 padding:16px!important;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))!important;
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 justify-content:center!important;z-index:20000!important;background:rgba(2,10,24,.76)!important;
 transform:none!important;overflow:hidden!important;pointer-events:auto!important;
 border-radius:0!important;border:0!important;box-shadow:none!important;
}
html body.hub-mode #hub-shell .hub-wallet-float.is-open #hub-wallet-popup {
 position:relative!important;inset:auto!important;top:auto!important;right:auto!important;
 bottom:auto!important;left:auto!important;transform:none!important;margin:0!important;
 width:100%!important;max-width:560px!important;min-width:0!important;height:auto!important;
 min-height:0!important;max-height:100%!important;box-sizing:border-box!important;
 overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;
 -webkit-overflow-scrolling:touch;scrollbar-gutter:stable;
 border-radius:16px!important;padding:0 14px 14px!important;
}
html body.hub-mode #hub-shell #hub-wallet-popup .hub-wallet-float-heading {
 position:sticky!important;top:0!important;z-index:2!important;
 display:flex!important;align-items:center!important;justify-content:space-between!important;
 gap:12px!important;margin:0 -14px 8px!important;padding:12px 14px!important;
 background:#0b2039!important;color:#dceeff!important;border-bottom:1px solid #365778;
}
html body.hub-mode #hub-shell #hub-wallet-popup .hub-wallet-float-heading strong {font-size:20px!important;line-height:1.3!important}
html body.hub-mode #hub-shell #hub-wallet-popup .hub-wallet-float-heading button {flex:0 0 44px!important;width:44px!important;height:44px!important;min-height:44px!important;font-size:26px!important}
html body.hub-mode #hub-shell #hub-wallet-popup > .hub-wallet-card {min-width:0!important;padding:8px 0!important}
html body.hub-mode #hub-shell #hub-wallet-popup .hub-wallet-actions,
html body.hub-mode #hub-shell #hub-wallet-popup .hub-wallet-metrics {grid-template-columns:repeat(2,minmax(0,1fr))!important}
html body.hub-mode #hub-shell #hub-wallet-popup input,
html body.hub-mode #hub-shell #hub-wallet-popup select,
html body.hub-mode #hub-shell #hub-wallet-popup textarea {max-width:100%;box-sizing:border-box;font-size:16px}
body.hub-mode:has([data-hub-wallet-float]) {overflow:hidden!important}
@media(max-width:360px){
 html body.hub-mode #hub-shell .hub-wallet-float.is-open {padding:8px!important}
 html body.hub-mode #hub-shell .hub-wallet-float.is-open #hub-wallet-popup {padding:0 10px 10px!important}
 html body.hub-mode #hub-shell #hub-wallet-popup .hub-wallet-float-heading {margin:0 -10px 8px!important;padding:10px!important}
 html body.hub-mode #hub-shell #hub-wallet-popup .hub-wallet-metrics {grid-template-columns:minmax(0,1fr)!important}
}
