#broUxBar{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 14px;padding:9px 0;border-bottom:1px solid #dce5f1}
#broUxBar[hidden]{display:none}
#broSearchOpen.bro-quick-find-top{font-weight:800;letter-spacing:.01em;box-shadow:0 2px 8px rgba(26,115,232,.24);white-space:nowrap}
header .toolbar #broSearchOpen.bro-quick-find-header{padding:8px 13px;border-radius:9px;order:-20}
#broSearchOpen.bro-quick-find-top:focus-visible{outline:3px solid rgba(26,115,232,.28);outline-offset:2px}

#broSaveIndicator{font-size:13px;font-weight:700;color:#864f00;background:#fff3d1;padding:7px 10px;border-radius:8px}
#broSearchDialog{width:min(720px,94vw);max-height:88dvh;overflow:auto;padding:0;border:1px solid #cad6e5;border-radius:14px}
.bro-search-inner{padding:20px}.bro-search-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.bro-search-controls{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(260px,1.8fr);gap:12px;align-items:end}.bro-search-controls label{display:grid;gap:6px;font-weight:700;color:#344b67}.bro-search-inner input,.bro-search-inner select{box-sizing:border-box;width:100%;font-size:16px}.bro-search-hint{margin:8px 0 2px;font-size:13px;color:#60758e}
#broSearchResults h3{margin:18px 0 8px;color:#294d7e}.bro-search-result{display:block;padding:12px;border:1px solid #dce5f1;border-radius:9px;margin:7px 0;text-decoration:none;color:#234668;background:#f7faff}.bro-search-result span{display:block;margin-top:4px;font-size:13px;color:#526781}.bro-search-result:hover{background:#eaf2ff}
[data-unread]:not([data-unread=""])::after{content:attr(data-unread);margin-left:6px;padding:2px 6px;background:#b42318;color:white;border-radius:12px;font-size:12px}
.bro-history-list{border-left:3px solid #c7d9ef;padding-left:14px}.bro-history-event{display:block;border-bottom:1px solid #e0e8f1;padding:12px 0;color:#234668;text-decoration:none}.bro-history-event time{display:block;font-size:12px;color:#62758b}.bro-history-event strong{display:block;margin:4px 0}.bro-history-event span{display:block;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.bro-thread-target{outline:3px solid #1f6fd5;outline-offset:4px}
#broSavedToast{position:fixed;right:16px;top:76px;max-width:calc(100vw - 32px);z-index:2500;padding:12px 18px;background:#e9f8ef;color:#165d35;border:1px solid #92cba9;border-radius:10px;box-shadow:0 4px 20px #183c2020;font-weight:600}#broSavedToast[hidden]{display:none}
@media print{#broUxBar,#broSearchDialog,#broSavedToast{display:none!important}}@media(max-width:780px){#broUxBar{gap:6px}.bro-search-inner{padding:14px}.bro-search-controls{grid-template-columns:1fr}}
/* Customer communications + activity history */
.bro-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.bro-history-heading h3{margin:0 0 4px}.bro-history-heading p{margin:0;color:#687588;font-size:13px}.bro-history-tabs,.bro-history-filters{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.bro-history-tabs{border-bottom:1px solid #dfe7ef;margin-bottom:10px}.bro-history-tabs button,.bro-history-filters button{border:1px solid #d9e3ed;background:#fff;color:#40556d;border-radius:999px;padding:7px 11px;font-weight:750;cursor:pointer}.bro-history-tabs button{border:0;border-radius:8px 8px 0 0}.bro-history-tabs button.active,.bro-history-filters button.active{background:#e9f3ff;color:#174f85;border-color:#8db7df}.bro-history-filters{padding:10px;background:#f7f9fc;border:1px solid #e2e8f0;border-radius:11px;margin-bottom:12px}.bro-history-filters input{margin:0 0 0 auto;min-width:230px;padding:8px 10px}.bro-inquiry-history{border:1px solid #dbe5ef;border-radius:12px;margin:10px 0;background:#fff;overflow:hidden}.bro-inquiry-history>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;padding:14px 16px;background:#f8fbfe}.bro-inquiry-history>summary div{display:grid;gap:3px}.bro-inquiry-history>summary span,.bro-job-history-head span{font-size:12px;color:#6a7888}.bro-inquiry-history>summary>b{font-size:12px;color:#58708a}.bro-inquiry-inner{padding:13px}.bro-inquiry-actions{display:flex;gap:7px;justify-content:flex-end;margin-bottom:10px}.bro-job-history{border-left:4px solid #c28a29;background:#fffdf8;border-radius:9px;padding:11px;margin:14px 0}.bro-job-history-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px}.bro-job-history-head>div:first-child{display:grid;gap:2px}.bro-job-history-head>div:last-child{display:flex;gap:6px}.bro-timeline-list{display:grid;gap:7px}.bro-timeline-row{display:grid;grid-template-columns:34px minmax(0,1fr);gap:9px;padding:10px 11px;border:1px solid #e4eaf1;border-radius:9px;background:#fff}.bro-timeline-row.event{background:#fafbfd}.bro-timeline-icon{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e8f2fd;color:#225c91;font-weight:900}.bro-timeline-icon.event-icon{background:#eef1f4;color:#526477}.bro-timeline-top{display:flex;justify-content:space-between;gap:10px}.bro-timeline-top time{font-size:11px;color:#738194;white-space:nowrap}.bro-timeline-detail{margin-top:4px;font-size:13px;line-height:1.4;color:#42556a}.bro-timeline-meta{font-size:11px;color:#8290a0;margin-top:4px}.bro-history-empty{padding:16px;text-align:center;color:#748194;font-size:13px}.bro-communication-form{width:min(720px,92vw);margin:0}.bro-dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.bro-dialog-head h2{margin:0 0 3px}.bro-save-status{font-size:12px;color:#5f7082}@media(max-width:700px){.bro-history-heading,.bro-job-history-head,.bro-timeline-top{display:block}.bro-history-heading .btn,.bro-job-history-head>div:last-child{margin-top:8px}.bro-history-filters input{margin-left:0;width:100%;min-width:0}.bro-timeline-top time{display:block;margin-top:3px}}

/* Communications Watch — Eve's background Twilio/Resend and automation monitor */
.bro-lead-watch-button{font-weight:800;white-space:nowrap;border-color:#aebed0!important}
.bro-lead-watch-button.bro-lead-watch-clear{background:#e9f7ef!important;color:#17653a!important;border-color:#9acbac!important}
.bro-lead-watch-button.bro-lead-watch-alert{background:#fff1df!important;color:#8a4c00!important;border-color:#e4b56f!important}
header .toolbar .bro-lead-watch-header{padding:8px 13px;border-radius:9px;order:-19}
#broLeadWatchDialog{width:min(760px,94vw);max-height:88dvh;overflow:auto;padding:0;border:1px solid #cbd7e4;border-radius:14px;box-shadow:0 18px 55px rgba(22,44,70,.22)}
.bro-lead-watch-panel{padding:20px}.bro-lead-watch-heading{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:1px solid #e1e8ef;padding-bottom:14px}.bro-lead-watch-heading h2{margin:2px 0 4px}.bro-lead-watch-heading p{margin:0;color:#66788b;font-size:13px}.bro-lead-watch-eyebrow{font-size:11px;letter-spacing:.12em;font-weight:900;color:#355d86}.bro-lead-watch-body{display:grid;gap:9px;padding:14px 0}.bro-lead-watch-row{border:1px solid #dce5ee;border-left:5px solid #8ba0b6;border-radius:10px;padding:12px 13px;background:#fff}.bro-lead-watch-row.critical{border-left-color:#b42318;background:#fffafa}.bro-lead-watch-row.attention{border-left-color:#c47b12;background:#fffdf8}.bro-lead-watch-row.system{border-left-color:#54738f;background:#f8fbfe}.bro-lead-watch-row-head{display:flex;align-items:center;gap:9px}.bro-lead-watch-row-head strong{color:#24384d}.bro-lead-watch-severity{font-size:10px;font-weight:900;letter-spacing:.07em;border:1px solid #cbd7e4;border-radius:999px;padding:3px 7px;background:#f4f7fa;color:#425c75}.bro-lead-watch-row.critical .bro-lead-watch-severity{background:#fdeceb;color:#982018;border-color:#efb3af}.bro-lead-watch-row.attention .bro-lead-watch-severity{background:#fff0d8;color:#815000;border-color:#e7c182}.bro-lead-watch-row p{margin:7px 0;color:#43566b;line-height:1.4}.bro-lead-watch-meta{font-size:11px;color:#788898;text-transform:capitalize}.bro-lead-watch-actions{display:flex;gap:7px;margin-top:9px}.bro-lead-watch-footer{display:flex;justify-content:space-between;gap:12px;align-items:center;border-top:1px solid #e1e8ef;padding-top:13px;color:#66788b;font-size:12px}.bro-lead-watch-all-clear{display:grid;gap:5px;padding:18px;border:1px solid #a9d6b9;background:#eef9f2;color:#1a643b;border-radius:11px}.bro-lead-watch-all-clear strong{font-size:16px}.bro-lead-watch-all-clear span{font-size:13px}.bro-lead-watch-kpi{cursor:pointer;font:inherit;border:0}.bro-lead-watch-kpi:hover{filter:brightness(.98)}
@media print{#broLeadWatchDialog,.bro-lead-watch-button,.bro-lead-watch-kpi{display:none!important}}
@media(max-width:700px){.bro-lead-watch-heading,.bro-lead-watch-footer{display:block}.bro-lead-watch-heading .btn,.bro-lead-watch-footer .btn{margin-top:10px}.bro-lead-watch-row-head{align-items:flex-start;flex-direction:column;gap:5px}}

/* Communications Watch modern-shell visibility fix */
.bro-modern-topbar .bro-lead-watch-button:not([hidden]){height:40px;display:inline-flex;align-items:center;justify-content:center;padding:0 11px!important;margin:0!important;border-radius:10px!important;font-size:12px!important;line-height:1!important;box-shadow:none!important}
.bro-modern-topbar .bro-lead-watch-button.bro-lead-watch-alert{background:#fff6e8!important;border:1px solid #e2b66f!important;color:#815000!important}
.bro-modern-topbar .bro-lead-watch-button.bro-lead-watch-clear{background:#eef9f2!important;border:1px solid #9fcbae!important;color:#1d643d!important}
#broMorningAgent .bro-agent-summary .bro-lead-watch-kpi.bro-agent-stat{background:#f8fbff}
#broMorningAgent .bro-agent-summary .bro-lead-watch-kpi.critical-kpi{background:#fff4f2}
#broMorningAgent .bro-agent-summary .bro-lead-watch-kpi.critical-kpi b{color:#a5251d}
#broMorningAgent .bro-agent-summary .bro-lead-watch-kpi.bro-lead-watch-attention{background:#fffaf0}
#broMorningAgent .bro-agent-summary .bro-lead-watch-kpi.bro-lead-watch-attention b{color:#96610b}
