.crm-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:12px}
.crm-tools .search-field{min-height:36px;border-radius:6px;font-size:13px;width:min(320px,100%)}
.crm-tools .select{width:auto;min-height:36px;font-size:13px;border-radius:6px}
.crm-table{min-width:760px}
.crm-table th{background:#475569}
.crm-table td{max-width:280px;overflow-wrap:anywhere}
.crm-rowact{display:flex;gap:6px;flex-wrap:wrap}
.crm-foot{padding:11px 16px;background:#fbfcfc;border:1px solid var(--line);border-top:0;color:#6b7280;font-size:13px}
.badge.status-active,.badge.status-published,.badge.status-resolved,.badge.status-normal{background:#eaf5f0;color:#34745c}
.badge.status-inactive,.badge.status-archived,.badge.status-closed,.badge.status-low{background:#f1eff4;color:#71677d}
.badge.status-draft,.badge.status-open,.badge.status-high{background:#fff4e5;color:#97621d}
.badge.status-in_progress{background:#e8f3fc;color:#216b9f}
.badge.status-urgent{background:#fff0e8;color:#a2592d}
.crm-thread{display:grid;gap:10px;margin:0 0 16px;max-height:340px;overflow:auto}
.crm-msg{border:1px solid var(--line);border-left:3px solid #9fb0bd;border-radius:5px;padding:10px 12px;background:#fff}
.crm-msg.out{border-left-color:var(--accent);background:var(--accent-soft)}
.crm-msg-h{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-bottom:6px}
.crm-msg p{margin:0;white-space:pre-wrap;font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.crm-check{display:flex;gap:8px;align-items:center;font-size:12px;font-weight:600}
.crm-ann{border:1px solid var(--line);border-left:3px solid var(--accent);background:#fff;padding:14px 16px;margin-bottom:10px}
.crm-ann h3{margin:0 0 6px;font:700 14px var(--font-display)}
.crm-ann p{margin:0;font-size:13px;line-height:1.6;white-space:pre-wrap}
@media(max-width:680px){.crm-tools .select{flex:1}}

/* Platform admin tables mirror the Prospects/Users tables */
#crm-filters.bulk-bar{background:var(--paper);border:0;padding:6px 0 12px;gap:10px}
#crm-filters .bulk-left{gap:12px}
#crm-filters .select,#crm-filters .btn{min-height:36px;font-size:13px;border-radius:6px}
#crm-filters .bulk-action .select{width:190px;font-size:13px;padding:5px 10px}
#crm-filters .search-field{min-height:36px;border-radius:6px;font-size:13px}
#crm-filters .icon-btn{width:36px;padding:0;display:inline-grid;place-items:center}
#crm-filters svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#crm-table-region .table-wrap{border-radius:8px 8px 0 0}
#crm-table-region .ptable{table-layout:fixed}
#crm-table-region .ptable td{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#crm-notice .notice{margin:0 0 12px}
#crm-foot.table-footer{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;padding:12px 16px;background:#fbfcfc;border:1px solid var(--line);border-top:0;color:#6b7280;font-size:13px}
#crm-foot .pg-left,#crm-foot .pg-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#crm-foot .pg-right{gap:16px}
#crm-foot .pg-btn{width:34px;height:34px;display:inline-grid;place-items:center;padding:0;border:1px solid var(--line);background:#fff;border-radius:6px;color:#374151}
#crm-foot .pg-btn:hover:not(:disabled){background:#f5f8fa}
#crm-foot .pg-btn:disabled{opacity:.45;cursor:not-allowed}
#crm-foot .pg-btn svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#crm-foot .pg-page{color:#374151;min-width:52px;text-align:center}
#crm-foot .pg-size{width:auto;min-height:34px;font-size:13px;border-radius:6px}
