/* App shell */

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  z-index: 30;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  padding: 25px 14px 18px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(20px);
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  color: #ffffff;
  background: var(--accent);
}

.brand-name {
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.sidebar-label {
  padding: 0 14px 8px;
  color: #9aa1b1;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--muted);
  background: transparent;
  text-align: left;
  transition: color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.nav-button:hover {
  color: var(--text);
  background: var(--surface-muted);
}

.nav-button.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 650;
}

.nav-button .nav-badge {
  min-width: 21px;
  margin-left: auto;
  padding: 1px 6px;
  border-radius: 10px;
  color: var(--accent-strong);
  background: rgba(82, 104, 232, 0.14);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}

.sidebar-spacer {
  flex: 1;
}

.sidebar-account {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 4px 0;
  padding: 12px 10px;
  border-top: 1px solid var(--border);
}

.avatar {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 750;
}

.account-email {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.main-shell {
  width: calc(100% - var(--sidebar-width));
  min-width: 0;
  margin-left: var(--sidebar-width);
}

.topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(24px, 4vw, 60px);
  border-bottom: 1px solid rgba(229, 232, 240, 0.8);
  background: rgba(246, 247, 251, 0.82);
  backdrop-filter: blur(18px);
}

.topbar-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-title h1 {
  margin: 0;
  font-size: 17px;
  letter-spacing: -0.025em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.mobile-menu-button {
  display: none;
  padding: 8px;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
}

.page {
  width: min(1220px, 100%);
  margin: 0 auto;
  padding: 44px clamp(24px, 4vw, 60px) 72px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.page-header h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  letter-spacing: -0.06em;
  line-height: 1.15;
}

.page-header p {
  margin: 10px 0 0;
  color: var(--muted);
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

