@import "https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;650;700&display=swap";
.mobile-list-title,.mobile-section-back{display:none}.agency-root{background:var(--bg);flex-direction:column;height:100dvh;display:flex;overflow:hidden}.policy-page{color:#18273e;background:#f8f9fa;height:100dvh;padding:40px max(24px,50vw - 425px);line-height:1.85;overflow:auto}.policy-page article{padding:50px 0 70px}.policy-page h1{letter-spacing:-.6px;margin:10px 0 25px;font-size:32px;line-height:1.3}.policy-page h2{margin:30px 0 10px;font-size:19px}.policy-page p{color:#515a67;margin:14px 0}.policy-page a{color:#2563eb;text-underline-offset:3px;text-decoration:underline}.policy-page .agency-wordmark{text-decoration:none}.policy-date{font-size:11px;margin-top:40px!important}.agency-root>.app-shell{flex:1;height:calc(100dvh - 54px);min-height:0}.agency-bar{border-bottom:1px solid var(--line);background:var(--panel);z-index:5;flex-shrink:0;align-items:center;gap:28px;min-height:54px;padding:8px 22px;display:flex}.agency-wordmark{flex-shrink:0;align-items:center;display:inline-flex}.glivoo-logo{width:144px;max-width:100%;height:auto;display:block}.glivoo-symbol{flex-shrink:0;width:48px;height:48px;display:block}.login-brand{align-items:center;gap:14px;margin-bottom:5px;display:flex}.login-brand .glivoo-logo{width:180px}.workspace-switch{color:var(--muted);flex:1;align-items:center;gap:8px;min-width:0;display:flex}.workspace-switch>svg{flex-shrink:0}.workspace-select{background:var(--hover);border-radius:8px;min-width:0;max-width:100%;display:grid;position:relative}.workspace-select-label{overflow-wrap:anywhere;color:var(--text);grid-area:1/1;padding:8px 32px 8px 12px;font-size:12px;line-height:18px}.workspace-select>svg{pointer-events:none;position:absolute;top:50%;right:10px;transform:translateY(-50%)}.workspace-select:focus-within{outline:2px solid var(--brand);outline-offset:2px}.workspace-switch select{opacity:0;cursor:pointer;background:var(--hover);border:0;width:100%;max-width:100%;height:100%;font-size:12px;position:absolute;inset:0}.agency-bar-actions{align-items:center;gap:12px;margin-left:auto;font-size:12px;display:flex}.agency-bar-actions button{border-radius:6px;padding:7px 10px;font-size:12px}.agency-bar-actions button.selected,.agency-bar-actions button:hover{background:var(--brand-soft);color:var(--brand)}.agency-identity{color:var(--muted)}.demo-tag{color:#886319;background:#fff5df;border-radius:20px;padding:4px 9px;font-size:11px}.agency-dashboard{background:var(--hover);height:100%;color:var(--text);padding:40px clamp(24px,5vw,90px);overflow:auto}.agency-dashboard-heading{justify-content:space-between;align-items:center;gap:20px;margin-bottom:30px;display:flex}.agency-dashboard-heading h1{letter-spacing:-.6px;margin:9px 0;font-size:27px;font-weight:650}.agency-dashboard-heading p{color:var(--muted);font-size:13px}.agency-stats{grid-template-columns:repeat(3,1fr);gap:20px;margin-bottom:26px;display:grid}.agency-stats>div{background:var(--panel);border:1px solid var(--line);border-radius:12px;grid-template-columns:1fr auto;gap:12px;padding:23px;display:grid}.agency-stats svg{color:var(--brand);background:var(--brand-soft);border-radius:12px;grid-area:1/2/3;width:42px;height:42px;padding:10px}.agency-stats strong{font-size:28px;font-weight:650;line-height:1}.agency-stats span{color:var(--muted);font-size:12px}.agency-note{color:#7c6a43;background:#fffaf0;border:1px solid #e6d9b5;border-radius:9px;margin-bottom:24px;padding:13px 18px;font-size:12px}.agency-tabs{border-bottom:1px solid var(--line);align-items:center;gap:20px;margin-bottom:26px;display:flex}.agency-tabs>button{color:var(--muted);border-bottom:2px solid #0000;padding:14px 0;font-size:13px;font-weight:600}.agency-tabs>button.selected{border-color:var(--brand);color:var(--brand)}.agency-search{color:var(--muted);align-items:center;gap:8px;margin-left:auto;display:flex}.agency-search input{background:0 0;border:0;max-width:230px;padding:7px;font-size:12px}.client-grid{grid-template-columns:repeat(auto-fill,minmax(275px,1fr));gap:20px;display:grid}.client-card{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:23px;box-shadow:0 3px 10px #111b2103}.client-open{text-align:left;width:100%;color:var(--text);display:block}.client-open:hover{border-color:var(--brand)}.client-open:focus-visible{outline:2px solid var(--brand);outline-offset:3px}.client-card-name{overflow-wrap:anywhere;margin-bottom:8px;font-size:16px;font-weight:650;display:block}.client-card-phone{color:var(--muted);margin-bottom:24px;font-size:12px;display:block}.client-open-link{border-top:1px solid var(--line);color:var(--brand);justify-content:space-between;align-items:center;padding-top:16px;font-size:13px;display:flex}.master-client-detail>h2{overflow-wrap:anywhere;margin-bottom:8px;font-size:22px}.master-client-info{background:var(--panel);border:1px solid var(--line);border-radius:12px;grid-template-columns:minmax(150px,1fr) minmax(130px,1fr) minmax(290px,2fr) auto;align-items:end;gap:24px;padding:22px;display:grid}.master-client-info>div,.master-client-info .agency-plan label{grid-template-rows:18px 40px;gap:8px;min-width:0;margin:0;display:grid}.master-client-info .master-client-label{letter-spacing:normal;color:var(--muted);white-space:nowrap;font-size:12px;font-weight:500;line-height:18px;display:block}.master-client-info>div>p{align-items:center;height:40px;margin:0;font-size:14px;display:flex}.master-client-info .agency-plan input,.master-client-info .secondary{box-sizing:border-box;height:40px}.master-client-info .agency-plan{grid-template-columns:minmax(185px,1fr) auto;align-items:end;gap:16px;margin:0;display:grid}.master-client-info .agency-plan input{max-width:none}.master-client-info>.secondary{white-space:nowrap;justify-self:start}@media (max-width:1100px){.master-client-info{grid-template-columns:1fr 1fr}}@media (max-width:600px){.master-client-info{grid-template-columns:minmax(0,1fr);gap:18px;padding:18px}.master-client-info .agency-plan{grid-template-columns:minmax(0,1fr);gap:10px}.master-client-info .agency-plan>.secondary{justify-self:start}}.master-client-users-heading{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin:26px 0 14px;display:flex}.master-client-users-heading h3 small{color:var(--muted);font-size:12px;font-weight:400}.client-number-list{background:var(--panel);border:1px solid var(--line);border-radius:12px;overflow:hidden}.client-number-row{align-items:center;gap:16px;padding:20px 22px;display:flex}.client-number-row+.client-number-row{border-top:1px solid var(--line)}.client-number-row>svg{color:var(--accent);flex-shrink:0}.client-number-row>div{overflow-wrap:anywhere;flex:1;min-width:0}.client-number-row p{color:var(--muted);margin:6px 0 0;font-size:13px}.client-number-row>button{white-space:nowrap}.agency-form .client-number-choices{border:1px solid var(--line);border-radius:10px;gap:12px;padding:12px;display:grid}.agency-form .client-number-choices label{flex-direction:row;align-items:center;gap:10px;margin:0;display:flex}.agency-form .client-number-choices input{flex-shrink:0;width:17px;height:17px}.client-number-choices label small{margin-top:4px;display:block}@media (max-width:600px){.client-number-row{flex-wrap:wrap;gap:12px;padding:18px}.client-number-row>div{flex-basis:calc(100% - 40px)}.client-number-row>button{margin-left:auto}}.master-client-detail [role=tabpanel]>section>h2{margin-bottom:10px;font-size:18px}.master-client-detail [role=tabpanel]>section>p{color:var(--muted);margin-bottom:16px}.master-client-detail .agency-card{padding:22px}.master-client-detail .agency-card p+p{margin-top:12px}.master-client-detail .agency-stats{grid-template-columns:repeat(auto-fit,minmax(min(200px,100%),1fr));margin:0}.master-client-detail .agency-stats>div{grid-template-columns:1fr}.client-card-top{justify-content:space-between;align-items:center;gap:10px;margin-bottom:20px;display:flex}.client-initial{background:var(--brand-soft);color:var(--brand);border-radius:12px;justify-content:center;align-items:center;width:44px;height:44px;font-size:16px;font-weight:650;display:flex}.client-card h2{margin-bottom:8px;font-size:16px;font-weight:600}.client-card>p{color:var(--muted);margin-bottom:24px;font-size:12px}.client-card-actions{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:8px;padding-top:17px;display:flex}.client-card-actions button{font-size:12px}.agency-users{background:var(--panel);border:1px solid var(--line);border-radius:12px}.agency-user{border-bottom:1px solid var(--line);flex-wrap:wrap;align-items:center;gap:20px;padding:22px;display:flex}.agency-user:last-child{border-bottom:0}.agency-user strong{font-size:14px;font-weight:600}.agency-user p{color:var(--muted);margin:6px 0;font-size:12px}.agency-user span{color:var(--muted);font-size:11px}.user-memberships{flex-wrap:wrap;flex:1;gap:8px;display:flex}.user-memberships>span{background:var(--hover);border-radius:6px;align-items:center;gap:6px;padding:5px 8px;display:flex}.agency-user-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.agency-user-actions button{font-size:12px}.agency-user-actions select{max-width:210px;padding:8px;font-size:12px}.agency-empty{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:14px;padding:60px 25px;display:flex}.agency-empty h1,.agency-empty h2{color:var(--text);font-size:20px;font-weight:500}.agency-empty p{font-size:13px}.agency-loading{height:100dvh;color:var(--muted);justify-content:center;align-items:center;gap:15px;display:flex}.agency-form{flex-direction:column;gap:18px;width:480px;display:flex}.agency-form>p{color:var(--muted);font-size:13px}.agency-form label{flex-direction:column;gap:8px;font-size:12px;display:flex}.agency-form input,.agency-form select{padding:12px}.agency-form small{color:var(--muted);font-size:11px}.agency-error{color:#a84135;background:#fff0ee;border-radius:8px;margin:15px 0;padding:12px}.agency-login{background:#f8f9fa;grid-template-columns:1.1fr 1fr;height:100dvh;display:grid}.login-story{color:#e1eaf7;background:#09182f radial-gradient(at 5% 100%,#112f5b 0%,#0000 65%);flex-direction:column;justify-content:center;padding:65px clamp(40px,6vw,110px);display:flex;position:relative}.login-story .agency-wordmark{color:#eff4fc;position:absolute;top:55px}.login-story .glivoo-logo{filter:brightness(0)invert();width:190px}.login-story h1{letter-spacing:-2px;margin-bottom:24px;font-size:clamp(38px,4vw,62px);font-weight:500;line-height:1.15}.login-story>p{color:#a9b7cc;font-size:15px;line-height:1.9}.login-story-pill{color:#b1c3df;align-items:center;gap:10px;margin-top:42px;font-size:12px;display:flex}.agency-login-form{color:#18273e;flex-direction:column;justify-content:center;gap:20px;width:calc(100% - 60px);max-width:430px;margin:auto;padding:35px 0;display:flex}.agency-login-form h2{letter-spacing:-.5px;font-size:28px;font-weight:600}.agency-login-form>p{color:#6a707a;margin-top:-9px;font-size:13px}.agency-login-form .eyebrow{color:#657285;font-size:10px}.agency-login-form label{flex-direction:column;gap:8px;font-size:12px;display:flex}.agency-login-form input{background:#fff;border-color:#dce0e6;padding:13px}.agency-login-form>small{color:#858b94;text-align:center;font-size:11px}.agency-login-form .brand-icon{margin-bottom:5px}@media (max-width:800px){.agency-bar{gap:12px;padding:0 10px}.agency-bar .glivoo-logo{width:112px}.workspace-switch select{max-width:100%}.agency-bar:has(.workspace-switch){flex-wrap:wrap;row-gap:8px;height:auto;min-height:54px;padding-top:10px;padding-bottom:10px}.agency-bar .workspace-switch{flex-basis:100%;order:3}.workspace-select{flex:1}.agency-identity,.agency-bar-actions button>span{display:none}.agency-dashboard{padding:24px 16px}.agency-stats{gap:10px}.agency-stats>div{padding:14px}.agency-stats svg{display:none}.agency-stats strong{font-size:22px}.agency-dashboard-heading h1{font-size:23px}.agency-tabs{flex-wrap:wrap;gap:15px}.agency-search{width:100%;margin-left:0}.agency-login{grid-template-columns:1fr}.login-story{display:none}}:root{--bg:#fff;--rail:#f0f5fc;--panel:#fff;--text:#0a0a0a;--muted:#636261;--line:#e5e3e1;--brand:#2563eb;--accent:#3b82f6;--brand-soft:#dbeafe;--hover:#f3f7fd;--selected:#eaf2ff;--chat:#f5f1eb;--outgoing:#dbeafe;--bubble:#fff;--input:#f3f7fd;--icon:#636261;--icon-strong:#171717;--rail-active:#dbeafe;--control-border:#ccc;--filter-active:#eaf2ff;--filter-border:#c4c1be;--notice:#f1eeeb;--info:#cbdbf2;--info-text:#54656f;--message-meta:#526580;--placeholder:#70706e;--shadow:0 2px 7px #0b141a12}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden}body,input,textarea,button,select{font-family:Open Sans,Segoe UI,Arial,sans-serif;font-size:14px}body{color:var(--text);background:var(--bg)}button{color:inherit;cursor:pointer;background:0 0;border:0;justify-content:center;align-items:center;gap:8px;display:inline-flex}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}a{color:inherit;text-decoration:none}input,textarea,select{color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:7px;outline:none}input:focus,textarea:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 2px #3b82f613}input::placeholder,textarea::placeholder{color:var(--placeholder)}h1,h2,h3,p{margin:0}svg{flex-shrink:0}button svg{pointer-events:none}.app-shell{width:100%;height:100dvh;display:flex;overflow:hidden}.rail{background:var(--rail);border-right:1px solid var(--line);flex-direction:column;flex-shrink:0;justify-content:space-between;align-items:center;width:64px;padding:17px 8px 15px;display:flex}.rail-top,.rail-bottom{flex-direction:column;align-items:center;gap:15px;display:flex}.rail-bottom{gap:18px}.rail-button{width:42px;height:42px;color:var(--icon);border-radius:50%;position:relative}.rail-button:hover,.rail-button.active{background:var(--rail-active);color:var(--icon-strong)}.rail-dot{border:2px solid var(--rail);background:#ff3345;border-radius:50%;width:10px;height:10px;position:absolute;top:4px;right:7px}.rail-divider{background:var(--line);width:24px;height:1px;margin:3px 0}.connection-dot{border:2px solid var(--rail);pointer-events:none;background:#f59e0b;border-radius:50%;width:11px;height:11px;position:absolute;top:-1px;right:-1px}.connection-dot.connected{background:#16a34a}.profile-button{padding:0;display:inline-flex;position:relative}.avatar{letter-spacing:.2px;color:#8f5637;background:#f6dfcf;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:49px;height:49px;font-size:16px;font-weight:600;display:inline-flex;overflow:hidden}.avatar img{object-fit:cover;width:100%;height:100%}.avatar.small{width:39px;height:39px;font-size:13px}.rail .avatar.small{width:32px;height:32px;font-size:11px}.avatar.rose{color:#915c54;background:linear-gradient(145deg,#edcfc7,#e7b5ad)}.avatar.blue{color:#4a728b;background:linear-gradient(145deg,#d7e4ed,#bfd3e1)}.avatar.purple{color:#80609c;background:linear-gradient(145deg,#e4daef,#d3c4e5)}.avatar.sand{color:#967946;background:linear-gradient(145deg,#efe1c9,#e3d0aa)}.avatar.green{color:#4c5f7c;background:linear-gradient(145deg,#d5dde9,#bac6d8)}.chat-list{border-right:1px solid var(--line);background:var(--panel);flex-direction:column;flex-shrink:0;width:401px;min-width:330px;display:flex}.list-header{justify-content:space-between;align-items:center;height:76px;padding:0 22px;display:flex}.list-header h1{letter-spacing:-1px;align-items:center;gap:9px;font-size:23px;font-weight:700;display:flex}.business-label{letter-spacing:1.1px;color:var(--brand);background:var(--brand-soft);border-radius:4px;padding:4px 6px;font-size:8px;font-weight:700;position:relative;top:1px}.header-actions{gap:14px;display:flex}.header-actions button{color:var(--icon-strong);padding:4px}.header-actions button[aria-label=Nova\ conversa]{background:var(--icon-strong);color:var(--panel);border-radius:50%;padding:8px}.search-box{background:var(--input);height:38px;color:var(--muted);border-radius:8px;align-items:center;gap:18px;margin:0 16px 12px;padding:0 13px;display:flex}.search-box input{width:100%;min-width:0;box-shadow:none;background:0 0;border:0;font-size:11px}.search-box input:focus{box-shadow:none}.filters{gap:7px;padding:0 16px 15px;display:flex}.filters button{border:1px solid var(--control-border);white-space:nowrap;color:var(--muted);border-radius:20px;gap:5px;padding:6px 10px;font-size:11px}.filters button.selected{border-color:var(--filter-border);background:var(--filter-active);color:var(--text)}.filters span{font-size:10px}.connect-notice{background:var(--notice);border-radius:9px;align-items:flex-start;gap:10px;margin:0 12px 10px;padding:15px 11px;display:flex}.notice-symbol{width:37px;height:37px;color:var(--icon-strong);background:0 0;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex}.connect-notice strong{font-size:12px;font-weight:600}.connect-notice p{color:var(--muted);margin-top:4px;font-size:10px}.connect-notice div>button{color:var(--brand);padding:7px 0 0;font-size:11px;font-weight:600}.connect-notice>button{color:var(--icon-strong);margin-left:auto;padding:0}.conversation-list{scrollbar-width:thin;scrollbar-color:#ccd1d3 transparent;flex:1;overflow-y:auto}.conversation{text-align:left;flex-shrink:0;justify-content:flex-start;gap:13px;width:100%;height:78px;padding:0 15px;display:flex}.conversation:hover{background:var(--hover)}.conversation.selected{background:var(--selected)}.conversation:has(.conversation-labels){height:100px}.conversation-labels{flex-wrap:wrap;align-items:center;gap:5px;min-width:0;display:flex}.conversation-labels.compact{flex-wrap:nowrap;overflow:hidden}.conversation-label-chip{color:var(--text);border:1px solid;border-radius:6px;align-items:center;gap:5px;min-width:0;max-width:220px;padding:4px 8px;font-size:11px;line-height:1.2;display:inline-flex}.conversation-label-chip>svg{flex-shrink:0}.conversation-label-chip>span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.compact .conversation-label-chip{max-width:140px;padding:3px 6px;font-size:10px}.conversation-label-more{color:var(--muted);flex-shrink:0;font-size:10px}.conversation-label-filter{border:1px solid var(--line);min-height:35px;color:var(--muted);background:var(--panel);border-radius:9px;flex-shrink:0;align-items:center;gap:8px;margin:0 16px 12px;padding:0 10px;display:flex}.conversation-label-filter.active{color:#2563eb;border-color:#2563eb}.conversation-label-filter select{width:100%;min-width:0;color:var(--text);background:0 0;border:0;flex:1;padding:8px 0;font-size:12px}.conversation-label-filter button{color:inherit;place-items:center;padding:3px;display:grid}.conversation-content{border-bottom:1px solid var(--line);flex-direction:column;flex:1;justify-content:center;gap:7px;min-width:0;height:100%;padding-right:1px;display:flex}.conversation-line{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex}.conversation-line strong{white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:500;overflow:hidden}.conversation-name{align-items:center;gap:6px;min-width:0;display:flex}.conversation-avatar{flex-shrink:0;align-self:center;display:inline-flex;position:relative}.conversation-avatar-ai,.conversation-inline-labels{display:none}.conversation-ai-mode{color:#8b3dff;flex:0 0 23px;justify-content:center;align-items:center;width:23px;height:23px;line-height:1;display:inline-flex}.conversation-ai-mode>svg{flex-shrink:0;width:23px;height:23px;display:block}.conversation-line time{white-space:nowrap;color:var(--muted);font-size:10px}.conversation-line time.unread-time{color:var(--text);font-weight:600}.conversation-line.preview{color:var(--muted);font-size:11px}.conversation-line.preview>span:first-child{white-space:nowrap;align-items:center;gap:3px;min-width:0;display:flex;overflow:hidden}.conversation-preview-text{text-overflow:ellipsis;min-width:0;overflow:hidden}.conversation-badges{color:#8a969c;flex-shrink:0;align-items:center;gap:8px;display:flex}.conversation-badges b{background:var(--accent);color:#fff;border-radius:50px;justify-content:center;align-items:center;min-width:18px;height:18px;padding:0 5px;font-size:10px;font-weight:600;display:flex}.list-footer{height:48px;color:var(--muted);border-top:1px solid var(--line);flex-shrink:0;justify-content:center;align-items:center;gap:6px;font-size:9px;display:flex}.chat-pane{background:var(--chat);flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.contact-avatar-button{border-radius:50%;flex-shrink:0;padding:0}.agency-admin-context{color:var(--muted);align-items:center;gap:7px;font-size:12px;display:flex}.filters{flex-shrink:0;overflow-x:auto}.filters>button{white-space:nowrap;flex-shrink:0}.support-compose-notice{color:#6a5312;background:#fff7d8;border-radius:8px;margin-bottom:6px;padding:9px 16px;font-size:12px}.support-compose-notice:has(>.assignee-notice:empty){display:none}.assignee-notice>button{cursor:pointer;color:inherit;font:inherit;background:0 0;border:0;padding:0;font-weight:700;text-decoration:underline}.assignee-notice>button:disabled{cursor:wait}.bubble.sticker-bubble{box-shadow:none;background:0 0;min-width:0;padding:4px}.bubble.sticker-bubble:before,.bubble.sticker-bubble:after{display:none}.sticker-bubble .message-image{object-fit:contain;width:170px;max-width:100%;height:170px;display:block}.sticker-bubble .message-meta{background:var(--panel);border-radius:8px;width:fit-content;margin-left:auto;padding:2px 6px}.save-sticker-button{background:var(--panel);width:27px;height:27px;color:var(--muted);border-radius:50%;place-items:center;display:grid;position:absolute;top:38px;right:-32px}.incoming .save-sticker-button{left:auto;right:-32px}.outgoing .save-sticker-button{left:-32px;right:auto}.contact-panel-open .window-badge{display:none}.contact-panel-open .chat-header{gap:12px;padding-inline:14px}.contact-panel-open .contact-heading{min-width:0}.contact-panel-open .contact-heading strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.chat-header{background:var(--panel);border-bottom:1px solid var(--line);flex-shrink:0;align-items:center;gap:19px;min-height:65px;padding:8px 23px;display:flex}.contact-heading{text-align:left;flex-direction:column;flex:1;align-items:flex-start;gap:3px;min-width:0;margin-right:auto;padding:0;display:flex}.contact-name-line{flex-wrap:wrap;align-items:center;gap:5px 8px;min-width:0;max-width:100%;display:flex;position:relative}.contact-name-button{text-align:left;min-width:0;max-width:100%;color:var(--text);padding:0;display:flex}.contact-name-button>strong{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.contact-name-line .conversation-labels{max-width:100%}.contact-name-line .conversation-label-chip{max-width:min(220px,100%)}.contact-label-summary{align-items:center;gap:4px;min-width:0;max-width:100%;display:flex}.contact-label-summary .conversation-labels{flex-wrap:nowrap;min-width:0}.contact-heading strong{font-size:14px;font-weight:650}.contact-heading .contact-phone{color:var(--muted);font-size:10px}.chat-header>button{color:var(--icon-strong);padding:5px}.window-badge{color:var(--muted);border:1px solid var(--control-border);border-radius:15px;align-items:center;gap:6px;padding:6px 10px;font-size:10px;display:flex}.window-badge>span{background:var(--accent);border-radius:50%;width:5px;height:5px}.support-menu-status{border-bottom:1px solid var(--line);gap:7px;margin-bottom:4px;padding:8px 12px 12px;display:grid}.support-menu-status>span{color:var(--muted);font-size:11px}.support-menu-status select{width:100%}.messages-area{isolation:isolate;background-color:var(--chat);background-image:url(/chat-pattern.svg);background-size:440px;flex:1;min-height:0;padding:23px clamp(25px,5vw,92px) 24px;position:relative;overflow:auto}.day-pill{background:var(--bubble);box-shadow:var(--shadow);width:max-content;color:var(--info-text);border-radius:7px;margin:0 auto 18px;padding:6px 11px;font-size:10px}.encryption-note{background:var(--info);color:var(--info-text);box-shadow:var(--shadow);text-align:center;border-radius:7px;justify-content:center;align-items:center;gap:5px;width:fit-content;max-width:100%;margin:0 auto 30px;padding:7px 11px;font-size:9px;display:flex}.message-stack{flex-direction:column;display:flex}.message-row{margin-top:17px;display:flex}.message-row.grouped{margin-top:4px}.message-row.outgoing{justify-content:flex-end}.bubble{background:var(--bubble);border-radius:8px;min-width:74px;max-width:77%;min-height:34px;padding:9px 10px 6px;font-size:12px;line-height:1.55;position:relative;box-shadow:0 1px 1px #0b141a20}.bubble.outbound{background:var(--outgoing)}.message-row:not(.grouped) .bubble:before{content:"";border-top:12px solid var(--bubble);border-left:9px solid #0000;position:absolute;top:0;left:-7px}.message-row.outgoing:not(.grouped) .bubble:before{border-top-color:var(--outgoing);border-left:0;border-right:9px solid #0000;left:auto;right:-7px}.bubble p{white-space:pre-wrap;overflow-wrap:anywhere;padding-right:0}.message-meta{min-height:16px;color:var(--message-meta);float:right;justify-content:flex-end;align-items:center;gap:4px;margin:2px 0 0 15px;font-size:9px;line-height:14px;display:flex;overflow:visible}.message-status{vertical-align:middle;flex:0 0 18px;justify-content:center;align-items:center;width:18px;height:16px;display:inline-flex;overflow:visible}.delivery-check{pointer-events:auto;color:inherit;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:3px;padding:0;display:inline-flex}.delivery-check:hover{text-decoration:underline}.message-status svg{width:16px;height:16px;display:block;overflow:visible}.bubble:after{content:"";clear:both;display:block}.read{color:#53bdeb}.reply-button{color:#667781;opacity:0;background:#ffffffbf;border-radius:50%;width:25px;height:25px;position:absolute;top:5px;right:-30px}.bubble:hover .reply-button,.reply-button:focus-visible{opacity:1}.document-card{cursor:pointer;background:#ffffff70;border-radius:5px;align-items:center;gap:11px;min-width:270px;margin:0 0 5px;padding:13px 10px;display:flex}.document-icon{color:#e16f65;justify-content:center;align-items:center;width:34px;height:40px;display:flex}.document-card>span:nth-child(2){flex-direction:column;flex:1;gap:5px;display:flex}.document-card strong{font-size:11px;font-weight:500}.document-card small{color:var(--muted);font-size:9px}.document-card>svg{color:#818892}.composer-area{background:var(--chat) url(/chat-pattern.svg) repeat;background-size:440px;flex-shrink:0;padding:11px 18px 7px}.composer{background:var(--bg);border-radius:10px;flex-direction:column;gap:8px;min-height:55px;padding:11px 14px;display:flex;box-shadow:0 1px 2px #0b141a08}.composer-actions{align-items:center;gap:17px;width:100%;min-height:28px;display:flex}.composer-actions>.send-button,.composer-actions>button[aria-label=Gravar\ áudio]{margin-left:auto}.composer-suggestion-slot{min-width:0;display:inline-flex}.composer-suggestion-slot:empty{display:none}.composer-actions>button,.emoji-wrap>button{color:var(--icon-strong);flex-shrink:0;padding:0}.composer-input-layer{min-width:0;position:relative}.composer-input-layer textarea{display:block}.composer-draft-mirror{pointer-events:none;-webkit-user-select:none;user-select:none;white-space:pre-wrap;overflow-wrap:break-word;color:#0000;position:absolute;inset:0;overflow:hidden}.composer-draft-mirror strong{font-weight:inherit;color:var(--text);-webkit-text-stroke:.55px currentColor}.composer textarea,.composer-draft-mirror{resize:none;box-shadow:none;background:0 0;border:0;flex:none;width:100%;min-width:0;min-height:32px;max-height:132px;padding:6px 0;font-size:13px;line-height:20px;overflow-y:hidden}.composer-caption{color:#8e9a9d;justify-content:center;align-items:center;gap:7px;padding-top:7px;font-size:8px;display:flex}.tiny-dot{background:currentColor;border-radius:50%;width:5px;height:5px;display:inline-block}.send-button{color:var(--accent)!important}.composer.voice-mode{border-radius:28px;padding:8px 10px 8px 18px}.voice-recorder{flex:1;min-width:0}.voice-recorder-controls{justify-content:flex-end;align-items:center;gap:14px;min-height:40px;display:flex}.voice-recorder button{width:28px;height:32px;color:var(--icon-strong);flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}.voice-recording-dot{background:#c81042;border-radius:50%;flex-shrink:0;width:9px;height:9px}.is-recording .voice-recording-dot{animation:1.2s ease-in-out infinite voice-pulse}.voice-timer{font-variant-numeric:tabular-nums;min-width:41px;color:var(--text);font-size:15px}.voice-waveform{flex:0 210px;justify-content:flex-end;align-items:center;gap:2px;min-width:24px;height:28px;display:flex;overflow:hidden}.voice-waveform span{background:var(--muted);border-radius:2px;flex-shrink:0;width:2px;transition:height 80ms linear;display:block}.voice-recorder .voice-pause{color:#c81042}.voice-recorder .voice-send{background:var(--icon-strong);width:40px;height:40px;color:var(--bg);border-radius:50%}.voice-send:disabled{opacity:.45}.voice-spinner{color:#c81042;flex-shrink:0;animation:1s linear infinite voice-spin}.voice-state{text-align:right;color:var(--muted);padding:2px 56px 0 0;font-size:11px;display:block}.voice-error{color:#c81042;padding-top:8px;font-size:12px}.voice-error audio{max-width:100%;margin-top:6px;display:block}@keyframes voice-pulse{50%{opacity:.35}}@keyframes voice-spin{to{transform:rotate(360deg)}}@media (max-width:600px){.voice-recorder-controls{gap:8px}.voice-waveform{flex:1}}@media (prefers-reduced-motion:reduce){.is-recording .voice-recording-dot,.voice-spinner{animation:none}}.emoji-wrap{display:flex;position:relative}.emoji-picker{background:var(--panel);border:1px solid var(--line);border-radius:12px;grid-template-columns:repeat(4,1fr);gap:9px;padding:12px;display:grid;position:absolute;bottom:45px;left:-20px;box-shadow:0 8px 30px #0002}.emoji-picker button{padding:4px;font-size:23px}.menu-wrap{display:flex;position:relative}.conversation-check{border:1.5px solid #868d98;border-radius:4px;flex:0 0 19px;place-items:center;width:19px;height:19px;margin-right:10px;display:grid}.conversation-check.checked{color:#fff;background:#2563eb;border-color:#2563eb}.header-actions .conversation-options{z-index:30;min-width:215px}.header-actions .conversation-options button{border-radius:0;justify-content:flex-start;gap:10px;width:100%;height:auto;padding:12px 16px;font-size:13px}.header-actions .conversation-options{max-height:calc(100dvh - 110px);overflow-y:auto}.header-actions .conversation-options .conversation-filter-option{justify-content:space-between}.conversation-filter-option[aria-checked=true]{color:var(--brand);background:var(--brand-soft)}.menu-wrap>button{color:var(--muted);padding:4px}.dropdown{z-index:20;background:var(--panel);border-radius:5px;min-width:215px;padding:6px 0;position:absolute;top:36px;right:0;box-shadow:0 4px 20px #0002}.dropdown button{white-space:nowrap;justify-content:flex-start;width:100%;padding:13px 18px;font-size:12px;display:flex}.dropdown button:hover{background:var(--hover)}.reply-preview{background:var(--panel);border-left:3px solid var(--accent);color:var(--brand);border-radius:5px;align-items:center;gap:12px;margin-bottom:8px;padding:10px 13px;display:flex}.reply-preview div{flex:1;min-width:0;font-size:11px}.reply-preview p{white-space:nowrap;text-overflow:ellipsis;color:var(--muted);margin-top:4px;overflow:hidden}.reply-preview button{color:var(--muted);padding:4px}.quoted{border-left:3px solid var(--accent);background:#00000006;border-radius:4px;margin-bottom:8px;padding:7px 10px;font-size:11px}.quoted strong{color:var(--brand)}.quoted p{color:var(--muted);font-size:10px}.message-search{background:var(--panel);border-bottom:1px solid var(--line);color:var(--muted);align-items:center;gap:12px;padding:9px 20px;display:flex}.message-search input{background:var(--input);border:0;flex:1;padding:8px}.message-image,.bubble video{object-fit:contain;border-radius:4px;max-width:100%;max-height:300px}.image-bubble{padding:3px}.message-visual{border-radius:5px;width:fit-content;max-width:100%;line-height:0;display:block;position:relative;overflow:hidden}.message-visual .message-image{display:block}.message-visual .media-meta{float:none;color:#fff;text-shadow:0 1px 2px #0009;pointer-events:none;background:radial-gradient(at 100% 100%,#0009,#0005 48%,#0000 75%);margin:0;padding:8px 5px 2px 24px;font-size:10px;position:absolute;bottom:0;right:0}.bubble audio{width:260px;max-width:100%}.media-placeholder{align-items:center;gap:8px;display:flex}.window-warning{color:var(--text);align-items:flex-start;gap:10px;padding:4px 0;font-size:14px;line-height:1.45;display:flex}.window-warning svg{color:var(--muted);flex-shrink:0;margin-top:1px}.window-warning p{margin:3px 0}.window-warning button{color:var(--brand);text-align:left;padding:4px 0;text-decoration:underline}.empty-thread,.empty-list{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:12px;padding:50px 20px;display:flex}.empty-thread span{font-size:11px}.empty-list p{font-size:12px}.welcome{background:var(--rail);text-align:center;border-bottom:6px solid var(--accent);flex-direction:column;flex:1;justify-content:center;align-items:center;padding:25px;display:flex}.welcome-icon{color:#7e90aa;background:#dee4ee;border-radius:45%;justify-content:center;align-items:center;width:130px;height:115px;margin-bottom:35px;display:flex;position:relative}.welcome-icon>span{background:var(--accent);color:#fff;border:4px solid var(--rail);border-radius:50%;justify-content:center;align-items:center;width:34px;height:34px;display:flex;position:absolute;bottom:13px;right:16px}.welcome h2{letter-spacing:-.8px;font-size:27px;font-weight:400}.welcome p{color:var(--muted);margin:15px 0 25px;font-size:12px;line-height:1.9}.welcome small{color:var(--muted);align-items:center;gap:6px;margin-top:55px;font-size:10px;display:flex}.primary{background:var(--brand);color:#fff;border-radius:7px;gap:8px;min-height:40px;padding:11px 18px;font-size:12px;font-weight:600;display:inline-flex}.primary:hover{background:#1d4ed8}.secondary{border:1px solid var(--line);background:var(--panel);min-height:40px;color:var(--muted);border-radius:7px;padding:10px 15px;font-size:12px}.secondary:hover{background:var(--hover)}.text-button{color:var(--brand);align-items:center;gap:7px;padding:0;font-size:12px;display:inline-flex}.full{width:100%}.workspace{background:#f9fafb;flex:1;min-width:0;padding:45px clamp(25px,4vw,70px);overflow:auto}.workspace-header{justify-content:space-between;align-items:center;gap:20px;padding-bottom:35px;display:flex}.eyebrow{letter-spacing:1.6px;color:#818791;font-size:9px;font-weight:700}.workspace-header h1{letter-spacing:-.9px;margin:9px 0;font-size:29px;font-weight:600}.workspace-header p{color:var(--muted);font-size:12px}.action-group{gap:10px;display:flex}.template-stats{grid-template-columns:repeat(3,1fr);gap:20px;margin:5px 0 40px;display:grid}.template-stats>div{border:1px solid var(--line);background:var(--panel);border-radius:9px;flex-direction:column;gap:15px;padding:22px 24px;display:flex}.template-stats span{color:var(--muted);font-size:11px}.template-stats strong{font-size:30px;font-weight:500;line-height:1}.templates-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px 12px;margin-bottom:20px;display:flex}.templates-toolbar h2{font-size:15px;font-weight:600}.templates-toolbar h2 span{background:var(--line);color:var(--muted);border-radius:20px;margin-left:6px;padding:2px 7px;font-size:10px;font-weight:500}.templates-toolbar>span{color:var(--muted);white-space:nowrap;font-size:10px}.template-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;display:grid}.template-card{border:1px solid var(--line);background:var(--panel);border-radius:10px;flex-direction:column;padding:21px;display:flex;overflow:hidden}.template-top{justify-content:space-between;align-items:center;margin-bottom:19px;display:flex}.template-icon,.subtle-icon{color:var(--brand);background:var(--brand-soft);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;display:flex}.status-badge{white-space:nowrap;border-radius:20px;align-items:center;gap:5px;padding:5px 9px;font-size:9px;font-weight:500;display:inline-flex}.status-badge.approved{color:#214883;background:#e6ecf5}.status-badge.pending{color:#aa7a19;background:#fff4da}.status-badge.rejected,.status-badge.disabled{color:#b54d4d;background:#fee9e9}.status-badge.neutral{background:var(--input);color:var(--muted)}.template-card h3{overflow-wrap:anywhere;font-size:13px;font-weight:600}.template-tags{color:var(--muted);gap:7px;margin:10px 0 19px;font-size:9px;display:flex}.template-tags span+span:before{content:"·";margin-right:7px}.template-message{white-space:pre-wrap;background:#edf1f6;border:1px solid #dfe5ef;border-radius:7px;flex:1;margin-bottom:18px;padding:16px;font-size:11px;line-height:1.8}.template-message strong{margin-bottom:6px;display:block}.template-message small{color:var(--muted);font-size:9px}.template-card footer{border-top:1px solid var(--line);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:14px;display:flex}.template-card footer span{color:var(--muted);align-items:center;gap:5px;font-size:9px;display:flex}.template-card footer button{color:var(--muted)}.template-card footer .template-delete{color:#b42318;border-radius:6px;align-items:center;gap:5px;padding:6px;display:inline-flex}.template-delete:disabled{opacity:.5;cursor:default}.template-pagination{color:var(--muted);flex-wrap:wrap;justify-content:space-between;align-items:center;gap:14px;margin-top:24px;font-size:12px;display:flex}.template-pagination>div{align-items:center;gap:6px;min-width:0;max-width:100%;display:flex}.template-page-numbers{gap:6px;min-width:0;max-width:360px;padding:3px;display:flex;overflow-x:auto}.template-pagination button{border:1px solid var(--line);background:var(--panel);min-width:36px;min-height:36px;color:var(--text);border-radius:8px;flex-shrink:0;padding:6px 10px}.template-pagination button[aria-current=page]{background:var(--brand);color:#fff;border-color:var(--brand)}.template-pagination button:disabled{opacity:.4;cursor:default}.info-banner{color:#6b7687;background:#eef0f4;border:1px solid #e2e6ec;border-radius:8px;align-items:center;gap:13px;margin-top:30px;padding:18px 20px;display:flex}.info-banner p{flex:1;font-size:10px;line-height:1.8}.info-banner a{white-space:nowrap;color:var(--brand);align-items:center;gap:5px;font-size:10px;display:flex}.empty-state{text-align:center;color:var(--muted);flex-direction:column;align-items:center;gap:15px;padding:60px;display:flex}.empty-state h2{color:var(--text);font-size:20px;font-weight:500}.empty-state p{font-size:12px}.settings-layout{grid-template-columns:230px minmax(0,740px);align-items:start;gap:36px;display:grid}.settings-nav{flex-direction:column;gap:5px;padding-top:4px;display:flex}.settings-nav button{text-align:left;color:var(--muted);border-radius:7px;justify-content:flex-start;gap:12px;padding:14px 12px;font-size:11px}.settings-nav button>svg:last-child:not(:first-child){margin-left:auto;transform:rotate(-90deg)}.settings-nav button.selected{background:var(--brand-soft);color:var(--brand);font-weight:600}.settings-content{flex-direction:column;gap:22px;display:flex}.settings-card{border:1px solid var(--line);background:var(--panel);border-radius:11px;padding:28px}.settings-card h2{font-size:16px;font-weight:600}.card-heading{align-items:center;gap:13px;margin-bottom:22px;display:flex}.brand-icon{color:#fff;background:var(--accent);border-radius:13px;flex-shrink:0;justify-content:center;align-items:center;width:49px;height:49px;display:inline-flex}.card-heading h2{font-size:14px}.card-heading p{color:var(--muted);margin-top:6px;font-size:10px}.card-heading>.status-badge{margin-left:auto}.setup-note{color:#737f90;background:#f3f5f7;border:1px solid #e7e9ed;border-radius:7px;align-items:flex-start;gap:10px;margin:0 0 24px;padding:12px 14px;display:flex}.setup-note p{font-size:10px;line-height:1.8}.setup-note svg{margin-top:3px}.agency-plan{flex-wrap:wrap;align-items:flex-end;gap:10px;margin:16px 0;display:flex}.agency-plan label{flex:1;min-width:130px;margin:0}.agency-plan input{max-width:160px}.agent-availability{flex-direction:row;align-items:center;gap:10px;margin:0 18px 12px;display:flex}.agent-availability select{flex:1;width:auto;min-width:0;padding:6px 8px}.signed-media-caption{white-space:pre-wrap;overflow-wrap:anywhere;padding:5px 8px}label{flex-direction:column;gap:8px;margin-bottom:22px;font-size:11px;font-weight:600;display:flex}label>span{color:var(--brand);display:contents}label input,label select,label textarea{border-color:#dfe1e5;width:100%;padding:11px 12px;font-size:12px;font-weight:400}label small{color:#8c9198;font-size:9px;font-weight:400;line-height:1.7}label textarea{resize:vertical}.form-footer{border-top:1px solid var(--line);justify-content:space-between;align-items:center;gap:12px;padding-top:22px;display:flex}.form-footer>span{color:#858b93;align-items:center;gap:6px;font-size:9px;display:flex}.copy-input{border:1px solid var(--line);border-radius:6px;align-items:center;display:flex;overflow:hidden}.copy-input input{background:var(--hover);border:0;border-radius:0;font-size:11px}.copy-input button{color:var(--muted);padding:11px}.webhook-card .card-heading{margin-bottom:24px}.webhook-card label{margin-bottom:14px}.muted{color:var(--muted);font-size:10px;font-weight:400;line-height:1.9}.webhook-card .text-button{margin-top:17px;font-size:10px}.preference-row{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:20px;padding:25px 0;display:flex}.preference-row:last-child{border:0;padding-bottom:0}.preference-row strong{font-size:12px;font-weight:500}.preference-row p{color:var(--muted);margin-top:5px;font-size:10px}.security-item{align-items:flex-start;gap:13px;padding:25px 0;display:flex}.security-item>svg{color:var(--brand)}.security-item strong{font-size:12px}.security-item p{color:var(--muted);margin-top:7px;font-size:11px;line-height:1.9}.profile-card{flex-direction:column;align-items:center;gap:17px;padding:35px;display:flex}.profile-card .avatar{width:100px;height:100px;font-size:30px}.profile-card label{border-top:1px solid var(--line);align-self:stretch;margin:8px 0 0;padding-top:20px}.profile-card label p{color:var(--muted);font-weight:400}.profile-card .muted{text-align:center}.toast{z-index:1000;color:#fff;background:#232d3b;border:1px solid #ffffff18;border-radius:9px;gap:20px;max-width:min(620px,90vw);padding:14px 15px;font-size:12px;animation:.15s ease-out appear;display:flex;position:fixed;bottom:30px;left:50%;transform:translate(-50%);box-shadow:0 5px 30px #0003}.toast span{align-items:center;gap:10px;line-height:1.7;display:flex}.toast button{color:#c4ccd9;padding:3px}.modal-backdrop{z-index:100;-webkit-backdrop-filter:none;backdrop-filter:none;background:#0b141a66;justify-content:center;align-items:center;padding:25px;display:flex;position:fixed;inset:0}.modal{background:var(--panel);border-radius:15px;width:100%;max-width:480px;max-height:92dvh;padding:32px;position:relative;overflow:auto;box-shadow:0 15px 70px #0b141a35}.modal-close{color:var(--muted);position:absolute;top:17px;right:15px}.modal h2{letter-spacing:-.6px;margin:20px 0 9px;font-size:22px;font-weight:600}.modal>p{color:var(--muted);margin-bottom:25px;font-size:11px;line-height:1.8}.modal form label{margin-bottom:18px}.modal .setup-note{margin:5px 0 22px}.template-modal{max-width:1040px}.template-modal:has(.kommo-template-editor){padding:27px 30px 30px}.template-modal:has(.kommo-template-editor)>.modal-close{display:none}.kommo-template-editor{font-family:Segoe UI,Arial,sans-serif}.template-editor-top{background:var(--panel);z-index:5;justify-content:space-between;align-items:center;gap:22px;margin-top:-15px;padding:15px 0 16px;display:flex;position:sticky;top:-28px}.template-name-editor{color:#9aabb0;flex:1;align-items:center;gap:10px;min-width:0;display:flex}.template-name-editor input{width:100%;min-width:0;color:var(--text);box-shadow:none;background:0 0;border:1px solid #0000;padding:5px 0;font-size:16px}.template-name-editor input:focus{border-bottom-color:var(--accent);border-radius:0}.template-editor-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}.template-editor-actions button{white-space:nowrap;border-radius:4px;min-height:36px;padding:10px 12px;font-size:10px}.template-editor-actions .primary{background:#4c8bf5}.template-editor-actions .primary:hover{background:#3478e8}.template-editor-actions .cancel-template{color:#86929a;padding-left:0}.template-editor-meta{color:var(--muted);flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 24px;display:flex}.template-editor-meta button{color:var(--muted);padding:0;font-size:11px}.template-editor-meta>small{margin-left:auto;font-size:8px}.status-badge.draft{color:#4a87b4;background:#dbeeff;border-radius:3px}.template-editor-layout{grid-template-columns:minmax(0,1fr) 300px;align-items:start;gap:48px;display:grid}.template-editor-fields{min-width:0}.template-delivery-disclaimer{color:var(--muted);margin:24px 0 0;font-size:11px;line-height:1.6}.template-delivery-disclaimer a{color:inherit;text-underline-offset:2px;text-decoration:underline}.template-editor-fields label{gap:8px;margin-bottom:20px;font-size:12px;font-weight:400}.template-editor-fields label input,.template-editor-fields label select,.template-editor-fields label textarea{border-radius:4px;padding:10px 11px;font-size:12px}.template-editor-fields label select{min-height:39px}.template-editor-fields .optional{color:var(--muted)}.template-editor-fields .form-columns{gap:20px}.template-api-name{color:var(--muted);margin:-3px 0 23px;font-size:10px}.template-api-name summary{cursor:pointer}.template-api-name summary span{color:#9aa5aa;overflow-wrap:anywhere;margin-left:7px;font-size:9px}.template-api-name label{margin-top:14px}.header-format-select{max-width:190px}.field-help{color:var(--muted);margin:-8px 0 20px;font-size:10px;line-height:1.8}.counted-field{border:1px solid var(--line);background:var(--bg);border-radius:4px;align-items:center;display:flex;overflow:hidden}.counted-field input{width:100%;min-width:0;box-shadow:none;border:0;border-radius:0;flex:1;padding:10px 11px;font-size:12px}.counted-field:focus-within{border-color:var(--accent)}.counted-field small{color:#97a0a5;flex-shrink:0;margin:0 10px;font-size:10px;font-weight:400}label.counted-field{flex-direction:row;gap:0}.body-editor-label{align-items:center;gap:15px;margin:27px 0 9px;display:flex}.body-editor-label label{font-size:12px;margin:0!important}.body-editor-label .secondary{border-radius:4px;min-height:33px;padding:7px 10px;font-size:10px}.ai-analyze svg{color:#9785ed}.template-body-editor{border:1px solid var(--line);background:var(--bg);border-radius:4px;margin-bottom:24px}.template-body-editor:focus-within{border-color:var(--accent)}.template-body-editor textarea{box-shadow:none;resize:vertical;background:0 0;border:0;width:100%;min-height:128px;padding:12px 11px;font-size:12px;line-height:1.7;display:block}.body-editor-toolbar{color:#929ea4;align-items:center;gap:8px;padding:5px 9px 9px;display:flex}.body-editor-toolbar>button,.editor-emoji-wrap>button{color:#929ea4;padding:2px}.body-editor-toolbar>button:hover{color:var(--brand)}.body-editor-toolbar>span{margin-left:auto;font-size:10px}.editor-emoji-wrap{display:flex;position:relative}.editor-emoji-popover{background:var(--panel);border:1px solid var(--line);z-index:10;border-radius:10px;grid-template-columns:repeat(4,1fr);gap:8px;padding:12px;display:grid;position:absolute;bottom:30px;left:-35px;box-shadow:0 5px 30px #0002}.editor-emoji-popover button{padding:3px;font-size:22px}.template-variable-examples{background:var(--hover);border:1px solid var(--line);border-radius:5px;margin:-8px 0 24px;padding:16px}.template-variable-examples h4{margin:0 0 7px;font-size:11px;font-weight:600}.template-variable-examples>p{color:var(--muted);margin-bottom:14px;font-size:9px;line-height:1.8}.template-variable-examples label{font-size:10px;margin-bottom:12px!important}.template-variable-examples label:last-child{margin-bottom:0!important}.template-media-field{margin:-5px 0 25px}.template-upload-zone{background:var(--bg);width:100%;max-width:350px;min-height:102px;color:var(--muted);border:1px dashed #cdd5d8;border-radius:4px;flex-direction:column;gap:10px;padding:15px;font-size:11px;display:flex}.template-upload-zone>svg{color:#c1c9cc}.template-upload-zone small{color:#99a3a8;font-size:9px}.template-upload-zone u{color:#508eb4;text-underline-offset:3px}.template-upload-zone:hover{border-color:var(--accent);background:var(--hover)}.uploaded-template-media{border:1px solid var(--line);color:var(--muted);border-radius:4px;align-items:center;gap:10px;padding:12px;font-size:11px;display:flex}.uploaded-template-media span{overflow-wrap:anywhere;flex:1;min-width:0}.uploaded-template-media small{color:#99a5a9;padding-top:5px;font-size:9px;display:block}.template-buttons-editor h3{margin:5px 0 12px;font-size:12px;font-weight:400}.template-buttons-editor h3 span{color:var(--muted)}.add-template-buttons{flex-wrap:wrap;gap:8px;display:flex}.add-template-buttons .secondary{border-radius:4px;gap:4px;min-height:34px;padding:8px 10px;font-size:10px}.template-button-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 22px;align-items:center;gap:9px;margin-bottom:10px;display:grid}.template-button-row>input{border-radius:4px;min-width:0;padding:10px;font-size:11px}.template-button-row .counted-field input{font-size:11px}.template-button-row:has(>.counted-field+.danger-button){grid-template-columns:minmax(0,1fr) 22px}.danger-button{color:#d47a7a;padding:2px;font-size:10px}.button-url-example{grid-column:1/-1;margin:0!important;font-size:10px!important}.contact-button-row{border:1px solid var(--line);border-radius:4px;grid-template-columns:1fr 22px;padding:12px}.contact-button-row>span{font-size:11px;line-height:1.8}.contact-button-row svg{vertical-align:middle;color:var(--muted);margin-right:5px}.contact-button-row small{color:var(--muted);font-size:9px;display:block}.template-editor-error{color:#a84a4a;background:#fff4f4;border:1px solid #e8b8b8;border-radius:6px;align-items:flex-start;gap:10px;margin-bottom:22px;padding:13px 15px;display:flex}.template-editor-error p{white-space:pre-line;flex:1;font-size:11px;line-height:1.8}.template-editor-error>svg{margin-top:3px}.template-editor-error button{padding:2px}.template-editor-layout>.template-preview{border:0;padding:0;position:sticky;top:60px}.template-phone{background:#fff;border:7px solid #f0f1f2;border-radius:36px;margin-top:0;overflow:hidden;box-shadow:0 3px 12px #00000020}.template-phone-status{color:#45505b;background:#fff;justify-content:space-between;align-items:center;padding:10px 22px 7px;font:600 10px Segoe UI,sans-serif;display:flex}.phone-speaker{background:#e5e5e5;border-radius:10px;width:41px;height:5px;display:inline-block}.phone-status-icons{align-items:center;gap:3px;display:flex}.send-template-card{border:1px solid var(--line);border-radius:6px;margin:0 0 20px;padding:16px}.send-template-card legend{color:var(--muted);padding:0 5px;font-size:11px}.template-phone .template-chat{box-shadow:none;border:0;border-radius:0}.template-phone .template-chat-header{color:#4c8bf5;background:#fff;gap:7px;min-height:49px;padding:8px 10px}.template-phone .template-chat-header strong{color:#344052;font-size:10px}.template-phone .template-chat-header small{font-size:8px}.template-phone .template-chat-avatar{width:29px;height:29px}.template-phone .template-chat-body{scrollbar-width:thin;min-height:390px;max-height:540px;padding:15px 12px 16px;overflow:auto}.template-phone .template-chat-bubble{color:#0a0a0a;background:#dbeafe}.template-phone .template-chat-bubble:before{border-top-color:#dbeafe}.template-phone .template-chat-footer,.template-phone .template-chat-time{color:#526580}.template-phone .template-chat-title,.template-phone .template-chat-text{font-size:11px}.template-phone .template-chat-day{color:#7f8990;background:#fff}.template-phone-composer{color:#4c8bf5;background:#fff;align-items:center;gap:9px;padding:10px;display:flex}.template-phone-composer>span{border:1px solid #e5e9ee;border-radius:15px;flex:1;height:23px}.template-phone-home{background:#e5e5e5;border-radius:5px;width:92px;height:4px;margin:5px auto 7px}.template-preview-media{background:#b4c8e5;border-radius:5px;width:100%;min-height:115px;margin-bottom:10px;overflow:hidden}.template-preview-media>img,.template-preview-media>video{object-fit:cover;width:100%;max-height:220px;display:block}.template-preview-media>span{color:#677b99;flex-direction:column;justify-content:center;align-items:center;gap:9px;min-height:115px;padding:20px;display:flex}.template-preview-media small{text-align:center;overflow-wrap:anywhere;font-size:9px}.template-preview-buttons{background:#fff;border-radius:6px;width:calc(100% - 7px);margin-top:3px;overflow:hidden;box-shadow:0 1px 2px #0002}.template-preview-button{color:#3485d0;text-align:center;overflow-wrap:anywhere;border-top:1px solid #e9edf0;justify-content:center;align-items:center;gap:7px;min-height:39px;padding:12px 8px;font-size:11px;line-height:1.5;display:flex}.template-preview-button:first-child{border-top:0}.template-preview-carousel{scrollbar-width:thin;scroll-snap-type:x mandatory;gap:8px;width:100%;padding:10px 0 6px;display:flex;overflow-x:auto}.template-preview-carousel article{scroll-snap-align:start;color:#222;background:#fff;border-radius:6px;flex-shrink:0;width:205px;min-width:205px;overflow:hidden}.template-preview-carousel article>p{white-space:pre-wrap;overflow-wrap:anywhere;padding:10px;font-size:10px;line-height:1.8}.carousel-preview-media{color:#6e819d;background:#dbe1ea;justify-content:center;align-items:center;height:130px;display:flex}.carousel-preview-media img,.carousel-preview-media video{object-fit:cover;width:100%;height:100%}.template-type-picker{padding:15px 15px 0}.type-picker-heading{margin-bottom:25px}.type-picker-heading h2{margin-bottom:10px;font-size:23px}.type-picker-heading p,.category-description{color:var(--muted);font-size:12px;line-height:1.8}.category-tabs{border-bottom:1px solid var(--line);gap:30px;display:flex}.category-tabs button{color:var(--muted);padding:10px 0 13px;font-size:13px}.category-tabs button.active{color:#4c8bf5;box-shadow:0 2px #4c8bf5}.category-description{margin:20px 0}.template-type-options{grid-template-columns:1fr 1fr;gap:14px;display:grid}.template-type-option{border:1px solid var(--line);text-align:left;border-radius:8px;justify-content:flex-start;gap:13px;padding:20px 16px}.template-type-option.selected{background:#4c8bf508;border-color:#4c8bf5}.template-type-option>span:nth-child(2){flex:1;min-width:0}.template-type-option strong{font-size:13px;font-weight:600;display:block}.template-type-option small{color:var(--muted);margin-top:6px;font-size:10px;line-height:1.7;display:block}.type-option-icon{color:#6a91ce;background:#eef3fc;border-radius:11px;flex-shrink:0;justify-content:center;align-items:center;width:43px;height:43px;display:flex}.type-radio{border:1px solid #cbd5dc;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:16px;height:16px;display:flex}.selected .type-radio{border-color:#4c8bf5}.type-radio>span{background:#4c8bf5;border-radius:50%;width:8px;height:8px}.type-picker-footer{border-top:1px solid var(--line);justify-content:flex-end;gap:10px;margin-top:28px;padding-top:24px;display:flex}.template-type-picker .primary{background:#4c8bf5}.carousel-editor{border:1px solid var(--line);border-radius:6px;padding:18px}.carousel-editor-heading{justify-content:space-between;align-items:center;margin-bottom:17px;display:flex}.carousel-editor h3,.flow-editor h3{font-size:13px;font-weight:600}.carousel-editor-heading small{color:var(--muted);font-size:10px}.carousel-card-tabs{gap:5px;padding-bottom:15px;display:flex;overflow-x:auto}.carousel-card-tabs button{border:1px solid var(--line);white-space:nowrap;border-radius:4px;padding:6px 9px;font-size:10px}.carousel-card-tabs button.selected{color:#4c8bf5;background:#4c8bf512;border-color:#4c8bf580}.carousel-card-settings{justify-content:space-between;align-items:center;gap:10px;display:flex}.carousel-card-settings label{margin-bottom:20px}.carousel-card-settings .danger-button{white-space:nowrap}.carousel-editor .field-help{margin:15px 0 0}.flow-editor{background:var(--hover);border:1px solid var(--line);border-radius:5px;padding:20px}.flow-editor h3{margin-bottom:20px}.catalog-connection{background:var(--hover);border:1px solid var(--line);color:var(--muted);border-radius:6px;gap:13px;padding:20px;display:flex}.catalog-connection strong{color:var(--text);font-size:12px}.catalog-connection p{margin-top:8px;font-size:10px;line-height:1.8}.resource-warnings{color:#a9813c;padding-top:18px;font-size:10px;line-height:1.8}.template-analysis{background:#a58ae908;border:1px solid #cdbcf1;border-radius:7px;margin:-7px 0 24px;padding:17px}.template-analysis>div:first-child{color:#8f70c4;align-items:center;gap:9px;font-size:12px;display:flex}.template-analysis>div:first-child button{margin-left:auto}.template-analysis p,.template-analysis li{font-size:11px;line-height:1.8}.template-analysis p{margin-top:12px}.template-analysis ul{padding-left:17px}.analysis-suggestion{background:var(--panel);white-space:pre-wrap;border-radius:4px;margin:15px 0;padding:13px;font-size:11px;line-height:1.8}.template-analysis>small{color:var(--muted);margin-top:14px;font-size:9px;display:block}@media (max-width:900px){.template-editor-layout{grid-template-columns:minmax(0,1fr) 270px;gap:25px}.template-name-editor input{font-size:13px}.template-editor-actions button{padding:9px;font-size:9px}.template-editor-actions button svg{display:none}}@media (max-width:760px){.template-editor-layout{grid-template-columns:minmax(0,1fr)}.template-editor-layout>.template-preview{border-top:1px solid var(--line);padding-top:25px;position:static}.template-editor-top{flex-wrap:wrap;gap:10px;top:-28px}.template-name-editor{flex-basis:100%}.template-editor-actions{justify-content:flex-end;width:100%}.template-editor-meta>small{flex-basis:100%;margin:3px 0 0}.template-phone{max-width:300px;margin:0 auto}.template-editor-layout .template-preview-heading{max-width:300px;margin-left:auto;margin-right:auto}.template-type-options{grid-template-columns:1fr}.template-type-picker{padding:0}.template-button-row{grid-template-columns:minmax(0,1fr) 22px}.template-button-row>input{grid-column:1}.template-button-row>.danger-button{grid-area:1/2}.template-modal:has(.kommo-template-editor){padding:25px 20px}.template-api-name summary span{margin:5px 0;display:block}}.template-builder-layout{grid-template-columns:minmax(0,1fr) minmax(280px,340px);align-items:start;gap:36px;display:grid}.template-builder-form{min-width:0}.template-preview{border-left:1px solid var(--line);min-width:0;padding-left:28px;position:sticky;top:0}.template-preview-heading{align-items:center;gap:9px;margin:0 0 17px;display:flex}.template-preview-icon{background:var(--brand-soft);width:32px;height:32px;color:var(--brand);border-radius:9px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.template-preview-heading h3{font-size:12px;font-weight:600}.template-preview-heading p{color:var(--muted);margin-top:4px;font-size:9px}.preview-live{color:var(--brand);white-space:nowrap;align-items:center;gap:4px;margin-left:auto;font-size:9px;display:flex}.preview-live>span{background:currentColor;border-radius:50%;width:5px;height:5px}.template-chat{border:1px solid var(--line);border-radius:13px;overflow:hidden;box-shadow:0 5px 20px #0b141a08}.template-chat-header{background:var(--rail);color:var(--muted);align-items:center;gap:8px;padding:13px 10px;display:flex}.template-chat-avatar{background:var(--brand-soft);width:34px;height:34px;color:var(--brand);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;display:flex;overflow:hidden}.template-chat-avatar img{object-fit:cover;width:100%;height:100%}.template-chat-header>div{flex:1;min-width:0}.template-chat-header strong{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:11px;font-weight:600;display:block;overflow:hidden}.template-chat-header small{margin-top:3px;font-size:9px;display:block}.template-chat-body{background:var(--chat) url(/chat-pattern.svg) repeat;background-size:380px;flex-direction:column;align-items:flex-end;min-height:335px;padding:18px 15px;display:flex}.template-chat-day{background:var(--bubble);color:var(--muted);box-shadow:var(--shadow);border-radius:6px;align-self:center;margin:0 0 25px;padding:5px 10px;font-size:9px}.template-chat-bubble{background:var(--outgoing);width:calc(100% - 7px);color:var(--text);overflow-wrap:anywhere;border-radius:8px 0 8px 8px;padding:12px 12px 7px;position:relative;box-shadow:0 1px 2px #0b141a20}.template-chat-bubble:before{content:"";border-top:10px solid var(--outgoing);border-right:8px solid #0000;position:absolute;top:0;right:-7px}.template-chat-title{white-space:pre-wrap;margin-bottom:7px;font-size:12px;font-weight:700;line-height:1.65;display:block}.template-chat-text{white-space:pre-wrap;font-size:12px;line-height:1.75}.template-chat-footer{color:var(--muted);white-space:pre-wrap;margin-top:9px;font-size:10px;line-height:1.7}.template-chat-placeholder{color:var(--muted);font-size:11px;line-height:1.9}.template-chat-variable{color:var(--brand);background:#2563eb1a;border-radius:3px;padding:0 3px}.template-chat-time{color:var(--muted);justify-content:flex-end;align-items:center;gap:4px;margin-top:5px;font-size:9px;display:flex}.template-chat-time svg{color:#53bdeb}.template-chat-secure{color:var(--muted);align-self:center;align-items:center;gap:5px;margin-top:auto;padding-top:30px;font-size:8px;display:flex}.template-preview-hint{color:var(--muted);margin-top:13px;font-size:9px;line-height:1.9}@media (max-width:760px){.template-builder-layout{grid-template-columns:minmax(0,1fr);gap:28px}.template-preview{border-left:0;border-top:1px solid var(--line);padding:24px 0 0;position:static}.template-chat{max-width:350px;margin:0 auto}.template-chat-body{min-height:270px}}.form-columns{grid-template-columns:1fr 1fr;gap:16px;display:grid}.login-modal .primary{width:100%;margin-top:8px}.error-text{color:#d75e5e;display:block}.mobile-back{display:none!important}.spin{animation:1s linear infinite spin}code{overflow-wrap:anywhere;font-size:10px}.empty-list .text-button{font-size:11px}@keyframes spin{to{transform:rotate(360deg)}}@keyframes appear{0%{opacity:0;translate:0 10px}to{opacity:1;translate:0}}[data-theme=dark]{--bg:#202c33;--rail:#202c33;--panel:#111b21;--text:#e9edef;--muted:#8696a0;--line:#2a3942;--brand:#60a5fa;--accent:#60a5fa;--brand-soft:#172e50;--hover:#202c33;--selected:#2a3942;--chat:#0b141a;--outgoing:#1e3a66;--bubble:#202c33;--input:#202c33;--icon:#aebac1;--icon-strong:#e9edef;--rail-active:#35434b;--control-border:#35434b;--filter-active:#15253c;--filter-border:#35434b;--notice:#152133;--info:#18272f;--info-text:#aebac1;--message-meta:#aebac1;--placeholder:#8696a0;--shadow:0 2px 7px #0002}[data-theme=dark] .rail-button{color:#aebac1}[data-theme=dark] .rail-button.active,[data-theme=dark] .rail-button:hover{color:#e9edef;background:#35434b}[data-theme=dark] .workspace{background:#0d171d}[data-theme=dark] .connect-notice,[data-theme=dark] .setup-note,[data-theme=dark] .info-banner{background:#152133;border-color:#212f43}[data-theme=dark] .composer-area{background:#202c33}[data-theme=dark] .day-pill{color:#aebac1;background:#18272f}[data-theme=dark] .encryption-note{color:#c7b276;background:#18272f}[data-theme=dark] .template-message{background:#172336;border-color:#212f43}[data-theme=dark] .filters button{border-color:#35434b}[data-theme=dark] .filters button.selected{color:#6189c6;background:#15253c}[data-theme=dark] .welcome-icon{background:#172e50}[data-theme=dark] label input,[data-theme=dark] label textarea,[data-theme=dark] label select{border-color:#35434b}[data-theme=dark] .document-card{background:#ffffff0b}[data-theme=dark] .window-badge{border-color:#2a3942}@media (min-width:1600px){.chat-list{width:440px}.conversation{height:84px}.conversation-line strong{font-size:15px}.conversation-line.preview{font-size:12px}.bubble{font-size:13px}.messages-area{padding-left:8%;padding-right:8%}}@media (max-width:1150px){.chat-list{width:345px;min-width:300px}.list-header{padding:0 17px}.business-label{display:none}.conversation{gap:10px;padding:0 13px}.conversation-line strong{font-size:13px}.window-badge{display:none}.bubble{max-width:88%}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.settings-layout{grid-template-columns:190px minmax(0,1fr);gap:20px}.settings-card{padding:22px}.workspace{padding:30px}.settings-nav button{padding:13px 8px;font-size:10px}.workspace-header h1{font-size:26px}}@media (max-width:820px){.chat-list{width:310px;min-width:280px}.filters{gap:5px;padding-left:12px;padding-right:12px}.filters button{padding:6px 8px;font-size:10px}.connect-notice{gap:8px;padding:12px 9px}.connect-notice p{font-size:9px}.connect-notice strong{font-size:11px}.messages-area{padding-left:22px;padding-right:22px}.chat-header{gap:12px;padding:0 14px}.composer-area{padding:9px 10px 6px}.composer{gap:12px}.template-composer{display:none}.workspace-header{flex-direction:column;align-items:flex-start;gap:20px}.settings-layout{grid-template-columns:1fr}.settings-nav{flex-flow:wrap}.template-stats{gap:10px}.template-stats>div{padding:16px}.template-grid{grid-template-columns:1fr}.template-card{max-width:100%}.info-banner{flex-wrap:wrap}.templates-toolbar>span{font-size:9px}}@media (max-width:600px){.rail{width:52px;padding:15px 5px}.rail-button{width:37px;height:37px}.rail-top{gap:16px}.chat-list{flex:1;width:calc(100% - 52px);min-width:0}.chat-pane{flex:1;width:calc(100% - 52px)}.mobile-hidden{display:none!important}.mobile-back{display:inline-flex!important}.chat-header{gap:10px;min-height:66px;padding:8px 10px}.chat-header .avatar{width:34px;height:34px;font-size:11px}.contact-heading strong{font-size:12px}.contact-heading .contact-phone{font-size:9px}.chat-header>button{padding:0}.contact-heading{max-width:calc(100% - 135px)}.messages-area{padding:18px 15px}.bubble{max-width:91%;font-size:11px}.document-card{min-width:190px;padding:8px}.document-card strong{font-size:10px}.document-card>svg{width:15px}.encryption-note{margin-bottom:20px;font-size:8px}.composer{border-radius:9px;gap:9px;padding:10px 11px}.composer textarea,.composer-draft-mirror{font-size:12px}.composer-caption{white-space:nowrap;gap:4px;font-size:7px}.composer-area{padding:8px}.composer-actions{gap:9px}.composer-actions>button svg,.emoji-wrap>button svg{width:20px}.list-header{height:74px}.conversation{gap:13px;height:81px;padding:0 15px}.conversation-line strong{font-size:14px}.conversation-line.preview{font-size:11px}.conversation-line time{font-size:10px}.filters button{padding:6px 10px;font-size:11px}.connect-notice p{font-size:10px}.connect-notice strong{font-size:12px}.search-box input{font-size:10px}.workspace{padding:25px 17px}.workspace-header h1{font-size:24px}.workspace-header p{font-size:11px;line-height:1.8}.workspace-header{padding-bottom:25px}.template-stats{gap:7px;margin-bottom:30px}.template-stats>div{gap:12px;padding:14px 12px}.template-stats span{font-size:9px}.template-stats strong{font-size:24px}.settings-card{padding:19px}.card-heading{flex-wrap:wrap;gap:10px}.card-heading h2{font-size:13px}.card-heading>.status-badge{margin:0}.card-heading p{line-height:1.7}.settings-nav{gap:2px}.settings-nav button{gap:6px;padding:11px 8px;font-size:9px}.settings-nav button svg{width:16px}.settings-nav button>svg:last-child:not(:first-child){display:none}.form-footer{flex-wrap:wrap}.form-footer .primary{margin-left:auto}.modal-backdrop{padding:15px}.modal{padding:26px 23px}.modal h2{font-size:20px}.info-banner{padding:15px}.info-banner p{font-size:9px}.toast{width:90%;font-size:11px;bottom:20px}.status-badge{font-size:8px}.templates-toolbar>span{flex-basis:100%}.reply-button{top:-20px;right:0}.bubble audio{width:210px}.search-box{gap:10px}.welcome h2{font-size:23px}}.chat-voice{flex-wrap:wrap;align-items:center;gap:12px;width:316px;max-width:100%;min-height:58px;padding:0;display:flex}.chat-voice audio{display:none}.chat-voice button{color:var(--icon-strong)}.chat-voice-play{flex:0 0 24px;align-self:flex-start;place-items:center;width:24px;height:38px;padding:0;display:grid}.chat-voice-track{flex:1;min-width:40px}.chat-voice-wave{height:38px;position:relative}.chat-voice-bars{justify-content:space-between;align-items:center;gap:1px;height:100%;display:flex;overflow:hidden}.chat-voice-bars i{background:#cbd0d2;border-radius:2px;flex:0 2px;width:2px}.chat-voice-outgoing .chat-voice-bars i{background:#a0b0c8}.chat-voice-bars i.played{background:#53bdeb}.chat-voice-knob{pointer-events:none;background:#53bdeb;border-radius:50%;width:12px;height:12px;position:absolute;top:50%;transform:translate(-50%,-50%)}.chat-voice-wave input{opacity:0;cursor:pointer;width:100%;height:100%;margin:0;position:absolute;inset:0}.chat-voice-wave:focus-within{outline:2px solid var(--brand);outline-offset:3px;border-radius:3px}.chat-voice-time{color:var(--muted);font-variant-numeric:tabular-nums;justify-content:space-between;gap:8px;font-size:11px;line-height:16px;display:flex}.chat-voice-time small{font-size:9px}.chat-voice-person{flex:0 0 54px;place-items:center;width:54px;min-height:54px;display:grid;position:relative}.chat-voice-avatar .avatar{width:54px;height:54px;font-size:18px}.chat-voice-outgoing .chat-voice-person{order:-1}.chat-voice-outgoing .chat-voice-avatar>svg{color:#677180;left:auto;right:-1px}.chat-voice-avatar{display:block;position:relative}.chat-voice-avatar>svg{color:#53bdeb;position:absolute;bottom:-1px;left:-1px;overflow:visible}.chat-voice .chat-voice-speed{color:#fff;font-variant-numeric:tabular-nums;background:0 0;border-radius:12px;place-items:center;width:54px;height:38px;padding:0;font-size:12px;font-weight:600;display:grid}.chat-voice-speed>span{background:#677180;border-radius:12px;place-items:center;width:48px;height:20px;line-height:20px;display:grid}.chat-voice:not(.chat-voice-outgoing) .chat-voice-speed>span{background:#68777d}.chat-voice-avatar+.chat-voice-speed{opacity:0;position:absolute;top:0;left:0}.chat-voice.playing .chat-voice-speed,.chat-voice-person:hover .chat-voice-speed,.chat-voice-speed:focus-visible{opacity:1}.chat-voice.playing .chat-voice-avatar,.chat-voice-person:hover .chat-voice-avatar{visibility:hidden}.chat-voice-person:has(.chat-voice-speed:focus-visible) .chat-voice-avatar{visibility:hidden}.chat-voice-speed:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.chat-voice-error{color:#c81042;flex-basis:100%;align-items:center;gap:6px;font-size:11px;display:flex}.chat-voice-preview{background:var(--input);border-radius:24px;flex:1;width:auto;min-width:0;min-height:48px;padding:5px 12px}.chat-voice-preview .chat-voice-person{flex-basis:54px;width:54px;min-height:38px}.chat-voice-preview .chat-voice-wave{height:28px}.chat-voice-preview .chat-voice-play{align-self:center;height:32px}.chat-voice-preview .chat-voice-time{font-size:10px}.bubble:has(.chat-voice){padding:6px 10px}.bubble .chat-voice-time .message-meta{float:none;margin:0;font-size:11px;line-height:16px}.open-message-image{cursor:zoom-in;border:0;padding:0;display:block}button.quoted{text-align:left;width:100%;color:inherit;display:block}.message-highlight .bubble{outline:2px solid var(--brand);outline-offset:3px}.composer-area{position:relative}.jump-to-bottom{z-index:2;background:var(--bg);width:36px;height:36px;color:var(--icon);border-radius:50%;place-items:center;display:grid;position:absolute;top:-48px;right:22px;box-shadow:0 1px 5px #0003}.draft-label{color:var(--brand);font-weight:600}.chat-media-dialog{border:1px solid var(--line);background:var(--bg);width:min(960px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--text);border-radius:16px;padding:0;overflow:auto}.chat-media-dialog::backdrop{background:#0b141acc}.chat-media-dialog>header{border-bottom:1px solid var(--line);align-items:center;gap:18px;padding:18px 24px;display:flex}.chat-media-dialog>header>div{flex:1}.chat-media-dialog>header small{color:var(--muted);margin-top:4px;display:block}.chat-media-dialog button,.chat-media-dialog a{color:inherit}.chat-media-stage{align-items:center;gap:12px;min-height:240px;padding:18px 12px;display:flex}.chat-media-content{flex:1;justify-content:center;min-width:0;display:flex}.chat-media-content>img,.chat-media-content>video{object-fit:contain;border-radius:4px;max-width:100%;max-height:calc(100dvh - 220px)}.chat-media-stage>button{flex:0 0 32px;height:44px}.chat-media-dialog>footer{color:var(--muted);overflow-wrap:anywhere;flex-wrap:wrap;gap:10px 20px;padding:14px 24px;font-size:12px;display:flex}.chat-media-dialog>footer>span:first-child{flex:1}.chat-media-library{padding:24px}.chat-media-library h2{margin:0 0 10px;font-size:19px}.chat-media-library p{color:var(--muted);font-size:12px}.chat-media-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:12px;margin-top:22px;display:grid}.chat-media-grid>button{background:var(--input);border-radius:10px;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:150px;padding:10px;display:flex;overflow:hidden}.chat-media-grid img{object-fit:cover;border-radius:5px;width:100%;height:120px}.chat-media-grid span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:11px;overflow:hidden}@media (max-width:600px){.chat-voice{gap:8px;width:260px}.chat-voice-preview{width:auto;padding:4px 8px}.chat-voice-preview .chat-voice-time small{display:none}.voice-recorder-controls:has(.chat-voice-preview){gap:6px}.chat-media-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.chat-media-stage{gap:2px;padding:12px 4px}.chat-media-stage>button{flex-basis:24px}.chat-media-dialog>header{gap:10px;padding:14px}}.conversation-header-tools{flex-shrink:0;align-items:center;gap:6px;display:flex}.conversation-header-tools:empty{display:none}.header-tools-menu{flex-shrink:0;position:relative}.header-tools-toggle{color:var(--icon-strong);border-radius:6px;justify-content:center;align-items:center;padding:4px;display:flex}.header-tools-toggle[aria-expanded=true]{background:var(--hover);color:var(--brand)}.header-tools-toggle svg{transition:transform .15s}.header-tools-toggle[aria-expanded=true] svg{transform:rotate(180deg)}.header-tools-popover{z-index:45;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;padding:8px;position:absolute;top:calc(100% + 8px);right:0}.header-tools-popover[hidden]{display:none}@media (min-width:601px){.header-tools-toggle{display:none}.header-tools-popover,.header-tools-popover[hidden]{box-shadow:none;background:0 0;border:0;padding:0;display:flex;position:static}}@media (max-width:600px){.agency-root:has(>.app-shell)>.agency-bar{display:none}.agency-root:has(.mobile-settings-home)>.agency-bar{display:flex}.agency-root>.app-shell{height:auto}.app-shell{flex-direction:column}.app-shell>.rail{display:none}.app-shell>section,.app-shell>.chat-list{min-height:0}.chat-list,.chat-pane{width:100%;min-width:0}.app-shell[data-mobile-chat=true]>.mobile-bottom-nav{display:none}.mobile-section-back{border-bottom:1px solid var(--line);background:var(--panel);flex-shrink:0;padding:10px 16px;display:flex}.mobile-section-back button{color:var(--brand);align-items:center;gap:8px;min-height:32px;display:flex}.desktop-list-title{display:none}.mobile-list-title{display:inline}.list-header{flex-shrink:0;height:auto;min-height:78px;padding:18px 20px 12px}.list-header h1{letter-spacing:-1px;font-size:32px}.search-box{border-radius:11px;flex-shrink:0;min-height:40px;margin:0 16px 12px}.search-box input{font-size:15px}.filters button{padding:7px 12px;font-size:13px}.conversation{height:auto;min-height:82px;padding:13px 16px}.conversation-content{border-bottom:0;align-self:stretch;height:auto;position:relative}.conversation-content:after{content:"";background:var(--line);pointer-events:none;height:1px;position:absolute;bottom:-13px;left:0;right:0}.conversation .avatar{width:52px;height:52px}.conversation-name .conversation-ai-mode{display:none}.conversation:has(.conversation-labels){height:auto}.conversation-content>.conversation-labels{display:none}.conversation-name{flex:1}.conversation-name strong{min-width:0}.conversation-inline-labels{flex:none;min-width:0;max-width:48%;display:flex}.conversation-inline-labels:empty{display:none}.conversation-inline-labels .conversation-label-chip{max-width:100%;padding:2px 5px;font-size:9px}.conversation-inline-labels .conversation-labels{gap:3px}.conversation-avatar-ai{background:var(--panel);color:#8b3dff;border-radius:50%;justify-content:center;align-items:center;width:26px;height:26px;padding:2px;display:flex;position:absolute;bottom:-3px;right:-3px}.conversation-line strong{font-size:16px}.conversation-line.preview{font-size:13px}.conversation-line time{font-size:11px}.bubble{font-size:14px}.composer textarea,.composer-draft-mirror{font-size:16px}.composer-area{padding-bottom:max(8px, env(safe-area-inset-bottom))}.composer-caption{display:none}.chat-header{grid-template-columns:22px 34px minmax(0,1fr) 22px 23px 24px;gap:0 8px;display:grid}.chat-header .contact-heading{grid-area:1/3;gap:1px;width:100%;max-width:100%;margin:0;display:flex}.chat-header .mobile-back{grid-area:1/1}.chat-header .contact-avatar-button{grid-area:1/2}.chat-header .contact-name-line{flex-wrap:nowrap;gap:4px;width:100%}.chat-header .contact-phone{white-space:nowrap;line-height:1.3}.chat-header .contact-heading strong{font-size:13px}.chat-header .contact-label-summary{flex-shrink:0;max-width:55%;position:relative}.chat-header>button[aria-label="Pesquisar nesta conversa"]{grid-area:1/4;justify-content:center;align-items:center;display:flex}.chat-header>.menu-wrap{grid-area:1/5}.chat-header>.menu-wrap>button{justify-content:center;align-items:center;display:flex}.chat-header>.header-tools-menu{grid-area:1/6}.chat-header>.window-badge{grid-area:2/1/auto/-1;justify-self:end}}.ai-pro-badge{color:#6d28d9;letter-spacing:.04em;background:#ede9fe;border:1px solid #ddd6fe;border-radius:5px;flex-shrink:0;align-items:center;padding:2px 5px;font-size:10px;font-weight:800;line-height:1;display:inline-flex}.ai-pro-control,.client-ai-status{align-items:center;gap:5px;display:inline-flex}.ai-pro-control{color:#9ca3af;background:0 0;border:0}.ai-pro-locked{color:#6b7280;padding:28px}.ai-pro-locked>div,.client-ai-plan>div{color:#7c3aed;align-items:center;gap:8px;display:flex}.client-ai-plan{background:#faf8ff;border:1px solid #ddd6fe;border-radius:12px;margin:16px 0;padding:18px}.client-ai-plan p{color:#6b7280;margin-bottom:0;font-size:13px}.client-ai-switch{cursor:pointer;flex-direction:row;align-items:center;gap:10px;width:fit-content;min-height:44px;margin:10px 0 0;font-size:13px;display:flex;position:relative}.client-ai-switch input{opacity:0;width:44px;height:25px;position:absolute}.client-ai-switch>span{pointer-events:none;background:#9ca3af;border-radius:20px;flex-shrink:0;width:44px;height:25px;padding:3px;display:block}.client-ai-switch>span:before{content:"";background:#fff;border-radius:50%;width:19px;height:19px;transition:transform .15s;display:block}.client-ai-switch input:checked+span{background:#7c3aed}.client-ai-switch input:checked+span:before{transform:translate(19px)}.client-ai-switch input:focus-visible+span{outline-offset:3px;outline:2px solid #7c3aed}.client-ai-switch input:disabled+span{opacity:.5}.rail-button:has(.ai-pro-badge){position:relative}.rail-button>.ai-pro-badge{position:absolute;bottom:-4px;right:-5px}.avatar.web-whatsapp-ring{outline-offset:2px;outline:2px solid #169753}.agency-login:has(.authenticator-enrollment){overflow-y:auto}.authenticator-enrollment{gap:12px;min-width:0;display:grid}.authenticator-enrollment>img{max-width:100%;height:auto;image-rendering:pixelated;justify-self:center}.authenticator-enrollment details{font-size:.88rem}.authenticator-enrollment summary{cursor:pointer;font-weight:600}.authenticator-enrollment p{margin:.45rem 0}.authenticator-enrollment ul{gap:3px;margin:.45rem 0;padding:0;list-style:none;display:grid}.authenticator-enrollment code{overflow-wrap:anywhere;-webkit-user-select:all;user-select:all}.agency-login-form .authenticator-enrollment label{align-items:center;gap:8px;display:flex}.agency-login-form .authenticator-enrollment input[type=checkbox]{width:auto;min-height:auto}.master-factor-dialog{border:1px solid var(--line);width:min(460px,100% - 32px);color:var(--text);gap:16px;margin:auto;position:fixed}.master-factor-dialog:not([open]){display:none}.master-factor-dialog::backdrop{background:#0b141a66}.master-factor-dialog h2{margin:4px 32px 2px 0}.master-factor-dialog>p,.master-factor-form p,.agency-login-form .master-factor-hint{color:var(--muted);margin:0;font-size:13px;line-height:1.5}.master-factor-dialog .error-text{color:var(--danger,#b02a20)}.master-factor-form{gap:14px;display:grid}.master-factor-dialog .master-factor-form label{margin:0}.master-factor-form input{width:100%;color:inherit;background:var(--panel);border:1px solid var(--line);border-radius:8px;padding:11px 12px}.master-factor-dialog label.master-recovery-check{flex-direction:row;align-items:center;gap:8px;display:flex}.master-factor-dialog .master-recovery-check input{width:auto}.master-method-options{border:0;gap:6px;min-width:0;margin:0;padding:0;display:grid}.master-method-options legend{margin-bottom:8px;font-size:12px}.master-method-options label,.agency-login-form .master-method-options label,.master-factor-dialog .master-method-options label{cursor:pointer;border:1px solid var(--line);border-radius:8px;flex-direction:row;align-items:center;gap:9px;padding:10px 12px;display:flex}.master-method-options label.selected{border-color:var(--accent,#2864ec);background:var(--soft,#f3f6fa)}.master-method-options input[type=radio]{flex:none;width:16px;height:16px;min-height:0;margin:0;padding:0}.master-settings-item,.master-factor-list li{border:1px solid var(--line);text-align:left;border-radius:10px;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px;display:grid}.master-settings-item,.master-settings-back{color:inherit;background:0 0}.master-settings-item:hover{background:var(--panel-hover,#f3f6fa)}.master-settings-back{align-self:flex-start;align-items:center;gap:5px;display:inline-flex}.master-factor-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.master-factor-list strong,.master-factor-list small{display:block}.master-factor-list li{font-size:13px}.master-factor-list small{color:var(--muted);margin-top:3px}.master-factor-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.master-factor-label{min-width:0;color:inherit;text-align:left;font:inherit;cursor:pointer;background:0 0;border:0;gap:3px;padding:0;display:grid}.master-factor-label small{color:var(--muted)}.master-factor-switch{cursor:pointer;background:#76818e;border:0;border-radius:99px;align-items:center;width:40px;height:24px;padding:3px;display:inline-flex}.master-factor-switch span{pointer-events:none;background:#fff;border-radius:50%;width:18px;height:18px}.master-factor-switch[aria-checked=true]{background:var(--accent,#2864ec);justify-content:flex-end}.master-factor-switch:disabled{opacity:.55;cursor:wait}.master-registered-key{margin-left:18px}.master-sender-fields{border:1px solid var(--line);border-radius:8px;gap:12px;min-width:0;margin:0;padding:12px;display:grid}.master-sender-fields legend{padding:0 4px;font-size:13px;font-weight:600}.master-factor-list strong .master-method-active{vertical-align:middle;color:#16603c;background:#e0f5e8;border-radius:6px;margin-left:6px;padding:2px 6px;font-size:10px;font-weight:600;display:inline-block}
