.bad-hc-calculator {
	--bad-hc-accent: #7a1f1f;
	--bad-hc-accent-dark: #4d1212;
	--bad-hc-bg: #ffffff;
	--bad-hc-panel: #f7f5f2;
	--bad-hc-border: #e4e0da;
	--bad-hc-text: #1e1b16;
	--bad-hc-muted: #6b655c;

	max-width: 960px;
	margin: 2rem auto;
	background: var(--bad-hc-bg);
	border: 1px solid var(--bad-hc-border);
	border-radius: 14px;
	overflow: hidden;
	font-family: inherit;
	color: var(--bad-hc-text);
	box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

.bad-hc-body {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 0;
}

@media (max-width: 760px) {
	.bad-hc-body {
		grid-template-columns: 1fr;
	}
}

.bad-hc-sliders {
	padding: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1.75rem;
}

.bad-hc-modifiers {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--bad-hc-border);
}

.bad-hc-modifier-group {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.bad-hc-modifier-label {
	font-weight: 700;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bad-hc-muted);
	margin-right: 0.15rem;
}

.bad-hc-segmented {
	display: inline-flex;
	background: var(--bad-hc-panel);
	border: 1px solid var(--bad-hc-border);
	border-radius: 10px;
	padding: 3px;
	gap: 2px;
}

.bad-hc-pill {
	position: relative;
	cursor: pointer;
	display: block;
}

.bad-hc-pill input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
	pointer-events: none;
}

.bad-hc-pill span {
	display: block;
	padding: 0.5rem 1.15rem;
	border-radius: 7px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--bad-hc-muted);
	background: transparent;
	user-select: none;
	white-space: nowrap;
	transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.bad-hc-pill:hover input:not(:checked) + span {
	color: var(--bad-hc-text);
}

.bad-hc-pill input:checked + span {
	background: var(--bad-hc-accent-dark);
	color: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.bad-hc-pill input:focus-visible + span {
	outline: 2px solid var(--bad-hc-accent-dark);
	outline-offset: 2px;
}

.bad-hc-slider-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.bad-hc-slider-label-row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-weight: 600;
}

.bad-hc-slider-value {
	font-variant-numeric: tabular-nums;
	color: var(--bad-hc-accent);
	font-size: 1.05rem;
	font-weight: 700;
}

.bad-hc-unit {
	color: var(--bad-hc-muted);
	font-weight: 500;
	font-size: 0.85rem;
	margin-left: 0.2rem;
}

.bad-hc-slider {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	height: 6px;
	border-radius: 999px;
	background: var(--bad-hc-border);
	outline: none;
	cursor: pointer;
}

.bad-hc-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bad-hc-accent);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.35);
	cursor: pointer;
	margin-top: -8px;
}

.bad-hc-slider::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--bad-hc-accent);
	border: 3px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.35);
	cursor: pointer;
}

.bad-hc-slider::-moz-range-track {
	height: 6px;
	border-radius: 999px;
	background: var(--bad-hc-border);
}

.bad-hc-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	color: var(--bad-hc-muted);
}

.bad-hc-results {
	background: var(--bad-hc-panel);
	border-left: 1px solid var(--bad-hc-border);
	display: flex;
	align-items: center;
}

@media (max-width: 760px) {
	.bad-hc-results {
		border-left: none;
		border-top: 1px solid var(--bad-hc-border);
	}
}

.bad-hc-results-inner {
	padding: 2rem;
	width: 100%;
}

.bad-hc-results-label {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	font-size: 0.8rem;
	color: var(--bad-hc-muted);
	font-weight: 700;
	margin-bottom: 0.35rem;
}

.bad-hc-total {
	display: block;
	font-size: 2.75rem;
	font-weight: 800;
	color: var(--bad-hc-accent-dark);
	line-height: 1.1;
	margin-bottom: 1.25rem;
	font-variant-numeric: tabular-nums;
}

.bad-hc-breakdown {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.88rem;
	margin-bottom: 1rem;
}

.bad-hc-breakdown th {
	text-align: left;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--bad-hc-muted);
	padding-bottom: 0.4rem;
	border-bottom: 1px solid var(--bad-hc-border);
}

.bad-hc-breakdown td {
	padding: 0.45rem 0;
	border-bottom: 1px solid var(--bad-hc-border);
	font-variant-numeric: tabular-nums;
}

.bad-hc-breakdown tr:last-child td {
	border-bottom: none;
}

.bad-hc-disclaimer {
	font-size: 0.78rem;
	color: var(--bad-hc-muted);
	margin: 0;
}
