.atlas-shell {
  min-height: 100vh;
  min-height: 100dvh;
}

.atlas-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1040;
  display: flex;
  width: 276px;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  padding: 24px 18px 18px;
  border-right: 1px solid rgba(120, 180, 222, 0.12);
  background:
    radial-gradient(circle at 25% 0%, rgba(38, 150, 255, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(8, 14, 29, 0.98), rgba(5, 9, 20, 0.99));
  box-shadow: 24px 0 70px rgba(0, 0, 0, 0.16);
}

.atlas-sidebar__header {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 8px 18px;
}

.atlas-sidebar__brand {
  display: inline-flex;
  border-radius: 12px;
  outline: none;
}

.atlas-sidebar__brand:focus-visible {
  box-shadow: 0 0 0 4px rgba(75, 217, 255, 0.14);
}

.atlas-sidebar__brand img {
  display: block;
  width: 174px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(26, 165, 255, 0.16));
}

.atlas-sidebar__close {
  display: none;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.atlas-sidebar__section-label {
  flex: 0 0 auto;
  padding: 11px 13px 10px;
  color: #61738f;
  font-size: 0.69rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.atlas-navigation {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  align-content: start;
  gap: 5px;
  overflow-y: auto;
  padding: 2px 4px 14px 0;
}

.atlas-nav-link {
  position: relative;
  display: grid;
  min-height: 47px;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  border-radius: 13px;
  padding: 10px 13px;
  color: #9dadc2;
  font-size: 0.87rem;
  font-weight: 720;
  text-decoration: none;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.atlas-nav-link > i {
  color: #6e84a4;
  font-size: 0.93rem;
  text-align: center;
  transition: color 150ms ease;
}

.atlas-nav-link:hover {
  border-color: rgba(127, 198, 236, 0.12);
  color: #e9f7ff;
  background: rgba(255, 255, 255, 0.035);
  transform: translateX(2px);
}

.atlas-nav-link:hover > i {
  color: #70ddff;
}

.atlas-nav-link.active {
  border-color: rgba(75, 217, 255, 0.18);
  color: #f3fbff;
  background:
    linear-gradient(90deg, rgba(28, 156, 231, 0.2), rgba(39, 101, 215, 0.08)),
    rgba(255, 255, 255, 0.025);
  box-shadow: inset 3px 0 0 #49d6ff, 0 12px 30px rgba(0, 102, 190, 0.08);
}

.atlas-nav-link.active > i {
  color: #60ddff;
}

.content-task-badge {
  display: inline-flex;
  min-width: 21px;
  height: 21px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 6px;
  color: #07111f;
  background: linear-gradient(135deg, #72e8ff, #59a6ff);
  font-size: 0.68rem;
  font-weight: 900;
}

.atlas-account {
  display: grid;
  flex: 0 0 auto;
  gap: 11px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding: 16px 4px 0;
}

.atlas-account__identity {
  display: grid;
  min-width: 0;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 0 6px;
}

.atlas-account__identity > span:last-child {
  display: grid;
  min-width: 0;
}

.atlas-account__identity small,
.atlas-account__identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.atlas-account__identity small {
  color: #61738f;
  font-size: 0.67rem;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.atlas-account__identity strong {
  color: #dce9f8;
  font-size: 0.82rem;
}

.atlas-account__icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(75, 217, 255, 0.15);
  border-radius: 12px;
  color: #5fdcff;
  background: rgba(31, 151, 226, 0.1);
}

.atlas-account__logout {
  display: flex;
  width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: #9dadc2;
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.8rem;
  font-weight: 780;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.atlas-account__logout:hover {
  border-color: rgba(251, 135, 152, 0.3);
  color: #ffadba;
  background: rgba(180, 34, 61, 0.08);
}

.atlas-workspace {
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  margin-left: 276px;
}

.atlas-content {
  width: min(100%, 1600px);
  margin: 0 auto;
  padding: clamp(25px, 3vw, 48px);
}

.atlas-mobile-bar {
  display: none;
}

.atlas-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1030;
  display: none;
  border: 0;
  padding: 0;
  background: rgba(1, 4, 12, 0.72);
  backdrop-filter: blur(5px);
}

@media (max-width: 1199.98px) {
  body.atlas-menu-open {
    overflow: hidden;
  }

  .atlas-sidebar {
    width: min(310px, 88vw);
    transform: translateX(-104%);
    transition: transform 200ms ease;
  }

  .atlas-shell.sidebar-open .atlas-sidebar {
    transform: translateX(0);
  }

  .atlas-shell.sidebar-open .atlas-sidebar-backdrop {
    display: block;
  }

  .atlas-sidebar__close {
    display: grid;
  }

  .atlas-workspace {
    margin-left: 0;
  }

  .atlas-mobile-bar {
    position: sticky;
    top: 0;
    z-index: 1020;
    display: flex;
    min-height: 68px;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px;
    background: rgba(5, 9, 20, 0.88);
    backdrop-filter: blur(18px);
  }

  .atlas-mobile-bar img {
    width: 148px;
    height: auto;
  }

  .atlas-menu-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: #cce6f7;
    background: rgba(255, 255, 255, 0.035);
  }
}

@media (max-width: 575.98px) {
  .atlas-content {
    padding: 22px 16px 32px;
  }

  .atlas-mobile-bar {
    min-height: 62px;
    padding: 10px 14px;
  }

  .atlas-mobile-bar img {
    width: 136px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .atlas-sidebar,
  .atlas-nav-link {
    transition: none;
  }
}
