.tsrm-analyzer {
	--tsrm-ink: #202020;
	--tsrm-muted: #686868;
	--tsrm-line: #dedede;
	--tsrm-surface: #ffffff;
	--tsrm-soft: #f6f6f6;
	--tsrm-primary: #bd3732;
	--tsrm-primary-dark: #bd3732;
	--tsrm-ok: #2f9b68;
	--tsrm-warning: #ed9700;
	--tsrm-fail: #bd3732;
	--tsrm-info: #777777;
	--tsrm-shadow: 0 18px 50px rgba(32, 32, 32, 0.1);
	color: var(--tsrm-ink);
	font: inherit;
	scroll-margin-top: 28px;
}

.tsrm-analyzer *,
.tsrm-analyzer *::before,
.tsrm-analyzer *::after {
	box-sizing: border-box;
}

.tsrm-analyzer [hidden] {
	display: none !important;
}

.tsrm-analyzer .screen-reader-text {
	position: absolute !important;
	overflow: hidden;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.tsrm-shell {
	width: 100%;
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.tsrm-form {
	margin: 0;
}

.tsrm-form-row {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.tsrm-url {
	-webkit-appearance: none;
	appearance: none;
	min-width: 0;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 12px 15px !important;
	color: var(--tsrm-ink);
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 24px;
	background: #fff;
	border: 1px solid #ccc !important;
	border-radius: 8px !important;
	box-shadow: none !important;
	outline: none;
	transition: border-color 160ms ease, box-shadow 160ms ease;
}

.tsrm-url::placeholder {
	color: #858585;
	opacity: 1;
}

.tsrm-url:hover {
	border-color: #a8a8a8;
}

.tsrm-url:focus {
	border-color: var(--tsrm-primary) !important;
	box-shadow: 0 0 0 3px rgba(189, 55, 50, 0.14) !important;
}

.tsrm-url:disabled {
	color: #777;
	background: #f3f3f3;
	cursor: wait;
}

.tsrm-submit {
	position: relative;
	flex: 0 0 auto;
	min-width: 0;
	height: 50px;
	margin: 0;
	white-space: nowrap;
	cursor: pointer;
}

.tsrm-submit:focus-visible {
	outline: 3px solid rgba(189, 55, 50, 0.28);
	outline-offset: 3px;
}

.tsrm-submit:disabled {
	cursor: wait;
	opacity: 0.86;
}

.tsrm-submit-spinner {
	display: none;
	width: 20px;
	height: 20px;
	margin: 0 auto;
	border: 3px solid rgba(255, 255, 255, 0.42);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tsrm-spin 700ms linear infinite;
}

.tsrm-submit.is-loading .tsrm-submit-label {
	display: none;
}

.tsrm-submit.is-loading .tsrm-submit-spinner {
	display: block;
}

.tsrm-wait-warning,
.tsrm-progress-note {
	margin: 11px 2px 0;
	color: var(--tsrm-muted);
	font-size: 0.9rem;
	line-height: 1.5;
}

.tsrm-wait-warning span {
	margin-right: 5px;
}

.tsrm-form-error {
	margin: 13px 0 0;
	padding: 11px 14px;
	color: var(--tsrm-primary);
	font-size: 0.95rem;
	line-height: 1.45;
	background: #fbf1f1;
	border: 1px solid rgba(189, 55, 50, 0.28);
	border-radius: 9px;
}

.tsrm-progress {
	margin-top: 20px;
	padding: 0;
	background: transparent;
	border: 0;
	border-radius: 0;
}

.tsrm-progress-head {
	display: flex;
	gap: 18px;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.tsrm-progress-message {
	font-size: 0.98rem;
	font-weight: 650;
	line-height: 1.35;
}

.tsrm-progress-percent {
	flex: 0 0 auto;
	color: var(--tsrm-primary-dark);
	font-size: 1rem;
	font-variant-numeric: tabular-nums;
}

.tsrm-progress-track {
	position: relative;
	overflow: hidden;
	height: 12px;
	background: #e5e5e5;
	border-radius: 999px;
}

.tsrm-progress-bar {
	position: absolute;
	inset: 0 auto 0 0;
	width: 0;
	background: var(--tsrm-primary);
	border-radius: inherit;
	box-shadow: 0 0 14px rgba(189, 55, 50, 0.28);
	transition: width 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tsrm-progress-note {
	margin-top: 9px;
	font-size: 0.82rem;
}

.tsrm-results {
	margin-top: 26px;
	scroll-margin-top: 28px;
}

.tsrm-report {
	overflow: hidden;
	background: #fff;
	border: 1px solid var(--tsrm-line);
	border-radius: 16px;
	box-shadow: 0 12px 35px rgba(32, 32, 32, 0.08);
}

.tsrm-report-summary,
.tsrm-category-summary,
.tsrm-test-summary {
	list-style: none;
	cursor: pointer;
}

.tsrm-report-summary::-webkit-details-marker,
.tsrm-category-summary::-webkit-details-marker,
.tsrm-test-summary::-webkit-details-marker {
	display: none;
}

.tsrm-report-summary {
	display: flex;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	padding: 17px 22px;
	background: #202020;
	color: #fff;
}

.tsrm-report-summary strong,
.tsrm-report-summary small {
	display: block;
}

.tsrm-report-summary strong {
	font-size: 1.05rem;
}

.tsrm-report-summary small {
	margin-top: 3px;
	color: #d2d2d2;
	font-size: 0.82rem;
	font-weight: 450;
	overflow-wrap: anywhere;
}

.tsrm-report-chevron,
.tsrm-chevron {
	transition: transform 180ms ease;
}

.tsrm-report-chevron {
	font-size: 1.6rem;
	line-height: 1;
}

.tsrm-report[open] > .tsrm-report-summary .tsrm-report-chevron,
.tsrm-test[open] > .tsrm-test-summary .tsrm-chevron {
	transform: rotate(180deg);
}

.tsrm-report-content {
	padding: clamp(18px, 3vw, 30px);
}

.tsrm-overview {
	display: grid;
	grid-template-columns: 180px minmax(0, 1fr);
	gap: 28px;
	align-items: center;
}

.tsrm-score-block {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.tsrm-score-ring {
	--tsrm-score-color: var(--tsrm-fail);
	display: grid;
	width: 142px;
	height: 142px;
	place-items: center;
	background: conic-gradient(var(--tsrm-score-color) var(--tsrm-score), #e7e7e7 0);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(32, 32, 32, 0.05);
}

.tsrm-score-good .tsrm-score-ring {
	--tsrm-score-color: var(--tsrm-ok);
}

.tsrm-score-medium .tsrm-score-ring {
	--tsrm-score-color: var(--tsrm-warning);
}

.tsrm-score-inner {
	display: flex;
	width: 108px;
	height: 108px;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: #fff;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px rgba(32, 32, 32, 0.1);
}

.tsrm-score-inner strong {
	color: #202020;
	font-size: 2.1rem;
	font-weight: 600;
	letter-spacing: -0.035em;
	line-height: 1;
}

.tsrm-score-inner span {
	margin-top: 4px;
	color: var(--tsrm-muted);
	font-size: 0.78rem;
}

.tsrm-score-label {
	margin-top: 9px;
	color: var(--tsrm-muted);
	font-size: 0.74rem;
	font-weight: 650;
	letter-spacing: 0.1em;
}

.tsrm-counts {
	display: grid;
	grid-template-columns: repeat(2, minmax(120px, 1fr));
	gap: 12px;
}

.tsrm-count {
	position: relative;
	overflow: hidden;
	min-height: 86px;
	padding: 15px 17px 14px 21px;
	background: var(--tsrm-soft);
	border: 1px solid var(--tsrm-line);
	border-radius: 12px;
}

.tsrm-count::before {
	position: absolute;
	inset: 0 auto 0 0;
	width: 5px;
	background: var(--tsrm-info);
	content: '';
}

.tsrm-count-ok::before { background: #202020; }
.tsrm-count-warning::before { background: var(--tsrm-warning); }
.tsrm-count-fail::before { background: var(--tsrm-fail); }

.tsrm-count strong,
.tsrm-count span {
	display: block;
}

.tsrm-count strong {
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
}

.tsrm-count span {
	margin-top: 8px;
	color: var(--tsrm-muted);
	font-size: 0.84rem;
}

.tsrm-serp {
	margin-top: 26px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid var(--tsrm-line);
	border-left: 4px solid #202020;
	border-radius: 11px;
}

.tsrm-serp-label {
	display: block;
	margin-bottom: 9px;
	color: var(--tsrm-muted);
	font-size: 0.72rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.tsrm-serp-title {
	margin: 0 0 3px;
	color: #202020;
	font-size: 1.2rem;
	font-weight: 500;
	line-height: 1.3;
}

.tsrm-serp-url {
	color: #5f5f5f;
	font-size: 0.83rem;
	overflow-wrap: anywhere;
}

.tsrm-serp-description {
	margin: 7px 0 0;
	color: #555;
	font-size: 0.9rem;
	line-height: 1.5;
}

.tsrm-filters {
	display: flex;
	gap: 8px;
	margin: 26px 0 14px;
	overflow-x: auto;
	padding: 0 0 4px;
	scrollbar-width: thin;
}

.tsrm-filter {
	flex: 0 0 auto;
	min-height: 37px;
	margin: 0;
	padding: 7px 13px;
	color: #4f4f4f;
	font: inherit;
	font-size: 0.79rem;
	font-weight: 700;
	line-height: 1.15;
	background: #f4f4f4;
	border: 1px solid #d9d9d9;
	border-radius: 999px;
	box-shadow: none;
	cursor: pointer;
}

.tsrm-filter:hover,
.tsrm-filter:focus-visible {
	color: var(--tsrm-primary-dark);
	border-color: rgba(189, 55, 50, 0.55);
}

.tsrm-filter.is-active {
	color: #fff;
	background: var(--tsrm-ink);
	border-color: var(--tsrm-ink);
}

.tsrm-categories {
	display: grid;
	gap: 12px;
}

.tsrm-category {
	overflow: hidden;
	border: 1px solid var(--tsrm-line);
	border-radius: 12px;
}

.tsrm-category-summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 54px;
	padding: 13px 16px;
	font-size: 1rem;
	font-weight: 760;
	background: #f4f4f4;
}

.tsrm-category-summary:hover {
	background: #ededed;
}

.tsrm-category-count {
	display: inline-grid;
	min-width: 29px;
	height: 29px;
	place-items: center;
	padding: 0 7px;
	color: #595959;
	font-size: 0.76rem;
	background: #fff;
	border: 1px solid #d8d8d8;
	border-radius: 999px;
}

.tsrm-test-list {
	display: grid;
}

.tsrm-test + .tsrm-test {
	border-top: 1px solid var(--tsrm-line);
}

.tsrm-test-summary {
	display: grid;
	grid-template-columns: 32px minmax(0, 1fr) 18px;
	gap: 12px;
	align-items: start;
	padding: 16px;
	background: #fff;
}

.tsrm-test-summary:hover {
	background: #fafafa;
}

.tsrm-status-icon {
	display: inline-grid;
	width: 29px;
	height: 29px;
	place-items: center;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 850;
	line-height: 1;
	background: var(--tsrm-info);
	border-radius: 50%;
}

.tsrm-status-ok .tsrm-status-icon { background: #202020; }
.tsrm-status-warning .tsrm-status-icon { background: var(--tsrm-warning); }
.tsrm-status-fail .tsrm-status-icon { background: var(--tsrm-fail); }

.tsrm-test-title,
.tsrm-test-preview {
	display: block;
}

.tsrm-test-title {
	font-size: 0.94rem;
	line-height: 1.4;
}

.tsrm-test-preview {
	margin-top: 4px;
	color: var(--tsrm-muted);
	font-size: 0.82rem;
	line-height: 1.45;
}

.tsrm-test-preview p {
	display: inline;
	margin: 0;
}

.tsrm-chevron {
	color: #8a8a8a;
	font-size: 1.15rem;
	line-height: 1;
}

.tsrm-test-body {
	padding: 0 16px 18px 60px;
	color: #505050;
	font-size: 0.88rem;
	line-height: 1.6;
}

.tsrm-test-section + .tsrm-test-section {
	margin-top: 16px;
}

.tsrm-test-section h5 {
	margin: 0 0 6px;
	color: var(--tsrm-ink);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.035em;
	text-transform: uppercase;
}

.tsrm-rich-text > :first-child { margin-top: 0; }
.tsrm-rich-text > :last-child { margin-bottom: 0; }

.tsrm-fix {
	padding: 12px 14px;
	background: #fff8ee;
	border-left: 3px solid var(--tsrm-warning);
	border-radius: 7px;
}

.tsrm-data-list {
	margin: 5px 0;
	padding-left: 20px;
}

.tsrm-data-grid {
	display: grid;
	grid-template-columns: minmax(90px, max-content) minmax(0, 1fr);
	gap: 6px 12px;
	margin: 6px 0;
}

.tsrm-data-grid dt {
	color: var(--tsrm-muted);
	font-weight: 700;
	overflow-wrap: anywhere;
}

.tsrm-data-grid dd {
	margin: 0;
	overflow-wrap: anywhere;
}

.tsrm-data-value {
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.tsrm-kb-link {
	display: inline-flex;
	margin-top: 16px;
	color: #202020;
	font-weight: 700;
	text-decoration: none;
}

.tsrm-kb-link:hover {
	text-decoration: underline;
}

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

@keyframes tsrm-shimmer {
	to { background-position: -200% 0; }
}

@media (max-width: 640px) {
	.tsrm-shell {
		padding: 0;
		border-radius: 0;
	}

	.tsrm-form-row {
		flex-direction: column;
		gap: 10px;
	}

	.tsrm-url,
	.tsrm-submit {
		width: 100%;
		min-width: 0;
	}

	.tsrm-progress {
		padding: 0;
	}

	.tsrm-progress-head {
		align-items: flex-start;
	}

	.tsrm-report-summary {
		padding: 15px 17px;
	}

	.tsrm-overview {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.tsrm-score-ring {
		width: 130px;
		height: 130px;
	}

	.tsrm-score-inner {
		width: 98px;
		height: 98px;
	}

	.tsrm-counts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.tsrm-count {
		min-height: 80px;
		padding: 14px 10px 12px 17px;
	}

	.tsrm-count span {
		font-size: 0.78rem;
	}

	.tsrm-test-summary {
		grid-template-columns: 29px minmax(0, 1fr) 15px;
		gap: 9px;
		padding: 14px 12px;
	}

	.tsrm-test-body {
		padding: 0 12px 16px 50px;
	}

	.tsrm-data-grid {
		grid-template-columns: 1fr;
		gap: 2px;
	}

	.tsrm-data-grid dd + dt {
		margin-top: 7px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tsrm-analyzer *,
	.tsrm-analyzer *::before,
	.tsrm-analyzer *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
	}
}
