.shell { display: flex; min-height: 100vh; align-items: stretch }

.shell-sidebar {
  width: 230px; flex: none; background: var(--color-navy-light);
  border-inline-start: 1px solid rgba(196,163,90,.25);
  display: flex; flex-direction: column; padding: 22px 0;
}
.shell-sidebar .brand { display: flex; justify-content: center; padding: 0 20px 22px; margin-bottom: 10px; border-bottom: 1px solid rgba(196,163,90,.2) }
.shell-sidebar .brand img { height: 34px; width: auto }

.shell-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; flex: 1 }
.shell-nav a {
  display: block; text-decoration: none; color: var(--text-82); font-size: 14.5px;
  padding: 11px 14px; border-radius: 10px; border-inline-end: 3px solid transparent;
}
.shell-nav a:hover { background: rgba(196,163,90,.08) }
.shell-nav a.active { background: rgba(110,29,38,.35); color: var(--color-cream); font-weight: 700; border-inline-end-color: var(--color-gold) }

.shell-logout {
  margin: 12px 12px 0; background: none; border: 1px solid var(--color-gold); color: var(--color-cream);
  border-radius: 10px; padding: 10px 14px; font-family: inherit; font-size: 13.5px; cursor: pointer;
}

.shell-main { flex: 1; min-width: 0 }
.shell-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 28px; border-bottom: 1px solid rgba(196,163,90,.2);
}
.shell-topbar .who { display: flex; align-items: center; gap: 14px; font-size: 14px }
.shell-topbar .username { font-weight: 700 }
.shell-topbar .membership-pill {
  display: inline-flex; align-items: center; gap: 7px; font-size: 13px;
  background: var(--color-navy-dark); border-radius: 999px; padding: 6px 14px;
}

.shell-page { max-width: 880px; margin: 0 auto; padding: 36px 24px }
.shell-page h1 { font-family: var(--font-heading); font-size: 24px; margin: 0 0 8px }
.shell-page .lead { color: var(--text-70); font-size: 14.5px; margin: 0 0 30px }

#shell-loading, #shell-forbidden { text-align: center; padding: 100px 20px; color: var(--text-70) }
#shell-forbidden a { color: var(--color-gold) }

@media (max-width: 760px) {
  .shell { flex-direction: column }
  .shell-sidebar { width: 100%; flex-direction: row; overflow-x: auto; padding: 12px }
  .shell-sidebar .brand { display: none }
  .shell-nav { flex-direction: row; padding: 0 6px }
  .shell-nav a { white-space: nowrap; border-inline-end: 0; border-bottom: 3px solid transparent }
  .shell-nav a.active { border-bottom-color: var(--color-gold) }
  .shell-logout { margin: 0 0 0 6px }
}
