.sga-app {
	max-width: 680px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #2b2b2b;
	line-height: 1.55;
}

.sga-screen {
	background: #fff;
	border: 1px solid #e4e0d8;
	border-radius: 10px;
	padding: 32px 28px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.sga-app h2 {
	margin-top: 0;
	font-size: 1.5rem;
	color: #3b3327;
}

.sga-app h3 {
	font-size: 1.15rem;
	margin-bottom: 6px;
}

.sga-intro-text {
	font-size: 1.02rem;
	color: #454038;
}

.sga-scale-help {
	font-weight: 600;
	color: #6b5d3f;
}

.sga-btn {
	display: inline-block;
	font-size: 1rem;
	font-weight: 600;
	padding: 12px 22px;
	border-radius: 6px;
	border: none;
	cursor: pointer;
	text-align: center;
	margin-top: 12px;
}

.sga-btn-primary {
	background: #7a5c3e;
	color: #fff;
}
.sga-btn-primary:hover { background: #664a30; }
.sga-btn-primary:disabled { opacity: 0.6; cursor: default; }

.sga-btn-secondary {
	background: #eee6d8;
	color: #3b3327;
}
.sga-btn-secondary:hover { background: #e2d6bf; }

.sga-btn-choice {
	background: #f6f2ea;
	border: 1px solid #d9cdb4;
	color: #3b3327;
	padding: 20px;
	flex: 1;
	font-size: 1.05rem;
}
.sga-btn-choice:hover { background: #eee0c4; }

.sga-btn-link {
	background: none;
	color: #7a5c3e;
	padding: 6px 0;
	text-decoration: underline;
	margin-top: 16px;
}

.sga-choice-row {
	display: flex;
	gap: 16px;
	margin-top: 20px;
	flex-wrap: wrap;
}

.sga-form label {
	display: block;
	font-weight: 600;
	margin-top: 14px;
	margin-bottom: 4px;
}

.sga-form input[type="text"],
.sga-form input[type="email"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #d3cabb;
	border-radius: 6px;
	font-size: 1rem;
	box-sizing: border-box;
}

.sga-error {
	color: #a3312c;
	font-weight: 600;
	margin-top: 10px;
}

.sga-progress-wrap { margin-bottom: 20px; }
.sga-progress-bar {
	background: #ece5d6;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}
.sga-progress-fill {
	background: #7a5c3e;
	height: 100%;
	transition: width 0.2s ease;
}
.sga-progress-label {
	font-size: 0.85rem;
	color: #7c7364;
	margin: 6px 0 0;
}

.sga-question {
	padding: 16px 0;
	border-bottom: 1px solid #efe9dc;
}
.sga-question:last-of-type { border-bottom: none; }
.sga-question-missing { background: #fbf0ee; border-radius: 6px; }

.sga-question-text {
	font-weight: 600;
	margin-bottom: 10px;
}

.sga-scale {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.sga-scale-option {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid #d3cabb;
	cursor: pointer;
	position: relative;
	font-weight: 600;
	color: #6b6252;
}

.sga-scale-option input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	cursor: pointer;
	margin: 0;
}

.sga-scale-option:has(input:checked) {
	background: #7a5c3e;
	border-color: #7a5c3e;
	color: #fff;
}

.sga-nav-row {
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
}

.sga-loading {
	text-align: center;
	padding: 40px 0;
	font-size: 1.1rem;
	color: #7c7364;
}

.sga-gift-card {
	background: #f8f4ea;
	border: 1px solid #e6dcc4;
	border-radius: 8px;
	padding: 18px 20px;
	margin: 16px 0;
}

.sga-gift-primary {
	border-color: #c9a35d;
	background: #fbf4e2;
}

.sga-score-table {
	width: 100%;
	border-collapse: collapse;
	margin: 20px 0;
}
.sga-score-table th,
.sga-score-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #ece5d6;
}

.sga-validate-note {
	font-size: 0.92rem;
	font-style: italic;
	color: #7c7364;
}

.sga-results-actions {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	margin-top: 10px;
}

.sga-email-status {
	margin-top: 10px;
	font-weight: 600;
}
.sga-success { color: #2e7d32; }
.sga-error-text { color: #a3312c; }

@media print {
	body * { visibility: hidden; }
	#sga-printable, #sga-printable * { visibility: visible; }
	#sga-printable { position: absolute; left: 0; top: 0; width: 100%; }
	.sga-results-actions, .sga-email-status { display: none !important; }
}

@media (max-width: 480px) {
	.sga-screen { padding: 22px 16px; }
	.sga-choice-row { flex-direction: column; }
}
