/**
 * Family Tree & Org Chart – front-end styles.
 * Styles are driven by CSS variables set inline from the customizer.
 */

/* ---------- Base & defaults ---------- */
.ftree-6310-wrap {
	--ftree-6310-accent: #2563eb;
	--ftree-6310-card-radius: 10px;
	--ftree-6310-card-width: 210px;
	--ftree-6310-card-padding: 16px;
	--ftree-6310-img-size: 80px;
	--ftree-6310-img-radius: 10px;
	--ftree-6310-line: #cbd5e1;
	--ftree-6310-line-w: 2px;
	--ftree-6310-gap: 12px;
	--ftree-6310-level-gap: 28px;
	--ftree-6310-btn-fs: 13px;
	--ftree-6310-btn-color: #fff;
	--ftree-6310-btn-radius: 6px;
	--ftree-6310-name-fs: 17px;
	--ftree-6310-name-fw: 700;
	--ftree-6310-name-color: #111827;
	--ftree-6310-name-margin: 0 0 4px 0;
	--ftree-6310-name-align: center;
	--ftree-6310-name-lh: 1.3;
	--ftree-6310-name-tt: none;
	--ftree-6310-desig-fs: 13px;
	--ftree-6310-desig-fw: 500;
	--ftree-6310-desig-color: #2563eb;
	--ftree-6310-desig-margin: 0 0 8px 0;
	--ftree-6310-desig-align: center;
	--ftree-6310-desig-lh: 1.4;
	--ftree-6310-desig-tt: none;
	--ftree-6310-short-fs: 13px;
	--ftree-6310-short-fw: 400;
	--ftree-6310-short-color: #6b7280;
	--ftree-6310-short-margin: 0 0 10px 0;
	--ftree-6310-short-align: center;
	--ftree-6310-short-lh: 1.5;
	--ftree-6310-short-tt: none;

	container-type: inline-size;
	container-name: ftree6310;
	position: relative;
	width: 100%;
	margin: 0 0 1.5em;
}

.ftree-6310-wrap *,
.ftree-6310-wrap *::before,
.ftree-6310-wrap *::after {
	box-sizing: border-box;
}

.ftree-6310-wrap .ftree-6310-chart-title {
	text-align: center;
	margin: 0 0 24px;
}

.ftree-6310-wrap .ftree-6310-empty {
	text-align: center;
	opacity: 0.7;
}

.ftree-6310-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 6px 4px 18px;
}

/* ---------- Toolbar: zoom + full screen ---------- */
.ftree-6310-wrap .ftree-6310-toolbar {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 8px;
	margin: 0 0 8px;
}

.ftree-6310-tb-group {
	display: inline-flex;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.ftree-6310-wrap .ftree-6310-tb-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 34px;
	height: 34px;
	margin: 0;
	padding: 0 8px;
	border: 0;
	border-radius: 0;
	background: #fff;
	color: #374151;
	font-size: 13px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
	text-transform: none;
	transition: background 0.15s, color 0.15s;
}

.ftree-6310-tb-group .ftree-6310-tb-btn + .ftree-6310-tb-btn {
	border-left: 1px solid #e5e7eb;
}

.ftree-6310-wrap .ftree-6310-tb-level {
	min-width: 56px;
	font-variant-numeric: tabular-nums;
}

.ftree-6310-wrap .ftree-6310-tb-full {
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.ftree-6310-wrap .ftree-6310-tb-btn:hover,
.ftree-6310-wrap .ftree-6310-tb-btn:focus-visible {
	background: color-mix(in srgb, var(--ftree-6310-accent) 10%, #fff);
	color: var(--ftree-6310-accent);
}

.ftree-6310-hide-zoom .ftree-6310-tb-zoom,
.ftree-6310-hide-fullscreen .ftree-6310-tb-full,
.ftree-6310-hide-zoom.ftree-6310-hide-fullscreen .ftree-6310-toolbar {
	display: none !important;
}

/* Drag to pan when the chart is larger than its box. */
.ftree-6310-scroll {
	cursor: default;
}

.ftree-6310-zoomed .ftree-6310-scroll,
.ftree-6310-is-fullscreen .ftree-6310-scroll {
	cursor: grab;
}

.ftree-6310-scroll.ftree-6310-panning {
	cursor: grabbing;
	user-select: none;
}

/* ---------- Full screen ---------- */
.ftree-6310-wrap.ftree-6310-is-fullscreen {
	display: flex;
	flex-direction: column;
	width: 100%;
	height: 100%;
	margin: 0;
	padding: 16px 20px;
	background: var(--ftree-6310-fullscreen-bg, #f8fafc);
	overflow: hidden;
}

.ftree-6310-wrap.ftree-6310-pseudo-full {
	position: fixed;
	inset: 0;
	z-index: 99999;
	height: auto;
}

.ftree-6310-is-fullscreen .ftree-6310-chart-title {
	flex-shrink: 0;
	margin-bottom: 12px;
}

.ftree-6310-is-fullscreen .ftree-6310-toolbar {
	flex-shrink: 0;
}

.ftree-6310-wrap.ftree-6310-is-fullscreen .ftree-6310-scroll {
	flex: 1;
	min-height: 0;
	overflow: auto;
	padding: 20px 10px;
}

/* ---------- Hierarchy & connectors (desktop) ---------- */
.ftree-6310-tree ul.ftree-6310-level {
	list-style: none;
	margin: 0;
	padding: var(--ftree-6310-level-gap) 0 0;
	position: relative;
	display: flex;
	justify-content: center;
}

.ftree-6310-tree > ul.ftree-6310-level-root {
	padding-top: 0;
	width: max-content;
	min-width: 100%;
	margin: 0 auto;
}

.ftree-6310-tree li.ftree-6310-node {
	position: relative;
	list-style: none;
	margin: 0;
	padding: var(--ftree-6310-level-gap) calc(var(--ftree-6310-gap) / 2) 0;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ftree-6310-tree li.ftree-6310-node::before,
.ftree-6310-tree li.ftree-6310-node::after {
	content: "";
	position: absolute;
	top: 0;
	right: 50%;
	width: 50%;
	height: var(--ftree-6310-level-gap);
	border-top: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
}

.ftree-6310-tree li.ftree-6310-node::after {
	right: auto;
	left: 50%;
	border-left: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
}

.ftree-6310-tree li.ftree-6310-node:only-child::before {
	display: none;
}

.ftree-6310-tree li.ftree-6310-node:only-child::after {
	border-top: 0;
	border-radius: 0;
}

.ftree-6310-tree li.ftree-6310-node:first-child::before,
.ftree-6310-tree li.ftree-6310-node:last-child::after {
	border: 0 none;
}

.ftree-6310-tree li.ftree-6310-node:last-child::before {
	/* Grow by the line width so it meets the previous sibling's line without a gap. */
	right: calc(50% - var(--ftree-6310-line-w));
	width: calc(50% + var(--ftree-6310-line-w));
	border-right: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
	border-radius: 0 6px 0 0;
}

.ftree-6310-tree li.ftree-6310-node:first-child::after {
	border-radius: 6px 0 0 0;
}

/* A single child: plain vertical line from the parent (must come after :last-child). */
.ftree-6310-tree li.ftree-6310-node:only-child::after {
	border: 0 none;
	border-left: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
	border-radius: 0;
}

.ftree-6310-tree .ftree-6310-level-root > li.ftree-6310-node {
	padding-top: 0;
}

.ftree-6310-tree .ftree-6310-level-root > li.ftree-6310-node::before,
.ftree-6310-tree .ftree-6310-level-root > li.ftree-6310-node::after {
	display: none;
}

.ftree-6310-tree .ftree-6310-level .ftree-6310-level::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	width: 0;
	height: var(--ftree-6310-level-gap);
	border-left: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
}

.ftree-6310-node-inner {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ftree-6310-node.ftree-6310-collapsed > ul {
	display: none;
}

/* Toggle */
.ftree-6310-wrap .ftree-6310-toggle {
	position: absolute;
	left: 50%;
	bottom: -11px;
	transform: translateX(-50%);
	z-index: 2;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	margin: 0;
	border-radius: 999px;
	border: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
	background: #fff;
	color: #475569;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
}

.ftree-6310-wrap .ftree-6310-toggle:hover,
.ftree-6310-wrap .ftree-6310-toggle:focus-visible {
	border-color: var(--ftree-6310-accent);
	color: var(--ftree-6310-accent);
}

.ftree-6310-toggle .ftree-6310-toggle-count {
	display: none;
}

.ftree-6310-toggle::before {
	content: "\2212";
}

.ftree-6310-collapsed > .ftree-6310-node-inner .ftree-6310-toggle::before {
	content: "+";
}

.ftree-6310-collapsed > .ftree-6310-node-inner .ftree-6310-toggle .ftree-6310-toggle-count {
	display: inline;
}

/* ---------- Card ---------- */
.ftree-6310-wrap .ftree-6310-card {
	position: relative;
	width: var(--ftree-6310-card-width);
	max-width: 100%;
	background: var(--ftree-6310-card-bg, #fff);
	border: 1px solid var(--ftree-6310-card-border, #e5e7eb);
	border-radius: var(--ftree-6310-card-radius);
	padding: var(--ftree-6310-card-padding);
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 6px 18px rgba(15, 23, 42, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	text-align: var(--ftree-6310-name-align);
}

.ftree-6310-wrap .ftree-6310-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(15, 23, 42, 0.1);
}

.ftree-6310-wrap .ftree-6310-card-media {
	text-align: center;
	margin: 0 0 12px;
	line-height: 0;
}

.ftree-6310-wrap .ftree-6310-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: var(--ftree-6310-img-m, var(--ftree-6310-img-size));
	height: var(--ftree-6310-img-m, var(--ftree-6310-img-size));
	border-radius: var(--ftree-6310-img-radius);
	overflow: hidden;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	border: 0;
	background: color-mix(in srgb, var(--ftree-6310-accent) 14%, #fff);
	color: var(--ftree-6310-accent);
	font-weight: 700;
	font-size: calc(var(--ftree-6310-img-m, var(--ftree-6310-img-size)) * 0.36);
	line-height: 1;
	position: relative;
	z-index: 1;
}

.ftree-6310-wrap button.ftree-6310-avatar {
	cursor: pointer;
}

.ftree-6310-wrap .ftree-6310-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
	max-width: none;
}

/* Typography */
.ftree-6310-wrap .ftree-6310-name {
	font-size: var(--ftree-6310-name-fs);
	font-weight: var(--ftree-6310-name-fw);
	color: var(--ftree-6310-name-color);
	margin: var(--ftree-6310-name-margin);
	text-align: var(--ftree-6310-name-align);
	line-height: var(--ftree-6310-name-lh);
	text-transform: var(--ftree-6310-name-tt);
	padding: 0;
	letter-spacing: normal;
	word-wrap: break-word;
}

.ftree-6310-wrap .ftree-6310-desig {
	font-size: var(--ftree-6310-desig-fs);
	font-weight: var(--ftree-6310-desig-fw);
	color: var(--ftree-6310-desig-color);
	margin: var(--ftree-6310-desig-margin);
	text-align: var(--ftree-6310-desig-align);
	line-height: var(--ftree-6310-desig-lh);
	text-transform: var(--ftree-6310-desig-tt);
}

.ftree-6310-wrap .ftree-6310-short {
	font-size: var(--ftree-6310-short-fs);
	font-weight: var(--ftree-6310-short-fw);
	color: var(--ftree-6310-short-color);
	margin: var(--ftree-6310-short-margin);
	text-align: var(--ftree-6310-short-align);
	line-height: var(--ftree-6310-short-lh);
	text-transform: var(--ftree-6310-short-tt);
	padding: 0;
}

/* Skills (label + percentage bar) */
.ftree-6310-wrap .ftree-6310-skills {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	text-align: left;
}

.ftree-6310-wrap .ftree-6310-skill {
	margin: 0 0 6px;
	padding: 0;
	background: none;
}

.ftree-6310-skill-head {
	display: flex;
	justify-content: space-between;
	gap: 8px;
	font-size: var(--ftree-6310-skill-fs, 11px);
	line-height: 1.4;
	color: var(--ftree-6310-short-color);
	margin-bottom: 3px;
}

.ftree-6310-skill-label {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ftree-6310-skill-value {
	flex-shrink: 0;
	opacity: 0.85;
}

.ftree-6310-skill-bar {
	display: block;
	height: var(--ftree-6310-skill-h, 6px);
	border-radius: 999px;
	background: var(--ftree-6310-skill-bg, #e5e7eb);
	overflow: hidden;
}

.ftree-6310-skill-fill {
	display: block;
	height: 100%;
	border-radius: inherit;
	background: var(--ftree-6310-skill-bar, var(--ftree-6310-accent));
	transition: width 0.6s ease;
}

/* Socials */
.ftree-6310-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: var(--ftree-6310-name-align);
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
}

.ftree-6310-wrap .ftree-6310-socials li {
	margin: 0;
	padding: 0;
}

.ftree-6310-wrap .ftree-6310-social {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: color-mix(in srgb, var(--ftree-6310-accent) 10%, transparent);
	color: var(--ftree-6310-accent);
	font-size: 13px;
	text-decoration: none;
	box-shadow: none;
	transition: background 0.2s, color 0.2s;
}

.ftree-6310-wrap .ftree-6310-social:hover,
.ftree-6310-wrap .ftree-6310-social:focus-visible {
	background: var(--ftree-6310-accent);
	color: #fff;
}

/* Contacts */
.ftree-6310-wrap .ftree-6310-contacts {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	font-size: var(--ftree-6310-contact-fs, 12px);
	color: var(--ftree-6310-contact-color, #4b5563);
	text-align: left;
}

.ftree-6310-wrap .ftree-6310-contacts li {
	margin: 0 0 4px;
	padding: 0;
}

.ftree-6310-wrap .ftree-6310-contacts a,
.ftree-6310-contact-inner {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	color: inherit;
	text-decoration: none;
	word-break: break-word;
	box-shadow: none;
}

.ftree-6310-wrap .ftree-6310-contacts a:hover .ftree-6310-contact-text {
	color: var(--ftree-6310-accent);
}

.ftree-6310-contact-icon {
	width: 1.15em;
	text-align: center;
	flex-shrink: 0;
	color: var(--ftree-6310-contact-icon, var(--ftree-6310-accent));
}

.ftree-6310-contact-label {
	font-weight: 600;
	flex-shrink: 0;
	color: var(--ftree-6310-contact-icon, var(--ftree-6310-accent));
}

/* Button */
.ftree-6310-wrap .ftree-6310-btn {
	display: inline-block;
	margin: 8px 0 0;
	padding: 0.55em 1.1em;
	font-size: var(--ftree-6310-btn-fs);
	font-weight: 600;
	line-height: 1.2;
	color: var(--ftree-6310-btn-color);
	background: var(--ftree-6310-btn-bg, var(--ftree-6310-accent));
	border: 0;
	border-radius: var(--ftree-6310-btn-radius);
	cursor: pointer;
	text-transform: none;
	letter-spacing: normal;
	transition: filter 0.2s;
}

.ftree-6310-wrap .ftree-6310-btn:hover,
.ftree-6310-wrap .ftree-6310-btn:focus-visible {
	filter: brightness(1.1);
}

/* ---------- Display toggles ---------- */
.ftree-6310-hide-title .ftree-6310-chart-title,
.ftree-6310-hide-image .ftree-6310-card-media,
.ftree-6310-hide-desig .ftree-6310-card .ftree-6310-desig,
.ftree-6310-hide-short .ftree-6310-card .ftree-6310-short,
.ftree-6310-hide-socials .ftree-6310-card .ftree-6310-socials,
.ftree-6310-hide-skills .ftree-6310-card .ftree-6310-skills,
.ftree-6310-hide-contacts .ftree-6310-card .ftree-6310-contacts,
.ftree-6310-hide-button .ftree-6310-card .ftree-6310-btn,
.ftree-6310-no-collapse .ftree-6310-toggle {
	display: none !important;
}

/* ---------- Template 01: Classic ---------- */
.ftree-6310-tpl-01 .ftree-6310-card {
	border-top: 4px solid var(--ftree-6310-accent);
}

/* ---------- Template 02: Circle avatar (overlap) ---------- */
.ftree-6310-tpl-02:not(.ftree-6310-hide-image) .ftree-6310-node-inner {
	padding-top: calc(var(--ftree-6310-img-size) / 2);
}

.ftree-6310-tpl-02:not(.ftree-6310-hide-image) .ftree-6310-node-inner::before {
	content: "";
	position: absolute;
	top: 0;
	left: 50%;
	height: calc(var(--ftree-6310-img-size) / 2);
	border-left: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
}

.ftree-6310-tpl-02 .ftree-6310-level-root > li > .ftree-6310-node-inner::before {
	display: none;
}

.ftree-6310-tpl-02:not(.ftree-6310-hide-image) .ftree-6310-card {
	padding-top: calc(var(--ftree-6310-img-size) / 2 + 10px);
}

.ftree-6310-tpl-02:not(.ftree-6310-hide-image) .ftree-6310-card-media {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(var(--ftree-6310-img-size) / -2);
	margin: 0;
	z-index: 1;
}

.ftree-6310-tpl-02 .ftree-6310-avatar {
	box-shadow: 0 0 0 4px var(--ftree-6310-card-bg, #fff), 0 0 0 6px var(--ftree-6310-accent);
}

/* ---------- Template 03: Modern header ---------- */
.ftree-6310-wrap.ftree-6310-tpl-03 .ftree-6310-card {
	padding: 0;
	overflow: hidden;
}

.ftree-6310-tpl-03 .ftree-6310-card-head {
	position: relative;
	padding: 18px 12px calc(var(--ftree-6310-img-size) / 2);
	margin-bottom: calc(var(--ftree-6310-img-size) / 2 + 10px);
	background: linear-gradient(135deg, var(--ftree-6310-accent), color-mix(in srgb, var(--ftree-6310-accent) 55%, #000));
}

.ftree-6310-tpl-03.ftree-6310-hide-image .ftree-6310-card-head {
	padding: 4px;
	margin-bottom: 14px;
}

.ftree-6310-tpl-03 .ftree-6310-card-media {
	position: absolute;
	left: 0;
	right: 0;
	bottom: calc(var(--ftree-6310-img-size) / -2);
	margin: 0;
}

.ftree-6310-tpl-03 .ftree-6310-avatar {
	box-shadow: 0 0 0 4px var(--ftree-6310-card-bg, #fff);
}

.ftree-6310-tpl-03 .ftree-6310-card-body {
	padding: 0 var(--ftree-6310-card-padding);
}

.ftree-6310-tpl-03 .ftree-6310-card-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 14px 12px;
	margin-top: 4px;
	border-top: 1px solid var(--ftree-6310-card-border, #e5e7eb);
}

.ftree-6310-tpl-03 .ftree-6310-card-foot .ftree-6310-socials {
	margin: 0;
}

.ftree-6310-tpl-03 .ftree-6310-card-foot .ftree-6310-btn {
	margin: 0;
	margin-left: auto;
}

.ftree-6310-tpl-03 .ftree-6310-card-foot:empty {
	display: none;
}

/* ---------- Template 04: Compact horizontal ---------- */
.ftree-6310-wrap .ftree-6310-card-row {
	display: flex;
	align-items: center;
	gap: 12px;
	text-align: left;
}

.ftree-6310-card-row .ftree-6310-card-media {
	margin: 0;
}

.ftree-6310-card-row .ftree-6310-card-body {
	flex: 1;
	min-width: 0;
}

.ftree-6310-card-row .ftree-6310-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 6px;
}

.ftree-6310-card-row .ftree-6310-socials {
	margin: 0;
}

.ftree-6310-card-row .ftree-6310-social {
	width: 24px;
	height: 24px;
}

.ftree-6310-wrap .ftree-6310-card-row .ftree-6310-btn {
	margin: 0;
	padding: 0.4em 0.8em;
}

.ftree-6310-tpl-04 .ftree-6310-card {
	border-left: 4px solid var(--ftree-6310-accent);
}

/* ---------- Template 05: Minimal ---------- */
.ftree-6310-wrap.ftree-6310-tpl-05 .ftree-6310-card {
	background: var(--ftree-6310-card-bg, transparent);
	border-color: var(--ftree-6310-card-border, transparent);
	box-shadow: none;
}

.ftree-6310-wrap.ftree-6310-tpl-05 .ftree-6310-card:hover {
	box-shadow: none;
}

.ftree-6310-tpl-05 .ftree-6310-avatar {
	box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ftree-6310-accent);
}

/* ---------- Mobile: vertical indented tree ---------- */
@container ftree6310 (max-width: 600px) {
	.ftree-6310-scroll {
		--ftree-6310-img-m: 52px;
		--ftree-6310-indent: 24px;
		--ftree-6310-anchor: 40px;
		--ftree-6310-name-align: left;
		--ftree-6310-desig-align: left;
		--ftree-6310-short-align: left;
		overflow: visible;
		padding: 0;
	}

	.ftree-6310-wrap .ftree-6310-tree ul.ftree-6310-level {
		display: block;
		padding: 0 0 0 var(--ftree-6310-indent);
		width: auto;
		min-width: 0;
	}

	.ftree-6310-wrap .ftree-6310-tree > ul.ftree-6310-level-root {
		padding-left: 0;
		width: auto;
		min-width: 0;
	}

	.ftree-6310-wrap .ftree-6310-tree .ftree-6310-level .ftree-6310-level::before {
		display: none;
	}

	.ftree-6310-wrap .ftree-6310-tree li.ftree-6310-node {
		display: block;
		padding: 12px 0 0;
	}

	.ftree-6310-wrap .ftree-6310-tree .ftree-6310-level-root > li.ftree-6310-node {
		padding-top: 0;
		margin-bottom: 12px;
	}

	.ftree-6310-wrap .ftree-6310-tree li.ftree-6310-node::before {
		display: block;
		top: 0;
		bottom: 0;
		left: calc(var(--ftree-6310-indent) * -1 + 10px);
		right: auto;
		width: 0;
		height: auto;
		border: 0;
		border-left: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
		border-radius: 0;
	}

	.ftree-6310-wrap .ftree-6310-tree li.ftree-6310-node:last-child::before {
		bottom: auto;
		height: calc(12px + var(--ftree-6310-anchor));
	}

	.ftree-6310-wrap .ftree-6310-tree li.ftree-6310-node::after {
		display: block;
		top: calc(12px + var(--ftree-6310-anchor));
		left: calc(var(--ftree-6310-indent) * -1 + 10px);
		right: auto;
		width: calc(var(--ftree-6310-indent) - 10px);
		height: 0;
		border: 0;
		border-top: var(--ftree-6310-line-w) solid var(--ftree-6310-line);
		border-radius: 0;
	}

	.ftree-6310-wrap .ftree-6310-tree .ftree-6310-level-root > li.ftree-6310-node::before,
	.ftree-6310-wrap .ftree-6310-tree .ftree-6310-level-root > li.ftree-6310-node::after {
		display: none;
	}

	.ftree-6310-wrap .ftree-6310-node-inner {
		align-items: stretch;
		padding-top: 0;
	}

	.ftree-6310-wrap .ftree-6310-node-inner::before {
		display: none;
	}

	.ftree-6310-wrap .ftree-6310-card,
	.ftree-6310-wrap.ftree-6310-tpl-03 .ftree-6310-card {
		width: 100%;
		display: flex;
		align-items: flex-start;
		gap: 12px;
		text-align: left;
		padding: 12px 40px 12px 12px;
	}

	.ftree-6310-wrap .ftree-6310-card:hover {
		transform: none;
	}

	.ftree-6310-wrap .ftree-6310-card-media,
	.ftree-6310-wrap.ftree-6310-tpl-02 .ftree-6310-card-media,
	.ftree-6310-wrap.ftree-6310-tpl-03 .ftree-6310-card-media {
		position: static;
		margin: 0;
	}

	.ftree-6310-wrap .ftree-6310-card-body {
		flex: 1;
		min-width: 0;
		padding: 0;
	}

	.ftree-6310-wrap.ftree-6310-tpl-03 .ftree-6310-card-head {
		padding: 0;
		margin: 0;
		background: none;
	}

	.ftree-6310-wrap.ftree-6310-tpl-03 .ftree-6310-card {
		flex-wrap: wrap;
		border-left: 4px solid var(--ftree-6310-accent);
	}

	.ftree-6310-wrap.ftree-6310-tpl-03 .ftree-6310-card-foot {
		flex-basis: 100%;
		padding: 8px 0 0;
		border-top: 0;
		margin: 0;
	}

	.ftree-6310-wrap .ftree-6310-avatar,
	.ftree-6310-tpl-02 .ftree-6310-avatar {
		box-shadow: none;
	}

	.ftree-6310-wrap .ftree-6310-toggle {
		left: auto;
		right: 10px;
		top: 12px;
		bottom: auto;
		transform: none;
	}
}

/* ---------- Popup modal ---------- */
html.ftree-6310-modal-open {
	overflow: hidden;
}

.ftree-6310-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(15, 23, 42, 0.6);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.ftree-6310-modal.is-open {
	opacity: 1;
}

.ftree-6310-modal[hidden] {
	display: none;
}

.ftree-6310-modal-dialog {
	position: relative;
	width: 100%;
	max-width: 680px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	background: #fff;
	color: #1f2937;
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
	transform: translateY(12px);
	transition: transform 0.2s ease;
}

.ftree-6310-modal.is-open .ftree-6310-modal-dialog {
	transform: none;
}

.ftree-6310-modal .ftree-6310-modal-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 2;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: #f1f5f9;
	color: #334155;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

.ftree-6310-modal .ftree-6310-modal-close:hover,
.ftree-6310-modal .ftree-6310-modal-close:focus-visible {
	background: var(--ftree-6310-accent);
	color: #fff;
}

.ftree-6310-modal .ftree-6310-modal-body {
	margin: 0;
}

.ftree-6310-profile {
	padding: 28px;
}

.ftree-6310-profile-head {
	display: flex;
	gap: 22px;
	align-items: flex-start;
	padding: 0 40px 20px 0;
	margin-bottom: 20px;
	border-bottom: 1px solid #e5e7eb;
}

.ftree-6310-modal .ftree-6310-avatar {
	--ftree-6310-img-size: 120px;
}

.ftree-6310-modal .ftree-6310-profile-info {
	flex: 1;
	min-width: 0;
}

.ftree-6310-modal .ftree-6310-name {
	font-size: 24px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 4px;
	text-align: left;
	line-height: 1.25;
	text-transform: none;
}

.ftree-6310-modal .ftree-6310-desig {
	font-size: 15px;
	color: var(--ftree-6310-accent);
	text-align: left;
	margin: 0 0 10px;
	text-transform: none;
}

.ftree-6310-modal .ftree-6310-profile-short {
	margin: 0 0 12px;
	color: #4b5563;
	font-size: 15px;
	line-height: 1.6;
}

.ftree-6310-modal .ftree-6310-socials {
	justify-content: flex-start;
}

.ftree-6310-modal .ftree-6310-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	font-size: 14px;
	color: #374151;
	margin: 0 0 18px;
}

.ftree-6310-modal .ftree-6310-contacts li {
	margin: 0;
}

.ftree-6310-modal .ftree-6310-profile-label {
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #6b7280;
	margin: 0 0 8px;
}

.ftree-6310-modal .ftree-6310-skills {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 4px 24px;
	margin-bottom: 18px;
}

.ftree-6310-modal .ftree-6310-skill-head {
	font-size: 13px;
	color: #374151;
}

.ftree-6310-modal .ftree-6310-skill-bar {
	height: 8px;
}

.ftree-6310-profile-content {
	font-size: 15px;
	line-height: 1.7;
}

.ftree-6310-profile-content > *:first-child {
	margin-top: 0;
}

.ftree-6310-profile-content img {
	max-width: 100%;
	height: auto;
}

@media (max-width: 560px) {
	.ftree-6310-profile {
		padding: 20px;
	}

	.ftree-6310-profile-head {
		flex-direction: column;
		align-items: center;
		text-align: center;
		padding-right: 0;
	}

	.ftree-6310-modal .ftree-6310-name,
	.ftree-6310-modal .ftree-6310-desig {
		text-align: center;
	}

	.ftree-6310-modal .ftree-6310-profile-head .ftree-6310-socials {
		justify-content: center;
	}

	.ftree-6310-modal .ftree-6310-avatar {
		--ftree-6310-img-size: 96px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ftree-6310-wrap .ftree-6310-card,
	.ftree-6310-modal,
	.ftree-6310-modal-dialog {
		transition: none;
	}
}

/* Zoomed charts always scroll inside their box (also in the mobile layout). */
.ftree-6310-wrap.ftree-6310-zoomed .ftree-6310-scroll {
	overflow: auto;
}

/* ---------- Template 06: Photo Profile ---------- */
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card {
	padding: 0;
	overflow: hidden;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ftree-6310-tpl-06 .ftree-6310-card-media {
	margin: 0;
	line-height: 0;
}

.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card-media .ftree-6310-avatar {
	display: flex;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	border-radius: 0;
	font-size: 56px;
}

.ftree-6310-tpl-06 .ftree-6310-card-body {
	padding: var(--ftree-6310-card-padding);
	text-align: center;
}

.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-desig {
	letter-spacing: 0.04em;
}

.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-name {
	letter-spacing: 0.03em;
}

/* Contacts: centred, bold, coloured icons */
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card .ftree-6310-contacts {
	text-align: center;
	font-weight: 700;
	margin-bottom: 18px;
}

.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card .ftree-6310-contacts li {
	margin-bottom: 6px;
}

.ftree-6310-tpl-06 .ftree-6310-card .ftree-6310-contact-icon {
	font-size: 1.15em;
}

/* Skills: outlined bars */
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card .ftree-6310-skills {
	margin-bottom: 4px;
}

.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-skill {
	margin-bottom: 10px;
}

.ftree-6310-tpl-06 .ftree-6310-skill-head {
	color: var(--ftree-6310-name-color);
	margin-bottom: 4px;
}

.ftree-6310-tpl-06 .ftree-6310-skill-label {
	font-weight: 700;
}

.ftree-6310-tpl-06 .ftree-6310-skill-value {
	display: none;
}

.ftree-6310-tpl-06 .ftree-6310-skill-bar {
	border: 2px solid #1e3a5f;
	box-sizing: content-box;
}

/* Socials: square brand-coloured tiles */
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-socials {
	justify-content: center;
	gap: 12px;
	margin-top: 4px;
}

.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social {
	width: 44px;
	height: 44px;
	border-radius: 0;
	font-size: 20px;
	color: #fff;
	background: var(--ftree-6310-accent);
	transition: filter 0.2s, transform 0.2s;
}

.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social:hover,
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social:focus-visible {
	color: #fff;
	filter: brightness(1.08);
	transform: translateY(-2px);
}

.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-facebook { background: #1877f2; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-twitter { background: #6aaeea; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-linkedin { background: #2f72b4; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-instagram { background: #d6249f; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-youtube { background: #ff0000; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-tiktok { background: #111111; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-pinterest { background: #e60023; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-github { background: #24292f; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-whatsapp { background: #64d26f; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-telegram { background: #2aabee; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-behance { background: #1769ff; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-dribbble { background: #ea4c89; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-medium { background: #000000; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-reddit { background: #ff4500; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-twitch { background: #9146ff; }
.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social-spotify { background: #1db954; }

/* Mobile: compact row card like the other templates */
@container ftree6310 (max-width: 600px) {
	.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card {
		padding: 12px 40px 12px 12px;
	}

	.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card-media .ftree-6310-avatar {
		width: var(--ftree-6310-img-m);
		height: var(--ftree-6310-img-m);
		aspect-ratio: auto;
		font-size: 18px;
	}

	.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card-body {
		padding: 0;
		text-align: left;
	}

	.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-card .ftree-6310-contacts {
		text-align: left;
	}

	.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-socials {
		justify-content: flex-start;
	}

	.ftree-6310-wrap.ftree-6310-tpl-06 .ftree-6310-social {
		width: 34px;
		height: 34px;
		font-size: 15px;
	}
}
