:root {
	--chm-blue-50: #eef8ff;
	--chm-blue-100: #dcedfa;
	--chm-blue-500: #1877bd;
	--chm-blue-700: #075b99;
	--chm-ink: #183042;
	--chm-muted: #647686;
	--chm-line: #dbe7ef;
	--chm-white: #ffffff;
	--chm-shadow: 0 24px 65px rgba(36, 78, 106, .16);
}

.chm-front-page {
	background: #f7fbfe;
	margin: 0;
}

.chm-dashboard-page {
	background: #f4f9fc;
	margin: 0;
}

.chm-content-page {
	background: #f4f9fc;
	margin: 0;
}

.chm-not-found-page {
	background: #f4f9fc;
	margin: 0;
}

.chm-not-found-main {
	align-items: center;
	display: flex;
	justify-content: center;
	min-height: calc(100vh - 160px);
	padding: clamp(48px, 9vw, 110px) 18px;
}

.chm-not-found {
	background: #fff;
	border: 1px solid var(--chm-line);
	border-radius: 28px;
	box-shadow: var(--chm-shadow);
	box-sizing: border-box;
	color: var(--chm-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	max-width: 680px;
	padding: clamp(34px, 7vw, 70px);
	text-align: center;
	width: 100%;
}

.chm-not-found__code {
	color: var(--chm-blue-700);
	font-size: .82rem;
	font-weight: 800;
	letter-spacing: .14em;
	margin: 0 0 14px;
	text-transform: uppercase;
}

.chm-not-found h1 {
	font-size: clamp(2rem, 6vw, 3.6rem);
	letter-spacing: -.04em;
	line-height: 1.05;
	margin: 0 0 18px;
}

.chm-not-found__text {
	color: var(--chm-muted);
	font-size: clamp(1rem, 2.4vw, 1.15rem);
	line-height: 1.65;
	margin: 0 auto 30px;
	max-width: 520px;
}

.chm-content-main {
	min-height: calc(100vh - 150px);
	padding: clamp(24px, 5vw, 54px) 18px;
}

.chm-dashboard-main {
	min-height: calc(100vh - 150px);
	padding: clamp(24px, 5vw, 54px) 18px;
}

.chm-site-header {
	align-items: center;
	background: rgba(255, 255, 255, .92);
	border-bottom: 1px solid var(--chm-line);
	display: flex;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	justify-content: space-between;
	padding: 17px max(22px, calc((100vw - 1120px) / 2));
	position: sticky;
	top: 0;
	z-index: 20;
}

.chm-site-brand {
	align-items: center;
	color: var(--chm-ink);
	display: flex;
	font-size: 1.05rem;
	gap: 9px;
	text-decoration: none;
}

.chm-site-brand .dashicons {
	color: var(--chm-blue-700);
	font-size: 26px;
	height: 26px;
	width: 26px;
}

.chm-site-header nav a {
	color: var(--chm-blue-700);
	font-size: .9rem;
	font-weight: 750;
	text-decoration: none;
}

.chm-front-main {
	padding: clamp(24px, 6vw, 64px) 18px 50px;
}

.chm-main-footer {
	align-items: center;
	background: #fff;
	border-top: 1px solid var(--chm-line);
	color: var(--chm-muted);
	display: flex;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: .8rem;
	gap: 20px;
	justify-content: space-between;
	padding: 24px max(22px, calc((100vw - 1120px) / 2));
}

.chm-main-footer p {
	margin: 0;
}

.chm-main-footer nav {
	display: flex;
	gap: 10px;
}

.chm-main-footer a {
	color: var(--chm-blue-700);
	text-decoration: none;
}

.chm-directory,
.chm-dashboard,
.chm-legal,
.chm-login-box,
.chm-panel {
	box-sizing: border-box;
	color: var(--chm-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.chm-directory *,
.chm-dashboard *,
.chm-legal *,
.chm-login-box * {
	box-sizing: border-box;
}

.chm-hero {
	background: linear-gradient(135deg, #e7f5ff 0%, #cdeafd 100%);
	border: 1px solid rgba(24, 119, 189, .12);
	border-radius: 32px;
	margin: 0 auto 32px;
	max-width: 1120px;
	overflow: hidden;
	padding: clamp(40px, 7vw, 84px) clamp(24px, 7vw, 80px);
	position: relative;
}

.chm-hero::after {
	background: rgba(255, 255, 255, .36);
	border-radius: 50%;
	content: "";
	height: 330px;
	position: absolute;
	right: -95px;
	top: -130px;
	width: 330px;
}

.chm-hero h1,
.chm-dashboard h1,
.chm-legal h1 {
	color: var(--chm-ink);
	font-size: clamp(2rem, 5vw, 4rem);
	letter-spacing: -.045em;
	line-height: 1.02;
	margin: 0 0 16px;
}

.chm-hero > p:last-child {
	color: #496a80;
	font-size: 1.12rem;
	margin: 0;
	max-width: 560px;
}

.chm-eyebrow {
	color: var(--chm-blue-700);
	font-size: .78rem;
	font-weight: 800;
	letter-spacing: .13em;
	margin: 0 0 12px;
	text-transform: uppercase;
}

.chm-directory-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	margin: 0 auto 46px;
	max-width: 1120px;
}

.chm-directory-card {
	background: #fff;
	border: 1px solid var(--chm-line);
	border-radius: 24px;
	box-shadow: 0 12px 34px rgba(36, 78, 106, .08);
	min-height: 320px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .2s ease;
}

.chm-directory-card:hover {
	box-shadow: 0 20px 48px rgba(36, 78, 106, .15);
	transform: translateY(-4px);
}

.chm-directory-card > a {
	align-items: center;
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 30px 24px 26px;
	text-align: center;
	text-decoration: none;
}

.chm-directory-avatar {
	align-items: center;
	background: var(--chm-blue-100);
	border: 6px solid #fff;
	border-radius: 50%;
	box-shadow: 0 7px 24px rgba(24, 119, 189, .2);
	color: var(--chm-blue-700);
	display: flex;
	font-size: 1.65rem;
	font-weight: 800;
	height: 108px;
	justify-content: center;
	margin-bottom: 18px;
	overflow: hidden;
	width: 108px;
}

.chm-directory-avatar img {
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.chm-directory-card h2 {
	font-size: 1.35rem;
	letter-spacing: -.02em;
	margin: 0 0 7px;
}

.chm-directory-card p,
.chm-directory-card strong {
	color: var(--chm-muted);
	font-size: .94rem;
	font-weight: 500;
	margin: 0 0 4px;
}

.chm-card-link {
	color: var(--chm-blue-700);
	font-weight: 750;
	margin-top: auto;
	padding-top: 20px;
}

.chm-login-box,
.chm-panel,
.chm-legal {
	background: #fff;
	border: 1px solid var(--chm-line);
	border-radius: 24px;
	box-shadow: 0 12px 34px rgba(36, 78, 106, .08);
	margin: 28px auto;
	max-width: 1120px;
	padding: clamp(24px, 5vw, 44px);
}

.chm-login-box {
	max-width: 560px;
}

.chm-login-box h2,
.chm-panel h2,
.chm-legal h2 {
	color: var(--chm-ink);
	font-size: 1.55rem;
	letter-spacing: -.02em;
	margin: 0 0 18px;
}

.chm-login-box label,
.chm-field > span,
.chm-upload > span,
.chm-manage-card > label {
	color: var(--chm-ink);
	display: block;
	font-size: .82rem;
	font-weight: 750;
	margin-bottom: 7px;
}

.chm-publication-note {
	margin: 18px 0 22px;
	padding: 14px 16px;
	border: 1px solid #d8e5ea;
	border-radius: 10px;
	background: #f4fbfc;
	color: #183042;
	font-size: 15px;
	line-height: 1.5;
}

.chm-login-box input[type="text"],
.chm-login-box input[type="password"],
.chm-user-row form input,
.chm-field input,
.chm-field textarea,
.chm-field select,
.chm-copy-row input {
	background: #fff;
	border: 1px solid #cbdbe6;
	border-radius: 12px;
	box-shadow: none;
	color: var(--chm-ink);
	font: inherit;
	padding: 12px 14px;
	width: 100%;
}

.chm-login-box input:focus,
.chm-user-row form input:focus,
.chm-field input:focus,
.chm-field textarea:focus,
.chm-field select:focus {
	border-color: var(--chm-blue-500);
	box-shadow: 0 0 0 3px rgba(24, 119, 189, .13);
	outline: 0;
}

.chm-login-box .login-submit,
.chm-login-box .login-remember {
	margin-bottom: 0;
}

.chm-login-help {
	margin-bottom: 0;
}

.chm-button,
.chm-login-box input[type="submit"] {
	align-items: center;
	background: var(--chm-blue-700);
	border: 1px solid var(--chm-blue-700);
	border-radius: 12px;
	box-shadow: none;
	color: #fff !important;
	cursor: pointer;
	display: inline-flex;
	font-size: .92rem;
	font-weight: 750;
	gap: 7px;
	justify-content: center;
	line-height: 1.25;
	min-height: 44px;
	padding: 11px 17px;
	text-decoration: none !important;
}

.chm-button:hover,
.chm-login-box input[type="submit"]:hover {
	background: #034875;
	border-color: #034875;
}

.chm-button--secondary {
	background: #fff;
	border-color: #c5d7e3;
	color: var(--chm-blue-700) !important;
}

.chm-button--secondary:hover {
	background: var(--chm-blue-50);
	border-color: var(--chm-blue-500);
}

.chm-dashboard {
	margin: 0 auto;
	max-width: 1180px;
}

.chm-dashboard-header,
.chm-section-heading,
.chm-manage-card__top {
	align-items: center;
	display: flex;
	gap: 20px;
	justify-content: space-between;
}

.chm-dashboard-header {
	margin-bottom: 26px;
}

.chm-dashboard-header-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-end;
}

.chm-dashboard-header h1 {
	font-size: clamp(2rem, 4vw, 3.2rem);
	margin-bottom: 0;
}

.chm-section-heading {
	margin-bottom: 24px;
}

.chm-section-heading h2,
.chm-section-heading p,
.chm-manage-card h3,
.chm-manage-card p {
	margin-bottom: 4px;
	margin-top: 0;
}

.chm-dashboard-grid {
	display: grid;
	gap: 22px;
	grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
}

.chm-card-search {
	background: #fff;
	border: 1px solid var(--chm-line);
	border-radius: 18px;
	box-shadow: 0 10px 28px rgba(24, 48, 66, .06);
	margin: 0 0 24px;
	padding: 20px;
}

.chm-card-search label {
	display: block;
	margin-bottom: 8px;
}

.chm-card-search input[type="search"] {
	margin: 0;
	width: 100%;
}

.chm-card-search__status {
	color: var(--chm-muted);
	font-size: .85rem;
	margin: 8px 0 0;
	min-height: 1.2em;
}

.chm-private-jump {
	margin-top: 10px;
}

#chm-private-cards {
	scroll-margin-top: 48px;
}

.chm-manage-card[hidden],
[data-card-no-results][hidden] {
	display: none !important;
}

.chm-manage-card {
	background: #f8fbfd;
	border: 1px solid var(--chm-line);
	border-radius: 18px;
	padding: 20px;
}

.chm-manage-card h3 {
	font-size: 1.18rem;
}

.chm-manage-card p {
	color: var(--chm-muted);
	font-size: .9rem;
}

.chm-status {
	background: #e9eef2;
	border-radius: 999px;
	color: #5a6c79;
	font-size: .74rem;
	font-weight: 800;
	padding: 5px 9px;
}

.chm-status--publish {
	background: #dff7e8;
	color: #17743c;
}

.chm-copy-row {
	display: flex;
	margin-bottom: 18px;
}

.chm-copy-row input {
	border-radius: 10px 0 0 10px;
	font-size: .8rem;
	min-width: 0;
}

.chm-copy {
	background: var(--chm-blue-700);
	border: 0;
	border-radius: 0 10px 10px 0;
	color: #fff;
	cursor: pointer;
	font-weight: 700;
	padding: 0 13px;
}

.chm-qr {
	align-items: center;
	background: #fff;
	border-radius: 14px;
	display: flex;
	height: 150px;
	justify-content: center;
	margin: 0 auto 18px;
	padding: 10px;
	width: 150px;
}

.chm-qr img,
.chm-qr canvas {
	height: 100% !important;
	max-width: 100%;
	width: 100% !important;
}

.chm-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
}

.chm-form-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.chm-user-list { display: grid; gap: 12px; }
.chm-user-search { display: grid; gap: 8px; margin: 18px 0 0; }
.chm-user-search input {
	background: #fff;
	border: 1px solid #cbdbe6;
	border-radius: 12px;
	color: var(--chm-ink);
	font: inherit;
	padding: 12px 14px;
	width: 100%;
}
.chm-user-search-status { color: var(--chm-muted); font-size: .85rem; margin: 8px 0 14px; min-height: 1.2em; }
.chm-user-filter { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 0; }
.chm-user-filter select, .chm-company-grant-row select { background: #fff; border: 1px solid #cbdbe6; border-radius: 10px; color: var(--chm-ink); font: inherit; padding: 10px 12px; }
.chm-user-row[hidden], [data-user-no-results][hidden], .chm-company-grant-row[hidden], [data-company-no-results][hidden] { display: none !important; }
.chm-user-row {
	align-items: center;
	background: #f8fbfd;
	border: 1px solid #dce9f0;
	border-radius: 14px;
	display: grid;
	gap: 16px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	padding: 14px;
}
.chm-user-identity { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.chm-user-identity span { color: #4b6473; font-size: .91rem; }
.chm-user-identity .chm-button { justify-self: start; margin-top: 6px; }
.chm-company-grant-list { display: grid; gap: 10px; }
.chm-company-grant-row { align-items: end; background: #f8fbfd; border: 1px solid #dce9f0; border-radius: 14px; display: flex; flex-wrap: wrap; gap: 12px; padding: 14px; }
.chm-company-grant-row label { display: grid; flex: 1 1 300px; gap: 8px; }
.chm-company-grant-row .chm-company-grant-check { align-items: center; display: flex; flex: 1 1 200px; gap: 10px; }
.chm-company-grant-check input { flex: 0 0 auto; height: 18px; width: 18px; }
.chm-company-grant-row select { width: 100%; }
.chm-user-row form { align-items: end; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
.chm-user-row form label { grid-column: 1 / -1; }
.chm-user-row form input { min-width: 0; width: 100%; }
.chm-user-row .chm-quota-form {
	align-items: end;
	border-top: 1px solid #dce9f0;
	grid-column: 1 / -1;
	grid-template-columns: minmax(0, 1fr) auto;
	padding-top: 12px;
}
.chm-user-row .chm-password-form { grid-column: 1 / -1; }
.chm-password-form p { color: var(--chm-muted); margin: 0; }
.chm-user-row .chm-quota-form label { grid-column: auto; }
.chm-quota-summary { color: var(--chm-muted); grid-column: 1 / -1; margin: 0; }
.chm-user-delete { align-items: center; border-top: 1px solid #dce9f0; display: flex; flex-wrap: wrap; gap: 12px; grid-column: 1 / -1; justify-content: space-between; padding-top: 12px; }
.chm-user-delete p { color: var(--chm-muted); flex: 1 1 320px; margin: 0; }

@media (max-width: 720px) {
	.chm-user-row .chm-quota-form { grid-template-columns: 1fr; }
}

.chm-field--full {
	grid-column: 1 / -1;
}
.chm-field textarea[data-info-limit] { box-sizing: border-box; min-height: 46px; overflow: hidden; resize: none; }

.chm-upload-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin-bottom: 28px;
}

.chm-upload {
	background: #f8fbfd;
	border: 1px dashed #a9c4d6;
	border-radius: 16px;
	display: block;
	padding: 18px;
}

.chm-upload img {
	background: #fff;
	border-radius: 12px;
	display: block;
	height: 130px;
	margin-bottom: 14px;
	object-fit: contain;
	width: 100%;
}

.chm-upload small {
	color: var(--chm-muted);
	display: block;
	font-size: .75rem;
	line-height: 1.35;
	margin-top: 8px;
}

.chm-switches {
	background: var(--chm-blue-50);
	border-radius: 14px;
	display: grid;
	gap: 12px;
	margin: 24px 0;
	padding: 16px;
}

.chm-switch {
	align-items: center;
	display: flex;
	font-weight: 650;
	gap: 10px;
}

.chm-switch input {
	accent-color: var(--chm-blue-700);
	height: 20px;
	width: 20px;
}

.chm-notice {
	background: #e3f7eb;
	border: 1px solid #a4d9b7;
	border-radius: 12px;
	color: #155d31;
	margin: 0 auto 20px;
	max-width: 1120px;
	padding: 14px 17px;
}

.chm-notice--error {
	background: #fff0f0;
	border-color: #edb4b4;
	color: #932b2b;
}

.chm-empty {
	color: var(--chm-muted);
	margin: 24px auto;
	max-width: 1120px;
	text-align: center;
}

.chm-site-legal {
	align-items: center;
	color: var(--chm-muted);
	display: flex;
	font-size: .82rem;
	gap: 10px;
	justify-content: center;
	margin: 24px auto 8px;
}

.chm-site-legal a {
	color: var(--chm-blue-700);
	text-decoration: none;
}

.chm-front-page .chm-site-legal {
	display: none;
}

.home .wp-block-post-title {
	display: none;
}

.chm-legal {
	line-height: 1.7;
	max-width: 880px;
}

.chm-legal h2 {
	margin-top: 32px;
}

.chm-legal a {
	color: var(--chm-blue-700);
}

/* Public business card: based on the approved light-blue /werner layout. */
.chm-public-card-page {
	background: #f8f8f8;
	color: var(--chm-ink);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	margin: 0;
	min-height: 100vh;
}

.chm-public-card-page * { box-sizing: border-box; }

.chm-public-shell {
	margin: 0 auto;
	max-width: 1180px;
	padding: 25px 32px 28px;
}

.chm-public-card {
	background: #eef9fd;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	overflow: hidden;
	padding-bottom: 28px;
}

.chm-public-brand {
	align-items: center;
	background: #fff;
	border: 0;
	border-radius: 0 0 12px 12px;
	display: flex;
	height: 190px;
	justify-content: center;
	margin: 0 auto;
	max-width: 570px;
	padding: 24px 34px 50px;
}

.chm-public-logo {
	display: block;
	max-height: 118px;
	max-width: 78%;
	object-fit: contain;
}

.chm-public-company-mark {
	color: var(--chm-blue-700);
	font-size: clamp(1.35rem, 5vw, 2rem);
	font-weight: 800;
	line-height: 1.12;
	max-width: 340px;
	text-align: center;
}

.chm-public-profile {
	background: transparent;
	padding: 0 26px 10px;
	text-align: center;
}

.chm-public-portrait {
	align-items: center;
	background: #d9eef7;
	border: 4px solid #fff;
	border-radius: 50%;
	box-shadow: none;
	color: var(--chm-blue-700);
	display: flex;
	font-size: 2.15rem;
	font-weight: 850;
	height: 154px;
	justify-content: center;
	margin: 14px auto 14px;
	overflow: hidden;
	position: relative;
	width: 154px;
}

.chm-public-portrait img { height: 100%; object-fit: cover; width: 100%; }

.chm-public-profile h1 {
	color: #101b23;
	font-family: Georgia, "Times New Roman", serif;
	font-size: clamp(1.5rem, 5vw, 1.85rem);
	font-weight: 400;
	letter-spacing: -.02em;
	line-height: 1.1;
	margin: 0 0 8px;
}

.chm-public-role,
.chm-public-company {
	color: var(--chm-muted);
	font-size: .94rem;
	line-height: 1.35;
	margin: 2px 0;
}

.chm-public-company { color: var(--chm-blue-700); font-weight: 750; }

.chm-public-info {
	background: #fff;
	border: 1px solid #d4eaf7;
	border-radius: 14px;
	color: var(--chm-ink);
	margin: 10px auto 18px;
	max-width: min(570px, calc(100% - 40px));
	padding: 14px 18px;
	text-align: left;
}

.chm-public-info h2 {
	color: var(--chm-blue-700);
	font-size: .8rem;
	font-weight: 750;
	margin: 0 0 5px;
}

.chm-public-info p {
	font-size: .94rem;
	line-height: 1.5;
	margin: 0;
	overflow-wrap: anywhere;
}

.chm-primary-actions {
	background: transparent;
	display: grid;
	gap: 9px;
	grid-template-columns: repeat(3, 1fr);
	margin: 10px auto 0;
	max-width: 570px;
	padding: 0 22px 22px;
}

.chm-primary-actions a {
	align-items: center;
	background: #e8f5fc;
	border: 1px solid #d4eaf7;
	border-radius: 13px;
	color: var(--chm-blue-700);
	display: flex;
	flex-direction: column;
	font-size: .76rem;
	font-weight: 750;
	gap: 6px;
	padding: 11px 6px 10px;
	text-decoration: none;
	transition: background-color .18s ease, transform .18s ease;
}

.chm-primary-actions a:hover { background: #d9effa; transform: translateY(-1px); }

.chm-icon { display: block; height: 22px; width: 22px; }
.chm-action-icon { align-items: center; display: flex; height: 25px; justify-content: center; width: 25px; }

.chm-contact-list {
	background: #fff;
	border-bottom: 1px solid #deedf6;
	border-top: 1px solid #deedf6;
	border-radius: 14px;
	margin: 0 auto;
	max-width: 570px;
	padding: 8px 22px;
}

.chm-contact-row {
	align-items: center;
	border-bottom: 1px solid #dfeef6;
	color: inherit;
	display: grid;
	gap: 13px;
	grid-template-columns: 38px 1fr auto;
	min-height: 70px;
	padding: 12px 1px;
	text-decoration: none;
}

.chm-contact-row:last-child { border-bottom: 0; }

.chm-contact-icon {
	align-items: center;
	background: #fff;
	border: 1px solid #d7eaf5;
	border-radius: 50%;
	color: #0874b6;
	display: flex;
	height: 38px;
	justify-content: center;
	width: 38px;
}

.chm-contact-icon .chm-icon { height: 19px; width: 19px; }
.chm-row-arrow { color: #7e9bae; display: block; }
.chm-row-arrow .chm-icon { height: 17px; width: 17px; }
.chm-contact-row small, .chm-contact-row strong { display: block; }

.chm-contact-row small {
	color: var(--chm-muted);
	font-size: .71rem;
	letter-spacing: .01em;
	margin-bottom: 2px;
}

.chm-contact-row strong {
	font-size: .91rem;
	font-weight: 650;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.chm-socials { background: transparent; margin: 0 auto; max-width: 570px; padding: 4px 22px 20px; }
.chm-social-grid { align-items: center; display: flex; gap: 24px; justify-content: center; }

.chm-social {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: var(--chm-ink);
	display: flex;
	padding: 0;
	text-decoration: none;
}

.chm-social b { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }

.chm-social > span {
	align-items: center;
	background: transparent;
	border-radius: 0;
	color: #fff;
	display: flex;
	height: 30px;
	justify-content: center;
	width: 30px;
}

.chm-social > span .chm-icon { height: 25px; width: 25px; }
.chm-social--facebook > span { color: #1877f2; }
.chm-social--instagram > span { color: #e1306c; }
.chm-social--tiktok > span { color: #111; }
.chm-social--linkedin > span { color: #0a66c2; }
.chm-social--xing > span { color: #026466; }
.chm-social--whatsapp > span { color: #1fa855; }

.chm-save-card { background: transparent; margin: 0 auto; max-width: 570px; padding: 16px 22px 0; }
.chm-save-card .chm-button {
	background: #075b99;
	border-color: #075b99;
	border-radius: 13px;
	box-shadow: 0 8px 20px rgba(7, 91, 153, .2);
	min-height: 50px;
	width: 100%;
}
.chm-save-card .chm-icon { height: 20px; width: 20px; }

.chm-public-footer {
	align-items: center;
	color: #587287;
	display: flex;
	flex-wrap: wrap;
	font-size: .78rem;
	gap: 10px;
	justify-content: center;
	padding: 20px 10px 4px;
}

.chm-public-footer a { color: #41647c; text-decoration: none; }

/* Exact public-card layout carried over from the approved /werner version. */
.chm-public-card-page {
	background: #fff;
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
}

.chm-public-shell {
	margin: 0;
	max-width: none;
	padding: 0;
}

.chm-public-stage {
	background: #f4fbfc;
	min-height: 100vh;
	padding: 0 0 44px;
	width: 100%;
}

.chm-public-card {
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	margin: 0 auto;
	max-width: 600px;
	overflow: visible;
	padding: 0;
	width: 100%;
}

.chm-public-brand {
	background: #fff;
	border: 0;
	border-radius: 10px;
	height: 190px;
	margin: 10px auto 0;
	max-width: none;
	overflow: hidden;
	padding: 18px 28px;
	width: 570px;
}

.chm-public-logo {
	border-radius: 0;
	height: 100%;
	max-height: none;
	max-width: none;
	object-fit: contain;
	width: 100%;
}

.chm-public-company-mark {
	align-items: center;
	color: #075b99;
	display: flex;
	font-size: 28px;
	height: 100%;
	justify-content: center;
	max-width: none;
	padding: 24px;
	width: 100%;
}

.chm-public-profile {
	background: transparent;
	margin-top: 14px;
	padding: 0;
	text-align: center;
}

.chm-public-portrait {
	background: #d8edf5;
	border: 4px solid #fff;
	box-shadow: none;
	font-size: 2.15rem;
	height: 160px;
	margin: 0 auto;
	width: 160px;
}

.chm-public-profile h1 {
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: 23px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 10px 0 7px;
}

.chm-socials {
	align-items: center;
	background: transparent;
	display: flex;
	gap: 10px;
	height: 56px;
	justify-content: center;
	margin: 0 0 9px;
	max-width: none;
	padding: 0;
}

.chm-social {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	display: inline-flex;
	height: 56px;
	justify-content: center;
	padding: 0;
	width: 56px;
}

.chm-social .chm-icon { height: 25px; width: 25px; }
.chm-social--facebook { color: #1877f2; }
.chm-social--instagram { color: #d62976; }
.chm-social--tiktok { color: #111; }
.chm-social--linkedin { color: #0a66c2; }
.chm-social--xing { color: #026466; }
.chm-social--whatsapp { color: #1fa855; }

.chm-public-actions {
	display: grid;
	gap: 10px;
	margin: 0 20px;
}

.chm-public-action {
	align-items: center;
	border: 0;
	border-radius: 50px;
	cursor: pointer;
	display: flex;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	gap: 11px;
	height: 50px;
	justify-content: center;
	line-height: 1.2;
	padding: 7px 18px;
	text-align: center;
	text-decoration: none;
	width: 100%;
}

.chm-public-action .chm-icon { height: 22px; width: 22px; }
.chm-public-action--light { background: #e4e4e4; color: #25262b; }
.chm-public-action--dark { background: #25262b; color: #fff; }

.chm-exchange { margin: 10px 20px 0; }
.chm-exchange summary { list-style: none; }
.chm-exchange summary::-webkit-details-marker { display: none; }

.chm-exchange-form-wrap {
	background: rgba(255,255,255,.85);
	border-radius: 10px;
	box-shadow: 2px 4px 12px rgba(0,0,0,.08);
	margin-top: 10px;
	padding: 18px;
}

.chm-exchange-form { display: grid; gap: 11px; }
.chm-exchange-form label { color: #4d5055; font-size: 13px; font-weight: 600; }
.chm-exchange-form input,
.chm-exchange-form textarea {
	background: #fff;
	border: 1px solid #cfd5d8;
	border-radius: 8px;
	color: #25262b;
	font: inherit;
	margin-top: 5px;
	padding: 11px 12px;
	width: 100%;
}
.chm-exchange-form textarea { min-height: 78px; resize: vertical; }
.chm-exchange-form p { color: #70767c; font-size: 11px; line-height: 1.45; margin: 2px 0 0; }

.chm-contact-list {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 20px 20px 0;
	max-width: none;
	padding: 0;
}

.chm-contact-row {
	align-items: center;
	background: rgba(255,255,255,.48);
	border: 1px solid transparent;
	border-radius: 10px;
	box-shadow: 2px 4px 12px rgba(0,0,0,.08);
	color: #25262b;
	display: grid;
	gap: 0;
	grid-template-columns: 56px 1fr;
	height: 64px;
	margin: 8px 0;
	min-height: 64px;
	padding: 10px;
	text-decoration: none;
}

.chm-contact-icon {
	align-items: center;
	background: transparent;
	border: 0;
	border-radius: 0;
	color: #8e959e;
	display: flex;
	height: auto;
	justify-content: flex-start;
	width: auto;
}

.chm-contact-icon .chm-icon { height: 34px; width: 34px; }
.chm-contact-row small { color: #37383c; font-size: 14px; line-height: 20px; margin: 0; }
.chm-contact-row strong { color: #25262b; font-size: 14px; font-weight: 400; line-height: 20px; }

.chm-public-share {
	background: rgba(255,255,255,.72);
	border-radius: 12px;
	box-shadow: 2px 4px 12px rgba(0,0,0,.08);
	margin: 28px 20px 0;
	padding: 24px 20px 20px;
	text-align: center;
}

.chm-public-share h2 {
	color: #25262b;
	font-size: 20px;
	font-weight: 600;
	margin: 0 0 8px;
}

.chm-public-share > p {
	color: #737a80;
	font-size: 13px;
	line-height: 1.5;
	margin: 0 auto 18px;
	max-width: 390px;
}

.chm-public-qr {
	align-items: center;
	background: #fff;
	border-radius: 12px;
	display: flex;
	height: 238px;
	justify-content: center;
	margin: 0 auto 20px;
	padding: 9px;
	width: 238px;
}

.chm-public-qr img,
.chm-public-qr canvas {
	height: 220px !important;
	max-width: 100%;
	width: 220px !important;
}

.chm-share-actions {
	display: grid;
	gap: 10px;
	grid-template-columns: 1fr 1fr;
}

.chm-share-status {
	color: #23633b !important;
	font-weight: 600;
	margin: 10px 0 0 !important;
	min-height: 20px;
}

.chm-public-footer {
	color: #737a80;
	font-size: 12px;
	gap: 7px;
	padding: 24px 10px 4px;
	text-align: center;
}
.chm-public-footer a { color: #53595e; }

@media (max-width: 680px) {
	.chm-main-footer {
		align-items: flex-start;
		flex-direction: column;
	}
	.chm-dashboard-header,
	.chm-section-heading {
		align-items: flex-start;
		flex-direction: column;
	}
	.chm-dashboard-header-actions { justify-content: flex-start; }

	.chm-form-grid,
	.chm-upload-grid {
		grid-template-columns: 1fr;
	}
	.chm-user-row { grid-template-columns: 1fr; }

	.chm-field--full {
		grid-column: auto;
	}

	.chm-panel,
	.chm-login-box,
	.chm-legal {
		border-radius: 18px;
		padding: 22px 18px;
	}

	.chm-public-shell {
		padding: 0;
	}

	.chm-public-card {
		border-radius: 0;
	}

	.chm-public-brand {
		height: 170px;
		margin: 10px 15px 0;
		padding: 14px 20px;
		width: calc(100% - 30px);
	}

	.chm-public-logo {
		height: 100%;
		width: 100%;
	}

	.chm-public-profile {
		padding: 0;
	}

	.chm-public-portrait {
		height: 160px;
		width: 160px;
	}

	.chm-contact-row {
		grid-template-columns: 50px 1fr;
		height: auto;
		min-height: 64px;
	}

	.chm-contact-icon .chm-icon {
		height: 31px;
		width: 31px;
	}

	.chm-public-share {
		margin-left: 15px;
		margin-right: 15px;
		padding-left: 15px;
		padding-right: 15px;
	}

	.chm-share-actions {
		grid-template-columns: 1fr;
	}
}

.chm-user-delete-actions { align-items: center; display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.chm-delete-toggle { align-items: center; color: #465d6a; cursor: pointer; display: inline-flex; font-size: .88rem; gap: 9px; white-space: nowrap; }
.chm-delete-toggle input { height: 1px; opacity: 0; position: absolute; width: 1px; }
.chm-delete-toggle-track { background: #d5dfe5; border: 1px solid #afc2cd; border-radius: 20px; box-sizing: border-box; display: inline-block; flex: 0 0 42px; height: 24px; position: relative; transition: background .15s ease; }
.chm-delete-toggle-track::after { background: #fff; border-radius: 50%; box-shadow: 0 1px 3px #0003; content: ''; height: 18px; left: 2px; position: absolute; top: 2px; transition: transform .15s ease; width: 18px; }
.chm-delete-toggle input:checked + .chm-delete-toggle-track { background: #b42318; border-color: #b42318; }
.chm-delete-toggle input:checked + .chm-delete-toggle-track::after { transform: translateX(18px); }
.chm-delete-toggle input:focus-visible + .chm-delete-toggle-track { outline: 3px solid #206eab; outline-offset: 3px; }
.chm-user-delete .chm-button--danger:disabled,
.chm-user-delete .chm-button--danger:disabled:hover { background: #d6dce0; color: #56646c !important; cursor: not-allowed; }
@media (max-width: 720px) {
	.chm-user-delete-actions { justify-content: flex-start; width: 100%; }
}

/* Firmenstruktur ab Version 1.3.0 */
.chm-company-directory { margin-top: clamp(44px, 7vw, 80px); }
.chm-company-directory .chm-section-heading {
	justify-content: center;
	text-align: center;
}
.chm-company-directory .chm-section-heading h2 { margin: 0; }
.chm-company-grid,
.chm-company-admin-grid {
	display: grid;
	gap: 22px;
}
.chm-company-grid {
	grid-template-columns: repeat(auto-fit, minmax(280px, 420px));
	justify-content: center;
	margin: 0 auto;
	max-width: 1080px;
}
.chm-company-admin-grid {
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.chm-company-directory-card,
.chm-company-admin-card {
	background: #fff;
	border: 1px solid var(--chm-line);
	border-radius: 22px;
	box-shadow: 0 14px 40px rgba(36, 78, 106, .1);
	padding: 24px;
}
.chm-company-directory-card { box-sizing: border-box; width: 100%; }
.chm-company-directory-card > a {
	align-items: center;
	box-sizing: border-box;
	color: var(--chm-ink);
	display: flex;
	flex-direction: column;
	min-height: 250px;
	text-align: center;
	text-decoration: none;
}
.chm-company-directory-logo {
	align-items: center;
	background: #f4f9fc;
	border-radius: 16px;
	box-sizing: border-box;
	display: flex;
	flex: 0 0 130px;
	height: 130px;
	justify-content: center;
	margin-bottom: 20px;
	overflow: hidden;
	padding: 14px 20px;
	width: 100%;
}
.chm-company-directory-logo img {
	display: block;
	height: 100%;
	object-fit: contain;
	width: 100%;
}
.chm-company-directory-logo span,
.chm-company-initials { color: var(--chm-blue-700); font-size: 2rem; font-weight: 800; }
.chm-company-admin-card h3,
.chm-company-directory-card h3 {
	font-size: 20px;
	line-height: 1.3;
	margin: 0 0 18px;
	text-align: center;
	width: 100%;
}
.chm-company-admin-card__top {
	align-items: flex-start;
	min-height: 52px;
}
.chm-company-admin-card__top h3 {
	margin: 0;
	text-align: left;
	width: auto;
}
.chm-company-directory-status { margin: 10px 0 18px; }
.chm-company-directory-card .chm-card-link {
	box-sizing: border-box;
	flex-shrink: 0;
	margin-top: auto;
}
.chm-company-admins {
	border: 1px solid var(--chm-line);
	border-radius: 14px;
	display: grid;
	gap: 8px;
	margin: 20px 0;
	padding: 18px;
}
.chm-company-admins legend { font-weight: 750; padding: 0 8px; }
.chm-company-admin-create { border-top: 1px solid var(--chm-line); margin-top: 30px; padding-top: 24px; }
.chm-team-user { background: #f8fbfd; border: 1px solid var(--chm-line); border-radius: 14px; margin: 12px 0; padding: 16px; overflow-wrap: anywhere; }
.chm-team-user[hidden], [data-team-no-results][hidden] { display: none !important; }
.chm-team-user > p { color: var(--chm-muted); margin: 5px 0 10px; }
.chm-team-user .chm-company-admins { margin: 12px 0; }
.chm-team-grant { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
.chm-team-grant select { background: #fff; border: 1px solid var(--chm-line); border-radius: 8px; max-width: 100%; padding: 7px; }
.chm-team-delete { display: block; font-size: .9rem; margin: 12px 0; }
.chm-existing-user-confirm { background: #f2f8fb; border: 1px solid var(--chm-line); border-radius: 14px; padding: 18px; }
.chm-company-delete-form { border-top: 1px solid var(--chm-line); margin-top: 24px; padding-top: 24px; }
.chm-structure-editor {
	background: #f8fbfd;
	border: 1px solid var(--chm-line);
	border-radius: 16px;
	padding: 20px;
}
.chm-structure-editor > p {
	color: var(--chm-muted);
	margin: 6px 0 18px;
}
.chm-structure-control {
	align-items: end;
	display: grid;
	gap: 12px;
	grid-template-columns: minmax(0, 1fr) auto;
	margin-top: 16px;
}
.chm-structure-control--child { grid-template-columns: minmax(180px, .8fr) minmax(0, 1.2fr) auto; }
.chm-structure-control label > span {
	color: var(--chm-ink);
	display: block;
	font-size: .82rem;
	font-weight: 750;
	margin-bottom: 7px;
}
.chm-structure-control input,
.chm-structure-control select {
	background: #fff;
	border: 1px solid #cfd5d8;
	border-radius: 10px;
	color: var(--chm-ink);
	font: inherit;
	min-height: 48px;
	padding: 10px 12px;
	width: 100%;
}
.chm-structure-control .chm-button { min-width: 132px; }
.chm-structure-control .chm-button:disabled,
.chm-structure-control input:disabled,
.chm-structure-control select:disabled { cursor: not-allowed; opacity: .55; }
.chm-structure-delete-control {
	border-top: 1px solid var(--chm-line);
	margin-top: 22px;
	padding-top: 22px;
}
.chm-structure-preview {
	background: #fff;
	border: 1px solid var(--chm-line);
	border-radius: 12px;
	margin-top: 22px;
	padding: 18px 20px;
}
.chm-structure-preview::before {
	color: var(--chm-muted);
	content: 'Aktuelle Struktur';
	display: block;
	font-size: .78rem;
	font-weight: 750;
	letter-spacing: .04em;
	margin-bottom: 12px;
	text-transform: uppercase;
}
.chm-structure-preview ul { margin: 0; padding-left: 22px; }
.chm-structure-preview > ul { padding-left: 18px; }
.chm-structure-preview li { margin: 6px 0; }
.chm-structure-empty { color: var(--chm-muted); margin: 0; }
.chm-structure-status { color: #23633b; font-size: .9rem; min-height: 22px; }
.chm-structure-status.is-error { color: #b42318; }
.chm-company-contact-editor {
	background: #f8fbfd;
	border: 1px solid var(--chm-line);
	border-radius: 16px;
	padding: 20px;
}
.chm-company-contact-editor > p { color: var(--chm-muted); margin: 6px 0 18px; }
.chm-company-contact-editor .chm-form-grid { margin: 0; }
.chm-company-page-body {
	background: #fff;
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
	margin: 0;
	min-height: 100vh;
	scroll-behavior: smooth;
}
.chm-company-page-body * { box-sizing: border-box; }
.chm-company-page-body .chm-front-main {
	background: #f4fbfc;
	min-height: 100vh;
	padding: 0 0 44px;
}
.chm-company-page {
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
	margin: 0 auto;
	max-width: 1080px;
}
.chm-company-public-card { padding-top: 1px; }
.chm-company-public-profile h1 {
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: 23px;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 10px 15px 7px;
	overflow-wrap: anywhere;
}
.chm-company-public-profile .chm-company-summary {
	color: #737a80;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.45;
	margin: 2px auto;
	max-width: 520px;
	padding: 0 15px;
}
.chm-company-structure-action { margin-top: 10px; }
.chm-company-public-contact-list { font-style: normal; }
.chm-company-hero {
	background: transparent;
	border: 0;
	box-shadow: none;
	display: block;
	margin: 10px auto 44px;
	max-width: 600px;
	padding: 0 20px 28px;
	text-align: center;
}
.chm-company-hero-logo {
	align-items: center;
	background: #fff;
	border-radius: 10px;
	box-sizing: border-box;
	display: flex;
	height: 220px;
	justify-content: center;
	margin: 0 auto;
	padding: 18px 28px;
	width: 100%;
}
.chm-company-hero-logo img {
	display: block;
	max-height: 188px;
	max-width: 90%;
	object-fit: contain;
}
.chm-company-hero-logo .chm-company-initials { font-size: 2rem; }
.chm-company-title { margin: 26px auto 0; }
.chm-company-hero-content {
	background: rgba(255, 255, 255, .72);
	border: 1px solid transparent;
	border-radius: 12px;
	box-shadow: var(--chm-shadow);
	margin: 18px auto 0;
	max-width: 500px;
	min-width: 0;
	padding: 8px 16px;
}
.chm-company-hero h1 {
	color: var(--chm-ink);
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: clamp(20px, 3.2vw, 38px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0;
	overflow-wrap: anywhere;
	white-space: nowrap;
}
.chm-company-summary {
	color: var(--chm-muted);
	font-size: 14px;
	line-height: 1.5;
	margin: 10px auto;
	max-width: 520px;
}
.chm-company-contact-list {
	display: grid;
	font-style: normal;
	gap: 0;
	margin: 0;
}
.chm-company-contact-row {
	align-items: center;
	background: transparent;
	border: 0;
	border-top: 1px solid var(--chm-line);
	border-radius: 0;
	box-shadow: none;
	color: var(--chm-ink);
	display: grid;
	gap: 10px;
	grid-template-columns: 38px minmax(0, 1fr);
	min-height: 52px;
	padding: 8px 0;
	text-align: left;
	text-decoration: none;
}
.chm-company-contact-row:first-child { border-top: 0; }
.chm-company-contact-icon {
	align-items: center;
	color: #8e959e;
	display: flex;
	justify-content: flex-start;
}
.chm-company-contact-icon .chm-icon { height: 27px; width: 27px; }
.chm-company-contact-details { min-width: 0; }
.chm-company-contact-details small {
	color: var(--chm-muted);
	display: block;
	font-size: 12px;
	line-height: 1.3;
	margin-bottom: 1px;
}
.chm-company-contact-value {
	color: var(--chm-ink);
	display: block;
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
	overflow-wrap: anywhere;
	text-decoration: none;
}
.chm-company-contact-row:hover .chm-company-contact-value { text-decoration: underline; }
.chm-company-org {
	margin: 52px auto 64px;
	max-width: 1180px;
	scroll-margin-top: 24px;
}
.chm-company-org:focus { outline: none; }
.chm-company-org-heading {
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: clamp(26px, 4vw, 34px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 0 24px;
	text-align: center;
}
/* The organigram structure and all connector lines are defined once in the
 * consolidated block at the end of this file. */
.chm-org-node-body {
	align-items: center;
	background: rgba(255, 255, 255, .72);
	border: 1px solid #cbdce2;
	border-radius: 16px;
	box-shadow: 2px 5px 16px rgba(37, 38, 43, .08);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	max-width: 460px;
	min-width: 440px;
	padding: 16px;
}
.chm-org-title {
	align-items: center;
	color: var(--chm-ink);
	display: flex;
	font-size: 18px;
	font-weight: 600;
	justify-content: center;
	line-height: 1.25;
	margin: 0;
	min-height: 40px;
	width: 100%;
}
.chm-org-title small {
	background: #e7f5f8;
	border-radius: 50px;
	color: #607983;
	font-size: 11px;
	font-weight: 600;
	margin-left: 10px;
	padding: 5px 9px;
	white-space: nowrap;
}
.chm-org-node--depth-1 > .chm-org-node-body > .chm-org-title {
	font-size: 21px;
}
.chm-org-cards {
	border-top: 1px solid #d6e3e7;
	gap: 12px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	justify-content: center;
	margin: 12px 0 0;
	max-width: none;
	padding-top: 14px;
	width: 100%;
}
.chm-org-cards::before { display: none; }
.chm-org-cards .chm-directory-card {
	border-radius: 10px;
	min-height: 240px;
	width: 100%;
}
.chm-org-cards .chm-directory-card > a {
	min-height: 240px;
	padding: 14px 12px 12px;
}
.chm-org-cards .chm-directory-visual {
	height: 90px;
	margin: -14px -12px 44px;
	width: calc(100% + 24px);
}
.chm-org-cards .chm-directory-avatar {
	bottom: -38px;
	font-size: 21px;
	height: 82px;
	width: 82px;
}
.chm-org-cards .chm-directory-logo-badge {
	bottom: -42px;
	height: 42px;
	left: 8px;
	padding: 3px;
	width: 58px;
}
.chm-org-cards .chm-directory-card h2 {
	font-size: 16px;
	line-height: 1.2;
	margin: 0 0 4px;
}
.chm-org-cards .chm-directory-card p {
	font-size: 12px;
	line-height: 1.35;
	margin: 0 0 5px;
}
.chm-org-cards .chm-directory-card strong { display: none; }
.chm-org-cards .chm-card-link {
	font-size: 12px;
	min-height: 36px;
	padding: 6px 10px;
}
.chm-company-share {
	background: rgba(255,255,255,.72);
	border: 0;
	border-radius: 12px;
	box-shadow: 2px 4px 12px rgba(0,0,0,.08);
	box-sizing: border-box;
	margin: 52px auto 28px;
	max-width: 560px;
	padding: 24px 20px 20px;
	text-align: center;
}
.chm-company-share .chm-public-qr { margin-left: auto; margin-right: auto; }
.chm-company-login .chm-login-box { margin: 24px auto 28px; max-width: 600px; }
.chm-company-page .chm-site-legal { justify-content: center; padding-bottom: 40px; }

@media (max-width: 680px) {
	.chm-company-grid,
	.chm-company-admin-grid { grid-template-columns: 1fr; }
	.chm-structure-control,
	.chm-structure-control--child { grid-template-columns: 1fr; }
	.chm-structure-control .chm-button { width: 100%; }
	.chm-company-hero {
		margin-top: 10px;
		padding: 0 15px 24px;
		text-align: center;
	}
	.chm-company-hero-logo { height: 190px; padding: 16px 20px; }
	.chm-company-hero-logo img { max-height: 160px; max-width: 92%; }
	.chm-company-title { margin-top: 22px; }
	.chm-company-hero h1 { font-size: clamp(18px, 5.2vw, 26px); }
	.chm-company-hero-content { padding: 8px 14px; }
	.chm-company-contact-row { gap: 10px; grid-template-columns: 36px minmax(0, 1fr); text-align: left; }
	.chm-company-contact-icon .chm-icon { height: 25px; width: 25px; }
	.chm-company-org { margin-bottom: 52px; }
	.chm-company-org-heading { margin-bottom: 20px; }
	.chm-org-node-body { max-width: none; min-width: 0; padding: 14px; width: 100%; }
	.chm-org-title { font-size: 16px; }
	.chm-org-node--depth-1 > .chm-org-node-body > .chm-org-title { font-size: 18px; }
	.chm-org-cards { grid-template-columns: 1fr; width: 100%; }
	.chm-org-cards .chm-directory-card,
	.chm-org-cards .chm-directory-card > a { min-height: 230px; }
}

@media (prefers-reduced-motion: reduce) {
	.chm-company-page-body { scroll-behavior: auto; }
	.chm-directory-card {
		transition: none;
	}
}

/* Unified site design based on the approved light-blue public card. */
:root {
	--chm-blue-50: #f4fbfc;
	--chm-blue-100: #e7f5f8;
	--chm-blue-500: #718c98;
	--chm-blue-700: #25262b;
	--chm-ink: #25262b;
	--chm-muted: #737a80;
	--chm-line: #cfdadd;
	--chm-white: #ffffff;
	--chm-shadow: 2px 4px 12px rgba(0, 0, 0, .08);
}

.chm-front-page,
.chm-dashboard-page,
.chm-content-page {
	background: #fff;
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
}

.chm-site-header {
	background: #fff;
	border: 0;
	box-shadow: none;
	font-family: Inter, Arial, Helvetica, sans-serif;
	min-height: 105px;
	padding: 26px max(20px, calc((100vw - 1080px) / 2));
	position: relative;
}

.chm-site-brand {
	color: #25262b;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 34px;
	font-weight: 400;
	letter-spacing: -.015em;
	line-height: 1.2;
}

.chm-site-brand strong { font-weight: 400; }

.chm-site-header nav a {
	align-items: center;
	background: #e4e4e4;
	border-radius: 50px;
	color: #25262b;
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	justify-content: center;
	min-height: 44px;
	padding: 9px 22px;
}

.chm-session-header {
	align-items: center;
	background: #fff;
	display: flex;
	justify-content: flex-end;
	min-height: 76px;
	padding: 16px max(20px, calc((100vw - 1080px) / 2));
}

.chm-session-header nav a {
	align-items: center;
	background: #e4e4e4;
	border-radius: 50px;
	color: #25262b;
	display: inline-flex;
	font-size: 14px;
	font-weight: 500;
	justify-content: center;
	min-height: 44px;
	padding: 9px 22px;
	text-decoration: none;
}

.chm-front-main,
.chm-dashboard-main,
.chm-content-main {
	background: #f4fbfc;
	min-height: calc(100vh - 180px);
	padding: 10px 20px 44px;
}

.chm-directory,
.chm-dashboard,
.chm-legal,
.chm-login-box,
.chm-panel {
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
}

.chm-hero {
	background: transparent;
	border: 0;
	border-radius: 0;
	margin: 0 auto 25px;
	max-width: 1080px;
	overflow: visible;
	padding: 32px 0 12px;
	text-align: center;
}

.chm-hero::after { display: none; }

.chm-hero h1,
.chm-dashboard h1,
.chm-legal h1 {
	color: #25262b;
	font-family: Inter, Arial, Helvetica, sans-serif;
	font-size: clamp(28px, 4vw, 38px);
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.2;
	margin: 0 0 10px;
}

.chm-hero > p:last-child {
	color: #737a80;
	font-size: 16px;
	margin: 0 auto;
}

.chm-eyebrow {
	color: #737a80;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .1em;
	margin-bottom: 8px;
}

.chm-directory-grid {
	gap: 20px;
	grid-template-columns: repeat(auto-fit, minmax(270px, 340px));
	justify-content: center;
	margin-bottom: 34px;
	max-width: 1080px;
}

.chm-directory-card,
.chm-login-box,
.chm-panel,
.chm-legal {
	background: rgba(255, 255, 255, .58);
	border: 1px solid transparent;
	border-radius: 10px;
	box-shadow: var(--chm-shadow);
}

.chm-directory-card {
	min-height: 350px;
	transition: transform .18s ease, box-shadow .18s ease;
}

.chm-directory-card:hover {
	box-shadow: 3px 7px 18px rgba(0, 0, 0, .11);
	transform: translateY(-2px);
}

.chm-directory-card > a {
	box-sizing: border-box;
	min-height: inherit;
	padding: 24px 22px 22px;
}

.chm-directory-visual {
	align-items: center;
	background: linear-gradient(145deg, #e7f5f8, #f7fcfd);
	border-radius: 10px 10px 0 0;
	display: flex;
	height: 180px;
	justify-content: center;
	margin: -24px -22px 82px;
	position: relative;
	width: calc(100% + 44px);
}

.chm-directory-visual--logo { background: linear-gradient(145deg, #e7f5f8, #f7fcfd); }

.chm-directory-logo-badge {
	align-items: center;
	background: rgba(255, 255, 255, .96);
	border: 1px solid rgba(37, 38, 43, .08);
	border-radius: 9px;
	bottom: -74px;
	display: flex;
	height: 65px;
	justify-content: center;
	left: calc(50% - 156px);
	overflow: hidden;
	padding: 5px;
	position: absolute;
	width: 90px;
	z-index: 2;
}

.chm-directory-logo {
	display: block;
	height: 100%;
	object-fit: contain;
	opacity: 1;
	padding: 0;
	width: 100%;
}

.chm-directory-logo--wide {
	object-fit: cover;
	transform: scale(1.18);
}

.chm-directory-avatar {
	background: #d8edf5;
	border: 4px solid #fff;
	box-shadow: none;
	color: #718c98;
	font-size: 34px;
	height: 160px;
	bottom: -68px;
	left: 50%;
	margin: 0;
	position: absolute;
	transform: translateX(-50%);
	width: 160px;
	z-index: 3;
}

.chm-directory-card h2 {
	color: #25262b;
	font-size: 23px;
	font-weight: 600;
	letter-spacing: 0;
	margin-bottom: 6px;
}

.chm-directory-card p,
.chm-directory-card strong {
	color: #737a80;
	font-size: 14px;
	font-weight: 400;
}

.chm-card-link {
	align-items: center;
	background: #25262b;
	border-radius: 50px;
	box-sizing: border-box;
	color: #fff;
	display: flex;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: 500;
	justify-content: center;
	line-height: 1.25;
	margin-top: auto;
	min-height: 48px;
	padding: 8px 20px;
	width: 100%;
}

.chm-login-box,
.chm-panel,
.chm-legal {
	margin: 24px auto;
	max-width: 1080px;
	padding: clamp(22px, 4vw, 36px);
}

.chm-login-box { max-width: 600px; }

.chm-login-box h2,
.chm-panel h2,
.chm-legal h2 {
	color: #25262b;
	font-size: 23px;
	font-weight: 600;
	letter-spacing: 0;
}

.chm-login-box input[type="text"],
.chm-login-box input[type="password"],
.chm-user-row form input,
.chm-field input,
.chm-field textarea,
.chm-field select,
.chm-copy-row input {
	background: rgba(255, 255, 255, .9);
	border: 1px solid #cfd5d8;
	border-radius: 10px;
	color: #25262b;
	min-height: 46px;
}

.chm-login-box input:focus,
.chm-user-row form input:focus,
.chm-field input:focus,
.chm-field textarea:focus,
.chm-field select:focus {
	border-color: #718c98;
	box-shadow: 0 0 0 3px rgba(113, 140, 152, .16);
}

.chm-button,
.chm-login-box input[type="submit"] {
	background: #25262b;
	border: 0;
	border-radius: 50px;
	color: #fff !important;
	font-size: 14px;
	font-weight: 500;
	min-height: 48px;
	padding: 9px 22px;
}

.chm-button:hover,
.chm-login-box input[type="submit"]:hover {
	background: #111216;
}

.chm-button--secondary {
	background: #e4e4e4;
	border: 0;
	color: #25262b !important;
}

.chm-button--secondary:hover { background: #d7d7d7; }

.chm-delete-card-form {
	display: inline-flex;
	margin: 0;
}

.chm-button--danger {
	background: #b42318;
	color: #fff !important;
}

.chm-button--danger:hover {
	background: #8f1c13;
}

.chm-dashboard { max-width: 1080px; }
.chm-dashboard-header { margin: 24px 0; }

.chm-manage-card,
.chm-upload,
.chm-switches {
	background: rgba(255, 255, 255, .62);
	border: 1px solid transparent;
	border-radius: 10px;
	box-shadow: var(--chm-shadow);
}

.chm-manage-card { padding: 20px; }
.chm-manage-card h3 { color: #25262b; font-size: 18px; }

.chm-status {
	background: #e4e4e4;
	color: #53595e;
}

.chm-status--publish {
	background: #dcefe2;
	color: #23633b;
}

.chm-copy-row input { border-radius: 10px 0 0 10px; }
.chm-copy {
	background: #25262b;
	border-radius: 0 10px 10px 0;
}

.chm-qr,
.chm-upload img { border-radius: 10px; }

.chm-upload { border-style: dashed; }

.chm-switches {
	box-shadow: none;
	padding: 18px;
}

.chm-switch input { accent-color: #25262b; }

.chm-notice {
	border-radius: 10px;
	max-width: 1080px;
}

.chm-site-legal,
.chm-main-footer {
	color: #737a80;
	font-family: Inter, Arial, Helvetica, sans-serif;
}

.chm-site-legal a,
.chm-main-footer a,
.chm-legal a,
.chm-login-help a {
	color: #53595e;
}

.chm-main-footer {
	background: #f4fbfc;
	border: 0;
	padding: 22px max(20px, calc((100vw - 1080px) / 2)) 30px;
}

.chm-legal {
	line-height: 1.65;
	max-width: 880px;
}

@media (max-width: 680px) {
	.chm-session-header { min-height: 64px; padding: 10px 15px; }
	.chm-session-header nav a { min-height: 40px; padding: 8px 15px; }

	.chm-site-header {
		min-height: 88px;
		padding: 20px 18px;
	}

	.chm-site-brand { font-size: 28px; }
	.chm-site-header nav a { min-height: 40px; padding: 8px 15px; }

	.chm-front-main,
	.chm-dashboard-main,
	.chm-content-main { padding: 8px 15px 34px; }

	.chm-hero { padding-top: 24px; }
	.chm-directory-grid { grid-template-columns: 1fr; }
	.chm-directory-card { min-height: 330px; }
	.chm-directory-visual { height: 170px; }
	.chm-main-footer { padding-left: 18px; padding-right: 18px; }
}

/* Keep the company page on the exact public-card scale after all shared rules. */
.chm-company-page .chm-company-share {
	margin: 52px auto 28px;
	max-width: 560px;
	width: calc(100% - 40px);
}

.chm-company-org .chm-org-cards {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	max-width: none;
	width: 100%;
}

@media (max-width: 680px) {
	.chm-company-page .chm-company-share { width: calc(100% - 30px); }
	.chm-company-org .chm-org-cards {
		grid-template-columns: minmax(0, 1fr);
		max-width: 100%;
		width: 100%;
	}
}

/* Organigramm 1.9: one connector system, rounded elbows and depth colours. */
.chm-company-org-chart {
	overflow: visible;
	padding: 6px 0 20px;
}

.chm-company-org .chm-org-tree,
.chm-company-org .chm-org-children {
	display: block;
	list-style: none;
	margin: 0;
	min-width: 0;
	padding: 0;
	position: relative;
	width: 100%;
}

.chm-company-org .chm-org-tree > .chm-org-node {
	padding-top: 0;
}

.chm-company-org .chm-org-node {
	box-sizing: border-box;
	list-style: none;
	margin: 0;
	min-width: 0;
	padding: 30px 0 18px;
	position: relative;
	text-align: center;
	width: 100%;
}

.chm-company-org .chm-org-children {
	--chm-org-branch-line: #6f9caa;
	--chm-org-branch-x: 34px;
	padding-top: 30px;
}

.chm-company-org .chm-org-node--depth-2 > .chm-org-children {
	--chm-org-branch-line: #82b7c2;
	--chm-org-branch-x: 44px;
}

.chm-company-org .chm-org-node--depth-3 > .chm-org-children {
	--chm-org-branch-line: #a8cbd2;
	--chm-org-branch-x: 54px;
}

.chm-company-org .chm-org-node--depth-4 > .chm-org-children {
	--chm-org-branch-line: #bdd8dd;
	--chm-org-branch-x: 64px;
}

/* The parent exits in the centre. The children list draws one rounded elbow
 * to the left-hand spine. Every child then connects from that same spine. */
/* Connector geometry is drawn by organigram.js. Disable every former CSS
 * connector so only one system can ever render lines. */
.chm-company-org .chm-org-node::before,
.chm-company-org .chm-org-node::after,
.chm-company-org .chm-org-children::before,
.chm-company-org .chm-org-children::after,
.chm-company-org .chm-org-node-body::after {
	content: none !important;
	display: none !important;
}

.chm-org-connectors {
	height: 100%;
	inset: 0;
	overflow: visible;
	pointer-events: none;
	position: absolute;
	width: 100%;
	z-index: 1;
}

.chm-org-connectors path {
	fill: none;
	stroke-linecap: round;
	stroke-linejoin: round;
	vector-effect: non-scaling-stroke;
}

.chm-company-org .chm-org-node-body {
	background: rgba(255, 255, 255, .72);
	border: 1px solid #cbdce2;
	border-radius: 16px;
	box-shadow: 2px 5px 16px rgba(37, 38, 43, .08);
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	margin: 0 auto;
	max-width: 920px;
	min-width: 0;
	padding: 16px;
	position: relative;
	width: 84%;
	z-index: 2;
}

.chm-company-org .chm-org-tree > .chm-org-node > .chm-org-node-body {
	max-width: 920px;
}

.chm-company-org .chm-org-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	justify-content: center;
	margin: 12px auto 0;
	max-width: 850px;
	width: 100%;
}

.chm-company-org .chm-org-cards > .chm-directory-card,
.chm-company-org .chm-org-cards > .chm-directory-card:only-child {
	flex: 0 1 calc((100% - 28px) / 3);
	width: calc((100% - 28px) / 3);
}

.chm-company-org .chm-org-title {
	font-size: 18px;
	min-height: 40px;
}

.chm-company-org .chm-org-node--depth-1 > .chm-org-node-body > .chm-org-title {
	font-size: 21px;
}

.chm-org-scroll-controls { display: none !important; }

@media (max-width: 900px) {
	.chm-company-org .chm-org-node-body {
		width: 82%;
	}
	.chm-company-org .chm-org-cards {
		display: flex;
	}
	.chm-company-org .chm-org-cards > .chm-directory-card,
	.chm-company-org .chm-org-cards > .chm-directory-card:only-child {
		flex-basis: calc((100% - 14px) / 2);
		width: calc((100% - 14px) / 2);
	}
}

@media (max-width: 680px) {
	.chm-company-org .chm-org-node {
		padding-top: 26px;
	}
	.chm-company-org .chm-org-children {
		--chm-org-branch-x: 4px;
		padding-top: 26px;
	}
	.chm-company-org .chm-org-node--depth-2 > .chm-org-children { --chm-org-branch-x: 10px; }
	.chm-company-org .chm-org-node--depth-3 > .chm-org-children { --chm-org-branch-x: 16px; }
	.chm-company-org .chm-org-node--depth-4 > .chm-org-children { --chm-org-branch-x: 22px; }
	.chm-company-org .chm-org-node-body {
		padding: 13px;
		width: 86%;
	}
	.chm-company-org .chm-org-cards {
		display: flex;
	}
	.chm-company-org .chm-org-cards > .chm-directory-card,
	.chm-company-org .chm-org-cards > .chm-directory-card:only-child {
		flex-basis: 100%;
		width: 100%;
	}
}
