/* Habboon FPL v17.22.8 — canonical desktop header
   One clean layout for every desktop/laptop width. No zoom, transforms,
   hidden controls, or breakpoint-specific feature removal. */

@media (min-width:1081px) {
  .topbar {
    position:sticky!important;
    top:0!important;
    z-index:80!important;
    height:76px!important;
    min-height:76px!important;
    overflow:visible!important;
  }

  .topbar-believe-overlay {
    display:block!important;
    position:absolute!important;
    z-index:84!important;
    left:18px!important;
    top:50%!important;
    width:74px!important;
    height:auto!important;
    margin:0!important;
    transform:translateY(-50%)!important;
    pointer-events:none!important;
  }

  .topbar-inner {
    position:relative!important;
    z-index:82!important;
    inset:auto!important;
    width:min(1600px,calc(100% - 24px))!important;
    max-width:1600px!important;
    min-width:0!important;
    height:76px!important;
    margin:0 auto!important;
    padding:0!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:12px!important;
    overflow:visible!important;
    white-space:normal!important;
    transform:none!important;
    transform-origin:initial!important;
    zoom:1!important;
  }

  .mobile-menu,
  .mobile-page-identity,
  .mobile-profile-trigger { display:none!important; }

  .topbar-brand {
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    gap:12px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    overflow:visible!important;
  }
  .topbar-brand img {
    display:block!important;
    flex:0 0 auto!important;
    width:126px!important;
    max-width:none!important;
    height:auto!important;
    margin:0!important;
  }
  .topbar-brand .topbar-brand-stack {
    display:grid!important;
    grid-auto-flow:row!important;
    align-content:center!important;
    flex:0 0 86px!important;
    width:86px!important;
    min-width:86px!important;
    max-width:86px!important;
    padding-left:12px!important;
    border-left:1px solid var(--line-strong)!important;
    color:var(--muted)!important;
    font-size:10px!important;
    line-height:1.12!important;
    font-weight:850!important;
    letter-spacing:.075em!important;
    text-transform:uppercase!important;
    white-space:normal!important;
    overflow:visible!important;
  }
  .topbar-brand .topbar-brand-stack b {
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    color:inherit!important;
    font:inherit!important;
    line-height:inherit!important;
    white-space:nowrap!important;
  }

  .desktop-nav {
    position:relative!important;
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    gap:2px!important;
    margin:0!important;
    padding:4px!important;
    border:1px solid rgba(255,255,255,.07)!important;
    border-radius:15px!important;
    background:rgba(255,255,255,.018)!important;
    overflow:visible!important;
  }
  .desktop-nav-link {
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    height:42px!important;
    min-height:42px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    padding:0 9px!important;
    font-size:12px!important;
    line-height:1!important;
    white-space:nowrap!important;
  }
  .desktop-nav-live { gap:6px!important; }
  .desktop-more-wrap {
    position:relative!important;
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    width:auto!important;
    min-width:0!important;
  }
  .desktop-more-trigger { gap:5px!important; }

  .top-actions {
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:8px!important;
    width:auto!important;
    min-width:0!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    white-space:nowrap!important;
  }
  .staff-console-top-button {
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    width:auto!important;
    min-width:70px!important;
    height:42px!important;
    padding:0 11px!important;
    gap:7px!important;
  }
  .staff-console-top-button span { display:inline!important; }
  .topbar .search-trigger {
    display:inline-flex!important;
    flex:0 0 40px!important;
    align-items:center!important;
    justify-content:center!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
    padding:0!important;
  }
  .alert-centre-button {
    display:inline-grid!important;
    flex:0 0 42px!important;
    place-items:center!important;
    width:42px!important;
    min-width:42px!important;
    height:42px!important;
  }
  .desktop-my-manager-button.account-style,
  .desktop-my-manager-button.account-style.discord-account-connected {
    display:flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    width:auto!important;
    min-width:132px!important;
    max-width:150px!important;
    height:42px!important;
    padding:4px 8px 4px 5px!important;
    gap:7px!important;
  }
  .desktop-my-manager-button.account-style .desktop-manager-avatar,
  .desktop-my-manager-button.account-style.discord-account-connected .desktop-manager-avatar {
    display:block!important;
    flex:0 0 32px!important;
    width:32px!important;
    min-width:32px!important;
    height:32px!important;
  }
  .desktop-manager-copy {
    display:block!important;
    flex:1 1 auto!important;
    min-width:0!important;
    max-width:92px!important;
  }
  .desktop-manager-copy small {
    display:block!important;
    font-size:7px!important;
    line-height:1!important;
  }
  .desktop-manager-copy strong {
    display:flex!important;
    min-width:0!important;
    max-width:92px!important;
    margin-top:3px!important;
    font-size:11px!important;
    line-height:1!important;
  }
  .desktop-manager-name {
    display:block!important;
    min-width:0!important;
    max-width:82px!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    white-space:nowrap!important;
  }
  .desktop-manager-chevron { display:inline!important; }
  .desktop-my-profile-link {
    display:inline-flex!important;
    flex:0 0 auto!important;
    align-items:center!important;
    justify-content:center!important;
    min-width:68px!important;
    min-height:40px!important;
    padding:0 10px!important;
    font-size:10px!important;
    white-space:nowrap!important;
  }
  .topbar #refresh-button {
    display:inline-grid!important;
    flex:0 0 40px!important;
    place-items:center!important;
    width:40px!important;
    min-width:40px!important;
    height:40px!important;
  }

  .desktop-more-popover {
    position:absolute!important;
    z-index:140!important;
    top:calc(100% + 12px)!important;
    right:0!important;
    left:auto!important;
    width:430px!important;
    max-width:calc(100vw - 24px)!important;
    max-height:calc(100vh - 100px)!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:8px!important;
    padding:14px!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    white-space:normal!important;
    transform:none!important;
  }
  .desktop-more-popover > button,
  .desktop-more-popover > a {
    display:grid!important;
    grid-template-columns:24px minmax(0,1fr)!important;
    align-items:center!important;
    column-gap:10px!important;
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    min-height:64px!important;
    padding:10px 12px!important;
    box-sizing:border-box!important;
    overflow:hidden!important;
    white-space:normal!important;
  }
  .desktop-more-popover > button > svg,
  .desktop-more-popover > a > svg,
  .desktop-more-popover > button > .app-icon,
  .desktop-more-popover > a > .app-icon {
    grid-column:1!important;
    flex:none!important;
  }
  .desktop-more-popover > button > b,
  .desktop-more-popover > a > b {
    grid-column:2!important;
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    margin:0!important;
    font-size:12px!important;
    line-height:1.25!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
    word-break:normal!important;
  }
  .desktop-more-divider,
  .desktop-more-admin,
  .desktop-more-layout {
    grid-column:1/-1!important;
  }
  .desktop-more-admin,
  .desktop-more-layout {
    grid-template-columns:24px minmax(0,1fr) auto!important;
  }
  .desktop-more-item-copy,
  .desktop-more-item-copy b,
  .desktop-more-item-copy small {
    display:block!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
    overflow-wrap:break-word!important;
  }
}

/* Normal laptop widths: same controls and order, just compact spacing. */
@media (min-width:1081px) and (max-width:1679px) {
  .topbar-inner {
    width:calc(100% - 20px)!important;
    max-width:none!important;
    padding-left:98px!important;
    gap:9px!important;
  }
  .topbar-brand { gap:9px!important; }
  .topbar-brand img { width:108px!important; }
  .topbar-brand .topbar-brand-stack {
    flex-basis:68px!important;
    width:68px!important;
    min-width:68px!important;
    max-width:68px!important;
    padding-left:9px!important;
    font-size:8.5px!important;
    letter-spacing:.055em!important;
  }
  .desktop-nav { gap:1px!important; padding:3px!important; }
  .desktop-nav-link {
    height:40px!important;
    min-height:40px!important;
    padding:0 6px!important;
    font-size:10.8px!important;
  }
  .top-actions { gap:6px!important; }
  .staff-console-top-button {
    min-width:64px!important;
    height:40px!important;
    padding:0 9px!important;
    font-size:10px!important;
  }
  .topbar .search-trigger { flex-basis:38px!important;width:38px!important;min-width:38px!important;height:38px!important; }
  .alert-centre-button { flex-basis:40px!important;width:40px!important;min-width:40px!important;height:40px!important; }
  .desktop-my-manager-button.account-style,
  .desktop-my-manager-button.account-style.discord-account-connected {
    min-width:118px!important;
    max-width:126px!important;
    height:40px!important;
    padding-right:6px!important;
  }
  .desktop-manager-copy { max-width:72px!important; }
  .desktop-manager-copy strong { max-width:72px!important; }
  .desktop-manager-name { max-width:64px!important; }
  .desktop-my-profile-link { min-width:62px!important;min-height:38px!important;padding:0 8px!important;font-size:9px!important; }
  .topbar #refresh-button { flex-basis:38px!important;width:38px!important;min-width:38px!important;height:38px!important; }
}

/* Very narrow desktop windows still retain every desktop feature. */
@media (min-width:1081px) and (max-width:1360px) {
  .topbar-believe-overlay { left:10px!important;width:58px!important; }
  .topbar-inner { padding-left:76px!important;gap:6px!important; }
  .topbar-brand { gap:6px!important; }
  .topbar-brand img { width:94px!important; }
  .topbar-brand .topbar-brand-stack {
    flex-basis:54px!important;
    width:54px!important;
    min-width:54px!important;
    max-width:54px!important;
    padding-left:6px!important;
    font-size:7.2px!important;
    letter-spacing:.025em!important;
  }
  .desktop-nav-link { padding:0 4px!important;font-size:9.5px!important; }
  .top-actions { gap:4px!important; }
  .staff-console-top-button { min-width:56px!important;padding:0 7px!important;font-size:9px!important; }
  .desktop-my-manager-button.account-style,
  .desktop-my-manager-button.account-style.discord-account-connected { min-width:106px!important;max-width:112px!important;gap:5px!important; }
  .desktop-manager-copy { max-width:62px!important; }
  .desktop-manager-copy strong { max-width:62px!important;font-size:10px!important; }
  .desktop-manager-name { max-width:54px!important; }
  .desktop-my-profile-link { min-width:54px!important;padding:0 6px!important;font-size:8px!important; }
}

@media (max-width:1080px) {
  .topbar-believe-overlay { display:none!important; }
}
