.identity-badge { display: inline-block; width: fit-content; font-size: 11px; font-weight: 700; line-height: 1.5; padding: 1px 5px; border: 1px solid currentColor; border-radius: 4px; vertical-align: middle; white-space: nowrap; }
.identity-badge.is-line { color: #21844a; }
[data-theme="dark"] .identity-badge.is-line { color: #64d98c; }
.control-settings { max-width: 900px; }
.control-settings input:not([type=checkbox]), .control-settings textarea, .control-settings select { max-width: 100%; }
.control-settings p > label { display: block; margin-bottom: 6px; font-weight: 600; }
.control-settings p:has(input[type=checkbox]) > label { display: inline; }
.control-settings input[type=checkbox] { width: 18px; height: 18px; margin-right: 8px; vertical-align: middle; accent-color: var(--accent); }
.control-settings p:has(> input[type=checkbox]) { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.control-settings p:has(> input[type=checkbox]) .helptext { flex-basis: 100%; }
.control-settings div[id^="id_"] { max-height: 250px; overflow: auto; border: 1px solid var(--line); padding: 12px; }
.audit-message { border-top: 1px solid var(--line); padding: 20px 0; overflow-wrap: anywhere; }
.audit-message header { display: flex; flex-wrap: wrap; gap: 10px; color: var(--text-muted); }
.audit-pagination { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.column-resizer { position: absolute; top: 0; bottom: 0; width: 10px; padding: 0; border: 0; background: transparent; z-index: 35; cursor: col-resize; touch-action: none; transform: translateX(-50%); }
.column-resizer::after { content: ''; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.column-resizer:hover::after, .column-resizer:focus-visible::after, .column-resizer.is-dragging::after { background: var(--accent); }
.column-resizer:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.columns-dragging, .columns-dragging * { cursor: col-resize !important; user-select: none !important; }
@media (min-width: 761px) {
  body.community-app .app-shell { position: relative; --channels-width: 240px; --details-width: 340px; grid-template-columns: 64px var(--channels-width) minmax(320px, 1fr); }
  body:not(.channel-page) .app-shell > .insight-rail { display: none; }
}
@media (min-width: 1101px) {
  body.community-app .app-shell { grid-template-columns: 68px var(--channels-width) minmax(340px, 1fr) var(--details-width); }
  body:not(.channel-page) .app-shell > .insight-rail { display: block; }
  body.community-app.is-operations .app-shell, body.community-app.is-direct .app-shell, body.community-app .app-shell.info-collapsed { grid-template-columns: 68px var(--channels-width) minmax(340px, 1fr); }
  body.is-operations .app-shell > .insight-rail, body.is-direct .app-shell > .insight-rail, body .app-shell.info-collapsed > .insight-rail { display: none; }
}
@media (max-width: 760px) { .column-resizer { display: none !important; } }
.lme-summary { display: flex; flex-wrap: wrap; gap: 16px 32px; }
.lme-summary dd { margin: 4px 0; font-size: 24px; font-weight: 700; }
.member-search.lme-search { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(160px, 220px) auto; align-items: end; padding: 0; margin-top: 20px; }
.lme-search label { display: block; margin-bottom: 6px; }
.lme-search button { height: 46px; }
.member-table.lme-table { min-width: 860px; table-layout: fixed; }
.member-table.lme-table th:first-child { width: 19%; }
.member-table.lme-table th:nth-child(2) { width: 23%; }
.member-table.lme-table th:nth-child(3) { width: 17%; }
.member-table.lme-table th:nth-child(4) { width: 24%; }
.member-table.lme-table th:nth-child(5) { width: 17%; }
.member-table.lme-table td:nth-child(n) { min-width: 0; max-width: none; }
@media (max-width: 760px) { .member-search.lme-search { grid-template-columns: minmax(0, 1fr); } }

.member-directory { min-width: 0; padding: 20px 24px; }
.is-operations .member-directory { max-width: none; width: 100%; }
.is-operations .member-directory .directory-scroll { padding: 0; }
.directory-search { display: grid; grid-template-columns: max-content minmax(120px, 580px) max-content; gap: 12px; align-items: center; margin-bottom: 20px; }
.directory-search label, .directory-search button { white-space: nowrap; }
.directory-search input { min-width: 0; width: 100%; }
.directory-search button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.member-bulk-panel, .member-action-guide { padding: 14px 0; border-top: 1px solid var(--line); }
.member-bulk-panel > summary, .member-action-guide > summary { cursor: pointer; font-weight: 600; }
.member-bulk-panel .stack-form { margin-top: 16px; max-width: 680px; }
.member-action-guide dl { max-width: 900px; }
.member-action-guide dl > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; margin: 12px 0; }
.member-action-guide dt { font-weight: 700; }
.member-action-guide dd { margin: 0; }
.directory-scroll { max-width: 100%; margin-top: 16px; overflow-x: auto; }
.directory-table { width: 100%; min-width: 1240px; border-collapse: collapse; }
.directory-table th { white-space: nowrap; background: var(--panel); }
.directory-table th, .directory-table td { padding: 12px; vertical-align: top; }
.directory-table td { min-width: 110px; overflow-wrap: anywhere; }
.directory-table .selection-column, .directory-table td:first-child { min-width: 48px; width: 48px; }
.directory-table .identity-column { min-width: 170px; max-width: 240px; }
.directory-table .contact-column { min-width: 240px; max-width: 300px; }
.directory-table .management-column { min-width: 320px; }
.directory-table .rename-column { min-width: 360px; }
.directory-table .status-column { min-width: 130px; }
.directory-table small, .directory-table strong { display: block; }
.directory-table small { margin-top: 4px; color: var(--muted); }
.member-inline-form { display: grid; grid-template-columns: minmax(0, 1fr) max-content; align-items: center; gap: 8px; }
.member-inline-form input, .member-inline-form select { min-width: 0; width: 100%; margin: 0; }
.member-inline-form button { white-space: nowrap; min-height: 42px; margin: 0; }
.member-removal { margin-top: 10px; }
.member-removal form { display: grid; gap: 10px; max-width: 330px; }
.member-removal input[type="checkbox"] { width: auto; }
.directory-pagination { display: flex; justify-content: center; align-items: center; gap: 20px; padding: 20px 0; flex-wrap: wrap; }
@media (min-width: 761px) {
  .directory-table th:first-child, .directory-table td:first-child { position: sticky; left: 0; z-index: 2; background: var(--panel); }
  .directory-table th:nth-child(2), .directory-table td:nth-child(2) { position: sticky; left: 48px; z-index: 2; background: var(--panel); box-shadow: 1px 0 var(--line); }
}
@media (max-width: 760px) {
  .member-directory { padding: 16px; }
  .directory-search { grid-template-columns: minmax(0, 1fr) max-content; }
  .directory-search label { grid-column: 1 / -1; }
  .member-action-guide dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
.lme-form { max-width: 660px; }
.lme-form input:not([type="checkbox"]), .lme-form select { max-width: 100%; }
.lme-table td { vertical-align: top; white-space: normal; overflow-wrap: anywhere; }
.lme-table small { display: block; }
.lme-tag { display: inline-block; padding: 2px 6px; margin: 2px 4px 2px 0; background: var(--surface-hover); border: 1px solid var(--line-strong); border-radius: 4px; font-size: 13px; overflow-wrap: anywhere; }
.lme-text { overflow-wrap: anywhere; }
.lme-history { padding: 12px 0; border-bottom: 1px solid var(--line-strong); }
.audit-table { width: 100%; min-width: 900px; table-layout: fixed; }
.audit-table th:first-child { width: 175px; }
.audit-table th:nth-child(2) { width: 220px; }
.audit-table th:nth-child(3) { width: 280px; }
.audit-table td { overflow-wrap: anywhere; vertical-align: top; }
.audit-table.has-private-identities { min-width: 1260px; }
.audit-table.has-private-identities th:nth-child(3) { width: 160px; }
.audit-table.has-private-identities th:nth-child(4) { width: 180px; }
.audit-table.has-private-identities th:nth-child(5) { width: 280px; }
