.lf-source-filters{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0;padding:10px;background:#f7f7ff;border:1px solid #e1defb;border-radius:12px}.lf-source-filters label{display:flex;flex-direction:column;gap:4px;font-size:12px;color:#475569;flex:1;min-width:145px}.lf-source-filters select,.lf-channels-settings input:not([type=checkbox]),.lf-channels-settings select,.lf-new-connection select{max-width:100%;width:100%;padding:9px;border:1px solid #d7daea;border-radius:8px;background:white;font:inherit;color:#182235}.lf-source-badge{display:block;color:#5750b6;font-size:11px;margin-top:5px;white-space:normal;overflow-wrap:anywhere}.lf-channels-settings label{display:block;margin:12px 0}.lf-channels-settings small{display:block;color:#64748b;margin:5px 0}.lf-channels-settings .lf-multi-toggle{display:flex;align-items:center;gap:8px}.lf-connection-card{border:1px solid #dedff0;border-radius:12px;padding:16px;margin:14px 0;background:white}.lf-connection-card h4{margin:0 0 8px}.lf-connection-card img{display:block;width:220px;max-width:100%;margin:15px auto}.lf-channel-actions{display:flex;gap:8px;flex-wrap:wrap}.lf-channel-actions button,.lf-channels-settings form button{padding:9px 12px;border:1px solid #ddd8ff;border-radius:8px;background:#f3f0ff;color:#5040db;cursor:pointer}.lf-channels-settings [role=status]{color:#5040db;overflow-wrap:anywhere}.lf-new-connection{display:block;margin:12px 0}.lf-channel-scoped-summary{padding:20px;border:1px solid #e1defb;border-radius:12px;margin:15px 0}.lf-channel-scoped-summary .lf-source-metrics{display:flex;gap:15px;flex-wrap:wrap}.lf-source-metrics p{background:#f3f1ff;padding:15px;border-radius:10px}.lf-notification-panel .lf-source-filters{margin:8px}.lf-origin-cell{max-width:300px}@media(max-width:640px){.lf-source-filters{gap:6px;padding:8px}.lf-source-filters label{min-width:115px}.lf-channels-settings{min-width:0}.lf-channel-actions button{flex:1}.lf-new-connection select{font-size:16px}}
.lf-source-hidden{display:none!important}.lf-channel-scoped-summary table{width:100%;border-collapse:collapse;font-size:13px}.lf-channel-scoped-summary td,.lf-channel-scoped-summary th{padding:9px;text-align:left;border-bottom:1px solid #e2e4ee}.lf-channel-scoped-summary{overflow:auto}

/* v29.59: filtros dentro da grade, origem dentro da prévia. */
.inbox-list-header > .lf-source-filters{grid-column:1/-1;grid-row:2;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:8px;min-width:0}
.inbox-list-header > .conversation-search{grid-row:3}
.inbox-list-header > .conversation-filters{grid-row:4}
.inbox-list-header > .lf-source-filters label{min-width:0;font-size:11px;margin:0}
.inbox-list-header > .lf-source-filters select{min-width:0;padding:7px 5px;font-size:12px}
.chat-list-item .chat-preview{min-width:0;flex:1 1 0}
.chat-list-item .chat-preview-top{min-width:0;gap:6px}
.chat-list-item .chat-preview-top strong{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-list-item .chat-preview-top small,.chat-list-item .unread-count{flex-shrink:0}
.chat-list-item .chat-preview > .lf-source-badge{max-width:100%;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.4;margin-top:4px}
.chat-header-contact .lf-source-badge{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px;font-size:11px}
.lf-official-plan{display:inline-block;padding:5px 10px;border-radius:20px;background:#eef2ff;color:#5040db;font-size:12px}
@media(max-width:640px){.inbox-list-header > .lf-source-filters select{font-size:16px}.chat-header-contact .lf-source-badge{font-size:10px}}
