.authority-totals, .authority-firm-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.authority-totals { color: #52637b; font-size: 14px; }
.authority-tabs.committee-tabs { display: flex !important; flex-wrap: wrap; gap: 8px; }
.authority-tabs > a { white-space: normal; text-align: center; }
.authority-primary[hidden] { display: none !important; }
.authority-filters.member-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.authority-filters > label { min-width: 150px; flex: 1; }
.authority-filters > .filter-search { flex: 2; min-width: 220px; }
.authority-filters .authority-check, .authority-check { display: inline-flex; align-items: center; gap: 8px; }
.authority-filters label.authority-check { display: flex; flex-direction: row; min-height: 42px; flex-basis: 150px; }
.authority-filters label > span { text-transform: none; }
.authority-filters .filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.authority-filters .filter-actions .button { width: auto !important; min-width: 84px; height: 42px; padding: 8px 12px !important; font-size: 14px; border-radius: 6px; }
.authority-distribution input[type=checkbox], .authority-filters input[type=checkbox] { width: 18px; height: 18px; min-height: 18px; flex: 0 0 18px; accent-color: #2563eb; margin: 0; }
.authority-bulk-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #d8e2f0; }
.authority-bulk-toolbar select { width: 210px; min-height: 42px; }
.authority-bulk-toolbar select { border: 1px solid #bccce0; border-radius: 6px; background: white; color: #263e58; padding: 8px 10px; font-size: 14px; }
.authority-bulk-toolbar .button:disabled { background: #e6edf7 !important; color: #697b94 !important; box-shadow: none !important; cursor: default; }
.authority-bulk-toolbar [data-authority-selected-count] { margin-right: auto; color: #52637b; font-size: 14px; }
.authority-feedback { margin: 8px 0; min-height: 22px; color: #13705b; }
.authority-feedback:empty { display: none; }
.authority-firm { border-bottom: 1px solid #cdd9e8; padding: 16px 0; }
.authority-firm .empty-state { padding: 16px; margin: 0; text-align: left; font-size: 14px; min-height: 0; }
.authority-firm-head { display: flex; gap: 14px; align-items: center; padding: 12px 16px; background: #edf3fa; }
.authority-firm-head > div { flex: 1; min-width: 0; }
.authority-firm-head h2 { font-size: 16px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; letter-spacing: 0; }
.authority-firm-head a { color: #263e58; text-decoration: none; }
.authority-firm-meta { font-size: 12px; color: #52637b; margin-top: 4px; }
.authority-firm-count { flex: 0 0 auto; color: #52637b; font-size: 13px; }
.authority-person { display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e5ebf3; background: white; }
.authority-person:last-child { border-bottom: 0; }
.authority-person-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.authority-person-name strong { display: block; font-size: 15px; }
.authority-person-name small { color: #65778c; font-size: 12px; }
.authority-editor { width: 230px; max-width: 100%; }
.authority-editor label { display: grid; gap: 4px; }
.authority-editor label > span { color: #52637b; font-size: 12px; font-weight: 600; }
.authority-editor select { width: 100%; min-height: 42px; border: 1px solid #bccce0; border-radius: 6px; background: #fff; color: #263e58; padding: 8px 10px; font-size: 14px; }
.authority-editor small[data-authority-message] { display: block; font-size: 12px; color: #13705b; overflow-wrap: anywhere; }
.authority-editor small:empty { display: none; }
.authority-editor .is-error, .authority-feedback.is-error { color: #b42318; }
.authority-value { font-size: 14px; color: #52637b; }
.authority-value[data-type=Sole] { color: #13705b; }
.authority-value[data-type=Joint] { color: #96540c; }
.authority-confirm { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid #d8e2f0; border-radius: 8px; background: #fff; color: #1c293c; }
.authority-confirm::backdrop { background: #101d3066; }
.authority-confirm h2 { font-size: 20px; margin: 0 0 16px; }
.authority-confirm p { overflow-wrap: anywhere; line-height: 1.6; }
.authority-confirm-actions { display: flex; justify-content: end; gap: 10px; margin-top: 20px; }
.member-contact-summary-item .authority-editor { margin-top: 8px; width: 100%; min-width: 0; grid-column: 1 / -1; }
@media (max-width: 640px) {
    .authority-tabs > a { flex: 1; min-width: 125px; padding: 12px 8px; font-size: 12px; }
    .authority-filters > label, .authority-filters > .filter-search { min-width: 0; flex-basis: 100%; }
    .authority-firm-head { flex-wrap: wrap; padding: 12px; gap: 10px; }
    .authority-firm-count { margin-left: 28px; }
    .authority-person { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px 10px; padding: 12px; }
    .authority-person-name { grid-column: 2; }
    .authority-person > .authority-editor { grid-column: 2; width: 100%; }
    .authority-bulk-toolbar { gap: 12px 8px; }
    .authority-bulk-toolbar select { flex: 1; min-width: 170px; }
    .authority-bulk-toolbar button { flex: 1; white-space: normal; }
}
