.homes-workspace{min-width:0;max-width:100%;color:var(--ink);overflow-wrap:anywhere}.homes-workspace h2{margin:1.4rem 0 .7rem}.homes-workspace h3,.homes-workspace h4{margin:.3rem 0 .7rem}.homes-workspace p{color:var(--muted);line-height:1.5}.homes-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:16px}.homes-card,.homes-workspace>form{min-width:0;border:1px solid var(--line);background:var(--white);border-radius:20px;padding:20px}.homes-workspace form{display:grid;gap:12px}.homes-card form+form{border-top:1px solid var(--line);padding-top:16px;margin-top:16px}.homes-workspace label{display:grid;gap:6px;min-width:0}.homes-workspace input,.homes-workspace select,.homes-workspace textarea{width:100%;min-width:0;max-width:100%;border:1px solid var(--line);border-radius:10px;padding:12px;font:inherit;background:var(--white);color:var(--ink)}.homes-workspace fieldset{min-width:0;border:1px solid var(--line);border-radius:12px;padding:12px;display:grid;gap:8px}.homes-workspace .homes-check{display:flex;align-items:center;gap:10px;min-height:44px}.homes-workspace .homes-check input{width:20px;height:20px;flex:none}.homes-workspace button{min-height:48px;max-width:100%;white-space:normal;overflow-wrap:anywhere}.homes-fields,.homes-actions{display:flex;flex-wrap:wrap;gap:12px}.homes-fields>label,.homes-actions>button{flex:1 1 180px}.homes-total{font-size:2rem;font-weight:700;color:var(--ink)!important}.homes-history{display:grid;gap:12px}.homes-dialog{width:min(540px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow);background:var(--paper-strong)}.homes-dialog::backdrop{background:rgb(32 32 28 / 45%)}.homes-workspace :focus-visible{outline:3px solid var(--teal);outline-offset:3px}.homes-workspace [data-homes-error]:empty{display:none}@media(max-width:520px){.homes-card,.homes-workspace>form{padding:16px}.homes-dialog{padding:18px}.homes-actions>button{flex-basis:100%}}

/* Home setup shares the settings panel, illustrated heading and disclosures. */
.home-settings { margin-top:20px; }
.home-settings :is(h2,h3,h4,p) { margin:0; }
.home-settings .home-intro { margin-bottom:20px; }
.home-settings .home-explanation { display:grid; gap:8px; margin-bottom:24px; }
.home-settings .home-explanation p { line-height:1.6; }
.home-settings .home-list-heading { display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:12px; }
.home-settings .home-list-heading>span { color:var(--muted); white-space:nowrap; }
.home-settings .home-list { grid-template-columns:minmax(0,1fr); gap:16px; }
.home-settings .home-card { padding:18px 20px 6px; border-radius:10px; background:#fffdf9; }
.home-settings .home-card-heading,.home-settings .home-payer-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.home-settings .home-card-heading>div { min-width:0; }
.home-settings .home-tag { flex:none; max-width:50%; border-radius:20px; padding:4px 10px; color:var(--teal); background:var(--paper); }
.home-settings .home-member-summary { margin:6px 0 16px; line-height:1.6; }
.home-settings .home-section { border-top:1px solid var(--line); }
.home-settings summary::-webkit-details-marker { display:none; }
.home-settings .home-section-body { display:grid; gap:20px; padding:8px 0 20px; }
.home-settings .home-section-body>form,.home-settings .home-create form { display:grid; gap:16px; margin:0; }
.home-settings label:not(.homes-check) { gap:8px; }
.home-settings input,.home-settings select { min-height:48px; }
.home-settings .home-form-columns { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; }
.home-settings .home-field-hint,.home-settings .home-create-note { font-size:13px; line-height:1.6; }
.home-settings fieldset { margin:0; padding:12px 16px; border-radius:9px; gap:4px; }
.home-settings legend { padding:0 6px; font-weight:600; }
.home-settings fieldset .home-field-hint { margin:0 0 8px; }
.home-settings .homes-check { gap:12px; padding:8px 0; line-height:1.5; cursor:pointer; }
.home-settings .homes-check input { margin:0; min-height:0; accent-color:var(--teal); }
.home-settings .home-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.home-settings .home-form-actions button { width:auto; padding:12px 20px; }
.home-settings .home-form-actions [data-homes-error] { flex-basis:100%; }
.home-settings [data-homes-error]:empty,.home-settings .home-feedback:empty { display:none; }
.home-settings .home-payer { padding:0; margin:0; }
.home-settings .home-payer+.home-payer,.home-settings .home-personal { border-top:1px solid var(--line); padding-top:20px; }
.home-settings .home-payer h4,.home-settings .home-personal h4 { font-size:15px; line-height:1.5; }
.home-settings .home-create { margin-top:16px; }
#settings .home-settings .home-create>summary { width:fit-content; max-width:100%; padding:10px 16px; border:1px solid #b9ae9c; border-radius:9px; background:#e8efea; color:#304e43; }
.home-settings .home-create-body { display:grid; gap:12px; padding-top:20px; }
.home-settings .home-create form { margin-top:4px; }
.home-settings .home-admin { margin-top:20px; }
.home-settings .home-feedback:not(:empty) { margin:16px 0; padding:12px 16px; background:var(--paper); border-left:3px solid var(--teal); border-radius:8px; }
@media(max-width:700px) {
 .home-settings .home-form-columns { grid-template-columns:minmax(0,1fr); }
 .home-settings .home-card { padding:16px 16px 4px; }
}
@media(max-width:420px) {
 .home-settings .home-form-actions button { width:100%; }
 .home-settings .home-card-heading { gap:10px; }
 .home-settings .home-tag { padding:4px 8px; }
 .home-settings fieldset { padding:10px; }
 .home-settings .home-payer-heading { flex-wrap:wrap; }
}
