/* Header only. Keep avatar dimensions and sidebar/table rules unchanged. */
body.client-shell header .profile-menu,
body.client-shell header .profile-menu[open]{padding:0;align-self:center}
body.client-shell header .profile-menu>summary{margin:0;flex:none;box-sizing:border-box;transform:none;border-radius:50%;outline-offset:4px}
body.client-shell header .profile-menu[open]>summary{box-shadow:0 0 0 3px #d9b45f;background:transparent}
body.client-shell header .profile-menu>summary:focus-visible{outline:2px solid #f4dc89}
body.client-shell header .profile-menu .account-panel{position:absolute;top:calc(100% + 14px);right:0;width:min(300px,calc(100vw - 32px));max-height:calc(100dvh - 110px);overflow:auto;gap:0;padding:16px;background:#0b2925;border-color:#857344;border-radius:18px;box-shadow:0 16px 40px #0006}
body.client-shell header .account-panel .account-identity{padding:0 4px 12px;overflow-wrap:anywhere}
body.client-shell header .account-action-group{border-top:1px solid #45645b;padding:10px 0 6px}
body.client-shell header .account-action-group h3{margin:0 8px 6px;font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#a7b9b1}
body.client-shell header .account-action-group button,
body.client-shell header .account-action-group #avatarOpen{min-height:44px;padding:8px 10px;margin:0;font-size:14px;line-height:1.4;background:transparent;border:1px solid transparent;border-radius:8px;color:#f5edd9;text-align:left;justify-content:flex-start}
body.client-shell header .account-action-group button:hover{background:#194a3e;border-color:#527168}
body.client-shell header .account-action-group .account-logout{color:#f0b5ad}
body.client-shell header .balance-tile{align-items:stretch;text-align:left}
body.client-shell header .balance-tile strong{display:block;width:100%;text-align:right;font-variant-numeric:tabular-nums}
body.client-shell header .wallet-quick-actions button{justify-content:center;white-space:nowrap}
body.client-shell header .wallet-quick-actions .payment-icon{margin:0;flex:0 0 22px}
@media(max-width:1023px){
 body.client-shell header .client-wallet-bar{grid-template-columns:repeat(4,minmax(0,1fr))}
 body.client-shell header .wallet-quick-actions{grid-row:auto;grid-column:1/-1;order:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:0}
 body.client-shell header .wallet-quick-actions button{width:100%;margin:0;padding:8px 12px}
}
@media(max-width:600px){
 body.client-shell header .client-wallet-bar{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:1023px){body.client-shell header .client-wallet-bar{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){
 body.client-shell:not(.playing)>header{padding:10px 12px;gap:10px}
 body.client-shell header .balance-tile{height:52px;min-height:52px;padding:6px;gap:4px}
 body.client-shell header .balance-tile small{font-size:12px}
 body.client-shell header .balance-tile strong{font-size:16px}
 body.client-shell header .wallet-quick-actions button{height:42px;min-height:42px;font-size:15px}
}
