.report-section-card>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;cursor:pointer;list-style:none}
.report-section-card>summary:before{content:'›';font-size:24px;color:var(--muted)}
.report-section-card[open]>summary:before{transform:rotate(90deg)}
.report-section-card>summary>span:first-of-type{flex:1;min-width:0}
.report-section-card>summary small{display:block;margin-top:6px;line-height:1.5;color:var(--muted)}
.report-section-group{margin-bottom:26px;padding-bottom:20px;border-bottom:1px solid var(--line)}
.report-section-group h3{font-size:16px;margin:0 0 16px}
.section-fields{display:grid;grid-template-columns:1fr;gap:16px}
.section-field[hidden],.report-section-group[hidden]{display:none}
.section-field .field{margin:0}.section-field textarea{resize:vertical}
.section-field fieldset{border:0;padding:0;margin:0;min-width:0}
.section-field legend{font-size:13px;font-weight:600;margin-bottom:8px}
.section-required{color:var(--muted);font-weight:400}
.section-person-options{display:grid;gap:8px;max-height:240px;overflow:auto}
.section-person-options label{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6}
.section-person-options input{width:auto;flex:none;margin-top:5px}
.section-repeat-row{border:1px solid var(--line);border-radius:14px;padding:18px;margin:14px 0;min-width:0}
.section-repeat-row legend{font-size:14px;font-weight:600;padding:0 8px}
.section-repeat-row>.quiet{margin-top:14px}
.special-linked-facts{display:grid;gap:6px;margin:0 0 16px;font-size:12px;line-height:1.5;color:var(--muted)}
.special-linked-facts>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:12px}
.special-linked-facts dd{margin:0;overflow-wrap:anywhere}
@media(max-width:600px){.special-linked-facts>div{grid-template-columns:1fr;gap:2px}}
.report-type-settings{display:flex;align-items:center;justify-content:space-between;gap:16px;padding-bottom:20px;margin-bottom:20px;border-bottom:1px solid var(--line)}
.report-type-settings h3{margin:0 0 6px;font-size:13px;font-weight:600;color:var(--muted)}
.report-type-settings p{margin:0;font-size:14px;line-height:1.5}
.report-type-settings button{flex-shrink:0}
.report-type-options{border:0;padding:0;margin:0;min-width:0}
.report-type-options legend{font-size:14px;margin-bottom:16px}
.report-type-options .section-person-options{max-height:none;gap:14px}
#report-types-removal[hidden],#report-types-error[hidden]{display:none}
@media(max-width:600px){.report-type-settings{align-items:flex-start;flex-direction:column}}
.report-section-card input:disabled,.report-section-card textarea:disabled,.report-section-card select:disabled{opacity:1;color:inherit}
.family-case-summary{padding:18px;border:1px solid var(--line);border-radius:14px;margin-bottom:14px}
.family-case-summary h3{font-size:15px;margin:0 0 12px}
.family-case-summary dl{display:grid;gap:12px;margin:0}
.family-case-summary dl>div{display:grid;grid-template-columns:140px minmax(0,1fr);gap:16px;font-size:13px;line-height:1.6}
.family-case-summary dt{color:var(--muted)}
.family-case-summary dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.family-edit-links{margin:12px 0 26px}
.family-checklist .section-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
.family-narrative-help{margin:14px 0;padding:14px 16px;border:1px solid var(--line);border-radius:12px}
.family-narrative-help summary{cursor:pointer;font-size:14px;font-weight:600}
.family-legacy-notes{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.65}
#new-person-details[hidden],#person-matches[hidden]{display:none}
@media(max-width:600px){.family-checklist .section-fields{grid-template-columns:1fr}.family-case-summary dl>div{grid-template-columns:1fr;gap:2px}}
@media(max-width:600px){.report-section-card>summary{padding:18px;flex-wrap:wrap}.section-repeat-row{padding:12px}.report-section-card .badge{white-space:normal}}

.special-report .section-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px}
@media(max-width:600px){.special-report .section-fields{grid-template-columns:1fr}}
