.wkh-public {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 0;
}

.wkh-public *,
.wkh-public *::before,
.wkh-public *::after {
	box-sizing: border-box;
}

.wkh-hero-card,
.wkh-section-card,
.wkh-person-card,
.wkh-family-card,
.wkh-note-card,
.wkh-media-card,
.wkh-member-card,
.wkh-stat-card,
.wkh-tree-node,
.wkh-relation-summary-card,
.wkh-relationship-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

.wkh-hero-card,
.wkh-section-card {
	padding: 1.25rem;
	margin-bottom: 1.25rem;
}

.wkh-profile-hero {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	gap: 1.25rem;
	margin-bottom: 1.25rem;
}

.wkh-profile-main,
.wkh-profile-media {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
	padding: 1.25rem;
}

.wkh-profile-image {
	width: 100%;
	height: auto;
	max-height: 560px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
}

.wkh-hero-media-link {
	display: block;
	border-radius: 12px;
	overflow: hidden;
}

.wkh-two-col {
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 1.25rem;
}

.wkh-col-main,
.wkh-col-side {
	min-width: 0;
}

.wkh-breadcrumbs {
	margin-bottom: 1rem;
	color: #6b7280;
	font-size: 0.95rem;
}

.wkh-breadcrumbs a {
	text-decoration: none;
}

.wkh-breadcrumbs span {
	margin: 0 0.25rem;
}

.wkh-stat-grid,
.wkh-relation-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
	margin-top: 1rem;
}

.wkh-relation-summary-grid {
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	margin-top: 0;
}

.wkh-stat-card,
.wkh-relation-summary-card {
	padding: 1rem;
	text-align: center;
}

.wkh-stat-number,
.wkh-relation-summary-number {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.1;
}

.wkh-stat-label,
.wkh-relation-summary-label {
	color: #6b7280;
	margin-top: 0.25rem;
}

.wkh-person-grid,
.wkh-family-grid,
.wkh-media-grid,
.wkh-member-grid {
	display: grid;
	gap: 1rem;
}

.wkh-person-grid {
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.wkh-family-grid {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.wkh-media-grid {
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.wkh-member-grid {
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	margin-bottom: 1rem;
}

.wkh-person-card,
.wkh-family-card,
.wkh-member-card,
.wkh-media-card {
	overflow: hidden;
}

.wkh-person-card-thumb,
.wkh-family-card-thumb {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #f8fafc;
	border-bottom: 1px solid #eef2f7;
}

.wkh-person-card-thumb a,
.wkh-family-card-thumb a {
	display: block;
	width: 100%;
	height: 100%;
}

.wkh-person-card-image,
.wkh-family-card-image,
.wkh-media-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.wkh-person-card-body,
.wkh-family-card-body,
.wkh-media-card-body {
	padding: 1rem;
}

.wkh-person-card-footer {
	padding: 0 1rem 1rem;
}

.wkh-family-card h4,
.wkh-person-card h4,
.wkh-section-card h3,
.wkh-profile-main h2,
.wkh-note-card h4,
.wkh-kinship-group h4 {
	margin-top: 0;
}

.wkh-kinship-group + .wkh-kinship-group {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #eef2f7;
}

.wkh-relationship-card {
	padding: 1rem;
}

.wkh-relationship-card-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	gap: 0.75rem;
	align-items: center;
	margin-bottom: 1rem;
}

.wkh-relationship-arrow {
	font-size: 1.25rem;
	color: #6b7280;
	text-align: center;
}

.wkh-relationship-badge {
	display: inline-block;
	padding: 0.5rem 0.8rem;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-weight: 600;
	margin-bottom: 0.75rem;
}

.wkh-inline-link-sep {
	display: inline-block;
	margin: 0 0.35rem;
	color: #9ca3af;
}

.wkh-relationship-search-results {
	margin-top: 1rem;
	display: grid;
	gap: 0.75rem;
}

.wkh-relationship-search-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	background: #fff;
}

.wkh-button {
	display: inline-block;
	padding: 0.55rem 0.85rem;
	border-radius: 10px;
	background: #111827;
	color: #fff;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	border: 1px solid #111827;
}

.wkh-button:hover {
	color: #fff;
	opacity: 0.92;
}

.wkh-button.is-active {
	background: #2563eb;
	border-color: #2563eb;
}

.wkh-button.is-secondary {
	background: #fff;
	color: #111827;
	border-color: #d1d5db;
}

.wkh-button.is-secondary:hover {
	color: #111827;
}

.wkh-muted,
.wkh-meta {
	color: #6b7280;
}

.wkh-inline-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	margin: 0.75rem 0 0;
}

.wkh-summary {
	margin-top: 1rem;
}

.wkh-profile-actions {
	margin-top: 1rem;
}

.wkh-link-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wkh-link-list li {
	padding: 0.4rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.wkh-link-list li:last-child {
	border-bottom: none;
}

.wkh-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
}

.wkh-timeline li {
	display: grid;
	grid-template-columns: 160px 1fr;
	gap: 1rem;
	padding: 0.9rem 0;
	border-bottom: 1px solid #f1f5f9;
}

.wkh-timeline li:last-child {
	border-bottom: none;
}


.wkh-family-meta {
        margin-top: 10px;
        gap: 10px 18px;
}

.wkh-family-meta span {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 10px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.04);
        font-size: 0.95rem;
        line-height: 1.35;
}

.wkh-family-profile .wkh-relation-summary-card {
        min-height: 108px;
        justify-content: center;
}

.wkh-family-profile .wkh-relation-summary-number {
        font-size: 1.85rem;
}

.wkh-family-profile .wkh-relation-summary-label {
        margin-top: 6px;
}

.wkh-children-list {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        padding-left: 0;
        list-style: none;
}

.wkh-child-pill {
        margin: 0;
}

.wkh-child-pill a {
        display: inline-block;
        padding: 10px 14px;
        border-radius: 999px;
        background: rgba(0, 0, 0, 0.04);
        text-decoration: none;
        font-weight: 600;
}

.wkh-child-pill a:hover {
        background: rgba(0, 0, 0, 0.08);
}

.wkh-quick-nav-card .wkh-link-list,
.wkh-quick-nav-list {
        list-style: none;
        padding-left: 0;
        margin: 0;
}

.wkh-quick-nav-list li {
        margin: 0 0 8px 0;
}

.wkh-quick-nav-list li:last-child {
        margin-bottom: 0;
}

.wkh-quick-nav-list a {
        display: block;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(0, 0, 0, 0.03);
        text-decoration: none;
}

.wkh-quick-nav-list a:hover {
        background: rgba(0, 0, 0, 0.07);
}

@media (max-width: 782px) {
        .wkh-family-meta span {
                width: 100%;
                justify-content: flex-start;
        }

        .wkh-child-pill a,
        .wkh-quick-nav-list a {
                width: 100%;
                box-sizing: border-box;
        }
}

.wkh-timeline-date {
	font-weight: 600;
	color: #374151;
}

.wkh-note-card {
	padding: 1rem;
	margin-bottom: 1rem;
}

.wkh-pagination {
	margin-top: 1rem;
}

.wkh-pagination .page-numbers {
	display: inline-block;
	margin-right: 0.35rem;
	padding: 0.45rem 0.7rem;
	border: 1px solid #d1d5db;
	border-radius: 8px;
	text-decoration: none;
}

.wkh-pagination .current {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

/* Search */
.wkh-search-form {
	margin-top: 0.5rem;
}

.wkh-search-row {
	display: flex;
	gap: 0.75rem;
	flex-wrap: wrap;
	align-items: center;
}

.wkh-search-input {
	flex: 1 1 360px;
	min-width: 220px;
	padding: 0.8rem 0.9rem;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	font-size: 1rem;
}

.wkh-surname-index {
	margin-top: 1rem;
}

.wkh-surname-index-label {
	font-weight: 600;
	margin-bottom: 0.5rem;
}

.wkh-surname-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.wkh-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.45rem 0.7rem;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	background: #fff;
	color: #111827;
	text-decoration: none;
	font-size: 0.92rem;
}

.wkh-chip span {
	display: inline-block;
	padding: 0.1rem 0.4rem;
	border-radius: 999px;
	background: #f3f4f6;
	font-size: 0.82rem;
	color: #4b5563;
}

.wkh-chip.is-active {
	background: #111827;
	color: #fff;
	border-color: #111827;
}

.wkh-chip.is-active span {
	background: rgba(255,255,255,0.15);
	color: #fff;
}

/* Tree visualization */
.wkh-chart-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
}

.wkh-chart-actions {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.wkh-chart-root {
	margin-bottom: 1rem;
}

.wkh-chart-generation {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid #eef2f7;
}

.wkh-chart-generation-label {
	font-size: 0.95rem;
	font-weight: 700;
	color: #374151;
	margin-bottom: 0.75rem;
}

.wkh-chart-row {
	display: grid;
	gap: 1rem;
}

.wkh-chart-row.two-up {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wkh-chart-row.multi-up {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.wkh-chart-cell {
	min-width: 0;
}

.wkh-tree-node {
	padding: 1rem;
	position: relative;
}

.wkh-tree-node.is-root {
	border-color: #2563eb;
	box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}

.wkh-tree-node.is-empty {
	background: #f8fafc;
	border-style: dashed;
	color: #64748b;
}

.wkh-tree-node-name {
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.wkh-tree-node-name a {
	text-decoration: none;
}

.wkh-tree-node-meta {
	font-size: 0.92rem;
	margin-bottom: 0.65rem;
}

.wkh-tree-node-actions a {
	font-size: 0.9rem;
	text-decoration: none;
	font-weight: 600;
}

/* Lightbox */
.wkh-lightbox[hidden] {
	display: none !important;
}

.wkh-lightbox {
	position: fixed;
	inset: 0;
	z-index: 99999;
}

.wkh-lightbox-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.82);
	backdrop-filter: blur(2px);
}

.wkh-lightbox-dialog {
	position: relative;
	z-index: 2;
	max-width: min(1100px, calc(100vw - 2rem));
	max-height: calc(100vh - 2rem);
	margin: 1rem auto;
	background: #111827;
	color: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.wkh-lightbox-close {
	position: absolute;
	top: 0.5rem;
	right: 0.75rem;
	z-index: 3;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 2rem;
	line-height: 1;
	cursor: pointer;
}

.wkh-lightbox-image-wrap {
	background: #0b1220;
	display: flex;
	align-items: center;
	justify-content: center;
	max-height: calc(100vh - 10rem);
	min-height: 240px;
}

.wkh-lightbox-image {
	max-width: 100%;
	max-height: calc(100vh - 10rem);
	display: block;
}

.wkh-lightbox-meta {
	padding: 1rem 1.25rem 1.25rem;
}

.wkh-lightbox-title {
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.wkh-lightbox-caption {
	color: rgba(255, 255, 255, 0.78);
	font-size: 0.95rem;
}

@media (max-width: 900px) {
	.wkh-profile-hero,
	.wkh-two-col,
	.wkh-relationship-card-header {
		grid-template-columns: 1fr;
	}

	.wkh-timeline li,
	.wkh-relationship-search-row {
		grid-template-columns: 1fr;
		gap: 0.35rem;
	}

	.wkh-relationship-search-row {
		display: block;
	}

	.wkh-relationship-search-row .wkh-button {
		margin-top: 0.75rem;
	}

	.wkh-stat-grid,
	.wkh-relation-summary-grid {
		grid-template-columns: 1fr;
	}

	.wkh-chart-row.two-up {
		grid-template-columns: 1fr;
	}
}

.wkh-family-dashboard {
        display: block;
}

.wkh-dashboard-branch {
        margin-bottom: 32px;
        padding: 18px;
        border: 1px solid rgba(0,0,0,0.08);
        border-radius: 14px;
        background: rgba(0,0,0,0.015);
}

.wkh-dashboard-grid {
        display: grid;
        grid-template-columns: 1fr 1.1fr 1.4fr;
        gap: 18px;
        align-items: start;
}

.wkh-dashboard-col h3 {
        margin-top: 0;
        margin-bottom: 12px;
}

.wkh-dashboard-parent-group {
        margin-bottom: 18px;
}

.wkh-dashboard-parent-label {
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #666;
        margin-bottom: 8px;
}

.wkh-dashboard-stack {
        display: grid;
        gap: 10px;
}

.wkh-dashboard-center-row {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        align-items: stretch;
}

.wkh-dashboard-card {
        min-width: 200px;
        padding: 14px;
        border-radius: 12px;
        border: 1px solid rgba(0,0,0,0.08);
        background: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.wkh-dashboard-card-center {
        border-width: 2px;
}

.wkh-dashboard-card-empty {
        background: rgba(0,0,0,0.02);
}

.wkh-dashboard-card-name {
        font-weight: 700;
        margin-bottom: 8px;
}

.wkh-dashboard-card-name a {
        text-decoration: none;
}

.wkh-dashboard-card-meta {
        font-size: 14px;
        margin-bottom: 4px;
}

.wkh-dashboard-card-links {
        margin-top: 10px;
        font-size: 13px;
        color: #666;
}

.wkh-dashboard-card-links a {
        text-decoration: none;
}

.wkh-dashboard-family-meta {
        margin-top: 10px;
        margin-bottom: 14px;
        padding: 10px 12px;
        border-radius: 10px;
        background: rgba(0,0,0,0.035);
        font-size: 14px;
}

.wkh-dashboard-child-branch {
        margin-bottom: 18px;
        padding-bottom: 18px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
}

.wkh-dashboard-child-branch:last-child {
        border-bottom: none;
        margin-bottom: 0;
        padding-bottom: 0;
}

.wkh-dashboard-grandchildren {
        margin-top: 10px;
        padding-left: 16px;
}

.wkh-dashboard-grandchildren-line {
        width: 2px;
        height: 18px;
        background: rgba(0,0,0,0.18);
        margin: 0 0 10px 16px;
}

.wkh-dashboard-grandchildren-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
}

@media (max-width: 900px) {
        .wkh-dashboard-grid {
                grid-template-columns: 1fr;
        }

        .wkh-dashboard-card {
                min-width: 0;
                width: 100%;
                box-sizing: border-box;
        }

        .wkh-dashboard-center-row,
        .wkh-dashboard-grandchildren-grid {
                display: grid;
                grid-template-columns: 1fr;
        }

        .wkh-dashboard-grandchildren {
                padding-left: 0;
        }

        .wkh-dashboard-grandchildren-line {
                margin-left: 0;
        }
}


/* Family dashboard visual refresh */
.wkh-dashboard-row {
        margin-bottom: 28px;
}

.wkh-dashboard-row h3 {
        margin: 0 0 12px 0;
}

.wkh-dashboard-parent-panels {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
}

.wkh-dashboard-parent-panel,
.wkh-dashboard-couple-box,
.wkh-dashboard-child-family-box {
        border: 1px solid rgba(0,0,0,0.10);
        border-radius: 14px;
        background: #fff;
        padding: 16px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wkh-dashboard-parent-grid,
.wkh-dashboard-center-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 12px;
}

.wkh-dashboard-children-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 18px;
}

.wkh-dashboard-card {
        border: 1px solid rgba(0,0,0,0.12);
        border-radius: 12px;
        background: #fff;
        padding: 14px;
        min-width: 0;
}

.wkh-dashboard-card.generation-1 {
        background: #eef6ff;
        border-color: #bdd7f3;
}

.wkh-dashboard-card.generation-2 {
        background: #fff6dd;
        border-color: #e8d18a;
}

.wkh-dashboard-card.generation-3 {
        background: #edf8ee;
        border-color: #b8d9bb;
}

.wkh-dashboard-card.generation-4 {
        background: #f4efff;
        border-color: #cfc1f2;
}

.wkh-dashboard-card-center {
        box-shadow: 0 0 0 2px rgba(0,0,0,0.05);
}

.wkh-dashboard-grandchildren {
        margin-top: 14px;
}

.wkh-dashboard-grandchildren-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 10px;
}

.wkh-dashboard-grandchildren-line {
        width: 100%;
        height: 2px;
        background: rgba(0,0,0,0.14);
        margin-bottom: 12px;
}

@media (max-width: 900px) {
        .wkh-dashboard-parent-panels,
        .wkh-dashboard-parent-grid,
        .wkh-dashboard-center-grid,
        .wkh-dashboard-children-grid,
        .wkh-dashboard-grandchildren-grid {
                grid-template-columns: 1fr;
        }
}


/* Stronger family dashboard overrides */
.wkh-public.wkh-family-dashboard {
        display: block !important;
        max-width: 1400px !important;
        margin: 0 auto !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-branch {
        display: block !important;
        margin: 0 0 32px 0 !important;
        padding: 20px !important;
        border: 1px solid rgba(0,0,0,0.10) !important;
        border-radius: 16px !important;
        background: #fafafa !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-row {
        display: block !important;
        margin: 0 0 28px 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-parent-panels {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 18px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-parent-panel,
.wkh-public.wkh-family-dashboard .wkh-dashboard-couple-box,
.wkh-public.wkh-family-dashboard .wkh-dashboard-child-family-box {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.12) !important;
        border-radius: 14px !important;
        background: #ffffff !important;
        padding: 16px !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.05) !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-parent-grid,
.wkh-public.wkh-family-dashboard .wkh-dashboard-center-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(220px, 1fr)) !important;
        gap: 12px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-children-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
        gap: 18px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-grandchildren-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
        gap: 10px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card {
        display: block !important;
        border: 1px solid rgba(0,0,0,0.14) !important;
        border-radius: 12px !important;
        background: #ffffff !important;
        padding: 14px !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card.generation-1 {
        background: #eef6ff !important;
        border-color: #bdd7f3 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card.generation-2 {
        background: #fff6dd !important;
        border-color: #e8d18a !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card.generation-3 {
        background: #edf8ee !important;
        border-color: #b8d9bb !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card.generation-4 {
        background: #f4efff !important;
        border-color: #cfc1f2 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-center {
        box-shadow: 0 0 0 2px rgba(0,0,0,0.05) !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-name {
        display: block !important;
        font-weight: 700 !important;
        margin: 0 0 8px 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-meta {
        display: block !important;
        font-size: 14px !important;
        margin: 0 0 4px 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-links {
        display: block !important;
        margin-top: 10px !important;
        font-size: 13px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-family-meta {
        display: block !important;
        margin-top: 10px !important;
        margin-bottom: 14px !important;
        padding: 10px 12px !important;
        border-radius: 10px !important;
        background: rgba(0,0,0,0.04) !important;
        font-size: 14px !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-grandchildren-line {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background: rgba(0,0,0,0.14) !important;
        margin: 0 0 12px 0 !important;
}

@media (max-width: 900px) {
        .wkh-public.wkh-family-dashboard .wkh-dashboard-parent-panels,
        .wkh-public.wkh-family-dashboard .wkh-dashboard-parent-grid,
        .wkh-public.wkh-family-dashboard .wkh-dashboard-center-grid,
        .wkh-public.wkh-family-dashboard .wkh-dashboard-children-grid,
        .wkh-public.wkh-family-dashboard .wkh-dashboard-grandchildren-grid {
                grid-template-columns: 1fr !important;
        }
}


/* Responsive dashboard grid fixes */
.wkh-public.wkh-family-dashboard .wkh-dashboard-parent-grid,
.wkh-public.wkh-family-dashboard .wkh-dashboard-center-grid {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
        gap: 12px !important;
        align-items: stretch !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card {
        width: 100% !important;
        min-width: 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-child-family-box {
        overflow: hidden !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-name a,
.wkh-public.wkh-family-dashboard .wkh-dashboard-card-links a {
        word-break: break-word !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-family-meta {
        overflow-wrap: anywhere !important;
}


/* Final dashboard containment fixes */
.wkh-public.wkh-family-dashboard .wkh-dashboard-child-family-box {
        overflow: hidden !important;
        min-width: 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-spouse-row {
        display: grid !important;
        grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
        gap: 12px !important;
        align-items: start !important;
        width: 100% !important;
        min-width: 0 !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-spouse-row > .wkh-dashboard-card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-children-grid {
        align-items: start !important;
}

.wkh-public.wkh-family-dashboard .wkh-dashboard-card-name,
.wkh-public.wkh-family-dashboard .wkh-dashboard-card-links,
.wkh-public.wkh-family-dashboard .wkh-dashboard-card-meta {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
}

@media (max-width: 900px) {
        .wkh-public.wkh-family-dashboard .wkh-dashboard-spouse-row {
                grid-template-columns: 1fr !important;
        }
}
