.app-sidebar {
  position: fixed;
  z-index: var(--z-sidebar);
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 1.35rem;
  color: #f6f6ff;
  background:
    radial-gradient(circle at 10% 4%, rgb(101 88 245 / 24%), transparent 28%), var(--color-sidebar);
  border-right: 1px solid rgb(255 255 255 / 7%);
}
.app-sidebar__header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3.5rem;
  margin-bottom: 2rem;
}
.app-brand__mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border-radius: 0.85rem;
  box-shadow: 0 0.7rem 1.6rem rgb(79 70 229 / 28%);
}

.app-brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.app-brand__text {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}
.app-brand__text strong {
  overflow: hidden;
  font-size: 0.98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.app-brand__text span {
  color: #a8a9bd;
  font-size: 0.75rem;
}
.app-navigation {
  flex: 1;
}
.app-navigation__list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
}
.app-navigation__link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 3rem;
  padding: 0.75rem 0.9rem;
  color: #b9bbca;
  font-size: 0.94rem;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  transition:
    color var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}
.app-navigation__link:hover {
  color: #fff;
  text-decoration: none;
  background: rgb(255 255 255 / 5%);
}
.app-navigation__link[aria-current='page'] {
  color: #fff;
  background: linear-gradient(135deg, rgb(101 88 245 / 94%), rgb(79 70 229 / 88%));
  border-color: rgb(255 255 255 / 10%);
  box-shadow: 0 0.65rem 1.8rem rgb(79 70 229 / 22%);
}
.app-sidebar__footer-card {
  padding: 1rem;
  background: var(--color-sidebar-soft);
  border: 1px solid rgb(255 255 255 / 8%);
  border-radius: var(--radius-medium);
}
.app-sidebar__footer-card strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.86rem;
}
.app-sidebar__footer-card p {
  margin: 0;
  color: #a8a9bd;
  font-size: 0.78rem;
  line-height: 1.5;
}
.app-topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.75rem;
  padding: 0.75rem clamp(1.25rem, 3vw, 3.25rem);
  background: color-mix(in srgb, var(--color-background) 88%, transparent);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(14px);
}
.app-topbar__menu-button {
  display: grid;
}
.app-topbar__identity {
  display: grid;
  gap: 0.1rem;
}
.app-topbar__identity span {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.app-topbar__identity strong {
  font-size: 0.96rem;
}
.app-sidebar-backdrop {
  position: fixed;
  z-index: var(--z-backdrop);
  inset: 0;
  background: var(--color-overlay);
  cursor: pointer;
}

/* M10 — navegação responsiva, safe areas e foco */
.app-sidebar {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: max(1.35rem, var(--safe-area-top)) max(1.35rem, var(--safe-area-right))
    max(1.35rem, var(--safe-area-bottom)) max(1.35rem, var(--safe-area-left));
}

.app-navigation__link:focus-visible {
  color: #fff;
  background: rgb(255 255 255 / 8%);
  outline-color: #bdb8ff;
}

.app-topbar {
  padding-top: max(0.75rem, var(--safe-area-top));
  padding-right: max(clamp(1.25rem, 3vw, 3.25rem), var(--safe-area-right));
  padding-left: max(clamp(1.25rem, 3vw, 3.25rem), var(--safe-area-left));
}

.app-topbar__identity {
  min-width: 0;
}

.app-topbar__identity strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-sidebar-backdrop {
  width: 100%;
  height: 100%;
  padding: 0;
  border-radius: 0;
}
