.app-root {
  padding: 20px;
}

.layout-shell {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  max-width: 1500px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: 20px;
}

.sidebar-panel {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  padding: 20px;
  box-shadow: var(--shadow);
}

.sidebar-brand {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 22px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  display: block;
  width: 100%;
  height: auto;
  flex: 0 0 auto;
  filter: drop-shadow(0 8px 12px rgba(15, 23, 42, 0.16));
}

.brand-wordmark {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--text);
}

.sidebar-brand h2 {
  margin: 0 0 8px;
  font-size: 1.5rem;
}

.sidebar-copy {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.45;
}

.sidebar-nav {
  display: grid;
  gap: 10px;
}

.sidebar-actions {
  margin-top: 18px;
}

.dev-auth-badge {
  margin-top: 14px;
}

.sidebar-logout {
  width: 100%;
}

.sidebar-link {
  display: block;
  border-radius: 14px;
  padding: 12px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  color: var(--accent-hover);
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.sidebar-link:hover {
  background: #eef5fb;
  border-color: rgba(15, 118, 110, 0.24);
  transform: translateX(2px);
}

.sidebar-link-active {
  background: linear-gradient(135deg, var(--accent) 0%, #155e75 100%);
  border-color: transparent;
  color: white;
}

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

.app-shell {
  width: 100%;
  max-width: 1200px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  color: #2563eb;
  font-weight: 700;
}

.lede {
  margin: 0;
  max-width: 56ch;
  color: var(--text-muted);
}

.page-actions {
  display: flex;
  align-items: center;
}

@media (max-width: 720px) {
  .app-root {
    padding: 24px 14px 40px;
  }

  .layout-shell {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .sidebar {
    position: static;
  }

  .page-header {
    flex-direction: column;
    align-items: start;
  }
}
