*{box-sizing:border-box}
.hub-header{flex:none;display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:52px;padding:5px 12px;background:#0b4931;border-bottom:1px solid #4ca86d;color:#f2f9e9;font:14px Arial,sans-serif}
.hub-logo{flex:none;display:grid;place-items:center;width:82px;height:40px}
.hub-logo img{display:block;width:100%;height:100%;object-fit:contain}
.hub-nav,.hub-account,.hub-balances{display:flex;align-items:center;min-width:0}
.hub-nav{gap:4px}.hub-account{gap:6px;margin-left:auto}.hub-balances{gap:3px;padding:2px 4px;border:1px solid #5eab75;border-radius:8px;background:#123d2b}
.hub-nav a,.hub-icon{flex:none;display:grid;place-items:center;width:36px;height:36px;padding:5px;border:1px solid transparent;border-radius:8px;background:transparent;color:#eff9e9;text-decoration:none;cursor:pointer}
.hub-nav a:hover,.hub-icon:hover{border-color:#80d796;background:#215d3d}
.hub-nav svg,.hub-icon svg{display:block;width:24px;height:24px}
.hub-icon.small{width:26px;height:28px;padding:3px}.hub-icon.small svg{width:18px;height:18px}
.hub-icon:disabled{opacity:.55;cursor:wait}
.hub-icon.logout{color:#ff9d9d}.hub-icon.logout:hover{background:#693333;border-color:#ffa6a6}
.hub-balances>span{display:flex;align-items:center;gap:2px;max-width:110px;min-width:0;padding:0 4px;white-space:nowrap;color:#e4f8d9}
.hub-balances>span b{overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
#hubUsername{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:#ffeda9}
#hubToast{position:fixed;z-index:50;left:50%;bottom:18px;transform:translateX(-50%);max-width:min(90vw,480px);padding:10px 16px;border:1px solid #d4b468;border-radius:9px;background:#123d2b;color:#fff;box-shadow:0 7px 25px #0008;text-align:center}
#hubToast[hidden]{display:none}
.hub-wallet-dialog{width:min(420px,calc(100vw - 24px));max-height:85dvh;padding:22px;border:1px solid #85bd86;border-radius:12px;background:#103b2c;color:#f2f9e9;font:15px/1.45 Arial,sans-serif;box-shadow:0 16px 45px #0008}
.hub-wallet-dialog::backdrop{background:#000a}
.hub-wallet-dialog h2{margin:0 0 8px;font-size:20px}.hub-wallet-dialog p{margin:8px 0;color:#d6eacb}
.hub-dialog-close{position:absolute;top:8px;right:8px;border:0;background:none;color:#fff;font-size:26px;cursor:pointer}
#hubTransferForm{display:grid;gap:12px;margin-top:14px}#hubTransferForm label{display:grid;gap:5px}
#hubTransferForm input{width:100%;padding:10px;border:1px solid #80b787;border-radius:7px;background:#082a20;color:#fff;font:inherit}
.hub-transfer-actions{display:flex;gap:8px}.hub-transfer-actions button{flex:1;padding:10px 5px;border:1px solid #a6d59e;border-radius:7px;background:#2c754c;color:#fff;font:inherit;cursor:pointer}.hub-transfer-actions button:last-child{background:#305e46}
.hub-transfer-actions button:disabled{opacity:.55}
@media(max-width:760px){.hub-header{display:grid;grid-template-columns:64px minmax(0,1fr);gap:2px 6px;padding:3px 7px}.hub-logo{width:64px;height:32px}.hub-nav{grid-row:2;grid-column:1/-1;justify-content:center}.hub-account{grid-row:1;grid-column:2;justify-content:flex-end;gap:2px}.hub-nav a{width:36px;height:32px}.hub-nav svg{width:21px;height:21px}.hub-account>.hub-icon{width:28px;height:30px;padding:2px}.hub-account>.hub-icon svg{width:20px;height:20px}.hub-balances{gap:1px;padding:1px 2px;font-size:11px}.hub-balances>span{max-width:67px;padding:0 1px}.hub-icon.small{width:21px;height:24px}#hubUsername{max-width:58px;font-size:11px}}
@media(max-width:360px){.hub-logo{width:55px}.hub-header{grid-template-columns:55px minmax(0,1fr)}.hub-balances>span{max-width:53px}#hubUsername{max-width:43px}}
