:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#203a42;background:#f5f8f8;--green:#087879;--muted:#73858d}*{box-sizing:border-box}body{margin:0;display:flex;min-height:100vh}button,input,textarea{font:inherit}button{cursor:pointer;transition:background .16s,box-shadow .16s,transform .12s}button:active{transform:translateY(1px)}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,input:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #71bea9;outline-offset:3px}.sidebar{width:216px;position:fixed;inset:0 auto 0 0;background:linear-gradient(160deg,#102b2b,#0c1b28 70%);color:#b8cbcb;padding:25px 14px;display:flex;flex-direction:column;overflow:auto;border-right:1px solid #24413f}.brand img{width:176px;height:auto;display:block;margin:0 7px 27px}nav{display:grid;gap:5px}nav button,.settings-nav{display:flex;align-items:center;gap:11px;text-align:left;background:none;border:1px solid transparent;color:#b8cbcb;border-radius:8px;padding:11px 12px;min-height:42px;font-size:12px}nav button:hover,.settings-nav:hover{background:#ffffff08;color:#fff}nav button.active{background:#183f36;border-color:#2e62554d;color:#fff}.nav-icon{font-size:20px;width:19px;text-align:center;color:#91b8a9}.nav-count{margin-left:auto;font-size:10px;background:#70e88a;color:#16412e;padding:3px 6px;border-radius:5px}nav small{font-size:8px;margin-left:auto;color:#8bada2;white-space:nowrap}.sidebar-label{font-size:9px;letter-spacing:1.4px;color:#7f9a96;margin:22px 10px 12px}.channels>div{display:flex;justify-content:space-between;align-items:center;padding:10px;font-size:11px}.channels em{font-style:normal;font-size:8px;border:1px solid #335249;border-radius:12px;padding:3px 6px;color:#92b8a7}.settings-nav{margin-top:20px;border-top:1px solid #ffffff14;border-radius:0;padding-top:19px}.plan-card{margin-top:auto;border:1px solid #2d4d44;border-radius:10px;background:#0c2424;padding:15px 12px;font-size:10px}.plan-card strong{font-size:10px;color:#d9e8df;display:block;margin-top:8px}.plan-card p{font-size:10px;color:#8ca99d}.plan-icon{display:inline-grid;place-items:center;background:#73e691;color:#143e2a;font-size:19px;width:26px;height:26px;border-radius:7px}.plan-track{height:4px;background:#284d40;border-radius:3px;margin:12px 0}.plan-card small{font-size:9px;color:#8ca99d}main{margin-left:216px;width:calc(100% - 216px)}.topbar{height:70px;background:#ffffffdc;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 26px;border-bottom:1px solid #e6eeee}.search{display:flex;align-items:center;gap:10px;background:#f1f5f6;border:1px solid #eaf0f1;padding:9px 13px;border-radius:9px;width:430px;max-width:55%}.search span{font-size:23px;line-height:1;color:#7b8d92}.search input{border:0;outline:none;background:none;font-size:11px;width:100%;min-width:0;color:#375359}.profile{display:flex;gap:10px;align-items:center}.profile b{font-size:11px}.profile small{font-size:9px;color:#809199;display:block;margin-top:3px}.avatar{display:grid;place-items:center;border-radius:50%;background:#174e41;color:#fff;width:33px;height:33px;font-size:11px}.demo-chip{font-size:9px;color:#35755a;background:#eaf7ed;padding:5px 7px;border-radius:8px}.page-body{padding:26px 24px 20px;background:radial-gradient(ellipse at 75% 0%,#edf7f3,transparent 45%)}header{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:17px}h1{font-size:26px;letter-spacing:-.8px;margin:0;color:#182f36;line-height:1.2;font-weight:650}.subtitle{font-size:12px;color:#7c8f95;margin:7px 0 0}.eyebrow{font-size:8px;letter-spacing:1.7px;color:#78938e;font-weight:650;margin:0 0 8px}.badge{font-size:9px;white-space:nowrap;color:#51816d;background:#edf7ef;border:1px solid #dcece0;padding:8px 11px;border-radius:7px}.notice{font-size:11px;line-height:1.6;color:#7b704c;background:#fffaf0;border:1px solid #ebe2cb;border-radius:8px;padding:9px 12px;margin-bottom:18px}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}.stat{background:#fff;border:1px solid #e6eeee;border-radius:11px;padding:17px 14px;box-shadow:0 4px 14px #173f3810;min-width:0}.stat-top{display:flex;gap:12px}.metric-icon{display:grid;place-items:center;width:35px;height:35px;flex-shrink:0;border-radius:9px;background:#e5f7ef;color:#188867;font-size:22px}.stat-1 .metric-icon{background:#e8f4fc;color:#4286ad}.stat-2 .metric-icon{background:#fff0e6;color:#b8794a}.stat-3 .metric-icon{background:#eff8e9;color:#689550}.stat label{font-size:10px;color:#7c8f95;display:block;line-height:1.5}.stat strong{font-size:24px;letter-spacing:-.5px;color:#20383d;margin-top:5px;display:block}.stat-foot{display:flex;align-items:end;justify-content:space-between;gap:6px;margin-top:8px}.stat-foot small{font-size:8px;color:#90a59c}.quiet{font-size:8px;color:#9babae}.spark{display:flex;gap:3px;align-items:end;height:25px}.spark i{width:4px;background:#b4dfc6;border-radius:2px}.stat-1 .spark i{background:#b7dcec}.h4{height:4px}.h6{height:6px}.h8{height:8px}.h9{height:9px}.h10{height:10px}.h11{height:11px}.h12{height:12px}.h13{height:13px}.h15{height:15px}.h16{height:16px}.h18{height:18px}.h20{height:20px}.inbox{display:grid;grid-template-columns:240px minmax(280px,1fr) 228px;background:white;border:1px solid #e0ebea;border-radius:13px;overflow:hidden;box-shadow:0 8px 24px #123b3410;min-height:565px}.list{border-right:1px solid #edf2f1;background:#fff}.list-title{display:flex;justify-content:space-between;align-items:center;padding:18px 15px 13px}.list-title h2{font-size:17px;margin:0;letter-spacing:-.4px}.filters{display:flex;gap:4px;padding:0 12px 13px;border-bottom:1px solid #eef3f0}.filters button{font-size:9px;background:none;border:0;border-radius:5px;padding:7px 8px;color:#8b9b9e}.filters button.selected{background:#e6f3e8;color:#3b7957}.thread{width:100%;display:flex;gap:10px;text-align:left;padding:17px 14px;border:0;border-left:3px solid transparent;border-bottom:1px solid #f0f4f3;background:white}.thread:hover{background:#f7faf8}.thread.selected{border-left-color:#2a8e60;background:#eef8e9}.contact-avatar{display:grid;place-items:center;width:34px;height:34px;flex-shrink:0;border-radius:50%;background:linear-gradient(145deg,#dcf0d8,#bfddb6);color:#466647;font-size:11px;font-weight:650}.thread-info{min-width:0;display:block}.thread b{font-size:11px;color:#354c45}.thread p{font-size:10px;line-height:1.5;color:#82958c;margin:5px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pill{display:inline-block;font-size:8px;color:#5c8257;background:#edf6e8;border:1px solid #e3eddb;border-radius:10px;padding:3px 7px;line-height:1.3}.chat{display:flex;flex-direction:column;min-width:0}.chat-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border-bottom:1px solid #edf2ef}.chat-person{display:flex;gap:10px;align-items:center}.chat-head b{font-size:12px;line-height:1.5}.chat-head small{display:block;font-size:9px;color:#8a9d96;margin-top:2px}.primary,.secondary{font-size:10px;font-weight:550;border-radius:7px;padding:10px 12px;min-height:36px;line-height:1.4}.primary{background:#087879;color:#fff;border:0;box-shadow:0 3px 7px #0d767822}.primary:hover{background:#096669}.secondary{background:#fff;color:#568276;border:1px solid #d5e3df}.secondary:hover{background:#f2f8f4}.messages{display:flex;flex-direction:column;align-items:flex-start;gap:15px;padding:17px 19px 20px;background:linear-gradient(135deg,#fbfcfa,#f4f9f4);flex:1}.chat-date{align-self:center;font-size:8px;color:#a0b0a3;letter-spacing:1px}.bubble{font-size:11px;line-height:1.7;padding:11px 14px;max-width:90%;border-radius:3px 10px 10px;background:#fff;border:1px solid #edf1e9;box-shadow:0 1px 3px #16492508;color:#53665a}.bubble.ours{align-self:flex-end;background:#e5f6d9;border-color:#e1efd8;border-radius:10px 3px 10px 10px}.draft{margin:0;padding:17px 19px;background:#f8fcf4;border-top:1px dashed #d4e2cd;font-size:11px;line-height:1.7}.draft .eyebrow{font-size:8px;letter-spacing:1.3px}.draft p{margin:9px 0 13px;color:#5b735d}.composer{margin-top:auto;display:flex;gap:8px;padding:13px 16px;border-top:1px solid #e8f0e8;background:#fff}.composer input{flex:1;min-width:0;font-size:10px;padding:11px;border-radius:7px;border:1px solid #dce8de;background:#fcfefd}.customer{border-left:1px solid #edf2ef;background:#fff;min-width:0}.customer summary{font-size:10px;color:#447c61;padding:19px 16px;border-bottom:1px solid #e9f2ed;cursor:pointer;font-weight:650;line-height:1.5}.customer-inner{padding:17px}.customer .large{width:48px;height:48px;font-size:15px}.customer h2{font-size:13px;margin:10px 0 8px}.customer h3{font-size:10px;color:#536b5c;margin:21px 0 8px}.customer p{font-size:10px;color:#809589;line-height:1.6}.customer small{display:block;font-size:9px;color:#91a49a;line-height:1.6}.customer textarea{font-size:10px;line-height:1.6;width:100%;min-height:88px;background:#f7faf5;border:1px solid #e6eee0;border-radius:6px;padding:9px;resize:vertical}.customer button{width:100%;margin:6px 0}.tags{display:flex;flex-wrap:wrap;gap:5px}.muted-note{font-size:9px!important}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.card{padding:21px;border:1px solid #dfe9e7;border-radius:12px;background:white;box-shadow:0 3px 12px #174b3510}.card h2{font-size:16px;margin-top:0}.card p{font-size:12px;line-height:1.7;color:#799085}.card small{font-size:10px;line-height:1.6;color:#8d9e98;display:block}.card input,.card textarea{width:100%;font-size:12px;padding:12px;border:1px solid #d6e3dd;border-radius:7px;margin-bottom:10px}.card textarea{min-height:75px}.card label{display:block;font-size:12px;margin:14px 0}.auth-test{margin-top:20px;padding:15px 18px;box-shadow:none;background:#ffffffa1}.auth-test summary{font-size:10px;color:#7c9589;cursor:pointer}.auth-test form{display:grid;gap:8px;max-width:450px;margin:15px 0}.auth-test button{justify-self:start}.status{font-size:11px;color:#287f66;padding:14px}.empty{max-width:650px}.empty-copy{font-size:11px;color:#8da498;padding:17px}footer{font-size:9px;line-height:1.6;color:#97aaa0;margin-top:20px}.rpc-main{margin:0 auto;max-width:750px;width:100%;padding:32px 20px}.rpc-buttons{display:grid;gap:9px}.rpc-buttons button{padding:12px;border:1px solid #d5e3da;border-radius:7px;background:#f2f9ef;color:#326e57}
@media(max-width:1350px){.inbox{grid-template-columns:210px minmax(270px,1fr) 200px}.sidebar{width:200px}main{margin-left:200px;width:calc(100% - 200px)}.page-body{padding:23px 20px}.customer-inner{padding:13px}.stat-top{gap:8px}.metric-icon{width:29px;height:29px}.stat{padding:14px 11px}}
@media(max-width:1199px){.inbox{grid-template-columns:230px minmax(0,1fr)}.customer{grid-column:1/-1;border-left:0;border-top:1px solid #e6eee7}.customer-inner{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px;padding:18px}.customer h3{margin:10px 0}.customer summary{padding:14px 18px}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{padding:18px}.search{max-width:60%}}
@media(max-width:800px){.sidebar{width:170px;padding:22px 10px}.brand img{width:145px;margin-left:2px}nav button{font-size:11px;padding:10px 8px;gap:7px}.channels{display:none}.plan-card{font-size:9px}main{margin-left:170px;width:calc(100% - 170px)}.topbar{padding:13px 16px}.profile>div,.demo-chip{display:none}.search{max-width:82%;width:100%}.page-body{padding:22px 16px}.inbox{grid-template-columns:1fr}.list{border-right:0;border-bottom:1px solid #e9f1e8}.thread{padding:13px 17px}.thread-info{width:100%}.customer-inner{display:block}.chat-head{padding:17px}.bubble,.draft{font-size:12px}.thread b{font-size:12px}.thread p{font-size:11px}.customer h3{margin-top:20px}.customer p,.customer textarea{font-size:12px}.customer small{font-size:11px}}
@media(max-width:600px){body{display:block}.sidebar{position:relative;width:100%;padding:17px 16px 15px;overflow:visible}.brand img{width:155px;margin:0 0 17px}nav{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}nav button{display:flex;flex-direction:column;gap:4px;text-align:center;padding:9px 3px;font-size:10px;min-height:56px}nav button small,.nav-count{display:none}.nav-icon{font-size:19px;width:auto}.settings-nav{position:absolute;right:16px;top:16px;margin:0;border:1px solid #ffffff1c;border-radius:7px;padding:9px;font-size:10px}.plan-card{display:none}main{margin:0;width:100%}.topbar{height:61px;padding:12px 16px;gap:12px}.search{max-width:none;flex:1}.profile .avatar{width:29px;height:29px}.page-body{padding:24px 14px 20px}h1{font-size:25px}.subtitle{font-size:11px;line-height:1.6}.eyebrow{font-size:7px}.badge{font-size:8px;padding:7px;white-space:normal;text-align:center;max-width:95px}.notice{font-size:11px;padding:10px 11px;margin-top:16px}.stats{gap:10px;margin-bottom:18px}.stat{padding:14px 12px}.stat label{font-size:10px}.stat strong{font-size:23px}.stat-top{gap:8px}.metric-icon{width:29px;height:29px}.stat-foot{flex-wrap:wrap}.stat-foot small,.quiet{font-size:9px}.inbox{border-radius:11px}.filters button{font-size:11px;min-height:40px}.thread{min-height:85px}.thread b{font-size:13px}.thread p{font-size:12px}.pill{font-size:10px}.contact-avatar{width:37px;height:37px;font-size:12px}.chat-head{padding:17px 13px;gap:8px}.chat-head b{font-size:12px}.chat-head small{font-size:10px;line-height:1.5}.chat-person{gap:8px}.primary,.secondary{font-size:11px;min-height:44px;padding:10px 11px}.messages{padding:19px 14px}.bubble,.draft{font-size:13px}.draft{padding:17px 14px}.composer{padding:14px;gap:8px}.composer input{font-size:11px;min-height:44px}.customer summary{font-size:12px;padding:16px}.customer-inner{padding:16px}.customer h2{font-size:16px}.customer h3{font-size:12px}.customer p{font-size:12px}.customer button{min-height:44px}.auth-test{padding:15px}.auth-test summary{font-size:11px;line-height:1.7}.grid{grid-template-columns:1fr}.rpc-main{margin:0}}
@media(max-width:360px){nav{grid-template-columns:repeat(4,minmax(0,1fr))}nav button{font-size:9px}.settings-nav{font-size:9px}.brand img{width:135px}.stat-top{display:block}.metric-icon{margin-bottom:9px}.chat-head{flex-wrap:wrap}.chat-head>.secondary{width:100%}.stat-foot{gap:8px}.profile{display:none}header{align-items:flex-start}.badge{max-width:85px}}
@media(prefers-reduced-motion:reduce){button,input{transition:none!important}button:active{transform:none}}
/* Keep dense desktop panels readable without zooming. */
.stat label{font-size:12px}.stat-foot small,.quiet{font-size:10px}.thread b{font-size:13px}.thread p{font-size:12px}.pill{font-size:10px}.chat-head b{font-size:14px}.chat-head small{font-size:11px}.bubble,.draft{font-size:13px}.primary,.secondary{font-size:12px}.composer input{font-size:12px}.customer summary{font-size:12px}.customer h2{font-size:15px}.customer h3{font-size:12px}.customer p,.customer textarea{font-size:12px}.customer small{font-size:10px}.auth-test summary{font-size:12px}.search input{font-size:12px}.profile b{font-size:12px}.profile small{font-size:10px}.notice{font-size:12px}.filters button{font-size:11px}.muted-note{font-size:10px!important}.messages{min-height:230px}.customer .contact-avatar{margin-top:0}
@media(max-width:600px){.stats .stat label{font-size:11px}.stat-foot small,.quiet{font-size:9px}.chat-head b{font-size:13px}.chat-head small{font-size:10px}.primary,.secondary{font-size:12px}}
@media(max-width:800px){.inbox{grid-template-columns:minmax(0,1fr)}.list,.chat,.customer,.chat-head,.composer{min-width:0}.thread-info{width:auto;flex:1;min-width:0}.composer .primary{flex-shrink:0}.chat-person{min-width:0}.chat-person>div{min-width:0}.bubble{overflow-wrap:anywhere}}
@media(max-width:360px){.composer{flex-wrap:wrap}.composer input{flex-basis:100%;width:100%}.composer .primary{width:100%}.thread p{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere}}
/* 0.11.1: logo always fits the sidebar, including visible scrollbars. */
.sidebar{overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#335249 #102b2b}
.brand{display:block;min-width:0;flex-shrink:0;width:100%}
.brand img{max-width:calc(100% - 14px);object-fit:contain;object-position:left center}
.sidebar nav,.sidebar-label,.channels,.settings-nav,.plan-card{flex-shrink:0}
@media(min-width:601px) and (max-height:800px){.sidebar{padding-top:18px;padding-bottom:16px}.brand img{margin-bottom:19px}nav{gap:3px}nav button{padding-top:8px;padding-bottom:8px;min-height:36px}.sidebar-label{margin-top:16px;margin-bottom:8px}.channels>div{padding-top:7px;padding-bottom:7px}.settings-nav{margin-top:12px;padding-top:12px}.plan-card{margin-top:18px;padding:11px 10px}}
@media(max-width:600px){.sidebar{overflow:visible}.brand img{max-width:calc(100% - 125px)}}
@media(min-width:601px) and (max-height:800px){nav button{min-height:32px;padding-top:6px;padding-bottom:6px}.channels>div{padding-top:5px;padding-bottom:5px}.plan-card .plan-icon{display:none}.plan-card strong{margin-top:0}.plan-card p{margin:6px 0}.plan-track{margin:8px 0}.settings-nav{padding-bottom:10px}.sidebar-label{margin-top:12px}}

.real-time{display:block;font-size:10px;color:#8b9b9e;margin:-2px 0 8px 4px}
.source-switch{display:flex;gap:6px;margin-bottom:12px}.source-switch button{font-size:12px;border:1px solid #d5e3e0;background:white;border-radius:8px;padding:7px 12px;color:#4a6468}.source-switch button.selected{background:#e6f3e8;color:#2f6a49;border-color:#bcd9c4}

@media(max-width:600px){.channels{display:block;margin:12px 0 0;padding:0}.channels .sidebar-label,.channels>div:not(.clickable){display:none}.channels>div.clickable{display:flex;min-height:44px;align-items:center;justify-content:space-between;border:1px solid #ffffff2b;border-radius:9px;padding:10px 12px;cursor:pointer}}

/* Chat do painel com o agente (Em teste) */
.zlt-owner-chat{margin:12px 0;padding-top:8px;border-top:1px solid #cfd8d6}
.zlt-owner-chat-log{max-height:260px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;margin:8px 0;padding:4px}
.zlt-owner-chat-msg{max-width:92%;padding:8px 12px;border-radius:10px;background:#f1f4f3;color:#17211f;border:1px solid #d5dedb;overflow-wrap:anywhere}
.zlt-owner-chat-msg strong{color:#0f5c4d}
.zlt-owner-chat-msg p{margin:2px 0 0;white-space:pre-wrap}
.zlt-owner-chat-msg.is-owner{align-self:flex-end;background:#dcf3e6;color:#10231a;border-color:#b6dcc6}
.zlt-owner-chat-msg.is-owner strong{color:#0b5a3a}
.zlt-owner-chat-form{display:flex;gap:8px;align-items:flex-end}
.zlt-owner-chat-form textarea{flex:1;min-width:0}
@media (max-width:480px){.zlt-owner-chat-form{flex-direction:column;align-items:stretch}.zlt-owner-chat-msg{max-width:100%}}
