/* Scope every layout rule to this family of public calculators. */
.household-page .calculator-intro{max-width:760px}
.household-board{grid-template-columns:minmax(0,1.4fr) minmax(260px,.9fr);align-items:start}
.household-form{min-width:0;padding:24px;container:household/inline-size}
.household-live-hint{margin:0 0 24px;color:var(--muted);font-size:13px;line-height:1.6}
.household-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;align-items:start}
.household-form .household-field{min-width:0;display:flex;flex-direction:column;gap:8px}
.household-field>label{font-size:14px;font-weight:600;line-height:1.5;margin:0;min-height:42px;display:flex;align-items:flex-end}
.household-control{min-width:0;position:relative}
.household-control input,.household-control select,.household-control .category-picker-trigger{box-sizing:border-box;width:100%;min-height:48px;background:#fff}
.household-control .category-picker{width:100%;min-width:0;margin:0}
.household-field .household-check{grid-column:1/-1;align-items:center;min-height:48px;gap:12px;padding:8px 0;cursor:pointer;font-weight:500}
.household-check input{width:20px;height:20px;min-height:20px;flex:0 0 20px;accent-color:#166b50;padding:0}
.household-field:has(.household-check){grid-column:1/-1}
.household-field[data-field="mode"]{grid-column:1/-1}
.household-field-error{color:#a12626;font-size:13px;line-height:1.5;margin:0;padding:4px 0}
.household-repeater{grid-column:1/-1;min-width:0}
.household-baseline{grid-column:1/-1;min-width:0;border:1px solid #d3dfd6;border-radius:12px;padding:16px}
.household-baseline summary{cursor:pointer;font-size:14px;line-height:1.5;min-height:44px;align-content:center;font-weight:600}
.household-baseline[open] summary{margin-bottom:16px}
.household-row{border:1px solid #d3dfd6;border-radius:14px;padding:16px;margin:0 0 20px;min-width:0}
.household-row legend{padding:0 8px;font-weight:600;font-size:14px}
.household-remove{background:transparent;border:0;color:#7a3630;text-decoration:underline;min-height:44px;padding:8px 0;margin-top:12px;cursor:pointer;font:inherit;font-size:13px}
.household-error{margin:24px 0 0;padding:12px 16px;background:#fff3ee;border-radius:10px}
.household-form .calculator-buttons{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
.household-form .calculator-buttons .button{min-height:48px;white-space:nowrap;flex:0 1 auto;box-sizing:border-box}
.household-result{min-width:0;padding:24px}
.household-result .calculator-metric strong{overflow-wrap:anywhere}
.household-tables{display:grid;gap:24px;margin-top:32px;min-width:0}
.household-table-scroll{max-width:100%;overflow-x:auto;border:1px solid #d3dfd6;border-radius:16px;background:#fff;padding:16px}
.household-table-scroll table{border-collapse:collapse;width:100%;text-align:left;font-size:14px}
.household-table-scroll caption{text-align:left;font-size:18px;font-weight:600;padding:0 0 16px}
.household-table-scroll th,.household-table-scroll td{padding:12px 16px;border-bottom:1px solid #dde5dc;vertical-align:top;min-width:90px}
.household-table-scroll tbody tr:last-child>*{border-bottom:0}
.household-table-scroll thead th{font-size:13px;color:var(--muted)}
.household-page [hidden]{display:none!important}
@supports(grid-template-rows:subgrid){.household-fields{row-gap:8px}.household-form .household-field:not([hidden]):not(:has(.household-check)){display:grid;grid-row:span 3;grid-template-rows:subgrid;align-items:start;row-gap:8px}.household-form .household-field:has(.household-check){display:flex;grid-row:auto}.household-field>label{min-height:0}.household-field-error{margin-bottom:12px}.household-repeater,.household-field:has(.household-check){margin-top:12px;margin-bottom:12px}}
@container household (max-width:430px){.household-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){.household-board{grid-template-columns:minmax(0,1fr)}.household-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.household-form,.household-result{padding:20px 16px}.household-fields{grid-template-columns:minmax(0,1fr)}.household-row{padding:12px}.household-table-scroll{padding:12px}.household-table-scroll th,.household-table-scroll td{padding:12px 8px}.household-page .calculator-intro{margin-bottom:24px}}
