/* Desktop wallet controls: shared states, restrained edges, no optical filters on foreground controls. */
@layer staff-liquid {
body.personal-glass{--wallet-control-face:linear-gradient(155deg,#ffffff99,#edf3ff52);--wallet-control-hover:linear-gradient(155deg,#ffffffe0,#e6efffb0);--wallet-control-edge:#304d7821;--wallet-control-shadow:inset 0 1px 0 #ffffffba,0 2px 5px #18395f0a;--wallet-control-primary:linear-gradient(145deg,#426cd3,#3159bd);--wallet-control-press:inset 0 2px 5px #153d7324;--wallet-control-selected:#dce8ffbc}
html[data-theme=dark] body.personal-glass{--wallet-control-face:linear-gradient(155deg,#aac6fa14,#22345345);--wallet-control-hover:linear-gradient(155deg,#adcaff25,#324b7360);--wallet-control-edge:#d1e3ff18;--wallet-control-shadow:inset 0 1px 0 #d3e4ff12,0 2px 5px #050e2210;--wallet-control-primary:linear-gradient(145deg,#4a70d0,#385db9);--wallet-control-press:inset 0 2px 5px #050c2540;--wallet-control-selected:#779ee635}
body.personal-glass :is(.lw-primary,.lw-outline,.lw-auth-submit,.wallet-qr-login-entry,.lw-desktop-header button,.lw-desktop-header a,.lw-desktop-quick button,.lw-desktop-balance button,.wallet-access-link,.modal .btn){display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:8px!important;min-height:38px!important;padding:9px 15px!important;border:1px solid var(--wallet-control-edge)!important;border-radius:12px!important;background:var(--wallet-control-face)!important;color:var(--m-accent)!important;box-shadow:var(--wallet-control-shadow)!important;font-size:13px!important;line-height:1.4!important;font-weight:500!important;text-decoration:none!important;cursor:pointer!important;transition:background .16s,box-shadow .16s,transform .12s!important}
body.personal-glass :is(.lw-primary,.lw-auth-submit,.modal .btn.primary){background:var(--wallet-control-primary)!important;border-color:#6089e550!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff33,0 3px 8px #21459220!important}
body.personal-glass :is(.lw-primary,.lw-auth-submit){min-height:44px!important;padding:12px 19px!important;border-radius:13px!important}
body.personal-glass :is(.wallet-qr-login-entry){min-height:44px!important;width:100%!important}
body.personal-glass .lw-desktop-header button:not(.wallet-mobile-entry):not([type=submit]){width:36px!important;min-height:36px!important;padding:8px!important;border-radius:11px!important}
body.personal-glass :is(.lw-desktop-header,.lw-desktop-quick) button>.ico,body.personal-glass .wallet-mobile-entry>.ico{width:17px!important;height:17px!important;stroke-width:1.7!important}
body.personal-glass #desktop-quick-search{display:flex!important;align-items:center!important;padding:3px 4px 3px 12px!important;background:var(--wallet-control-face)!important;border:1px solid var(--wallet-control-edge)!important;border-radius:13px!important;box-shadow:inset 0 1px 0 #ffffff14!important}
body.personal-glass #desktop-quick-search input{background:transparent!important;box-shadow:none!important}
body.personal-glass #desktop-quick-search button{width:29px!important;height:29px!important;min-height:29px!important;padding:6px!important;border:0!important;border-radius:9px!important;box-shadow:none!important;background:transparent!important}
body.personal-glass :is(.lw-tabs,.lw-filters,.segmented){display:flex!important;gap:3px!important;padding:3px!important;border:1px solid var(--wallet-control-edge)!important;border-radius:12px!important;background:var(--wallet-control-face)!important;box-shadow:inset 0 1px 0 #ffffff0a!important}
body.personal-glass :is(.lw-tabs,.lw-filters,.segmented) button{min-height:31px!important;padding:6px 13px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:var(--m-muted)!important;box-shadow:none!important;font-size:12px!important;font-weight:500!important;line-height:1.4!important;white-space:nowrap!important;transition:background .16s,color .16s!important}
body.personal-glass :is(.lw-tabs,.lw-filters,.segmented) button.active{background:var(--wallet-control-selected)!important;color:var(--m-accent)!important;border-color:var(--wallet-control-edge)!important;box-shadow:inset 0 1px 0 #ffffff12!important}
body.personal-glass :is(button,a):focus-visible{outline:2px solid var(--m-focus)!important;outline-offset:3px!important}
body.personal-glass :is(.lw-primary,.lw-outline,.lw-auth-submit,.wallet-qr-login-entry,.lw-desktop-header button,.lw-desktop-quick button,.lw-desktop-balance button,.wallet-access-link,.modal .btn):active:not(:disabled){transform:translateY(1px)!important;opacity:1!important;box-shadow:var(--wallet-control-press)!important}
body.personal-glass :is(button,.btn):disabled{opacity:.46!important;cursor:default!important;transform:none!important;box-shadow:none!important}
body.personal-glass :is(.modal .btn.danger,.lw-outline.danger){background:var(--m-danger-bg)!important;color:var(--m-danger)!important;border-color:#d1678030!important}
body.personal-glass .lw-desktop-nav .nav-item.active{background:var(--wallet-control-selected)!important;border-color:var(--wallet-control-edge)!important;box-shadow:inset 0 1px 0 #ffffff14!important}
body.personal-glass .lw-desktop-analysis :is(.desktop-merchant-table,.lw-table-scroll) :is(th,td){background:transparent!important}
/* Desktop page tabs are navigation, not an App-sized segmented card. */
body.personal-glass .workspace-section-tabs{display:flex!important;align-items:center!important;gap:24px!important;width:fit-content!important;max-width:100%!important;padding:0!important;margin:0 0 24px!important;border:0!important;border-bottom:1px solid var(--m-line)!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
body.personal-glass .workspace-section-tabs .tab{position:relative!important;flex:none!important;width:auto!important;min-height:40px!important;padding:9px 2px 12px!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--m-muted)!important;box-shadow:none!important;font-size:13px!important;font-weight:500!important}
body.personal-glass .workspace-section-tabs .tab.active{color:var(--m-accent)!important;font-weight:600!important;background:transparent!important}
body.personal-glass .workspace-section-tabs .tab.active:after{content:''!important;position:absolute!important;bottom:-1px!important;left:0!important;right:0!important;height:2px!important;border-radius:2px!important;background:var(--m-accent)!important}
@media(max-width:1100px){body.personal-glass #desktop-quick-search{display:none!important}}
@media(min-width:901px){body.personal-glass .lw-desktop-header .menu-mobile{display:none!important}}
@media(hover:hover){body.personal-glass :is(.lw-outline,.wallet-qr-login-entry,.lw-desktop-header button,.lw-desktop-quick button,.lw-desktop-balance button,.wallet-access-link,.modal .btn:not(.primary)):hover:not(:disabled){background:var(--wallet-control-hover)!important}body.personal-glass :is(.lw-primary,.lw-auth-submit,.modal .btn.primary):hover:not(:disabled){box-shadow:inset 0 1px 0 #ffffff50,0 4px 11px #183c7a2b!important}}
@media(prefers-reduced-motion:reduce){body.personal-glass :is(button,.btn){transition:none!important;transform:none!important}}
}
/* A square sidebar edge must agree in the shell, optical clipping and rim. */
@layer staff-liquid {
@media(max-width:900px){
 body.personal-glass .lw-desktop-header.topbar{display:grid!important;grid-template-columns:36px minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important;height:auto!important;min-height:64px!important;padding:12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left))!important}
 body.personal-glass .lw-desktop-header.topbar>div:first-of-type{min-width:0!important;margin:0!important}
 body.personal-glass .lw-desktop-header.topbar h1{min-width:0!important;margin:0!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important;font-size:14px!important;line-height:1.6!important}
 body.personal-glass .lw-desktop-header.topbar>div:last-child{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:6px!important;margin:0!important;min-width:0!important}
 body.personal-glass .lw-desktop-header.topbar button{flex:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:36px!important;height:36px!important;min-width:36px!important;width:36px!important;padding:8px!important;gap:6px!important;border-radius:10px!important}
 body.personal-glass .lw-desktop-header.topbar button>.ico{width:17px!important;height:17px!important;flex:none!important}
 body.personal-glass .lw-desktop-header.topbar .wallet-mobile-entry{width:auto!important;padding:8px 11px!important;font-size:12px!important}
}
@media(max-width:600px){
 body.personal-glass .lw-desktop-header.topbar .wallet-mobile-entry{width:36px!important;padding:8px!important}
 body.personal-glass .lw-desktop-header.topbar .wallet-mobile-label,
 body.personal-glass .lw-desktop-header.topbar .wallet-mobile-entry>.ico:last-child{display:none!important}
}
}

