/* Start: family_contact_styles */
* { box-sizing: border-box; }
body { margin: 0; background: #f5f6f0; color: #282322; font: 16px/1.5 system-ui,sans-serif; }
.contacts { max-width: 1160px; margin: auto; padding: 24px; }
nav,.actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
a { color: #285d4b; } h1 { margin-bottom: 0; } .muted,small { color: #655b56; }
.panel { background: white; border: 1px solid #dfd8d2; border-radius: 12px; padding: 20px; margin: 20px 0; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
label { display: block; font-weight: 600; } input,select,textarea { width: 100%; padding: 10px; border: 1px solid #93887f; border-radius: 5px; font: inherit; }
input[type=checkbox] { width: auto; } input[readonly] { background: #f5f0eb; } textarea { min-height: 100px; }
button,.button { background: #285d4b; color: white; padding: 10px 16px; border: 0; border-radius: 6px; text-decoration: none; font: inherit; cursor: pointer; }
.secondary { background: #5b524e; } .search { max-width: 340px; }
.table-scroll { overflow-x: auto; } table { width: 100%; border-collapse: collapse; } th,td { text-align: left; padding: 12px; border-bottom: 1px solid #e5dfd9; vertical-align: top; } th { background: #f5f0eb; } td small,td strong { display: block; } td .actions { margin-top: 8px; }
.notice { padding: 14px; background: #edf5ed; } .error { padding: 14px; background: #ffeded; }
fieldset { border: 1px solid #dfd8d2; padding: 18px; margin: 20px 0; } legend { font-weight: 700; }
:focus-visible { outline: 3px solid #bc8a00; outline-offset: 3px; }
@media(max-width:700px) { .contacts { padding:16px; } .form-grid { grid-template-columns:1fr; } }
/* End: family_contact_styles */

.contact-roster td { vertical-align: middle; }
.contact-roster { min-width: 900px !important; }
.contact-roster th { white-space: nowrap; }
.contact-roster .contact-actions { min-width: 140px; }
.contact-actions summary { color: #285d4b; cursor: pointer; font-weight: 600; }
.contact-roster .contact-actions .actions { display: grid; gap: 8px; margin: 10px 0; }
.contact-roster .contact-actions button { margin: 0; text-align: left; }
@media (min-width: 1000px) {
    .contacts { max-width: 1500px; }
    .contact-roster { font-size: 14px; }
    .contact-roster th,.contact-roster td { padding: 9px 10px; }
    .contact-roster td small { line-height: 1.35; }
}

.contacts { overflow-wrap: anywhere; } .actions { margin: 16px 0; } form button { margin-top: 12px; } input,select,textarea { max-width: 100%; } label { margin-bottom: 12px; } input[type=checkbox] { margin-right: 6px; } .audience-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:12px; } .audience-card { border:1px solid #d6dfd5; border-radius:10px; padding:16px; text-decoration:none; } .audience-card strong { display:block; font-size:1.8rem; } .audience-card span { color:#374d43; } td details { min-width:180px; } .table-scroll { max-width:100%; } button:disabled { opacity:.6; cursor:not-allowed; }

