/* Clever Members — front-end styles */
.cm-front { font-size: 15px; }

/* -------------------- Login -------------------- */
.cm-login-box {
	max-width: 380px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 26px 26px 20px;
	box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.cm-login-box h3 { margin: 0 0 16px; text-align: center; }
.cm-login-box label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.cm-login-box input {
	display: block;
	width: 100%;
	margin-top: 4px;
	padding: 9px 11px;
	border: 1px solid #c3c4c7;
	border-radius: 6px;
	font-size: 15px;
	box-sizing: border-box;
}
.cm-login-box .cm-btn { width: 100%; text-align: center; margin-top: 4px; }
.cm-login-error {
	background: #fcf0f1;
	border: 1px solid #f0b8bb;
	color: #b32d2e;
	border-radius: 6px;
	padding: 8px 12px;
	font-size: 13.5px;
}
.cm-forgot { text-align: center; margin: 14px 0 0; font-size: 13px; }
.cm-notice { background: #f6f7f7; border: 1px solid #e2e4e7; border-radius: 8px; padding: 12px 16px; }

/* -------------------- Buttons -------------------- */
.cm-front .cm-btn, .cm-portal .cm-btn {
	display: inline-block;
	border: 1px solid #2271b1;
	background: #2271b1;
	color: #fff;
	border-radius: 6px;
	padding: 9px 18px;
	font-size: 14px;
	cursor: pointer;
	text-decoration: none;
}
.cm-front .cm-btn:hover { background: #135e96; }

/* -------------------- App bar + navigation -------------------- */
/* Colors, sizes and spacing come from Settings > Member Area Header
   (CSS variables set on .cm-portal). Desktop (wider than 1024px): the menu is
   a centered row. Tablets & phones: a three-line button opens a drop down. */
.cm-portal { position: relative; }
.cm-appwrap { position: sticky; top: 0; z-index: 500; margin-bottom: 18px; }
body.admin-bar .cm-appwrap { top: 32px; }
.cm-appbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: center;
	gap: 16px;
	background: var(--cmp-bar-bg, #1d2327);
	color: var(--cmp-bar-text, #fff);
	border-radius: 0;
	padding: 12px 16px;
	position: relative;
	z-index: 2;
}
.cm-appbar-brand { display: flex; align-items: center; gap: 12px; min-width: 0; justify-self: start; }
.cm-appbar-logo { height: var(--cmp-logo-h, 40px); width: auto; max-width: 220px; object-fit: contain; display: block; }
.cm-appbar-title { font-size: 17px; font-weight: 700; color: var(--cmp-bar-text, #fff); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-appbar-actions { display: flex; align-items: center; gap: 10px; justify-self: end; }

/* Theme button styles (borders, shadows, focus colors) must not leak in. */
.cm-portal .cm-appbar button,
.cm-portal .cm-cal-nav {
	border: 0 !important;
	box-shadow: none !important;
	text-shadow: none !important;
	min-height: 0;
	letter-spacing: normal;
}

/* ---- Desktop: centered row ---- */
.cm-portal-menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 6px var(--cmp-gap, 26px);
}
.cm-portal .cm-pnav {
	display: inline-block;
	background: none !important;
	padding: 6px 0;
	margin: 0;
	font-family: inherit;
	font-size: var(--cmp-size, 15px);
	font-weight: var(--cmp-weight, 600);
	text-transform: var(--cmp-transform, none);
	line-height: 1.3;
	color: var(--cmp-item, #fff);
	cursor: pointer;
	text-decoration: none;
	white-space: nowrap;
	border-radius: 0;
}
.cm-portal .cm-pnav:hover,
.cm-portal .cm-pnav:focus-visible { color: var(--cmp-hover, #fff); text-decoration: var(--cmp-underline, underline); text-underline-offset: 5px; }
.cm-portal .cm-pnav.is-active { color: var(--cmp-active, #72aee6); }
.cm-portal .cm-pnav:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Title shows the current section on tablets & phones only. */
.cm-appbar-title { display: none; }
.cm-menu-toggle { display: none !important; }

.cm-menu-toggle {
	background: none !important;
	cursor: pointer;
	padding: 6px 2px;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 34px;
	height: 34px;
}
.cm-menu-toggle span {
	display: block;
	height: 3px;
	width: 26px;
	background: var(--cmp-m-btn, #fff);
	border-radius: 2px;
	transition: transform .22s ease, opacity .18s ease;
}
.cm-menu-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.cm-menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.cm-menu-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Tablets & phones: three-line button + animated drop down ---- */
@media (max-width: 1024px) {
	.cm-appbar { display: flex; justify-content: space-between; }
	.cm-appbar-title { display: block; }
	.cm-menu-toggle { display: flex !important; }

	.cm-portal-menu {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: block;
		background: var(--cmp-m-dd-bg, #fff);
		border: 1px solid rgba(0,0,0,.08);
		border-radius: 0;
		box-shadow: 0 14px 34px rgba(0,0,0,.18);
		z-index: 499;
		overflow: hidden;
		/* animated open / close */
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
	}
	.cm-portal-menu.is-open {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition: opacity .2s ease, transform .2s ease, visibility 0s;
	}
	.cm-portal .cm-pnav {
		display: block;
		width: 100%;
		text-align: left;
		border-bottom: 1px solid rgba(0,0,0,.06);
		padding: 15px 18px;
		font-size: var(--cmp-m-size, 16px);
		font-weight: var(--cmp-m-weight, 400);
		text-transform: var(--cmp-m-transform, none);
		color: var(--cmp-m-dd-text, #1d2327);
		box-sizing: border-box;
		white-space: normal;
	}
	/* beats the theme-button reset above */
	.cm-portal .cm-appbar .cm-pnav { border-bottom: 1px solid rgba(0,0,0,.06) !important; }
	.cm-portal .cm-appbar .cm-pnav:last-child { border-bottom: 0 !important; }
	.cm-portal .cm-pnav:hover,
	.cm-portal .cm-pnav:active { background: var(--cmp-m-dd-hover, #f0f0f1) !important; color: var(--cmp-m-dd-text, #1d2327); text-decoration: none; }
	.cm-portal .cm-pnav.is-active { color: var(--cmp-m-dd-active, #2271b1); font-weight: 700; }
	.cm-portal .cm-pnav:focus-visible { outline-offset: -3px; }
}
@media (prefers-reduced-motion: reduce) {
	.cm-portal-menu, .cm-portal-menu.is-open, .cm-menu-toggle span { transition: none; }
}

.cm-ppanel { display: none; }
.cm-ppanel.is-active { display: block; }
.cm-ppanel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cm-ppanel-head h2 { margin: 0; }

/* -------------------- Home -------------------- */
.cm-profile-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 22px; }
.cm-profile-photo {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #e2e4e7;
}
.cm-profile-photo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2271b1;
	color: #fff;
	font-size: 26px;
	font-weight: 700;
}
.cm-home-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.cm-home-col h3 { margin: 0 0 10px; border-bottom: 1px solid #e2e4e7; padding-bottom: 6px; }

.cm-doc-ul { list-style: none; margin: 0 0 22px; padding: 0; }
.cm-doc-item { margin: 0 0 6px; }
.cm-doc-link {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 6px;
	padding: 9px 12px;
	text-decoration: none;
	color: #2271b1;
	font-weight: 600;
}
.cm-doc-link:hover { background: #eef4fa; }
.cm-doc-date { color: #8c8f94; font-weight: 400; white-space: nowrap; }
.cm-empty { color: #8c8f94; font-style: italic; }

/* -------------------- Event list calendar -------------------- */
#cm-calendar { border: 1px solid #e2e4e7; border-radius: 12px; overflow: hidden; background: #fff; }
.cm-cal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--cmp-bar-bg, #1d2327);
	color: var(--cmp-bar-text, #fff);
	padding: 10px 12px;
}
.cm-cal-title { font-weight: 700; font-size: 15px; }
.cm-cal-nav {
	background: rgba(255,255,255,.12);
	border: 0;
	color: var(--cmp-bar-text, #fff);
	font-size: 22px;
	cursor: pointer;
	line-height: 1;
	padding: 4px 14px;
	border-radius: 8px;
}
.cm-cal-nav:hover { background: rgba(255,255,255,.22); }

.cm-cal-list { padding: 10px; }
.cm-cal-empty { color: #8c8f94; font-style: italic; text-align: center; padding: 22px 10px; margin: 0; }

.cm-cal-item {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	text-align: left;
	background: #f6f7f7;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	cursor: pointer;
	box-sizing: border-box;
	transition: background .15s ease;
}
.cm-cal-item:last-child { margin-bottom: 0; }
.cm-cal-item:hover, .cm-cal-item:active { background: #eef4fa; }
.cm-cal-item-today { border-color: #2271b1; background: #eef4fa; }

.cm-cal-datebadge {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 56px;
	background: #2271b1;
	color: #fff;
	border-radius: 10px;
}
.cm-cal-badge-mon { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; opacity: .9; }
.cm-cal-badge-day { font-size: 22px; font-weight: 800; line-height: 1.05; }

.cm-cal-item-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cm-cal-item-name { font-weight: 700; color: #1d2327; font-size: 15px; }
.cm-cal-item-meta { font-size: 12.5px; color: #50575e; }
.cm-cal-item-venue { font-size: 12px; color: #8c8f94; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cm-cal-item-chev { flex: 0 0 auto; color: #8c8f94; font-size: 22px; line-height: 1; }

/* -------------------- Tables / past officers -------------------- */
.cm-front-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.cm-front-table th { text-align: left; background: #f6f7f7; border-bottom: 2px solid #e2e4e7; padding: 9px 12px; }
.cm-front-table td { border-bottom: 1px solid #eef0f1; padding: 8px 12px; }
.cm-past-year { border: 1px solid #e2e4e7; border-radius: 8px; margin-bottom: 10px; padding: 0 14px; }
.cm-past-year summary { cursor: pointer; font-weight: 700; padding: 12px 0; font-size: 16px; }

/* -------------------- Front-end modal -------------------- */
.cm-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,.55);
	z-index: 100000;
	align-items: flex-start;
	justify-content: center;
	padding: 40px 16px;
	overflow-y: auto;
}
.cm-modal-overlay.is-open { display: flex; }
.cm-modal {
	background: #fff;
	border-radius: 10px;
	width: 560px;
	max-width: 100%;
	box-shadow: 0 12px 40px rgba(0,0,0,.25);
}
.cm-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid #e2e4e7; }
.cm-modal-head h3 { margin: 0; }
.cm-modal-close { background: none; border: 0; font-size: 24px; cursor: pointer; color: #8c8f94; line-height: 1; }
.cm-modal-body { padding: 18px; max-height: 72vh; overflow-y: auto; }
.cm-fe-when { font-weight: 600; color: #50575e; }
.cm-fe-venue { font-weight: 600; margin: 12px 0 6px; }

/* -------------------- Responsive -------------------- */
.cm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 820px) {
	.cm-home-grid { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 700px) {
	.cm-front { font-size: 14px; }

	/* App bar */
	.cm-appbar { padding: 11px 14px; }
	.cm-appbar-title { font-size: 16px; }

	/* Login */
	.cm-login-box { max-width: 100%; padding: 20px 18px 16px; }
	.cm-login-box input { font-size: 16px; } /* prevents iOS zoom-on-focus */

	/* Home / profile */
	.cm-profile-head { flex-direction: column; text-align: center; gap: 14px; }
	.cm-profile-id { flex-direction: column; gap: 8px; }
	.cm-idcard { width: 100%; }
	.cm-idcard-mid { justify-content: center; }
	.cm-idcard-photo img, .cm-idcard-photo-empty { width: 96px; height: 96px; }
	.cm-profile-photo { width: 96px; height: 96px; }
	.cm-doc-link { flex-direction: column; gap: 2px; }
	.cm-doc-date { white-space: normal; }
	.cm-ppanel-head { flex-direction: column; align-items: flex-start; }

	/* Event list */
	.cm-cal-datebadge { width: 46px; height: 50px; }
	.cm-cal-badge-day { font-size: 19px; }
	.cm-cal-item { gap: 10px; padding: 9px 10px; }
	.cm-cal-item-name { font-size: 14px; }
	.cm-cal-head { padding: 8px 10px; }

	/* Tables stack into cards */
	.cm-front-table thead { display: none; }
	.cm-front-table, .cm-front-table tbody, .cm-front-table tr, .cm-front-table td { display: block; width: 100%; box-sizing: border-box; }
	.cm-front-table tr { border: 1px solid #e2e4e7; border-radius: 8px; margin-bottom: 10px; padding: 6px 0; }
	.cm-front-table td { border-bottom: 0; padding: 4px 12px; }
	.cm-front-table td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 11px;
		font-weight: 700;
		text-transform: uppercase;
		color: #8c8f94;
	}

	/* Modal */
	.cm-modal-overlay { padding: 12px 8px; }
	.cm-modal { width: 100%; }
	.cm-modal-body { padding: 14px; max-height: 78vh; }
	.cm-modal-body iframe { height: 200px !important; }

	/* Buttons easier to tap */
	.cm-front .cm-btn, .cm-portal .cm-btn { padding: 11px 18px; }
	.cm-past-year summary { padding: 14px 0; }
}

/* -------------------- App bar actions + scan button -------------------- */
.cm-scan-toggle {
	background: rgba(255,255,255,.12);
	border: 0;
	color: #7fd18b;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	width: 34px;
	height: 34px;
	border-radius: 8px;
}
.cm-scan-toggle:hover { background: rgba(255,255,255,.22); }

/* -------------------- Membership card -------------------- */
.cm-profile-id { display: flex; align-items: center; gap: 18px; }
.cm-idcard {
	background: #fff;
	border: 1px solid #dcdfe3;
	border-radius: 14px;
	box-shadow: 0 4px 16px rgba(0,0,0,.08);
	padding: 16px 18px;
	width: 320px;
	max-width: 100%;
	box-sizing: border-box;
}
.cm-idcard-name { font-weight: 800; font-size: 17px; text-align: center; margin-bottom: 12px; color: #1d2327; }
.cm-idcard-mid { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.cm-idcard-qr { flex: 0 0 auto; line-height: 0; }
.cm-idcard-qr-svg { border: 1px solid #eef0f1; border-radius: 6px; }
.cm-idcard-photo { flex: 0 0 auto; }
.cm-idcard-photo img, .cm-idcard-photo-empty {
	width: 110px;
	height: 110px;
	border-radius: 10px;
	object-fit: cover;
	border: 1px solid #e2e4e7;
}
.cm-idcard-photo-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2271b1;
	color: #fff;
	font-size: 30px;
	font-weight: 700;
	box-sizing: border-box;
}
.cm-idcard-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 12.5px; color: #50575e; padding: 5px 0; border-top: 1px solid #eef0f1; }
.cm-idcard-row strong { color: #1d2327; font-size: 13px; text-align: right; }
.cm-idcard-status-yes { color: #1e7a34 !important; }
.cm-idcard-status-no, .cm-idcard-status-suspended, .cm-idcard-status-deceased { color: #b32d2e !important; }

/* -------------------- Scanner panel -------------------- */
#cm-qr-reader { max-width: 420px; margin: 0 auto; border: 1px solid #e2e4e7; border-radius: 12px; overflow: hidden; }
.cm-scan-hint { text-align: center; color: #8c8f94; font-size: 13px; margin-top: 10px; }
.cm-scan-error { padding: 20px; text-align: center; color: #b32d2e; }
.cm-scan-result { max-width: 420px; margin: 0 auto; text-align: center; }
.cm-scan-result-card {
	border-radius: 14px;
	padding: 26px 20px;
	margin-bottom: 16px;
	border: 2px solid transparent;
}
.cm-scan-result-card.cm-scan-ok { background: #e5f6e8; border-color: #9fd8ab; }
.cm-scan-result-card.cm-scan-bad { background: #fbeaea; border-color: #efb2b4; }
.cm-scan-result-name { font-size: 22px; font-weight: 800; margin-bottom: 14px; color: #1d2327; }
.cm-scan-result-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 4px; border-top: 1px solid rgba(0,0,0,.08); font-size: 14px; color: #3c434a; }
.cm-scan-result-row strong { color: #1d2327; }
.cm-scan-result .cm-btn { width: 100%; }

/* -------------------- Renewal banner + payment -------------------- */
.cm-renew-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	flex-wrap: wrap;
	background: #fff8e1;
	border: 1px solid #f0d47a;
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 14px;
	color: #6b5200;
	font-weight: 600;
}
.cm-renew-pay {
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 12px;
	box-shadow: 0 4px 16px rgba(0,0,0,.06);
	padding: 18px;
	margin-bottom: 16px;
	max-width: 440px;
}
.cm-renew-pay h3 { margin: 0 0 12px; }
.cm-renew-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 2px; border-bottom: 1px solid #eef0f1; font-size: 14.5px; }
.cm-renew-total { font-size: 16px; border-bottom: 0; }
.cm-renew-total strong { color: #1e7a34; }
.cm-renew-pay .cm-btn { width: 100%; margin-top: 12px; }
#cm-paypal-buttons { margin-top: 14px; }
.cm-renew-msg { margin: 10px 0 0; font-size: 13.5px; color: #50575e; }
.cm-renew-msg.cm-renew-ok { color: #1e7a34; font-weight: 700; }

/* Card download button */
.cm-idcard-download { display: block; text-align: center; margin-top: 12px; width: 100%; box-sizing: border-box; }

@media (max-width: 700px) {
	.cm-renew-banner { flex-direction: column; align-items: stretch; text-align: center; }
	.cm-renew-pay { max-width: 100%; }
}

/* ==========================================================================
 * Edit Profile
 * ========================================================================== */
.cm-profile-name-wrap { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cm-profile-name-wrap h2 { margin: 0; }
#cm-edit-profile-btn { padding: 7px 16px; }
.cm-profile-form { max-width: 460px; }
.cm-pf-photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.cm-pf-preview img,
.cm-pf-initials {
	width: 110px;
	height: 110px;
	border-radius: 50%;
	object-fit: cover;
	border: 3px solid #e2e4e7;
}
.cm-pf-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #2271b1;
	color: #fff;
	font-size: 32px;
	font-weight: 700;
}
.cm-pf-photo-field { flex: 1; min-width: 0; }
.cm-pf-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.cm-pf-label input,
.cm-pf-label textarea {
	display: block;
	width: 100%;
	margin-top: 5px;
	padding: 9px 11px;
	border: 1px solid #c8ccd0;
	border-radius: 6px;
	font-size: 14px;
	font-family: inherit;
	box-sizing: border-box;
	background: #fff;
}
.cm-pf-label input[type="file"] { padding: 7px; background: #f6f7f7; }
.cm-pf-hint { font-size: 12px; color: #666; margin: 4px 0 14px; }
.cm-pf-subhead { margin: 22px 0 4px; }
.cm-pf-msg { margin-left: 10px; font-size: 13px; color: #b32d2e; }
.cm-pf-msg.cm-pf-ok { color: #1a7f37; }
@media (max-width: 640px) {
	.cm-pf-photo-row { flex-direction: column; align-items: flex-start; }
	.cm-profile-name-wrap { align-items: center; }
	.cm-pf-label input, .cm-pf-label textarea { font-size: 16px; } /* prevents iOS zoom-on-focus */
}

/* Waiting-member status notice */
.cm-waiting-notice { max-width: 520px; margin: 24px auto; text-align: center; font-size: 15px; }
.cm-waiting-notice p { margin: 0 0 12px; }
.cm-waiting-notice p:last-child { margin-bottom: 0; }

/* Account-status popup (Waiting / Suspended / Deceased) */
.cm-status-overlay {
	position: fixed;
	top: 0; right: 0; bottom: 0; left: 0;
	background: rgba(0, 0, 0, .55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	padding: 20px;
	box-sizing: border-box;
}
.cm-status-modal {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
	padding: 30px 28px;
	max-width: 420px;
	width: 100%;
	text-align: center;
	font-size: 15px;
	line-height: 1.5;
}
.cm-status-modal p { margin: 0 0 20px; }
.cm-status-modal .cm-btn { min-width: 130px; text-align: center; }

/* Event payment section in the event popup */
.cm-fe-pay { margin-top: 18px; border-top: 1px solid #e2e4e7; padding-top: 12px; }
.cm-fe-pay-title { margin: 0 0 10px; }
.cm-fe-pay .cm-btn { margin-top: 10px; }
.cm-fe-check { margin-top: 14px; background: #f6f7f7; border: 1px solid #e2e4e7; border-radius: 8px; padding: 12px 14px; }
.cm-fe-check h5 { margin: 0 0 8px; font-size: 14px; }
.cm-fe-check p { margin: 0 0 6px; }
.cm-fe-check-addr { font-weight: 600; white-space: pre-line; }

/* wp-admin Edit Profile page (Regular Members) */
.cm-admin-profile {
	max-width: 560px;
	background: #fff;
	border: 1px solid #e2e4e7;
	border-radius: 10px;
	padding: 20px 24px;
	margin-top: 12px;
}

/* -------------------- Profiles, Member Directory (1.9.8) -------------------- */
.cm-visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cm-home-left > h3, .cm-home-right > h3, .cm-my-bio h3 { margin-top: 0; }
.cm-home-left .cm-profile-head { margin-bottom: 18px; }
.cm-home-left .cm-idcard { margin-bottom: 22px; }
.cm-my-bio { margin-bottom: 24px; }
.cm-bio-text { line-height: 1.6; white-space: normal; overflow-wrap: anywhere; }

/* Own photo: click to change */
.cm-photo-change { position: relative; display: inline-block; cursor: pointer; border-radius: 50%; line-height: 0; flex-shrink: 0; }
.cm-photo-change .cm-profile-photo { display: flex; }
.cm-photo-change-label {
	position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
	background: #1d2327; color: #fff; font-size: 11px; font-weight: 600; line-height: 1;
	padding: 5px 8px; border-radius: 20px; white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.cm-photo-change:hover .cm-profile-photo, .cm-photo-change:focus-within .cm-profile-photo { filter: brightness(.9); }
.cm-photo-change:focus-within { outline: 2px solid #2271b1; outline-offset: 3px; }
.cm-photo-change.is-busy { opacity: .6; pointer-events: none; }
.cm-photo-msg { font-size: 13px; color: #b32d2e; min-height: 1em; }
.cm-photo-msg.cm-pf-ok { color: #1a7f37; }

/* Member Directory */
.cm-dir-search { display: block; max-width: 520px; margin: 0 0 8px; }
.cm-dir-search input {
	width: 100%; box-sizing: border-box; padding: 11px 14px; font-size: 16px;
	border: 1.5px solid #dcdcde; border-radius: 8px; background: #fff;
}
.cm-dir-search input:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 3px rgba(34,113,177,.15); }
.cm-dir-status { color: #646970; font-size: 14px; margin: 0 0 12px; }
.cm-dir-results { list-style: none; margin: 0; padding: 0; max-width: 720px; }
.cm-dir-item {
	display: flex; align-items: center; gap: 14px; padding: 12px 14px; margin: 0 0 8px;
	border: 1px solid #e2e4e7; border-radius: 10px; background: #fff;
}
.cm-dir-name { flex: 1; font-weight: 600; font-size: 16px; min-width: 0; overflow-wrap: anywhere; }
.cm-dir-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.cm-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.cm-avatar-empty, .cm-member-left .cm-avatar-empty {
	display: inline-flex; align-items: center; justify-content: center;
	background: #2271b1; color: #fff; font-weight: 700; font-size: 17px;
}

/* Another member's profile */
.cm-back-link {
	background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; margin: 0 0 16px;
	color: #2271b1; font-size: 14px; cursor: pointer; font-family: inherit;
}
.cm-back-link:hover { text-decoration: underline; }
.cm-member-left { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cm-member-left .cm-profile-photo { width: 120px; height: 120px; font-size: 36px; }
.cm-member-name { margin: 0; }
.cm-member-actions:empty { display: none; }

@media (max-width: 820px) {
	.cm-member-left { align-items: center; text-align: center; }
}
@media (max-width: 560px) {
	.cm-dir-item { flex-wrap: wrap; }
	.cm-dir-actions { width: 100%; justify-content: stretch; }
	.cm-dir-actions .cm-btn { flex: 1; }
}

/* -------------------- Notifications + messages (1.9.9) -------------------- */
.cm-portal .cm-appbar .cm-bell {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; padding: 0; margin: 0; border-radius: 50%;
	background: transparent !important; color: var(--cmp-item, #fff); cursor: pointer;
}
.cm-portal .cm-appbar .cm-bell:hover { background: rgba(255,255,255,.12) !important; color: var(--cmp-hover, #fff); }
.cm-portal .cm-appbar .cm-bell:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
@media (max-width: 1024px) { .cm-portal .cm-appbar .cm-bell { color: var(--cmp-m-btn, #fff); } }
.cm-bell-count {
	position: absolute; top: -2px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px;
	box-sizing: border-box; border-radius: 10px; background: #d63638; color: #fff;
	font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
	box-shadow: 0 0 0 2px var(--cmp-bar-bg, #1d2327); pointer-events: none;
}
.cm-bell-count[hidden] { display: none; }

.cm-notif-list { list-style: none; margin: 0; padding: 0; }
.cm-notif { margin: 0 0 8px; }
.cm-notif-open {
	display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
	padding: 12px 14px; border: 1px solid #e2e4e7 !important; border-radius: 10px;
	background: #fff !important; color: inherit; font: inherit; cursor: pointer; box-shadow: none !important;
}
.cm-notif-open:hover { background: #f6f9fc !important; border-color: #c5d9ed !important; }
.cm-notif-open:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }
.cm-notif-icon { display: inline-flex; align-items: center; justify-content: center; background: #eef4fa; font-size: 22px; }
.cm-notif-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cm-notif-title { font-weight: 600; overflow-wrap: anywhere; }
.cm-notif-preview { color: #50575e; font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cm-notif-time { color: #8c8f94; font-size: 12.5px; }
.cm-notif-dot { width: 10px; height: 10px; border-radius: 50%; background: #d63638; flex-shrink: 0; }

.cm-msg-modal { width: 540px; }
.cm-msg-from { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.cm-msg-from > span { display: flex; flex-direction: column; }
.cm-msg-body { line-height: 1.6; overflow-wrap: anywhere; padding: 12px 14px; background: #f6f7f7; border-radius: 8px; margin: 0 0 14px; }
.cm-msg-write textarea {
	width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 16px;
	border: 1.5px solid #dcdcde; border-radius: 8px; resize: vertical; margin: 0 0 12px;
}
.cm-msg-write textarea:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 3px rgba(34,113,177,.15); }
.cm-msg-read + .cm-msg-write { margin-top: 4px; }
.cm-msg-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cm-msg-note { font-size: 14px; color: #b32d2e; }
.cm-msg-note.cm-pf-ok { color: #1a7f37; }
.cm-front .cm-btn-danger { background: #fff; color: #b32d2e; border: 1px solid #b32d2e; }
.cm-front .cm-btn-danger:hover { background: #b32d2e; color: #fff; }
.cm-front .cm-btn:disabled { opacity: .55; cursor: not-allowed; }


/* -------------------- Feed (1.10.0) -------------------- */
.cm-link-btn {
	background: none !important; border: 0 !important; box-shadow: none !important; padding: 0; margin: 0;
	color: #2271b1; font: inherit; font-size: 14px; cursor: pointer; text-decoration: none;
}
.cm-link-btn:hover { text-decoration: underline; }
.cm-link-btn:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; border-radius: 2px; }
.cm-front .cm-btn-light { background: #fff; color: #2271b1; border: 1px solid #c3c4c7; }
.cm-front .cm-btn-light:hover { background: #f6f7f7; color: #135e96; }
.cm-avatar-sm { width: 34px; height: 34px; font-size: 13px; }

.cm-feed-compose { margin: 0 0 22px; }
.cm-feed-form textarea, .cm-respond-form textarea {
	width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 16px;
	border: 1.5px solid #dcdcde; border-radius: 8px; resize: vertical; margin: 0 0 10px; background: #fff;
}
.cm-feed-form textarea:focus, .cm-respond-form textarea:focus { border-color: #2271b1; outline: none; box-shadow: 0 0 0 3px rgba(34,113,177,.15); }
.cm-feed-form-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cm-feed-count { font-size: 13px; color: #8c8f94; }
.cm-feed-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: #eef4fa; border-radius: 8px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.cm-feed-focus[hidden] { display: none; }

.cm-feed { list-style: none; margin: 0; padding: 0; }
.cm-post {
	border: 1px solid #e2e4e7; border-radius: 12px; background: #fff; padding: 14px 16px; margin: 0 0 14px;
	transition: box-shadow .3s ease, border-color .3s ease; scroll-margin-top: 110px;
}
.cm-post.is-highlight { border-color: #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,.2); }
.cm-post-head { display: flex; align-items: center; gap: 12px; }
.cm-post-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.cm-post-meta-main { flex: 1; flex-direction: column; gap: 2px; }
.cm-post-author { font-weight: 700; color: #1d2327; font-size: 15px; }
.cm-link-btn.cm-post-author { color: #1d2327; }
.cm-link-btn.cm-post-author:hover { color: #2271b1; }
.cm-post-time { color: #8c8f94; font-size: 12.5px; }
.cm-post-head .cm-feed-del, .cm-resp .cm-feed-del { color: #b32d2e; font-size: 13px; margin-left: auto; }
.cm-post-body { margin: 10px 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.cm-resp-list { list-style: none; margin: 12px 0 0; padding: 0; }
.cm-resp-list:empty { display: none; }
.cm-resp { display: flex; gap: 10px; padding: 10px 0 0; margin: 10px 0 0; border-top: 1px solid #f0f0f1; }
.cm-resp-main { flex: 1; min-width: 0; background: #f6f7f7; border-radius: 10px; padding: 8px 12px; }
.cm-resp-main .cm-post-author { font-size: 14px; }
.cm-resp-main .cm-post-meta { width: 100%; }
.cm-resp-body { margin-top: 3px; line-height: 1.5; overflow-wrap: anywhere; font-size: 14.5px; }
.cm-post-actions { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid #f0f0f1; }
.cm-resp-count { color: #8c8f94; font-size: 13px; }
.cm-respond-form { margin: 12px 0 0; }
.cm-feed-more { display: block; margin: 4px auto 0; }

/* The hidden attribute always wins over component display styles. */
.cm-front [hidden], .cm-portal [hidden] { display: none !important; }


/* -------------------- 1.10.1: body padding, bell drop down, theme fixes -------------------- */
/* Left/right padding for everything below the header (Settings > Member Area Header > Page Body). */
.cm-portal > .cm-ppanel { padding-left: var(--cmp-pad, 24px); padding-right: var(--cmp-pad, 24px); box-sizing: border-box; }
.cm-portal > .cm-renew-banner,
.cm-portal > .cm-renew-pay { margin-left: var(--cmp-pad, 24px); margin-right: var(--cmp-pad, 24px); }
@media (max-width: 1024px) {
	.cm-portal > .cm-ppanel { padding-left: var(--cmp-pad-m, 16px); padding-right: var(--cmp-pad-m, 16px); }
	.cm-portal > .cm-renew-banner,
	.cm-portal > .cm-renew-pay { margin-left: var(--cmp-pad-m, 16px); margin-right: var(--cmp-pad-m, 16px); }
}

/* Calendar arrows: themes restyle <button>; keep them readable. */
.cm-portal .cm-cal-nav {
	background: rgba(255,255,255,.14) !important;
	color: var(--cmp-bar-text, #fff) !important;
	font-size: 22px !important;
	line-height: 1 !important;
	padding: 4px 14px !important;
	border-radius: 8px !important;
}
.cm-portal .cm-cal-nav:hover { background: rgba(255,255,255,.26) !important; }

/* Bell drop down */
.cm-portal .cm-appbar .cm-bell.is-open { background: rgba(255,255,255,.18) !important; }
.cm-notif-dd {
	position: absolute;
	top: 100%;
	right: 12px;
	width: 400px;
	max-width: calc(100vw - 24px);
	background: #fff;
	color: #1d2327;
	border: 1px solid #dcdcde;
	border-radius: 0 0 10px 10px;
	box-shadow: 0 16px 40px rgba(0,0,0,.2);
	z-index: 510;
	text-align: left;
	animation: cm-dd-in .18s ease;
}
@keyframes cm-dd-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cm-notif-dd { animation: none; } }
.cm-notif-dd-head {
	display: flex; justify-content: space-between; align-items: center; gap: 10px;
	padding: 12px 16px; border-bottom: 1px solid #eef0f1; font-size: 15px;
}
.cm-notif-dd .cm-notif-list { max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain; }
.cm-notif-dd .cm-notif { margin: 0; border-bottom: 1px solid #f0f0f1; }
.cm-notif-dd .cm-notif:last-child { border-bottom: 0; }
.cm-portal .cm-notif-dd .cm-notif-open {
	border: 0 !important; border-radius: 0; padding: 12px 16px; gap: 12px;
	color: #1d2327 !important; font-size: 14.5px; text-transform: none; letter-spacing: normal;
}
.cm-portal .cm-notif-dd .cm-notif-open:hover { background: #f3f7fb !important; }
.cm-notif-dd .cm-avatar { width: 40px; height: 40px; font-size: 15px; }
.cm-notif-dd .cm-notif-icon { font-size: 19px; }
.cm-notif-dd .cm-notif-title { font-size: 14px; }
.cm-notif-dd .cm-notif-preview { font-size: 13px; }
.cm-notif-dd .cm-empty { padding: 22px 16px; margin: 0; text-align: center; }
@media (max-width: 1024px) {
	/* Full width under the header on tablets & phones */
	.cm-notif-dd { left: 0; right: 0; width: auto; max-width: none; border-radius: 0; }
	.cm-notif-dd .cm-notif-list { max-height: 70vh; }
}


/* -------------------- Minutes / Bylaws rows with a View button (1.10.7) -------------------- */
.cm-doc-row {
	display: flex; align-items: center; justify-content: space-between; gap: 14px;
	background: #f6f7f7; border: 1px solid #e2e4e7; border-radius: 8px; padding: 10px 12px 10px 14px; margin: 0 0 8px;
}
.cm-doc-info { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; min-width: 0; }
.cm-doc-name { font-weight: 600; color: #1d2327; overflow-wrap: anywhere; }
.cm-front .cm-doc-view, .cm-portal .cm-doc-view { flex-shrink: 0; padding: 7px 18px; font-size: 14px; font-weight: 600; text-decoration: none; }
.cm-doc-view:focus-visible { outline: 2px solid #2271b1; outline-offset: 2px; }
@media (max-width: 560px) {
	.cm-doc-info { flex-direction: column; gap: 2px; }
}
/* Notification rows for Minutes / Bylaws show a View label too. */
.cm-notif-view {
	flex-shrink: 0; display: inline-block; padding: 5px 12px; border-radius: 6px;
	background: #2271b1; color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.2;
}

/* Square card form (events + membership dues) */
.cm-card-box { margin: 12px 0 10px; min-height: 90px; }
.cm-card-box * { box-sizing: border-box; }
.cm-card-pay { display: block; width: 100%; }
.cm-card-note { font-size: 12.5px; color: #646970; margin: 8px 0 0; }

/* -------------------- Board section: Financial / Misc (1.10.11) -------------------- */
.cm-board-group { margin: 0 0 28px; }
.cm-board-group h3 { margin: 0 0 10px; }
.cm-board-search { margin: 0 0 12px; }
.cm-board-list .cm-board-nomatch[hidden] { display: none !important; }

/* -------------------- Profiles: soft off-white left column (1.10.17) -------------------- */
.cm-home-left,
.cm-member-left {
	background: #f6f7f8;
	border: 1px solid #eceef0;
	border-radius: 12px;
	padding: 20px 22px;
	box-sizing: border-box;
	align-self: start;
}
@media (max-width: 700px) {
	.cm-home-left, .cm-member-left { padding: 16px; }
}

/* -------------------- Officers as cards (1.10.18) -------------------- */
.cm-officer-cards {
	list-style: none; margin: 0 0 24px; padding: 0;
	display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px;
}
.cm-officer-card {
	display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
	margin: 0; padding: 22px 18px 18px; background: #fff;
	border: 1px solid #e2e4e7; border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.cm-officer-card-photo .cm-avatar { width: 96px; height: 96px; font-size: 32px; border-radius: 50%; object-fit: cover; }
.cm-officer-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; width: 100%; }
.cm-officer-card .cm-officer-card-name { margin: 0; padding: 0; border: 0; font-size: 19px; line-height: 1.3; color: #1d2327; overflow-wrap: anywhere; }
.cm-officer-card-office { margin: 0; font-weight: 600; color: #2271b1; overflow-wrap: anywhere; }
.cm-officer-card-date { margin: 0; font-size: 13.5px; color: #646970; }
.cm-officer-card-actions { margin-top: auto; width: 100%; }
.cm-officer-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cm-front .cm-officer-actions .cm-btn, .cm-portal .cm-officer-actions .cm-btn { flex: 1 1 120px; padding: 8px 12px; font-size: 14px; }
.cm-past-year .cm-officer-cards { margin-top: 14px; }

/* -------------------- Message attachments (1.10.18) -------------------- */
.cm-msg-attach { margin: 10px 0 12px; }
.cm-msg-attach-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.cm-msg-attach input[type="file"]:focus + .cm-msg-attach-limits { outline: none; }
.cm-msg-attach-limits { margin-left: 10px; font-size: 13px; color: #646970; }
.cm-msg-attach-note { margin: 8px 0 0; font-size: 13px; color: #8a4b0f; background: #fcf6ec; border-left: 3px solid #dba617; padding: 7px 10px; border-radius: 4px; }
.cm-msg-file-ul { list-style: none; margin: 8px 0 0; padding: 0; }
.cm-msg-file-ul li {
	display: flex; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 0 6px;
	background: #f6f7f7; border: 1px solid #e2e4e7; border-radius: 6px; font-size: 14px;
}
.cm-msg-file-name, .cm-msg-file-link { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cm-msg-file-link { color: #2271b1; font-weight: 600; }
.cm-msg-file-size { flex-shrink: 0; font-size: 12.5px; color: #646970; }
.cm-msg-files-in { margin: 0 0 14px; }
.cm-msg-files-in h4 { margin: 0 0 4px; font-size: 14px; }
.cm-msg-files-in[hidden] { display: none !important; }

/* -------------------- Board: two columns (Financial | Misc) (1.10.19) -------------------- */
.cm-board-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; align-items: start; }
.cm-board-grid .cm-board-group { min-width: 0; }
.cm-board-grid .cm-board-search { max-width: none; }
@media (max-width: 820px) {
	.cm-board-grid { grid-template-columns: 1fr; }
}

/* -------------------- Feed attachments (1.10.23) -------------------- */
.cm-feed-attach { margin: 10px 0; }
.cm-post-images { display: grid; gap: 6px; margin: 12px 0 0; }
.cm-post-images-1 { grid-template-columns: 1fr; }
.cm-post-images-2 { grid-template-columns: 1fr 1fr; }
.cm-post-images-3 { grid-template-columns: 1fr 1fr 1fr; }
.cm-post-image { display: block; border-radius: 8px; overflow: hidden; background: #f0f0f1; line-height: 0; }
.cm-post-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cm-post-images-1 .cm-post-image img { height: auto; max-height: 520px; object-fit: contain; }
.cm-post-images-2 .cm-post-image, .cm-post-images-3 .cm-post-image { aspect-ratio: 1 / 1; }
.cm-post-files { margin-top: 12px; }
@media (max-width: 560px) {
	.cm-post-images-3 { grid-template-columns: 1fr 1fr; }
}

/* -------------------- Past Officers: Edit / Delete (1.10.27) -------------------- */
.cm-officer-card-manage { display: flex; gap: 18px; justify-content: center; width: 100%; padding-top: 10px; border-top: 1px solid #eef0f1; }
.cm-officer-card-manage .cm-po-delete { color: #b32d2e; }
.cm-po-modal { width: 440px; }
.cm-po-who { margin: 0 0 12px; font-weight: 600; font-size: 17px; }
.cm-po-field { display: block; margin: 0 0 4px; font-weight: 600; font-size: 14px; }
#cm-po-office, #cm-po-date { width: 100%; margin: 0 0 14px; padding: 8px 10px; border: 1px solid #c3c4c7; border-radius: 6px; font-size: 15px; background: #fff; color: #1d2327; }

/* Support + Logout as icons (1.10.52) */
.cm-portal .cm-pnav.cm-pnav-icon { display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1; }
.cm-portal .cm-pnav-icon svg { display: block; flex-shrink: 0; }
.cm-portal .cm-pnav-icon .cm-pnav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cm-portal .cm-pnav-support { margin-left: 4px; }
@media (max-width: 1024px) {
	.cm-portal .cm-pnav.cm-pnav-icon { display: flex; justify-content: flex-start; }
	.cm-portal .cm-pnav-icon .cm-pnav-label { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
	.cm-portal .cm-pnav-support { margin-left: 0; }
}
.cm-portal .cm-support-intro { margin: 0 0 18px; color: #50575e; }

/* Get the App popup (1.10.56) */
.cm-app-modal { width: 480px; }
.cm-app-hero { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; }
.cm-app-hero p { margin: 0; color: #50575e; line-height: 1.5; }
.cm-app-hero-icon { width: 60px; height: 60px; border-radius: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.15); flex-shrink: 0; }
.cm-app-step { border: 1px solid #e2e4e7; border-radius: 10px; padding: 14px 16px; margin: 0 0 12px; }
.cm-app-step:empty { display: none; }
.cm-app-step h4 { margin: 0 0 8px; font-size: 16px; display: flex; align-items: center; gap: 6px; }
.cm-app-step p { margin: 0 0 10px; line-height: 1.5; }
.cm-app-step p:last-child { margin-bottom: 0; }
.cm-app-steps { margin: 0 0 8px; padding-left: 22px; line-height: 1.6; }
.cm-app-steps li { margin: 0 0 8px; }
.cm-app-ico { display: inline-block; vertical-align: -5px; color: #2271b1; margin: 0 2px; }
.cm-app-note { font-size: 13px; color: #50575e; background: #f6f7f7; border-radius: 8px; padding: 8px 10px; }
.cm-app-ok { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: #00a32a; color: #fff; font-size: 12px; font-weight: 700; margin-right: 4px; }
.cm-app-on { font-weight: 600; color: #00732a; }
.cm-app-btn { width: 100%; justify-content: center; padding: 11px 16px !important; font-size: 15px !important; }
.cm-app-btn-plain { background: #fff !important; color: #b32d2e !important; border: 1px solid #e0b4b4 !important; }
.cm-app-msg { font-size: 13px; color: #50575e; margin: 8px 0 0 !important; min-height: 1em; }
/* Push notification opened from the bell */
.cm-push-notice { width: 440px; }
.cm-push-notice-body { white-space: pre-wrap; line-height: 1.55; margin: 0 0 10px; }
.cm-push-notice-date { font-size: 12px; color: #8c8f94; margin: 0 0 12px; }
.cm-app-step .cm-app-btn + .cm-app-btn { margin-top: 8px; }

/* Own profile (Home) on phones: Feed / Profile tabs (1.10.59). Wider screens keep both columns. */
.cm-portal .cm-home-tabs { display: none; }
@media (max-width: 820px) {
	.cm-portal .cm-home-tabs { display: flex; gap: 4px; margin: 0 0 16px; border-bottom: 1px solid #dcdcde; }
	.cm-portal .cm-home-tab { flex: 1; appearance: none; background: none !important; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: 12px 10px !important; font: inherit; font-size: 16px; font-weight: 600; color: #50575e; cursor: pointer; border-radius: 0; box-shadow: none; }
	.cm-portal .cm-home-tab.is-active { color: #2271b1; border-bottom-color: #2271b1; }
	.cm-portal .cm-home-tab:focus-visible { outline: 2px solid #2271b1; outline-offset: -2px; }
	.cm-portal .cm-home-grid[data-home-tab="feed"] > .cm-home-left,
	.cm-portal .cm-home-grid[data-home-tab="profile"] > .cm-home-right { display: none; }
}

/* Stripe card field (Settings > Payment Processor > Stripe) */
.cm-card-field.cm-card-stripe { padding: 12px 14px; border: 1px solid #c3c4c7; border-radius: 6px; background: #fff; min-height: 0; }

/* 1.14.10 Event Image (square) */
.cm-fe-event-img { display: block; width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 12px; margin: 0 auto 14px; }
