/* ChecklistDek Admin Styles */

.checklistdek-admin .checklistdek-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px 20px;
	margin: 16px 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

.checklistdek-admin h2 {
	margin-top: 0;
	font-size: 1.1em;
}

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

.checklistdek-stat-card {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px;
	text-align: center;
}

.checklistdek-stat-value {
	display: block;
	font-size: 2em;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.2;
}

.checklistdek-stat-label {
	display: block;
	font-size: 12px;
	color: #646970;
	margin-top: 4px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.checklistdek-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0 16px;
}

.checklistdek-builder-layout {
	grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
	align-items: start;
}

.checklistdek-builder-layout > * {
	min-width: 0;
}

.checklistdek-admin > h1 {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 12px;
	width: 100%;
}

.checklistdek-admin > h1 .page-title-action {
	position: static;
	top: auto;
	margin: 0;
	vertical-align: baseline;
}

.checklistdek-page-title-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin-left: auto;
}

.checklistdek-admin {
	max-width: 100%;
	box-sizing: border-box;
}

.checklistdek-checklist-nav {
	margin: 0 0 16px;
	display: flex;
	flex-wrap: wrap;
}

.checklistdek-checklist-nav .nav-tab {
	cursor: pointer;
}

.checklistdek-settings-nav {
	margin: 0 0 16px;
	display: flex;
	flex-wrap: wrap;
}

.checklistdek-settings-nav .nav-tab {
	cursor: pointer;
}

.checklistdek-settings-tab-panel > .checklistdek-settings-card + .checklistdek-settings-card {
	margin-top: 16px;
}

.checklistdek-auto-capture-panel .checklistdek-auto-capture-actions {
	margin-top: 16px;
}

@media (max-width: 960px) {
	.checklistdek-grid-2,
	.checklistdek-builder-layout {
		grid-template-columns: 1fr;
	}
}

.checklistdek-inline-form {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 8px 0;
}

/* Sites table card */
.checklistdek-sites-table-card .checklistdek-sites-toolbar-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
	margin-bottom: 12px;
}

.checklistdek-sites-table-card .wp-list-table {
	margin-top: 0;
}

.checklistdek-table-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	max-width: 100%;
	margin-top: 0;
}

.checklistdek-table-scroll > .wp-list-table {
	margin-top: 0;
}

.checklistdek-table-scroll > #checklistdek-activity-logs-table,
.checklistdek-table-scroll > #checklistdek-batch-table,
.checklistdek-table-scroll > #checklistdek-telemetry-rules-table {
	min-width: 560px;
}

#checklistdek-sites-table th:nth-child(1),
#checklistdek-sites-table td:nth-child(1) {
	width: 52%;
	min-width: 280px;
}

#checklistdek-sites-table th:nth-child(3),
#checklistdek-sites-table td:nth-child(3),
#checklistdek-sites-table th:nth-child(4),
#checklistdek-sites-table td:nth-child(4) {
	width: 7%;
}

#checklistdek-sites-table .checklistdek-site-name-col {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	min-width: 0;
	vertical-align: top;
}

.checklistdek-site-name-cell {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex-wrap: nowrap;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
	max-width: 100%;
}

.checklistdek-site-name-label {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.35;
}

.checklistdek-site-url-link {
	display: block;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 12px;
	line-height: 1.35;
	color: #2271b1;
}

#checklistdek-sites-table .checklistdek-client-agent-badge {
	flex-shrink: 0;
	margin-top: 4px;
	white-space: nowrap;
}

.checklistdek-site-group-add {
	margin: 0 0 12px;
	padding: 12px 14px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.checklistdek-site-group-add-field {
	margin: 0 0 10px;
}

.checklistdek-site-group-add-field label {
	display: inline-block;
	margin-bottom: 4px;
	font-weight: 600;
}

.checklistdek-site-group-add .regular-text {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.checklistdek-site-group-add .regular-text:focus {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
	outline: 2px solid transparent;
}

.checklistdek-site-group-add-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	align-items: center;
}

.checklistdek-site-group-add .checklistdek-notice-area {
	margin: 8px 0 0;
}

.checklistdek-filter-label {
	margin: 0;
}

.checklistdek-actions {
	white-space: nowrap;
}

#checklistdek-sites-table tr.checklistdek-site-row.is-site-actions-open {
	position: relative;
	z-index: 20;
}

#checklistdek-sites-table tr.checklistdek-site-row.is-site-actions-open td {
	overflow: visible;
	background-color: inherit;
}

.checklistdek-actions-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.checklistdek-site-actions-dropdown {
	position: relative;
	display: inline-block;
}

.checklistdek-site-actions-split {
	display: inline-flex;
	align-items: stretch;
}

.checklistdek-site-actions-split .checklistdek-edit-site,
.checklistdek-site-actions-split .checklistdek-view-run {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
	border-right: 0;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
}

.checklistdek-run-actions-dropdown {
	position: relative;
	display: inline-block;
}

.checklistdek-site-actions-toggle {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
	padding-left: 4px;
	padding-right: 4px;
	min-width: 28px;
}

.checklistdek-site-actions-toggle .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	line-height: 1;
	margin-top: 2px;
}

.checklistdek-site-actions-menu {
	position: absolute;
	top: calc(100% + 2px);
	right: 0;
	z-index: 30;
	min-width: 160px;
	margin: 0;
	padding: 4px 0;
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.checklistdek-site-actions-menu.checklistdek-site-actions-menu--floating {
	position: fixed;
	right: auto;
	z-index: 100050;
}

.checklistdek-site-info-body {
	margin: 0 0 8px;
	max-height: min(60vh, 420px);
	overflow-y: auto;
}

.checklistdek-site-info-list {
	margin: 0;
}

.checklistdek-site-info-row {
	display: flex;
	gap: 12px;
	margin: 0 0 10px;
	font-size: 13px;
	line-height: 1.4;
}

.checklistdek-site-info-row:last-child {
	margin-bottom: 0;
}

.checklistdek-site-info-row dt {
	flex: 0 0 auto;
	min-width: 108px;
	margin: 0;
	font-weight: 600;
	color: #646970;
}

.checklistdek-site-info-row dd {
	margin: 0;
	flex: 1 1 auto;
	color: #1d2327;
	word-break: break-word;
}

.checklistdek-site-actions-menu[hidden] {
	display: none;
}

.checklistdek-site-actions-menu button,
.checklistdek-site-actions-menu a {
	display: block;
	width: 100%;
	margin: 0;
	padding: 8px 12px;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: #1d2327;
	text-align: left;
	font-size: 13px;
	line-height: 1.4;
	cursor: pointer;
	box-sizing: border-box;
	text-decoration: none;
}

.checklistdek-site-actions-menu button:hover:not(:disabled),
.checklistdek-site-actions-menu button:focus:not(:disabled),
.checklistdek-site-actions-menu a:hover,
.checklistdek-site-actions-menu a:focus {
	background: #f0f0f1;
	color: #2271b1;
	outline: none;
}

.checklistdek-site-actions-menu button:disabled {
	color: #a7aaad;
	cursor: not-allowed;
}

.checklistdek-site-status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	vertical-align: middle;
}

.checklistdek-site-connection {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.checklistdek-connection-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex-shrink: 0;
}

.checklistdek-connection-dot.healthy { background: #00a32a; }
.checklistdek-connection-dot.unhealthy { background: #d63638; }
.checklistdek-connection-dot.unknown { background: #dba617; }

.checklistdek-connection-dot.checking {
	background: #c3c4c7;
	animation: checklistdek-connection-pulse 1.2s ease-in-out infinite;
}

@keyframes checklistdek-connection-pulse {
	0%, 100% { opacity: 0.45; }
	50% { opacity: 1; }
}

.checklistdek-connection-warning {
	color: #d63638;
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.checklistdek-client-agent-badge {
	margin: 2px 0 0;
	font-size: 10px;
	line-height: 1.3;
	white-space: nowrap;
	text-transform: none;
	letter-spacing: 0.01em;
	flex-shrink: 0;
}

.checklistdek-site-history-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	margin: 1px 0 0;
	padding: 0;
	flex-shrink: 0;
	color: #50575e;
	text-decoration: none;
}

.checklistdek-site-history-toggle:hover,
.checklistdek-site-history-toggle:focus {
	color: #2271b1;
}

.checklistdek-site-history-icon {
	font-size: 16px;
	width: 16px;
	height: 16px;
	transition: transform 0.15s ease;
}

.checklistdek-site-row.is-history-open .checklistdek-site-history-icon {
	transform: rotate(90deg);
}

.checklistdek-site-runs-row td {
	padding: 0 12px 12px 36px;
	background: #f6f7f7;
	border-top: 0;
}

.checklistdek-site-runs-panel {
	padding: 12px 14px;
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.checklistdek-site-runs-heading {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
}

.checklistdek-site-runs-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.checklistdek-site-runs-table th,
.checklistdek-site-runs-table td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid #dcdcde;
	vertical-align: middle;
}

.checklistdek-site-runs-table th {
	font-weight: 600;
	color: #50575e;
}

.checklistdek-site-runs-table tbody tr:last-child td {
	border-bottom: 0;
}

.checklistdek-site-runs-empty {
	margin: 0;
}

.checklistdek-site-runs-more {
	margin-top: 10px;
	text-align: center;
}

.checklistdek-site-runs-load-more {
	padding: 0;
	min-height: 0;
	line-height: 1.4;
}

.checklistdek-run-progress {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 140px;
}

.checklistdek-run-progress-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.checklistdek-run-progress-label {
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
	white-space: nowrap;
}

.checklistdek-run-progress-meta .checklistdek-badge {
	font-size: 11px;
	padding: 1px 6px;
	white-space: nowrap;
}

.checklistdek-run-progress-bar {
	height: 6px;
	background: #dcdcde;
	border-radius: 3px;
	overflow: hidden;
}

.checklistdek-run-progress-fill {
	display: block;
	width: var(--checklistdek-progress-pct, 0%);
	height: 100%;
	border-radius: 3px;
	transition: width 0.2s ease;
}

.checklistdek-run-progress-fill.is-completed { background: #00a32a; }
.checklistdek-run-progress-fill.is-running { background: #2271b1; }
.checklistdek-run-progress-fill.is-failed { background: #d63638; }
.checklistdek-run-progress-fill.is-cancelled { background: #8c8f94; }
.checklistdek-run-progress-fill.is-unknown { background: #8c8f94; }

/* Site checklist history — subdued progress & status */
.checklistdek-site-runs-panel .checklistdek-run-progress-label {
	font-weight: 500;
	color: #646970;
}

.checklistdek-site-runs-panel .checklistdek-run-progress-meta .checklistdek-badge {
	padding: 0;
	font-weight: 500;
	text-transform: none;
	letter-spacing: normal;
	background: transparent;
	color: #646970;
}

.checklistdek-site-runs-panel .checklistdek-badge.failed {
	color: #787c82;
}

.checklistdek-site-runs-panel .checklistdek-run-progress-fill,
.checklistdek-site-runs-panel .checklistdek-run-progress-fill.is-completed,
.checklistdek-site-runs-panel .checklistdek-run-progress-fill.is-running,
.checklistdek-site-runs-panel .checklistdek-run-progress-fill.is-failed,
.checklistdek-site-runs-panel .checklistdek-run-progress-fill.is-cancelled,
.checklistdek-site-runs-panel .checklistdek-run-progress-fill.is-unknown {
	background: #a7aaad;
}

.checklistdek-onboarding-modal .checklistdek-panel-setup,
#checklistdek-connection-tester-modal .checklistdek-panel-setup {
	margin-top: 16px;
}

.checklistdek-panel-setup {
	margin: 12px 0 0;
	padding: 12px 14px;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f6f7f7;
}

.checklistdek-panel-setup-title {
	margin: 0 0 8px;
	font-size: 14px;
}

.checklistdek-panel-setup-steps {
	margin: 0 0 12px 18px;
}

.checklistdek-panel-setup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 8px;
}

.checklistdek-panel-setup-path code {
	font-size: 12px;
}

.checklistdek-select {
	min-width: 180px;
	max-width: 100%;
}

.checklistdek-muted {
	color: #646970;
	font-style: italic;
}

.checklistdek-notice-area {
	margin: 8px 0;
}

.checklistdek-notice-area .notice {
	margin: 4px 0;
}

.checklistdek-notice-area .notice p {
	margin: 0.5em 0;
}

/* Connection status panel (dashboard) */
.checklistdek-connection-panel-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.checklistdek-connection-panel-header h2 {
	margin: 0;
}

.checklistdek-connection-stats {
	margin: 0;
}

.checklistdek-connection-stat-card.is-healthy {
	border-color: #b8e6bf;
	background: #edfaef;
}

.checklistdek-connection-stat-card.is-healthy .checklistdek-stat-value {
	color: #007017;
}

.checklistdek-connection-stat-card.is-unhealthy {
	border-color: #f1aeb5;
	background: #fcf0f1;
}

.checklistdek-connection-stat-card.is-unhealthy .checklistdek-stat-value {
	color: #8a2424;
}

/* Log feed */
.checklistdek-log-feed-meta {
	margin: 0 0 10px;
	font-size: 12px;
}

.checklistdek-log-feed {
	max-height: 280px;
	overflow-y: auto;
}

.checklistdek-log-item {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	padding: 6px 0 6px 14px;
	border-bottom: 1px solid #f0f0f1;
	font-size: 13px;
	position: relative;
}

.checklistdek-log-item::before {
	content: '–';
	position: absolute;
	left: 0;
	color: #646970;
}

.checklistdek-log-item time {
	color: #646970;
	font-size: 12px;
	font-variant-numeric: tabular-nums;
	flex-shrink: 0;
}

.checklistdek-log-site {
	display: inline-block;
	padding: 1px 7px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	background: #f0f6fc;
	color: #1d2327;
	flex-shrink: 0;
	max-width: 180px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.checklistdek-log-message {
	flex: 1 1 160px;
	min-width: 0;
}

/* Health badges */
.checklistdek-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 3px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.checklistdek-badge.healthy { background: #edfaef; color: #007017; }
.checklistdek-badge.unhealthy { background: #fcf0f1; color: #8a2424; }
.checklistdek-badge.warning { background: #fcf9e8; color: #996800; }
.checklistdek-badge.success { background: #edfaef; color: #007017; }
.checklistdek-badge.failed { background: #fcf0f1; color: #8a2424; }
.checklistdek-badge.completed { background: #edfaef; color: #007017; }
.checklistdek-badge.running { background: #f0f6fc; color: #2271b1; }
.checklistdek-badge.cancelled { background: #f6f7f7; color: #50575e; }
.checklistdek-badge.unknown { background: #f0f0f1; color: #646970; }

.checklistdek-tag {
	display: inline-block;
	background: #f0f6fc;
	color: #2271b1;
	padding: 2px 6px;
	border-radius: 3px;
	font-size: 11px;
	margin: 1px 2px;
}

/* Modal */
.checklistdek-modal[hidden] { display: none !important; }

.checklistdek-modal {
	position: fixed;
	inset: 0;
	z-index: 100100;
	display: flex;
	align-items: center;
	justify-content: center;
}

.checklistdek-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.checklistdek-modal-content {
	position: relative;
	z-index: 1;
	width: 90%;
	max-width: 520px;
	max-height: 90vh;
	overflow-y: auto;
}

.checklistdek-modal-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

/* Template picker modal */
.checklistdek-template-picker-content {
	max-width: 820px;
	width: 94%;
	display: flex;
	flex-direction: column;
	max-height: min(88vh, 760px);
	overflow: hidden;
	padding: 0;
}

.checklistdek-template-picker-content > .checklistdek-template-picker-header,
.checklistdek-template-picker-content > .checklistdek-template-picker-filters,
.checklistdek-template-picker-content > .checklistdek-notice-area,
.checklistdek-template-picker-content > .checklistdek-template-picker-footer {
	padding-left: 24px;
	padding-right: 24px;
	flex-shrink: 0;
}

.checklistdek-template-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 20px;
	padding-bottom: 4px;
}

.checklistdek-template-picker-header h2 {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
}


.checklistdek-template-picker-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-top: 12px;
	padding-bottom: 12px;
}

.checklistdek-template-picker-filter {
	background: #fff;
	border: 1px solid #dcdcde;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	color: #50575e;
	cursor: pointer;
	transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.checklistdek-template-picker-filter:hover,
.checklistdek-template-picker-filter:focus {
	border-color: #2271b1;
	color: #2271b1;
	outline: none;
	box-shadow: 0 0 0 1px #2271b1;
}

.checklistdek-template-picker-filter.is-active {
	background: #f0f6fc;
	border-color: #2271b1;
	color: #135e96;
	box-shadow: 0 0 0 1px #2271b1;
	cursor: default;
}

.checklistdek-template-picker-content > .checklistdek-notice-area {
	padding-top: 0;
	padding-bottom: 0;
}

.checklistdek-template-picker-body {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	gap: 16px;
	flex: 1 1 auto;
	min-height: 0;
	padding: 4px 24px 16px;
}

@media (max-width: 720px) {
	.checklistdek-template-picker-body {
		grid-template-columns: 1fr;
	}
}

.checklistdek-template-picker-list {
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 280px;
	max-height: 360px;
}

.checklistdek-template-picker-steps {
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #f6f7f7;
	padding: 14px 16px;
	overflow-y: auto;
	min-height: 280px;
	max-height: 360px;
}

.checklistdek-template-picker-steps-heading {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.checklistdek-template-picker-steps-empty {
	margin: 0;
	font-size: 13px;
	line-height: 1.5;
}

.checklistdek-template-picker-steps-list {
	margin: 0;
	padding-left: 18px;
	font-size: 13px;
	line-height: 1.45;
	color: #50575e;
}

.checklistdek-template-picker-steps-list li {
	margin-bottom: 8px;
}

.checklistdek-template-picker-steps-list li:last-child {
	margin-bottom: 0;
}

.checklistdek-template-picker-loading,
.checklistdek-template-picker-empty {
	margin: 24px 0;
	text-align: center;
}

.checklistdek-template-picker-item {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	width: 100%;
	margin: 0;
	padding: 14px 16px;
	border: 1px solid #dcdcde;
	border-radius: 8px;
	background: #fff;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.checklistdek-template-picker-item:hover {
	border-color: #8c8f94;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.checklistdek-template-picker-item:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.checklistdek-template-picker-item.is-selected {
	border-color: #2271b1;
	background: #f6f9fc;
	box-shadow: 0 0 0 1px #2271b1, 0 2px 8px rgba(34, 113, 177, 0.12);
}

.checklistdek-template-picker-item-body {
	flex: 1 1 auto;
	min-width: 0;
}

.checklistdek-template-picker-item-title {
	margin: 0 0 4px;
	font-size: 14px;
	font-weight: 600;
	color: #1d2327;
	line-height: 1.35;
}

.checklistdek-template-picker-item-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #646970;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.checklistdek-template-picker-item-meta {
	flex-shrink: 0;
	font-size: 12px;
	font-weight: 500;
	color: #787c82;
	white-space: nowrap;
	padding-top: 2px;
}

.checklistdek-template-picker-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	padding-top: 12px;
	padding-bottom: 20px;
	border-top: 1px solid #dcdcde;
	margin-top: auto;
	background: #fff;
}

.checklistdek-template-picker-footer-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.checklistdek-template-picker-footer .button-link {
	padding-left: 0;
	min-height: 30px;
}

.checklistdek-modal-content.checklistdek-onboarding-modal {
	max-width: 920px;
	width: 94%;
	max-height: 92vh;
	overflow-y: auto;
	padding: 32px 36px 20px;
	margin: 0;
}

.checklistdek-onboarding-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 24px;
}

.checklistdek-onboarding-header h2 {
	margin: 0;
}

.checklistdek-onboarding-header .checklistdek-onboarding-title-line {
	flex: 1;
	min-width: 0;
}

.checklistdek-onboarding-title-line {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	gap: 0;
	font-size: 18px;
	line-height: 1.35;
	font-weight: 600;
	min-width: 0;
}

.checklistdek-onboarding-title-main {
	flex-shrink: 0;
	white-space: nowrap;
}

.checklistdek-onboarding-title-sep {
	font-weight: 400;
	color: #787c82;
	flex-shrink: 0;
}

.checklistdek-onboarding-title-tagline {
	font-weight: 400;
	color: #50575e;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}

.checklistdek-onboarding-close,
.checklistdek-template-picker-close {
	appearance: none;
	background: transparent;
	border: 0;
	font-size: 28px;
	line-height: 1;
	padding: 0 2px;
	min-height: 0;
	color: #1d2327;
	text-decoration: none;
	box-shadow: none;
	cursor: pointer;
}

.checklistdek-onboarding-close:hover,
.checklistdek-onboarding-close:focus,
.checklistdek-onboarding-close:active,
.checklistdek-template-picker-close:hover,
.checklistdek-template-picker-close:focus,
.checklistdek-template-picker-close:active {
	color: #1d2327;
	background: transparent;
	text-decoration: none;
	box-shadow: none;
	outline: none;
}

.checklistdek-onboarding-progress {
	margin: 0 0 28px;
}

.checklistdek-onboarding-progress-segments {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0;
}

.checklistdek-onboarding-progress-segment-bar {
	height: 6px;
	background: #dcdcde;
	border-radius: 0;
	transition: background-color 0.25s ease;
}

.checklistdek-onboarding-progress-segment:first-child .checklistdek-onboarding-progress-segment-bar {
	border-radius: 999px 0 0 999px;
}

.checklistdek-onboarding-progress-segment:last-child .checklistdek-onboarding-progress-segment-bar {
	border-radius: 0 999px 999px 0;
}

.checklistdek-onboarding-progress-segment.is-active .checklistdek-onboarding-progress-segment-bar,
.checklistdek-onboarding-progress-segment.is-complete .checklistdek-onboarding-progress-segment-bar {
	background: #2271b1;
}

.checklistdek-onboarding-progress-segment-text {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0 8px;
	margin-top: 12px;
	font-size: 12px;
	line-height: 1.5;
}

.checklistdek-onboarding-progress-segment:first-child .checklistdek-onboarding-progress-segment-text {
	padding-right: 16px;
}

.checklistdek-onboarding-progress-segment:last-child .checklistdek-onboarding-progress-segment-text {
	padding-left: 16px;
}

.checklistdek-onboarding-progress-segment-label {
	flex-shrink: 0;
	color: #646970;
}

.checklistdek-onboarding-progress-segment-hint {
	color: #787c82;
}

.checklistdek-onboarding-progress-segment-hint::before {
	content: '—';
	margin-right: 6px;
	color: #c3c4c7;
}

.checklistdek-onboarding-progress-segment.is-active .checklistdek-onboarding-progress-segment-label {
	color: #1d2327;
	font-weight: 600;
}

.checklistdek-onboarding-progress-segment.is-active .checklistdek-onboarding-progress-segment-hint {
	color: #50575e;
}

.checklistdek-onboarding-progress-segment.is-complete .checklistdek-onboarding-progress-segment-label {
	color: #2271b1;
}

.checklistdek-onboarding-progress-segment.is-complete .checklistdek-onboarding-progress-segment-hint {
	color: #646970;
}

.checklistdek-onboarding-intro {
	margin: 0 0 24px;
	color: #50575e;
	line-height: 1.55;
}

.checklistdek-onboarding-columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: auto 300px;
	gap: 12px 28px;
	margin-bottom: 16px;
	align-items: stretch;
}

@media (max-width: 782px) {
	.checklistdek-onboarding-columns {
		grid-template-columns: 1fr;
		grid-template-rows: auto minmax(240px, 1fr) auto minmax(240px, 1fr);
	}
}

.checklistdek-onboarding-pane-label {
	margin: 0;
	font-weight: 600;
	line-height: 1.4;
	display: flex;
	align-items: flex-end;
	min-height: 40px;
}

.checklistdek-onboarding-textarea {
	width: 100%;
	height: 100%;
	min-height: 0;
	font-family: inherit;
	line-height: 1.6;
	padding: 14px 16px;
	resize: vertical;
	box-sizing: border-box;
}

.checklistdek-onboarding-preview.is-sample {
	opacity: 0.72;
}

.checklistdek-onboarding-preview {
	height: 100%;
	min-height: 0;
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #f6f7f7;
	padding: 18px 20px;
	overflow-y: auto;
	line-height: 1.55;
	box-sizing: border-box;
}

.checklistdek-onboarding-preview-title {
	margin: 0 0 16px;
	font-size: 1.05em;
	font-weight: 600;
}

.checklistdek-onboarding-preview-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.checklistdek-onboarding-preview-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 12px;
}

.checklistdek-onboarding-preview-item input[type="checkbox"] {
	margin-top: 3px;
}

.checklistdek-onboarding-optional {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 24px;
	padding-top: 20px;
	border-top: 1px solid #dcdcde;
}

.checklistdek-onboarding-optional label {
	font-weight: 600;
	margin: 0;
}

.checklistdek-onboarding-optional .checklistdek-select {
	min-width: 220px;
}

.checklistdek-onboarding-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 16px;
	margin-bottom: 0;
	padding-top: 16px;
	padding-bottom: 0;
	border-top: 1px solid #dcdcde;
}

.checklistdek-onboarding-footer-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.checklistdek-onboarding-footer .button-link {
	text-decoration: none;
}

.checklistdek-onboarding-footer .button-link:hover,
.checklistdek-onboarding-footer .button-link:focus {
	text-decoration: none;
}

.checklistdek-onboarding-connect-panel {
	border: 1px solid #dcdcde;
	border-radius: 6px;
	background: #fff;
	padding: 24px 28px;
	margin-bottom: 24px;
}

.checklistdek-onboarding-field-row {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 16px;
	align-items: center;
	margin-bottom: 18px;
}

.checklistdek-onboarding-field-row label {
	margin: 0;
	font-weight: 600;
}

.checklistdek-onboarding-field-row input {
	width: 100%;
	max-width: none;
}

.checklistdek-onboarding-test-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 8px;
	padding-top: 20px;
	border-top: 1px solid #f0f0f1;
}

.checklistdek-onboarding-test-status.success {
	color: #008a20;
	font-weight: 600;
}

.checklistdek-onboarding-test-status.error {
	color: #d63638;
	font-weight: 600;
}

.checklistdek-onboarding-outro {
	margin: 0 0 20px;
	color: #50575e;
	line-height: 1.55;
}

.checklistdek-onboarding-existing-site {
	margin: 0 0 24px;
	padding: 16px 18px;
	background: #f0f6fc;
	border: 1px solid #c3d9ed;
	border-radius: 6px;
	line-height: 1.5;
}

.checklistdek-onboarding-modal .checklistdek-notice-area {
	margin-bottom: 8px;
}

@media (max-width: 600px) {
	.checklistdek-onboarding-field-row {
		grid-template-columns: 1fr;
		gap: 4px;
	}
}

/* Checklist builder */
.checklistdek-builder-workspace {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
	margin: 16px 0;
	min-width: 0;
	align-items: start;
}

@media (max-width: 1280px) {
	.checklistdek-builder-workspace {
		grid-template-columns: 1fr;
	}
}

.checklistdek-canvas-card {
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 16px;
	min-height: 220px;
	min-width: 0;
	overflow: hidden;
}

.checklistdek-canvas-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.checklistdek-canvas-header h3 {
	margin: 0;
	font-size: 1em;
}

.checklistdek-checklist-canvas {
	overflow-x: hidden;
	overflow-y: auto;
	max-height: 560px;
	padding: 8px 4px 12px;
	-webkit-overflow-scrolling: touch;
	scrollbar-gutter: stable;
}

.checklistdek-canvas-steps {
	min-height: 140px;
	width: 100%;
	min-width: 0;
}

.checklistdek-canvas-empty {
	text-align: center;
	padding: 48px 16px;
	margin: 0;
}

.checklistdek-canvas-flow {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
	max-width: 360px;
	margin: 0 auto;
}

.checklistdek-canvas-node-chevron {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #50575e;
	cursor: pointer;
	border-radius: 2px;
}

.checklistdek-canvas-node-chevron:hover,
.checklistdek-canvas-node-chevron:focus,
.checklistdek-canvas-node.active .checklistdek-canvas-node-chevron {
	color: #2271b1;
	background: #f0f6fc;
}

.checklistdek-canvas-node-chevron .dashicons {
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.checklistdek-canvas-node {
	flex: 0 0 auto;
	display: flex;
	flex-direction: column;
	gap: 6px;
	width: 100%;
	min-height: 104px;
	box-sizing: border-box;
	padding: 14px 12px;
	border: 2px solid #c3c4c7;
	border-radius: 6px;
	background: #fff;
	cursor: grab;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.checklistdek-canvas-node:hover,
.checklistdek-canvas-node:focus {
	border-color: #72aee6;
	outline: none;
}

.checklistdek-canvas-node.active {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.checklistdek-canvas-node.dragging {
	opacity: 0.55;
}

.checklistdek-canvas-node-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: #2271b1;
	color: #fff;
	font-size: 12px;
	font-weight: 600;
}

.checklistdek-canvas-node-title {
	font-weight: 600;
	font-size: 13px;
	line-height: 1.3;
	color: #1d2327;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 2.6em;
}

.checklistdek-canvas-node-type {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #646970;
}

.checklistdek-canvas-node-roles {
	font-size: 11px;
	color: #50575e;
	line-height: 1.3;
}

.checklistdek-canvas-connector {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4px 0;
	color: #a7aaad;
	font-size: 18px;
	flex-shrink: 0;
	line-height: 1;
}

.checklistdek-step-config-sidebar,
.checklistdek-checklist-preview-sidebar {
	background: #fff;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px;
	min-width: 0;
}

.checklistdek-step-config-sidebar {
	max-height: 640px;
	overflow-x: visible;
	overflow-y: auto;
	padding-bottom: 72px;
}

.checklistdek-step-config-sidebar h3,
.checklistdek-checklist-preview-sidebar h3 {
	margin: 0 0 12px;
	font-size: 1em;
}

.checklistdek-checklist-panel-title-field {
	margin: 0 0 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid #dcdcde;
}

.checklistdek-step-config {
	margin-top: 0;
}

.checklistdek-checklist-panel-title-field label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.checklistdek-checklist-panel-title-field input {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.checklistdek-checklist-panel-title-help {
	display: block;
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.45;
}

.checklistdek-checklist-preview {
	min-height: 180px;
	max-height: 560px;
	overflow: auto;
	border: 1px solid #dcdcde;
	border-radius: 4px;
	background: #f6f7f7;
	padding: 0;
	box-sizing: border-box;
}

.checklistdek-checklist-preview > .checklistdek-muted {
	margin: 0;
	padding: 16px;
}

.checklistdek-checklist-preview-shell {
	pointer-events: none;
}

.checklistdek-checklist-preview-shell .checklistdek-client-panel-root {
	position: relative;
	z-index: 0;
}

.checklistdek-checklist-preview-shell .checklistdek-client-panel {
	position: relative;
	top: auto;
	right: auto;
	width: 100%;
	max-height: none;
	border-right: 1px solid #c3c4c7;
	box-shadow: none;
}

.checklistdek-config-subheading {
	margin: 12px 0 8px;
	font-size: 0.95em;
}

.checklistdek-config-subheading-row {
	margin: 12px 0 8px;
}

.checklistdek-config-subheading-row .checklistdek-config-subheading {
	margin: 0;
}

.checklistdek-multicheck-dropdown {
	position: relative;
	margin: 0 0 12px;
}

.checklistdek-multicheck-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 600;
}

.checklistdek-multicheck-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	width: 100%;
	min-height: 30px;
	padding: 4px 8px;
	border: 1px solid #8c8f94;
	border-radius: 3px;
	background: #fff;
	color: #2c3338;
	text-align: left;
	cursor: pointer;
}

.checklistdek-multicheck-toggle:hover,
.checklistdek-multicheck-toggle:focus {
	border-color: #2271b1;
	color: #2271b1;
}

.checklistdek-multicheck-toggle .dashicons {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	font-size: 18px;
}

.checklistdek-multicheck-summary {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 400;
}

.checklistdek-multicheck-menu {
	position: absolute;
	z-index: 30;
	top: calc(100% + 4px);
	left: 0;
	right: 0;
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid #c3c4c7;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	padding: 6px 0;
}

.checklistdek-multicheck-option {
	display: block;
	font-weight: 400;
	margin: 0;
	padding: 6px 12px;
	cursor: pointer;
}

.checklistdek-multicheck-option:hover {
	background: #f6f7f7;
}

.checklistdek-deeplink-hint {
	display: block;
	margin-top: 4px;
	font-size: 12px;
}

.checklistdek-field-label-row {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.checklistdek-multicheck-label.checklistdek-field-label-row {
	display: flex;
	margin-bottom: 4px;
}

.checklistdek-card-heading-row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 8px;
}

.checklistdek-card-heading-row h2 {
	margin: 0;
}

.checklistdek-settings-card {
	overflow: visible;
}

.checklistdek-settings-card .checklistdek-field-label-row {
	display: inline-flex;
	align-items: center;
}

.checklistdek-field-info {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #646970;
	cursor: help;
	vertical-align: middle;
}

.checklistdek-field-info .dashicons {
	width: 16px;
	height: 16px;
	font-size: 16px;
}

.checklistdek-field-info:hover,
.checklistdek-field-info:focus {
	color: #2271b1;
	outline: none;
}

.checklistdek-has-tooltip {
	position: relative;
}

.checklistdek-has-tooltip::after {
	content: attr(data-tooltip);
	position: absolute;
	left: 50%;
	top: calc(100% + 8px);
	bottom: auto;
	transform: translateX(-50%);
	width: max-content;
	max-width: min(320px, calc(100vw - 48px));
	padding: 8px 10px;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	white-space: normal;
	overflow-wrap: break-word;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	z-index: 100050;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.checklistdek-has-tooltip:hover::after,
.checklistdek-has-tooltip:focus::after {
	opacity: 1;
	visibility: visible;
}

.checklistdek-admin[data-checklistdek-tooltips-portal="true"] .checklistdek-field-info.checklistdek-has-tooltip::after {
	content: none;
	display: none;
}

#checklistdek-field-tooltip.checklistdek-field-tooltip-portal {
	position: fixed;
	z-index: 100060;
	max-width: min(360px, calc(100vw - 48px));
	padding: 8px 10px;
	border-radius: 4px;
	background: #1d2327;
	color: #fff;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.4;
	text-align: left;
	overflow-wrap: break-word;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
	pointer-events: none;
}

#checklistdek-field-tooltip.checklistdek-field-tooltip-portal[hidden] {
	display: none !important;
}

.checklistdek-card-heading-row--info-first .checklistdek-field-info.checklistdek-has-tooltip::after,
.checklistdek-field-label-row .checklistdek-field-info.checklistdek-has-tooltip::after,
.checklistdek-step-option-label .checklistdek-field-info.checklistdek-has-tooltip::after {
	left: 0;
	transform: none;
	max-width: min(360px, calc(100vw - 48px));
}

.checklistdek-step-client-options {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 8px;
}

.checklistdek-step-option-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 400;
}

.checklistdek-checklist-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	margin: 0 0 16px;
}

.checklistdek-checklist-picker label {
	margin: 0;
	font-weight: 600;
}

.checklistdek-checklist-picker .checklistdek-select {
	min-width: min(100%, 420px);
	max-width: 100%;
}

.checklistdek-cl-meta {
	margin-bottom: 4px;
}

.checklistdek-cl-meta label {
	display: block;
	margin-bottom: 4px;
}

.checklistdek-cl-meta .checklistdek-field-label-row {
	display: inline-flex;
}

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

.checklistdek-list li {
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	margin-bottom: 6px;
	cursor: pointer;
	background: #fafafa;
	line-height: 1.4;
	word-break: break-word;
}

.checklistdek-list li.active,
.checklistdek-list li:hover {
	border-color: #2271b1;
	background: #f0f6fc;
}

.checklistdek-steps-list {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	min-height: 40px;
}

.checklistdek-step-item {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	margin-bottom: 6px;
	background: #fff;
	cursor: grab;
}

.checklistdek-step-item.active {
	border-color: #2271b1;
	box-shadow: 0 0 0 1px #2271b1;
}

.checklistdek-step-item.dragging {
	opacity: 0.5;
}

.checklistdek-step-handle {
	color: #a7aaad;
	cursor: grab;
	user-select: none;
}

.checklistdek-step-config label {
	display: block;
	margin-bottom: 8px;
	font-weight: 600;
}

.checklistdek-step-config .checklistdek-step-note-field-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 600;
	margin-bottom: 0;
}

.checklistdek-step-config input:not([type="checkbox"]):not([type="radio"]),
.checklistdek-step-config textarea,
.checklistdek-step-config select {
	width: 100%;
	margin-top: 4px;
}

.checklistdek-step-config .checklistdek-step-note-field-option input,
.checklistdek-step-config #ld-remove-step {
	margin-top: 8px;
}

.checklistdek-step-config .checklistdek-multicheck-option input {
	width: auto;
	margin-top: 0;
	margin-right: 6px;
}

/* Automation layout */
.checklistdek-target-selector {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.checklistdek-target-form {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 8px 0;
}

.checklistdek-target-form-controls {
	margin: 0;
}

.checklistdek-target-sites {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-width: 480px;
}

.checklistdek-target-sites .checklistdek-multicheck-label {
	margin: 0;
}

.checklistdek-target-sites-picker {
	margin: 0;
	width: 100%;
}

.checklistdek-multicheck-empty {
	margin: 0;
	padding: 6px 12px;
	font-size: 12px;
}

.checklistdek-target-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.checklistdek-batch-queue h3 {
	margin: 0 0 8px;
	font-size: 13px;
}

.checklistdek-run-controls {
	margin-top: 12px;
}

.checklistdek-automation-nav {
	margin-bottom: 0;
	display: flex;
	flex-wrap: wrap;
}

.checklistdek-automation-wizard {
	display: grid;
	grid-template-columns: minmax(168px, 200px) minmax(0, 1fr);
	gap: 24px 32px;
	align-items: start;
	margin-top: 8px;
}

.checklistdek-automation-wizard-nav {
	position: sticky;
	top: 32px;
}

.checklistdek-automation-progress {
	margin: 0;
}

.checklistdek-automation-progress-segments {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.checklistdek-automation-progress-segment {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding-bottom: 20px;
	cursor: pointer;
}

.checklistdek-automation-progress-segment:last-child {
	padding-bottom: 0;
}

.checklistdek-automation-progress-segment-bar {
	flex-shrink: 0;
	width: 4px;
	align-self: stretch;
	min-height: 36px;
	background: #dcdcde;
	border-radius: 999px;
}

.checklistdek-automation-progress-segment.is-active .checklistdek-automation-progress-segment-bar,
.checklistdek-automation-progress-segment.is-complete .checklistdek-automation-progress-segment-bar {
	background: #2271b1;
}

.checklistdek-automation-progress-segment-text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding-top: 2px;
	font-size: 12px;
	line-height: 1.4;
}

.checklistdek-automation-progress-segment-label {
	color: #646970;
}

.checklistdek-automation-progress-segment-hint {
	color: #787c82;
}

.checklistdek-automation-progress-segment.is-active .checklistdek-automation-progress-segment-label {
	color: #1d2327;
	font-weight: 600;
}

.checklistdek-automation-progress-segment.is-active .checklistdek-automation-progress-segment-hint {
	color: #50575e;
	font-weight: 500;
}

.checklistdek-automation-progress-segment.is-complete .checklistdek-automation-progress-segment-label {
	color: #2271b1;
}

.checklistdek-automation-step-panel {
	margin-top: 0;
}

.checklistdek-automation-field-label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
}

.checklistdek-automation-step-footer {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid #dcdcde;
}

.checklistdek-automation-step-footer-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
}

.checklistdek-automation-run-hero {
	margin-top: 4px;
}

.checklistdek-automation-run-hero-header {
	margin-bottom: 8px;
}

#checklistdek-run-progress-wrap {
	margin: 12px 0;
}

.checklistdek-automation-run-activity .checklistdek-card-heading-row {
	margin-bottom: 8px;
}

.checklistdek-automation-run-activity-intro {
	margin-top: 0;
}

.checklistdek-automation-run-activity .checklistdek-log-feed {
	margin-top: 12px;
}

.checklistdek-audit-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 12px 16px;
	margin-bottom: 16px;
}

.checklistdek-audit-filter-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.checklistdek-audit-filter-label {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
}

.checklistdek-audit-filter-search {
	flex: 1 1 180px;
	min-width: 180px;
}

.checklistdek-audit-filter-actions {
	display: flex;
	align-items: flex-end;
}

.checklistdek-filter-date input[type="date"] {
	height: 30px;
}

.checklistdek-audit-table td {
	vertical-align: top;
}

.checklistdek-audit-col-time {
	width: 110px;
}

.checklistdek-audit-col-user {
	width: 110px;
}

.checklistdek-audit-col-site {
	width: 120px;
}

.checklistdek-audit-table--hide-site-col .checklistdek-audit-col-site,
.checklistdek-audit-table--hide-site-col .checklistdek-audit-site {
	display: none;
}

.checklistdek-audit-detail-lines {
	margin: 0;
	padding-left: 1.15em;
	font-size: 13px;
	line-height: 1.45;
	color: #1d2327;
}

.checklistdek-audit-teaser {
	margin: 4px 0 0;
	font-size: 12px;
	line-height: 1.4;
}

.checklistdek-audit-activity-details-summary {
	cursor: pointer;
	font-size: 12px;
	color: #2271b1;
	user-select: none;
	margin-top: 4px;
	display: inline-block;
}

.checklistdek-audit-activity-details[open] .checklistdek-audit-activity-details-summary {
	margin-bottom: 6px;
}

.checklistdek-audit-activity-details-body {
	margin: 0 0 4px;
}

.checklistdek-audit-detail-fields {
	margin: 0 0 8px;
}

.checklistdek-audit-detail-field {
	display: flex;
	gap: 10px;
	margin: 0 0 8px;
	font-size: 12px;
	line-height: 1.4;
}

.checklistdek-audit-detail-field:last-child {
	margin-bottom: 0;
}

.checklistdek-audit-detail-field dt {
	flex: 0 0 118px;
	margin: 0;
	font-weight: 600;
	color: #646970;
}

.checklistdek-audit-detail-field dd {
	margin: 0;
	flex: 1 1 auto;
	color: #1d2327;
	white-space: pre-wrap;
	word-break: break-word;
}

.checklistdek-audit-raw--nested {
	margin-top: 8px;
}

.checklistdek-audit-timestamp {
	white-space: nowrap;
}

.checklistdek-audit-date {
	display: block;
	font-weight: 600;
	color: #1d2327;
}

.checklistdek-audit-time {
	display: block;
	font-size: 12px;
	color: #646970;
}

.checklistdek-audit-user,
.checklistdek-audit-site {
	font-size: 13px;
}

.checklistdek-audit-cell {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.checklistdek-audit-action {
	margin: 0;
}

.checklistdek-audit-summary {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: #1d2327;
}

.checklistdek-audit-extra {
	margin: 0;
	font-size: 12px;
	line-height: 1.4;
	color: #646970;
}

.checklistdek-audit-raw,
.checklistdek-audit-run-steps {
	margin: 0;
}

.checklistdek-audit-raw summary,
.checklistdek-audit-run-steps summary {
	cursor: pointer;
	font-size: 12px;
	color: #2271b1;
	user-select: none;
}

.checklistdek-audit-raw[open] summary,
.checklistdek-audit-run-steps[open] summary {
	margin-bottom: 6px;
}

.checklistdek-audit-run-step-list {
	margin: 0;
	padding: 0 0 0 16px;
	font-size: 12px;
	line-height: 1.45;
	max-height: 200px;
	overflow-y: auto;
}

.checklistdek-audit-run-step-item {
	margin-bottom: 6px;
}

.checklistdek-audit-run-step-item:last-child {
	margin-bottom: 0;
}

.checklistdek-audit-run-step-title {
	display: block;
	color: #1d2327;
	font-weight: 500;
}

.checklistdek-audit-run-step-meta {
	display: block;
	color: #646970;
	font-size: 11px;
	margin-top: 2px;
}

.checklistdek-audit-diff {
	font-size: 11px;
	color: #50575e;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	padding: 8px;
	margin: 0;
	overflow-x: auto;
	white-space: pre-wrap;
	word-break: break-word;
	max-height: 160px;
}

.checklistdek-drift-status {
	margin-bottom: 12px;
	padding: 10px 12px;
	background: #f6f7f7;
	border-radius: 3px;
	font-size: 13px;
}

.checklistdek-drift-site-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 0;
	border-bottom: 1px solid #dcdcde;
}

.checklistdek-drift-site-row:last-child {
	border-bottom: 0;
}

.checklistdek-drift-results {
	margin-top: 12px;
}

@media (max-width: 782px) {
	.checklistdek-automation-wizard {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.checklistdek-automation-wizard-nav {
		position: static;
	}

	.checklistdek-automation-progress-segment {
		padding-bottom: 12px;
	}
}

/* Run steps */
.checklistdek-run-steps {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.checklistdek-run-step {
	padding: 10px 12px;
	border: 1px solid #dcdcde;
	border-radius: 3px;
	margin-bottom: 6px;
	background: #fff;
}

.checklistdek-run-step.status-completed { border-left: 4px solid #00a32a; }
.checklistdek-run-step.status-failed { border-left: 4px solid #d63638; }
.checklistdek-run-step.status-awaiting_manual { border-left: 4px solid #dba617; }
.checklistdek-run-step.status-running { border-left: 4px solid #72aee6; }
.checklistdek-run-step.status-pending { border-left: 4px solid #c3c4c7; }

.checklistdek-run-step-meta {
	font-size: 12px;
	color: #646970;
	margin-top: 4px;
}

.checklistdek-double-tick {
	display: inline-flex;
	align-items: center;
	vertical-align: middle;
	margin-left: 2px;
	color: #1a202c;
}

.checklistdek-double-tick-icons {
	display: inline-flex;
	align-items: center;
	gap: 1px;
}

.checklistdek-double-tick-icon {
	display: block;
	width: 10px;
	height: 10px;
	flex-shrink: 0;
}

.checklistdek-run-step-error {
	color: #d63638;
	font-size: 12px;
	margin-top: 6px;
}

.checklistdek-run-step-response {
	margin-top: 8px;
}

.checklistdek-run-step-response summary {
	cursor: pointer;
	font-size: 12px;
	color: #2271b1;
}

.checklistdek-run-step-response pre {
	font-size: 11px;
	background: #f6f7f7;
	padding: 8px;
	overflow: auto;
	max-height: 160px;
	margin: 6px 0 0;
	border-radius: 3px;
}

.checklistdek-run-step-notes {
	margin-top: 8px;
	font-size: 12px;
}

.checklistdek-run-step-notes ul {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.checklistdek-run-step-note {
	padding: 8px;
	background: #f6f7f7;
	border: 1px solid #dcdcde;
	border-radius: 4px;
}

.checklistdek-run-step-note-meta {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #50575e;
	margin-bottom: 4px;
}

.checklistdek-run-step-note-user {
	display: block;
	font-size: 11px;
	font-weight: 600;
	color: #50575e;
	margin-bottom: 4px;
}

.checklistdek-run-step-note p {
	margin: 0;
	white-space: pre-wrap;
}

.checklistdek-run-step-note-attachment img {
	display: block;
	max-width: 160px;
	margin-top: 6px;
	border-radius: 3px;
	border: 1px solid #c3c4c7;
}

.checklistdek-log-item.is-sync-error::before {
	content: '!';
	color: #d63638;
	font-weight: 700;
}

.checklistdek-log-item.is-sync-error .checklistdek-log-message {
	color: #b32d2e;
	font-weight: 500;
}

.checklistdek-dashboard-sync-alert {
	margin: 0 0 16px;
}

.checklistdek-log-item.is-client-activity {
	border-left: 3px solid #2271b1;
	padding-left: 8px;
}

/* Template category tabs */
.checklistdek-builtin-templates-toolbar {
	margin: 12px 0 0;
}

.checklistdek-builtin-template-search-field {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	max-width: 520px;
}

.checklistdek-builtin-template-search-label {
	font-weight: 600;
	font-size: 13px;
	color: #1d2327;
}

.checklistdek-builtin-template-search-field .regular-text {
	flex: 1 1 220px;
	min-width: 0;
}

.checklistdek-builtin-template-search-hint {
	margin: 8px 0 0;
	font-size: 13px;
}

.checklistdek-category-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0 16px;
}

.checklistdek-category-tab {
	background: #f6f7f7;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	color: #1d2327;
	cursor: pointer;
}

.checklistdek-category-tab:hover,
.checklistdek-category-tab:focus {
	border-color: #2271b1;
	color: #2271b1;
}

.checklistdek-category-tab.active {
	background: #2271b1;
	border-color: #2271b1;
	color: #fff;
	cursor: default;
}

/* Templates & integrations grid */
.checklistdek-template-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 12px;
	margin-top: 12px;
	align-items: stretch;
	grid-auto-rows: minmax(min-content, auto);
}

.checklistdek-template-grid > .checklistdek-template-card {
	min-width: 0;
	height: auto;
	align-self: stretch;
}

.checklistdek-template-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 248px;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	padding: 16px 16px 52px;
	background: #fafafa;
	overflow: hidden;
}

.checklistdek-template-card:hover,
.checklistdek-template-card.is-steps-open {
	border-color: #2271b1;
	box-shadow: 0 2px 8px rgba(34, 113, 177, 0.12);
}

.checklistdek-template-card-content {
	position: relative;
	flex: 1 1 auto;
	min-height: 200px;
	overflow: hidden;
}

.checklistdek-template-card-main {
	position: relative;
	z-index: 1;
}

.checklistdek-template-card h3 {
	margin: 0 0 8px;
	font-size: 14px;
}

.checklistdek-template-card p {
	margin: 0 0 12px;
	font-size: 13px;
	color: #646970;
}

.checklistdek-template-step-count {
	margin-bottom: 4px !important;
}

.checklistdek-template-card .checklistdek-badge {
	margin-bottom: 8px;
}

.checklistdek-template-card-actions {
	position: absolute;
	right: 16px;
	bottom: 16px;
	left: 16px;
	z-index: 3;
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 8px 12px;
	margin-top: 0;
	padding-top: 0;
	flex-shrink: 0;
}

#checklistdek-panel-templates .checklistdek-template-card-actions {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity 0.15s ease, visibility 0.15s ease;
}

#checklistdek-panel-templates .checklistdek-template-card:hover .checklistdek-template-card-actions,
#checklistdek-panel-templates .checklistdek-template-card.is-steps-open .checklistdek-template-card-actions,
#checklistdek-panel-templates .checklistdek-template-card:focus-within .checklistdek-template-card-actions {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

.checklistdek-template-card:hover .checklistdek-template-card-actions,
.checklistdek-template-card.is-steps-open .checklistdek-template-card-actions {
	background: #fff;
}

@media (hover: none) {
	#checklistdek-panel-templates .checklistdek-template-card-actions {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

.checklistdek-template-card-actions:not(:has(.checklistdek-template-steps-toggle)) > .checklistdek-template-edit-checklist,
.checklistdek-template-card-actions:not(:has(.checklistdek-template-steps-toggle)) > .checklistdek-template-use-checklist {
	flex: 1 1 0;
	min-width: 0;
}

.checklistdek-template-card-actions:has(.checklistdek-template-steps-toggle) > .checklistdek-template-use-checklist {
	flex: 0 0 auto;
	min-width: auto;
	margin-left: auto;
}

.checklistdek-template-steps-toggle {
	padding: 0 !important;
	min-height: auto;
	line-height: 1.4;
	height: auto;
	border: none !important;
	background: transparent !important;
	box-shadow: none !important;
	color: #1d2327 !important;
	text-decoration: none !important;
	font-weight: 400;
}

.checklistdek-template-steps-toggle:hover,
.checklistdek-template-steps-toggle:focus {
	color: #1d2327 !important;
	text-decoration: none !important;
	background: transparent !important;
	box-shadow: none !important;
}

.checklistdek-template-card-actions .checklistdek-template-steps-toggle {
	flex: 0 0 auto;
	white-space: nowrap;
}

.checklistdek-template-use-checklist {
	justify-content: center;
	text-align: center;
	font-weight: 500;
	color: #1d2327;
	border-color: #c3c4c7;
	background: #fff;
	box-shadow: none;
}

.checklistdek-template-use-checklist:hover,
.checklistdek-template-use-checklist:focus {
	color: #1d2327;
	border-color: #8c8f94;
	background: #f6f7f7;
	box-shadow: none;
}

.checklistdek-template-steps-preview {
	position: absolute;
	inset: 0;
	z-index: 2;
	background: #fff;
	border-radius: 4px;
	padding: 16px 16px 48px;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.15s ease, visibility 0.15s ease;
	pointer-events: none;
}

.checklistdek-template-card.is-steps-open .checklistdek-template-steps-preview {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

@media (hover: hover) {
	.checklistdek-template-card:not(.is-steps-open) .checklistdek-template-card-content:hover .checklistdek-template-steps-preview {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}
}

.checklistdek-template-steps-heading {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 600;
	color: #1d2327;
}

.checklistdek-template-steps-list {
	margin: 0;
	padding-left: 20px;
	font-size: 12px;
	line-height: 1.5;
	color: #50575e;
}

.checklistdek-template-steps-list li {
	margin-bottom: 6px;
}

.checklistdek-template-steps-list li:last-child {
	margin-bottom: 0;
}

.checklistdek-integration-card.available {
	border-color: #00a32a;
}

.checklistdek-integration-card.unavailable {
	opacity: 0.75;
}

/* Integrations — Platform Connectors Hub */
.checklistdek-connector-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	border: 1px solid #c3c4c7;
	border-radius: 4px;
	background: #fff;
}

.checklistdek-connector-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 16px;
	border-bottom: 1px solid #dcdcde;
}

.checklistdek-connector-row:last-child {
	border-bottom: 0;
}

.checklistdek-connector-row.unavailable {
	opacity: 0.85;
}

.checklistdek-connector-meta {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.checklistdek-connector-name {
	font-weight: 500;
	color: #1d2327;
}

.checklistdek-connector-sync-count {
	font-size: 12px;
}

.checklistdek-connector-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.checklistdek-connector-config {
	margin: 16px 0 0;
	padding-top: 16px;
	border-top: 1px solid #dcdcde;
}

.checklistdek-connector-config-panel label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.checklistdek-connector-config-panel .regular-text {
	width: 100%;
	max-width: 480px;
}

.checklistdek-connector-config-status {
	margin: 0 0 10px;
	color: #1d2327;
}

#checklistdek-telemetry-rules-table .check-column {
	width: 2.2em;
}

.checklistdek-import-export {
	margin-bottom: 0;
}

/* Settings */
.checklistdek-settings-form {
	max-width: 1100px;
}

.checklistdek-settings-card h2 {
	margin: 0;
	font-size: 1.1em;
}

.checklistdek-settings-card .checklistdek-card-heading-row {
	margin-bottom: 12px;
}

.checklistdek-settings-lead {
	margin: 0 0 16px;
	font-weight: 600;
	color: #1d2327;
}

.checklistdek-settings-note {
	margin: 12px 0 0;
	font-size: 13px;
}

.checklistdek-settings-panel-layout-picker {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 860px;
}

.checklistdek-settings-panel-layout-label {
	display: block;
	margin: 0;
	font-weight: 600;
	color: #1d2327;
}

.checklistdek-settings-panel-layout-body {
	display: grid;
	grid-template-columns: minmax(220px, 360px) minmax(280px, 420px);
	gap: 10px 24px;
	align-items: start;
}

.checklistdek-settings-panel-layout-controls {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.checklistdek-settings-panel-layout-select {
	width: 100%;
}

.checklistdek-panel-layout-preview {
	display: grid;
	gap: 10px;
}

@media screen and (max-width: 782px) {
	.checklistdek-settings-panel-layout-body {
		grid-template-columns: 1fr;
		max-width: 420px;
	}
}

.checklistdek-panel-layout-preview-frame {
	position: relative;
	width: 100%;
	max-width: 420px;
	aspect-ratio: 16 / 10;
	border: 1px solid #c3c4c7;
	border-radius: 8px;
	background: linear-gradient(180deg, #f6f7f7 0%, #fff 28%);
	overflow: hidden;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.checklistdek-panel-layout-preview-frame > span {
	position: absolute;
	display: none;
	border-radius: 3px;
}

.checklistdek-preview-adminbar {
	display: block !important;
	top: 0;
	left: 0;
	right: 0;
	height: 12%;
	background: #1d2327;
	border-radius: 0;
}

.checklistdek-preview-content {
	display: block !important;
	top: 14%;
	left: 4%;
	right: 4%;
	bottom: 4%;
	background: #fff;
	border: 1px solid #dcdcde;
}

.checklistdek-preview-panel {
	background: #f0f6fc;
	border: 1px solid #72aee6;
	box-shadow: 0 0 0 1px rgba(34, 113, 177, 0.15);
}

.checklistdek-preview-panel--right {
	top: 14%;
	right: 0;
	width: 24%;
	bottom: 0;
	border-right: 0;
	border-radius: 0;
}

.checklistdek-preview-bar {
	left: 0;
	right: 0;
	height: 10%;
	background: #2271b1;
	opacity: 0.92;
	border-radius: 0;
}

.checklistdek-preview-bar--top {
	top: 12%;
}

.checklistdek-preview-bar--bottom {
	bottom: 0;
}

.checklistdek-preview-pill {
	right: 6%;
	bottom: 8%;
	width: 14%;
	height: 14%;
	border-radius: 999px;
	background: #2271b1;
	box-shadow: 0 4px 12px rgba(34, 113, 177, 0.35);
}

.checklistdek-preview-toast {
	right: 6%;
	bottom: 8%;
	width: 42%;
	height: 12%;
	background: #fff;
	border: 1px solid #72aee6;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.checklistdek-preview-flyout {
	top: 12%;
	right: 8%;
	width: 34%;
	height: 46%;
	background: #fff;
	border: 1px solid #72aee6;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.checklistdek-preview-overlay {
	inset: 12% 8% 8%;
	background: rgba(29, 35, 39, 0.45);
	border-radius: 6px;
}

.checklistdek-preview-focus {
	top: 28%;
	left: 18%;
	right: 18%;
	height: 38%;
	background: #fff;
	border: 2px solid #72aee6;
	box-shadow: 0 8px 24px rgba(34, 113, 177, 0.18);
}

.checklistdek-preview-metabox {
	top: 18%;
	right: 4%;
	width: 28%;
	height: 34%;
	background: #f0f6fc;
	border: 1px solid #72aee6;
}

.checklistdek-panel-layout-preview[data-layout="sidebar"] .checklistdek-preview-panel--right,
.checklistdek-panel-layout-preview[data-layout="live_topbar"] .checklistdek-preview-bar--top,
.checklistdek-panel-layout-preview[data-layout="bottom_dock"] .checklistdek-preview-bar--bottom,
.checklistdek-panel-layout-preview[data-layout="floating_pill"] .checklistdek-preview-pill,
.checklistdek-panel-layout-preview[data-layout="toast"] .checklistdek-preview-toast,
.checklistdek-panel-layout-preview[data-layout="admin_menu"] .checklistdek-preview-flyout,
.checklistdek-panel-layout-preview[data-layout="fullscreen"] .checklistdek-preview-overlay,
.checklistdek-panel-layout-preview[data-layout="focus_mode"] .checklistdek-preview-focus,
.checklistdek-panel-layout-preview[data-layout="inline_metabox"] .checklistdek-preview-metabox {
	display: block;
}

.checklistdek-panel-layout-preview-description {
	margin: 0;
	font-size: 13px;
	color: #50575e;
}

.checklistdek-settings-exclude-options {
	width: 100%;
	max-width: 640px;
	font-family: Consolas, Monaco, monospace;
}

.checklistdek-settings-exclude-hints {
	margin-top: 8px;
}

.checklistdek-settings-exclude-hints-label {
	margin-bottom: 4px;
}

.checklistdek-settings-exclude-common-fields {
	margin: 0 0 0 18px;
	padding: 0;
	list-style: disc;
	font-size: 13px;
	color: #50575e;
}

.checklistdek-settings-exclude-common-fields li {
	margin: 2px 0;
}

.checklistdek-settings-exclude-common-fields code {
	font-size: 12px;
}

.checklistdek-settings-toggles {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
}

.checklistdek-settings-toggle {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-weight: 400;
}

.checklistdek-settings-toggle input {
	margin-top: 2px;
}

.checklistdek-settings-channels {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.checklistdek-settings-channel {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 12px;
	background: #fafafa;
}

.checklistdek-settings-channel label {
	display: block;
	margin-bottom: 8px;
}

.checklistdek-settings-channel input {
	width: 100%;
}

.checklistdek-settings-events h3,
.checklistdek-settings-role-mapping h3 {
	margin: 0 0 8px;
	font-size: 0.95em;
}

.checklistdek-settings-event-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 8px 16px;
}

.checklistdek-settings-email-events {
	display: grid;
	gap: 14px;
	margin-bottom: 20px;
}

.checklistdek-settings-email-event {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 12px 14px;
	background: #fafafa;
}

.checklistdek-settings-email-event-label {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	margin: 0;
	font-weight: 600;
}

.checklistdek-settings-email-event-label input {
	margin-top: 2px;
}

.checklistdek-settings-email-event-description {
	margin: 6px 0 0 26px;
	font-size: 12px;
}

.checklistdek-settings-email-address label {
	display: block;
	margin-bottom: 8px;
}

.checklistdek-settings-email-address input {
	max-width: 420px;
}

.checklistdek-settings-role-presets {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 20px;
}

.checklistdek-settings-role-preset {
	border: 1px solid #dcdcde;
	border-radius: 4px;
	padding: 12px;
	background: #f6f7f7;
}

.checklistdek-settings-role-preset h3 {
	margin: 0 0 6px;
	font-size: 0.95em;
}

.checklistdek-settings-role-preset p {
	margin: 0 0 8px;
	font-size: 13px;
	color: #646970;
}

.checklistdek-settings-role-caps {
	margin: 0;
	padding-left: 18px;
	font-size: 12px;
	color: #50575e;
}

.checklistdek-settings-role-caps li {
	margin: 2px 0;
}

.checklistdek-settings-perm-scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	margin-top: 12px;
	max-width: 100%;
}

.checklistdek-settings-perm-table {
	margin-top: 0;
	width: max-content;
	min-width: 100%;
}

.checklistdek-settings-perm-table th,
.checklistdek-settings-perm-table td {
	text-align: center;
	vertical-align: middle;
}

.checklistdek-settings-perm-table thead th {
	white-space: nowrap;
}

.checklistdek-settings-perm-table th[scope="row"],
.checklistdek-settings-perm-table thead th:first-child {
	position: sticky;
	left: 0;
	z-index: 1;
	background: #fff;
	box-shadow: 2px 0 4px -2px rgba(0, 0, 0, 0.1);
}

.checklistdek-settings-perm-table th[scope="row"] {
	text-align: left;
	font-weight: 600;
}

.checklistdek-settings-perm-check {
	display: inline-flex;
	margin: 0;
}

@media (max-width: 960px) {
	.checklistdek-settings-channels,
	.checklistdek-settings-role-presets {
		grid-template-columns: 1fr;
	}
}

.checklistdek-auto-capture-modal .checklistdek-auto-capture-content {
	max-width: 640px;
}

.checklistdek-activity-logs-intro {
	margin: 0 0 16px;
}

.checklistdek-activity-logs-intro a {
	margin-left: 8px;
}

.checklistdek-activity-logs-load-more-wrap {
	margin-top: 12px;
	text-align: center;
}

.checklistdek-auto-capture-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.checklistdek-auto-capture-header h2 {
	margin: 0;
}

.checklistdek-auto-capture-close {
	border: 0;
	background: transparent;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #646970;
}

.checklistdek-auto-capture-status.is-recording {
	color: #d63638;
	font-weight: 600;
}

.checklistdek-auto-capture-steps {
	margin: 12px 0 0;
	padding-left: 20px;
	max-height: 220px;
	overflow: auto;
}

.checklistdek-auto-capture-steps li {
	margin: 0 0 8px;
}

.checklistdek-auto-capture-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

/* Responsive — phones, tablets, and narrow wp-admin (folded menu) */
@media (max-width: 960px) {
	.checklistdek-page-title-actions {
		flex-basis: 100%;
		margin-left: 0;
		justify-content: flex-start;
	}

	.checklistdek-sites-table-card .checklistdek-sites-toolbar-filters {
		justify-content: flex-start;
	}

	.checklistdek-audit-filter-search {
		flex: 1 1 100%;
		min-width: 0;
	}

	.checklistdek-target-sites {
		max-width: none;
	}
}

@media (max-width: 782px) {
	#checklistdek-sites-table th:nth-child(1),
	#checklistdek-sites-table td:nth-child(1) {
		min-width: 0;
		width: auto;
	}

	#checklistdek-sites-table th:nth-child(3),
	#checklistdek-sites-table td:nth-child(3),
	#checklistdek-sites-table th:nth-child(4),
	#checklistdek-sites-table td:nth-child(4) {
		display: none;
	}

	.checklistdek-site-runs-row td {
		padding-left: 12px;
	}

	.checklistdek-site-runs-panel {
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.checklistdek-site-runs-table {
		min-width: 520px;
	}

	.checklistdek-site-status {
		flex-wrap: wrap;
	}

	.checklistdek-onboarding-title-line {
		flex-wrap: wrap;
		align-items: flex-start;
	}

	.checklistdek-onboarding-title-tagline {
		white-space: normal;
		flex: 1 1 100%;
	}

	.checklistdek-onboarding-progress-segment-hint::before {
		display: none;
	}

	.checklistdek-onboarding-progress-segment-hint {
		flex: 1 1 100%;
		padding-left: 0;
	}

	.checklistdek-onboarding-progress-segment:last-child .checklistdek-onboarding-progress-segment-text,
	.checklistdek-onboarding-progress-segment:first-child .checklistdek-onboarding-progress-segment-text {
		padding-left: 0;
		padding-right: 0;
	}

	.checklistdek-audit-detail-field {
		flex-direction: column;
		gap: 2px;
	}

	.checklistdek-audit-detail-field dt {
		flex: none;
	}

	.checklistdek-connector-row {
		flex-direction: column;
		align-items: stretch;
	}

	.checklistdek-connector-actions {
		justify-content: flex-start;
		flex-wrap: wrap;
	}

	.checklistdek-drift-site-row {
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
	}

	.checklistdek-drift-site-row .button {
		align-self: flex-start;
	}
}

@media (max-width: 600px) {
	.checklistdek-admin .checklistdek-card {
		padding: 12px 14px;
	}

	.checklistdek-modal {
		align-items: flex-start;
		padding: max(12px, env(safe-area-inset-top, 0px)) 0 max(12px, env(safe-area-inset-bottom, 0px));
	}

	.checklistdek-modal-content {
		width: calc(100% - 24px);
		max-height: calc(100vh - 24px);
		max-height: calc(100dvh - 24px);
	}

	.checklistdek-modal-content.checklistdek-onboarding-modal {
		padding: 20px 16px 16px;
		width: calc(100% - 16px);
	}

	.checklistdek-template-picker-content > .checklistdek-template-picker-header,
	.checklistdek-template-picker-content > .checklistdek-template-picker-filters,
	.checklistdek-template-picker-content > .checklistdek-notice-area,
	.checklistdek-template-picker-content > .checklistdek-template-picker-footer {
		padding-left: 16px;
		padding-right: 16px;
	}

	.checklistdek-template-picker-body {
		padding-left: 16px;
		padding-right: 16px;
	}

	.checklistdek-template-picker-footer-actions {
		width: 100%;
		margin-left: 0;
		justify-content: flex-end;
	}

	.checklistdek-inline-form .checklistdek-select,
	.checklistdek-inline-form .regular-text,
	.checklistdek-inline-form input[type="search"],
	.checklistdek-inline-form .button {
		flex: 1 1 100%;
		width: 100%;
		max-width: 100%;
		box-sizing: border-box;
	}

	.checklistdek-checklist-picker .checklistdek-select {
		width: 100%;
		min-width: 0;
	}

	.checklistdek-canvas-header {
		flex-direction: column;
		align-items: stretch;
	}

	.checklistdek-canvas-header .button {
		width: 100%;
		text-align: center;
	}

	.checklistdek-site-info-row {
		flex-direction: column;
		gap: 2px;
	}

	.checklistdek-site-info-row dt {
		min-width: 0;
	}

	.checklistdek-activity-logs-intro a {
		display: inline-block;
		margin-left: 0;
		margin-top: 8px;
	}

	.checklistdek-onboarding-optional .checklistdek-select {
		width: 100%;
		min-width: 0;
	}

	.checklistdek-onboarding-connect-panel {
		padding: 16px;
	}

	.checklistdek-automation-step-footer-actions {
		justify-content: stretch;
	}

	.checklistdek-automation-step-footer-actions .button {
		flex: 1 1 auto;
	}
}

@media (max-width: 480px) {
	.checklistdek-stat-value {
		font-size: 1.65em;
	}

	.checklistdek-template-grid {
		grid-template-columns: 1fr;
	}

	.checklistdek-template-card-actions {
		flex-wrap: wrap;
	}
}
