/* Hub layout v3 — VEXO cards: header card, channel card, chat card, members slide-over. Inner columns scroll; page containers untouched. */
.hv{--b:var(--border,#26262b);--p:#141417;--r:#1b1b1f;--m:var(--muted,#8e8e93);--a:var(--vx-accent,#3d7bf5);
 display:grid!important;grid-template-columns:288px minmax(0,1fr)!important;grid-template-rows:auto minmax(0,1fr);gap:12px;min-height:420px!important;max-height:none;height:calc(100dvh - 120px);
 border:0!important;border-radius:0!important;background:none!important;overflow:visible!important;position:relative}
.hv-head,.hv-side,.hv-chat{border:1px solid var(--b)!important;border-radius:14px!important;background:var(--p)!important}
/* header card */
.hv .hv-head{grid-column:1/-1;position:relative;overflow:hidden;display:flex!important;flex-direction:row!important;align-items:center!important;gap:14px;padding:14px 16px!important;margin:0!important;text-align:left!important;min-height:0!important}
.hv-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.18;filter:saturate(.7);pointer-events:none}
.hv-head::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(20,20,23,.92) 30%,rgba(20,20,23,.6));pointer-events:none}
.hv-head>:not(.hv-bg){position:relative;z-index:1}
.hv .hx-icon{width:52px;height:52px;border-radius:14px;flex:none;object-fit:cover;background:#232327;border:1px solid var(--b);margin:0!important}
.hv .hx-title{min-width:0;flex:1;text-align:left!important}
.hv .hx-title h1{font-size:19px!important;margin:0!important;line-height:1.25;display:flex;align-items:center;gap:6px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-desc{margin:2px 0 0;color:#c7c7cc;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-tags{margin:6px 0 0;display:flex;gap:6px;flex-wrap:wrap}
.hx-tag{display:inline-block;font-size:11px;font-weight:600;color:#c7c7cc;background:rgba(255,255,255,.05);border:1px solid var(--b);border-radius:999px;padding:2px 9px}
.hv-head .vx-hub-tbadges,.hv-head .hb-hero-meta{display:none!important}
.hv-acts{display:flex;align-items:center;gap:8px;flex:none}
.hv-avs{display:flex;align-items:center;gap:8px;background:none;border:1px solid var(--b);border-radius:999px;padding:3px 12px 3px 4px;color:#d1d1d6;font-size:13px;cursor:pointer}
.hv-avs:hover,.hv-avs[aria-pressed=true]{border-color:color-mix(in srgb,var(--a) 50%,var(--b))}
.hv-stack{display:flex}.hv-stack .cx-avatar{width:26px!important;height:26px!important;font-size:11px;margin-left:-8px;border:2px solid var(--p);box-sizing:content-box}.hv-stack .cx-avatar:first-child{margin-left:0}
.hv-count{color:var(--m);font-size:13px}
.hv-joined{font-size:13px;color:#8fd19e;border:1px solid rgba(143,209,158,.3);border-radius:999px;padding:5px 12px}
.hv-btn{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:10px;border:1px solid var(--b);background:var(--r);color:#d1d1d6;font-size:13px;cursor:pointer}
.hv-btn:hover{color:#fff;border-color:#3a3a40}.hv-btn svg{width:16px;height:16px}.hv .hx-chev{width:34px;padding:0;justify-content:center}
.hv-menuwrap{position:relative}.hv .hx-menu{position:absolute;right:0;left:auto;top:calc(100% + 6px);width:210px;z-index:60;background:#18181b;border:1px solid var(--b);border-radius:12px;padding:6px;display:grid;gap:2px}
.hv .hx-menu[hidden]{display:none}.hx-menu button{background:none;border:0;color:#d1d1d6;text-align:left;padding:8px 10px;border-radius:8px;font-size:14px;cursor:pointer}.hx-menu button:hover{background:var(--r);color:#fff}.hx-menu .is-warn{color:#f47272}
.hv .hv-head{overflow:visible}.hv-head .hv-bg{border-radius:14px}.hv-head::after{border-radius:14px}
/* channels card */
.hv .hv-side{display:flex!important;flex-direction:column;min-height:0;overflow:hidden!important;padding:0!important}
.hv .hx-chans{flex:1;min-height:0;overflow-y:auto;padding:10px!important;overscroll-behavior:contain}
.hv-label{margin:14px 8px 6px;font-size:12px;font-weight:600;color:var(--m);letter-spacing:0;text-transform:none}.hx-cat:first-child .hv-label{margin-top:4px}
.hv .hv-chan{position:relative;display:flex;align-items:center;gap:10px;padding:7px 10px 7px 8px!important;margin:2px 0;border-radius:12px!important;color:#c7c7cc!important;text-decoration:none;background:none!important;min-height:0!important;border:1px solid transparent}
.hv .hv-chan:hover{background:rgba(255,255,255,.035)!important}
.hv .hv-chan.is-active{background:color-mix(in srgb,var(--a) 13%,transparent)!important;border-color:color-mix(in srgb,var(--a) 28%,transparent);color:#fff!important}
.hv .hv-chan.is-active::before{content:"";position:absolute;left:-1px;top:10px;bottom:10px;width:3px;border-radius:3px;background:var(--a)}
.hv-tile{width:32px;height:32px;flex:none;border-radius:10px;display:grid;place-items:center;background:var(--r);border:1px solid var(--b);color:#a1a1a6}
.hv-tile svg{width:16px;height:16px}.hv-chan.is-active .hv-tile{color:var(--a);border-color:color-mix(in srgb,var(--a) 35%,var(--b))}
.hv-t-mega{color:#e0b66a}.hv-t-book{color:#8fb8f0}.hv-t-lock{color:#a1a1a6}
.hv-ct{min-width:0;flex:1;display:grid}.hv-ct b{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv-ct small{font-size:12px;color:var(--m);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400}
.hv .hv-chan.is-unread .hv-ct b{color:#fff}
/* chat card */
.hv .hv-chat{display:flex!important;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.hv .hx-chathead{flex:none;display:flex;align-items:center;gap:10px;padding:10px 12px 10px 14px!important;border-bottom:1px solid var(--b);height:auto}
.hv-chtitle{min-width:0;flex:1}.hv-chtitle h2{font-size:15px!important;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hv .hx-topic{display:block;color:var(--m);font-size:12.5px;border:0;padding:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hx-tools{margin-left:auto;display:flex;gap:4px}.hx-iconbtn{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;border:0;background:none;color:var(--m);cursor:pointer;font-size:16px}
.hx-iconbtn:hover{background:var(--r);color:#fff}.hx-iconbtn svg{width:18px;height:18px}
.hv .hb-back{display:none}
.hv-search{padding:8px 14px;border-bottom:1px solid var(--b)}.hv-search[hidden]{display:none}.hv-search input{width:100%;height:36px;border-radius:10px;background:var(--r);border:1px solid var(--b);color:inherit;padding:0 12px}
.hv .hb-scroll{flex:1;min-height:0!important;max-height:none!important;overflow-y:auto;padding:8px 0 8px!important;overscroll-behavior:contain}
.hv .hx-composer{flex:none;padding:0 12px 12px}
.hv .hb-compose{padding:6px!important;border:1px solid var(--b)!important;border-radius:16px!important;background:var(--r)!important;box-shadow:0 6px 20px rgba(0,0,0,.25)}
.hv .hb-compose textarea{background:none!important;border:0!important;border-radius:12px!important}
.hv .hb-readonly{margin:0;padding:10px 4px 2px;color:var(--m)}
/* members slide-over */
.hv-scrim{position:fixed;inset:0;z-index:80;background:rgba(0,0,0,.35)}.hv-scrim[hidden]{display:none}
.hv .hx-members{position:fixed;top:12px;right:12px;bottom:12px;width:300px;max-width:calc(100vw - 24px);z-index:81;display:flex;flex-direction:column;background:#141417;border:1px solid var(--b);border-radius:14px;transform:translateX(calc(100% + 24px));transition:transform .2s ease}
.hv .hx-members.is-open{transform:none}.hv .hx-members[hidden]{display:none}
.hx-mhead{flex:none;display:flex;align-items:center;justify-content:space-between;padding:10px 10px 10px 16px;border-bottom:1px solid var(--b);font-weight:600}
.hx-mlist{flex:1;min-height:0;overflow-y:auto;padding:6px 10px 14px;overscroll-behavior:contain}
.hx-mlist h3{font-size:12px;font-weight:600;color:var(--m);margin:14px 6px 6px}
.hx-mem{display:flex;align-items:center;gap:10px;padding:6px;border-radius:10px;color:#d1d1d6;text-decoration:none}.hx-mem:hover{background:var(--r)}
.hx-mem .cx-avatar{width:32px;height:32px;font-size:13px}.hx-mem>span{min-width:0;display:grid}.hx-mem b{font-size:14px;font-weight:500}.hx-mem small{color:var(--m);font-size:11.5px}
/* overview dialog */
.hx-over{padding:0!important;overflow:hidden;width:min(520px,94vw)!important;border-radius:14px!important}
.hx-over-banner{height:120px;background:linear-gradient(120deg,#16161a,#1e1e23)}.hx-over-banner img{width:100%;height:100%;object-fit:cover}
.hx-over-body{padding:0 20px 20px;max-height:calc(80vh - 120px);overflow:auto}.hx-over-body .hx-icon{width:64px;height:64px;border-radius:16px;margin-top:-32px;border:4px solid #141417;background:#232327;object-fit:cover}
.hx-over-tags{display:flex;gap:6px;flex-wrap:wrap}.hx-over .hb-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:8px;margin:14px 0}.hx-over .hb-stats div{padding:10px 12px;border-radius:10px}
.hx-over .hb-stats dt{font-size:12px;color:var(--m)}.hx-over .hb-stats dd{margin:2px 0 0;font-size:18px;font-weight:700}
@media (max-width:1100px){.hv{grid-template-columns:240px minmax(0,1fr)!important}.hv-desc{display:none}.hv-btn span{display:none}.hv-btn{padding:0 9px}}
/* phones + iOS app */
@media (max-width:760px){.hv{grid-template-columns:minmax(0,1fr)!important;gap:10px}
 .hv .hv-chat{display:none!important}.hv.show-chat .hv-side,.hv.show-chat .hv-head{display:none!important}.hv.show-chat{grid-template-rows:minmax(0,1fr)}.hv.show-chat .hv-chat{display:flex!important}
 .hv .hb-back{display:grid;font-size:26px}.hv .hx-members{top:auto;left:0;right:0;bottom:0;width:auto;max-width:none;height:78vh;border-radius:18px 18px 0 0;transform:translateY(100%)}.hv .hx-members.is-open{transform:none}}
html.vexo-ios-app .hv{grid-template-columns:minmax(0,1fr)!important;gap:10px}
html.vexo-ios-app .hv .hv-chat{display:none!important}html.vexo-ios-app .hv.show-chat .hv-side,html.vexo-ios-app .hv.show-chat .hv-head{display:none!important}
html.vexo-ios-app .hv.show-chat{grid-template-rows:minmax(0,1fr)}html.vexo-ios-app .hv.show-chat .hv-chat{display:flex!important}
html.vexo-ios-app .hv .hb-back{display:grid;font-size:28px}
html.vexo-ios-app .hv .hx-members{top:auto;left:0;right:0;bottom:0;width:auto;max-width:none;height:78vh;border-radius:18px 18px 0 0;transform:translateY(100%)}html.vexo-ios-app .hv .hx-members.is-open{transform:none}
@media (max-width:760px){.hv .hv-head{flex-wrap:wrap!important;padding:12px!important;gap:10px}.hv .hx-icon{width:44px;height:44px}.hv .hx-title h1{font-size:17px!important}.hv-acts{width:100%;justify-content:flex-start}.hv-acts .hv-menuwrap{margin-left:auto}.hv .hv-chan{padding:10px!important;background:rgba(255,255,255,.025)!important;border-color:var(--b);margin:6px 0}.hv .hv-chan.is-active{background:color-mix(in srgb,var(--a) 13%,transparent)!important}.hv-tile{width:38px;height:38px}}
html.vexo-ios-app .hv .hv-head{flex-wrap:wrap!important;padding:12px!important;gap:10px}html.vexo-ios-app .hv .hx-icon{width:44px;height:44px}html.vexo-ios-app .hv-acts{width:100%}html.vexo-ios-app .hv-acts .hv-menuwrap{margin-left:auto}
html.vexo-ios-app .hv .hv-chan{padding:10px!important;background:rgba(255,255,255,.025)!important;border-color:var(--b);margin:6px 0}html.vexo-ios-app .hv .hv-chan.is-active{background:color-mix(in srgb,var(--a) 13%,transparent)!important}html.vexo-ios-app .hv-tile{width:38px;height:38px}html.vexo-ios-app .hv-desc{display:none}
body:has(#hb-app.hv) .app-footer{display:none!important}
.hv-head .vx-hub-more{display:none!important}
.hv .hv-head .hv-bg{position:absolute!important;z-index:0}
.hv>.hv-chat,.hv>.hv-side{min-height:0!important;max-height:100%!important;height:auto!important}
html.vexo-ios-app .hv.show-chat,.hv.show-chat{grid-template-rows:minmax(0,1fr)!important}
@media (min-width:761px){html:not(.vexo-ios-app) .hv.show-chat{grid-template-rows:auto minmax(0,1fr)!important}}
.hv .hx-mem{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important}
.hv .hx-mem>span{display:flex!important;flex-wrap:wrap;align-items:center;gap:2px 6px;min-width:0}.hv .hx-mem>span>small{flex-basis:100%}
.hv .hx-mem>.cx-avatar,.hv .hx-mem>*:first-child{flex:none}
.hx-mname{color:inherit;text-decoration:none}.hx-mname:hover{text-decoration:underline}
.hv-stack a,.hv-stack .cx-avatar{pointer-events:none}
