@media (min-width: 761px) {
  :root { --atlas-sidebar-width: 260px; }
  .sidebar {
    box-sizing: border-box;
    width: var(--atlas-sidebar-width);
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
    padding: 10px 10px 8px;
    gap: 6px;
  }
  .brand { gap: 8px; padding: 0 4px; min-height: 0; }
  .brand-mark,
  .brand .brand-mark[data-atlas-logo] {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }
  .brand span { display: none; }
  .atlas-role-context { margin-top: 2px; }
  .account-switcher { padding: 6px; gap: 4px; }
  .account-identity {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }
  .account-identity > b,
  .account-identity > img {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
  }
  .account-identity small,
  .account-switcher label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .account-identity span {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .atlas-mode-switch { gap: 4px; margin-top: 4px; }
  .atlas-mode-switch button {
    min-height: 40px;
    padding: 4px 8px;
    font-size: 16px;
    line-height: 1.15;
  }
  body.has-anesthesia-alarm .anesthesia-alarm-launch {
    position: sticky;
    top: 0;
    z-index: 4800;
    flex: 0 0 auto;
    align-self: stretch;
    min-height: 56px;
    height: auto;
    padding: 4px 8px;
  }
  .sidebar nav,
  body.has-anesthesia-alarm .sidebar nav {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    overflow: hidden;
  }
  .sidebar nav button {
    flex: 1 1 0;
    min-height: 26px;
    max-height: 44px;
    display: flex;
    align-items: center;
    padding: 2px 10px;
  }
  .sidebar nav span {
    font-size: 16px;
    font-weight: 650;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sidebar nav small { display: none; }
  .sidebar-foot {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-top: 0;
  }
  .sidebar-info {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: transparent;
    color: #fff;
    font: 700 18px/34px Inter, system-ui, sans-serif;
  }
  .sidebar-info-pop {
    position: absolute;
    z-index: 30;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    padding: 12px;
    border: 1px solid #dfe3e8;
    border-radius: 12px;
    background: #fff;
    color: #24324a;
    box-shadow: 0 12px 32px rgba(36, 50, 74, .18);
  }
  .sidebar-info-pop[hidden] { display: none; }
  .sidebar-info-pop strong { display: block; font-size: 14px; }
  .sidebar-info-pop p { margin: 6px 0 0; font-size: 14px; line-height: 1.35; color: #344767; }
  .sidebar-foot .logout-button {
    flex: 1 1 auto;
    width: auto;
    min-height: 40px;
    margin: 0;
    padding: 6px 10px;
    font-size: 16px;
  }
  .sidebar-foot .creator-credit { margin: 8px 0 0; min-height: 0; padding: 0; color: #5b6b82; }
}

@media (max-width: 760px) {
  .sidebar-foot { display: none; }
}

@media (min-width: 761px) and (max-width: 1023px) {
  :root { --atlas-sidebar-width: 216px; }
  .sidebar { width: 216px; }
}

@media (min-width: 761px) and (max-height: 820px) {
  .atlas-mode-switch button { min-height: 36px; }
  .sidebar { padding-top: 8px; gap: 4px; }
}

body.atlas-v49-active .sidebar nav button.active:not(.atlas-v49-nav-selected) {
  background: transparent;
  box-shadow: none;
  transform: none;
}
