/* Five hubs. Scoped to the administrator; Telegram styles remain unchanged. */
.admin-panel-root .hub-segments,.admin-panel-root .hub-sections{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px;min-width:0}
.admin-panel-root .hub-segments>button,.admin-panel-root .hub-sections>button{font:inherit;font-size:13px;min-height:44px;padding:10px 14px;border:1px solid var(--line);border-radius:12px;color:var(--text);background:var(--surface);cursor:pointer;overflow-wrap:anywhere}
.admin-panel-root .hub-segments>button[aria-current=page],.admin-panel-root .hub-sections>button[aria-current=page]{background:var(--accent);color:var(--on-accent,#fff);border-color:var(--accent);font-weight:800}
.admin-panel-root .hub-segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.admin-panel-root .hub-segments>button{min-width:0;padding:10px 6px}
.admin-panel-root .hub-sections button:focus-visible,.admin-panel-root .hub-segments button:focus-visible{outline:3px solid var(--accent);outline-offset:3px}
.admin-panel-root [hidden]{display:none!important}
.admin-panel-root .wallet-next{display:flex;flex-direction:column;gap:16px;min-width:0}
.admin-panel-root .wallet-next [id^=wallet-]{scroll-margin-top:90px}
.admin-panel-root .wallet-next .w-toolbar{flex-wrap:wrap}
.admin-panel-root .wallet-next .w-toolbar nav{display:flex;flex-wrap:wrap;gap:6px}
.admin-panel-root .wallet-next .w-accounts{display:flex;overflow-x:auto;scroll-snap-type:x proximity;gap:12px;padding-bottom:8px;max-width:100%}
.admin-panel-root .wallet-next .w-account{flex:0 0 min(250px,85%);scroll-snap-align:start}
@media(max-width:900px){
 .admin-panel-root .hub-sections{gap:6px}
 .admin-panel-root .hub-sections>button{flex:1 1 auto;font-size:12px;padding:8px 10px}
 .admin-panel-root .hub-segments>button{font-size:12px}
 .admin-panel-root .clients-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible}
 .admin-panel-root .clients-stats>button{min-width:0}
 .admin-panel-root .w-quick-metrics,.admin-panel-root .w-record-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .admin-panel-root .w-quick-metrics>article:last-child,.admin-panel-root .w-record-summary>article:last-child{grid-column:1/-1}
 .admin-panel-root .w-command-balance strong{font-size:clamp(26px,8vw,42px);overflow-wrap:anywhere}
 .admin-panel-root .w-toolbar nav>button{min-height:44px}
 .admin-panel-root .overview-live-layout,.admin-panel-root .overview-live-main{min-width:0;max-width:100%}
 .admin-shell.chat-focus .hub-sections,.admin-shell.chat-focus .hub-segments{display:none}
 .admin-panel-root .wallet-next .w-filters{grid-template-columns:minmax(0,1fr)}
}

.admin-panel-root .hub-telegram .settings-layout{grid-template-columns:minmax(0,1fr)}

@media(max-width:900px){
 .admin-panel-root .overview-action-wrap .overview-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;scroll-snap-type:none}
 .admin-panel-root .overview-action-wrap .overview-metrics>button{min-width:0;min-height:76px;width:auto}
 .admin-panel-root .overview-action-wrap .overview-metric-copy b{font-size:clamp(15px,4.6vw,20px);overflow-wrap:anywhere}
 .admin-panel-root .overview-action-wrap .overview-metric-copy small{white-space:normal}
}
