/* VocalLab unified header - loaded last on every page */
html body .topbar,
html body .top{
  position:fixed!important;
  top:12px!important;
  left:50%!important;
  transform:translateX(-50%)!important;
  z-index:9999!important;
  width:min(1180px,calc(100% - 28px))!important;
  min-height:66px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:12px 16px!important;
  border:1px solid rgba(148,163,184,.2)!important;
  border-radius:22px!important;
  background:rgba(7,9,18,.82)!important;
  backdrop-filter:blur(18px)!important;
  box-shadow:0 18px 50px rgba(0,0,0,.24)!important;
  overflow:visible!important;
}
html body .topbar .brand,
html body .top .brand{
  display:flex!important;
  align-items:center!important;
  gap:12px!important;
  min-width:0!important;
  flex:1 1 auto!important;
  overflow:hidden!important;
  color:#f8fafc!important;
  text-decoration:none!important;
  font-size:22px!important;
  font-weight:950!important;
  letter-spacing:-.04em!important;
}
html body .topbar .logo,
html body .top .logo,
html body .topbar .brand .logo,
html body .top .brand .logo{
  width:40px!important;
  height:40px!important;
  min-width:40px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#22d3ee,#facc15)!important;
  color:#07111f!important;
  font-size:0!important;
  font-weight:950!important;
  flex:0 0 auto!important;
  box-shadow:0 12px 32px rgba(34,211,238,.16)!important;
}
html body .topbar .logo:before,
html body .top .logo:before{content:"VL"!important;font-size:16px!important;letter-spacing:-.08em!important}
html body .topbar .brand span:last-child,
html body .top .brand span:last-child{
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
}
html body .topbar .top-actions,
html body .top .top-actions,
html body .topbar .nav,
html body .top .nav{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:8px!important;
  flex:0 0 auto!important;
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  overflow:visible!important;
  white-space:nowrap!important;
}
html body .topbar .pill,
html body .top .pill,
html body .topbar .top-btn,
html body .top .top-btn{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  height:42px!important;
  min-width:42px!important;
  width:auto!important;
  padding:10px 14px!important;
  border-radius:16px!important;
  border:1px solid rgba(148,163,184,.2)!important;
  background:rgba(255,255,255,.06)!important;
  color:#dbe4f0!important;
  text-decoration:none!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1!important;
  white-space:nowrap!important;
  box-shadow:0 10px 26px rgba(0,0,0,.12)!important;
  flex:0 0 auto!important;
}
html body .topbar .login-pill,
html body .top .login-pill{
  background:linear-gradient(135deg,rgba(34,211,238,.18),rgba(250,204,21,.16))!important;
  border-color:rgba(250,204,21,.34)!important;
  color:#fff!important;
}
html body .topbar .login-icon,
html body .top .login-icon{
  width:24px!important;
  height:24px!important;
  border-radius:10px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#22d3ee,#facc15)!important;
  color:#07111f!important;
  font-weight:950!important;
}
html body .topbar .user-chip,
html body .top .user-chip{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  padding:0!important;
  border-radius:50%!important;
}
html body .topbar .user-avatar,
html body .top .user-avatar{
  width:34px!important;
  height:34px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  overflow:hidden!important;
  background:linear-gradient(135deg,#22d3ee,#facc15)!important;
  color:#07111f!important;
  font-weight:950!important;
}
html body .topbar .user-avatar img,
html body .top .user-avatar img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
}
html body .topbar .site-menu,
html body .top .site-menu{
  position:relative!important;
  display:inline-flex!important;
  flex:0 0 auto!important;
  overflow:visible!important;
}
html body .topbar .site-menu-backdrop,
html body .top .site-menu-backdrop{
  position:fixed!important;
  inset:0!important;
  z-index:10000!important;
  background:transparent!important;
  display:none!important;
}
html body .topbar .site-menu-panel,
html body .top .site-menu-panel{
  position:absolute!important;
  top:calc(100% + 10px)!important;
  right:0!important;
  left:auto!important;
  z-index:10001!important;
  min-width:220px!important;
  width:max-content!important;
  max-width:calc(100vw - 24px)!important;
  max-height:calc(100vh - 90px)!important;
  overflow:auto!important;
  padding:8px!important;
  border:1px solid rgba(148,163,184,.2)!important;
  border-radius:18px!important;
  background:rgba(8,12,24,.96)!important;
  box-shadow:0 22px 52px rgba(0,0,0,.34)!important;
  display:none!important;
  flex-direction:column!important;
  gap:6px!important;
}
html body .site-menu.open .site-menu-panel,
html body .site-menu.open .site-menu-backdrop{display:flex!important}
html body .topbar .site-menu-link,
html body .top .site-menu-link,
html body .topbar .site-menu-action,
html body .top .site-menu-action{
  display:flex!important;
  align-items:center!important;
  gap:10px!important;
  width:100%!important;
  padding:11px 12px!important;
  border:0!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.05)!important;
  color:#e2e8f0!important;
  text-decoration:none!important;
  font-weight:800!important;
  text-align:left!important;
  cursor:pointer!important;
}
html body .topbar .site-menu-link span,
html body .top .site-menu-link span,
html body .topbar .site-menu-action span,
html body .top .site-menu-action span{
  width:26px!important;
  height:26px!important;
  border-radius:9px!important;
  display:grid!important;
  place-items:center!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  flex:0 0 auto!important;
}
html body .topbar .site-menu-link strong,
html body .top .site-menu-link strong,
html body .topbar .site-menu-action strong,
html body .top .site-menu-action strong{
  font-size:14px!important;
  line-height:1.2!important;
}
html body .topbar .hidden,
html body .top .hidden{display:none!important}

@media (max-width: 640px){
  html body .topbar,
  html body .top{
    top:8px!important;
    width:calc(100% - 14px)!important;
    max-width:calc(100% - 14px)!important;
    padding:10px!important;
    gap:6px!important;
    min-height:56px!important;
  }
  html body .topbar .brand,
  html body .top .brand{
    gap:6px!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:50vw!important;
    font-size:18px!important;
  }
  html body .topbar .brand span:last-child,
  html body .top .brand span:last-child{
    max-width:100px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  html body .topbar .pill,
  html body .top .pill,
  html body .topbar .top-btn,
  html body .top .top-btn{
    width:36px!important;
    height:36px!important;
    min-width:36px!important;
    padding:0!important;
    border-radius:12px!important;
    font-size:12px!important;
  }
  html body .topbar .top-actions,
  html body .top .top-actions,
  html body .topbar .nav,
  html body .top .nav{
    gap:4px!important;
  }
  html body .topbar .login-text,
  html body .top .login-text,
  html body .topbar .user-name,
  html body .top .user-name,
  html body .topbar .library-pill span:last-child,
  html body .top .library-pill span:last-child{
    display:none!important;
  }
  html body .topbar .menu-icon,
  html body .top .menu-icon{
    width:36px!important;
    min-width:36px!important;
    padding:6px 0!important;
    font-size:17px!important;
  }
  html body .topbar .login-icon,
  html body .top .login-icon{
    width:20px!important;
    height:20px!important;
    border-radius:8px!important;
    font-size:12px!important;
  }
  html body .topbar .user-chip,
  html body .top .user-chip{
    width:36px!important;
    height:36px!important;
  }
  html body .topbar .user-avatar,
  html body .top .user-avatar{
    width:30px!important;
    height:30px!important;
  }
  html body .topbar .site-menu-panel,
  html body .top .site-menu-panel{
    position:fixed!important;
    top:58px!important;
    left:8px!important;
    right:8px!important;
    width:auto!important;
    min-width:0!important;
    max-width:calc(100vw - 16px)!important;
    max-height:calc(100vh - 70px)!important;
  }
}

@media (max-width: 380px){
  html body .topbar .brand span:last-child,
  html body .top .brand span:last-child{max-width:74px!important}
  html body .topbar .pill,
  html body .top .pill,
  html body .topbar .top-btn,
  html body .top .top-btn{min-width:36px!important;height:36px!important;padding:7px 8px!important}
  html body .topbar .user-chip,
  html body .top .user-chip{width:36px!important;height:36px!important}
  html body .topbar .user-avatar,
  html body .top .user-avatar{width:30px!important;height:30px!important}
}

@media (max-width: 640px){
  html body .topbar #libraryLink,
  html body .top #libraryLink,
  html body .topbar #authLink,
  html body .top #authLink,
  html body .topbar #profileLink,
  html body .top #profileLink,
  html body .topbar .site-menu .menu-icon,
  html body .top .site-menu .menu-icon{
    width:36px!important;
    min-width:36px!important;
    max-width:36px!important;
    height:36px!important;
    padding:0!important;
    gap:0!important;
    border-radius:12px!important;
    flex:0 0 36px!important;
  }
  html body .topbar #libraryLink span:last-child,
  html body .top #libraryLink span:last-child,
  html body .topbar #authLink .login-text,
  html body .top #authLink .login-text{
    display:none!important;
  }
}
