:root{--nav:#101827;--nav-soft:#182235;--ink:#172033;--muted:#788397;--line:#e5eaf1;--bg:#f3f6fa;--card:#fff;--blue:#3975f6;--blue-soft:#edf3ff;--green:#18b67a;--shadow:0 10px 35px rgba(25,40,70,.08)}
*{box-sizing:border-box}body{margin:0;font-family:Inter,"PingFang SC","Microsoft YaHei",sans-serif;color:var(--ink);background:var(--bg);font-size:14px}button,input,textarea{font:inherit}.app-shell{min-height:100vh;display:grid;grid-template-columns:226px minmax(0,1fr)}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(circle at 68% 18%,rgba(73,124,245,.16),transparent 28%),linear-gradient(135deg,#0d1421,#131f33)}.login-card{width:min(390px,100%);background:#fff;border-radius:18px;padding:36px;box-shadow:0 25px 80px rgba(0,0,0,.28)}.login-card .brand-mark{margin-bottom:20px}.login-card>p{font-size:10px;letter-spacing:1.5px;color:#7e8ba0;margin:0 0 5px}.login-card h1{font-size:24px;margin:0 0 28px}.login-card label{display:block;color:#687386;font-size:12px;margin:14px 0}.login-card input{display:block;width:100%;height:44px;border:1px solid #dfe5ed;border-radius:9px;margin-top:7px;padding:0 12px;outline:0}.login-card input:focus{border-color:#4c80ee;box-shadow:0 0 0 3px rgba(76,128,238,.12)}.login-card>button{width:100%;height:45px;border:0;border-radius:9px;background:linear-gradient(135deg,#477ff2,#3468da);color:white;margin-top:10px;font-weight:600}.login-card>span{display:block;min-height:18px;margin-top:12px;color:#d65260;font-size:11px;text-align:center}
.sidebar{background:linear-gradient(180deg,#101827 0%,#0d1421 100%);color:#cdd5e4;padding:22px 14px 16px;display:flex;flex-direction:column;min-height:100vh}.brand{display:flex;align-items:center;gap:11px;padding:0 8px 26px}.brand-mark{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#4e8cff,#6b5cff);display:grid;place-items:center;color:white;font-weight:800;font-size:19px;box-shadow:0 8px 20px rgba(70,110,255,.3)}.brand strong,.brand span{display:block}.brand strong{color:white;font-size:15px}.brand span{color:#6f7c91;font-size:10px;margin-top:3px;letter-spacing:.5px}.sidebar nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#9eacc0;border-radius:9px;padding:11px 13px;display:flex;justify-content:space-between;align-items:center;cursor:pointer;text-align:left}.nav-item:hover{background:#151f30;color:#eaf0f8}.nav-item.active{color:white;background:linear-gradient(90deg,#20375d,#1b2b47);box-shadow:inset 3px 0 #4d86ff}.nav-badge{min-width:22px;padding:2px 6px;border-radius:10px;background:#ef5967;color:#fff;text-align:center;font-size:11px}.online-dot{width:8px;height:8px;border-radius:50%;background:#2bce8e;box-shadow:0 0 0 4px rgba(43,206,142,.1)}.connection-card{margin-top:auto;display:flex;gap:10px;align-items:center;background:#151f30;border:1px solid #223149;border-radius:11px;padding:12px}.connection-card strong,.connection-card small{display:block}.connection-card strong{color:#eaf0f8;font-size:12px}.connection-card small{color:#708097;font-size:10px;margin-top:3px}.pulse{width:9px;height:9px;border-radius:50%;background:#20c888;box-shadow:0 0 0 5px rgba(32,200,136,.12)}.operator{display:flex;align-items:center;gap:9px;margin-top:14px;padding:11px 6px 0;border-top:1px solid #1d293c}.operator .avatar{width:32px;height:32px}.operator strong,.operator span{display:block}.operator strong{font-size:11px;color:#e9eef6}.operator span{font-size:10px;color:#6e7a8d;margin-top:2px}.operator button{margin-left:auto;border:0;background:transparent;color:#6e7a8d}
.workspace{min-width:0;height:100vh;overflow:hidden}.topbar{height:88px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px}.topbar p{color:#929bad;font-size:11px;margin:0 0 5px}.topbar h1{font-size:20px;margin:0}.top-actions{display:flex;gap:12px;align-items:center}.service-state{padding:7px 11px;background:#f1fbf7;color:#238a66;border-radius:18px;font-size:11px}.service-state i,.contact-title i,.profile-head i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#22bd82;margin-right:6px}.icon-button{position:relative;width:35px;height:35px;border:1px solid var(--line);background:#fff;border-radius:9px}.icon-button em{position:absolute;top:-5px;right:-5px;background:#ef5967;color:#fff;font-style:normal;font-size:9px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center}
.chat-layout{height:calc(100vh - 88px);display:grid;grid-template-columns:300px minmax(430px,1fr) 260px;padding:14px;gap:1px}.conversation-panel,.message-panel,.profile-panel{background:var(--card);border:1px solid var(--line)}.conversation-panel{border-radius:12px 0 0 12px;overflow:hidden}.profile-panel{border-radius:0 12px 12px 0;overflow:auto}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:18px 16px 12px}.panel-heading h2{font-size:15px;margin:0 0 3px}.panel-heading span{font-size:10px;color:#ef5967}.square-button{width:30px;height:30px;border:1px solid var(--line);background:#fff;border-radius:8px;color:#657185}.search-box{margin:0 14px 10px;height:36px;background:#f5f7fa;border:1px solid #edf0f4;border-radius:8px;display:flex;align-items:center;padding:0 10px;color:#9aa4b4}.search-box input{border:0;background:transparent;outline:0;width:100%;padding-left:7px;color:var(--ink);font-size:12px}.filter-row{display:flex;gap:5px;padding:0 14px 10px;border-bottom:1px solid var(--line)}.filter-row button{border:0;background:transparent;color:#7b8698;font-size:10px;padding:6px 8px;border-radius:6px}.filter-row button.selected{background:var(--blue-soft);color:var(--blue)}.filter-row b{font-weight:600}.conversation-list{overflow:auto;height:calc(100% - 126px)}.conversation{position:relative;width:100%;border:0;border-bottom:1px solid #f0f2f5;background:white;padding:13px 12px;display:flex;gap:10px;text-align:left;cursor:pointer}.conversation:hover,.conversation.active{background:#f5f8ff}.conversation.active:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--blue)}.avatar{width:36px;height:36px;flex:0 0 auto;border-radius:11px;display:grid;place-items:center;font-weight:700;font-size:11px}.avatar.green{background:#e8f8f2;color:#16a56f}.avatar.blue{background:#eaf1ff;color:#3975f6}.avatar.violet{background:#f1ecff;color:#7757db}.avatar.amber{background:#fff3df;color:#c88720}.conversation-body{min-width:0;flex:1}.conversation-body>div{display:flex;justify-content:space-between;gap:8px}.conversation-body strong{font-size:12px}.conversation-body time{color:#a0a9b8;font-size:9px}.conversation-body p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:5px 0;color:#7f899a;font-size:10px}.conversation-body small{font-size:9px;color:#e45968}.conversation-body small i{display:inline-block;width:5px;height:5px;border-radius:50%;background:#e45968;margin-right:4px}.conversation-body small.auto{color:#4779d6}.conversation-body small.auto i{background:#4779d6}.conversation-body small.done{color:#22a476}.unread{align-self:center;background:#4d80ed;color:#fff;border-radius:9px;min-width:18px;text-align:center;padding:2px 5px;font-size:9px}
.message-panel{display:grid;grid-template-rows:68px minmax(0,1fr) 185px}.message-header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);padding:0 16px}.contact-title{display:flex;align-items:center;gap:10px}.contact-title h2{font-size:14px;margin:0 0 4px}.contact-title p{font-size:9px;color:#8691a2;margin:0}.mode-control{display:flex;align-items:center;gap:8px}.mode-control>span{font-size:9px;color:#8b95a4}.mode-control button{height:32px;border:1px solid var(--line);background:#fff;border-radius:8px}.mode-control #modeButton{display:flex;align-items:center;gap:6px;padding:0 10px;color:#d75563;font-size:10px}.mode-control #modeButton i{width:6px;height:6px;background:#e35b68;border-radius:50%}.mode-control #modeButton em{font-style:normal;color:#929baa;margin-left:4px}.more-button{width:32px;color:#8f98a8}.messages{overflow:auto;background:#f7f9fc;padding:18px 20px}.day-divider{text-align:center;margin-bottom:18px}.day-divider span{background:#e9edf3;color:#8d97a7;font-size:9px;padding:4px 9px;border-radius:10px}.message{display:flex;gap:9px;margin-bottom:18px;align-items:flex-start}.message>div:nth-child(2):not(.avatar),.message.outgoing>div:first-child{max-width:70%}.message p{margin:0;padding:10px 13px;background:white;border:1px solid #e8ecf2;border-radius:4px 12px 12px 12px;box-shadow:0 3px 12px rgba(30,45,70,.04);font-size:12px;line-height:1.6}.message time{display:block;color:#a0a8b5;font-size:9px;margin-top:4px}.message.outgoing{justify-content:flex-end}.message.outgoing p{background:#e9f0ff;border-color:#dce7ff;border-radius:12px 4px 12px 12px}.message.outgoing time{text-align:right}.avatar.agent{background:#3d72e9;color:#fff}.takeover-note{text-align:center;color:#b06b31;font-size:9px;margin-top:7px}.takeover-note span{display:inline-grid;place-items:center;width:17px;height:17px;border-radius:50%;background:#fff0dd;margin-right:5px}.composer{border-top:1px solid var(--line);background:#fff;padding:10px 14px}.quick-tools{display:flex;gap:7px}.quick-tools button{border:1px solid var(--line);background:#fff;color:#667285;border-radius:7px;padding:6px 9px;font-size:9px}.quick-tools .ai-button{border-color:#cfdcff;color:#3f70db;background:#f6f8ff}.composer textarea{width:100%;height:78px;border:0;resize:none;outline:0;padding:12px 2px;color:var(--ink);font-size:12px}.send-row{display:flex;align-items:center;justify-content:space-between}.send-row>span{font-size:9px;color:#a0a9b7}.clear-button,.send-button{border:0;border-radius:7px;height:31px}.clear-button{background:transparent;color:#7d8797;margin-right:7px}.send-button{background:linear-gradient(135deg,#467ff4,#356be0);color:#fff;padding:0 13px;box-shadow:0 6px 14px rgba(57,117,246,.2)}.send-button kbd{margin-left:7px;font-size:8px;background:rgba(255,255,255,.15);padding:2px 4px;border-radius:3px}
.profile-head{text-align:center;padding:22px 14px 17px;border-bottom:1px solid var(--line)}.profile-head .large{width:52px;height:52px;margin:0 auto 8px;font-size:14px}.profile-head h3{margin:0;font-size:13px}.profile-head p{margin:5px 0;color:#919aaa;font-size:9px}.profile-head span{display:inline-block;margin-top:3px;color:#29906c;background:#effaf6;border-radius:10px;padding:4px 8px;font-size:9px}.profile-section{padding:16px;border-bottom:1px solid var(--line)}.profile-section h4{font-size:11px;margin:0 0 12px}.profile-section dl{margin:0}.profile-section dl div{display:flex;justify-content:space-between;margin:9px 0;font-size:9px}.profile-section dt{color:#9099a8}.profile-section dd{margin:0;color:#485365}.tags{display:flex;gap:6px;flex-wrap:wrap}.tags span,.tags button{border:0;border-radius:5px;padding:5px 7px;font-size:9px}.tags span{background:#eaf3ff;color:#3e70d7}.tags button{background:#f4f6f9;color:#7d8797}.notes textarea{width:100%;height:60px;border:1px solid var(--line);border-radius:7px;padding:8px;resize:none;font-size:9px}.notes button{margin-top:7px;float:right;border:0;background:#eef3ff;color:#3f70db;border-radius:6px;padding:5px 9px;font-size:9px}.toast{position:fixed;right:22px;bottom:22px;transform:translateY(80px);opacity:0;background:#172033;color:#fff;padding:10px 14px;border-radius:8px;font-size:11px;box-shadow:var(--shadow);transition:.25s}.toast.show{transform:translateY(0);opacity:1}
.empty-conversations{padding:50px 24px;text-align:center;color:#939dab}.empty-conversations b,.empty-conversations span{display:block}.empty-conversations b{color:#596579;margin-bottom:7px}.empty-conversations span{font-size:10px;line-height:1.7}.modal-layer{position:fixed;z-index:20;inset:0;background:rgba(10,18,30,.62);backdrop-filter:blur(5px);display:grid;place-items:center;padding:22px}.connect-modal,.dashboard-modal{position:relative;width:min(470px,100%);background:#fff;border-radius:18px;padding:30px;box-shadow:0 30px 90px rgba(0,0,0,.3);text-align:center}.dashboard-modal{width:min(680px,100%);text-align:left}.modal-close{position:absolute;right:16px;top:14px;border:0;background:#f1f4f8;color:#708095;width:31px;height:31px;border-radius:50%;font-size:20px}.eyebrow{font-size:9px;letter-spacing:1.7px;color:#4c78dc;margin:0 0 7px}.connect-modal h2,.dashboard-modal h2{font-size:21px;margin:0 0 10px}.connect-copy{max-width:370px;margin:0 auto 18px;color:#7f8998;font-size:11px;line-height:1.7}.qr-stage{width:238px;height:238px;margin:0 auto 15px;border:1px solid #e2e7ee;border-radius:14px;padding:12px;display:grid;place-items:center;background:#fbfcfe}.qr-stage img{display:block;width:100%;height:100%}.qr-placeholder{color:#9aa4b2;font-size:11px}.connect-status{display:flex;justify-content:center;align-items:center;gap:6px;color:#7b8697;font-size:10px;margin:12px 0}.connect-status i{width:7px;height:7px;border-radius:50%;background:#b8c0cc}.connect-status.online{color:#198660}.connect-status.online i{background:#1ec083}.primary-wide{display:block;width:100%;height:42px;border:0;border-radius:9px;background:#3975f6;color:white;font-weight:600}.connect-modal>a{display:block;margin-top:12px;font-size:10px;color:#3975f6}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:22px}.metric-grid article{background:#f5f7fb;border:1px solid #eaedf3;border-radius:12px;padding:17px}.metric-grid span,.metric-grid strong{display:block}.metric-grid span{color:#7b8798;font-size:10px}.metric-grid strong{font-size:26px;margin-top:7px}
@media(max-width:1180px){.chat-layout{grid-template-columns:275px minmax(430px,1fr)}.profile-panel{display:none}.message-panel{border-radius:0 12px 12px 0}}@media(max-width:860px){.app-shell{grid-template-columns:72px 1fr}.sidebar{padding:18px 10px}.brand>div:last-child,.nav-item span,.connection-card,.operator>div,.operator button{display:none}.brand{padding:0 7px 25px}.nav-item{justify-content:center;height:43px}.nav-item b{display:block}.operator{justify-content:center}.chat-layout{grid-template-columns:245px minmax(390px,1fr)}}

/* Readability and state safety */
[hidden]{display:none!important}
body{font-size:16px}
.app-shell{grid-template-columns:250px minmax(0,1fr)}
.login-card{width:min(430px,100%);padding:40px}.login-card>p{font-size:12px}.login-card h1{font-size:28px}.login-card label{font-size:14px}.login-card input{height:48px;font-size:16px}.login-card>button{height:48px;font-size:15px}.login-card>span{font-size:13px}
.brand strong{font-size:17px}.brand span{font-size:12px}.nav-item{font-size:15px;padding:13px 14px}.nav-badge{font-size:12px}.connection-card strong{font-size:14px}.connection-card small{font-size:12px}.operator strong{font-size:14px}.operator span{font-size:12px}.operator button{font-size:13px}
.topbar{height:92px;padding:0 28px}.topbar p{font-size:13px}.topbar h1{font-size:24px}.service-state{font-size:13px}.icon-button{font-size:16px}.icon-button em{font-size:10px}
.chat-layout{height:calc(100vh - 92px);grid-template-columns:340px minmax(520px,1fr) 300px;padding:16px}.panel-heading{padding:20px 18px 14px}.panel-heading h2{font-size:18px}.panel-heading span{font-size:13px}.square-button{font-size:17px}.search-box{height:42px}.search-box input{font-size:14px}.filter-row button{font-size:13px;padding:7px 9px}.conversation-list{height:calc(100% - 144px)}.conversation{padding:15px 14px}.avatar{width:42px;height:42px;font-size:13px}.conversation-body strong{font-size:14px}.conversation-body time{font-size:12px}.conversation-body p{font-size:13px;margin:6px 0}.conversation-body small{font-size:12px}.unread{font-size:11px;min-width:21px}
.message-panel{grid-template-rows:76px minmax(0,1fr) 215px}.message-header{padding:0 20px}.contact-title h2{font-size:17px}.contact-title p{font-size:12px}.mode-control>span{font-size:12px}.mode-control #modeButton{font-size:13px;height:36px}.more-button{font-size:15px}.messages{padding:22px 24px}.day-divider span{font-size:12px}.message p{font-size:15px;line-height:1.65;padding:11px 14px}.message time{font-size:12px}.takeover-note{font-size:12px}.quick-tools button{font-size:13px;padding:7px 11px}.composer textarea{font-size:15px;height:94px}.send-row>span{font-size:12px}.clear-button,.send-button{height:35px;font-size:13px}.send-button kbd{font-size:10px}
.profile-head h3{font-size:16px}.profile-head p{font-size:12px}.profile-head span{font-size:12px}.profile-section h4{font-size:14px}.profile-section dl div{font-size:12px}.tags span,.tags button{font-size:12px}.notes textarea{font-size:13px;height:72px}.notes button{font-size:12px}.empty-conversations span{font-size:13px}.toast{font-size:14px}
.eyebrow{font-size:11px}.connect-modal h2,.dashboard-modal h2{font-size:24px}.connect-copy{font-size:14px}.qr-placeholder{font-size:13px}.connect-status{font-size:13px}.primary-wide{height:46px;font-size:15px}.connect-modal>a{font-size:13px}.metric-grid span{font-size:13px}.metric-grid strong{font-size:30px}
@media(max-width:1180px){.app-shell{grid-template-columns:230px 1fr}.chat-layout{grid-template-columns:315px minmax(470px,1fr)}.profile-panel{display:none}}
@media(max-width:860px){.app-shell{grid-template-columns:78px 1fr}.chat-layout{grid-template-columns:280px minmax(450px,1fr)}.brand>div:last-child,.nav-item span,.connection-card,.operator>div,.operator button{display:none}}
.mode-control .more-button{width:auto;padding:0 10px;font-size:12px}.quick-reply-modal{width:min(560px,100%)}.quick-reply-list{display:grid;gap:10px;margin-top:20px}.quick-reply-list button{border:1px solid var(--line);background:#f7f9fc;border-radius:10px;padding:14px 16px;text-align:left;color:#455166;font-size:14px;cursor:pointer}.quick-reply-list button:hover{border-color:#b8ccfa;background:#f0f5ff;color:#3468da}

.manual-only{display:flex!important;align-items:center;gap:7px;border:1px solid #ccebdd;background:#f2fbf7;color:#18865d!important;border-radius:9px;padding:8px 11px;font-size:13px!important;font-weight:600}.manual-only i{width:8px;height:8px;border-radius:50%;background:#24b87a}.message p:has(.message-image){display:flex;flex-direction:column;gap:8px}.message-image{display:block;max-width:min(360px,42vw);max-height:360px;object-fit:contain;border-radius:10px;cursor:zoom-in}.wechat-emoji{display:inline-block;font-family:"Segoe UI Emoji","Apple Color Emoji",sans-serif;font-size:1.55em;line-height:1;vertical-align:-.16em;margin:0 .04em}.media-preview{height:46px;margin:6px 0 0;display:flex;align-items:center;gap:10px;padding:5px 8px;border:1px solid #dbe5f7;border-radius:9px;background:#f7faff}.media-preview[hidden]{display:none}.media-preview img{width:36px;height:36px;object-fit:cover;border-radius:6px}.media-preview span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#56657b;font-size:12px}.media-preview button{border:0;background:transparent;color:#d75563;font-size:12px}.composer:has(.media-preview:not([hidden])) textarea{height:48px}
.broadcast-modal{width:min(720px,96vw);max-height:92vh;overflow:auto}.broadcast-modal>label{display:grid;gap:7px;margin-top:15px;color:#526074;font-size:13px;font-weight:600}.broadcast-modal input,.broadcast-modal select,.broadcast-modal textarea{width:100%;border:1px solid #dfe5ee;border-radius:9px;background:#fff;padding:11px 12px;font:inherit;color:#202b3c;outline:0}.broadcast-modal textarea{height:110px;resize:vertical}.broadcast-modal input:focus,.broadcast-modal select:focus,.broadcast-modal textarea:focus{border-color:#7ba1f5;box-shadow:0 0 0 3px rgba(57,117,246,.1)}.broadcast-tip{margin:4px 0 0;color:#758196;font-size:13px}.broadcast-tip strong{color:#356be0;font-size:18px}.broadcast-image-row{display:flex;align-items:center;gap:10px;margin-top:14px}.broadcast-image-row button,.broadcast-actions>button:first-child{border:1px solid #dbe3ef;background:#f7f9fc;color:#4f5e73;border-radius:8px;padding:9px 12px}.broadcast-image-row span{flex:1;color:#7a8798;font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.broadcast-image-row #broadcastImageRemove{color:#cf4e5c;background:#fff5f6;border-color:#f2d5d9}.broadcast-preview{margin-top:10px;padding:10px;background:#f5f7fb;border-radius:10px;text-align:center}.broadcast-preview[hidden]{display:none}.broadcast-preview img{max-width:100%;max-height:220px;border-radius:8px}.broadcast-actions{display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:18px}.broadcast-actions .primary-wide{height:42px}.broadcast-progress{margin-top:16px;padding:12px;background:#f6f8fb;border-radius:10px}.broadcast-progress[hidden]{display:none}.broadcast-progress>div{height:8px;background:#e3e8f1;border-radius:10px;overflow:hidden}.broadcast-progress i{display:block;width:0;height:100%;background:linear-gradient(90deg,#437bf0,#30b879);transition:width .25s}.broadcast-progress p{margin:8px 0 0;color:#59677b;font-size:13px}
body{overflow:hidden}.chat-layout{min-height:0;overflow:hidden}.conversation-panel,.message-panel,.profile-panel{min-height:0;height:100%}.message-panel{overflow:hidden}.messages{min-height:0;overscroll-behavior:contain}.composer{min-height:0;overflow:hidden;position:relative;z-index:2}
@media(max-height:700px){.topbar{height:70px}.chat-layout{height:calc(100vh - 70px);padding:10px}.message-panel{grid-template-rows:62px minmax(0,1fr) 158px}.message-header{padding:0 14px}.messages{padding:12px 16px}.message{margin-bottom:10px}.message p{padding:8px 11px;line-height:1.45}.composer{padding:7px 12px}.quick-tools button{padding:5px 8px}.composer textarea{height:58px;padding:8px 2px}.clear-button,.send-button{height:30px}.profile-head{padding:12px}.profile-section{padding:11px 14px}}
.account-health-list{display:grid;gap:8px;margin:12px 0;max-height:220px;overflow:auto;text-align:left}.account-health-item{display:grid;grid-template-columns:12px 1fr auto;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e2e8f2;border-radius:10px;background:#f8faff;font-size:14px}.account-health-item>i{width:10px;height:10px;border-radius:50%;background:#f0a33a}.account-health-item.online>i{background:#20bf6b}.account-health-item.error>i{background:#ef476f}.account-health-item strong{display:block;font-size:14px;color:#18233a}.account-health-item small{display:block;margin-top:2px;color:#71809a;font-size:12px}.account-health-item em{font-style:normal;font-size:12px;color:#52627d}.broadcast-job-actions{display:flex;gap:10px;margin-top:12px}.broadcast-job-actions[hidden],.broadcast-failures[hidden]{display:none}.broadcast-job-actions button{flex:1;min-height:40px;border:1px solid #dbe3f0;border-radius:9px;background:#fff;color:#31415f;cursor:pointer}.broadcast-job-actions button:last-child{color:#245bd8}.broadcast-failures{margin-top:10px;padding:10px 12px;border-radius:9px;background:#fff5f5;color:#a33b48;font-size:13px;line-height:1.55;max-height:120px;overflow:auto}
.mobile-back{display:none}
@media(min-width:1101px) and (max-width:1500px){.app-shell{grid-template-columns:210px minmax(0,1fr)}.chat-layout{grid-template-columns:300px minmax(0,1fr);padding:14px}.profile-panel{display:none}.message-panel{border-radius:0 12px 12px 0}}
@media(min-width:761px) and (max-width:1100px){.app-shell{grid-template-columns:78px minmax(0,1fr)}.sidebar{padding:18px 10px}.brand{padding:0 10px 24px}.brand>div:last-child,.nav-item span,.connection-card,.operator>div,.operator button{display:none}.sidebar nav{gap:8px}.nav-item{justify-content:center;min-height:48px;padding:10px}.operator{justify-content:center}.workspace{height:100dvh}.topbar{height:72px;padding:0 20px}.topbar p{font-size:11px}.topbar h1{font-size:20px}.chat-layout{height:calc(100dvh - 72px);grid-template-columns:minmax(250px,300px) minmax(0,1fr);padding:10px}.profile-panel{display:none}.conversation-panel{border-radius:12px 0 0 12px}.message-panel{border-radius:0 12px 12px 0;grid-template-rows:70px minmax(0,1fr) auto}.composer{padding:10px 12px}.composer textarea{height:76px}.message>div:nth-child(2):not(.avatar),.message.outgoing>div:first-child{max-width:82%}.message-image{max-width:min(320px,55vw)}}
@media(max-width:760px){html,body{width:100%;height:100%;overflow:hidden;background:#fff}.app-shell{display:block;min-height:0;height:100dvh;padding-bottom:66px}.workspace{height:calc(100dvh - 66px);overflow:hidden}.topbar{height:58px;padding:0 14px}.topbar p{display:none}.topbar h1{font-size:20px}.top-actions{gap:8px}.service-state{display:none}.icon-button{width:42px;height:42px}.sidebar{position:fixed;z-index:15;left:0;right:0;bottom:0;width:100%;height:66px;min-height:0;padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));display:block;border-top:1px solid #253247}.sidebar .brand,.sidebar .connection-card,.sidebar .operator{display:none}.sidebar nav{height:100%;display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.sidebar nav .nav-item:nth-child(n+5){display:none}.nav-item{min-width:0;height:52px;padding:5px 3px;display:flex;flex-direction:column-reverse;justify-content:center;gap:3px;border-radius:9px;text-align:center}.nav-item span{display:block!important;font-size:12px;line-height:1.1}.nav-item b{min-height:16px;font-size:14px}.nav-item.active{box-shadow:inset 0 3px #4d86ff}.nav-badge{position:absolute;transform:translate(18px,-15px);min-width:18px;padding:1px 5px;font-size:10px}.chat-layout{height:calc(100dvh - 124px);display:block;padding:0;overflow:hidden}.conversation-panel,.message-panel{width:100%;height:100%;border:0;border-radius:0}.conversation-panel{display:block}.message-panel{display:none;grid-template-rows:62px minmax(0,1fr) auto}.chat-layout.mobile-chat-open .conversation-panel{display:none}.chat-layout.mobile-chat-open .message-panel{display:grid}.profile-panel{display:none}.panel-heading{padding:14px 14px 10px}.panel-heading h2{font-size:18px}.panel-heading span{font-size:13px}.square-button{width:44px;height:44px;font-size:19px}.search-box{height:44px;margin:0 12px 8px}.search-box input,.composer textarea,.notes textarea,.broadcast-modal input,.broadcast-modal select,.broadcast-modal textarea,.login-card input{font-size:16px}.filter-row{padding:0 12px 8px;gap:4px}.filter-row button{min-height:40px;padding:8px 10px;font-size:13px}.conversation-list{height:calc(100% - 146px);padding-bottom:env(safe-area-inset-bottom)}.conversation{min-height:76px;padding:14px 12px;gap:11px}.avatar{width:44px;height:44px;font-size:14px}.conversation-body strong{font-size:15px}.conversation-body time{font-size:12px}.conversation-body p{font-size:14px}.conversation-body small{font-size:12px}.unread{font-size:12px;min-width:23px}.message-header{position:relative;padding:0 10px;gap:7px}.mobile-back{display:flex;align-items:center;gap:2px;flex:0 0 auto;height:44px;border:0;background:transparent;color:#3975f6;font-size:24px;padding:0 4px}.mobile-back span{font-size:14px}.contact-title{min-width:0;gap:7px}.contact-title .avatar{display:none}.contact-title>div{min-width:0}.contact-title h2{font-size:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.contact-title p{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mode-control{gap:5px}.manual-only{display:none!important}.more-button{width:auto!important;min-width:66px;padding:0 8px;font-size:12px!important}.messages{padding:15px 12px 22px}.message{gap:7px;margin-bottom:15px}.message .avatar{width:34px;height:34px;font-size:11px;border-radius:9px}.message>div:nth-child(2):not(.avatar),.message.outgoing>div:first-child{max-width:84%}.message p{font-size:16px;line-height:1.55;padding:10px 12px}.message time{font-size:12px}.message-image{max-width:72vw;max-height:42vh}.composer{max-height:230px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));overflow:auto}.quick-tools{gap:8px}.quick-tools button{min-height:40px;padding:8px 12px;font-size:14px}.composer textarea{height:68px;min-height:54px;padding:9px 2px;line-height:1.45}.send-row{gap:8px}.send-row>span{font-size:12px}.send-row>div{display:flex;flex:1;justify-content:flex-end}.clear-button,.send-button{min-height:44px;height:44px;font-size:14px}.send-button{padding:0 14px}.send-button kbd{display:none}.media-preview{height:54px}.modal-layer{align-items:stretch;padding:0;background:#fff;backdrop-filter:none}.connect-modal,.dashboard-modal,.broadcast-modal{width:100%;max-width:none;height:100dvh;max-height:none;border-radius:0;padding:54px 16px calc(22px + env(safe-area-inset-bottom));overflow:auto;box-shadow:none}.modal-close{position:fixed;z-index:2;right:12px;top:10px;width:42px;height:42px;font-size:25px}.connect-modal h2,.dashboard-modal h2{font-size:24px}.connect-copy,.broadcast-tip{font-size:15px}.qr-stage{width:min(72vw,300px);height:min(72vw,300px)}.primary-wide{min-height:48px;font-size:16px}.account-health-list{max-height:none}.account-health-item{min-height:58px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric-grid article{padding:15px}.quick-reply-list button{min-height:52px;font-size:16px}.broadcast-modal>label{font-size:15px}.broadcast-modal textarea{height:130px}.broadcast-image-row{flex-wrap:wrap}.broadcast-image-row button{min-height:44px}.broadcast-actions{grid-template-columns:1fr}.broadcast-actions>button{min-height:48px}.broadcast-job-actions{flex-direction:column}.broadcast-job-actions button{min-height:46px}.login-screen{padding:16px}.login-card{padding:28px 20px}.login-card h1{font-size:26px}.login-card input,.login-card>button{height:50px}.toast{left:12px;right:12px;bottom:82px;max-width:none;text-align:center;font-size:15px}}
@media(max-width:380px){.nav-item span{font-size:11px}.contact-title h2{max-width:105px}.message p{font-size:15px}.clear-button{display:none}.metric-grid{grid-template-columns:1fr 1fr}}
.media-viewer{position:fixed;z-index:60;inset:0;display:grid;grid-template-rows:minmax(0,1fr) auto;background:rgba(7,12,22,.94);color:#fff}.media-viewer[hidden]{display:none}.media-viewer-stage{min-width:0;min-height:0;display:grid;place-items:center;overflow:auto;padding:64px 24px 28px;touch-action:pan-x pan-y pinch-zoom}.media-viewer-stage img{display:block;max-width:92vw;max-height:calc(100dvh - 160px);object-fit:contain;transform-origin:center;transition:transform .16s ease;box-shadow:0 18px 70px rgba(0,0,0,.45);user-select:none}.media-viewer-close{position:fixed;z-index:2;right:18px;top:16px;width:46px;height:46px;border:1px solid rgba(255,255,255,.18);border-radius:50%;background:rgba(15,24,40,.72);color:#fff;font-size:30px;line-height:1;cursor:pointer}.media-viewer-toolbar{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 22px calc(12px + env(safe-area-inset-bottom));background:rgba(12,19,32,.92);border-top:1px solid rgba(255,255,255,.12)}.media-viewer-toolbar>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#dce4f1;font-size:14px}.media-viewer-toolbar>div{display:flex;align-items:center;gap:8px}.media-viewer-toolbar button,.media-viewer-toolbar a{min-width:42px;height:42px;display:inline-grid;place-items:center;border:1px solid rgba(255,255,255,.2);border-radius:9px;background:rgba(255,255,255,.08);color:#fff;text-decoration:none;font-size:15px;padding:0 12px;cursor:pointer}.media-viewer-toolbar a{min-width:92px}.viewing-media{overflow:hidden}
@media(max-width:760px){.media-viewer-stage{padding:58px 10px 18px}.media-viewer-stage img{max-width:96vw;max-height:calc(100dvh - 152px)}.media-viewer-close{right:10px;top:9px;width:44px;height:44px}.media-viewer-toolbar{min-height:92px;align-items:stretch;flex-direction:column;gap:8px;padding:9px 10px calc(9px + env(safe-area-inset-bottom))}.media-viewer-toolbar>span{text-align:center;font-size:13px}.media-viewer-toolbar>div{display:grid;grid-template-columns:44px 64px 44px minmax(100px,1fr);gap:7px}.media-viewer-toolbar button,.media-viewer-toolbar a{width:100%;min-width:0;height:44px;padding:0 8px}}
.media-viewer-stage{scrollbar-width:none}.media-viewer-stage::-webkit-scrollbar{display:none}
.customer-profile-button,.profile-close-button{display:none}
.profile-panel{position:relative}.profile-close-button{position:absolute;z-index:2;right:12px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:#f0f3f8;color:#64738a;font-size:25px}
@media(max-width:1180px){.customer-profile-button{display:inline-flex;align-items:center;justify-content:center;height:36px;border:1px solid #dbe3ef;border-radius:8px;background:#f6f8fc;color:#47617f;padding:0 10px;font-size:13px}.profile-close-button{display:block}.chat-layout.profile-open .profile-panel{display:block;position:fixed;z-index:30;right:0;top:0;bottom:0;width:min(380px,100vw);height:100dvh;border:0;border-radius:0;background:#fff;box-shadow:-18px 0 55px rgba(17,29,49,.24);overflow:auto}}
.panel-heading-actions{display:flex;align-items:center;gap:7px}.group-manage-button{height:34px;border:1px solid var(--line);background:#fff;border-radius:8px;color:#48617f;padding:0 10px;cursor:pointer}.group-filter{display:block;width:calc(100% - 28px);height:38px;margin:0 14px 9px;padding:0 10px;border:1px solid #e3e8f0;border-radius:8px;background:#fff;color:#59677b;font-size:13px;outline:0}.conversation-list{height:calc(100% - 191px)}.conversation-group{display:inline-flex;align-items:center;align-self:flex-start;width:max-content;max-width:100%;margin-top:5px;padding:2px 7px;border:1px solid var(--group-color);border-radius:8px;background:#f3f6fb;color:var(--group-color);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.customer-settings label{display:grid;gap:6px;margin:10px 0;color:#6b778b;font-size:12px}.customer-settings input,.customer-settings select{width:100%;height:38px;border:1px solid #dfe5ee;border-radius:8px;background:#fff;padding:0 9px;color:#263247;outline:0}.customer-settings button{width:100%;height:36px;border:0;border-radius:8px;background:#3975f6;color:#fff}.groups-modal{width:min(640px,100%)}.groups-tip{margin:0;color:#758196;font-size:14px}.group-create{display:grid;grid-template-columns:minmax(0,1fr) 48px auto;gap:9px;margin:20px 0}.group-create input[type=text],.group-create input:not([type]){height:44px;border:1px solid #dfe5ee;border-radius:9px;padding:0 12px;font-size:15px}.group-create input[type=color]{width:48px;height:44px;border:1px solid #dfe5ee;border-radius:9px;padding:4px;background:#fff}.group-create button{height:44px;border:0;border-radius:9px;background:#3975f6;color:#fff;padding:0 16px}.group-manage-list{display:grid;gap:8px}.group-manage-row{display:grid;grid-template-columns:14px minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:11px 12px;border:1px solid #e5eaf1;border-radius:10px;background:#f8faff}.group-manage-row>i{width:12px;height:12px;border-radius:50%}.group-manage-row strong,.group-manage-row small{display:block}.group-manage-row strong{font-size:14px}.group-manage-row small{margin-top:3px;color:#8490a2;font-size:12px}.group-manage-row button{height:34px;border:1px solid #dfe5ee;border-radius:7px;background:#fff;color:#53627a}.group-manage-row button:last-child{color:#cf4e5c}.group-empty{padding:28px;text-align:center;color:#8793a5}
@media(max-width:760px){.panel-heading-actions button{min-height:44px}.group-manage-button{height:44px;font-size:14px}.group-filter{width:calc(100% - 24px);height:44px;margin:0 12px 8px;font-size:14px}.conversation-list{height:calc(100% - 198px)}.conversation-group{font-size:12px}.customer-profile-button{height:38px;min-width:52px;padding:0 7px;font-size:12px}.customer-settings label{font-size:14px}.customer-settings input,.customer-settings select{height:46px;font-size:16px}.customer-settings button{height:46px;font-size:15px}.chat-layout.profile-open .profile-panel{width:100vw}.group-create{grid-template-columns:minmax(0,1fr) 48px}.group-create button{grid-column:1/-1}.group-manage-row{grid-template-columns:14px minmax(0,1fr) auto auto;gap:7px}.group-manage-row button{padding:0 9px}.groups-modal{height:100dvh}.groups-tip{font-size:15px}}
@media(max-width:760px){.sidebar nav{grid-template-columns:repeat(5,1fr);gap:3px}.sidebar nav .nav-item:nth-child(n+5){display:flex}.sidebar .nav-item{padding-left:2px;padding-right:2px}.sidebar .nav-item span{font-size:11px}}
.broadcast-scope-field{margin:15px 0 0;padding:0;border:0}.broadcast-scope-field legend{margin-bottom:8px;color:#526074;font-size:14px;font-weight:700}.broadcast-scope-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.broadcast-scope-option{display:block;min-width:0;cursor:pointer}.broadcast-scope-option>input{position:absolute;width:1px!important;height:1px!important;opacity:0;pointer-events:none}.broadcast-scope-option>span{position:relative;display:grid;gap:3px;min-height:58px;padding:10px 12px 10px 40px;border:1px solid #dfe5ee;border-radius:10px;background:#fff;color:#273449;transition:border-color .15s,background .15s,box-shadow .15s}.broadcast-scope-option>span:before{content:'';position:absolute;left:12px;top:18px;width:18px;height:18px;border:2px solid #b7c2d2;border-radius:5px;background:#fff;box-sizing:border-box}.broadcast-scope-option>span:after{content:'✓';position:absolute;left:15px;top:15px;color:#fff;font-size:15px;font-weight:800;opacity:0}.broadcast-scope-option strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.broadcast-scope-option small{color:#8995a7;font-size:12px}.broadcast-scope-option input:checked+span{border-color:#6f99f5;background:#f1f6ff;box-shadow:0 0 0 2px rgba(57,117,246,.08)}.broadcast-scope-option input:checked+span:before{border-color:#3975f6;background:#3975f6}.broadcast-scope-option input:checked+span:after{opacity:1}.broadcast-scope-option input:focus-visible+span{outline:3px solid rgba(57,117,246,.2)}
@media(max-width:760px){.broadcast-scope-list{grid-template-columns:repeat(2,minmax(0,1fr))}.broadcast-scope-field legend{font-size:15px}.broadcast-scope-option>span{min-height:62px}.broadcast-scope-option strong{font-size:15px}.broadcast-scope-option small{font-size:13px}}
.credential-badge,.conversation-credential{display:inline-flex;align-items:center;width:max-content;border-radius:20px;font-weight:700;white-space:nowrap}.credential-badge{margin-left:8px;padding:5px 9px;background:#eef2f7;color:#708095;font-size:11px}.credential-badge[data-state=available],.conversation-credential.available{background:#eafaf3;color:#16865e}.credential-badge[data-state=warning],.conversation-credential.warning{background:#fff6df;color:#a26705}.credential-badge[data-state=expired],.credential-badge[data-state=failed],.conversation-credential.expired,.conversation-credential.failed{background:#fff0f1;color:#c44453}.credential-badge[data-state=opted_out],.conversation-credential.opted_out{background:#f0f1f4;color:#687386}.conversation-credential{margin-top:5px;padding:2px 7px;font-size:10px}.conversation-group+.conversation-credential,.conversation-credential+.conversation-group{margin-left:4px}.credential-detail>strong{display:block;font-size:14px}.credential-detail>p{margin:6px 0 12px;color:#7b8798;font-size:12px;line-height:1.55}.broadcast-optout{display:flex!important;align-items:center;grid-template-columns:none!important;flex-direction:row!important;gap:8px!important}.customer-settings .broadcast-optout input{width:18px;height:18px;padding:0}.credential-detail dl{margin:0}.credential-detail dl>div{display:flex;justify-content:space-between;margin-top:7px;color:#66748a;font-size:12px}
.customers-modal{width:min(1120px,96vw);max-height:92vh;overflow:auto}.modal-title-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.modal-title-row h2{margin:0}.modal-title-row button{height:38px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#48617f;padding:0 13px}.customer-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:18px 0}.customer-metrics article{padding:13px 15px;border:1px solid #e4e9f1;border-radius:11px;background:#f7f9fc}.customer-metrics span,.customer-metrics strong{display:block}.customer-metrics span{color:#7c899a;font-size:12px}.customer-metrics strong{margin-top:5px;color:#1c2940;font-size:24px}.customer-toolbar{display:grid;grid-template-columns:minmax(260px,1fr) 200px 180px;gap:9px}.customer-toolbar input,.customer-toolbar select,.customer-batch-bar select{height:42px;border:1px solid #dfe5ee;border-radius:8px;background:#fff;padding:0 11px;color:#344156;outline:0}.customer-batch-bar{display:flex;align-items:center;gap:8px;margin:10px 0;padding:10px;border-radius:10px;background:#f3f6fb}.customer-batch-bar>label{display:flex;align-items:center;gap:6px;margin-right:4px;color:#59677b;font-size:13px}.customer-batch-bar>span{margin-right:auto;color:#6b788c;font-size:13px}.customer-batch-bar input{width:17px;height:17px}.customer-batch-bar button{height:38px;border:1px solid #d9e1ed;border-radius:8px;background:#fff;color:#475873;padding:0 11px}.customer-batch-bar button:last-child{background:#3975f6;color:#fff;border-color:#3975f6}.customer-table{display:grid;gap:7px;max-height:52vh;overflow:auto}.customer-row{display:grid;grid-template-columns:22px minmax(150px,1.1fr) 100px minmax(190px,1.4fr) 130px auto;align-items:center;gap:12px;padding:11px 12px;border:1px solid #e4e9f1;border-radius:10px;background:#fff}.customer-row>input{width:18px;height:18px}.customer-identity strong,.customer-identity small,.customer-credential strong,.customer-credential small,.customer-activity span,.customer-activity strong,.customer-activity small{display:block}.customer-identity strong{font-size:14px}.customer-identity small,.customer-activity span,.customer-activity small,.customer-credential small{margin-top:3px;color:#8994a5;font-size:11px}.customer-group-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#53627a;font-size:12px}.customer-credential strong{font-size:13px}.customer-credential.available strong{color:#16865e}.customer-credential.warning strong{color:#a26705}.customer-credential.expired strong,.customer-credential.failed strong{color:#c44453}.customer-activity strong{margin-top:3px;font-size:12px}.customer-row>button{height:36px;border:1px solid #d9e1ed;border-radius:8px;background:#f7f9fc;color:#3970df;padding:0 10px}.customer-table-empty{padding:35px;text-align:center;color:#8995a6}
.quick-reply-modal{width:min(720px,96vw);max-height:92vh;overflow:auto}.quick-reply-editor{display:grid;gap:9px;margin-top:17px;padding:12px;border-radius:11px;background:#f4f7fb}.quick-reply-editor input,.quick-reply-editor textarea{width:100%;border:1px solid #dfe5ee;border-radius:8px;background:#fff;padding:10px 11px;font:inherit}.quick-reply-editor textarea{height:86px;resize:vertical}.quick-reply-editor>div{display:flex;justify-content:flex-end;gap:8px}.quick-reply-editor button{height:38px;border:1px solid #dbe3ef;border-radius:8px;background:#fff;color:#50617a;padding:0 13px}.quick-reply-editor #quickReplySave{border-color:#3975f6;background:#3975f6;color:#fff}.quick-reply-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px}.quick-reply-list .quick-reply-row>button:first-child{display:grid;gap:4px}.quick-reply-list .quick-reply-row>button:first-child strong{font-size:14px}.quick-reply-list .quick-reply-row>button:first-child span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#718095;font-size:12px}.quick-reply-list .quick-reply-row>button:not(:first-child){padding:0 12px;text-align:center}.quick-reply-list .quick-reply-row>button:last-child{color:#cf4e5c}.quick-reply-empty{padding:25px;text-align:center;color:#8793a5}
.broadcast-management{margin-top:16px;border:1px solid #e0e6ef;border-radius:10px;background:#fff}.broadcast-management summary{padding:12px 14px;color:#40516a;font-size:14px;font-weight:700;cursor:pointer}.broadcast-history-list,.broadcast-template-list{display:grid;gap:7px;padding:0 11px 11px}.broadcast-history-row,.broadcast-template-row{padding:10px 11px;border-radius:9px;background:#f6f8fb}.broadcast-history-row>div{display:flex;align-items:center;justify-content:space-between;gap:10px}.broadcast-history-row p{margin:5px 0;color:#536177;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.broadcast-history-row small,.broadcast-template-row small{display:block;margin-top:4px;color:#8591a2;font-size:11px}.broadcast-status{padding:3px 7px;border-radius:12px;background:#e9edf4;color:#65738a;font-size:11px}.broadcast-status.completed{background:#e9f9f1;color:#16865e}.broadcast-status.running,.broadcast-status.pending{background:#edf3ff;color:#356fe4}.broadcast-status.failed{background:#fff0f1;color:#c44453}.broadcast-template-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:7px}.broadcast-template-row button{height:34px;border:1px solid #d9e1ed;border-radius:7px;background:#fff;color:#3970df;padding:0 10px}.broadcast-template-row button:last-child{color:#cf4e5c}.broadcast-empty{padding:18px;text-align:center;color:#8793a5}
@media(max-width:760px){.credential-badge{display:none}.conversation-credential{font-size:11px}.customers-modal{height:100dvh}.customer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-toolbar{grid-template-columns:1fr}.customer-toolbar input,.customer-toolbar select{height:46px;font-size:16px}.customer-batch-bar{align-items:stretch;flex-wrap:wrap}.customer-batch-bar>span{width:auto;flex:1;text-align:right}.customer-batch-bar select{width:100%;height:46px;font-size:16px}.customer-batch-bar button{flex:1;min-width:100px;height:44px}.customer-table{max-height:none}.customer-row{grid-template-columns:22px minmax(0,1fr) auto;gap:8px}.customer-row .customer-group-name{grid-column:2}.customer-row .customer-credential{grid-column:2/-1}.customer-row .customer-activity{grid-column:2}.customer-row>button{grid-column:3;grid-row:1}.quick-reply-editor input,.quick-reply-editor textarea{font-size:16px}.quick-reply-row{grid-template-columns:minmax(0,1fr) auto auto}.quick-reply-list .quick-reply-row>button{min-height:48px}.broadcast-management summary{font-size:15px}}
.quick-reply-inline{display:flex;align-items:center;gap:7px;min-height:34px;margin-bottom:7px;padding-bottom:2px;overflow-x:auto;scrollbar-width:none}.quick-reply-inline::-webkit-scrollbar{display:none}.quick-reply-inline button{flex:0 0 auto;max-width:180px;height:32px;padding:0 11px;border:1px solid #d8e2f1;border-radius:16px;background:#f2f6ff;color:#3865bb;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.quick-reply-inline button:hover{border-color:#86a8ee;background:#e9f1ff}.quick-reply-inline span{color:#8793a5;font-size:12px}
@media(max-width:760px){.quick-reply-inline{min-height:40px;margin-bottom:5px}.quick-reply-inline button{height:38px;max-width:150px;padding:0 13px;font-size:13px}.composer{max-height:280px}}
.emoji-panel{display:grid;grid-template-columns:repeat(10,34px);gap:5px;width:max-content;max-width:100%;max-height:170px;margin:7px 0;padding:9px;border:1px solid #dde5f0;border-radius:11px;background:#fff;box-shadow:0 10px 30px rgba(24,42,72,.13);overflow:auto}.emoji-panel[hidden]{display:none}.emoji-panel button{width:34px;height:34px;border:0;border-radius:7px;background:#f6f8fb;font-size:20px;cursor:pointer}.emoji-panel button:hover{background:#eaf1ff;transform:scale(1.08)}
@media(max-width:760px){.emoji-panel{grid-template-columns:repeat(7,38px);max-height:180px}.emoji-panel button{width:38px;height:38px;font-size:22px}}
.credential-badge[data-state=disabled],.conversation-credential.disabled{background:#fff0f1;color:#b93849}.customer-credential.disabled strong{color:#b93849}.customer-access>strong{display:block;color:#16865e;font-size:14px}.customer-access>strong.disabled{color:#b93849}.customer-access>p,.connection-danger p{margin:7px 0 11px;color:#7b8798;font-size:12px;line-height:1.55}.customer-access>button{width:100%;height:38px;border:1px solid #e3a7ae;border-radius:8px;background:#fff5f6;color:#b93849;font-weight:700}.customer-access>button.restore{border-color:#92d8bc;background:#effaf5;color:#16865e}.connection-danger{margin-top:12px;border-top:1px dashed #e3c3c7;padding-top:10px}.connection-danger summary{color:#a84a55;font-size:12px;cursor:pointer}.connection-danger button{width:100%;height:38px;border:1px solid #d44555;border-radius:8px;background:#d44555;color:#fff;font-weight:700}.connection-danger button:disabled{border-color:#d9dee7;background:#edf0f4;color:#9aa4b2}.conversation.service-disabled,.customer-row.service-disabled{background:#fff8f8}.conversation.service-disabled .conversation-body,.customer-row.service-disabled .customer-identity{opacity:.72}.customer-metrics{grid-template-columns:repeat(5,minmax(0,1fr))}.customer-batch-bar #customerDisableService{border-color:#e3a7ae;background:#fff5f6;color:#b93849}.customer-batch-bar #customerEnableService{border-color:#92d8bc;background:#effaf5;color:#16865e}
@media(max-width:760px){.customer-access>button,.connection-danger button{height:46px;font-size:15px}.customer-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
