/* Keep the existing mobile icons and layout. */
.desktop-menu-icon { display: none; }

@media (min-width: 901px) {
  #sidebar { padding: 20px 15px; }
  #sidebar .brand { flex: 0 0 auto; padding-bottom: 20px; }
  #sidebar > .nav { display: flex; flex-direction: column; gap: 4px; }

  #sidebar .nav > a,
  #sidebar .sidebar-foot .messenger-entry,
  #sidebar .theme-toggle,
  #sidebar .sidebar-foot .link-button {
    align-items: center;
    flex: 0 0 auto;
    gap: 12px;
    min-height: 40px;
    padding: 8px 12px;
    border: 0 !important;
    border-radius: var(--radius-md);
    background: transparent !important;
    color: var(--text-secondary) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 24px;
    text-align: left;
  }

  #sidebar .nav > a > .nav-icon,
  #sidebar .nav-map-word,
  #sidebar .theme-toggle-icon,
  #sidebar .logout-icon { display: none !important; }

  #sidebar .desktop-menu-icon,
  #sidebar .messenger-entry > svg {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  #sidebar .nav > a > .nav-label,
  #sidebar .sidebar-foot .nav-label { font: inherit; color: inherit; }
  #sidebar .nav-maps > .nav-label { display: inline; }

  #sidebar .nav > a:hover,
  #sidebar .sidebar-foot .messenger-entry:hover,
  #sidebar .theme-toggle:hover,
  #sidebar .sidebar-foot .link-button:hover {
    background: var(--surface-hover) !important;
    color: var(--text-primary) !important;
  }
  #sidebar .nav > a.active {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    box-shadow: none !important;
  }
  #sidebar :is(a, button):focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
  #sidebar .sidebar-foot {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 0 0;
    margin-top: 12px;
  }
  #sidebar .sidebar-foot .link-button { display: flex; width: 100%; }
  #sidebar .agency-pill { min-height: 40px; padding: 4px 12px; }

  body.sidebar-collapsed #sidebar .nav > a,
  body.sidebar-collapsed #sidebar .sidebar-foot .messenger-entry,
  body.sidebar-collapsed #sidebar .theme-toggle,
  body.sidebar-collapsed #sidebar .sidebar-foot .link-button {
    justify-content: center;
    gap: 0 !important;
    padding: 8px;
    width: 100%;
  }
  body.sidebar-collapsed #sidebar .nav > a > .nav-label {
    display: none !important;
    opacity: 0;
    position: absolute;
    visibility: hidden;
  }
  body.sidebar-collapsed #sidebar .sidebar-foot { align-items: stretch; }
  body.sidebar-collapsed #sidebar .agency-pill { justify-content: center; }
}
