.spo-tools-home,
.spo-tools-widget {
	border: 1px solid #d7dee8;
	border-radius: 8px;
	background: #ffffff;
	color: #172033;
	padding: 24px;
}

.spo-tools-home__header {
	max-width: 760px;
	margin-bottom: 20px;
}

.spo-tools-home__header h2,
.spo-tools-widget h2 {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.25;
}

.spo-tools-home__header p,
.spo-tools-widget p {
	margin: 0;
	color: #4f5d75;
}

.spo-tools-home__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.spo-tools-card {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	padding: 16px;
	background: #f8fafc;
}

.spo-tools-card h3 {
	margin: 0 0 8px;
	font-size: 17px;
	line-height: 1.3;
}

.spo-tools-card p {
	margin: 0 0 12px;
	color: #4f5d75;
	font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
	font-size: 13px;
}

.spo-tools-badge {
	display: inline-flex;
	align-items: center;
	border-radius: 999px;
	background: #eaf2ff;
	color: #174ea6;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	padding: 6px 10px;
}

.spo-tools-widget__body {
	max-width: 720px;
}

.spo-tools-widget__header,
.spo-tools-result__header,
.spo-tools-actions {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.spo-tools-widget__header {
	justify-content: space-between;
	margin-bottom: 10px;
}

.spo-tools-form {
	margin-top: 18px;
}

.spo-tools-two-col {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 14px;
}

.spo-tools-label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
}

.spo-tools-textarea {
	width: 100%;
	min-height: 220px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	box-sizing: border-box;
	color: #172033;
	font: inherit;
	line-height: 1.5;
	padding: 12px;
	resize: vertical;
}

.spo-tools-actions {
	margin-top: 12px;
}

.spo-tools-button,
.spo-tools-copy {
	border: 1px solid #174ea6;
	border-radius: 8px;
	background: #174ea6;
	color: #ffffff;
	cursor: pointer;
	font-weight: 700;
	line-height: 1;
	padding: 11px 16px;
}

.spo-tools-button--ghost,
.spo-tools-copy {
	background: #ffffff;
	color: #174ea6;
}

.spo-tools-result {
	border-top: 1px solid #e2e8f0;
	margin-top: 22px;
	padding-top: 18px;
}

.spo-tools-result__header {
	justify-content: space-between;
	margin-bottom: 12px;
}

.spo-tools-result__header h3,
.spo-tools-result__section h4 {
	margin: 0;
}

.spo-tools-score {
	border-radius: 8px;
	background: #ecfdf3;
	color: #166534;
	font-weight: 800;
	padding: 8px 10px;
}

.spo-tools-result__section {
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #f8fafc;
	margin-top: 10px;
	padding: 14px;
}

.spo-tools-result__section ul {
	margin: 10px 0 0 18px;
	padding: 0;
}

.spo-tools-result__section li {
	margin-bottom: 8px;
}

.spo-tools-error {
	border-left: 4px solid #b42318;
	background: #fff1f0;
	color: #7a271a;
	margin: 0;
	padding: 12px;
}

.spo-tools-copy.is-copied {
	background: #ecfdf3;
	border-color: #166534;
	color: #166534;
}

@media (max-width: 640px) {
	.spo-tools-home,
	.spo-tools-widget {
		padding: 18px;
	}

	.spo-tools-button,
	.spo-tools-copy {
		width: 100%;
	}
}

.spo-tools {
	display: grid;
	gap: 24px;
	border: 0;
	background: transparent;
	padding: 0;
}

.spo-tools-hero,
.spo-tools-section,
.spo-tools-widget {
	border: 1px solid #d7e2ef;
	border-radius: 8px;
	background: #ffffff;
	box-shadow: 0 18px 40px rgba(11, 46, 85, 0.07);
}

.spo-tools-hero {
	display: grid;
	gap: 18px;
	padding: 28px;
}

.spo-tools-hero h1 {
	color: #08233f;
	font-size: clamp(30px, 4vw, 44px);
	line-height: 1.08;
	margin: 6px 0 10px;
}

.spo-tools-hero p,
.spo-tools-section__head p,
.spo-tools-card p,
.spo-tools-widget__header p,
.spo-tools-reassurance,
.spo-form-help {
	color: #50627a;
	line-height: 1.6;
}

.spo-tools-hero__actions,
.spo-tools-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.spo-primary-btn,
.spo-secondary-btn,
.spo-tools-card__action,
.spo-tools-button,
.spo-tools-copy {
	align-items: center;
	border-radius: 8px;
	cursor: pointer;
	display: inline-flex;
	font-weight: 800;
	justify-content: center;
	line-height: 1.15;
	min-height: 44px;
	padding: 12px 16px;
	text-decoration: none;
}

.spo-primary-btn,
.spo-tools-card__action,
.spo-tools-button {
	background: #0b4f86;
	border: 1px solid #0b4f86;
	color: #ffffff;
}

.spo-secondary-btn,
.spo-tools-button--ghost,
.spo-tools-copy {
	background: #ffffff;
	border: 1px solid #b9cbe0;
	color: #0b4f86;
}

.spo-primary-btn:focus-visible,
.spo-secondary-btn:focus-visible,
.spo-tools-card__action:focus-visible,
.spo-tools-button:focus-visible,
.spo-tools-copy:focus-visible,
.spo-tools-textarea:focus-visible {
	outline: 3px solid rgba(11, 79, 134, 0.28);
	outline-offset: 2px;
}

.spo-tools-kicker {
	color: #0b4f86;
	display: inline-flex;
	font-size: 12px;
	font-weight: 900;
	letter-spacing: 0;
	text-transform: uppercase;
}

.spo-tools-section {
	padding: 24px;
}

.spo-tools-section__head {
	margin-bottom: 16px;
	max-width: 780px;
}

.spo-tools-section__head h2 {
	color: #08233f;
	font-size: 26px;
	line-height: 1.2;
	margin: 0 0 8px;
}

.spo-tools-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.spo-tools .spo-tools-card {
	background: #f8fbff;
	border: 1px solid #dbe6f2;
	border-radius: 8px;
	display: grid;
	gap: 16px;
	min-height: 230px;
	padding: 18px;
}

.spo-tools .spo-tools-card h3 {
	color: #08233f;
	font-size: 19px;
	line-height: 1.25;
	margin: 12px 0 8px;
}

.spo-tools .spo-tools-card p {
	font-family: inherit;
	font-size: 15px;
	margin: 0;
}

.spo-status-badge {
	align-items: center;
	background: #eaf3fb;
	border: 1px solid #c9ddec;
	border-radius: 999px;
	color: #0b4f86;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 7px 10px;
	width: fit-content;
}

.spo-tools-card__action {
	align-self: end;
	width: fit-content;
}

.spo-tools-card__action--disabled {
	background: #eef3f8;
	border-color: #d7e2ef;
	color: #64748b;
	cursor: not-allowed;
}

.spo-tools-widget {
	margin-top: 24px;
	padding: 0;
}

.spo-tools-widget__body {
	max-width: none;
	padding: 24px;
}

.spo-tools-widget__header {
	align-items: flex-start;
	border-bottom: 1px solid #e6edf5;
	gap: 16px;
	padding-bottom: 18px;
}

.spo-tools-widget__header h2 {
	color: #08233f;
	font-size: 28px;
	line-height: 1.15;
	margin: 4px 0 8px;
}

.spo-tools-reassurance {
	background: #f4f8fc;
	border-left: 4px solid #0b4f86;
	border-radius: 8px;
	margin: 18px 0 0;
	padding: 12px 14px;
}

.spo-tools-form {
	display: grid;
	gap: 10px;
	margin-top: 18px;
}

.spo-tools-label {
	color: #08233f;
	font-size: 15px;
	margin-bottom: 0;
}

.spo-tools-textarea {
	border-color: #b9cbe0;
	box-shadow: inset 0 1px 2px rgba(11, 46, 85, 0.04);
	min-height: 240px;
}

.spo-form-help {
	font-size: 14px;
	margin: 0;
}

.spo-tools-result {
	border-top: 1px solid #e6edf5;
	margin-top: 26px;
	padding-top: 22px;
}

.spo-tools-result__header {
	align-items: flex-start;
	gap: 12px;
}

.spo-tools-result__header h3 {
	color: #08233f;
	font-size: 23px;
	line-height: 1.2;
	margin: 4px 0 0;
}

.spo-tools-score {
	background: #e8f7ef;
	border: 1px solid #b9e7c7;
	border-radius: 8px;
	color: #166534;
	font-size: 18px;
}

.spo-tools-result__section {
	background: #ffffff;
	border-color: #dbe6f2;
	box-shadow: 0 8px 24px rgba(11, 46, 85, 0.05);
}

.spo-tools-result__section h4 {
	color: #08233f;
}

@media (max-width: 720px) {
	.spo-tools-hero,
	.spo-tools-section,
	.spo-tools-widget__body {
		padding: 18px;
	}

	.spo-tools-hero h1 {
		font-size: 30px;
	}

	.spo-primary-btn,
	.spo-secondary-btn,
	.spo-tools-card__action,
	.spo-tools-button,
	.spo-tools-copy {
		width: 100%;
	}

	.spo-tools .spo-tools-card {
		min-height: 0;
	}

	.spo-tools-widget__header,
	.spo-tools-result__header {
		display: grid;
	}
}

.spo-tools-home.spo-tools {
	box-sizing: border-box;
	display: grid;
	gap: 22px;
	margin: 0 auto 32px;
	max-width: 1160px;
	width: min(100%, 1160px);
}

.spo-tools-home.spo-tools,
.spo-tools-home.spo-tools * {
	box-sizing: border-box;
}

.spo-tools-home .spo-tools-hero,
.spo-tools-home .spo-tools-section {
	background: #ffffff;
	border: 1px solid #d5e2ef;
	border-radius: 8px;
	box-shadow: 0 16px 34px rgba(8, 35, 63, 0.08);
	padding: 24px;
}

.spo-tools-home .spo-tools-hero {
	background: linear-gradient(135deg, #ffffff 0%, #f4f8fc 100%);
}

.spo-tools-home .spo-tools-kicker,
.spo-tools-widget .spo-tools-kicker {
	color: #0b4f86;
	display: block;
	font-size: 12px;
	font-weight: 900;
	margin-bottom: 8px;
	text-transform: uppercase;
}

.spo-tools-home .spo-tools-hero h1 {
	color: #08233f;
	font-size: 40px;
	line-height: 1.12;
	margin: 0 0 12px;
}

.spo-tools-home .spo-tools-hero p {
	color: #41546b;
	font-size: 17px;
	line-height: 1.6;
	margin: 0;
	max-width: 760px;
}

.spo-tools-home .spo-tools-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 18px;
}

.spo-tools-home .spo-primary-btn,
.spo-tools-home .spo-secondary-btn,
.spo-tools-home .spo-tools-card__action,
.spo-tools-widget .spo-tools-button,
.spo-tools-widget .spo-tools-copy {
	border-radius: 8px;
	display: inline-flex;
	font-family: inherit;
	font-size: 15px;
	font-weight: 800;
	justify-content: center;
	min-height: 44px;
	padding: 12px 16px;
	text-decoration: none;
}

.spo-tools-home .spo-primary-btn,
.spo-tools-home .spo-tools-card__action,
.spo-tools-widget .spo-tools-button {
	background: #0b4f86;
	border: 1px solid #0b4f86;
	color: #ffffff;
}

.spo-tools-home .spo-secondary-btn,
.spo-tools-widget .spo-tools-button--ghost,
.spo-tools-widget .spo-tools-copy {
	background: #ffffff;
	border: 1px solid #b8cbdf;
	color: #0b4f86;
}

.spo-tools-home .spo-tools-section__head {
	align-items: flex-start;
	display: flex;
	gap: 18px;
	justify-content: space-between;
	margin-bottom: 16px;
	max-width: none;
}

.spo-tools-home .spo-tools-section__head h2 {
	color: #08233f;
	font-size: 28px;
	line-height: 1.2;
	margin: 0 0 8px;
}

.spo-tools-home .spo-tools-section__head p {
	color: #50627a;
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
	max-width: 760px;
}

.spo-tools-home .spo-tools-section__toggle {
	align-items: center;
	background: #eef5fb;
	border: 1px solid #c7daeb;
	border-radius: 8px;
	color: #0b4f86;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 800;
	min-height: 40px;
	padding: 9px 12px;
	white-space: nowrap;
}

.spo-tools-home .spo-tools-section__toggle[aria-expanded="true"] .spo-tools-section__toggle-open,
.spo-tools-home .spo-tools-section__toggle[aria-expanded="false"] .spo-tools-section__toggle-close,
.spo-tools-widget .spo-tools-section__toggle[aria-expanded="true"] .spo-tools-section__toggle-open,
.spo-tools-widget .spo-tools-section__toggle[aria-expanded="false"] .spo-tools-section__toggle-close {
	display: none;
}

.spo-tools-home .spo-tools-grid {
	display: grid;
	gap: 14px;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.spo-tools-home .spo-tools-grid[hidden] {
	display: none;
}

.spo-tools-home .spo-tools-card {
	background: #f8fbff;
	border: 1px solid #dbe7f2;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	justify-content: space-between;
	min-height: 230px;
	padding: 18px;
}

.spo-tools-home .spo-tools-card h3 {
	color: #08233f;
	font-size: 19px;
	line-height: 1.25;
	margin: 12px 0 8px;
}

.spo-tools-home .spo-tools-card p {
	color: #41546b;
	font-family: inherit;
	font-size: 15px;
	line-height: 1.55;
	margin: 0;
}

.spo-tools-home .spo-status-badge,
.spo-tools-widget .spo-status-badge {
	background: #eaf3fb;
	border: 1px solid #c9ddec;
	border-radius: 999px;
	color: #0b4f86;
	display: inline-flex;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	padding: 7px 10px;
	width: fit-content;
}

.spo-tools-home .spo-tools-card__action {
	width: fit-content;
}

.spo-tools-home .spo-tools-card__action--disabled {
	background: #edf3f8;
	border-color: #d7e2ef;
	color: #66788f;
}

.spo-tools-widget {
	box-sizing: border-box;
	margin: 24px auto;
	max-width: 1160px;
	width: min(100%, 1160px);
}

.spo-tools-widget [data-spo-tools-panel][hidden] {
	display: none;
}

.spo-tools-widget .spo-tools-section__toggle {
	align-items: center;
	background: #ffffff;
	border: 1px solid #bfd4e8;
	border-radius: 999px;
	color: #0b4f86;
	cursor: pointer;
	display: inline-flex;
	font: inherit;
	font-weight: 900;
	justify-content: center;
	min-height: 42px;
	padding: 10px 16px;
	white-space: nowrap;
}

.spo-tools-widget .spo-tools-section__toggle:focus-visible,
.spo-tools-home .spo-tools-section__toggle:focus-visible {
	outline: 3px solid rgba(11, 79, 134, 0.26);
	outline-offset: 2px;
}

.spo-tools-access {
	background: #f8fbff;
	border: 1px solid #dbe7f2;
	border-radius: 8px;
	display: grid;
	gap: 10px;
	margin: 18px 0;
	padding: 18px;
}

.spo-tools-access strong {
	color: #08233f;
	font-size: 18px;
}

.spo-tools-access p {
	color: #41546b;
	margin: 0;
}

.spo-tools-widget,
.spo-tools-widget * {
	box-sizing: border-box;
}

@media (max-width: 980px) {
	.spo-tools-home .spo-tools-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 680px) {
	.spo-tools-home .spo-tools-hero,
	.spo-tools-home .spo-tools-section,
	.spo-tools-widget .spo-tools-widget__body {
		padding: 16px;
	}

	.spo-tools-home .spo-tools-hero h1 {
		font-size: 30px;
	}

	.spo-tools-home .spo-tools-section__head {
		display: grid;
	}

	.spo-tools-home .spo-tools-grid {
		grid-template-columns: 1fr;
	}

	.spo-tools-home .spo-primary-btn,
	.spo-tools-home .spo-secondary-btn,
	.spo-tools-home .spo-tools-card__action,
	.spo-tools-home .spo-tools-section__toggle,
	.spo-tools-widget .spo-tools-button,
	.spo-tools-widget .spo-tools-copy {
		width: 100%;
	}
}
