/* Member Console Layout Styles
   Design tokens and shared components: ../shared/shared-tokens.css
   This file contains ONLY sidebar, topbar, member-console-specific layout,
   and page-specific styles not present in shared-tokens.css */


/* ═══════════════════════════════════════════════════════
   5. LAYOUT — Sidebar, Topbar, Main
   Sidebar: 260px fixed left. Topbar: 56px fixed top.
   ═══════════════════════════════════════════════════════ */

/* ─── Sidebar Background (navy in light, near-black in dark) ─── */
#sidebar {
  background-color: hsl(var(--sidebar-background));
  color: hsl(var(--sidebar-foreground));
}

/* ─── Sidebar Nav Items ─── */
.sidebar-item {
  color: hsl(var(--sidebar-foreground) / 0.65);
  transition: all 0.15s;
}
.sidebar-item:hover {
  color: hsl(var(--sidebar-foreground));
  background-color: hsl(var(--sidebar-accent));
}
.sidebar-item-active {
  color: hsl(var(--sidebar-primary));
  background-color: hsl(var(--sidebar-primary) / 0.12);
}

/* ─── Sidebar Scrollbar (hidden) ─── */
#sidebar::-webkit-scrollbar, #sidebar *::-webkit-scrollbar { display: none; }
#sidebar, #sidebar * { scrollbar-width: none; -ms-overflow-style: none; }

/* ─── Global Scrollbar ─── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--zinc-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--zinc-400); }
::-webkit-scrollbar-track { background: transparent; }
html.dark ::-webkit-scrollbar-thumb { background: var(--dm-secondary); }


/* ═══════════════════════════════════════════════════════
   15. MEMBER PROFILE CARD
   Member-specific: inline profile summary component
   ═══════════════════════════════════════════════════════ */

.member-profile-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
}
.member-profile-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(252,204,72,0.06);
  pointer-events: none;
}
.member-profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}
.member-profile-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.member-profile-org {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 2px;
}
.member-profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  background: rgba(252,204,72,0.15);
  color: var(--gold);
  border-radius: 9999px;
  font-size: 0.65rem;
  font-weight: 600;
  margin-top: var(--space-2);
}


/* ═══════════════════════════════════════════════════════
   26. LOGIN PAGE
   Member login — dark-themed split layout
   ═══════════════════════════════════════════════════════ */

.login-card {
  background: linear-gradient(145deg, #13143f 0%, #0e0f30 50%, #0a0b24 100%);
}
.login-page-bg {
  background: #1a1b3a;
}
.login-card-shadow {
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}
.hero-image {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.hero-slide.active { opacity: 1; }
.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(74,78,204,0.3) 0%, rgba(16,17,61,0.6) 60%, rgba(16,17,61,0.95) 100%);
}
.login-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  transition: all 0.2s;
}
.login-input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252,204,72,0.15);
  background: rgba(255,255,255,0.08);
}
.login-input::placeholder { color: rgba(255,255,255,0.35); }
.social-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  transition: all 0.2s;
}
.social-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}
.dot { width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.25); transition: all 0.3s; }
.dot.active { width: 32px; background: rgba(255,255,255,0.8); }


/* ═══════════════════════════════════════════════════════
   29. RESPONSIVE — Sidebar-specific breakpoints
   ═══════════════════════════════════════════════════════ */

@media (max-width: 639px) {
  #sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease-in-out;
    z-index: 300 !important;
  }
  #sidebar.sidebar-open {
    transform: translateX(0);
  }
  #topbar {
    margin-left: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }
  .sidebar-toggle {
    display: flex !important;
  }
  main {
    margin-left: 0 !important;
    padding: var(--space-4) !important;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  #sidebar {
    width: 64px !important;
  }
  #sidebar .sidebar-label {
    display: none;
  }
  #sidebar .sidebar-item {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  main {
    margin-left: 64px !important;
  }
  #topbar {
    left: 64px !important;
    width: calc(100% - 64px) !important;
  }
}


/* ═══════════════════════════════════════════════════════
   34. HAMBURGER MENU BUTTON & SIDEBAR OVERLAY
   Mobile navigation toggle
   ═══════════════════════════════════════════════════════ */

.sidebar-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--zinc-700);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color 0.15s;
  flex-shrink: 0;
}
.sidebar-toggle:hover {
  background-color: var(--zinc-100);
}
html.dark .sidebar-toggle {
  color: var(--dm-foreground);
}
html.dark .sidebar-toggle:hover {
  background-color: var(--dm-hover);
}

.sidebar-toggle-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}
.sidebar-toggle-icon span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 250;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.25s ease-in-out;
}
.sidebar-overlay.active {
  display: block;
  opacity: 1;
}
html.dark .sidebar-overlay {
  background: rgba(0,0,0,0.7);
}

@media (max-width: 639px) {
  .sidebar-toggle { display: flex; }
}


/* ═══════════════════════════════════════════════════════
   35. SIDEBAR COLLAPSE — Desktop Toggle
   Panel-left button collapses sidebar to 64px icon-only
   ═══════════════════════════════════════════════════════ */

#sidebar  { transition: width 0.22s ease; overflow: hidden; }
#topbar   { transition: left 0.22s ease; }
main      { transition: margin-left 0.22s ease; }

.sidebar-desktop-toggle { display: none; }
@media (min-width: 1024px) {
  .sidebar-desktop-toggle { display: flex; }
  .sidebar-toggle { display: none !important; }
}

@media (min-width: 1024px) {
  body.rs-collapsed #sidebar { width: 64px; }
  body.rs-collapsed #topbar { left: 64px !important; }
  body.rs-collapsed main { margin-left: 64px !important; }

  body.rs-collapsed .sidebar-section-label,
  body.rs-collapsed .sidebar-item-label,
  body.rs-collapsed .sidebar-logo-text,
  body.rs-collapsed .sidebar-user-info,
  body.rs-collapsed .sidebar-item-badge {
    display: none !important;
  }

  body.rs-collapsed .sidebar-item,
  body.rs-collapsed .sidebar-item-active {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-inline: 4px !important;
    gap: 0 !important;
  }

  body.rs-collapsed .sidebar-logo-wrap {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }

  body.rs-collapsed .sidebar-user-footer {
    justify-content: center !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    gap: 0 !important;
  }
}


/* ═══════════════════════════════════════════════════════
   41. LOGIN PAGE — Account Picker
   Member login account picker, OTP input
   ═══════════════════════════════════════════════════════ */

.login-view { display: none; }
.login-view.active { display: block; }

.account-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  cursor: pointer;
  transition: all 0.2s;
}
.account-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(252,204,72,0.3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.account-card .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.account-card .avatar-fallback {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  background: var(--gold);
}
.account-card .info { flex: 1; min-width: 0; }
.account-card .info .name { font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-card .info .email { font-size: 12px; color: rgba(255,255,255,0.4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-card .info .meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,0.4);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  padding: 0;
}
.back-btn:hover { color: rgba(255,255,255,0.7); }

.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  transition: all 0.2s;
  outline: none;
}
.otp-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(252,204,72,0.15);
  background: rgba(255,255,255,0.08);
}

.account-list {
  max-height: 340px;
  overflow-y: auto;
  padding-right: 4px;
}
.account-list::-webkit-scrollbar { width: 4px; }
.account-list::-webkit-scrollbar-track { background: transparent; }
.account-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }
.account-list::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.account-card .chevron {
  flex-shrink: 0;
  color: rgba(255,255,255,0.2);
  transition: color 0.2s;
}
.account-card:hover .chevron { color: rgba(252,204,72,0.6); }

.right-panel {
  overflow-y: auto;
  max-height: 100vh;
}
.right-panel::-webkit-scrollbar { width: 4px; }
.right-panel::-webkit-scrollbar-track { background: transparent; }
.right-panel::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }

.feature-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  border-radius: 10px;
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}
.feature-card.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 767px) {
  .login-card { min-height: 100vh; border-radius: 0 !important; }
}


/* ═══════════════════════════════════════════════════════
   43. PROFILE POPOVER
   User avatar dropdown in topbar
   ═══════════════════════════════════════════════════════ */

#profile-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  background: var(--white);
  border: 1px solid var(--zinc-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 100;
  overflow: hidden;
}
html.dark #profile-popover {
  background: var(--dm-card);
  border-color: var(--dm-border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.profile-popover-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--zinc-100);
}
html.dark .profile-popover-header {
  border-bottom-color: var(--dm-border);
}

.profile-popover-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--zinc-900);
}
html.dark .profile-popover-name { color: var(--dm-foreground); }

.profile-popover-email {
  font-size: 0.72rem;
  color: var(--zinc-500);
  margin-top: 1px;
}
html.dark .profile-popover-email { color: var(--dm-muted-foreground); }

.profile-popover-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 0.8rem;
  color: var(--zinc-700);
  cursor: pointer;
  transition: background-color 0.15s;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.profile-popover-item:hover {
  background-color: var(--zinc-50);
}
html.dark .profile-popover-item {
  color: var(--dm-muted-foreground);
}
html.dark .profile-popover-item:hover {
  background-color: var(--dm-hover);
  color: var(--dm-foreground);
}

.profile-popover-divider {
  height: 1px;
  background: var(--zinc-100);
  margin: 4px 0;
}
html.dark .profile-popover-divider {
  background: var(--dm-border);
}

.profile-popover-item-danger { color: var(--error); }
.profile-popover-item-danger:hover {
  background-color: var(--error-light);
  color: var(--error);
}
html.dark .profile-popover-item-danger { color: #f87171; }
html.dark .profile-popover-item-danger:hover {
  background-color: rgba(239,68,68,0.12);
  color: #f87171;
}


/* ═══════════════════════════════════════════════════════
   DASHBOARD PAGE STYLES
   Welcome banner, stat cards, quick actions, chart
   ═══════════════════════════════════════════════════════ */

.db-welcome {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.db-welcome-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}
.db-welcome-monogram {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(252,204,72,0.15);
  border: 2px solid rgba(252,204,72,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.db-welcome-monogram span {
  font-size: 1rem;
  font-weight: 800;
  color: var(--gold);
  letter-spacing: 0.05em;
}
.db-stat-card {
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.db-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.db-family-card {
  border-left: 3px solid var(--gold);
}
.db-quick-action {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--zinc-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-3) var(--space-2);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
  cursor: pointer;
}
.db-quick-action:hover {
  border-color: var(--gold);
  background-color: rgba(252,204,72,0.04);
}
.db-chart-wrap {
  position: relative;
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-bottom: 20px;
}
.db-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  position: relative;
}
.db-chart-bar {
  width: 100%;
  border-radius: 4px 4px 0 0;
  background: var(--navy);
  transition: height 0.3s ease;
  min-height: 8px;
  opacity: 0.85;
}
.db-chart-bar-active { background: var(--gold); opacity: 1; }
.db-chart-bar-muted { opacity: 0.45; }
.db-chart-label {
  position: absolute;
  bottom: -18px;
  font-size: 10px;
  text-align: center;
  color: var(--zinc-500);
  width: 100%;
  line-height: 1;
}

html.dark .db-welcome {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%);
}
html.dark .db-family-card { background: var(--dm-card); }
html.dark .db-quick-action {
  background: var(--dm-card);
  border-color: var(--dm-border);
}
html.dark .db-quick-action:hover {
  border-color: var(--gold);
  background-color: rgba(252,204,72,0.06);
}
html.dark .db-chart-bar { background: color-mix(in srgb, var(--navy-light) 80%, white 20%); }
html.dark .db-chart-bar-active { background: var(--gold); }
html.dark .db-chart-label { color: var(--dm-muted-foreground); }


/* ═══════════════════════════════════════════════════════
   FAMILY BOOK — SVG DENDROGRAM
   Dark-mode-safe node and link colours
   ═══════════════════════════════════════════════════════ */

.dendrogram-node { fill: var(--navy); }
.dendrogram-node-member { fill: var(--white); stroke: var(--gold); stroke-width: 2; }
.dendrogram-link { stroke: var(--zinc-300); stroke-width: 1.5; }
html.dark .dendrogram-node { fill: var(--navy-light); }
html.dark .dendrogram-node-member { fill: var(--dm-card); stroke: var(--gold); }
html.dark .dendrogram-link { stroke: var(--zinc-700); }

html.dark .fb-svg-container text.fb-node-name { fill: var(--dm-foreground) !important; }
html.dark .fb-svg-container text.fb-role-label { fill: var(--dm-muted-foreground) !important; }
html.dark .fb-svg-container line { stroke: var(--dm-border) !important; }
html.dark .fb-svg-container circle { stroke: var(--dm-secondary) !important; }


/* ═══════════════════════════════════════════════════════
   ANNOUNCEMENTS NEWS FEED
   Category chips, featured card, news grid
   ═══════════════════════════════════════════════════════ */

.ann-cat-chip {
  background: transparent;
  border: 1.5px solid var(--zinc-200);
  color: var(--zinc-500);
  cursor: pointer;
}
.ann-cat-chip:hover {
  background: var(--zinc-100);
  color: var(--zinc-700);
}
.ann-cat-chip-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
html.dark .ann-cat-chip {
  border-color: rgba(255,255,255,0.10);
  color: var(--zinc-400);
}
html.dark .ann-cat-chip:hover {
  background: rgba(255,255,255,0.06);
  color: var(--zinc-200);
}
html.dark .ann-cat-chip-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.ann-featured-card { min-height: 280px; }
.ann-featured-img-wrap, .ann-news-img-wrap {
  width: 100%;
  height: 300px;
  overflow: hidden;
}
.ann-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.ann-news-card:hover .ann-news-img-wrap img { transform: scale(1.04); }

.ann-pinned-badge {
  background: var(--warning-light);
  color: #92400e;
  border: 1px solid #fde68a;
}
html.dark .ann-pinned-badge {
  background: rgba(251,191,36,0.15);
  color: #fbbf24;
  border-color: rgba(251,191,36,0.25);
}

.ann-cat-badge-general  { background: var(--info-light); color: #1d4ed8; }
.ann-cat-badge-events   { background: #ede9fe; color: #6d28d9; }
.ann-cat-badge-ministry { background: var(--success-light); color: #15803d; }
.ann-cat-badge-finance  { background: var(--warning-light); color: #b45309; }
.ann-cat-badge-prayer   { background: #ffe4e6; color: #be123c; }
html.dark .ann-cat-badge-general  { background: rgba(59,130,246,0.15);  color: #7eb8fc; }
html.dark .ann-cat-badge-events   { background: rgba(139,92,246,0.15);  color: #c4b5fd; }
html.dark .ann-cat-badge-ministry { background: rgba(34,197,94,0.15);   color: #4ade80; }
html.dark .ann-cat-badge-finance  { background: rgba(245,158,11,0.15);  color: #fbbf24; }
html.dark .ann-cat-badge-prayer   { background: rgba(244,63,94,0.15);   color: #fb7185; }

.ann-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
}
.ann-avatar-jm { background: var(--navy); }
.ann-avatar-yd { background: #6d28d9; }
.ann-avatar-cs { background: #b45309; }
.ann-avatar-mk { background: #15803d; }
.ann-avatar-ot { background: #be123c; }
.ann-avatar-pd { background: #0e7490; }
.ann-avatar-ad { background: var(--zinc-700); }

@media (max-width: 639px) {
  #news-grid { grid-template-columns: 1fr; }
  .ann-featured-card { flex-direction: column; }
  .ann-featured-img-wrap { width: 100% !important; }
}


/* ═══════════════════════════════════════════════════════
   SERVICE REQUESTS — STATUS BADGES & PROGRESS TRACKER
   ═══════════════════════════════════════════════════════ */

.sr-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.sr-badge-pending    { background-color: var(--warning-light); color: #92400e; }
.sr-badge-inprogress { background-color: var(--info-light);    color: #1e40af; }
.sr-badge-completed  { background-color: var(--success-light); color: #166534; }
.sr-badge-rejected   { background-color: var(--error-light);   color: #991b1b; }

html.dark .sr-badge-pending    { background-color: rgba(245,158,11,0.15); color: #fcd34d; }
html.dark .sr-badge-inprogress { background-color: rgba(59,130,246,0.15); color: #93c5fd; }
html.dark .sr-badge-completed  { background-color: rgba(34,197,94,0.15);  color: #86efac; }
html.dark .sr-badge-rejected   { background-color: rgba(239,68,68,0.15);  color: #fca5a5; }

.sr-progress-track {
  display: flex;
  align-items: center;
  gap: 0;
}
.sr-progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.sr-step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--zinc-300);
  border: 2px solid var(--zinc-300);
  transition: background-color 0.2s, border-color 0.2s;
}
.sr-step-label {
  font-size: 10px;
  font-weight: 500;
  color: var(--zinc-400);
  white-space: nowrap;
  line-height: 1;
}
.sr-progress-line {
  flex: 1;
  height: 2px;
  background-color: var(--zinc-200);
  margin-bottom: 14px;
  min-width: 24px;
  transition: background-color 0.2s;
}
.sr-step-done .sr-step-dot { background-color: var(--success); border-color: var(--success); }
.sr-step-done .sr-step-label { color: #166534; font-weight: 600; }
.sr-line-done { background-color: var(--success); }
.sr-step-active .sr-step-dot {
  background-color: var(--info);
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.25);
}
.sr-step-active .sr-step-label { color: #1e40af; font-weight: 700; }
.sr-line-active { background: linear-gradient(to right, var(--success) 50%, var(--zinc-200) 50%); }

html.dark .sr-step-dot { background-color: var(--zinc-700); border-color: var(--zinc-700); }
html.dark .sr-step-label { color: var(--dm-muted-foreground); }
html.dark .sr-progress-line { background-color: var(--zinc-700); }
html.dark .sr-step-done .sr-step-dot { background-color: var(--success); border-color: var(--success); }
html.dark .sr-step-done .sr-step-label { color: #4ade80; }
html.dark .sr-line-done { background-color: var(--success); }
html.dark .sr-step-active .sr-step-dot {
  background-color: var(--info);
  border-color: var(--info);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.20);
}
html.dark .sr-step-active .sr-step-label { color: #7eb8fc; }
html.dark .sr-line-active { background: linear-gradient(to right, var(--success) 50%, var(--zinc-700) 50%); }

/* ── Family Book SVG Dendrogram Dark Mode ────────────────────────────────── */
.fb-node-navy   { fill: var(--navy); }
.fb-node-gold   { fill: var(--gold); }
.fb-node-purple { fill: #6366F1; }
.fb-text-white  { fill: #fff; }
.fb-text-dark   { fill: var(--zinc-900, #18181b); }
.fb-text-muted  { fill: var(--zinc-500, #71717a); }
html.dark .fb-text-dark  { fill: var(--dm-text, #f4f4f5); }
html.dark .fb-text-muted { fill: var(--zinc-400, #a1a1aa); }
