/* FansFlex v11.3 — one full-height, consistently expanded creator sidebar. */
.fansflex-app .side-menu {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  min-height: 0 !important;
  height: calc(100vh - 1.5rem) !important;
  max-height: calc(100vh - 1.5rem) !important;
  overflow: hidden !important;
  background: linear-gradient(165deg, #12324a 0%, #0d263b 48%, #081b2c 100%) !important;
}

@supports (height: 100dvh) {
  .fansflex-app .side-menu {
    height: calc(100dvh - 1.5rem) !important;
    max-height: calc(100dvh - 1.5rem) !important;
  }
}

.fansflex-app .side-menu::after {
  content: none !important;
  display: none !important;
}

.fansflex-app.ff-route-feed .side-menu,
.fansflex-app.ff-route-dashboard .side-menu {
  background: linear-gradient(165deg, #12324a 0%, #0d263b 48%, #081b2c 100%) !important;
}

.fansflex-app .ff-side-brand,
.fansflex-app .ff85-command-side,
.fansflex-app .side-menu-account,
.fansflex-app .ff-side-pro-card,
.fansflex-app .ff88-theme-side,
.fansflex-app .side-menu-footer-nav {
  flex-shrink: 0;
}

.fansflex-app .side-menu-primary-nav {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(190, 216, 236, .48) transparent;
}

.fansflex-app .side-menu-primary-nav::-webkit-scrollbar {
  width: 5px;
}

.fansflex-app .side-menu-primary-nav::-webkit-scrollbar-track {
  background: transparent;
}

.fansflex-app .side-menu-primary-nav::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(190, 216, 236, .42);
}

/* The workspace route used a 90px icon-only rail; keep the same full menu
   there as the Feed and standard Dashboard. */
@media (min-width: 768px) {
  body#ff79-workspace-route.ff-route-dashboard-workspace .main-wrapper > .col-2,
  body#ff79-workspace-route.ff-route-dashboard-workspace .main-wrapper > .col-md-3 {
    box-sizing: border-box;
    width: 225px !important;
    min-width: 225px !important;
    max-width: 225px !important;
    flex: 0 0 225px !important;
    padding: 0 !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .main-wrapper > .content-wrapper {
    width: calc(100% - 225px) !important;
    max-width: calc(100% - 225px) !important;
    flex: 1 1 calc(100% - 225px) !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .side-menu {
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 0 !important;
    position: sticky !important;
    top: 0 !important;
    padding: 0 12px !important;
    background: linear-gradient(165deg, #12324a 0%, #0d263b 48%, #081b2c 100%) !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-side-brand {
    display: flex !important;
    height: 54px !important;
    min-height: 54px !important;
    justify-content: flex-start !important;
    margin: 0 2px 8px !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-side-brand-full {
    display: block !important;
    width: auto !important;
    max-width: 160px !important;
    height: auto !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .ff-side-brand-mark {
    display: none !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .side-menu-account {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .side-menu-account-copy {
    display: flex !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .side-menu .user-side-menu {
    align-items: stretch !important;
    gap: 4px !important;
    margin-top: 0 !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .side-menu .user-side-menu .nav-link {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    justify-content: space-between !important;
    margin: 2px 0 !important;
    padding: 9px 10px !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .side-menu .user-side-menu .side-menu-label,
  body#ff79-workspace-route.ff-route-dashboard-workspace .side-menu .side-menu-footer-nav .side-menu-action-text {
    display: inline !important;
  }

  body#ff79-workspace-route.ff-route-dashboard-workspace .side-menu .user-side-menu .icon-wrapper {
    width: 2.6rem !important;
    height: auto !important;
  }

  .fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper > .col-2 {
    width: 225px !important;
    min-width: 225px !important;
    max-width: 225px !important;
    flex: 0 0 225px !important;
  }

  .fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper > .content-wrapper {
    width: calc(100% - 225px) !important;
    max-width: calc(100% - 225px) !important;
    flex: 1 1 calc(100% - 225px) !important;
  }

  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper > .col-2 {
    width: 225px !important;
    min-width: 225px !important;
    max-width: 225px !important;
    flex: 0 0 225px !important;
  }

  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper > .content-wrapper {
    width: calc(100% - 225px) !important;
    max-width: calc(100% - 225px) !important;
    flex: 1 1 calc(100% - 225px) !important;
  }

  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu :is(.ff-side-brand-full, .side-menu-account, .side-menu-label) {
    display: initial !important;
  }

  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu .ff-side-brand-full {
    display: block !important;
  }

  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu .side-menu-account {
    display: flex !important;
  }

  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu .user-side-menu .nav-link {
    display: flex !important;
    width: 100% !important;
    height: auto !important;
    min-height: 42px !important;
    justify-content: space-between !important;
    margin: 2px 0 !important;
    padding: 9px 10px !important;
  }

  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu .ff85-command-side {
    width: auto !important;
    min-width: 0 !important;
    justify-content: space-between !important;
    margin: 0 0 8px !important;
    padding: 10px 12px !important;
  }

  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .side-menu .ff85-command-side :is(.ff85-command-side-label, kbd) {
    display: initial !important;
  }
}

@media (min-width: 1400px) {
  .fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper > .col-2,
  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper > .col-2 {
    width: 255px !important;
    min-width: 255px !important;
    max-width: 255px !important;
    flex: 0 0 255px !important;
  }

  .fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper > .content-wrapper,
  html:is([data-bs-theme="light"], [data-theme="light"]) body.fansflex-app.ff-route-dashboard:not(.ff-route-dashboard-workspace) .main-wrapper > .content-wrapper {
    width: calc(100% - 255px) !important;
    max-width: calc(100% - 255px) !important;
    flex: 1 1 calc(100% - 255px) !important;
  }
}
