:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,sans-serif;color:#182334;background:#f4f7fb}*{box-sizing:border-box}body{margin:0}header{background:#17233c;color:#fff;display:flex;justify-content:space-between;align-items:center;padding:18px max(20px,calc((100% - 1100px)/2))}header small{color:#9fb0cf}nav{display:flex;flex-wrap:wrap;gap:18px}nav a{color:#fff;text-decoration:none}main{max-width:1100px;margin:28px auto;padding:0 20px}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(290px,1fr));gap:18px}.card{background:#fff;border:1px solid #dce3ee;border-radius:14px;padding:20px;box-shadow:0 5px 18px rgba(25,40,70,.05)}h1,h2{margin-top:0}label{display:block;font-weight:650;margin:12px 0 5px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #bcc8d8;border-radius:8px;background:#fff;font:inherit}textarea{min-height:110px;resize:vertical}button,.button{display:inline-block;border:0;border-radius:8px;background:#1677ff;color:white;padding:11px 16px;font-weight:700;cursor:pointer;text-decoration:none;margin-top:14px}.secondary{background:#e9eef7;color:#26364f}.danger{background:#b3261e}.notice{padding:12px 14px;border-radius:8px;background:#fff3cd;border:1px solid #f0d98b;margin:12px 0}.ok{background:#dcf7e7;border-color:#9fdcb7}.error{background:#fde2e2;border-color:#eda3a3}.muted{color:#627087}.status{display:inline-block;padding:4px 8px;border-radius:999px;background:#e9eef7;font-size:12px}.status-sent_to_salesbot{background:#dcf7e7}.status-failed{background:#fde2e2}.status-bot_started,.status-queued{background:#fff3cd}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:left;padding:10px;border-bottom:1px solid #e7ecf3;vertical-align:top}code{word-break:break-all}footer{text-align:center;color:#718096;padding:30px}pre{white-space:pre-wrap;word-break:break-word;background:#101827;color:#d7e4ff;padding:14px;border-radius:8px;max-height:360px;overflow:auto}.page-heading,.thread-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.scope-switch{display:flex;gap:8px}.scope-switch .button,.thread-header .button{margin-top:0}.inbox-layout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px}.conversation-list{padding:12px;max-height:75vh;overflow:auto}.conversation-list h2{padding:8px}.conversation-item{display:block;color:inherit;text-decoration:none;border-radius:10px;padding:12px;border:1px solid transparent}.conversation-item:hover,.conversation-item.active{background:#edf4ff;border-color:#bdd6ff}.conversation-item span,.conversation-item small{display:block;margin-top:4px;color:#627087}.thread-header{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.thread{min-height:180px;max-height:46vh;overflow:auto;background:#f6f8fc;border-radius:12px;padding:16px;display:flex;flex-direction:column;gap:10px}.bubble{max-width:78%;padding:10px 12px;border-radius:12px;background:white;border:1px solid #dce3ee}.bubble.outgoing{align-self:flex-end;background:#dcecff;border-color:#b8d4f7}.bubble small{display:block;color:#718096;margin-top:5px}.reply-form{border-top:1px solid #e7ecf3;margin-top:16px;padding-top:10px}.empty-state{text-align:center;padding:80px 20px}@media(max-width:820px){.inbox-layout{grid-template-columns:1fr}.conversation-list{max-height:38vh}.page-heading,.thread-header{display:block}.thread-header .button{margin-top:10px}}@media(max-width:620px){header{align-items:flex-start;gap:12px;flex-direction:column}.scope-switch{margin-bottom:10px}.bubble{max-width:92%}}
:root{}
.conversation-item .message-preview{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#34445d}.archive-filter{padding:0 8px 12px}.archive-filter button{margin-top:8px}.date-filter{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:7px}@media(max-width:620px){.scope-switch{flex-wrap:wrap}.date-filter{grid-template-columns:1fr}}
.live-banner{display:flex;align-items:center;justify-content:space-between;position:sticky;top:8px;z-index:5}.live-banner[hidden]{display:none}.live-banner button{margin:0;padding:8px 12px}.drop-zone{position:relative;border:2px dashed #9fb2cb;border-radius:12px;padding:20px;text-align:center;background:#f7faff;cursor:pointer;transition:.15s}.drop-zone.dragging{border-color:#1677ff;background:#eaf3ff}.drop-zone input{position:absolute;inset:0;opacity:0;cursor:pointer}.drop-zone strong,.drop-zone span,.drop-zone small{display:block}.drop-zone span,.drop-zone small{color:#627087;margin-top:5px}.upload-note{font-size:13px}.archived-media{margin-top:8px}.archived-media img,.archived-media video{display:block;max-width:100%;max-height:320px;border-radius:9px}.archived-media audio{width:100%;min-width:250px}.media-download{display:inline-block;padding:8px 10px;border-radius:8px;background:#edf4ff;color:#1554a5;text-decoration:none}.media-status{display:block;color:#627087;font-size:13px;padding:7px 0}.user-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.user-list{display:grid;gap:12px}.user-row{border:1px solid #dce3ee;border-radius:12px;padding:14px}.user-row>form:first-child{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(130px,1fr) 130px 90px auto;gap:10px;align-items:center}.user-row input,.user-row select,.user-row button{margin:0}.user-row small{display:block;color:#627087;margin-top:4px}.password-form{display:flex;gap:10px;margin-top:10px;max-width:440px}.password-form button{white-space:nowrap}.check-label{margin:0;display:flex;align-items:center;gap:5px}.check-label input{width:auto}.archive-filter>label{font-size:13px;margin-top:4px}
@media(max-width:900px){.user-row>form:first-child{grid-template-columns:1fr 1fr}.user-row>form:first-child>div{grid-column:1/-1}}@media(max-width:620px){.user-grid,.user-row>form:first-child{grid-template-columns:1fr}.password-form{display:block}.password-form button{margin-top:8px}.archived-media audio{min-width:0}.live-banner{align-items:flex-start;gap:10px}}
.conversation-item-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.conversation-item-head strong{min-width:0;overflow:hidden;text-overflow:ellipsis}.conversation-item-head time{flex:0 0 auto;background:#17233c;color:#fff;border-radius:7px;padding:4px 7px;font-size:11px;font-weight:800;letter-spacing:.1px}.notification-panel{display:flex;align-items:center;justify-content:space-between;gap:12px}.notification-panel button{margin:0;white-space:nowrap}.notification-status{font-size:13px;color:#52627a}@media(max-width:620px){.notification-panel{align-items:flex-start;flex-direction:column}.conversation-item-head{display:block}.conversation-item-head time{display:inline-block;margin-top:6px}}
.conversation-item.unread{border-color:#ffb1b1;background:#fff8f8}.conversation-item-meta{display:flex;align-items:center;gap:7px;flex:0 0 auto}.unread-badge{display:inline-flex;align-items:center;justify-content:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#e32636;color:#fff;font-size:12px;box-shadow:0 2px 7px rgba(227,38,54,.28)}.reply-state{display:inline-block;border-radius:999px;padding:3px 7px;font-style:normal;font-size:11px;font-weight:750}.reply-state.waiting{background:#fff0d7;color:#8a4d00}.reply-state.answered{background:#dcf7e7;color:#12633a}.floating-notifications{position:fixed;left:18px;bottom:18px;z-index:1000;display:flex;flex-direction:column-reverse;gap:9px;pointer-events:none}.floating-message{width:min(390px,calc(100vw - 36px));margin:0;padding:14px 16px;text-align:left;border:1px solid #b8d4f7;border-left:5px solid #1677ff;border-radius:12px;background:#fff;color:#182334;box-shadow:0 12px 35px rgba(22,35,60,.22);opacity:0;transform:translateY(14px);transition:.22s;pointer-events:auto}.floating-message.show{opacity:1;transform:translateY(0)}.floating-message strong,.floating-message span,.floating-message small{display:block}.floating-message span{margin-top:3px;color:#52627a;font-size:13px}.floating-message small{margin-top:7px;color:#26364f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.number-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.number-list{display:grid;gap:12px}.number-row{display:grid;grid-template-columns:minmax(170px,1.2fr) minmax(110px,.8fr) minmax(170px,1.2fr) minmax(145px,1fr) 120px 85px auto;gap:9px;align-items:center;border:1px solid #dce3ee;border-radius:12px;padding:12px}.number-row.new-source{grid-template-columns:minmax(170px,1.2fr) 1fr 1.2fr 1fr auto}.number-row input,.number-row button{margin:0}.number-row small{display:block;color:#627087;margin-top:4px}
@media(min-width:821px){.conversation-panel{position:sticky;top:12px;height:calc(100vh - 24px);display:flex;flex-direction:column;overflow:hidden}.conversation-panel .thread{flex:1;min-height:180px;max-height:none}.conversation-panel .reply-form{flex:0 0 auto;max-height:40vh;overflow:auto;background:#fff;padding:10px 2px 2px}.conversation-panel .reply-form textarea{min-height:72px}.conversation-panel .drop-zone{padding:10px 14px}.conversation-panel .drop-zone span{display:none}.conversation-panel .upload-note{margin:5px 0}.conversation-panel .reply-form button{margin-top:7px}}
@media(max-width:1050px){.number-row,.number-row.new-source{grid-template-columns:1fr 1fr}.number-row>div{grid-column:1/-1}.number-grid{grid-template-columns:1fr 1fr}}@media(max-width:620px){.conversation-item-meta{margin-top:6px}.floating-notifications{left:10px;bottom:10px}.number-row,.number-row.new-source,.number-grid{grid-template-columns:1fr}}
body.inbox-page{height:100vh;overflow:hidden;display:flex;flex-direction:column}body.inbox-page header{padding:10px 18px;gap:16px;flex:0 0 auto;flex-wrap:wrap}body.inbox-page main{max-width:none;width:100%;margin:0;padding:8px 12px 10px;flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden}body.inbox-page footer{display:none}body.inbox-page .page-heading{align-items:center;margin-bottom:7px;flex:0 0 auto}body.inbox-page .page-heading h1{font-size:20px;margin-bottom:2px}body.inbox-page .page-heading p{margin:0;font-size:13px}body.inbox-page .scope-switch .button{padding:8px 12px}.inbox-page .inbox-layout{grid-template-columns:minmax(370px,28vw) minmax(0,1fr);gap:10px;flex:1;min-height:0}.inbox-page .card{border-radius:8px;box-shadow:0 2px 10px rgba(25,40,70,.05)}.inbox-page .conversation-list{height:100%;max-height:none;padding:8px}.inbox-page .conversation-list h2{font-size:18px;margin:0;padding:6px 8px}.inbox-page .conversation-item{padding:8px 10px}.inbox-page .conversation-item span,.inbox-page .conversation-item small{margin-top:2px}.inbox-page .conversation-panel{padding:12px;height:100%}.inbox-page .thread-header h2{margin-bottom:4px}.inbox-page .thread-header p{margin:0}.inbox-page .thread{padding:12px}.inbox-page .bubble{padding:8px 10px}.topbar-notification{margin-left:auto;color:#fff;gap:9px;align-items:center}.topbar-notification strong{font-size:13px}.topbar-notification .notification-status{color:#b9c8e3;font-size:11px}.topbar-notification button{padding:7px 10px;font-size:12px}.multi-source-filter{position:relative;margin-bottom:7px}.multi-source-filter summary{list-style:none;border:1px solid #bcc8d8;border-radius:8px;padding:9px 11px;background:#fff;font-weight:650;cursor:pointer}.multi-source-filter summary::-webkit-details-marker{display:none}.multi-source-filter summary:after{content:'▾';float:right}.multi-source-filter[open] summary:after{content:'▴'}.multi-source-options{position:absolute;z-index:20;left:0;right:0;top:calc(100% + 4px);max-height:310px;overflow:auto;background:#fff;border:1px solid #bcc8d8;border-radius:9px;padding:8px;box-shadow:0 12px 30px rgba(25,40,70,.18)}.multi-source-options label{display:flex;align-items:flex-start;gap:8px;margin:0;padding:7px;border-radius:7px;cursor:pointer;font-size:13px}.multi-source-options label:hover{background:#edf4ff}.multi-source-options input{width:auto;margin-top:2px}.multi-source-options span{margin:0;color:#26364f}.multi-source-options small{padding:7px;color:#627087}.search-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px}.search-row button{margin:0;padding:9px 12px}.floating-message{position:relative;width:min(480px,calc(100vw - 36px));padding:18px 48px 18px 20px;border-left-width:7px;font-size:16px}.floating-message strong{font-size:18px}.floating-message span{font-size:14px;margin-top:5px}.floating-message small{font-size:15px;margin-top:9px}.floating-close{position:absolute;right:10px;top:8px;margin:0;padding:2px 9px;border-radius:999px;background:#edf2f8;color:#26364f;font-size:21px;line-height:1.25}.number-row{grid-template-columns:minmax(160px,1.2fr) 115px minmax(100px,.7fr) minmax(150px,1fr) minmax(145px,1fr) 110px 85px auto}.number-row select{margin:0}
@media(min-width:821px){.inbox-page .conversation-panel{position:relative;top:auto;height:100%}.inbox-page .conversation-panel .reply-form{max-height:36vh}.inbox-page .conversation-panel .reply-form textarea{min-height:58px}}
@media(max-width:1050px){.inbox-page .inbox-layout{grid-template-columns:minmax(330px,38vw) minmax(0,1fr)}}@media(max-width:820px){body.inbox-page{height:auto;min-height:100vh;overflow:auto;display:block}body.inbox-page main{padding:0 8px;display:block;overflow:visible}.inbox-page .inbox-layout{grid-template-columns:1fr}.inbox-page .conversation-list{height:auto;max-height:45vh}.topbar-notification{width:100%;justify-content:space-between}.inbox-page .conversation-panel{height:auto}.floating-message{width:calc(100vw - 20px)}}
.statistics-toolbar{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:16px;padding:14px 18px}.statistics-toolbar form{display:flex;align-items:end;gap:9px}.statistics-toolbar label{margin-top:0}.statistics-toolbar button,.statistics-toolbar .button{margin:0}.statistics-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}.stat-card{background:#17233c;color:#fff;border-radius:12px;padding:18px}.stat-card strong,.stat-card span{display:block}.stat-card strong{font-size:26px}.stat-card span{color:#b9c8e3;margin-top:3px}.pipeline-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pipeline-title{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;border-bottom:1px solid #e7ecf3;padding-bottom:12px}.pipeline-title h2{margin:0}.pipeline-title small{color:#627087}.pipeline-title>b{background:#edf4ff;color:#1554a5;padding:7px 10px;border-radius:999px;white-space:nowrap}.pipeline-status-list{display:grid;gap:2px;margin-top:9px}.pipeline-status{display:grid;grid-template-columns:9px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 4px;border-bottom:1px solid #f0f3f7}.pipeline-status i{width:9px;height:35px;border-radius:999px}.pipeline-status strong,.pipeline-status small{display:block}.pipeline-status small{color:#718096;margin-top:2px}.pipeline-status>b{font-size:18px}.archive-health{margin-top:16px}.archive-health>div{display:flex;flex-wrap:wrap;gap:9px}.archive-health span{background:#edf4ff;border-radius:999px;padding:8px 11px}.archive-health p{margin-bottom:0}@media(max-width:820px){.statistics-toolbar,.statistics-toolbar form{display:block}.statistics-toolbar .button,.statistics-toolbar button{margin-top:9px}.statistics-summary,.pipeline-grid{grid-template-columns:1fr}.statistics-toolbar small{display:block;margin-top:12px}}
.scope-switch .button.current{background:#1677ff;color:#fff}
.conversation-item-meta{flex-direction:column;align-items:flex-end;gap:5px;max-width:48%}.conversation-meta-top{display:flex;align-items:center;justify-content:flex-end;gap:7px}.source-channel-badge{display:flex;align-items:center;gap:5px;max-width:190px;padding:4px 8px;border-radius:7px;color:#fff;font-size:11px;font-weight:800;line-height:1.2}.source-channel-badge span{margin:0;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.source-channel-badge svg{width:15px;height:15px;flex:0 0 auto;fill:none;stroke:#fff;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.source-channel-badge.channel-whatsapp{background:#075e54}.source-channel-badge.channel-instagram{background:#a61f69}@media(max-width:620px){.conversation-item-meta{max-width:55%;align-items:flex-end;margin-top:0}.conversation-item-head{display:flex}.source-channel-badge{max-width:155px}}
.pipeline-status{color:inherit;text-decoration:none;border-radius:8px}.pipeline-status:hover,.pipeline-status.selected{background:#edf4ff}.pipeline-status.selected{box-shadow:inset 0 0 0 1px #bdd6ff}.lead-details{margin-top:16px;scroll-margin-top:16px}.lead-details-heading,.local-history-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.lead-details-heading h2,.local-history-heading h2{margin-bottom:4px}.lead-details-heading p,.local-history-heading p{margin:0}.lead-details-heading .button{margin:0}.lead-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin:14px 0}.lead-search button{margin:0}.lead-table-wrap{overflow:auto}.lead-table a{color:#1554a5;text-decoration:none}.lead-table a:hover{text-decoration:underline}.lead-table td:first-child small{display:block;color:#718096;margin-top:3px}.phone-history{display:inline-block;background:#e5f7ed;color:#075e54!important;border-radius:999px;padding:5px 9px;font-weight:750;white-space:nowrap}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:14px}.pagination .button{margin:0}.lead-profile{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.lead-profile>div{background:#f4f7fb;border-radius:10px;padding:12px}.lead-profile span,.lead-profile strong{display:block}.lead-profile span{font-size:12px;color:#718096;margin-bottom:4px}.lead-history-thread{display:flex;flex-direction:column;gap:10px;max-height:68vh;overflow:auto;background:#f6f8fc;border-radius:12px;padding:16px}.history-talk-separator{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;background:#e9eef7;border-radius:9px;padding:7px 10px;color:#52627a;font-size:12px}.history-talk-separator a{color:#1554a5;font-weight:750}.history-talk-separator .source-channel-badge{display:inline-flex}.local-lead-history .bubble{width:max-content}.local-lead-history .bubble.outgoing{margin-left:auto}@media(max-width:820px){.lead-profile{grid-template-columns:1fr 1fr}.lead-details-heading{display:block}.lead-details-heading .button{margin-top:8px}}@media(max-width:620px){.lead-profile{grid-template-columns:1fr}.lead-search{grid-template-columns:1fr}.lead-details-heading,.local-history-heading{display:block}}
