.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar__logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 0.5rem;
}

.sidebar__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--color-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar__brand-name { font-size: 0.95rem; font-weight: 700; color: #fff; }
.sidebar__brand-tag { font-size: 0.7rem; color: var(--color-sidebar-text); }

.sidebar__nav {
  flex: 1;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  color: var(--color-sidebar-text);
  transition: background 0.15s, color 0.15s;
}

.sidebar__link svg { width: 18px; height: 18px; flex-shrink: 0; }

.sidebar__link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.sidebar__link.is-active {
  background: var(--color-accent);
  color: #1a1a1a;
  font-weight: 600;
}

.sidebar__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  margin-top: 1rem;
}

.sidebar__context-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a8a8a;
  margin-bottom: 0.2rem;
}

.sidebar__context-value { font-size: 0.82rem; color: #fff; font-weight: 600; }

.main { display: flex; flex-direction: column; min-width: 0; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.75rem;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 5;
}

.header__breadcrumb { font-size: 0.75rem; color: var(--color-text-muted); margin-bottom: 0.15rem; }
.header__title { font-size: 1.15rem; }

.header__user { display: flex; align-items: center; gap: 0.65rem; }

.header__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__user-name { font-size: 0.85rem; font-weight: 600; }
.header__user-role { font-size: 0.72rem; color: var(--color-text-muted); }

.content { padding: 1.75rem; flex: 1; }

@media (max-width: 900px) {
  .app-shell { grid-template-columns: var(--sidebar-width-collapsed) 1fr; }
  .sidebar__brand-name, .sidebar__brand-tag, .sidebar__link .label,
  .sidebar__context-label, .sidebar__context-value { display: none; }
  .sidebar__link { justify-content: center; }
  .header__user-name, .header__user-role { display: none; }
  .content { padding: 1.25rem; }
}
