.sb-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 112px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: visible;
  background: transparent;
  border-right: 0;
  pointer-events: none;
}

.sb-mobile-menu-toggle,
.sb-sidebar-close,
.sb-sidebar-backdrop {
  display: none;
}

.sb-sidebar-header {
  position: relative;
  z-index: 1;
  width: 252px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 14px 26px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 46px rgba(38, 70, 102, 0.1);
  border-bottom-right-radius: 50px;
}

.sb-sidebar-header-inner {
  display: block;
  line-height: 0;
}

.sb-sidebar-brand {
  display: block;
  border-radius: 16px;
  cursor: pointer;
  text-decoration: none;
}

.sidebar-brand-link:hover {
  background: rgba(31, 151, 169, 0.045);
}

.sidebar-brand-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 151, 169, 0.16);
}

.sb-sidebar-logo-img {
  width: 212px !important;
  height: auto !important;
  max-width: 212px !important;
  object-fit: contain;
  display: block;
}

.sb-menu {
  position: relative;
  z-index: 1;
  width: 72px;
  margin-left: 24px;
  padding: 26px 0;
  display: flex;
  /* On short viewports (small laptops) the fixed-height column overflowed and
     clipped the footer/profile avatar at the bottom. Allow the primary nav to
     shrink and scroll its icons so the header, utility nav and footer always
     stay visible. flex-grow stays 0 so the pill still hugs its icons on tall
     screens; overflow-y only shows a scrollbar when it can't fit. */
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Slim scrollbar so the short-screen scroll doesn't show the thick default bar. */
  scrollbar-width: thin;
  scrollbar-color: rgba(25, 55, 88, 0.25) transparent;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(25, 55, 88, 0.08);
  border-radius: 36px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 22px 46px rgba(38, 70, 102, 0.1);
  backdrop-filter: blur(16px);
  pointer-events: auto;
}

/* Thin WebKit (Chrome/Edge/Safari) scrollbar for the sidebar nav when it scrolls
   on short screens — replaces the thick default bar. */
.sb-menu::-webkit-scrollbar {
  width: 4px;
}

.sb-menu::-webkit-scrollbar-track {
  background: transparent;
}

.sb-menu::-webkit-scrollbar-thumb {
  background: rgba(25, 55, 88, 0.22);
  border-radius: 999px;
}

.sb-menu:hover::-webkit-scrollbar-thumb {
  background: rgba(25, 55, 88, 0.35);
}

.sb-menu--utility {
  margin-top: auto;
  padding-top: 14px;
}

.sb-menu-item {
  position: relative;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #626977;
  background: transparent;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.sb-menu-item:hover {
  color: #198ea3;
  background: rgba(32, 151, 172, 0.055);
}

.sb-menu-item.active {
  color: #168ca4 !important;
  border-color: rgba(31, 151, 169, 0.07);
  background: rgba(31, 151, 169, 0.095);
  box-shadow: none;
}

.sb-menu-item.active svg,
.sb-menu-item:hover svg,
.sb-menu-item svg {
  stroke: currentColor;
}

.sb-menu-item svg {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.16s ease;
}

.sb-menu-item span {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sb-footer {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  width: 72px;
  margin: auto 0 28px 24px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 0;
  pointer-events: auto;
}

.sb-user-profile {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 0;
}

#newsidebar2025-profile-btn {
  position: relative;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(25, 55, 88, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #123047;
  box-shadow: 0 18px 34px rgba(31, 58, 88, 0.12);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

#newsidebar2025-profile-btn:hover,
#newsidebar2025-profile-btn:focus-visible {
  color: #0f2538;
  background: #fff;
  box-shadow: 0 20px 38px rgba(31, 58, 88, 0.16);
  outline: none;
}

.newsidebar2025-avatar {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2a9fc0 0%, #167fa0 100%);
  font-size: 14px;
  font-weight: 850;
  line-height: 1;
}

.newsidebar2025-status-dot {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #16c784;
  box-shadow: 0 0 0 2px rgba(22, 199, 132, 0.14);
}

#newsidebar2025-profile-label,
#newsidebar2025-chevron {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#newsidebar2025-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  pointer-events: auto;
}

#newsidebar2025-dropdown-backdrop.active {
  display: block;
}

#newsidebar2025-dropdown {
  position: absolute;
  left: 0;
  bottom: 64px;
  width: 218px;
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 46px rgba(31, 58, 88, 0.16);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}

#newsidebar2025-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.newsidebar2025-account-summary {
  padding: 9px 10px 10px;
}

.newsidebar2025-account-summary strong,
.newsidebar2025-account-summary span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.newsidebar2025-account-summary strong {
  color: #142241;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.25;
}

.newsidebar2025-account-summary span {
  margin-top: 3px;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
}

/* Dropdown item rules are scoped under #newsidebar2025-dropdown so they
   outrank the page-bot CSS bundles (CV / ansogning / papirkurv / ugeplan /
   jobboard) that define their own .newsidebar2025-dropdown-item rules and
   load after sidebar.css. Specificity 110 beats their 010. */
#newsidebar2025-dropdown .newsidebar2025-dropdown-item {
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  color: #37445a;
  background: transparent;
  font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

#newsidebar2025-dropdown .newsidebar2025-dropdown-item:hover,
#newsidebar2025-dropdown .newsidebar2025-dropdown-item:focus-visible {
  color: #101a31;
  background: rgba(42, 159, 192, 0.08);
  outline: none;
}

#newsidebar2025-dropdown .newsidebar2025-dropdown-separator {
  height: 1px;
  margin: 7px 10px;
  background: rgba(25, 55, 88, 0.1);
}

#newsidebar2025-dropdown .newsidebar2025-dropdown-item.logout {
  color: #b42318;
}

#newsidebar2025-dropdown .newsidebar2025-dropdown-item.logout:hover {
  color: #9f1f16;
  background: rgba(180, 35, 24, 0.08);
}

/* Language toggle inside the account dropdown */
.newsidebar2025-lang-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 8px;
}

.newsidebar2025-lang-label {
  color: #37445a;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.2;
  text-align: left
}

.newsidebar2025-lang-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid rgba(25, 55, 88, 0.1);
  border-radius: 999px;
  background: rgba(232, 247, 251, 0.5);
}

.newsidebar2025-lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 6px;
  border: 0;
  border-radius: 999px;
  color: #5b6677;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.newsidebar2025-lang-btn:hover {
  color: #142241;
  background: rgba(42, 159, 192, 0.1);
}

.newsidebar2025-lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(42, 159, 192, 0.22);
}

.newsidebar2025-lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, #2a9fc0 0%, #1f7f9b 100%);
  box-shadow: 0 4px 10px rgba(42, 159, 192, 0.28);
}

.newsidebar2025-lang-btn.active:hover {
  color: #fff;
  background: linear-gradient(135deg, #2a9fc0 0%, #167fa0 100%);
}

.newsidebar2025-flag {
  width: 16px;
  height: 16px;
  display: block;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .sb-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    inset: 0 auto 0 0;
    width: 280px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh;
    z-index: 1000;
    overflow: visible;
    background: #ffffff;
    border-right: 1px solid #e5e7eb;
    box-shadow: none;
    pointer-events: auto;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .sb-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  }

  .sb-sidebar-header {
    width: auto;
    min-height: auto;
    padding: 22px 18px;
    border-radius: 0;
  }

  .sb-sidebar-logo-img {
    width: 184px !important;
    max-width: 184px !important;
  }

  .sb-sidebar-brand {
    cursor: pointer;
    text-decoration: none;
  }

  .sb-menu {
    flex: 1 1 auto;
    width: auto;
    margin-left: 0;
    padding: 0 12px 16px;
    align-items: stretch;
    gap: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow-y: auto;
  }

  .sb-menu--utility {
    flex: 0 0 auto;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
  }

  .sb-menu-item {
    width: auto;
    height: auto;
    min-height: 46px;
    justify-content: flex-start;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: #4b5563;
  }

  .sb-menu-item.active {
    color: #168ca4 !important;
    border-color: rgba(31, 151, 169, 0.07);
    background: rgba(31, 151, 169, 0.095);
    box-shadow: none;
  }

  .sb-menu-item span {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    font-size: 17px;
    font-weight: 600;
  }

  .sb-footer {
    flex-shrink: 0;
    position: relative;
    left: auto;
    bottom: auto;
    width: auto;
    margin: 12px 12px 18px;
    justify-content: stretch;
    border-top: 1px solid rgba(17, 24, 39, 0.06);
    padding-top: 16px;
  }

  .sb-user-profile {
    position: relative;
    width: 100%;
    height: auto;
  }

  #newsidebar2025-profile-btn {
    width: 100%;
    height: auto;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 16px;
    color: #123047;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(17, 24, 39, 0.04);
    cursor: pointer;
    transition: all 160ms ease;
  }

  #newsidebar2025-profile-btn:hover,
  #newsidebar2025-profile-btn:focus-visible {
    border-color: rgba(42, 159, 192, 0.28);
    background: rgba(232, 247, 251, 0.6);
    box-shadow: 0 8px 22px rgba(17, 24, 39, 0.04);
    outline: none;
  }

  /* Status dot lives over the avatar inside the wider pill */
  .newsidebar2025-status-dot {
    right: auto;
    bottom: 5px;
    left: 34px;
  }

  /* Reveal the previously-hidden label + chevron in the drawer */
  #newsidebar2025-profile-label {
    position: static;
    flex: 1 1 0%;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: auto;
    white-space: nowrap;
    border: 0;
    color: #142241;
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
  }

  #newsidebar2025-chevron {
    position: static;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    color: #6b7280;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
  }

  #newsidebar2025-profile-btn[aria-expanded="true"] #newsidebar2025-chevron {
    transform: rotate(180deg);
  }

  #newsidebar2025-dropdown {
    left: 0;
    right: 0;
    bottom: 100%;
    width: auto;
    margin-bottom: 8px;
    transform: translateY(8px);
  }

  #newsidebar2025-dropdown.active {
    transform: translateY(0);
  }

  .sb-mobile-menu-toggle {
    position: fixed;
    top: 14px;
    left: 14px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(25, 55, 88, 0.1);
    border-radius: 10px;
    color: #37445a;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(31, 58, 88, 0.12);
    cursor: pointer;
    z-index: 998;
  }

  .sb-mobile-menu-toggle svg,
  .sb-sidebar-close svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .sb-sidebar-close {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    color: #6b7280;
    background: transparent;
    cursor: pointer;
  }

  .sb-sidebar-close:hover,
  .sb-sidebar-close:focus-visible {
    color: #111827;
    background: #f3f4f6;
    outline: none;
  }

  .sb-sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(17, 24, 39, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .sb-sidebar-backdrop.active {
    opacity: 1;
    visibility: visible;
  }

  body.sb-drawer-open {
    overflow: hidden;
  }
}

@media (max-width: 640px) {
  .sb-mobile-menu-toggle {
    top: 9px;
    left: 12px;
    width: 42px;
    height: 42px;
  }
}

/* Logged-in shell redesign 2026-06-23: one continuous sidebar, not detached widgets. */
/* Sidebar polish 2026-06-23: stable brand/nav/account regions with outside-edge toggle. */
.sb-sidebar-expand-toggle {
  display: none;
}

@media (min-width: 1025px) {
  .sb-sidebar {
    --sidebar-collapsed: 84px;
    --sidebar-expanded: 232px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    width: var(--sidebar-collapsed);
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto auto;
    gap: 24px;
    padding: 18px 12px;
    overflow: visible;
    border-right: 1px solid rgba(30, 41, 59, 0.07);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 10px 0 40px rgba(20, 32, 45, 0.035);
    backdrop-filter: blur(18px);
    pointer-events: auto;
    transition: width 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sb-sidebar,
  .sb-sidebar * {
    box-sizing: border-box;
  }

  .sb-sidebar.is-expanded {
    width: var(--sidebar-expanded);
  }

  .sb-sidebar-header {
    width: auto;
    min-height: 68px;
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .sb-sidebar.is-expanded .sb-sidebar-header {
    justify-content: flex-start;
  }

  .sb-sidebar-header-inner {
    width: auto;
    height: 46px;
    min-width: 0;
    display: block;
    overflow: visible;
    border-radius: 0;
  }

  .sb-sidebar-brand {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 10px 24px rgba(31, 127, 155, 0.18);
    cursor: default;
  }

  .sb-sidebar-brand::before {
    content: "";
    width: 46px;
    height: 46px;
    display: block;
    background-image: url("/assets/images/favicon.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
  }

  .sb-sidebar-logo-img {
    display: none !important;
  }

  .sb-sidebar.is-expanded .sb-sidebar-brand {
    width: 156px;
    background: transparent;
    box-shadow: none;
    place-items: center start;
  }

  .sb-sidebar.is-expanded .sb-sidebar-brand::before {
    display: none;
  }

  .sb-sidebar.is-expanded .sb-sidebar-logo-img {
    width: 156px !important;
    max-width: 156px !important;
    height: auto !important;
    display: block !important;
  }

  .sb-sidebar:not(.is-expanded) .sidebar-brand-link:hover {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
      #2a9fc0;
  }

  .sb-sidebar.is-expanded .sidebar-brand-link:hover {
    background: rgba(31, 151, 169, 0.045);
  }

  .sb-sidebar-expand-toggle {
    position: absolute;
    top: 27px;
    right: -14px;
    z-index: 3;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 1px solid rgba(30, 41, 59, 0.1);
    border-radius: 999px;
    color: rgba(23, 33, 43, 0.52);
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 32, 45, 0.1);
    cursor: pointer;
    transition: color 160ms ease, background 160ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sb-sidebar-expand-toggle:hover,
  .sb-sidebar-expand-toggle:focus-visible {
    color: #17212b;
    border-color: rgba(31, 127, 155, 0.2);
    background: #fff;
    outline: none;
  }

  .sb-sidebar-expand-toggle svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .sb-sidebar.is-expanded .sb-sidebar-expand-toggle svg {
    transform: rotate(180deg);
  }

  .sb-menu {
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 6px 0 16px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    pointer-events: auto;
  }

  .sb-menu--utility {
    flex: 0 0 auto;
    padding: 14px 0 0;
    margin: 0;
    border-top: 1px solid rgba(30, 41, 59, 0.07);
  }

  .sb-sidebar.is-expanded .sb-menu--utility {
    align-items: stretch;
  }

  .sb-menu-item {
    width: 46px;
    min-height: 46px;
    height: 46px;
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    justify-content: start;
    justify-items: center;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 15px;
    color: rgba(23, 33, 43, 0.58);
    background: transparent;
    box-shadow: none;
    font-size: 14px;
    font-weight: 550;
    letter-spacing: -0.01em;
    transition:
      color 160ms ease,
      background 160ms ease,
      box-shadow 160ms ease,
      transform 160ms ease;
  }

  .sb-menu-item:hover {
    color: #198ea3;
    background: rgba(32, 151, 172, 0.055);
  }

  .sb-menu-item.active {
    color: #168ca4 !important;
    border-color: rgba(31, 151, 169, 0.07);
    background: rgba(31, 151, 169, 0.095);
    box-shadow: none;
  }

  .sb-menu-item svg {
    width: 23px;
    height: 23px;
    justify-self: center;
    stroke-width: 1.9;
  }

  .sb-menu-item span {
    position: static;
    width: auto;
    height: auto;
    min-width: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: auto;
    white-space: nowrap;
    border: 0;
    opacity: 0;
    transform: translateX(-4px);
    transition: opacity 160ms ease, transform 160ms ease;
    text-overflow: ellipsis;
    pointer-events: none;
  }

  .sb-sidebar.is-expanded .sb-menu-item {
    width: 100%;
    grid-template-columns: 24px minmax(0, 1fr);
    justify-items: start;
    padding: 0 16px;
  }

  .sb-sidebar.is-expanded .sb-menu {
    align-items: stretch;
  }

  .sb-sidebar.is-expanded .sb-menu-item span {
    opacity: 1;
    transform: translateX(0);
  }

  .sb-footer {
    width: auto;
    min-width: 0;
    margin: 0;
    min-height: 76px;
    padding: 14px 8px 10px;
    border-top: 1px solid rgba(30, 41, 59, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
  }

  .sb-user-profile {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
  }

  #newsidebar2025-profile-btn {
    position: relative;
    width: 46px;
    height: 46px;
    justify-content: center;
    gap: 10px;
    padding: 2px;
    border: 0;
    border-radius: 18px;
    background: rgba(23, 33, 43, 0.045);
    box-shadow: none;
  }

  #newsidebar2025-profile-btn:hover,
  #newsidebar2025-profile-btn:focus-visible {
    background: rgba(31, 127, 155, 0.09);
    box-shadow: none;
  }

  .sb-sidebar.is-expanded #newsidebar2025-profile-btn {
    width: 100%;
    justify-content: flex-start;
    padding: 2px 10px 2px 2px;
  }

  .newsidebar2025-avatar {
    width: 42px;
    height: 42px;
    font-weight: 650;
  }

  .newsidebar2025-status-dot {
    right: 3px;
    bottom: 3px;
    width: 11px;
    height: 11px;
    border-width: 2px;
  }

  .sb-sidebar.is-expanded .newsidebar2025-status-dot {
    right: auto;
    left: 34px;
  }

  #newsidebar2025-profile-label,
  #newsidebar2025-chevron {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: hidden;
    clip: auto;
    white-space: nowrap;
    border: 0;
    opacity: 0;
    max-width: 0;
    pointer-events: none;
  }

  .sb-sidebar.is-expanded #newsidebar2025-profile-label {
    flex: 1 1 auto;
    opacity: 1;
    max-width: 122px;
    color: #17212b;
    font-size: 14px;
    font-weight: 550;
    text-overflow: ellipsis;
  }

  .sb-sidebar.is-expanded #newsidebar2025-chevron {
    flex: 0 0 auto;
    opacity: 1;
    max-width: 18px;
    width: 18px;
    height: 18px;
    color: rgba(23, 33, 43, 0.48);
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #newsidebar2025-dropdown {
    left: calc(100% + 10px);
    bottom: 10px;
    width: 232px;
  }

  .sb-sidebar.is-expanded #newsidebar2025-dropdown {
    left: calc(100% + 10px);
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-sidebar,
  .sb-sidebar *,
  .sb-main {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Load-time transition guard. sidebar.php adds .sb-no-anim before applying the
   stored expand-state on page load, then removes it on the next frame. This
   stops the rail from animating collapsed->expanded on every navigation (the
   "jerk" seen when landing on a tab) while keeping the animation for
   user-initiated expand/collapse. */
.sb-sidebar.sb-no-anim,
.sb-sidebar.sb-no-anim * {
  transition: none !important;
}

/* Sidebar geometry fix 2026-06-23: hidden labels must not affect collapsed layout. */
@media (min-width: 1025px) {
  .sb-sidebar:not(.is-expanded) .sb-menu-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .sb-sidebar:not(.is-expanded) .sb-menu-item span {
    display: none;
  }

  .sb-sidebar:not(.is-expanded) #newsidebar2025-profile-btn {
    display: grid;
    place-items: center;
    gap: 0;
  }

  .sb-sidebar:not(.is-expanded) #newsidebar2025-profile-label,
  .sb-sidebar:not(.is-expanded) #newsidebar2025-chevron {
    display: none;
  }

  .sb-sidebar:not(.is-expanded) .newsidebar2025-avatar {
    width: 42px;
    height: 42px;
    min-width: 42px;
    flex: 0 0 42px;
  }

  .sb-sidebar.is-expanded .sb-menu-item {
    display: grid;
  }

  .sb-sidebar.is-expanded #newsidebar2025-profile-btn {
    display: flex;
  }
}

/* Shared sidebar nav state standard. Keep this last in sidebar.css so every
   destination, including utility items, inherits the same Home treatment. */
.sb-sidebar .sb-menu-item {
  width: 46px;
  height: 46px;
  min-height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 15px;
  color: rgba(35, 51, 61, 0.58);
  background: transparent;
  box-shadow: none;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.sb-sidebar .sb-menu-item:hover {
  color: #198ea3;
  background: rgba(32, 151, 172, 0.055);
  border-color: transparent;
  box-shadow: none;
}

.sb-sidebar .sb-menu-item.active,
.sb-sidebar .sb-menu-item[aria-current="page"] {
  color: #168ca4 !important;
  background: rgba(31, 151, 169, 0.095) !important;
  border-color: rgba(31, 151, 169, 0.07) !important;
  box-shadow: none !important;
}

.sb-sidebar .sb-menu-item:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(31, 151, 169, 0.16) !important;
}

.sb-sidebar .sb-menu-item svg {
  width: 21px;
  height: 21px;
  display: block;
  color: inherit;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 1025px) {
  .sb-sidebar.is-expanded .sb-menu-item {
    width: 100%;
    grid-template-columns: 28px minmax(0, 1fr);
    justify-content: start;
    justify-items: start;
    padding: 0 12px;
  }

  .sb-sidebar:not(.is-expanded) .sb-menu-item {
    width: 46px;
    grid-template-columns: 1fr;
    justify-content: center;
    justify-items: center;
    padding: 0;
  }
}

/* Mobile/tablet drawer fix 2026-06-30: the "Shared sidebar nav state standard"
   block above is unscoped, so its fixed 46x46 grid + place-items:center leaks
   into the drawer and stacks each item's icon and label on top of one another.
   Re-establish the drawer's icon-beside-label row layout at the same
   specificity (0,2,0), placed after the shared block so source order wins. */
@media (max-width: 1024px) {
  .sb-sidebar .sb-menu-item {
    width: auto;
    height: auto;
    min-height: 46px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    place-items: stretch;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
  }

  .sb-sidebar .sb-menu-item span {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border: 0;
    font-size: 17px;
    font-weight: 600;
  }
}
