.hcwhs-tool{max-width:900px;margin:0 auto;color:#435a72;font-family:inherit;font-size:14px;line-height:1.65;box-sizing:border-box}
.hcwhs-tool *{box-sizing:border-box}
.hcwhs-header{margin:0 0 12px}
.hcwhs-eyebrow{display:block;color:#1e73e8;font-size:12px;font-weight:700;letter-spacing:.02em;margin:0 0 3px}
.hcwhs-header h2{color:#2c3e50;font-size:26px;line-height:1.25;font-weight:700;margin:0 0 8px;padding:0}
.hcwhs-header p{font-size:15px;line-height:1.5;margin:0 0 8px;color:#52677e}
.hcwhs-panel,.hcwhs-results,.hcwhs-info{background:#fff;border:1px solid #d8e1ec;border-radius:12px;padding:18px;margin:12px 0;box-shadow:0 2px 8px rgba(28,55,90,.04)}
.hcwhs-tool h3{font-size:18px;line-height:1.35;color:#2c3e50;margin:0 0 8px;font-weight:700}
.hcwhs-intro{margin:0 0 14px}
.hcwhs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}
.hcwhs-field{min-width:0}
.hcwhs-field label{display:block;font-weight:600;margin:0 0 5px;color:#435a72}
.hcwhs-household-field{grid-column:1/-1}
.hcwhs-input-unit{display:flex;gap:7px;align-items:stretch}
.hcwhs-number-wrap{position:relative;display:flex;flex:1;min-width:0}
.hcwhs-number-wrap input{width:100%;min-width:0;min-height:42px;border:1px solid #d8e1ec;border-radius:7px;padding:9px 29px 9px 10px;background:#fff;color:#435a72;font:inherit;box-shadow:none}
.hcwhs-number-wrap input:focus{outline:2px solid rgba(30,115,232,.18);border-color:#1e73e8}
.hcwhs-number-wrap input[aria-invalid=true]{border-color:#b42318}
.hcwhs-stepper{position:absolute;right:4px;top:4px;bottom:4px;display:flex;flex-direction:column;width:20px}
.hcwhs-stepper button{appearance:none;border:0;background:transparent;color:#647b91;padding:0;line-height:1;flex:1;font-size:11px;cursor:pointer}
.hcwhs-stepper button:hover{color:#1e73e8}
.hcwhs-unit{display:flex;align-items:center;justify-content:center;flex:0 0 auto;min-width:78px;padding:0 8px;border:1px solid #d8e1ec;border-radius:7px;background:#fff;color:#52677e;font-size:12px}
.hcwhs-field small{display:block;color:#52677e;font-size:12px;margin-top:4px}
.hcwhs-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.hcwhs-btn{appearance:none;border:1px solid #1e73e8;border-radius:6px;background:#1e73e8!important;color:#fff!important;padding:9px 14px;min-height:38px;font:inherit;font-weight:600;cursor:pointer}
.hcwhs-btn:hover{filter:brightness(.96)}
.hcwhs-results-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.hcwhs-results-head h3{margin-bottom:0}
.hcwhs-primary-result{background:#f1f6fc;border-radius:9px;padding:15px;margin-bottom:10px}
.hcwhs-primary-result span,.hcwhs-result-card span{display:block;font-size:12px;color:#52677e;margin-bottom:3px}
.hcwhs-primary-result strong{display:block;color:#1e73e8;font-size:25px;line-height:1.25;margin:2px 0 4px;overflow-wrap:anywhere}
.hcwhs-primary-result small{color:#52677e}
.hcwhs-result-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hcwhs-result-card{border:1px solid #edf1f6;border-radius:8px;padding:11px;min-width:0}
.hcwhs-result-card strong{display:block;color:#2c3e50;font-size:17px;line-height:1.35;overflow-wrap:anywhere}
.hcwhs-note{font-size:12px;color:#52677e;margin:10px 0 0}
.hcwhs-error{margin:12px 0 0;padding:10px 12px;border-radius:7px;background:#fff1f0;color:#a12622;border:1px solid #f2c7c5}
.hcwhs-info h3:not(:first-child){margin-top:18px}
.hcwhs-info ol{padding-left:20px;margin:8px 0 0}
.hcwhs-info li{padding-left:2px;margin:5px 0}
.hcwhs-info p{margin:8px 0 0}
.hcwhs-footer{text-align:center;color:#7b8998;font-size:12px;margin:12px 0 0;padding:0}
.hcwhs-footer a{color:inherit;text-decoration:underline}
.hcwhs-tool [hidden]{display:none!important}
@media(max-width:600px){.hcwhs-header h2{font-size:24px}.hcwhs-panel,.hcwhs-results,.hcwhs-info{padding:15px;border-radius:10px}.hcwhs-grid{grid-template-columns:minmax(0,1fr);gap:12px}.hcwhs-result-grid{grid-template-columns:minmax(0,1fr)}.hcwhs-results-head{align-items:flex-start}.hcwhs-primary-result strong{font-size:23px}.hcwhs-result-card{padding:10px}.hcwhs-result-card strong{font-size:16px}.hcwhs-unit{min-width:84px}}
@media print{body *{visibility:hidden!important}.hcwhs-tool,.hcwhs-tool *{visibility:visible!important}.hcwhs-tool{max-width:100%;margin:0}.hcwhs-panel,.hcwhs-info,.hcwhs-footer,.hcwhs-results{border:0;box-shadow:none;margin:0;padding:0}}

/* v1.0.3: Main result hierarchy — target the actual HomeCostify markup. */
.hcwhs-tool .hcwhs-primary-result > strong.hcwhs-demand-line {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0 10px;
	color: #1e73e8;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.25;
	margin: 2px 0 6px;
	overflow-wrap: normal;
}
.hcwhs-tool .hcwhs-primary-result > strong.hcwhs-demand-line > .hcwhs-demand-number {
	display: inline !important;
	margin: 0;
	color: #1e73e8;
	font-size: clamp(42px, 5vw, 48px);
	font-weight: 800;
	line-height: 1.05;
	letter-spacing: -.03em;
}
.hcwhs-tool .hcwhs-primary-result > strong.hcwhs-demand-line > .hcwhs-demand-unit {
	display: inline !important;
	margin: 0;
	color: #1e73e8;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0;
}
@media(max-width:600px) {
	.hcwhs-tool .hcwhs-primary-result > strong.hcwhs-demand-line > .hcwhs-demand-number {
		font-size: 44px;
	}
}
