.nfss-dashboard,
.nfss-dashboard *,
.nfss-app,
.nfss-app * {
	font-family: inherit;
}

.nfss-dashboard {
	max-width: 1180px;
	margin: 0 auto;
}

.nfss-survey-picker {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin: 0 0 18px;
	padding: 16px 18px;
	border: 1px solid rgba(59, 66, 139, .13);
	border-radius: 17px;
	background: #fff;
	color: #171a3b;
}

.nfss-survey-picker label {
	font-size: 14px;
	font-weight: 800;
}

.nfss-survey-select {
	box-sizing: border-box;
	flex: 1 1 260px;
	min-width: 0;
	max-width: 100%;
	padding: 11px 14px;
	border: 1px solid rgba(91, 92, 226, .25);
	border-radius: 10px;
	background-color: #f4f6ff;
	color: #171a3b;
	font: inherit;
	cursor: pointer;
}

.nfss-app {
	--nfss-ink: #171a3b;
	--nfss-muted: #65708f;
	--nfss-surface: #ffffff;
	--nfss-soft: #f4f6ff;
	--nfss-line: rgba(59, 66, 139, .13);
	--nfss-primary: #5b5ce2;
	--nfss-secondary: #00a7a0;
	box-sizing: border-box;
	max-width: 1180px;
	margin: 0 auto;
	color: var(--nfss-ink);
	font: inherit;
}

.nfss-app *,
.nfss-app *::before,
.nfss-app *::after {
	box-sizing: border-box;
}

.nfss-loading,
.nfss-error-panel,
.nfss-empty-state,
.nfss-noscript {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	padding: 22px;
	border: 1px solid var(--nfss-line);
	border-radius: 18px;
	background: var(--nfss-surface);
	box-shadow: 0 10px 30px rgba(31, 37, 105, .06);
}

.nfss-loading {
	justify-content: center;
	min-height: 144px;
	color: var(--nfss-muted);
	font-weight: 700;
}

.nfss-loading-orb {
	width: 18px;
	height: 18px;
	border: 3px solid rgba(91, 92, 226, .18);
	border-top-color: var(--nfss-primary);
	border-radius: 50%;
	animation: nfss-spin .75s linear infinite;
}

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

.nfss-hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	overflow: hidden;
	margin-bottom: 18px;
	padding: clamp(24px, 5vw, 44px);
	border: 1px solid rgba(91, 92, 226, .20);
	border-radius: 24px;
	background:
		radial-gradient(circle at 87% 18%, rgba(0, 167, 160, .23), transparent 27%),
		radial-gradient(circle at 75% 112%, rgba(255, 138, 91, .23), transparent 33%),
		linear-gradient(135deg, #f4f4ff, #ffffff 62%);
	box-shadow: 0 18px 45px rgba(49, 57, 148, .10);
}

.nfss-hero::after {
	position: absolute;
	right: -36px;
	top: -42px;
	width: 150px;
	height: 150px;
	border: 22px solid rgba(91, 92, 226, .10);
	border-radius: 50%;
	content: '';
	pointer-events: none;
}

.nfss-hero-copy,
.nfss-count-pill {
	position: relative;
	z-index: 1;
}

.nfss-eyebrow {
	margin: 0 0 8px;
	color: var(--nfss-primary);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .10em;
	text-transform: uppercase;
}

.nfss-title {
	margin: 0;
	font-size: clamp(25px, 4vw, 42px);
	line-height: 1.08;
	letter-spacing: -.035em;
}

.nfss-subtitle {
	margin: 12px 0 0;
	color: var(--nfss-muted);
	font-size: 15px;
}

.nfss-count-pill {
	display: grid;
	min-width: 118px;
	padding: 16px 18px;
	border: 1px solid rgba(91, 92, 226, .15);
	border-radius: 16px;
	background: rgba(255, 255, 255, .75);
	text-align: center;
	backdrop-filter: blur(8px);
}

.nfss-count-pill strong {
	font-size: 29px;
	line-height: 1;
	letter-spacing: -.04em;
}

.nfss-count-pill span {
	margin-top: 5px;
	color: var(--nfss-muted);
	font-size: 12px;
	font-weight: 700;
}

.nfss-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 18px;
	margin: 18px 0;
	padding: 16px 18px;
	border: 1px solid var(--nfss-line);
	border-radius: 17px;
	background: var(--nfss-surface);
	box-shadow: 0 8px 24px rgba(31, 37, 105, .045);
}

.nfss-filter-label {
	font-size: 14px;
	font-weight: 800;
	white-space: nowrap;
}

.nfss-filter-choices {
	display: flex;
	flex: 1 1 400px;
	flex-wrap: wrap;
	gap: 8px;
}

.nfss-filter-choice,
.nfss-mode-button,
.nfss-answer {
	font: inherit;
	cursor: pointer;
}

.nfss-filter-choice {
	padding: 8px 12px;
	border: 1px solid var(--nfss-line);
	border-radius: 999px;
	background: #fff;
	color: #4e587b;
	font-size: 13px;
	font-weight: 750;
	transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.nfss-filter-choice:hover:not(:disabled),
.nfss-filter-choice.is-active {
	border-color: var(--nfss-primary);
	background: var(--nfss-primary);
	color: #fff;
	box-shadow: 0 7px 16px rgba(91, 92, 226, .23);
	transform: translateY(-1px);
}

.nfss-filter-choice:disabled {
	cursor: not-allowed;
	opacity: .47;
}

.nfss-summary-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 18px;
}

.nfss-summary-item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 16px;
	border: 1px solid var(--nfss-line);
	border-radius: 16px;
	background: var(--nfss-surface);
}

.nfss-summary-item strong {
	color: var(--nfss-primary);
	font-size: 24px;
	letter-spacing: -.03em;
}

.nfss-summary-item span {
	color: var(--nfss-muted);
	font-size: 13px;
	font-weight: 650;
	line-height: 1.25;
}

.nfss-summary-updated strong {
	color: var(--nfss-secondary);
}

.nfss-insights {
	margin: 0 0 18px;
	padding: 20px 22px;
	border: 1px solid rgba(0, 167, 160, .20);
	border-radius: 18px;
	background: linear-gradient(110deg, rgba(0, 167, 160, .075), rgba(91, 92, 226, .045));
}

.nfss-insights h3 {
	margin: 0 0 12px;
	font-size: 16px;
}

.nfss-summary-text {
	margin: 0;
	color: #3c476a;
	font-size: 14px;
	line-height: 1.65;
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

.nfss-insights ul {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nfss-insights li {
	position: relative;
	padding-left: 22px;
	color: #3c476a;
	font-size: 14px;
	line-height: 1.5;
}

.nfss-insights li::before {
	position: absolute;
	left: 0;
	top: .44em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--nfss-secondary), var(--nfss-primary));
	content: '';
}

.nfss-question-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}

.nfss-question-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 22px;
	border: 1px solid var(--nfss-line);
	border-radius: 20px;
	background: var(--nfss-surface);
	box-shadow: 0 10px 24px rgba(31, 37, 105, .045);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nfss-question-card:hover {
	border-color: rgba(91, 92, 226, .34);
	box-shadow: 0 16px 34px rgba(31, 37, 105, .10);
	transform: translateY(-2px);
}

.nfss-card-heading {
	min-height: 64px;
}

.nfss-question-title {
	margin: 0;
	font-size: 18px;
	line-height: 1.28;
	letter-spacing: -.015em;
}

.nfss-card-meta,
.nfss-legacy-note,
.nfss-multiple-note {
	margin: 8px 0 0;
	color: var(--nfss-muted);
	font-size: 12px;
	font-weight: 650;
	line-height: 1.45;
}

.nfss-legacy-note {
	color: #8c5f24;
}

.nfss-multiple-note {
	color: #526182;
}

.nfss-mode-switch {
	display: flex;
	align-self: flex-start;
	gap: 3px;
	margin: 17px 0 12px;
	padding: 3px;
	border-radius: 10px;
	background: var(--nfss-soft);
}

.nfss-mode-button {
	padding: 6px 8px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: var(--nfss-muted);
	font-size: 11px;
	font-weight: 800;
	transition: background .16s ease, color .16s ease, box-shadow .16s ease;
}

.nfss-mode-button:hover,
.nfss-mode-button.is-active {
	background: #fff;
	color: var(--nfss-primary);
	box-shadow: 0 2px 8px rgba(38, 44, 114, .10);
}

.nfss-chart-wrap {
	position: relative;
	height: 272px;
	flex-shrink: 0;
	margin: 0 -3px;
}

.nfss-chart {
	width: 100% !important;
	height: 100% !important;
}

.nfss-answers {
	display: grid;
	gap: 6px;
	margin-top: 14px;
}

.nfss-answer {
	display: grid;
	grid-template-columns: 10px minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 9px;
	width: 100%;
	padding: 8px 9px;
	border: 1px solid transparent;
	border-radius: 10px;
	background: transparent;
	color: var(--nfss-ink);
	text-align: left;
	transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.nfss-answer:hover,
.nfss-answer.is-active {
	border-color: rgba(91, 92, 226, .16);
	background: var(--nfss-soft);
	transform: translateX(2px);
}

.nfss-answer-color {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(91, 92, 226, .08);
}

.nfss-answer-label {
	min-width: 0;
	overflow: hidden;
	font-size: 13px;
	font-weight: 650;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.nfss-answer-count {
	font-size: 13px;
}

.nfss-answer-percentage {
	min-width: 49px;
	color: var(--nfss-muted);
	font-size: 12px;
	font-weight: 750;
	text-align: right;
}

.nfss-error-panel {
	flex-direction: column;
	align-items: flex-start;
	border-color: rgba(191, 44, 70, .25);
	background: #fff8f9;
	color: #7d2132;
}

.nfss-error-panel span {
	font-size: 14px;
}

.nfss-shortcode-error {
	margin: 16px 0;
	padding: 12px 14px;
	border-left: 4px solid #b32d2e;
	background: #fff4f4;
	color: #6b1f20;
}

.nfss-empty-state {
	justify-content: center;
	color: var(--nfss-muted);
}

.nfss-survey-select:focus-visible,
.nfss-filter-choice:focus-visible,
.nfss-mode-button:focus-visible,
.nfss-answer:focus-visible {
	outline: 3px solid rgba(0, 167, 160, .45);
	outline-offset: 2px;
}

@media (max-width: 760px) {
	.nfss-hero {
		align-items: flex-start;
		flex-direction: column;
	}

	.nfss-count-pill {
		min-width: 0;
		grid-template-columns: auto auto;
		gap: 7px;
		align-items: baseline;
		padding: 11px 14px;
	}

	.nfss-count-pill span {
		margin: 0;
	}

	.nfss-summary-grid,
	.nfss-question-grid {
		grid-template-columns: 1fr;
	}

	.nfss-card-heading {
		min-height: 0;
	}
}

@media (max-width: 440px) {
	.nfss-hero,
	.nfss-question-card {
		padding: 18px;
		border-radius: 17px;
	}

	.nfss-filter {
		padding: 14px;
	}

	.nfss-chart-wrap {
		height: 235px;
	}

	.nfss-mode-button {
		padding: 6px 6px;
		font-size: 10px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nfss-app *,
	.nfss-app *::before,
	.nfss-app *::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important;
	}
}
