.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
}

.sidebar {
  background: #2c3542;
  color: #eef2f6;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 6px 22px;
  font-size: 0.92rem;
}

.brand small {
  font-weight: 400;
  opacity: 0.75;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f4e4b8;
  color: #7a5a00;
  font-size: 0.72rem;
  font-weight: 800;
}

.navigation { display: grid; gap: 3px; }

.nav-link {
  color: #c5ced8;
  text-decoration: none;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-link:hover,
.nav-link[aria-current='page'] {
  color: #fff;
  background: #3f4c5c;
}

.nav-icon { display: inline-block; width: 22px; }

.sidebar-footer {
  margin-top: auto;
  color: #9aa6b4;
  font-size: 0.68rem;
  line-height: 1.3;
  padding: 12px 8px 0;
}

.main-content { min-width: 0; }

.topbar {
  min-height: 64px;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px clamp(16px, 2.5vw, 28px);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.topbar h1 { margin: 0; font-size: 1.25rem; line-height: 1.2; }

.eyebrow {
  margin: 0 0 2px;
  font-size: 0.72rem;
  color: var(--muted);
}

.page-content {
  padding: clamp(14px, 2vw, 24px) clamp(14px, 2.5vw, 28px);
  max-width: 1400px;
}

.menu-button {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  color: var(--primary);
  padding: 4px 6px;
  border-radius: 6px;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  background: rgb(28 33 40 / 35%);
  border: 0;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: min(240px, 82vw);
    transform: translateX(-100%);
  }
  .sidebar.is-open { transform: translateX(0); }
  .sidebar-backdrop.is-visible { display: block; }
  .menu-button { display: block; }
}
