/**
 * StateWins report modal — follows the designer report card (figma): radio reason list with a cyan
 * selected state, free-text only for "Other reason", full-width "Send Report" button. Uses the theme's
 * semantic CSS vars (--soft/--line/--lead/--fore/--subs/--main) so it flips with the .dark ancestor.
 */
.sw-report-overlay {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(0, 0, 0, .6);
}

.sw-report-modal {
	position: relative;
	width: 100%;
	max-width: 460px;
	background: var(--soft);
	color: var(--text);
	border: 1px solid var(--line);
	border-radius: 18px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	box-shadow: 0 24px 64px rgba(0, 0, 0, .45);
}

.sw-report-title {
	color: var(--lead);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 12px;
}

/* Reason list (radios styled as circles). */
.sw-report-opts {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sw-report-opt {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 10px 4px;
	cursor: pointer;
}

.sw-report-opt input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.sw-report-radio {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
	border-radius: 9999px;
	border: 1px solid var(--line);
	background: color-mix(in oklab, var(--text) 14%, transparent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background-color .12s ease, border-color .12s ease;
}

.sw-report-opt input:checked + .sw-report-radio {
	background: var(--main);
	border-color: var(--main);
}

.sw-report-opt input:checked + .sw-report-radio::after {
	content: "";
	width: 5px;
	height: 9px;
	margin-top: -2px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.sw-report-opt input:focus-visible + .sw-report-radio {
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--main) 40%, transparent);
}

.sw-report-opt-text {
	color: var(--subs);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
}

/* Free-text field (only shown for "Other reason"). */
.sw-report-text {
	width: 100%;
	background: transparent;
	border: 1px solid var(--line);
	border-radius: 10px;
	color: var(--text);
	padding: 10px 12px;
	margin-top: 6px;
	font: inherit;
	line-height: 1.4;
	resize: vertical;
	min-height: 72px;
}

.sw-report-text:focus {
	outline: none;
	border-color: var(--main);
}

.sw-report-msg {
	color: #f87171;
	font-size: 13px;
	margin: 8px 0 0;
}

/* Full-width CTA — white bg / dark text in dark mode (var flips in light mode). */
.sw-report-submit {
	width: 100%;
	margin-top: 18px;
	background: var(--lead);
	color: var(--fore);
	border: 0;
	border-radius: 12px;
	padding: 15px 16px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}

.sw-report-submit:disabled {
	opacity: .6;
	cursor: default;
}

.sw-report-x {
	position: absolute;
	top: 16px;
	right: 18px;
	background: none;
	border: 0;
	color: var(--subs);
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	padding: 0 4px;
}

.sw-report-done {
	color: var(--lead);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
	padding: 24px 8px;
}

.sw-report-btn {
	cursor: pointer;
}
