.tlyursh-admin-page {
	--tlyursh-border: #d0d7de;
	--tlyursh-bg: #ffffff;
	--tlyursh-muted-bg: #f6f8fa;
	--tlyursh-text: #1f2328;
	--tlyursh-muted: #59636e;
	--tlyursh-accent: #8c4b10;
	--tlyursh-success: #1a7f37;
	--tlyursh-danger: #b42318;
	--tlyursh-radius: 6px;
	--tlyursh-gap: 16px;
	color: var(--tlyursh-text);
}

.tlyursh-page-intro {
	max-width: 760px;
	color: var(--tlyursh-muted);
}

.tlyursh-help-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 10px 0 0;
	color: var(--tlyursh-muted);
}

.tlyursh-help-links a {
	font-weight: 600;
	text-decoration: none;
}

.tlyursh-help-links a:hover,
.tlyursh-help-links a:focus {
	text-decoration: underline;
}

.tlyursh-domain-field {
	max-width: 480px;
}

.tlyursh-domain-status {
	margin-top: 8px;
}

.tlyursh-domain-status.is-error {
	color: var(--tlyursh-danger);
}

.tlyursh-card {
	margin: 18px 0 0;
	padding: 20px;
	border: 1px solid var(--tlyursh-border);
	border-radius: var(--tlyursh-radius);
	background: var(--tlyursh-bg);
}

.tlyursh-card h2 {
	margin: 0 0 14px;
	font-size: 18px;
	line-height: 1.3;
}

.tlyursh-card-disabled {
	opacity: 0.6;
}

.tlyursh-checkbox-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 12px;
}

.tlyursh-checkbox-row input {
	margin-top: 2px;
}

.tlyursh-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--tlyursh-gap);
}

.tlyursh-grid-compact {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tlyursh-field-group label {
	display: block;
	margin: 0 0 6px;
	font-weight: 600;
}

.tlyursh-field-group input[type="text"],
.tlyursh-field-group input[type="url"],
.tlyursh-field-group input[type="number"],
.tlyursh-field-group select {
	width: 100%;
}

.tlyursh-meta-box .tlyursh-actions,
.tlyursh-editor-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 12px 0;
}

.tlyursh-meta-box .tlyursh-status {
	margin: 0 0 12px;
	color: var(--tlyursh-muted);
}

.tlyursh-secondary-panel {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid var(--tlyursh-border);
}

.tlyursh-secondary-panel h3 {
	margin: 0 0 8px;
	font-size: 14px;
}

.tlyursh-editor-external .components-base-control {
	margin-bottom: 12px;
}

.tlyursh-progress {
	height: 10px;
	border-radius: 999px;
	background: #eceff3;
	overflow: hidden;
}

.tlyursh-progress__bar {
	height: 100%;
	width: 0;
	background: var(--tlyursh-accent);
	transition: width 140ms ease;
}

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

.tlyursh-stats-grid div {
	padding: 12px;
	border: 1px solid var(--tlyursh-border);
	border-radius: var(--tlyursh-radius);
	background: var(--tlyursh-muted-bg);
}

.tlyursh-stats-grid strong {
	display: block;
	font-size: 22px;
	line-height: 1;
}

.tlyursh-stats-grid span {
	display: block;
	margin-top: 6px;
	color: var(--tlyursh-muted);
}

.tlyursh-results {
	margin-top: 12px;
}

.tlyursh-result-item {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	border-top: 1px solid var(--tlyursh-border);
}

.tlyursh-result-item--failed strong {
	color: var(--tlyursh-danger);
}

.tlyursh-list-link {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tlyursh-link-state--empty {
	color: var(--tlyursh-muted);
}

.tlyursh-toast {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 99999;
	padding: 10px 14px;
	border: 1px solid var(--tlyursh-border);
	border-radius: var(--tlyursh-radius);
	background: #101418;
	color: #ffffff;
	opacity: 0;
	transition: opacity 160ms ease;
}

.tlyursh-toast.is-visible {
	opacity: 1;
}

.tlyursh-toast.is-error {
	background: #7a271a;
}

@media ( max-width: 782px ) {
	.tlyursh-grid,
	.tlyursh-grid-compact,
	.tlyursh-stats-grid {
		grid-template-columns: 1fr;
	}

	.tlyursh-result-item {
		flex-direction: column;
	}
}
