/* ── App shell ─────────────────────────────────────────────────────────── */
.app-shell {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ── Sidebar ───────────────────────────────────────────────────────────── */
.sidebar {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.sidebar-header { padding: 20px 16px 12px; }

.sidebar-logo { display: block; }
.sidebar-logo img { display: block; width: 100%; height: auto; }
.sidebar-logo:hover { opacity: 0.85; }

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 4px 8px;
  gap: 2px;
}

.nav-item {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: background 150ms ease-out, color 150ms ease-out;
}
.nav-item:hover { background: var(--bg-raised); color: var(--text-primary); }
.nav-item.is-active { background: var(--bg-raised); color: var(--text-primary); font-weight: 500; }

.nav-group { margin-top: 8px; }
.nav-group-label {
  display: block;
  padding: 4px 10px;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.nav-item--sub { padding-left: 20px; }

.sidebar-footer {
  padding: 12px 8px;
  border-top: 1px solid var(--border-subtle);
}
.sidebar-username {
  display: block;
  padding: 4px 10px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Main content ──────────────────────────────────────────────────────── */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px 40px;
}

/* ── Hamburger (mobile) ────────────────────────────────────────────────── */
.sidebar-toggle { display: none !important; }

@media (max-width: 768px) {
  .sidebar-toggle {
    display: flex !important;
    position: fixed;
    top: 12px; left: 12px;
    z-index: 200;
    padding: 6px 10px;
  }
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 200ms ease-in-out;
  }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main-content { padding: 60px 16px 24px; }
}

/* ── Flash container ───────────────────────────────────────────────────── */
.flash-container {
  position: fixed;
  bottom: 24px; right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
  pointer-events: none;
}

/* ── Auth layout ───────────────────────────────────────────────────────── */
.auth-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 40px 16px;
}

.auth-shell {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-logo { display: block; margin-bottom: 32px; }
.auth-logo img { display: block; width: 220px; max-width: none; height: auto; }
.auth-logo:hover { opacity: 0.85; }

.auth-card { width: 100%; padding: 32px; }
.auth-card__title  { margin-bottom: 24px; font-size: var(--text-xl); }
.auth-card__footer { margin-top: 20px; text-align: center; font-size: var(--text-sm); color: var(--text-muted); }

.auth-blurb            { width: 100%; text-align: center; margin-bottom: 20px; }
.auth-blurb__headline  { font-size: var(--text-lg); font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.auth-blurb__body      { font-size: var(--text-sm); color: var(--text-muted); line-height: 1.6; margin: 0; }

.auth-verify         { text-align: center; padding: 16px 0; }
.auth-verify__title  { margin-bottom: 12px; }
.auth-verify__error  { color: var(--danger); margin-bottom: 12px; }
.auth-verify__msg    { color: var(--text-secondary); }
.auth-verify__action { margin-top: 20px; }

/* ── Content wrappers ──────────────────────────────────────────────────── */
.profile-wrap    { max-width: 560px; }
.skill-form-wrap { max-width: 640px; }

/* ── Page sections ─────────────────────────────────────────────────────── */
.section            { margin-bottom: 32px; }
.section-title      { margin-bottom: 16px; }
.section-title__sub { font-size: var(--text-sm); font-weight: 400; }
.section-title-row  { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-title-row .section-title { margin-bottom: 0; }
.section-divider    { border-color: var(--border-subtle); margin: 32px 0; }

/* ── Load more ─────────────────────────────────────────────────────────── */
.load-more-wrap { text-align: center; margin-top: 20px; }

/* ── Avatar ────────────────────────────────────────────────────────────── */
.avatar-row { display: flex; align-items: center; gap: 20px; margin-bottom: 16px; }
.avatar-img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-raised);
}
.avatar-placeholder {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg-raised);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  font-size: 28px;
}
.drop-zone--sm { padding: 16px 24px; }

/* ── Page header strip ─────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.page-header h1 { margin: 0; }
