.atrc-card {
	background: #ffffff;
	border: 1px solid #d8dee8;
	border-radius: 8px;
	box-shadow: 0 10px 28px rgba(20, 32, 52, 0.08);
	color: #172033;
	font-family: inherit;
	margin: 24px auto;
	max-width: 820px;
	padding: 24px;
}

.atrc-card * {
	box-sizing: border-box;
}

.atrc-header {
	border-bottom: 1px solid #edf0f5;
	margin-bottom: 20px;
	padding-bottom: 16px;
}

.atrc-header h2 {
	font-size: 1.55rem;
	line-height: 1.2;
	margin: 0 0 8px;
}

.atrc-header p {
	color: #526071;
	margin: 0;
}

.atrc-form {
	display: grid;
	gap: 10px;
}

.atrc-form label {
	font-weight: 700;
}

.atrc-input-row {
	display: grid;
	gap: 10px;
	grid-template-columns: minmax(0, 1fr) auto;
}

.atrc-form input,
.atrc-form select {
	border: 1px solid #b8c2d2;
	border-radius: 6px;
	color: #172033;
	font: inherit;
	min-height: 44px;
	padding: 10px 12px;
	width: 100%;
}

.atrc-form input:focus,
.atrc-form select:focus {
	border-color: #1769e0;
	box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.14);
	outline: none;
}

.atrc-form button {
	align-items: center;
	background: #1769e0;
	border: 0;
	border-radius: 6px;
	color: #ffffff;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 700;
	justify-content: center;
	min-height: 44px;
	padding: 10px 16px;
	white-space: nowrap;
}

.atrc-form button:disabled {
	cursor: wait;
	opacity: 0.72;
}

.atrc-loading {
	align-items: center;
	color: #526071;
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.atrc-loading[hidden] {
	display: none;
}

.atrc-spinner {
	animation: atrc-spin 0.8s linear infinite;
	border: 3px solid #dce4ef;
	border-radius: 50%;
	border-top-color: #1769e0;
	display: inline-block;
	height: 20px;
	width: 20px;
}

@keyframes atrc-spin {
	to {
		transform: rotate(360deg);
	}
}

.atrc-results {
	margin-top: 20px;
}

.atrc-result-summary,
.atrc-error,
.atrc-good,
.atrc-warnings {
	border-radius: 8px;
	padding: 14px 16px;
}

.atrc-result-summary {
	display: grid;
	gap: 4px;
	margin-bottom: 14px;
}

.atrc-result-summary.is-valid,
.atrc-good {
	background: #edf8f2;
	border: 1px solid #addbc1;
	color: #114a2a;
}

.atrc-result-summary.has-warning,
.atrc-warnings {
	background: #fff7e8;
	border: 1px solid #f1ca82;
	color: #6b4600;
}

.atrc-error {
	background: #fff0f1;
	border: 1px solid #e6a0a8;
	color: #7a1f2a;
	display: grid;
	gap: 4px;
}

.atrc-meta-grid {
	display: grid;
	gap: 10px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 14px 0;
}

.atrc-meta-grid div {
	background: #f6f8fb;
	border: 1px solid #e3e8f0;
	border-radius: 8px;
	padding: 12px;
}

.atrc-meta-grid span {
	color: #526071;
	display: block;
	font-size: 0.85rem;
	margin-bottom: 3px;
}

.atrc-meta-grid strong {
	color: #172033;
}

.atrc-chain {
	counter-reset: none;
	display: grid;
	gap: 10px;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.atrc-chain li {
	border: 1px solid #e3e8f0;
	border-radius: 8px;
	padding: 14px;
}

.atrc-hop-head {
	align-items: center;
	display: grid;
	gap: 10px;
	grid-template-columns: auto minmax(0, 1fr) auto;
}

.atrc-hop-number {
	align-items: center;
	background: #eaf1fb;
	border-radius: 50%;
	color: #17406e;
	display: inline-flex;
	font-weight: 700;
	height: 28px;
	justify-content: center;
	width: 28px;
}

.atrc-hop-head code {
	background: #f6f8fb;
	border-radius: 5px;
	color: #172033;
	display: block;
	font-size: 0.92rem;
	overflow-wrap: anywhere;
	padding: 5px 7px;
	white-space: normal;
}

.atrc-status {
	border-radius: 999px;
	display: inline-flex;
	font-size: 0.85rem;
	font-weight: 700;
	justify-content: center;
	min-width: 70px;
	padding: 5px 8px;
}

.atrc-status-ok {
	background: #dff4e8;
	color: #126134;
}

.atrc-status-redirect {
	background: #e7f0ff;
	color: #164f9f;
}

.atrc-status-bad {
	background: #ffe6e9;
	color: #8b1f2d;
}

.atrc-hop-details {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 12px 0 0;
}

.atrc-hop-details div {
	min-width: 0;
}

.atrc-hop-details .atrc-target {
	grid-column: 1 / -1;
}

.atrc-hop-details dt {
	color: #526071;
	font-size: 0.82rem;
	font-weight: 700;
	margin: 0 0 2px;
}

.atrc-hop-details dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.atrc-warnings h3 {
	font-size: 1rem;
	margin: 0 0 8px;
}

.atrc-warnings ul {
	margin: 0;
	padding-left: 20px;
}

.atrc-warnings li + li {
	margin-top: 6px;
}

@media (max-width: 680px) {
	.atrc-card {
		padding: 18px;
	}

	.atrc-input-row,
	.atrc-meta-grid,
	.atrc-hop-head,
	.atrc-hop-details {
		grid-template-columns: 1fr;
	}

	.atrc-form button,
	.atrc-status {
		width: 100%;
	}
}
