.dashboard-body {
  background:
    radial-gradient(1000px 320px at 0% 0%, rgba(14,140,107,.08), transparent 60%),
    radial-gradient(900px 280px at 100% 10%, rgba(182,139,46,.08), transparent 60%),
    #f8faf9;
}

.dashboard-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18,46,39,.08);
}

.dashboard-topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dashboard-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--text, #0F2A22);
}

.dashboard-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.dashboard-brand small {
  display: block;
  color: var(--muted, rgba(15,42,34,.68));
}

.dashboard-topbar-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.user-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .8rem;
  border-radius: 999px;
  background: rgba(14,140,107,.08);
  color: var(--brand, #0E8C6B);
  font-size: .82rem;
  font-weight: 700;
}

.dashboard-main {
  min-height: calc(100vh - 78px);
}

.dashboard-shell {
  padding-top: 1.5rem;
}

.dashboard-hero {
  background: linear-gradient(135deg, #ffffff, rgba(14,140,107,.05));
  border: 1px solid rgba(18,46,39,.08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(12,24,20,.06);
}

.dashboard-hero-card {
  background: linear-gradient(180deg, rgba(14,140,107,.08), rgba(47,191,155,.10));
  border: 1px solid rgba(14,140,107,.08);
  border-radius: 22px;
  padding: 1.25rem;
}

.hero-mini-label {
  font-size: .85rem;
  color: var(--muted, rgba(15,42,34,.68));
  margin-bottom: .45rem;
}

.hero-user-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text, #0F2A22);
}

.hero-user-email {
  color: var(--muted, rgba(15,42,34,.68));
  word-break: break-word;
}

.dashboard-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: rgba(14,140,107,.10);
  color: var(--brand, #0E8C6B);
  font-weight: 800;
}

.dashboard-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 900;
  color: var(--text, #0F2A22);
  line-height: 1.15;
}

.dashboard-subtitle {
  color: var(--muted, rgba(15,42,34,.72));
  max-width: 760px;
  font-size: 1rem;
}

.dashboard-alert {
  display: flex;
  align-items: flex-start;
  gap: .9rem;
  padding: 1rem 1.1rem;
  border-radius: 20px;
  border: 1px solid transparent;
}

.dashboard-alert--warning {
  background: rgba(255, 193, 7, .08);
  border-color: rgba(255, 193, 7, .18);
}

.dashboard-alert--info {
  background: rgba(13, 110, 253, .06);
  border-color: rgba(13, 110, 253, .15);
}

.dashboard-alert-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.7);
  flex-shrink: 0;
}

.dashboard-alert-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: .3rem;
  color: var(--text, #0F2A22);
}

.dashboard-alert-text {
  color: var(--muted, rgba(15,42,34,.72));
  font-size: .93rem;
}

.dashboard-card {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(18,46,39,.08);
  border-radius: 24px;
  padding: 1.25rem;
  box-shadow: 0 18px 40px rgba(12,24,20,.05);
}

.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all .25s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(12,24,20,.10);
}

.stat-icon,
.quick-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14,140,107,.10);
  color: var(--brand, #0E8C6B);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.stat-label {
  font-size: .95rem;
  color: var(--muted, rgba(15,42,34,.68));
  margin-bottom: .35rem;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--text, #0F2A22);
  line-height: 1.1;
}

.stat-note {
  color: var(--muted, rgba(15,42,34,.68));
  font-size: .9rem;
  margin-top: .35rem;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text, #0F2A22);
}

.section-text {
  color: var(--muted, rgba(15,42,34,.68));
  font-size: .95rem;
}

.quick-card {
  border: 1px solid rgba(18,46,39,.08);
  border-radius: 20px;
  padding: 1rem;
  background: linear-gradient(180deg, #fff, #fcfcfc);
  height: 100%;
  transition: all .25s ease;
}

.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(12,24,20,.10);
}

.quick-card--accent {
  background: linear-gradient(180deg, rgba(14,140,107,.06), rgba(47,191,155,.08));
}

.quick-title {
  font-size: 1rem;
  font-weight: 800;
  margin: 1rem 0 .5rem;
  color: var(--text, #0F2A22);
}

.quick-text {
  color: var(--muted, rgba(15,42,34,.68));
  font-size: .92rem;
  margin-bottom: 1rem;
}

.status-list {
  display: grid;
  gap: .9rem;
}

.status-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border-radius: 16px;
  background: #f8fbfa;
  border: 1px solid rgba(18,46,39,.06);
}

.status-label {
  font-weight: 700;
  color: var(--text, #0F2A22);
}

.status-badge {
  padding: .35rem .7rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
}

.status-badge.is-done {
  background: rgba(25, 135, 84, .12);
  color: #198754;
}

.status-badge.is-pending {
  background: rgba(255, 193, 7, .15);
  color: #9a6b00;
}

.account-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(18,46,39,.08);
}

.account-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.account-list span {
  color: var(--muted, rgba(15,42,34,.68));
}

.account-list strong {
  color: var(--text, #0F2A22);
  font-weight: 700;
  text-align: left;
  direction: ltr;
}

.task-list {
  display: grid;
  gap: .85rem;
}

.task-list li {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .8rem .95rem;
  border-radius: 16px;
  background: #f8fbfa;
  border: 1px solid rgba(18,46,39,.06);
}

.task-list li i {
  color: var(--brand, #0E8C6B);
}

.table-wrap {
  overflow-x: auto;
}

.dashboard-table thead th {
  font-weight: 800;
  color: var(--text, #0F2A22);
  white-space: nowrap;
  border-bottom-width: 1px;
}

.dashboard-table tbody td {
  vertical-align: middle;
  white-space: nowrap;
}

.table-badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(25,135,84,.12);
  color: #198754;
  font-size: .78rem;
  font-weight: 800;
}

.table-badge--light {
  background: rgba(14,140,107,.10);
  color: var(--brand, #0E8C6B);
}

.timeline-mini {
  display: grid;
  gap: 1rem;
}

.timeline-mini--grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.timeline-item-mini {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--brand, #0E8C6B);
  margin-top: .35rem;
  flex-shrink: 0;
}

.btn-soft {
  background: rgba(14,140,107,.08);
  border: 1px solid rgba(14,140,107,.12);
  color: var(--brand, #0E8C6B);
}

.btn-soft:hover {
  background: rgba(14,140,107,.15);
  color: var(--brand, #0E8C6B);
}

@media (max-width: 991.98px) {
  .dashboard-topbar-inner {
    padding: .75rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-topbar-actions {
    width: 100%;
  }

  .dashboard-title {
    font-size: 2rem;
  }

  .dashboard-hero,
  .dashboard-card {
    border-radius: 20px;
  }

  .timeline-mini--grid {
    grid-template-columns: 1fr;
  }
}
.library-shell {
  min-height: 100%;
}

.library-hero {
  background: linear-gradient(135deg, #ffffff, rgba(14, 140, 107, .05));
  border: 1px solid rgba(18, 46, 39, .08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(12, 24, 20, .06);
}

.library-search-wrap {
  position: relative;
}

.library-search-wrap i {
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 42, 34, .45);
}

.library-search-wrap .form-control {
  padding-inline-start: 42px;
  min-height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(18, 46, 39, .10);
  background: #fff;
}

.library-filters {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.library-filter-btn {
  border: 1px solid rgba(18, 46, 39, .10);
  background: #fff;
  color: var(--text, #0F2A22);
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 700;
  transition: all .2s ease;
}

.library-filter-btn:hover,
.library-filter-btn.is-active {
  background: rgba(14, 140, 107, .10);
  color: var(--brand, #0E8C6B);
  border-color: rgba(14, 140, 107, .20);
}

.library-card {
  display: flex;
  flex-direction: column;
  transition: all .25s ease;
}

.library-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(12, 24, 20, .10);
}

.library-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.library-card-badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(14, 140, 107, .10);
  color: var(--brand, #0E8C6B);
  font-size: .8rem;
  font-weight: 800;
}

.library-card-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 140, 107, .08);
  color: var(--brand, #0E8C6B);
  font-size: 1rem;
}

.library-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--text, #0F2A22);
  margin-bottom: .65rem;
}

.library-card-text {
  color: var(--muted, rgba(15, 42, 34, .68));
  font-size: .94rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.library-card-meta {
  color: rgba(15, 42, 34, .55);
  font-size: .85rem;
}

.library-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(14, 140, 107, .10);
  color: var(--brand, #0E8C6B);
  font-size: 1.2rem;
}
.admin-body {
  background:
    radial-gradient(1000px 320px at 0% 0%, rgba(182,139,46,.08), transparent 60%),
    radial-gradient(900px 280px at 100% 10%, rgba(14,140,107,.08), transparent 60%),
    #f8faf9;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18,46,39,.08);
}

.admin-topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--text, #0F2A22);
}

.admin-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.admin-brand small {
  display: block;
  color: var(--muted, rgba(15,42,34,.68));
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.admin-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .8rem;
  border-radius: 999px;
  background: rgba(182,139,46,.10);
  color: #9a741f;
  font-size: .82rem;
  font-weight: 700;
}

.admin-main {
  min-height: calc(100vh - 78px);
}

.admin-shell {
  padding-top: 1.5rem;
}

.admin-hero {
  background: linear-gradient(135deg, #ffffff, rgba(182,139,46,.05));
  border: 1px solid rgba(18,46,39,.08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(12,24,20,.06);
}

.admin-hero-card {
  background: linear-gradient(180deg, rgba(182,139,46,.08), rgba(14,140,107,.08));
  border: 1px solid rgba(182,139,46,.10);
  border-radius: 22px;
  padding: 1.25rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: rgba(182,139,46,.12);
  color: #9a741f;
  font-weight: 800;
}

.admin-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 900;
  color: var(--text, #0F2A22);
  line-height: 1.15;
}

.admin-subtitle {
  color: var(--muted, rgba(15,42,34,.72));
  max-width: 760px;
  font-size: 1rem;
}

.admin-stat-card .stat-icon {
  background: rgba(182,139,46,.12);
  color: #9a741f;
}

.admin-panel-box {
  border: 1px solid rgba(18,46,39,.08);
  border-radius: 20px;
  padding: 1.1rem;
  height: 100%;
  background: linear-gradient(180deg, #fff, #fcfcfc);
  transition: all .25s ease;
}

.admin-panel-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 35px rgba(12,24,20,.10);
}

.admin-panel-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(182,139,46,.12);
  color: #9a741f;
  font-size: 1.1rem;
  margin-bottom: .9rem;
}

.admin-panel-box h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text, #0F2A22);
  margin-bottom: .45rem;
}

.admin-panel-box p {
  color: var(--muted, rgba(15,42,34,.68));
  font-size: .92rem;
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .admin-topbar-inner {
    padding: .75rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-topbar-actions {
    width: 100%;
  }

  .admin-title {
    font-size: 2rem;
  }

  .admin-hero,
  .admin-hero-card {
    border-radius: 20px;
  }
}
.genealogist-body {
  background:
    radial-gradient(1000px 320px at 0% 0%, rgba(14,140,107,.07), transparent 60%),
    radial-gradient(900px 280px at 100% 10%, rgba(61,126,93,.08), transparent 60%),
    #f8faf9;
}

.genealogist-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  background: rgba(255,255,255,.90);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(18,46,39,.08);
}

.genealogist-topbar-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.genealogist-brand {
  display: inline-flex;
  align-items: center;
  gap: .85rem;
  color: var(--text, #0F2A22);
}

.genealogist-brand strong {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
}

.genealogist-brand small {
  display: block;
  color: var(--muted, rgba(15,42,34,.68));
}

.genealogist-topbar-actions {
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
}

.genealogist-mini-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .42rem .8rem;
  border-radius: 999px;
  background: rgba(61,126,93,.10);
  color: #3d7e5d;
  font-size: .82rem;
  font-weight: 700;
}

.genealogist-main {
  min-height: calc(100vh - 78px);
}

.genealogist-shell {
  padding-top: 1.5rem;
}

.genealogist-hero {
  background: linear-gradient(135deg, #ffffff, rgba(61,126,93,.05));
  border: 1px solid rgba(18,46,39,.08);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 18px 45px rgba(12,24,20,.06);
}

.genealogist-hero-card {
  background: linear-gradient(180deg, rgba(61,126,93,.08), rgba(14,140,107,.08));
  border: 1px solid rgba(61,126,93,.10);
  border-radius: 22px;
  padding: 1.25rem;
}

.genealogist-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .55rem .95rem;
  border-radius: 999px;
  background: rgba(61,126,93,.12);
  color: #3d7e5d;
  font-weight: 800;
}

.genealogist-title {
  font-size: clamp(2rem, 2.6vw, 3rem);
  font-weight: 900;
  color: var(--text, #0F2A22);
  line-height: 1.15;
}

.genealogist-subtitle {
  color: var(--muted, rgba(15,42,34,.72));
  max-width: 760px;
  font-size: 1rem;
}

.genealogist-stat-card .stat-icon {
  background: rgba(61,126,93,.12);
  color: #3d7e5d;
}

@media (max-width: 991.98px) {
  .genealogist-topbar-inner {
    padding: .75rem 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .genealogist-topbar-actions {
    width: 100%;
  }

  .genealogist-title {
    font-size: 2rem;
  }

  .genealogist-hero,
  .genealogist-hero-card {
    border-radius: 20px;
  }
}