.sac-wrap, .sac-wrap *, .sac-wrap *::before, .sac-wrap *::after {
	box-sizing: border-box;
}

.sac-wrap {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2933;
	overflow-x: hidden;
}

.sac-form {
	background: #f7f8fa;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	padding: 24px;
}

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

.sac-input-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.sac-input-row input[type="text"] {
	flex: 1;
	min-width: 220px;
	padding: 12px 14px;
	border: 1px solid #ccd1d8;
	border-radius: 8px;
	font-size: 15px;
}

.sac-input-row button {
	background: #c8352e;
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 15px;
	transition: background 0.15s ease;
}

.sac-input-row button:hover {
	background: #a92a24;
}

.sac-input-row button:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sac-hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: #6b7280;
}

.sac-loading {
	text-align: center;
	padding: 30px 0;
}

.sac-spinner {
	width: 34px;
	height: 34px;
	margin: 0 auto 12px;
	border: 4px solid #e2e5e9;
	border-top-color: #c8352e;
	border-radius: 50%;
	animation: sac-spin 0.8s linear infinite;
}

.sac-pagespeed-loading {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #5a6069;
	padding: 6px 0 2px;
}

.sac-spinner-sm {
	width: 18px;
	height: 18px;
	margin: 0;
	display: inline-block;
	border: 3px solid #e2e5e9;
	border-top-color: #c8352e;
	border-radius: 50%;
	animation: sac-spin 0.8s linear infinite;
}

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

.sac-error {
	background: #fdecea;
	border: 1px solid #f5c2c0;
	color: #a92a24;
	padding: 14px 16px;
	border-radius: 8px;
	margin-top: 16px;
}

.sac-report {
	margin-top: 24px;
}

.sac-report-notes {
	margin: 12px 0 24px;
	line-height: 1.6;
	color: #374151;
}

.sac-report-notes p:first-child {
	margin-top: 0;
}
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sac-faq-item {
	border: 1px solid #e2e5e9;
	border-radius: 8px;
	padding: 12px 16px;
}

.sac-faq-item summary {
	cursor: pointer;
	font-weight: 600;
	list-style: none;
}

.sac-faq-item summary::-webkit-details-marker {
	display: none;
}

.sac-faq-item summary::before {
	content: '+';
	display: inline-block;
	width: 18px;
	color: #6b7280;
}

.sac-faq-item[open] summary::before {
	content: '−';
}

.sac-faq-answer {
	margin-top: 8px;
	padding-left: 18px;
	color: #4b5563;
	line-height: 1.55;
}

.sac-section {
	background: #fff;
	border: 1px solid #e2e5e9;
	border-radius: 10px;
	padding: 20px 24px;
	margin-bottom: 18px;
}

.sac-section h3 {
	margin-top: 0;
	margin-bottom: 14px;
	font-size: 18px;
	border-bottom: 2px solid #f0f1f3;
	padding-bottom: 8px;
}

.sac-overview {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
}

.sac-overview h3 {
	border: none;
	margin: 0;
	flex: 1 1 auto;
}

.sac-score-badge {
	font-size: 26px;
	font-weight: 700;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	flex-shrink: 0;
}

.sac-score-badge span {
	font-size: 12px;
	font-weight: 400;
	margin-left: 2px;
}

.sac-score-good { background: #1a9d5c; }
.sac-score-mid  { background: #e0a300; }
.sac-score-bad  { background: #c8352e; }

.sac-checklist {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 8px 20px;
}

.sac-checklist li {
	padding: 6px 0;
	font-size: 14px;
}

.sac-checklist .sac-fail {
	color: #a92a24;
}

.sac-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.sac-table td {
	padding: 8px 10px;
	border-bottom: 1px solid #f0f1f3;
	vertical-align: top;
	word-break: break-word;
	overflow-wrap: anywhere;
}

.sac-table td:first-child {
	width: 200px;
	max-width: 40%;
	font-weight: 600;
	color: #4b5563;
}

.sac-headings-table td {
	text-align: center;
	width: 16.6%;
}

.sac-cloud {
	line-height: 2.4;
}

.sac-cloud-word {
	display: inline-block;
	margin: 4px 8px;
	padding: 4px 10px;
	background: #f0f1f3;
	border-radius: 999px;
	color: #c8352e;
	font-weight: 600;
}

.sac-permalink-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.sac-permalink-row input {
	flex: 1;
	min-width: 220px;
	padding: 10px 12px;
	border: 1px solid #ccd1d8;
	border-radius: 8px;
	font-size: 13px;
	background: #f7f8fa;
}

.sac-copy-btn {
	background: #1f2933;
	color: #fff;
	border: none;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 13px;
}

.sac-copy-btn:hover {
	background: #374151;
}

.sac-muted {
	color: #6b7280;
	font-size: 13px;
	margin-top: 10px;
}

/* PDF download */
.sac-pdf-section p {
	margin: 0 0 12px;
	color: #4b5563;
	font-size: 14px;
}

.sac-pdf-btn {
	background: #1a9d5c;
	color: #fff;
	border: none;
	padding: 12px 22px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	font-size: 14px;
}

.sac-pdf-btn:hover {
	background: #157d49;
}

.sac-pdf-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* SEO title/description snippet preview */
.sac-snippet-desc {
	margin: 0 0 16px;
	color: #4b5563;
	font-size: 14px;
	line-height: 1.5;
}

.sac-serp {
	background: #f7f8fa;
	border: 1px solid #e2e5e9;
	border-radius: 8px;
	padding: 16px 18px;
	margin-bottom: 16px;
	font-family: arial, sans-serif;
}

.sac-serp-url {
	font-size: 13px;
	color: #202124;
	margin-bottom: 2px;
}

.sac-serp-title {
	font-size: 19px;
	color: #1a0dab;
	line-height: 1.3;
	margin-bottom: 4px;
}

.sac-serp-snippet {
	font-size: 13px;
	color: #4d5156;
	line-height: 1.5;
}

.sac-serp-meta {
	margin-top: 4px;
}

/* PageSpeed */
.sac-pagespeed .sac-overview p {
	color: #4b5563;
	font-size: 14px;
}

.sac-pagespeed {
	overflow: hidden;
}

.sac-gauge-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 28px;
	margin-bottom: 8px;
}

.sac-gauge-wrap {
	position: relative;
	width: 200px;
	max-width: 100%;
	flex-shrink: 1;
}

.sac-gauge-svg {
	width: 100%;
	display: block;
}

.sac-gauge-band {
	fill: none;
	stroke-width: 14;
	stroke-linecap: butt;
}

.sac-gauge-poor  { stroke: #e2e5e9; }
.sac-gauge-mid   { stroke: #e2e5e9; }
.sac-gauge-good  { stroke: #e2e5e9; }

.sac-gauge-wrap.sac-score-bad  .sac-gauge-poor { stroke: #c8352e; }
.sac-gauge-wrap.sac-score-mid  .sac-gauge-mid  { stroke: #e0a300; }
.sac-gauge-wrap.sac-score-good .sac-gauge-good { stroke: #1a9d5c; }

.sac-gauge-needle {
	stroke: #4b5563;
	stroke-width: 3;
	stroke-linecap: round;
}

.sac-gauge-pivot {
	fill: #fff;
	stroke: #4b5563;
	stroke-width: 3;
}

.sac-gauge-value {
	position: absolute;
	left: 50%;
	bottom: 6px;
	transform: translateX(-50%);
	font-size: 22px;
	font-weight: 700;
	color: #1f2933;
}

.sac-gauge-value span {
	font-size: 12px;
	font-weight: 400;
	color: #6b7280;
}

.sac-gauge-copy {
	flex: 1 1 260px;
	min-width: 220px;
}

.sac-gauge-title {
	font-size: 26px;
	font-weight: 700;
	color: #1f2933;
}

.sac-gauge-subtitle {
	font-size: 15px;
	font-weight: 600;
	color: #4b5563;
	margin-bottom: 8px;
}

.sac-gauge-copy p {
	margin: 0;
	font-size: 14px;
	color: #4b5563;
	line-height: 1.5;
}

.sac-pscircle-row {
	display: flex;
	flex-wrap: wrap;
	gap: 22px;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid #f0f1f3;
}

.sac-pscircle {
	text-align: center;
	width: 100px;
}

.sac-pscircle-ring {
	--sac-pct: 0;
	--sac-ring-color: #c8352e;
	width: 76px;
	height: 76px;
	margin: 0 auto 8px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: conic-gradient(var(--sac-ring-color) calc(var(--sac-pct) * 1%), #e9ebee 0);
}

.sac-pscircle-ring::before {
	content: "";
	position: absolute;
}

.sac-pscircle-ring {
	position: relative;
}

.sac-pscircle-value {
	position: relative;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 18px;
	color: #1f2933;
}

.sac-pscircle-label {
	font-size: 12px;
	font-weight: 600;
	color: #4b5563;
}

.sac-pscircle.sac-score-good .sac-pscircle-ring { --sac-ring-color: #1a9d5c; }
.sac-pscircle.sac-score-mid  .sac-pscircle-ring { --sac-ring-color: #e0a300; }
.sac-pscircle.sac-score-bad  .sac-pscircle-ring { --sac-ring-color: #c8352e; }

@media (max-width: 480px) {
	.sac-gauge-row { justify-content: center; text-align: center; }
	.sac-gauge-wrap { width: 160px; }
	.sac-gauge-copy { text-align: left; min-width: 0; flex-basis: 100%; }
	.sac-pscircle-row { justify-content: center; gap: 14px; }
	.sac-pscircle { width: 72px; }
	.sac-pscircle-ring { width: 60px; height: 60px; }
	.sac-pscircle-value { width: 46px; height: 46px; font-size: 15px; }
}

/* Next check link */
.sac-next-check {
	text-align: center;
	background: transparent;
	border: none;
	padding: 10px 0 4px;
}

.sac-next-link {
	display: inline-block;
	background: #c8352e;
	color: #fff;
	text-decoration: none;
	padding: 12px 26px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
}

.sac-next-link:hover {
	background: #a92a24;
	color: #fff;
}

@media (max-width: 600px) {
	.sac-table td:first-child {
		width: 40%;
	}
}
