.button-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.family-search-bar{display:flex;gap:12px;margin-bottom:20px}.family-search-bar .table-search{max-width:none}
.family-list{display:grid;gap:10px}
.family-card{display:grid;grid-template-columns:54px minmax(260px,1fr) minmax(220px,.8fr) 20px;gap:15px;align-items:center;padding:15px;border:1px solid var(--border);border-radius:14px;text-decoration:none;background:#fff;transition:.2s}
.family-card:hover{border-color:#b9caf2;box-shadow:0 8px 20px rgba(37,99,235,.08);transform:translateY(-1px)}
.family-card-avatar,.family-profile-avatar{display:grid;place-items:center;background:var(--blue-soft);color:var(--blue);font-weight:800;text-transform:uppercase}
.family-card-avatar{width:48px;height:48px;border-radius:14px}
.family-card-title{display:flex;align-items:center;gap:10px}.family-card-title strong{font-size:15px}
.family-card-details{display:flex;flex-wrap:wrap;gap:13px;margin-top:6px;font-size:12px;color:var(--muted)}
.family-card-contact span{display:block;font-size:12px;color:var(--muted);margin:3px 0}
.family-card-arrow{font-size:24px;color:#9aa5b6}
.empty-state{text-align:center;padding:55px 20px}.empty-icon{font-size:42px}.empty-state h3{margin:14px 0 7px}.empty-state p{color:var(--muted);margin-bottom:20px}

.family-form{display:grid;gap:18px}.form-section{padding:24px}
.form-section-header{display:flex;gap:14px;align-items:flex-start;margin-bottom:22px}.form-section-header h3{margin:0 0 5px}.form-section-header p{margin:0;color:var(--muted)}
.step-number{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--blue);color:#fff;font-weight:800}
.form-grid{display:grid;gap:15px}.form-grid-2{grid-template-columns:repeat(2,1fr)}.form-grid-3{grid-template-columns:repeat(3,1fr)}.field-span-2{grid-column:span 2}
.field{display:grid;gap:7px}.field>span{font-size:12px;font-weight:700;color:#4d596c}
.field input,.field select,.field textarea{width:100%;border:1px solid var(--border);border-radius:10px;padding:11px 12px;background:#fff;color:var(--text);outline:none}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#9db8f3;box-shadow:0 0 0 4px rgba(37,99,235,.08)}
.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:18px 0}
.check-card{display:flex;gap:11px;padding:13px;border:1px solid var(--border);border-radius:12px;background:#fafbfd;cursor:pointer}
.check-card input{margin-top:3px}.check-card strong,.check-card small{display:block}.check-card small{color:var(--muted);margin-top:4px}
.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-bottom:28px}

.family-profile-header{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:22px}
.family-profile-identity{display:flex;align-items:center;gap:16px}.family-profile-avatar{width:66px;height:66px;border-radius:18px;font-size:22px}.family-profile-avatar.small{width:44px;height:44px;border-radius:13px;font-size:14px}
.family-profile-identity h2{margin:5px 0}.family-profile-identity p{margin:0;color:var(--muted)}
.family-summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.summary-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:17px;box-shadow:var(--shadow)}.summary-card span,.summary-card strong{display:block}.summary-card span{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.06em}.summary-card strong{margin-top:7px;font-size:15px;overflow-wrap:anywhere}
.text-success{color:var(--green)}.text-danger{color:var(--red)}
.family-dossier-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(280px,.75fr);gap:18px}.family-dossier-main,.family-dossier-side{display:grid;gap:18px;align-content:start}
.member-list{display:grid;gap:10px}.member-row{display:grid;grid-template-columns:38px 1fr auto;gap:11px;align-items:center;padding:11px;border:1px solid var(--border);border-radius:11px}.member-row strong,.member-row span{display:block}.member-row div span{font-size:11px;color:var(--muted);margin-top:3px}
.empty-inline{padding:18px;border-radius:11px;background:#f7f9fc;color:var(--muted);text-align:center}
.detail-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0}.detail-grid>div{padding:13px 0;border-bottom:1px solid var(--border)}.detail-grid dt{font-size:11px;color:var(--muted);margin-bottom:5px}.detail-grid dd{margin:0;font-weight:700}
.notes-content{line-height:1.6;color:#4d596c}
.responsible-card{text-align:center}.responsible-card .family-profile-avatar{margin:0 auto 10px}.responsible-card strong,.responsible-card span{display:block}.responsible-card span{font-size:12px;color:var(--muted);margin-top:5px}.responsible-card hr{border:0;border-top:1px solid var(--border);margin:15px 0}
.document-status-list{display:grid;gap:11px}.document-status-list div{display:flex;gap:9px;align-items:center}.status-ok,.status-missing{width:9px;height:9px;border-radius:50%}.status-ok{background:var(--green)}.status-missing{background:var(--red)}
.alert-success{background:var(--green-soft);color:#166534}

@media(max-width:1000px){.family-card{grid-template-columns:48px 1fr 20px}.family-card-contact{display:none}.family-summary-grid{grid-template-columns:repeat(2,1fr)}.family-dossier-grid{grid-template-columns:1fr}.form-grid-3{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.family-search-bar,.family-profile-header{align-items:stretch;flex-direction:column}.family-card{grid-template-columns:44px 1fr}.family-card-arrow{display:none}.form-grid-2,.form-grid-3,.check-grid,.family-summary-grid,.detail-grid{grid-template-columns:1fr}.field-span-2{grid-column:auto}.form-actions{flex-direction:column-reverse}.form-actions>*{width:100%}}
