.ringbot-admin {
	max-width: 1220px;
}

.ringbot-hero {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
	gap: 24px;
	margin: 24px 0;
	padding: 28px;
	border-radius: 24px;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
	border: 1px solid #e2e8f0;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.ringbot-kicker {
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #4f46e5;
}

.ringbot-hero h1,
.ringbot-admin h1 {
	margin-bottom: 12px;
	color: #0f172a;
}

.ringbot-lead {
	font-size: 15px;
	line-height: 1.6;
	color: #475569;
}

.ringbot-actions,
.ringbot-inline-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
}

.ringbot-inline-actions-spread {
	justify-content: space-between;
	align-items: center;
}

.ringbot-search-form {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.ringbot-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	margin-bottom: 24px;
}

.ringbot-grid-setup {
	align-items: start;
}

.ringbot-panel,
.ringbot-summary-card {
	padding: 24px;
	border-radius: 22px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06);
}

.ringbot-ops-note {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid #e2e8f0;
}

.ringbot-ops-note h3 {
	margin: 0 0 10px;
}

.ringbot-summary-card ul,
.ringbot-data-list,
.ringbot-checklist {
	margin: 16px 0 0;
	padding-left: 18px;
}

.ringbot-checklist li,
.ringbot-data-list li,
.ringbot-summary-card li {
	margin-bottom: 8px;
	color: #334155;
}

.ringbot-status {
	display: inline-flex;
	align-items: center;
	padding: 6px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.ringbot-status-ok {
	background: #dcfce7;
	color: #166534;
}

.ringbot-status-warning {
	background: #fef3c7;
	color: #92400e;
}

.ringbot-status-info {
	background: #dbeafe;
	color: #1d4ed8;
}

.ringbot-sync-health-panel {
	margin: 20px 0 24px;
}

.ringbot-sync-health-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px;
	margin-bottom: 18px;
}

.ringbot-sync-health-header h2 {
	margin: 0 0 6px;
}

.ringbot-sync-health-stats {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.ringbot-sync-stat {
	padding: 16px;
	border-radius: 18px;
	background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
	border: 1px solid #e2e8f0;
}

.ringbot-sync-stat-label {
	display: block;
	margin-bottom: 8px;
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
}

.ringbot-sync-stat strong {
	display: block;
	font-size: 16px;
	line-height: 1.4;
	color: #0f172a;
}

.ringbot-sync-health-alert {
	padding: 16px 18px;
	border-radius: 18px;
	background: #fff7ed;
	border: 1px solid #fed7aa;
}

.ringbot-sync-issue-list {
	margin: 12px 0 0;
	padding-left: 0;
	list-style: none;
}

.ringbot-sync-issue-list li {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 10px;
	align-items: start;
	padding: 10px 0;
	border-top: 1px solid rgba(251, 146, 60, 0.22);
}

.ringbot-sync-issue-list li:first-child {
	padding-top: 0;
	border-top: 0;
}

.ringbot-targeting-row fieldset {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px 12px;
}

.ringbot-checkbox-row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.ringbot-feature-line {
	font-size: 15px;
}

.ringbot-empty-state {
	text-align: center;
}

.ringbot-forms-table th,
.ringbot-forms-table td {
	vertical-align: middle;
}

.ringbot-table-subtext {
	margin-top: 6px;
	color: #64748b;
	font-size: 12px;
}

.ringbot-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.ringbot-shortcode-field {
	min-width: 280px;
}

.ringbot-classic-editor-button {
	margin-left: 8px;
}

.ringbot-classic-editor-modal {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(15, 23, 42, 0.48);
	z-index: 100000;
}

.ringbot-classic-editor-modal[hidden] {
	display: none;
}

.ringbot-classic-editor-modal__card {
	position: relative;
	width: min(100%, 620px);
	padding: 24px;
	border-radius: 22px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
}

.ringbot-classic-editor-modal__close {
	position: absolute;
	top: 18px;
	right: 18px;
	border: 0;
	background: transparent;
	color: #64748b;
	cursor: pointer;
}

.ringbot-classic-editor-modal__lead,
.ringbot-classic-editor-modal__empty {
	margin: 0 0 16px;
	color: #475569;
	line-height: 1.6;
}

.ringbot-classic-editor-modal__recent {
	margin-bottom: 16px;
}

.ringbot-classic-editor-modal__recent-label {
	margin: 0 0 8px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #64748b;
}

.ringbot-classic-editor-modal__recent-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ringbot-classic-editor-modal__recent-chip {
	border-radius: 999px;
}

.ringbot-classic-editor-modal__grid {
	display: grid;
	gap: 14px;
}

.ringbot-classic-editor-modal__grid label {
	display: grid;
	gap: 6px;
}

.ringbot-classic-editor-modal__grid span {
	font-weight: 600;
	color: #0f172a;
}

.ringbot-classic-editor-modal__grid input,
.ringbot-classic-editor-modal__grid select {
	width: 100%;
	min-height: 42px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid #cbd5e1;
}

.ringbot-classic-editor-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 18px;
}

@media screen and (max-width: 960px) {
	.ringbot-hero,
	.ringbot-grid {
		grid-template-columns: 1fr;
	}

	.ringbot-sync-health-stats {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ringbot-inline-actions-spread,
	.ringbot-search-form,
	.ringbot-form-actions,
	.ringbot-sync-health-header {
		align-items: stretch;
	}

	.ringbot-shortcode-field {
		min-width: 100%;
	}
}

@media screen and (max-width: 640px) {
	.ringbot-sync-health-stats,
	.ringbot-targeting-row fieldset {
		grid-template-columns: 1fr;
	}

	.ringbot-sync-issue-list li {
		grid-template-columns: 1fr;
	}
}
