/* hub1 20261030: hub switch + product-hub side menu (mk7 palette) */
/* base = same metrics as .marketer-mode-toggle-btn (marketer-dashboard.css), for pages that don't load that sheet */
.hub1-switch-wrap{padding:10px 16px 4px}
.hub1-switch-wrap.hub1-mob{width:100%;padding:0;margin-top:6px}
.hub1-switch-btn{width:100%;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:10px 12px;font-size:.82rem;font-weight:800;box-shadow:0 4px 14px rgba(74,63,107,.28);cursor:pointer;transition:filter .15s,transform .15s}
.hub1-switch-btn:hover{filter:brightness(1.07);transform:translateY(-1px)}
.hub1-hide{display:none!important}
.hub1-switch-btn{background:linear-gradient(135deg,#5b4b8a,#7a68ad)!important;color:#fff!important;border:0!important}
.hub1-switch-btn.is-product{background:linear-gradient(135deg,#4a3f6b,#5b4b8a)!important}
.hub1-switch-wrap{animation:hub1Pop .35s ease both}
.hub1-menu{list-style:none;margin:0}
.hub1-menu li{animation:hub1In .38s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 45ms)}
.hub1-label{animation:hub1In .3s ease both}
.admin-nav.hub1-leaving>*{transition:opacity .2s ease,transform .2s ease;opacity:0;transform:translateX(-14px)}
.hub1-sheet-grid{margin-bottom:6px}
.mn-sheet-item.hub1-sheet-item.is-active{outline:2px solid #5b4b8a;outline-offset:-2px}
@keyframes hub1In{from{opacity:0;transform:translateX(-12px)}to{opacity:1;transform:none}}
@keyframes hub1Pop{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.hub1-menu li,.hub1-label,.hub1-switch-wrap{animation:none}.admin-nav.hub1-leaving>*{transition:none}}
/* hub1b: hide leftover 主菜单 label in product hub */
body.hub1-product #sidebar-admin-wraper .sh-nav-label,
body.hub1-product #sidebar-admin-wraper .inf-nav-label:not(.hub1-label),
body.hub1-product #sidebar-admin-wraper .admin-nav-label,
body.hub1-product #sidebar-admin-wraper .nav-section-label{display:none!important}
html body #sidebar-admin-wraper .admin-nav > .hub1-hide,
html body #sidebar-admin-wraper .admin-nav .inf-nav-label.hub1-hide{display:none!important}
html body #sidebar-admin-wraper#sidebar-admin-wraper .admin-nav .inf-nav-label.hub1-hide,
html body #sidebar-admin-wraper#sidebar-admin-wraper .admin-nav > .hub1-hide{display:none!important}
.mn-sheet .hub1-hide{display:none!important}
/* wa3 20261104: re-inserted switch buttons do not re-play the pop */
.hub1-switch-wrap.hub1-noanim{animation:none}

/* hub-btn1 20261106: align hub switch with rail nav icons (left inset was too tight) */
@media (min-width: 1200px), (min-width: 1025px) and (hover: hover) and (pointer: fine) {
  /* expanded/pinned: restore 16px side inset like .marketer-mode-toggle-wrap base */
  html body #sidebar-admin-wraper#sidebar-admin-wraper .hub1-switch-wrap.marketer-mode-toggle-wrap:not(.hub1-mob):not(.marketer-mode-toggle-wrap--mobile):not(.marketer-mode-toggle-wrap--dashboard-mobile) {
    padding: 6px 16px 8px !important;
  }
  /* collapsed rail: left 16px so 44px tile centers with nav icons (~38px) */
  html:not(.vt-sb-open):not(.vt-sb-pinned):not(.dashboard-create-embed) body #sidebar-admin-wraper#sidebar-admin-wraper .hub1-switch-wrap.marketer-mode-toggle-wrap:not(.hub1-mob):not(.marketer-mode-toggle-wrap--mobile):not(.marketer-mode-toggle-wrap--dashboard-mobile) {
    padding: 6px 8px 10px 20px !important;
  }
}
