/* Budget comparison uses the shared Hatuli light/dark tokens. */
.hs-section { --hs-line-0: #006aff; }
.hs-section [hidden] { display: none !important; }
.hs-form { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.hs-budget { display: grid; grid-template-columns: minmax(0, 520px) auto; gap: 22px; align-items: center; justify-content: start; }
.hs-budget-field { min-width: 0; }
.hs-money-input { position: relative; min-width: 0; }
.hs-money-input input { width: 100%; box-sizing: border-box; font-size: 28px; font-weight: 650; letter-spacing: -.5px; min-height: 64px; padding-right: 44px; }
.hs-money-input > span { position: absolute; top: 50%; right: 18px; transform: translateY(-50%); color: var(--muted); font-size: 22px; pointer-events: none; }
.hs-budget small { line-height: 1.6; }
.hs-calculate { min-height: 54px; min-width: 176px; margin-top: 8px; }
.hs-calculate:disabled { opacity: .65; cursor: progress; }
.hs-complex-filter { border-top: 1px solid var(--border); margin-top: 22px; padding-top: 18px; }
.hs-complex-filter summary { width: fit-content; cursor: pointer; color: var(--accent); font-size: 14px; font-weight: 600; line-height: 1.6; }
.hs-complex-filter summary span { margin-left: 7px; color: var(--muted); font-size: 12px; font-weight: 400; }
.hs-complex-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; max-width: 850px; margin-top: 18px; }
.hs-complex-fields .mc-field { min-width: 0; }
.hs-complex-fields :is(input, select) { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; text-overflow: ellipsis; }
.hs-complex-fields small { line-height: 1.6; }
.hs-results { margin-top: 30px; scroll-margin-top: 24px; outline-offset: 8px; }
.hs-result-heading { display: flex; gap: 20px; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.hs-result-heading h3 { font-size: 25px; letter-spacing: -.4px; margin-top: 7px; line-height: 1.3; }
.hs-result-heading > p { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; max-width: 40%; text-align: right; }
.hs-result-group + .hs-result-group { margin-top: 30px; }
.hs-group-heading { margin-bottom: 15px; }
.hs-group-heading h4 { color: var(--heading); font-size: 20px; line-height: 1.4; }
.hs-group-heading p { color: var(--muted); font-size: 12px; line-height: 1.65; margin-top: 5px !important; }
.hs-bank-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hs-property-cards, .hs-purchase-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hs-result-card { min-width: 0; padding: 21px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow-wrap: anywhere; }
.hs-bank-best { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.hs-result-card h5 { font-size: 18px; line-height: 1.4; margin-top: 6px; color: var(--heading); }
.hs-result-kind { color: var(--muted); font-size: 11px; line-height: 1.5; }
.hs-result-main { color: var(--accent); font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -.8px; margin-block: 20px !important; }
.hs-result-main span, .hs-purchase-price span { display: block; font-size: 11px; line-height: 1.6; color: var(--muted); letter-spacing: 0; font-weight: 400; margin-top: 6px; }
.hs-result-card dl { display: grid; gap: 12px; }
.hs-result-card dl > div { display: grid; gap: 4px; }
.hs-result-card dt { font-size: 11px; color: var(--muted); line-height: 1.5; }
.hs-result-card dd { margin: 0; font-size: 17px; font-weight: 650; color: var(--heading); }
.hs-result-card dd small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.hs-result-card .hs-wealth { padding-top: 13px; border-top: 1px solid var(--border); }
.hs-property-address { font-size: 12px; line-height: 1.7; margin-top: 8px !important; color: var(--muted); }
.hs-purchase-price { font-size: 25px; font-weight: 700; letter-spacing: -.5px; line-height: 1.25; margin-top: 20px !important; color: var(--heading); }
.hs-property-metrics { border-top: 1px solid var(--border); padding-top: 17px; margin-top: 19px; }
.hs-bank-comparison { padding: 13px; background: var(--surface2); border-radius: 9px; color: var(--text); font-size: 11px; line-height: 1.65; margin-top: 18px; }
.hs-bank-comparison p { margin-top: 5px !important; }
.hs-property-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 19px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.hs-source { display: inline-block; font-size: 12px; margin-top: 15px; font-weight: 600; line-height: 1.5; }
.hs-help { color: var(--muted); font-size: 11px; line-height: 1.6; margin-top: 10px !important; }
.hs-assumptions { padding-top: 14px; margin-top: 17px; border-top: 1px solid var(--border); }
.hs-assumptions summary { cursor: pointer; color: var(--accent); font-size: 12px; font-weight: 600; line-height: 1.6; }
.hs-assumptions :is(p, ul) { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 10px !important; }
.hs-assumptions ul { padding-left: 16px; }
.hs-result-note { font-size: 11px; color: var(--muted); line-height: 1.7; margin-top: 20px !important; max-width: 900px; }
@media(max-width: 1100px) { .hs-bank-cards, .hs-property-cards, .hs-purchase-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media(max-width: 760px) { .hs-form { padding: 20px; }.hs-budget { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }.hs-calculate { min-width: 145px; }.hs-complex-fields { grid-template-columns: minmax(0, 1fr); }.hs-result-heading { align-items: start; flex-direction: column; gap: 10px; }.hs-result-heading > p { max-width: 100%; text-align: left; }.hs-result-card { padding: 18px; } }
@media(max-width: 480px) { .hs-form { padding: 17px; }.hs-budget { grid-template-columns: minmax(0, 1fr); gap: 12px; }.hs-money-input input { font-size: 25px; }.hs-calculate { margin-top: 0; width: 100%; }.hs-bank-cards, .hs-property-cards, .hs-purchase-cards { grid-template-columns: minmax(0, 1fr); }.hs-complex-filter summary span { display: block; margin-left: 0; }.hs-result-heading h3 { font-size: 22px; }.hs-result-main { font-size: 30px; } }
