/* Keep existing theme, compact controls and large copy editors. New family-only content. */
.hh-heading,.hh-entry,.hh-payments,.hh-pending{margin-bottom:12px}.hh-period{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.hh-period label{display:flex;flex-direction:column;gap:5px;min-width:0}.hh-period input,.hh-period select{height:40px;min-width:0;font-size:16px}.hh-actions{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.hh-actions button{min-height:40px}.hh-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.hh-totals>div{display:flex;flex-direction:column;gap:8px;padding:14px;min-width:0}.hh-totals strong{font-size:clamp(14px,2.3vw,22px);overflow-wrap:anywhere}.hh-balances{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.hh-balances article{display:flex;flex-direction:column;gap:6px;padding:10px 0}.hh-settlements>div,.hh-entry-head{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}.hh-settlements>div{border-top:1px solid var(--line);padding:10px 0}.hh-entry-head strong{font-size:18px;overflow-wrap:anywhere}.hh-entry p,.hh-help{line-height:1.7;overflow-wrap:anywhere}.hh-notes{white-space:pre-wrap}.hh-payments article+article{border-top:1px solid var(--line);margin-top:12px}.hh-form{display:flex;flex-direction:column;gap:14px;min-width:0}.hh-form>label,.hh-form #hh-custom-panel label{display:flex;flex-direction:column;gap:7px;width:100%;min-width:0}.hh-form input:not([type=checkbox]),.hh-form select,.hh-form textarea{width:100%;min-width:0;font-size:16px!important;min-height:44px;box-sizing:border-box}.hh-form textarea{min-height:120px;line-height:1.6;padding:12px!important}.hh-member{display:grid;grid-template-columns:minmax(0,1fr) minmax(80px,.6fr) auto;align-items:end;gap:8px;padding-bottom:12px}.hh-member>label{display:flex;flex-direction:column;min-width:0;gap:5px}.hh-member .hh-active{flex-direction:row;align-items:center;min-height:44px;white-space:nowrap}.hh-error{color:var(--danger,#c14f71);white-space:pre-wrap;line-height:1.6}.hh-error[hidden],#hh-custom-panel[hidden]{display:none!important}.hh-empty p{line-height:1.7}
@media(max-width:430px){.hh-totals{gap:6px}.hh-totals>div{padding:10px}.hh-totals small{font-size:11px}.hh-period{gap:8px}.hh-period input{max-width:165px}.hh-heading{padding:14px}.hh-balances{grid-template-columns:repeat(2,minmax(0,1fr))}.hh-member{grid-template-columns:minmax(0,1fr) 82px auto}.hh-member .hh-active{font-size:12px}}
@media(orientation:landscape) and (max-height:500px){.hh-form textarea{min-height:90px}}

#main[data-tool=ledger][data-household=true]>:is(.r13-controls,.r13-search-row,.period-row,.filter-row,.view-row,.toolbar){display:none!important}
#main[data-tool=ledger][data-household=true]>.ui-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin-bottom:12px}
#main[data-tool=ledger][data-household=true]>.ui-tabs button{min-width:0;min-height:40px;padding-inline:5px;font-size:13px;white-space:nowrap}
@media(min-width:1100px){
 #main[data-household=true] #list-area:has(#hh-month){display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:16px;align-items:start;grid-template-areas:'head head' 'totals totals' 'actions actions' 'help help' 'summary entries' 'pending entries' 'payments entries'}
 #main[data-household=true] #list-area>.hh-heading{grid-area:head}
 #main[data-household=true] #list-area>.hh-totals{grid-area:totals}
 #main[data-household=true] #list-area>.hh-actions{grid-area:actions}
 #main[data-household=true] #list-area>.hh-help{grid-area:help}
 #main[data-household=true] #list-area>section:has(.hh-balances){grid-area:summary;min-width:0}
 #main[data-household=true] #list-area>.hh-pending{grid-area:pending}
 #main[data-household=true] #list-area>section:has(#hh-entries){grid-area:entries;min-width:0}
 #main[data-household=true] #list-area>.hh-payments{grid-area:payments;min-width:0}
}
