.clm-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #ccd0d4;
	background: #fff;
	margin: -10px -20px 0 -22px;
}

.clm-topbar-title {
	font-weight: 600;
	font-size:16px;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 40px;
}

.clm-topbar-logo {
	display: block;
	max-height: 40px;
	width: auto;
	max-width: 220px;
}

.clm-topbar-brand {
	display: flex;
	align-items: baseline;
	gap: 8px;
	flex-wrap: wrap;
}

.clm-topbar-name {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
}

.clm-topbar-version {
	font-size: 13px;
	font-weight: 500;
	color: #50575e;
	line-height: 1.2;
}

.clm-topbar-links a:not(:last-child) {
	margin-right: 12px;
}

.clm-topbar-actions {
	display: flex;
	align-items: center;
	gap: 4px;
}

.clm-topbar-action-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 4px;
	color: #50575e;
	text-decoration: none;
}

.clm-topbar-action-btn:hover {
	background: #f0f0f1;
	color: #1d2327;
}

.clm-topbar-action-btn .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.clm-tabs {
	margin-top: 16px;
}

.clm-filters {
	margin: 16px 0;
}

.clm-filters .clm-filter + .clm-filter {
	margin-left: 16px;
}

.clm-status {
	font-weight: 600;
}

.clm-status--healthy {
	color: #1a7f37;
}

.clm-status--needs_attention {
	color: #b45309;
}

.clm-status--archived {
	color: #6b7280;
}

.clm-cards {
	display: flex;
	gap: 16px;
	margin-top: 16px;
}

.clm-card {
	padding: 16px;
	border: 1px solid #ccd0d4;
	background: #fff;
	min-width: 180px;
}

.clm-card-count {
	display: block;
	font-size: 24px;
}

.clm-section-title {
	margin-top: 24px;
}

.clm-block-label {
	display: block;
	margin-bottom: 4px;
}

.clm-inline-label {
	margin-left: 12px;
}

.clm-form-actions {
	margin-top: 24px;
}

.clm-onboarding {
	margin-top: 32px;
	padding: 16px;
	border: 1px solid #ccd0d4;
	background: #fff;
}

.clm-intake-status {
	margin-left: 12px;
}

.clm-intake-progress {
	margin-top: 12px;
	display: none;
}

.clm-intake-progress .progress {
	background: #f1f1f1;
	border: 1px solid #ccd0d4;
	height: 12px;
	width: 320px;
	position: relative;
}

.clm-intake-progress .bar {
	background: #2271b1;
	height: 12px;
	width: 0;
}

.clm-intake-percent {
	margin-top: 8px;
}

.clm-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin: 16px 0;
}

.clm-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: none;
}

.clm-modal.is-open {
	display: block;
}

.clm-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.clm-modal__content {
	position: relative;
	background: #fff;
	width: 560px;
	max-width: calc(100% - 32px);
	margin: 8vh auto;
	border-radius: 4px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	padding: 20px;
}

.clm-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.clm-modal__body label {
	display: block;
	margin-top: 12px;
	margin-bottom: 4px;
	font-weight: 600;
}

.clm-modal__body input,
.clm-modal__body textarea {
	width: 100%;
}

.clm-modal__footer {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	margin-top: 16px;
}

.clm-inline-field {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-left: 8px;
}

.clm-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 16px;
	margin: 16px 0 24px;
}

.clm-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-left: 4px solid #2271b1;
	padding: 16px;
	border-radius: 4px;
	display: block;
	color: inherit;
	text-decoration: none;
}

.clm-card:hover,
.clm-card:focus {
	color: inherit;
	text-decoration: none;
}

.clm-card--needs_attention {
	border-left-color: #d63638;
	color: #7a1f1f;
}

.clm-card--healthy {
	border-left-color: #2e7d32;
	color: #1b5e20;
}

.clm-card--archived {
	border-left-color: #6c7781;
	color: #50575e;
}

.clm-dashboard-widget {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.clm-dashboard-widget__heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.clm-dashboard-widget__table {
	margin-top: 0;
	width: 100%;
	border-collapse: collapse;
	border-spacing: 0;
	background: transparent;
}

.clm-dashboard-widget__table thead th {
	padding: 0 12px 8px;
	border: 0;
	background: transparent;
	color: #50575e;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-align: left;
}

.clm-dashboard-widget__table th,
.clm-dashboard-widget__table td {
	padding: 10px 12px;
	vertical-align: top;
	border: 0;
	background: transparent;
}

.clm-dashboard-widget__table tbody tr:nth-child(odd) {
	background: #f6f7f7;
}

.clm-dashboard-widget__table tbody tr:nth-child(even) {
	background: #fff;
}

.clm-dashboard-widget__empty,
.clm-pro-setting-note {
	margin: 0;
	color: #50575e;
}

/* ---- Settings page layout ---- */

.clm-settings-wrap .wp-heading-inline {
	margin-bottom: 0;
}

.clm-settings-nav {
	margin-bottom: 0;
}

.clm-settings-nav .clm-pro-badge {
	display: inline-block;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	background: #2271b1;
	color: #fff;
	padding: 1px 5px;
	border-radius: 3px;
	margin-left: 5px;
	vertical-align: middle;
	line-height: 1.6;
}

.clm-settings-layout {
	display: flex;
	gap: 24px;
	align-items: flex-start;
	margin-top: 24px;
}

.clm-settings-main {
	flex: 1 1 0;
	min-width: 0;
}

.clm-settings-sidebar {
	flex: 0 0 240px;
	width: 240px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ---- Settings section card ---- */

.clm-settings-section {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

.clm-settings-section__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 4px;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}

.clm-settings-section__desc {
	font-size: 13px;
	color: #50575e;
	margin: 0 0 16px;
}

/* ---- Pro notice inside section ---- */

.clm-pro-notice {
	font-size: 12px;
	color: #2271b1;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 3px;
	padding: 6px 10px;
	margin-bottom: 12px;
	display: inline-block;
}

/* ---- Top upgrade banner ---- */

.clm-upgrade-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: #f0f6fc;
	border: 1px solid #c5d9ed;
	border-radius: 4px;
	padding: 12px 16px;
	margin: 16px 0 0;
	font-size: 13px;
}

.clm-upgrade-banner__text {
	flex: 1;
	color: #1d2327;
}

.clm-upgrade-banner__cta {
	white-space: nowrap;
	flex-shrink: 0;
}

/* ---- Upsell card (inside Notifications tab) ---- */

.clm-upsell-card {
	display: flex;
	gap: 16px;
	background: linear-gradient(135deg, #f0f6fc 0%, #fafafa 100%);
	border: 1px solid #c5d9ed;
	border-radius: 4px;
	padding: 20px 24px;
	margin-bottom: 16px;
}

.clm-upsell-card__icon {
	font-size: 32px;
	line-height: 1;
	flex-shrink: 0;
}

.clm-upsell-card__body {
	flex: 1;
}

.clm-upsell-card__title {
	font-size: 14px;
	font-weight: 600;
	margin: 0 0 8px;
	color: #1d2327;
}

.clm-upsell-card__body p {
	font-size: 13px;
	color: #50575e;
	margin: 0 0 14px;
}

/* ---- Sidebar cards ---- */

.clm-sidebar-card {
	background: #fff;
	border: 1px solid #ccd0d4;
	border-radius: 4px;
	padding: 16px;
}

.clm-sidebar-card--upgrade {
	border-color: #c5d9ed;
	background: #f0f6fc;
}

.clm-sidebar-card__title {
	font-size: 13px;
	font-weight: 600;
	margin: 0 0 12px;
	padding: 0;
	color: #1d2327;
}

.clm-sidebar-card__links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.clm-sidebar-card__links li {
	margin: 0 0 6px;
}

.clm-sidebar-card__links a {
	font-size: 13px;
}

.clm-sidebar-card__features {
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.clm-sidebar-card__features li {
	font-size: 13px;
	color: #1d2327;
	margin: 0 0 5px;
}

.clm-sidebar-card__cta {
	width: 100%;
	text-align: center;
	justify-content: center;
}

/* ---- Mobile responsive ---- */

@media screen and (max-width: 782px) {
	/* Stack sidebar below main content */
	.clm-settings-layout {
		flex-direction: column;
	}

	.clm-settings-sidebar {
		flex: 1 1 100%;
		width: 100%;
	}

	/* Full-width form controls */
	.clm-settings-section select,
	.clm-settings-section input[type="number"],
	.clm-settings-section input[type="text"],
	.clm-settings-section textarea {
		max-width: 100%;
		width: 100%;
		box-sizing: border-box;
	}

	/* Stack inline fields (send hour, weekday, etc.) onto their own line */
	.clm-inline-field {
		display: flex;
		flex-wrap: wrap;
		margin-left: 0;
		margin-top: 8px;
	}

	.clm-inline-label {
		margin-left: 0;
		width: 100%;
	}

	/* Stack upsell card icon and body */
	.clm-upsell-card {
		flex-direction: column;
	}

	/* Allow upgrade banner CTA to wrap */
	.clm-upgrade-banner {
		flex-wrap: wrap;
	}
}

/* ---- All Content table — responsive ---- */

@media screen and (max-width: 782px) {
	.clm-filters {
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	.clm-filters .clm-filter {
		display: flex;
		flex-direction: column;
		gap: 4px;
		margin-left: 0 !important;
	}

	.clm-filters .clm-filter select {
		width: 100%;
		box-sizing: border-box;
	}

	.clm-filters .button {
		align-self: flex-start;
		margin-left: 0 !important;
	}

	.clm-all-content-table thead {
		display: none;
	}

	.clm-all-content-table tbody tr {
		display: block;
		border: 1px solid #ccd0d4;
		border-radius: 3px;
		margin-bottom: 8px;
		background: #fff;
	}

	.clm-all-content-table tbody td {
		display: flex;
		justify-content: space-between;
		align-items: baseline;
		gap: 12px;
		padding: 8px 12px;
		border: 0;
		border-bottom: 1px solid #f0f0f1;
	}

	.clm-all-content-table tbody td:last-child {
		border-bottom: 0;
	}

	.clm-all-content-table tbody td::before {
		content: attr(data-label);
		font-weight: 600;
		font-size: 12px;
		color: #50575e;
		flex-shrink: 0;
	}

	/* Title cell — stack label above, full-width content */
	.clm-all-content-table tbody td:first-child {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	.clm-all-content-table tbody td:first-child .row-actions {
		visibility: visible;
		position: static;
	}
}

/* ---- Help tab ---- */

.clm-help-links {
	margin: 0;
	padding: 0;
	list-style: none;
}

.clm-help-links li {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 0;
	border-bottom: 1px solid #f0f0f1;
}

.clm-help-links li:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.clm-help-links a {
	font-size: 13px;
	font-weight: 600;
}

.clm-help-links__desc {
	font-size: 12px;
	color: #50575e;
}

.clm-license-notice {
	background: #fcf0f1;
	border-left: 4px solid #d63638;
	padding: 8px 12px;
	margin-top: 10px;
}

.clm-license-notice p {
	margin: 0;
	font-size: 13px;
	color: #3c434a;
}
