.apres-wrap {
	--apres-primary: #7c3aed;
	--apres-primary-dark: #6d28d9;
	--apres-bg: #ffffff;
	--apres-bg-soft: #f8f7fc;
	--apres-border: #e5e1f5;
	--apres-text: #1e1b2e;
	--apres-text-muted: #6b6580;
	--apres-radius: 14px;
	--apres-score1: #ef4444;
	--apres-score2: #f97316;
	--apres-score3: #eab308;
	--apres-score4: #84cc16;
	--apres-score5: #16a34a;
	max-width: 880px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--apres-text);
	line-height: 1.55;
}

.apres-wrap * { box-sizing: border-box; }

.apres-breadcrumb { font-size: 0.85rem; color: var(--apres-text-muted); margin: 4px 0 16px; }
.apres-breadcrumb a { color: var(--apres-text-muted); text-decoration: none; }
.apres-breadcrumb a:hover { color: var(--apres-primary); }
.apres-breadcrumb span { margin: 0 6px; }

.apres-card {
	background: var(--apres-bg);
	border: 1px solid var(--apres-border);
	border-radius: var(--apres-radius);
	padding: 24px;
	margin-bottom: 20px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.apres-card a { color: var(--apres-primary-dark); font-weight: 600; text-decoration: none; }
.apres-card a:hover { text-decoration: underline; }

.apres-header { margin-bottom: 20px; }
.apres-title { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }
.apres-title-sm { font-size: 1.2rem; font-weight: 700; margin: 0 0 12px; }
.apres-subtitle { color: var(--apres-text-muted); margin: 0 0 16px; font-size: 0.95rem; }

.apres-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 760px) { .apres-grid { grid-template-columns: 1fr 1fr; } }

.apres-field { margin-bottom: 22px; }
.apres-field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 4px; }
.apres-field-hint { display: block; font-weight: 400; font-size: 0.78rem; color: var(--apres-text-muted); margin-top: 2px; }
.apres-field-hint select {
	margin-top: 4px;
	font-size: 0.8rem;
	padding: 3px 6px;
	border: 1px solid var(--apres-border);
	border-radius: 6px;
	background: var(--apres-bg-soft);
	color: var(--apres-text);
	max-width: 100%;
}
.apres-wrap input[type="range"] { width: 100%; margin: 10px 0 6px; accent-color: var(--apres-primary); }
.apres-field-value { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--apres-text-muted); }
.apres-field-value input[type="number"] {
	width: 60px;
	border: 1px solid var(--apres-border);
	border-radius: 8px;
	padding: 6px 8px;
	background: var(--apres-bg-soft);
	font-weight: 700;
	color: var(--apres-text);
	text-align: center;
}

.apres-results { background: var(--apres-bg-soft); border-radius: var(--apres-radius); padding: 20px; align-self: start; }
.apres-result-hero { text-align: center; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px dashed var(--apres-border); }
.apres-result-label { display: block; font-size: 0.82rem; color: var(--apres-text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; }
.apres-result-value { display: block; font-size: 3rem; font-weight: 800; color: var(--apres-primary-dark); line-height: 1.1; }
.apres-result-sub { color: var(--apres-text-muted); font-size: 0.95rem; font-weight: 600; }

.apres-composite-bar-wrap { margin-bottom: 16px; }
.apres-composite-bar-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--apres-text-muted); margin-bottom: 6px; font-weight: 600; }
.apres-composite-bar { height: 10px; border-radius: 999px; background: var(--apres-border); overflow: hidden; }
.apres-composite-bar-fill { height: 100%; background: linear-gradient(90deg, #7c3aed, #4f46e5); border-radius: 999px; transition: width 0.2s ease; width: 0%; }
.apres-next-band { font-size: 0.8rem; color: var(--apres-text-muted); margin: 8px 0 0; }

.apres-breakdown-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.apres-breakdown-table td { padding: 7px 0; border-bottom: 1px solid var(--apres-border); }
.apres-breakdown-table td:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.apres-row-total td { border-bottom: none; border-top: 2px solid var(--apres-primary); padding-top: 10px; font-size: 0.98rem; }
.apres-row-total td:first-child { font-weight: 700; }
.apres-row-total td:last-child { color: var(--apres-primary-dark); font-weight: 800; }

.apres-disclaimer { font-size: 0.78rem; color: var(--apres-text-muted); margin: 16px 0 0; line-height: 1.5; }

.apres-formula-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 16px 0; }
.apres-formula-item { text-align: center; background: var(--apres-bg-soft); border-radius: 10px; padding: 16px 10px; }
.apres-formula-pct { display: block; font-size: 1.5rem; font-weight: 800; color: var(--apres-primary); }
.apres-formula-item strong { display: block; font-size: 0.88rem; margin: 4px 0 2px; }
.apres-formula-item p { margin: 0; font-size: 0.78rem; color: var(--apres-text-muted); }

.apres-example-box { background: var(--apres-bg-soft); border-left: 3px solid var(--apres-primary); border-radius: 8px; padding: 16px 18px; margin-top: 16px; }
.apres-example-box h4 { margin: 0 0 8px; font-size: 0.95rem; }
.apres-example-box p { margin: 0 0 8px; font-size: 0.9rem; }
.apres-example-box ul { margin: 0; padding-left: 18px; font-size: 0.88rem; }
.apres-example-box li { margin-bottom: 4px; }

.apres-score-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; margin: 16px 0; }
.apres-score-table th { text-align: left; padding: 10px 8px; background: var(--apres-bg-soft); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.02em; color: var(--apres-text-muted); }
.apres-score-table td { padding: 10px 8px; border-bottom: 1px solid var(--apres-border); }
.apres-score-table td:first-child { font-weight: 800; font-size: 1.05rem; text-align: center; width: 50px; }
.apres-frq-table td:nth-child(3), .apres-frq-table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.apres-score-5 { color: var(--apres-score5); }
.apres-score-4 { color: var(--apres-score4); }
.apres-score-3 { color: var(--apres-score3); }
.apres-score-2 { color: var(--apres-score2); }
.apres-score-1 { color: var(--apres-score1); }
.apres-table-note { font-size: 0.8rem; color: var(--apres-text-muted); margin: 0 0 12px; }

.apres-steps { margin: 0; padding-left: 22px; }
.apres-steps li { margin-bottom: 12px; font-size: 0.92rem; }

.apres-explore-card { text-align: center; background: var(--apres-bg-soft); }
.apres-btn {
	display: inline-block;
	margin-top: 10px;
	padding: 12px 24px;
	background: var(--apres-primary);
	color: #fff !important;
	border-radius: 10px;
	text-decoration: none !important;
	font-weight: 700;
	font-size: 0.92rem;
}
.apres-btn:hover { background: var(--apres-primary-dark); }

.apres-faq-item { border-bottom: 1px solid var(--apres-border); padding: 14px 0; }
.apres-faq-item:last-child { border-bottom: none; padding-bottom: 0; }
.apres-faq-item h4 { margin: 0 0 6px; font-size: 1rem; }
.apres-faq-item p { margin: 0; color: var(--apres-text-muted); font-size: 0.92rem; }

@media (max-width: 520px) {
	.apres-card { padding: 18px 16px; }
	.apres-score-table { font-size: 0.8rem; }
	.apres-score-table th, .apres-score-table td { padding: 8px 5px; }
}

@media (prefers-color-scheme: dark) {
	.apres-wrap:not([data-theme="light"]) {
		--apres-bg: #17141f;
		--apres-bg-soft: #0f0d16;
		--apres-border: #2e2840;
		--apres-text: #f3f1fa;
		--apres-text-muted: #a79fc2;
	}
}
.apres-wrap[data-theme="dark"] {
	--apres-bg: #17141f;
	--apres-bg-soft: #0f0d16;
	--apres-border: #2e2840;
	--apres-text: #f3f1fa;
	--apres-text-muted: #a79fc2;
}

.apres-paper-level { margin: 6px 0 0; font-size: 0.82rem; font-weight: 600; color: var(--apres-primary-dark); }
.apres-group-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--apres-text-muted); font-weight: 700; margin: 6px 0 14px; padding-bottom: 6px; border-bottom: 1px solid var(--apres-border); }
.apres-wrap[data-theme="dark"] .apres-paper-level { color: #c4b5fd; }
@media (prefers-color-scheme: dark) { .apres-wrap:not([data-theme="light"]) .apres-paper-level { color: #c4b5fd; } }
