:root{--bg:#f7f9fc;--surface:#ffffff;--surface-subtle:#f4f7fb;--sidebar:#111925;--sidebar-soft:#192436;--text:#111827;--muted:#647084;--border:#dfe5ee;--border-strong:#ced7e4;--blue:#2568e8;--blue-soft:#eaf1ff;--green:#20ad68;--amber:#f4a21b;--red:#ed4b55;--radius:12px;--shadow:0 1px 2px rgba(15,23,42,0.03),0 8px 24px rgba(15,23,42,0.035)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,Segoe UI,Segoe UI Emoji,Apple Color Emoji,Noto Color Emoji,sans-serif;font-size:14px}button,input,select{font:inherit}a,button{-webkit-tap-highlight-color:transparent}.app-shell{min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;z-index:10;width:68px;display:flex;flex-direction:column;color:#eaf0f8;background:var(--sidebar);border-right:1px solid #202c3d}.brand{height:68px;display:flex;align-items:center;justify-content:center;gap:0;padding:0;font-size:17px;font-weight:700;border-bottom:1px solid #263142}.brand>span:last-child{display:none}.brand-mark{width:35px;height:35px;display:grid;place-items:center;border-radius:10px;overflow:hidden;flex:0 0 auto}.brand-icon{width:100%;height:100%;display:block}.sidebar nav{flex-direction:column;gap:7px;padding:14px 10px}.sidebar nav,.sidebar nav a{display:flex;align-items:center}.sidebar nav a{width:46px;height:46px;justify-content:center;gap:0;padding:0;border-radius:8px;color:#c8d2df;text-decoration:none;font-size:14px;font-weight:600;transition:.16s ease}.sidebar nav a span{display:none}.sidebar nav a:hover{color:white;background:var(--sidebar-soft)}.sidebar nav a.active{color:white;background:var(--blue);box-shadow:0 7px 18px rgba(37,104,232,.25)}.sidebar-footer{width:100%;margin-top:auto;height:68px;display:flex;align-items:center;justify-content:center;gap:0;padding:0;color:inherit;background:transparent;border:0;border-top:1px solid #263142;cursor:pointer}.sidebar-footer:hover{background:#1b2738}.sidebar-footer .avatar{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;overflow:hidden;color:#f1f5f9;border-radius:50%;background:#26364c;font-size:11px;font-weight:750}.sidebar-footer .avatar img{width:100%;height:100%;display:block;object-fit:cover}.sidebar-footer>span:last-child{display:none}.sidebar-footer b,.sidebar-footer small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-footer b{color:#f8fafc;font-size:13px}.sidebar-footer small{color:#95a5b8;font-size:11px}.main-content{min-width:0;margin-left:68px;padding:25px 24px 0}.topbar{min-height:55px;display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}h1,h2,p{margin:0}.topbar h1{font-size:27px;line-height:1.2;letter-spacing:-.02em}.topbar p{margin-top:5px;color:var(--muted);font-size:13px}.button{border:0;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:8px;height:40px;padding:0 15px;border-radius:8px;color:white;background:var(--blue);font-size:13px;font-weight:650;transition:.15s ease}.button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px rgba(37,104,232,.18)}.button:disabled{opacity:.58;cursor:wait}.button.secondary{color:#273244;background:white;border:1px solid var(--border-strong);box-shadow:0 1px 2px rgba(15,23,42,.04)}.button.retry{height:34px;padding:0 12px;color:var(--blue);background:white;border:1px solid #8cb1fb}.api-alert{min-height:40px;gap:9px;padding:9px 13px;color:#8a4d00;background:#fff8e7;border:1px solid #f6d68d;border-radius:9px;font-size:13px}.api-alert,.ops-attention-banner{display:flex;align-items:center;margin-bottom:14px}.ops-attention-banner{min-height:58px;gap:12px;padding:11px 14px;color:#774500;background:#fff7df;border:1px solid #efc96d;border-radius:10px;box-shadow:var(--shadow)}.ops-attention-banner>svg{flex:0 0 auto;color:#bd7600}.ops-attention-banner>div{min-width:0;display:flex;flex-direction:column;gap:4px}.ops-attention-banner strong{font-size:14px}.ops-attention-banner span{color:#8a5b13;font-size:12px;line-height:1.45}.whatsapp-connect{margin-top:14px}.connection-badge{min-height:30px;display:inline-flex;align-items:center;gap:8px;padding:0 11px;color:#59667a;background:#f3f6fa;border:1px solid var(--border);border-radius:999px;font-size:11px;font-weight:700}.connection-badge.connected{color:#087846;background:#edf9f3;border-color:#bde8d1}.connection-badge.waiting{color:#8a5700;background:#fff8e8;border-color:#f2d494}.inline-error{display:flex;align-items:center;gap:9px;margin:14px 16px 0;padding:10px 12px;color:#a3343d;background:#fff2f3;border:1px solid #f4c8cc;border-radius:8px;font-size:12px}.whatsapp-connected,.whatsapp-empty,.whatsapp-mode-note{min-height:112px;display:flex;align-items:center;gap:16px;padding:20px}.whatsapp-mode-note>svg{flex:0 0 auto;color:var(--blue)}.whatsapp-mode-note.warning>svg{color:var(--amber)}.connected-copy,.whatsapp-empty>div,.whatsapp-mode-note>div{min-width:0;display:flex;flex:1 1;flex-direction:column;gap:6px}.connected-copy strong,.whatsapp-empty strong,.whatsapp-mode-note strong{color:#253044;font-size:14px}.connected-copy span,.whatsapp-empty p,.whatsapp-mode-note span{color:var(--muted);font-size:12px}.device-illustration{position:relative;width:58px;height:58px;display:grid;place-items:center;flex:0 0 auto;color:#1ba663;background:#eaf9f1;border-radius:15px}.device-illustration svg:last-child{position:absolute;right:-5px;bottom:-5px;padding:3px;color:var(--blue);background:white;border:1px solid var(--border);border-radius:6px}.whatsapp-pairing{min-height:336px;display:grid;grid-template-columns:300px minmax(0,1fr)}.qr-column{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px;background:#f7fafc;border-right:1px solid var(--border)}.qr-column img{padding:8px;border:1px solid var(--border-strong);border-radius:12px;box-shadow:0 5px 18px rgba(15,23,42,.06)}.qr-column img,.qr-placeholder{width:230px;height:230px;background:white}.qr-placeholder{align-items:center;gap:14px;color:#78869a;border:1px dashed #bac4d1;border-radius:12px;font-size:12px;text-align:center}.pairing-instructions,.qr-placeholder{display:flex;flex-direction:column;justify-content:center}.pairing-instructions{gap:17px;padding:25px 28px}.instruction-title{display:flex;align-items:flex-start;gap:11px}.instruction-title>svg{margin-top:1px;color:#1ba663}.instruction-title>div{display:flex;flex-direction:column;gap:5px}.instruction-title strong{font-size:15px}.instruction-title span{color:var(--muted);font-size:11px}.pairing-instructions ol{display:grid;grid-gap:10px;gap:10px;margin:0;padding-left:22px;color:#48566a;font-size:12px}.pairing-instructions li::marker{color:var(--blue);font-weight:800}.pairing-alternative{display:flex;flex-direction:column;gap:10px;padding-top:14px;border-top:1px solid var(--border)}.pairing-alternative>span{display:flex;align-items:center;gap:7px;color:#465267;font-size:12px;font-weight:700}.phone-form{display:flex;gap:8px}.phone-form input{min-width:0;flex:1 1;height:40px;padding:0 12px;color:#253044;background:white;border:1px solid var(--border-strong);border-radius:8px;outline:none;font:inherit;font-size:13px}.phone-form input:focus{border-color:#78a3f5;box-shadow:0 0 0 3px rgba(37,104,232,.1)}.pairing-code{display:flex;flex-direction:column;gap:7px;padding:12px 14px;background:#eef6ff;border:1px solid #bfd8ff;border-radius:9px}.pairing-code strong{color:#174fba;font-size:22px;letter-spacing:.12em}.pairing-code small{color:#52647c;font-size:10px;line-height:1.5}.session-note{display:flex;gap:7px;color:#8a5700}.session-note,.text-button{align-items:center;font-size:11px}.text-button{width:-moz-fit-content;width:fit-content;display:inline-flex;gap:6px;padding:4px;color:var(--blue);background:transparent;border:0;cursor:pointer;font-weight:650}.text-button:hover{text-decoration:underline}.danger-text{color:#b23b45}.connected-device{width:54px;height:54px;display:grid;place-items:center;flex:0 0 auto;color:white;background:var(--green);border-radius:50%}.connected-copy small{color:#7a8799;font-size:10px}.history-sync{max-width:650px;display:flex;align-items:center;gap:7px;color:#536176;font-size:11px}.history-sync>svg{flex:0 0 auto}.history-sync.completed{color:#087846}.history-sync.syncing{color:#8a5700}.history-sync.failed{color:#a3343d}.history-progress{width:92px;height:5px;flex:0 0 auto;overflow:hidden;background:#f1dfb8;border-radius:999px}.history-progress i{display:block;height:100%;background:#e2a82e;border-radius:inherit;transition:width .25s ease}.whatsapp-actions{display:flex;align-items:center;gap:8px}.contacts-sync .whatsapp-actions{flex-wrap:wrap;justify-content:flex-end;max-width:430px}.max-device{overflow:hidden;background:#5a66f2}.max-device img{width:100%;height:100%;object-fit:cover}.max-password-step small{color:#8a5700;font-size:10px}.max-password-form{display:flex;flex:0 0 min(390px,40%);gap:8px}.max-password-form input{min-width:0;flex:1 1;height:40px;padding:0 12px;color:#253044;background:white;border:1px solid var(--border-strong);border-radius:8px;outline:none}.max-password-form input:focus{border-color:#7889f5;box-shadow:0 0 0 3px rgba(89,100,232,.1)}.telegram-credentials-form{flex:0 0 min(620px,52%);display:grid;grid-template-columns:minmax(100px,.45fr) minmax(190px,1fr) auto}.max-connect-body{min-height:142px;display:grid;grid-template-columns:auto minmax(260px,1fr) minmax(360px,.9fr);align-items:center;grid-gap:18px;gap:18px;padding:20px}.max-illustration{color:#5964e8;background:#eef0ff}.max-connect-copy{min-width:0;display:flex;flex-direction:column;gap:7px}.max-connect-copy strong{color:#253044;font-size:14px}.max-connect-copy p{max-width:640px;color:var(--muted);font-size:12px;line-height:1.5}.max-connect-copy a{width:-moz-fit-content;width:fit-content;display:inline-flex;align-items:center;gap:5px;color:var(--blue);font-size:11px;font-weight:700;text-decoration:none}.max-connect-copy a:hover{text-decoration:underline}.max-token-form{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-gap:7px 9px;gap:7px 9px}.max-token-form>label{grid-column:1/-1;color:#526076;font-size:11px;font-weight:700}.max-token-form>div{position:relative;min-width:0}.max-token-form input{width:100%;height:40px;padding:0 42px 0 12px;color:#253044;background:white;border:1px solid var(--border-strong);border-radius:8px;outline:none;font-size:13px}.max-token-form input:focus{border-color:#7889f5;box-shadow:0 0 0 3px rgba(89,100,232,.1)}.max-token-form>div>button{position:absolute;top:3px;right:3px;width:34px;height:34px;display:grid;place-items:center;color:#6c788b;background:transparent;border:0;border-radius:6px;cursor:pointer}.max-token-form>div>button:hover{color:#354055;background:#f0f3f8}.compact-button{flex:0 0 auto}.system-summary{min-height:132px;display:grid;grid-template-columns:minmax(330px,1.55fr) repeat(3,minmax(150px,.75fr));align-items:stretch;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.system-state{display:flex;align-items:center;gap:17px;padding:22px}.system-state>span:last-child{display:flex;flex-direction:column;gap:8px}.system-state strong{font-size:18px;letter-spacing:-.02em}.system-state small{color:var(--muted)}.state-icon{width:54px;height:54px;flex:0 0 auto;display:grid;place-items:center;border-radius:50%;color:white}.state-icon.healthy{background:var(--green)}.state-icon.degraded{background:var(--amber)}.state-icon.neutral{background:#7f8b9d}.metric{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:18px}.metric:before{content:"";position:absolute;inset:25px auto 25px 0;width:1px;background:var(--border)}.metric small{color:var(--muted);font-size:12px}.metric strong{margin:7px 0 8px;font-size:24px;line-height:1;letter-spacing:-.02em}.metric strong.success{color:var(--green)}.metric strong.warning{color:var(--amber)}.metric span{color:#778396;font-size:11px}.primary-grid,.secondary-grid{display:grid;grid-gap:14px;gap:14px;margin-top:14px}.primary-grid{grid-template-columns:minmax(560px,1.15fr) minmax(410px,.95fr)}.secondary-grid{grid-template-columns:minmax(620px,1.12fr) minmax(380px,.88fr)}.panel{min-width:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-header{min-height:64px;display:flex;align-items:center;justify-content:space-between;padding:14px 17px;border-bottom:1px solid var(--border)}.panel-header h2{font-size:16px;letter-spacing:-.012em}.panel-header p{margin-top:4px;color:var(--muted);font-size:11px}.live{display:inline-flex;align-items:center;gap:7px;color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.08em}.dot{width:7px;height:7px;display:inline-block;flex:0 0 auto;border-radius:50%;background:#aab4c1}.dot.success{background:var(--green);box-shadow:0 0 0 3px rgba(32,173,104,.1)}.dot.warning{background:var(--amber);box-shadow:0 0 0 3px rgba(244,162,27,.1)}.dot.danger{background:var(--red);box-shadow:0 0 0 3px rgba(237,75,85,.08)}.dot.muted{background:#aab4c1}.flow-canvas{min-height:263px;display:flex;align-items:center;justify-content:center;gap:18px;padding:24px 18px 20px}.source-stack{display:flex;flex-direction:column;gap:13px}.flow-node,.hub-node{background:#fff;border:1px solid var(--border-strong);border-radius:10px;box-shadow:0 3px 12px rgba(15,23,42,.035)}.flow-node{min-width:155px;min-height:74px;display:flex;align-items:center;gap:11px;padding:13px}.flow-node div,.hub-node{display:flex;flex-direction:column}.flow-node strong,.hub-node strong{font-size:13px}.flow-node span,.hub-node span{display:flex;align-items:center;gap:6px;margin-top:6px;color:var(--muted);font-size:11px}.hub-node{min-width:175px;align-items:center;padding:18px 14px;text-align:center}.hub-node small{margin-top:11px;color:#8792a2;font-size:10px}.hub-symbol{width:39px;height:39px;display:grid!important;place-items:center;margin:0 0 10px!important;color:var(--blue)!important;background:var(--blue-soft);border-radius:10px}.flow-arrow{color:#93a2b6}.flow-caption{min-height:42px;display:flex;align-items:center;gap:8px;padding:0 17px;color:var(--muted);background:var(--surface-subtle);border-top:1px solid var(--border);font-size:11px}.provider-icon{width:39px;height:39px;display:inline-grid;place-items:center;flex:0 0 auto;border-radius:50%;color:white;font-size:14px;font-weight:800;letter-spacing:-.02em}.provider-icon.telegram{background:#3189e8}.provider-icon.whatsapp{background:#21b867}.provider-icon.bitrix24{background:#2389dc}.provider-icon.max{background:#8996a8}.provider-icon.compact{width:22px;height:22px;font-size:9px}.channel-list{display:flex;flex-direction:column}.channel-row{min-height:84px;display:grid;grid-template-columns:auto minmax(150px,1fr) minmax(145px,.8fr) auto;align-items:center;grid-gap:12px;gap:12px;padding:12px 17px;border-bottom:1px solid var(--border)}.channel-row:last-child{border-bottom:0}.channel-name,.channel-state{min-width:0;display:flex;flex-direction:column;gap:7px}.channel-name strong{font-size:13px}.channel-name small,.channel-state small{overflow:hidden;color:var(--muted);font-size:11px;text-overflow:ellipsis;white-space:nowrap}.channel-state strong{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:650}.channel-row>svg{color:#8895a7}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse}th{height:36px;color:#59667a;background:var(--surface-subtle);border-bottom:1px solid var(--border);text-align:left;font-size:10px;font-weight:700;letter-spacing:.015em}td,th{padding:0 14px;white-space:nowrap}td{height:43px;border-bottom:1px solid #e8edf3;color:#465267;font-size:11px}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#fafcff}.direction,.provider-cell,.status-text{display:inline-flex;align-items:center;gap:7px}.direction.inbound{color:#15955a}.direction.outbound{color:var(--blue)}.truncate{max-width:145px;display:inline-block;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}.retry-list{display:flex;flex-direction:column}.retry-row{min-height:96px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:12px;gap:12px;padding:15px 16px;border-bottom:1px solid var(--border)}.retry-main{min-width:0;display:flex;flex-direction:column;gap:6px}.retry-main strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.retry-main span{display:flex;align-items:center;gap:7px;color:#a53a42;font-size:11px}.retry-main small{color:var(--muted);font-size:10px}.empty-state{min-height:170px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--muted);text-align:center}.empty-state>span{width:42px;height:42px;display:grid;place-items:center;color:var(--green);background:#edf9f3;border-radius:50%}.empty-state strong{color:#374255;font-size:13px}.empty-state small{font-size:11px}.statusbar{min-height:52px;display:flex;align-items:center;gap:24px;margin-top:15px;padding:0 3px;color:#728095;border-top:1px solid var(--border);font-size:10px}.statusbar span{display:inline-flex;align-items:center;gap:8px}.statusbar span+span:before{content:"";width:1px;height:15px;margin-right:16px;background:var(--border-strong)}.spin{animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(1turn)}}@media (prefers-reduced-motion:reduce){*,:after,:before{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}.chat-main-content{height:100vh;padding:18px 22px;overflow:hidden}.chat-page{height:100%;min-height:0;display:flex;flex-direction:column}.chat-page-header{min-height:48px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex:0 0 auto}.chat-page-header h1{font-size:27px;line-height:1.2;letter-spacing:-.02em}.chat-page-header p{margin-top:5px;color:var(--muted);font-size:13px}.chat-alert{flex:0 0 auto;margin-bottom:10px}.chat-workspace{min-height:0;flex:1 1;display:grid;grid-template-columns:370px minmax(0,1fr);background:var(--surface);border:1px solid var(--border);border-radius:13px;box-shadow:var(--shadow);overflow:hidden}.chat-list-pane{min-width:0;min-height:0;display:flex;flex-direction:column;border-right:1px solid var(--border);background:white}.chat-list-top{flex:0 0 auto;padding:17px 15px 13px;border-bottom:1px solid var(--border)}.chat-list-title{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:6px 8px;gap:6px 8px;margin-bottom:10px}.chat-list-title>div:first-child{display:flex;align-items:center;gap:8px}.chat-list-title strong{font-size:18px}.chat-list-title>div:first-child>span{min-width:23px;height:23px;display:inline-grid;place-items:center;padding:0 6px;color:#526075;background:#edf1f6;border-radius:999px;font-size:11px;font-weight:750}.chat-responsible-filter{min-width:0;height:29px;display:flex;align-items:center;gap:3px;padding:0 6px;color:#526176;background:#fff;border:1px solid var(--border-strong);border-radius:7px}.chat-responsible-filter:focus-within{border-color:#8eb3f7;box-shadow:0 0 0 3px rgba(37,104,232,.08)}.chat-responsible-filter svg{flex:0 0 auto;pointer-events:none}.chat-responsible-filter select{min-width:0;width:100%;flex:1 1;cursor:pointer;color:#33435b;background:transparent;border:0;outline:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;font:inherit;font-size:10px;font-weight:650;text-overflow:ellipsis}.chat-view-switch{min-width:0;display:inline-flex;align-items:center;gap:2px!important;padding:2px;background:#f1f4f7;border-radius:999px}.chat-view-switch button{height:29px;padding:0 10px;cursor:pointer;color:#5d6b7f;background:transparent;border:0;border-radius:999px;font:inherit;font-size:12px;font-weight:760}.chat-view-switch button:hover{color:#176149}.chat-view-switch button.active{color:white;background:#14945e;box-shadow:0 2px 7px rgba(20,148,94,.22)}.chat-scope-filters{display:inline-flex;align-items:center;justify-self:end;gap:2px;padding:2px;background:#f1f4f7;border-radius:999px}.chat-scope-filters button{min-width:38px;height:25px;padding:0 8px;cursor:pointer;color:#66758a;background:transparent;border:0;border-radius:999px;font:inherit;font-size:9px;font-weight:750}.chat-scope-filters button:hover{color:#245b9f}.chat-scope-filters button.active{color:white;background:#2568e8;box-shadow:0 2px 6px rgba(37,104,232,.2)}.chat-search{height:40px;display:flex;align-items:center;gap:9px;padding:0 12px;color:#6f7d90;background:#f1f4f7;border:1px solid transparent;border-radius:9px}.chat-search:focus-within{background:white;border-color:#8eb3f7;box-shadow:0 0 0 3px rgba(37,104,232,.08)}.chat-search input{min-width:0;width:100%;color:#223047;background:transparent;border:0;outline:0;font-size:12px}.chat-search input::placeholder{color:#8592a4}.chat-channel-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:7px;gap:7px;margin-top:11px}.chat-channel-filters button{min-width:0;height:32px;display:inline-flex;align-items:center;justify-content:center;gap:4px;padding:0 8px;cursor:pointer;color:#536176;background:white;border:1px solid var(--border-strong);border-radius:999px;font-size:10px;font-weight:700;white-space:nowrap}.chat-channel-filters button:hover{border-color:#8daff0}.chat-channel-filters button:disabled{cursor:not-allowed;color:#8e99a8;background:#f5f7fa;border-style:dashed;opacity:.82}.chat-channel-filters button small{padding:2px 4px;color:#7b8798;background:#e8ecf1;border-radius:999px;font-size:7px;font-weight:750}.chat-channel-filters button.telegram.active{color:#1769aa;background:#eaf5ff;border-color:#acd3f2}.chat-channel-filters button.whatsapp.active{color:#087846;background:#eaf8f1;border-color:#b8e5ce}.chat-channel-filters button.max.active{color:#6650a3;background:#f2effb;border-color:#d4c9ef}.chat-list{min-height:0;flex:1 1;overflow-y:auto;overscroll-behavior:contain}.chat-day-separator{display:flex;align-items:center;gap:9px;padding:9px 13px 6px;color:#7a8799;background:#fff;font-size:10px;font-weight:650}.chat-day-separator:after{height:1px;flex:1 1;content:"";background:#e7ebf1}.chat-day-separator.pinned{color:#3478d4}.chat-day-separator.pinned:after{background:#cfe0fa}.chat-list-entry{position:relative;background:white;border-bottom:1px solid #edf1f5}.chat-list-item{width:100%;min-height:88px;display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;grid-gap:11px;gap:11px;padding:9px 43px 9px 13px;cursor:pointer;color:inherit;background:white;border:0;text-align:left}.chat-list-item:hover{background:#f7f9fc}.chat-list-item.selected{background:#eaf1ff;box-shadow:inset 3px 0 0 var(--blue)}.chat-pin-button{position:absolute;top:50%;right:9px;width:28px;height:28px;display:grid;place-items:center;transform:translateY(-50%);cursor:pointer;color:#748196;background:#f1f4f7;border:0;border-radius:8px;opacity:0;transition:color .15s ease,background .15s ease,opacity .15s ease}.chat-list-entry:hover .chat-pin-button,.chat-pin-button.active,.chat-pin-button:focus-visible{opacity:1}.chat-pin-button.active,.chat-pin-button:hover:not(:disabled){color:#087846;background:#e2f5eb}.chat-pin-button:focus-visible{outline:3px solid rgba(37,104,232,.18);outline-offset:1px}.chat-pin-button:disabled{cursor:wait;opacity:.45}.chat-avatar{width:47px;height:47px;display:inline-grid;place-items:center;flex:0 0 auto;color:white;background:#6681a6;border-radius:50%;font-size:13px;font-weight:760;letter-spacing:-.02em}.chat-avatar.whatsapp{background:#25aa69}.chat-avatar.telegram{background:#3289e7}.chat-avatar.bitrix24{background:#2687d8}.chat-avatar.max{background:#7f8da0}.chat-avatar.compact{width:40px;height:40px;font-size:11px}.chat-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}.chat-list-copy{min-width:0;display:flex;flex-direction:column;gap:6px}.chat-list-line{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:10px}.chat-list-line strong{min-width:0;overflow:hidden;color:#172033;font-size:13px;text-overflow:ellipsis;white-space:nowrap}.chat-list-name{min-width:0;display:flex;align-items:center;gap:6px;overflow:hidden}.chat-list-name strong{flex:0 1 auto}.chat-list-name b,.chat-thread-name b{flex:0 0 auto;padding:2px 6px;color:#6941c6;background:#f1ebff;border-radius:999px;font-size:8px;font-weight:750;white-space:nowrap}.chat-list-line time{flex:0 0 auto;color:#758297;font-size:9px}.chat-account{min-width:0;width:-moz-fit-content;width:fit-content;max-width:100%;display:inline-flex;align-items:center;gap:4px;overflow:hidden;padding:3px 7px;color:#087846;background:#eaf8f1;border-radius:999px;font-size:9px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.chat-account svg{flex:0 0 auto}.chat-list-item:has(.unread-badge) .chat-list-line time{color:#129058;font-weight:750}.preview-line{color:#6c798d;font-size:11px}.chat-preview{min-width:0;display:flex;align-items:center;gap:4px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-preview svg{flex:0 0 auto;color:#4598c7}.unread-badge{min-width:20px;height:20px;display:inline-grid;place-items:center;flex:0 0 auto;padding:0 5px;color:white;background:#20ad68;border-radius:999px;font-size:9px}.chat-list-empty{min-height:230px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:30px;color:#758297;text-align:center}.chat-list-empty>span{width:44px;height:44px;display:grid;place-items:center;color:#1ca161;background:#eaf8f1;border-radius:50%}.chat-list-empty strong{color:#334054;font-size:13px}.chat-list-empty small{max-width:230px;font-size:10px;line-height:1.5}.chat-list .chat-list-empty .button.secondary,.chat-list .chat-list-notice .button.secondary{width:auto;max-width:100%;padding:0 15px;font-size:13px;gap:8px}.chat-list-notice{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;color:#758297;background:#f8fafc;border-bottom:1px solid var(--border);text-align:center}.chat-list-notice small{font-size:10px;line-height:1.5}.chat-list-status{height:28px;min-height:28px;flex:0 0 28px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;color:#758297;background:#f8fafc;border-bottom:1px solid var(--border);overflow:hidden}.chat-list-status small{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-list-status button{border:0;background:transparent;color:#2568e8;font-size:10px;cursor:pointer;flex:0 0 auto}.chat-list-load-more{min-height:2px;padding:10px 12px;color:#758297;font-size:10px;text-align:center}.chat-thread-pane{position:relative;min-width:0;min-height:0;display:flex;flex-direction:column;background:#f3f6f9}.chat-file-drop-overlay{position:absolute;inset:8px;z-index:40;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;pointer-events:none;color:#174ea6;background:rgba(238,246,255,.95);border:2px dashed #4f8ef7;border-radius:14px;box-shadow:0 14px 38px rgba(37,104,232,.18);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.chat-file-drop-overlay>span{width:58px;height:58px;display:grid;place-items:center;color:white;background:var(--blue);border-radius:50%;box-shadow:0 8px 20px rgba(37,104,232,.25)}.chat-file-drop-overlay strong{font-size:16px}.chat-file-drop-overlay small{color:#61738c;font-size:10px}.chat-thread-header{position:relative;z-index:5;min-height:76px;flex:0 0 auto;padding:10px 16px;background:white;border-bottom:1px solid var(--border)}.chat-thread-header,.chat-thread-person{display:flex;align-items:center;gap:11px}.chat-thread-person{min-width:150px;flex:1 1}.chat-spam-actions{position:relative;display:flex;align-items:stretch;gap:6px}.chat-spam-actions button{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 10px;cursor:pointer;border:1px solid;border-radius:9px;font:inherit;font-size:9px;font-weight:750;white-space:nowrap;transition:background .15s ease,border-color .15s ease,transform .15s ease}.chat-spam-actions button:hover:not(:disabled){transform:translateY(-1px)}.chat-spam-actions button.spam{color:#a03b45;background:#fff3f3;border-color:#efc8cc}.chat-spam-actions button.spam:hover:not(:disabled){background:#ffe5e7;border-color:#e59aa2}.chat-spam-actions button:disabled{cursor:not-allowed;opacity:.48;transform:none}.chat-spam-actions>span{position:absolute;top:calc(100% + 5px);right:0;z-index:30;width:250px;padding:7px 9px;color:#9d343d;background:white;border:1px solid #efc6ca;border-radius:7px;box-shadow:0 8px 20px rgba(80,20,25,.12);font-size:9px;line-height:1.35}.chat-thread-identity{min-width:0;display:flex;flex:1 1;flex-direction:column;gap:5px}.chat-thread-identity strong{font-size:14px}.chat-thread-identity span,.chat-thread-identity strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-thread-identity span{color:var(--muted);font-size:10px}.chat-thread-name{display:flex;align-items:center;gap:7px}.chat-thread-name strong{min-width:0}.chat-rename-button{width:24px;height:24px;display:grid;place-items:center;flex:0 0 auto;cursor:pointer;color:#58708f;background:#eef3f8;border:0;border-radius:7px;transition:color .15s ease,background .15s ease}.chat-rename-button:hover:not(:disabled){color:#1758b4;background:#e1ebf8}.chat-rename-button:focus-visible{outline:3px solid rgba(37,104,232,.18);outline-offset:1px}.chat-rename-button:disabled{cursor:default;opacity:.45}.chat-crm-context{min-width:0;display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:stretch;gap:7px;margin-left:auto}.chat-participants-button{min-width:128px;min-height:44px;display:inline-flex;align-items:center;gap:7px;padding:6px 9px;cursor:pointer;color:#365485;background:#f1f6fd;border:1px solid #ccdaed;border-radius:9px;font:inherit;text-align:left;transition:border-color .15s ease,background .15s ease,transform .15s ease}.chat-participants-button:hover{color:#234779;background:#e8f1fc;border-color:#9fb9db;transform:translateY(-1px)}.chat-participants-button:focus-visible{outline:3px solid rgba(37,104,232,.18);outline-offset:1px}.chat-participants-button>svg{flex:0 0 auto}.chat-participants-button>svg:last-child{color:#738196}.chat-participants-button>span{min-width:0;display:flex;flex:1 1;flex-direction:column;gap:2px}.chat-participants-button small{color:#738196;font-size:8px;font-weight:650}.chat-participants-button strong{overflow:hidden;font-size:10px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.chat-create-deal-wrap{position:relative;display:flex;align-items:stretch}.chat-create-deal{min-height:44px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:6px 12px;cursor:pointer;color:#11613e;background:#ecfaf3;border:1px solid #bfe9d2;border-radius:9px;font:inherit;font-size:10px;font-weight:750;white-space:nowrap;transition:border-color .15s ease,background .15s ease,transform .15s ease}.chat-create-deal:hover:not(:disabled){background:#ddf6e9;border-color:#8bd5ad;transform:translateY(-1px)}.chat-create-deal:focus-visible{outline:3px solid rgba(32,173,104,.2);outline-offset:1px}.chat-create-deal:disabled{cursor:wait;opacity:.65}.chat-create-deal.error{color:#9d343d;background:#fff3f3;border-color:#efc6ca}.chat-create-deal-error{color:#9d343d;border:1px solid #efc6ca;border-radius:7px;box-shadow:0 8px 20px rgba(80,20,25,.12)}.chat-create-deal-error,.chat-create-deal-success{position:absolute;top:calc(100% + 5px);left:0;z-index:20;width:220px;padding:7px 9px;background:white;font-size:9px;line-height:1.35}.chat-create-deal-success{color:#11613e;border:1px solid #bfe9d2;border-radius:7px;box-shadow:0 8px 20px rgba(17,97,62,.12);font-weight:700;text-decoration:none}.chat-create-deal-success:hover{background:#ecfaf3}.chat-stage-actions{position:relative;display:flex;align-items:stretch;gap:7px}.chat-stage-button{min-width:128px;max-width:170px;min-height:44px;display:inline-flex;align-items:center;gap:7px;padding:6px 9px;cursor:pointer;border:1px solid;border-radius:9px;font:inherit;text-align:left;transition:border-color .15s ease,background .15s ease,transform .15s ease}.chat-stage-button>svg{flex:0 0 auto}.chat-stage-button>span{min-width:0;display:flex;flex-direction:column;gap:2px}.chat-stage-button small{font-size:8px;font-weight:650}.chat-stage-button strong{overflow:hidden;font-size:10px;font-weight:750;text-overflow:ellipsis;white-space:nowrap}.chat-stage-button.previous{color:#895519;background:#fff8e9;border-color:#eed8ab}.chat-stage-button.previous:hover:not(:disabled){background:#fff1d3;border-color:#dcb96e;transform:translateY(-1px)}.chat-stage-button.next{color:#1758b4;background:#eff5ff;border-color:#cfe0fb}.chat-stage-button.next:hover:not(:disabled){background:#e3eeff;border-color:#9ebff3;transform:translateY(-1px)}.chat-stage-button:focus-visible{outline:3px solid rgba(37,104,232,.18);outline-offset:1px}.chat-stage-button:disabled{cursor:not-allowed;opacity:.48;transform:none}.chat-stage-error{position:absolute;top:calc(100% + 5px);left:0;z-index:20;width:265px;padding:7px 9px;color:#9d343d;background:white;border:1px solid #efc6ca;border-radius:7px;box-shadow:0 8px 20px rgba(80,20,25,.12);font-size:9px;line-height:1.35}.chat-crm-deal,.chat-crm-lead,.chat-crm-responsible{min-width:0;min-height:44px;display:flex;align-items:center;gap:8px;padding:6px 9px;color:#334155;background:#f6f8fb;border:1px solid #e4e9f0;border-radius:9px}.chat-crm-responsible{cursor:pointer;font:inherit;text-align:left;transition:border-color .15s ease,background .15s ease}.chat-crm-responsible:hover{background:#eef3fa;border-color:#bdcbe0}.chat-crm-responsible:disabled{cursor:not-allowed;opacity:.62}.chat-crm-responsible:focus-visible{outline:3px solid rgba(37,104,232,.18);outline-offset:1px}.chat-crm-responsible.static{cursor:default}.chat-crm-deal>svg:first-child,.chat-crm-lead>svg:first-child,.chat-crm-responsible>svg{flex:0 0 auto;color:#64748b}.chat-crm-responsible>svg:last-child{color:#738196}.chat-crm-deal>span,.chat-crm-lead>span,.chat-crm-responsible>span{min-width:0;display:flex;flex-direction:column;gap:2px}.chat-crm-deal small,.chat-crm-lead small,.chat-crm-responsible small{color:#7b8798;font-size:8px;font-weight:650}.chat-crm-deal strong,.chat-crm-lead strong,.chat-crm-responsible strong{max-width:145px;overflow:hidden;font-size:10px;text-overflow:ellipsis;white-space:nowrap}.chat-crm-stage{max-width:145px;overflow:hidden;color:#526176;font-size:8px;font-style:normal;font-weight:700;line-height:1.2;text-overflow:ellipsis;white-space:nowrap}.chat-crm-stage:before{content:"•";margin-right:3px}.chat-crm-lead .chat-crm-stage{color:#2563a9}.chat-crm-deal .chat-crm-stage{color:#7251b5}.chat-crm-lead{color:#1758b4;background:#eff5ff;border-color:#cfe0fb;text-decoration:none;transition:border-color .15s ease,background .15s ease}.chat-crm-deal,.chat-crm-lead{position:relative;padding-right:27px}.chat-crm-lead:hover{background:#e5efff;border-color:#9ebff3}.chat-crm-lead b{font-size:9px;white-space:nowrap}.chat-crm-deal>svg:last-child,.chat-crm-lead>svg:last-child{position:absolute;top:8px;right:8px}.chat-crm-deal{color:#6941c6;background:#f5f1ff;border-color:#dfd3fb;text-decoration:none;transition:border-color .15s ease,background .15s ease}.chat-crm-deal:hover{background:#eee7ff;border-color:#c8b2f5}.chat-crm-deal b{font-size:9px;white-space:nowrap}.chat-crm-deals-menu{position:relative;min-width:0}.chat-crm-deals-trigger{width:100%;cursor:pointer;font:inherit;text-align:left}.chat-crm-deals-trigger>svg:last-child{transition:transform .15s ease}.chat-crm-deals-menu.open .chat-crm-deals-trigger>svg:last-child{transform:rotate(180deg)}.chat-crm-deals-dropdown{position:fixed;z-index:900;max-height:min(420px,calc(100vh - 150px));overflow-y:auto;padding:6px;background:white;border:1px solid #d9d0ee;border-radius:11px;box-shadow:0 18px 45px rgba(42,27,76,.2)}.chat-crm-deals-dropdown-title{padding:6px 8px 7px;color:#7a6c91;font-size:9px;font-weight:750;text-transform:uppercase;letter-spacing:.04em}.chat-crm-deals-option{min-width:0;display:flex;align-items:center;gap:9px;padding:9px 8px;color:#4f367e;border-radius:8px;text-decoration:none}.chat-crm-deals-option:focus-visible,.chat-crm-deals-option:hover{background:#f4f0fc;outline:0}.chat-crm-deals-option>svg{flex:0 0 auto;color:#8065b5}.chat-crm-deals-option>span{min-width:0;display:flex;flex:1 1;flex-direction:column;gap:3px}.chat-crm-deals-option small{overflow:hidden;color:#887a9f;font-size:8px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.chat-crm-deals-option strong{overflow:hidden;color:#342452;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.chat-crm-deals-option .chat-crm-stage{max-width:none;color:#7251b5}.chat-crm-status{max-width:205px;min-height:35px;display:flex;align-items:center;gap:7px;padding:6px 9px;color:#6b7280;background:#f6f8fb;border:1px solid #e4e9f0;border-radius:8px;font-size:9px;line-height:1.3}.chat-crm-status svg{flex:0 0 auto}.chat-crm-status.not_found{color:#6f5b2d;background:#fff9e9;border-color:#efe0b3}.chat-crm-status.unavailable{color:#8a4a4a;background:#fff3f3;border-color:#efd0d0}.chat-crm-status.conflict{color:#80601e;background:#fff9e9;border-color:#efe0b3}.chat-crm-contact{display:flex;align-items:center;gap:5px;min-height:44px;padding:6px 8px;border:1px solid #cfe0fb;border-radius:9px;background:#eff5ff;color:#1758b4;font-size:10px;text-decoration:none;white-space:nowrap}.chat-crm-contact:hover{background:#e5efff;border-color:#9ebff3}.chat-crm-contact:focus-visible{outline:3px solid rgba(37,104,232,.18);outline-offset:1px}.chat-crm-contact>svg{flex-shrink:0}.responsible-picker-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.38);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.responsible-picker{width:min(410px,100%);max-height:min(590px,calc(100vh - 40px));display:flex;flex-direction:column;overflow:hidden;background:white;border:1px solid #dce3ec;border-radius:14px;box-shadow:0 24px 70px rgba(15,23,42,.22)}.responsible-picker>header{min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #e8edf3}.responsible-picker>header>div{min-width:0;display:flex;flex-direction:column;gap:4px}.responsible-picker>header strong{color:#172033;font-size:16px}.responsible-picker>header span{color:#778397;font-size:10px}.responsible-picker>header button{width:33px;height:33px;display:grid;place-items:center;flex:0 0 auto;cursor:pointer;color:#59677a;background:#f1f4f8;border:0;border-radius:8px}.responsible-picker>header button:hover{background:#e7ecf3}.rename-lead-backdrop{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:rgba(15,23,42,.38);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.rename-lead-dialog{width:min(420px,100%);display:flex;flex-direction:column;overflow:hidden;background:white;border:1px solid #dce3ec;border-radius:14px;box-shadow:0 24px 70px rgba(15,23,42,.22)}.rename-lead-dialog>header{min-height:67px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 15px;border-bottom:1px solid #e8edf3}.rename-lead-dialog>header>div{min-width:0;display:flex;flex-direction:column;gap:4px}.rename-lead-dialog>header strong{color:#172033;font-size:16px}.rename-lead-dialog>header span{color:#778397;font-size:10px}.rename-lead-dialog>header button{width:33px;height:33px;display:grid;place-items:center;flex:0 0 auto;cursor:pointer;color:#59677a;background:#f1f4f8;border:0;border-radius:8px}.rename-lead-dialog>label{display:flex;flex-direction:column;gap:7px;padding:18px 18px 8px}.rename-lead-dialog>label span{color:#536175;font-size:11px;font-weight:700}.rename-lead-dialog>label input{width:100%;height:43px;padding:0 12px;color:#152033;background:#f7f9fc;border:1px solid #d8e0ea;border-radius:9px;font:inherit;font-size:14px;outline:none}.rename-lead-dialog>label input:focus{background:white;border-color:#6d9eea;box-shadow:0 0 0 3px rgba(37,104,232,.12)}.rename-lead-dialog>p{margin:0;padding:0 18px 14px;color:#778397;font-size:10px;line-height:1.45}.rename-lead-error{display:flex;align-items:center;gap:7px;margin:0 18px 12px;padding:9px 10px;color:#a23f3f;background:#fff2f2;border:1px solid #f0cdcd;border-radius:8px;font-size:11px}.rename-lead-dialog>footer{display:flex;justify-content:flex-end;gap:9px;padding:13px 18px 16px;border-top:1px solid #edf1f5}.rename-lead-dialog>footer .button{min-height:38px;display:inline-flex;align-items:center;gap:7px}.responsible-search{height:42px;display:flex;align-items:center;gap:9px;flex:0 0 auto;margin:13px 15px 10px;padding:0 11px;color:#728095;background:#f1f4f7;border:1px solid transparent;border-radius:9px}.responsible-search:focus-within{background:white;border-color:#8eb3f7;box-shadow:0 0 0 3px rgba(37,104,232,.08)}.responsible-search input{min-width:0;width:100%;color:#223047;background:transparent;border:0;outline:0;font-size:12px}.responsible-error{display:flex;align-items:center;gap:7px;margin:0 15px 10px;padding:9px 10px;color:#9a3f3f;background:#fff1f1;border:1px solid #f0cdcd;border-radius:8px;font-size:10px}.responsible-list{min-height:150px;overflow-y:auto;padding:0 8px 9px}.responsible-list>button{width:100%;min-height:57px;display:flex;align-items:center;gap:10px;padding:7px 9px;cursor:pointer;color:#29364a;background:transparent;border:0;border-radius:9px;text-align:left}.responsible-list>button:hover{background:#f3f6fa}.responsible-list>button.selected{color:#1555ac;background:#edf4ff}.responsible-list>button:disabled{cursor:wait;opacity:.72}.responsible-list>button>span:nth-child(2){min-width:0;display:flex;flex:1 1;flex-direction:column;gap:3px}.responsible-list>button strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}.responsible-list>button small{overflow:hidden;color:#778397;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.responsible-list>button>svg{flex:0 0 auto;color:#3176ce}.participant-list>button:disabled{cursor:default;opacity:1}.participant-empty-check{width:17px;height:17px;flex:0 0 auto;border:1px solid #cbd6e4;border-radius:5px}.participant-picker-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px 15px;border-top:1px solid #e8edf3}.participant-picker-footer>span{color:#657389;font-size:10px;font-weight:700}.participant-picker-footer>div{display:flex;gap:8px}.participant-picker-footer .button{min-height:37px;display:inline-flex;align-items:center;justify-content:center;gap:6px}.employee-avatar{width:38px;height:38px;display:inline-grid;place-items:center;flex:0 0 auto;overflow:hidden;color:white;background:#4d78b8;border-radius:50%;font-size:10px;font-weight:750}.employee-avatar img{width:100%;height:100%;object-fit:cover}.responsible-state{min-height:150px;justify-content:center;padding:24px;color:#778397;text-align:center}.responsible-progress,.responsible-state{display:flex;align-items:center;gap:8px;font-size:11px}.responsible-progress{flex-wrap:wrap;margin:0 15px 10px;padding:10px;color:#4a638a;background:#f5f8fc;border-radius:8px}.responsible-progress svg{flex-shrink:0}.responsible-progress button{width:100%;border:1px solid #bfd2ef;border-radius:7px;padding:9px 12px;background:#fff;color:#235dba;font:inherit;cursor:pointer}.provider-chip{min-height:27px;display:inline-flex;align-items:center;flex:0 0 auto;padding:0 10px;color:#4d5a70;background:#f1f4f8;border-radius:999px;font-size:9px;font-weight:750}.provider-chip.whatsapp{color:#087846;background:#e9f8f0}.provider-chip.telegram{color:#1764ad;background:#eaf4ff}.mobile-chat-back{display:none}.chat-thread{position:relative;z-index:1;min-height:0;flex:1 1;overflow-y:auto;overscroll-behavior:contain;padding:19px clamp(18px,5vw,68px);background-color:#eef2f5}.chat-jump-latest{position:absolute;right:24px;bottom:88px;z-index:6;min-height:38px;display:inline-flex;align-items:center;gap:7px;padding:8px 13px;cursor:pointer;color:white;background:#1f73e8;border:0;border-radius:999px;box-shadow:0 8px 22px rgba(31,115,232,.28);font:inherit;font-size:10px;font-weight:750}.chat-jump-latest:hover{background:#1764cd}.message-stack{min-height:100%;display:flex;flex-direction:column;justify-content:flex-end;gap:5px}.chat-history-control{position:-webkit-sticky;position:sticky;top:0;z-index:4;width:min(420px,94%);display:flex;flex-direction:column;align-items:center;align-self:center;gap:6px;margin:0 auto 9px}.chat-history-control button{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:7px 13px;cursor:pointer;color:#2568b7;background:rgba(255,255,255,.96);border:1px solid #cbdced;border-radius:999px;box-shadow:0 4px 14px rgba(41,74,112,.12);font:inherit;font-size:10px;font-weight:750}.chat-history-control button:hover:not(:disabled){color:#174f91;background:white;border-color:#94b9df}.chat-history-control button:disabled{cursor:wait;opacity:.78}.chat-history-control>span{padding:6px 10px;color:#708097;background:rgba(255,255,255,.9);border-radius:999px;font-size:9px}.chat-history-control small{max-width:100%;display:flex;align-items:center;gap:5px;padding:5px 8px;color:#9d3e3e;background:#fff0f0;border-radius:7px;font-size:9px;text-align:center}.message-date{align-self:center;margin:10px 0 8px;padding:5px 10px;color:#68768b;background:rgba(255,255,255,.9);border:1px solid #dfe5ec;border-radius:7px;box-shadow:0 1px 2px rgba(15,23,42,.03);font-size:9px}.message-bubble,.message-date{width:-moz-fit-content;width:fit-content}.message-bubble{position:relative;max-width:min(640px,78%);display:flex;flex-direction:column;gap:6px;padding:9px 11px 6px;content-visibility:auto;contain-intrinsic-size:auto 54px;color:#263348;background:white;border:1px solid #dde4eb;border-radius:10px;box-shadow:0 1px 2px rgba(15,23,42,.04)}.message-bubble.inbound{align-self:flex-start;border-top-left-radius:3px}.message-bubble.outbound{align-self:flex-end;background:#dcf7e8;border-color:#c2e9d4;border-top-right-radius:3px}.message-author{display:flex;align-items:center;gap:7px;min-width:0;padding-bottom:2px}.message-author-avatar{width:23px;height:23px;flex:0 0 23px;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:color-mix(in srgb,currentColor 13%,white);font-size:9px;font-weight:800}.message-author-avatar img{width:100%;height:100%;object-fit:cover}.message-author>span:last-child{min-width:0;display:flex;align-items:baseline;gap:5px}.message-author strong{max-width:250px;font-size:11px;line-height:1.2}.message-author small,.message-author strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.message-author small{max-width:150px;color:#7b8797;font-size:9px}.message-bubble p{margin:0;font-size:12px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}.message-link{color:#1264c8;font-weight:600;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.message-link:focus-visible,.message-link:hover{color:#0b4d9f;text-decoration-thickness:2px}.message-bubble footer{min-width:56px;display:flex;align-items:center;align-self:flex-end;justify-content:flex-end;gap:3px;color:#778397;font-size:8px}.message-bubble.outbound footer svg{color:#2684ba}.message-bubble.outbound footer .message-send-failed{display:inline-flex;align-items:center;gap:3px;color:#c13f3f;font-size:9px;font-weight:700}.message-bubble.outbound footer .message-send-failed svg{color:currentColor}.message-edit-button{display:inline-flex;align-items:center;justify-content:center;width:20px;height:18px;padding:0;color:#64748b;background:transparent;border:0;border-radius:5px;cursor:pointer}.message-edit-button:hover{color:#1769db;background:rgba(255,255,255,.72)}.message-reply-button{display:inline-flex;align-items:center;gap:3px;min-height:24px;padding:2px 5px;color:#38658d;background:transparent;border:0;border-radius:5px;cursor:pointer;font:inherit}.message-reply-button:focus-visible,.message-reply-button:hover{background:#e4f0ff;color:#125bc4}.message-reply-quote{margin:0 0 7px;padding:6px 9px;border-left:3px solid #3b82c4;border-radius:4px;background:rgba(98,156,201,.1);font-size:11px;overflow-wrap:anywhere}.message-reply-quote strong{display:flex;align-items:center;gap:4px;color:#2b608c;font-size:10px}.message-reply-quote span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;white-space:pre-wrap}.chat-reply-draft{grid-column:1/-1;display:flex;align-items:center;gap:9px;padding:7px 10px;border-left:3px solid #2c83c9;border-radius:6px;background:#edf5fc;color:#2f668d;min-width:0}.chat-reply-draft>span{flex:1 1;min-width:0}.chat-reply-draft small,.chat-reply-draft strong{display:block;font-size:11px}.chat-reply-draft small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%;color:#52697b}.chat-reply-draft button{display:inline-flex;align-items:center;justify-content:center;min-width:32px;min-height:32px;padding:4px;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer}.chat-reply-draft button:hover{background:#d9eaff}.message-retry-button{display:inline-flex;align-items:center;gap:4px;margin-left:5px;padding:4px 6px;border:1px solid;border-radius:5px;color:#aa3030;background:transparent;cursor:pointer;font:inherit}.message-retry-button:disabled{opacity:.6;cursor:wait}.message-attachment-row{display:flex;align-items:center;gap:6px}.message-attachment-row>.message-attachment,.message-attachment-row>.message-media-thumbnail{flex:1 1;min-width:0}.message-attachment-save{display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:34px;border:1px solid #dbe5ee;border-radius:7px;background:#fff;color:#1769db;cursor:pointer}.message-attachment-save:disabled{opacity:.55;cursor:wait}.message-bubble.outbound footer .message-send-failed{flex-wrap:wrap}.message-edited{color:#778397;font-size:8px}.message-edit-history{margin-top:5px;padding:5px 7px;border-radius:5px;background:rgba(94,132,174,.09);font-size:11px}.message-edit-history summary{color:#41658b;cursor:pointer;font-weight:600}.message-edit-history div{margin-top:5px;padding-top:4px;border-top:1px solid rgba(94,132,174,.2)}.message-edit-history small{color:#718096}.message-edit-history p{margin:2px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.message-edit-form{min-width:min(360px,64vw);display:grid;grid-gap:6px;gap:6px}.message-edit-form textarea{width:100%;min-height:64px;resize:vertical;padding:8px 9px;color:#263348;background:rgba(255,255,255,.9);border:1px solid #90b7de;border-radius:7px;font:inherit;line-height:1.45;outline:none}.message-edit-form>span{display:flex;justify-content:flex-end;gap:6px}.message-edit-form button{display:inline-flex;align-items:center;gap:4px;padding:5px 8px;color:#38506c;background:white;border:1px solid #c9d7e7;border-radius:6px;font-size:10px;font-weight:700;cursor:pointer}.message-edit-form button[type=submit]{color:white;background:#1f73e8;border-color:#1f73e8}.message-edit-form button:disabled{opacity:.55;cursor:default}.message-edit-form small{display:flex;align-items:center;gap:4px;color:#b42318;font-size:9px}.message-attachment{min-width:210px;display:flex;align-items:center;gap:10px;padding:9px;cursor:pointer;color:inherit;background:rgba(255,255,255,.64);border:0;border-radius:7px;font:inherit;text-align:left}.message-attachment:hover{background:rgba(225,237,251,.86)}.message-attachment:focus-visible,.message-media-thumbnail:focus-visible{outline:3px solid rgba(37,104,232,.28);outline-offset:2px}.message-attachment:disabled{cursor:wait;opacity:.75}.message-attachment>svg{flex:0 0 auto;color:var(--blue)}.message-attachment>span{min-width:0;display:flex;flex-direction:column;gap:3px}.message-attachment strong{overflow:hidden;font-size:11px;text-overflow:ellipsis;white-space:nowrap}.message-attachment small{color:#778397;font-size:8px}.message-media-thumbnail{position:relative;width:min(310px,56vw);max-height:260px;display:block;overflow:hidden;padding:0;cursor:zoom-in;background:#e3e9ef;border:0;border-radius:8px}.message-media-thumbnail img{width:100%;max-height:260px;display:block;object-fit:cover}.message-media-thumbnail span{position:absolute;right:8px;bottom:8px;padding:5px 8px;color:white;background:rgba(15,23,42,.7);border-radius:6px;font-size:9px;opacity:0;transition:opacity .16s ease}.message-media-thumbnail:hover span{opacity:1}.message-media-thumbnail.placeholder{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:18px;cursor:default;color:#456078;background:linear-gradient(110deg,#e7edf3 25%,#f4f7fa 42%,#e7edf3 60%);background-size:240% 100%;animation:attachment-placeholder 1.7s ease-in-out infinite}.message-media-thumbnail.placeholder:disabled{opacity:1}.message-media-thumbnail.placeholder strong{font-size:11px}.message-media-thumbnail.placeholder small{color:#708196;font-size:9px}.message-media-thumbnail.placeholder.error{cursor:pointer;color:#9d3e3e;background:#fff0f0;animation:none}@keyframes attachment-placeholder{0%{background-position:100% 0}to{background-position:-100% 0}}.message-attachment-error{max-width:290px;display:flex;align-items:flex-start;gap:6px;padding:7px 8px;color:#9d3e3e;background:#fff0f0;border-radius:7px;font-size:9px;line-height:1.4}.message-attachment-error svg{flex:0 0 auto;margin-top:1px}.attachment-viewer-backdrop{position:fixed;inset:0;z-index:1200;display:grid;place-items:center;padding:24px;background:rgba(7,12,21,.78);-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.attachment-viewer{width:min(1100px,100%);max-height:calc(100vh - 48px);display:flex;flex-direction:column;overflow:hidden;background:#101722;border:1px solid rgba(255,255,255,.14);border-radius:14px;box-shadow:0 28px 90px rgba(0,0,0,.42)}.attachment-viewer>header{min-height:61px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex:0 0 auto;padding:10px 12px 10px 17px;color:white;background:#172130;border-bottom:1px solid rgba(255,255,255,.1)}.attachment-viewer>header>div:first-child{min-width:0;display:flex;flex-direction:column;gap:4px}.attachment-viewer>header strong{overflow:hidden;max-width:min(680px,60vw);font-size:13px;text-overflow:ellipsis;white-space:nowrap}.attachment-viewer>header span{color:#9eabbc;font-size:9px}.attachment-viewer>header>div:last-child{display:flex;align-items:center;gap:7px}.attachment-viewer>header a,.attachment-viewer>header button{width:38px;height:38px;display:grid;place-items:center;cursor:pointer;color:#dfe8f5;background:rgba(255,255,255,.08);border:0;border-radius:9px}.attachment-viewer>header a:hover,.attachment-viewer>header button:hover{color:white;background:rgba(255,255,255,.15)}.attachment-viewer>header button:disabled{cursor:wait;opacity:.72}.attachment-viewer>header .attachment-download-button.error{color:#ffd1d1;background:rgba(190,45,45,.3)}.attachment-viewer-content{min-height:220px;display:grid;place-items:center;overflow:auto}.attachment-viewer-content img,.attachment-viewer-content video{max-width:100%;max-height:calc(100vh - 112px);display:block;object-fit:contain}.attachment-viewer-content.document:has(.attachment-pdf-frame){height:calc(100vh - 112px);min-height:520px;overflow:hidden;background:#2a303b}.attachment-pdf-frame{width:100%;height:100%;display:block;border:0;background:white}.attachment-viewer-content.gallery{position:relative;overflow:hidden}.attachment-gallery-nav{position:absolute;top:50%;z-index:2;width:48px;height:58px;display:grid;place-items:center;transform:translateY(-50%);cursor:pointer;color:white;background:rgba(8,16,27,.66);border:1px solid rgba(255,255,255,.22);border-radius:12px;box-shadow:0 8px 28px rgba(0,0,0,.3);-webkit-backdrop-filter:blur(7px);backdrop-filter:blur(7px)}.attachment-gallery-nav:hover:not(:disabled){background:rgba(30,45,63,.92)}.attachment-gallery-nav:focus-visible{outline:3px solid rgba(89,155,255,.76);outline-offset:3px}.attachment-gallery-nav.previous{left:16px}.attachment-gallery-nav.next{right:16px}.attachment-gallery-nav:disabled{cursor:default;opacity:.22}.attachment-gallery-loading{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;gap:9px;color:white;background:rgba(8,15,25,.58);font-size:12px;-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px)}.attachment-gallery-error{position:absolute;left:50%;bottom:18px;z-index:4;max-width:calc(100% - 150px);display:flex;align-items:center;gap:7px;padding:9px 12px;transform:translateX(-50%);color:#ffd6d6;background:rgba(130,32,32,.92);border-radius:9px;font-size:10px}.attachment-viewer-content audio{width:min(620px,calc(100% - 40px));margin:80px 20px}.attachment-document-link{min-width:min(360px,calc(100% - 40px));display:flex;flex-direction:column;align-items:center;gap:10px;margin:60px 20px;padding:28px;color:#e9f1fc;background:rgba(255,255,255,.07);border-radius:12px;text-align:center}.attachment-document-link span{color:#9eabbc;font-size:10px}.chat-welcome,.thread-state{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;color:#718096;text-align:center}.chat-welcome>span,.thread-state>svg{color:#2689d9}.chat-welcome strong,.thread-state strong{color:#2b374a;font-size:15px}.thread-state span{max-width:340px;font-size:10px;line-height:1.55}.chat-welcome>span{width:66px;height:66px;display:grid;place-items:center;background:#e6f1ff;border-radius:50%}.chat-welcome p{max-width:370px;color:#728095;font-size:11px;line-height:1.6}.chat-composer{position:relative;min-height:68px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:5px 9px;gap:5px 9px;flex:0 0 auto;padding:9px 13px 7px;color:#718096;background:white;border-top:1px solid var(--border)}.chat-composer-actions{display:flex;align-items:center;gap:2px}.chat-emoji-trigger,.chat-file-trigger,.chat-quick-replies-trigger{width:38px;height:40px;display:grid;place-items:center;padding:0;cursor:pointer;color:#68778c;background:transparent;border:1px solid transparent;border-radius:10px;transition:color .16s ease,background .16s ease,border-color .16s ease}.chat-emoji-trigger.active,.chat-emoji-trigger:hover:not(:disabled),.chat-file-trigger:hover:not(:disabled),.chat-quick-replies-trigger.active,.chat-quick-replies-trigger:hover:not(:disabled){color:var(--blue);background:#edf4ff;border-color:#d4e2fb}.chat-emoji-trigger:focus-visible,.chat-file-trigger:focus-visible,.chat-quick-replies-trigger:focus-visible{outline:3px solid rgba(37,104,232,.18);outline-offset:2px}.chat-emoji-trigger:disabled,.chat-file-trigger:disabled,.chat-quick-replies-trigger:disabled{cursor:not-allowed;color:#a8b1bd;opacity:.65}.chat-file-input{display:none}.chat-emoji-picker{position:absolute;left:10px;bottom:calc(100% + 8px);z-index:30;width:min(350px,calc(100vw - 32px));max-height:min(390px,calc(100vh - 150px));display:flex;flex-direction:column;overflow:hidden;color:#253247;background:white;border:1px solid #dce3ec;border-radius:14px;box-shadow:0 18px 48px rgba(28,43,65,.2)}.chat-emoji-picker>header{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:13px 14px 10px;border-bottom:1px solid #edf1f5}.chat-emoji-picker>header strong{font-size:13px}.chat-emoji-picker>header span{overflow:hidden;color:#7b8798;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.chat-emoji-scroll{overflow-y:auto;padding:9px 10px 12px;scrollbar-width:thin}.chat-emoji-scroll section+section{margin-top:10px}.chat-emoji-scroll section>strong{display:block;margin:0 4px 5px;color:#6d7b90;font-size:9px;font-weight:700;letter-spacing:.03em;text-transform:uppercase}.chat-emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-gap:2px;gap:2px}.chat-emoji-option{aspect-ratio:1;min-width:0;display:grid;place-items:center;padding:0;cursor:pointer;background:transparent;border:0;border-radius:8px;font-family:Segoe UI Emoji,Apple Color Emoji,sans-serif;font-size:22px;line-height:1;transition:background .12s ease,transform .12s ease}.chat-emoji-option:focus-visible,.chat-emoji-option:hover{background:#edf4ff;outline:0;transform:scale(1.08)}.chat-quick-replies{position:absolute;left:10px;bottom:calc(100% + 8px);z-index:31;width:min(430px,calc(100vw - 32px));max-height:min(520px,calc(100vh - 150px));display:flex;flex-direction:column;overflow:hidden;color:#253247;background:white;border:1px solid #dce3ec;border-radius:16px;box-shadow:0 18px 48px rgba(28,43,65,.22)}.chat-quick-replies>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 15px 11px;border-bottom:1px solid #edf1f5}.chat-quick-replies>header>div{min-width:0;display:grid;grid-gap:2px;gap:2px}.chat-quick-replies>header strong{font-size:14px}.chat-quick-replies>header span{color:#7b8798;font-size:9px}.chat-quick-replies-search>button,.chat-quick-replies>header>button{width:32px;height:32px;display:grid;place-items:center;flex:0 0 auto;padding:0;cursor:pointer;color:#64748b;background:#f3f6f9;border:1px solid #e2e8f0;border-radius:9px}.chat-quick-replies-search>button:hover,.chat-quick-replies>header>button:hover{color:var(--blue);background:#edf4ff;border-color:#cfdcf2}.chat-quick-replies-categories{display:flex;gap:6px;overflow-x:auto;padding:10px 12px 5px;scrollbar-width:thin}.chat-quick-replies-categories button{min-height:27px;flex:0 0 auto;padding:0 11px;cursor:pointer;color:#536176;background:white;border:1px solid #dce4ed;border-radius:999px;font:inherit;font-size:10px}.chat-quick-replies-categories button.active{color:#165fbe;background:#edf5ff;border-color:#a9caf7}.chat-quick-replies-search{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;grid-gap:7px;gap:7px;margin:7px 12px 9px;padding-left:10px;color:#8592a5;background:#f4f6f9;border:1px solid transparent;border-radius:10px}.chat-quick-replies-search:focus-within{background:white;border-color:#8eb3f7;box-shadow:0 0 0 3px rgba(37,104,232,.08)}.chat-quick-replies-search input{min-width:0;height:36px;padding:0;color:#253247;background:transparent;border:0;outline:0;font:inherit;font-size:11px}.chat-quick-replies-search>button{width:34px;height:34px;margin-right:1px;background:white}.chat-quick-reply-editor{display:grid;grid-gap:7px;gap:7px;margin:0 12px 9px;padding:10px;background:#f7f9fc;border:1px solid #dce5ef;border-radius:11px}.chat-quick-reply-editor input,.chat-quick-reply-editor textarea{width:100%;padding:8px 9px;color:#253247;background:white;border:1px solid #dce4ed;border-radius:8px;outline:0;font:inherit;font-size:11px}.chat-quick-reply-editor textarea{min-height:78px;resize:vertical;line-height:1.45}.chat-quick-reply-editor input:focus,.chat-quick-reply-editor textarea:focus{border-color:#8eb3f7;box-shadow:0 0 0 2px rgba(37,104,232,.08)}.chat-quick-reply-editor footer{display:flex;justify-content:flex-end;gap:7px}.chat-quick-reply-editor footer button{min-height:30px;padding:0 12px;cursor:pointer;color:#526176;background:white;border:1px solid #dce4ed;border-radius:8px;font:inherit;font-size:10px;font-weight:700}.chat-quick-reply-editor footer button.primary{color:white;background:var(--blue);border-color:var(--blue)}.chat-quick-reply-editor footer button:disabled{cursor:not-allowed;opacity:.55}.chat-quick-replies-error{display:flex;align-items:center;gap:6px;margin:0 12px 8px;padding:7px 9px;color:#ae3e3e;background:#fff1f1;border-radius:8px;font-size:9px}.chat-quick-replies-list{min-height:85px;overflow-y:auto;padding:0 8px 10px;scrollbar-width:thin}.chat-quick-replies-state{min-height:80px;display:flex;align-items:center;justify-content:center;gap:7px;padding:16px;color:#7b8798;font-size:10px;text-align:center}.chat-quick-reply{display:flex;align-items:stretch;gap:5px;padding:4px;border-bottom:1px solid #eef2f6}.chat-quick-reply:last-child{border-bottom:0}.chat-quick-reply-text{min-width:0;display:grid;flex:1 1;grid-gap:3px;gap:3px;padding:8px;cursor:pointer;color:#253247;background:transparent;border:0;border-radius:8px;text-align:left}.chat-quick-reply-text:focus-visible,.chat-quick-reply-text:hover:not(:disabled){background:#f0f6ff;outline:0}.chat-quick-reply-text:disabled{cursor:not-allowed;opacity:.58}.chat-quick-reply-text span{color:#22865f;font-size:8px;font-weight:700;letter-spacing:.02em;text-transform:uppercase}.chat-quick-reply-text strong{display:-webkit-box;overflow:hidden;font-size:11px;font-weight:500;line-height:1.4;white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:3}.chat-quick-reply>div{display:flex;align-items:center;gap:2px;opacity:0;transition:opacity .14s ease}.chat-quick-reply:focus-within>div,.chat-quick-reply:hover>div{opacity:1}.chat-quick-reply>div button{width:30px;height:30px;display:grid;place-items:center;padding:0;cursor:pointer;color:#6e7c90;background:white;border:1px solid #e2e8f0;border-radius:8px}.chat-quick-reply>div button:hover{color:var(--blue);background:#edf4ff}.chat-quick-reply>div button:last-child:hover{color:#b43c3c;background:#fff1f1}.chat-composer textarea{width:100%;height:40px;min-height:40px;max-height:96px;resize:vertical;padding:10px 12px;color:#253247;background:#f1f4f7;border:1px solid transparent;border-radius:10px;outline:0;font:inherit;font-size:12px;line-height:18px}.chat-composer textarea:focus{background:white;border-color:#8eb3f7;box-shadow:0 0 0 3px rgba(37,104,232,.08)}.chat-composer textarea:disabled{cursor:not-allowed;opacity:.65}.chat-send-button{width:40px;height:40px;display:grid;place-items:center;padding:0;cursor:pointer;color:white;background:var(--blue);border:0;border-radius:10px;transition:background .16s ease,transform .16s ease}.chat-send-button:hover:not(:disabled){background:#1858ca;transform:translateY(-1px)}.chat-send-button:disabled{cursor:not-allowed;color:#9aa6b7;background:#e6ebf1}.chat-pending-files{grid-column:2/-1;min-width:0;max-height:152px;display:grid;grid-gap:5px;gap:5px;overflow-y:auto;scrollbar-width:thin}.chat-pending-file{min-width:0;display:flex;align-items:center;gap:9px;padding:7px 9px;background:#f5f8fc;border:1px solid #dce5f0;border-radius:10px}.chat-pending-file>img,.chat-pending-file>span,.chat-pending-file>video{width:42px;height:42px;flex:0 0 auto;border-radius:8px}.chat-pending-file>img,.chat-pending-file>video{display:block;object-fit:cover;background:#e8edf3}.chat-pending-file>span{display:grid;place-items:center;color:#2568e8;background:#e8f1ff}.chat-pending-file>div{min-width:0;display:flex;flex:1 1;flex-direction:column;gap:2px}.chat-pending-file small,.chat-pending-file strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-pending-file strong{color:#26344a;font-size:11px}.chat-pending-file small{color:#77869a;font-size:9px}.chat-pending-file>button{width:30px;height:30px;display:grid;place-items:center;flex:0 0 auto;padding:0;cursor:pointer;color:#718096;background:white;border:1px solid #dfe6ee;border-radius:8px}.chat-pending-file>button:hover:not(:disabled){color:#b43c3c;background:#fff1f1;border-color:#f1cece}.chat-pending-file>button:disabled{cursor:not-allowed;opacity:.55}.chat-composer>small{grid-column:2/-1;overflow:hidden;color:#7c8899;font-size:8px;line-height:11px;text-overflow:ellipsis;white-space:nowrap}.chat-composer>small.error{color:#a94444}.pwa-install{position:fixed;z-index:80;right:14px;bottom:max(14px,env(safe-area-inset-bottom));left:14px;display:none;grid-template-columns:42px minmax(0,1fr);gap:10px;align-items:center;padding:12px 42px 12px 12px;color:#eef5ff;background:rgba(17,25,37,.96);border:1px solid rgba(255,255,255,.12);border-radius:16px;box-shadow:0 16px 45px rgba(8,16,27,.3);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.pwa-install>img{border-radius:11px}.pwa-install>div{min-width:0;display:grid;grid-gap:3px;gap:3px}.pwa-install strong{font-size:13px}.pwa-install span{color:#b9c6d8;font-size:11px;line-height:1.35}.pwa-install-close{position:absolute;top:8px;right:8px;width:28px;height:28px;display:grid;place-items:center;padding:0;color:#b9c6d8;background:transparent;border:0;border-radius:8px}.pwa-install-action,.pwa-install-ios{grid-column:1/-1;min-height:38px;display:flex;align-items:center;justify-content:center;gap:7px;padding:0 14px;color:white;background:#2568e8;border:0;border-radius:10px;font-family:inherit;font-size:12px;font-weight:700;line-height:1;text-decoration:none}.pwa-install-ios{color:#dbe7f8!important;background:#24334a}@media (max-width:1280px){.main-content{padding-inline:22px}.system-summary{grid-template-columns:minmax(290px,1.35fr) repeat(3,minmax(125px,.65fr))}.primary-grid,.secondary-grid{grid-template-columns:1fr}.chat-workspace{grid-template-columns:335px minmax(0,1fr)}.chat-crm-deal strong,.chat-crm-lead strong,.chat-crm-responsible strong{max-width:105px}.chat-crm-deal b,.chat-crm-lead b{display:none}.chat-stage-button{min-width:112px;max-width:145px}.chat-participants-button{min-width:112px}.provider-chip{display:none}}@media (max-width:1100px){.chat-thread-header{min-height:126px;flex-wrap:wrap}.chat-crm-context,.chat-crm-status{width:100%;max-width:none;flex:0 0 100%;order:3}.chat-crm-context{flex-wrap:wrap;margin-left:0;padding-top:7px;border-top:1px solid #edf1f5}.chat-stage-actions{flex:1 1 auto}.chat-stage-button{max-width:none;flex:1 1}.chat-spam-actions{margin-left:auto}}@media (max-width:820px){.pwa-install{display:grid}.sidebar{position:-webkit-sticky;position:sticky;top:0;width:100%;height:auto;flex-direction:row;align-items:center;overflow-x:auto}.brand{height:62px;min-width:180px;padding-inline:14px;border:0}.brand>span:last-child{display:inline}.brand-mark{width:32px;height:32px}.sidebar nav{flex:1 1;flex-direction:row;padding:8px}.sidebar nav a{min-width:44px;height:42px;justify-content:center;padding:0 11px}.sidebar nav a span,.sidebar-footer{display:none}.main-content{margin-left:0;padding:20px 15px 0}.chat-main-content{height:calc(100vh - 62px);padding:13px}.chat-workspace{grid-template-columns:310px minmax(0,1fr)}.system-summary{grid-template-columns:1fr 1fr 1fr}.system-state{grid-column:1/-1;border-bottom:1px solid var(--border)}.metric:nth-child(2):before{display:none}.flow-canvas{gap:9px;overflow-x:auto;justify-content:flex-start}.flow-node{min-width:140px}.hub-node{min-width:155px}.whatsapp-pairing{grid-template-columns:260px minmax(0,1fr)}.qr-column img,.qr-placeholder{width:205px;height:205px}}@media (max-width:680px){.chat-page-header{min-height:48px}.chat-page-header p{display:none}.chat-page-header h1{font-size:23px}.chat-refresh{width:40px;padding:0;font-size:0}.chat-workspace{display:block}.chat-list-pane{height:100%;border-right:0}.chat-thread-pane{display:none;height:100%}.chat-workspace.thread-open .chat-list-pane{display:none}.chat-workspace.thread-open .chat-thread-pane{display:flex}.chat-pin-button{opacity:.62}.mobile-chat-back{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;padding:0;cursor:pointer;color:#4f5d72;background:#f2f5f8;border:0;border-radius:8px}.chat-thread-header{min-height:126px;flex-wrap:wrap;padding:8px 10px}.chat-thread-person{min-width:0}.chat-spam-actions{width:100%;order:2}.chat-spam-actions button{flex:1 1}.chat-crm-context,.chat-crm-status{width:100%;max-width:none;flex:0 0 100%;order:3}.chat-crm-context{flex-wrap:wrap;margin-left:0;padding-top:7px;border-top:1px solid #edf1f5}.chat-stage-actions{width:100%;flex:0 0 100%}.chat-stage-button{max-width:none;flex:1 1}.chat-crm-context{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.chat-crm-context>.chat-crm-status,.chat-crm-context>.chat-stage-actions{grid-column:1/-1}.chat-create-deal-wrap,.chat-crm-deal,.chat-crm-deals-menu,.chat-crm-lead,.chat-crm-responsible,.chat-participants-button{min-width:0}.chat-create-deal-wrap{flex-direction:column;gap:5px}.chat-crm-context .chat-create-deal-error,.chat-crm-context .chat-create-deal-success{position:static;width:auto;max-width:100%;overflow-wrap:anywhere}.chat-create-deal{width:100%}.chat-crm-deal strong,.chat-crm-lead strong,.chat-crm-responsible strong{max-width:130px}.chat-crm-deal b,.chat-crm-lead b{display:inline}.responsible-picker-backdrop{align-items:end;padding:0}.responsible-picker{width:100%;max-height:min(650px,calc(100vh - 28px));border-radius:16px 16px 0 0}.rename-lead-backdrop{align-items:end;padding:0}.rename-lead-dialog{width:100%;border-radius:16px 16px 0 0}.provider-chip{display:none}.chat-thread{padding-inline:12px}.message-bubble{max-width:88%}.message-media-thumbnail{width:min(280px,72vw)}.attachment-viewer-backdrop{align-items:stretch;padding:0}.attachment-viewer{width:100%;max-height:100vh;border:0;border-radius:0}.attachment-viewer-content img,.attachment-viewer-content video{max-height:calc(100vh - 61px)}.attachment-viewer-content.document:has(.attachment-pdf-frame){height:calc(100vh - 61px);min-height:0}.attachment-gallery-nav{width:42px;height:52px}.attachment-gallery-nav.previous{left:8px}.attachment-gallery-nav.next{right:8px}.chat-composer{padding-inline:9px}.chat-composer>small{grid-column:2/-1}.chat-pending-files{grid-column:1/-1}}@media (max-width:560px){.chat-emoji-picker,.chat-quick-replies{left:6px;width:calc(100vw - 20px)}.chat-quick-replies{max-height:min(520px,calc(100vh - 118px))}.chat-quick-reply>div{opacity:1}.chat-emoji-grid{grid-template-columns:repeat(7,minmax(0,1fr))}.brand{min-width:57px;width:57px;padding:0 12px}.brand>span:last-child{display:none}.topbar h1{font-size:24px}.topbar p{max-width:240px}.button.secondary{width:40px;padding:0}.button.secondary:not(:hover){font-size:0;gap:0}.system-summary{grid-template-columns:1fr}.metric{min-height:96px;border-top:1px solid var(--border)}.metric:before{display:none}.system-state{padding:18px}.system-state strong{font-size:16px}.source-stack{flex-direction:row}.flow-canvas{flex-direction:column;align-items:stretch}.flow-arrow{transform:rotate(90deg);align-self:center}.flow-node,.hub-node{width:100%}.channel-row{grid-template-columns:auto minmax(0,1fr) auto}.channel-state{grid-column:2}.channel-row>svg{grid-column:3;grid-row:1/span 2}.retry-row{grid-template-columns:auto minmax(0,1fr)}.retry-row .button{grid-column:1/-1;width:100%}.statusbar{flex-wrap:wrap;gap:8px 16px;padding-block:12px}.statusbar span+span:before{display:none}.whatsapp-connected,.whatsapp-empty{align-items:flex-start;flex-wrap:wrap}.whatsapp-actions,.whatsapp-connected .button,.whatsapp-empty .button{width:100%}.whatsapp-actions{flex-direction:column}.whatsapp-pairing{grid-template-columns:1fr}.qr-column{border-right:0;border-bottom:1px solid var(--border)}.pairing-instructions{padding:22px 18px}.phone-form{flex-direction:column}.max-connect-body,.max-token-form{grid-template-columns:1fr}.max-token-form>.button{width:100%}.telegram-credentials-form{width:100%;flex-basis:100%;grid-template-columns:1fr}}.bitrix-gate{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#f3f6fa;color:#172033}.bitrix-gate-card{width:min(460px,100%);padding:32px;border:1px solid #dbe4ef;border-radius:20px;background:#fff;box-shadow:0 18px 50px rgb(20 37 63/10%);text-align:center}.bitrix-gate-card h1{margin:18px 0 10px;font-size:24px}.bitrix-gate-card p{margin:0;color:#66758a;line-height:1.55}.bitrix-gate-card>small{display:block;margin-top:13px;color:#8490a1;font-size:11px;line-height:1.45}.bitrix-gate-icon{width:58px;height:58px;display:inline-grid;place-items:center;border-radius:18px;color:#0f9860;background:#e7f8f0}.bitrix-gate-icon.denied{color:#2568e8;background:#eaf1ff}.bitrix-gate-login{width:100%;min-height:46px;display:flex;align-items:center;justify-content:center;gap:9px;margin-top:22px;padding:0 18px;color:#fff;background:#2568e8;border-radius:11px;box-shadow:0 8px 22px rgb(37 104 232/20%);font-weight:700;text-decoration:none;border:0;cursor:pointer}.bitrix-gate-login:hover{background:#1d5fd8}.bitrix-gate-login:focus-visible{outline:3px solid rgb(37 104 232/22%);outline-offset:3px}.bitrix-gate-login:disabled{cursor:wait;opacity:.65}.manager-login-form{display:grid;grid-gap:13px;gap:13px;margin-top:22px;text-align:left}.manager-login-form label{display:grid;grid-gap:6px;gap:6px;color:#4b596d;font-size:12px;font-weight:700}.manager-login-form input{width:100%;height:44px;padding:0 12px;color:#172033;background:#fff;border:1px solid #cfd9e6;border-radius:10px;outline:none}.manager-login-form input:focus{border-color:#6d9af2;box-shadow:0 0 0 3px rgb(37 104 232/10%)}.manager-login-form .bitrix-gate-login{margin-top:2px}.manager-login-error{padding:9px 11px;color:#a3343d;background:#fff2f3;border:1px solid #f4c8cc;border-radius:8px;font-size:12px;line-height:1.4}.bitrix-gate-fallback{display:flex;flex-direction:column;gap:5px;margin-top:18px;padding-top:16px;border-top:1px solid #e5ebf2;color:#8490a1;font-size:11px}.bitrix-gate-fallback a{color:#2568e8;font-weight:700;text-decoration:none}.bitrix-gate-fallback a:hover{text-decoration:underline}@media (max-width:900px),(pointer:coarse){.bitrix-gate-fallback{display:none}}.access-dialog-backdrop{position:fixed;inset:0;z-index:80;display:grid;place-items:center;padding:20px;background:rgb(10 20 35/56%)}.access-dialog{position:relative;width:min(470px,100%);padding:28px;color:#172033;background:#fff;border:1px solid #dbe4ef;border-radius:18px;box-shadow:0 22px 70px rgb(10 20 35/24%)}.access-dialog-close{position:absolute;top:14px;right:14px;width:36px;height:36px;display:grid;place-items:center;color:#627086;background:#f3f6fa;border:0;border-radius:9px;cursor:pointer}.access-dialog-icon{width:48px;height:48px;display:grid;place-items:center;color:#2568e8;background:#eaf1ff;border-radius:14px}.access-dialog h2{margin:16px 0 8px;font-size:22px}.access-dialog>p{color:#66758a;font-size:13px;line-height:1.5}.access-dialog form{display:grid;grid-gap:12px;gap:12px;margin-top:20px}.access-dialog label{display:grid;grid-gap:6px;gap:6px;color:#4b596d;font-size:12px;font-weight:700}.access-dialog input{width:100%;height:42px;padding:0 11px;color:#172033;border:1px solid #cfd9e6;border-radius:9px;outline:none}.access-dialog input:focus{border-color:#6d9af2;box-shadow:0 0 0 3px rgb(37 104 232/10%)}.access-dialog form small{color:#7b8799;font-size:11px}.access-dialog-error,.access-dialog-success{padding:9px 11px;border-radius:8px;font-size:12px;line-height:1.4}.access-dialog-error{color:#a3343d;background:#fff2f3;border:1px solid #f4c8cc}.access-dialog-success{color:#087846;background:#edf9f3;border:1px solid #bde8d1}.access-dialog-logout{display:inline-flex;align-items:center;gap:7px;margin-top:18px;padding:5px 0;color:#9b3942;background:transparent;border:0;cursor:pointer;font-size:12px;font-weight:700}.access-dialog-logout:hover{text-decoration:underline}.chat-latest-state{flex:0 0 auto;display:flex;align-items:center;gap:6px;min-height:25px;padding:5px 14px;color:#50647d;background:#f8fafc;font-size:11px;line-height:1.4;border-bottom:1px solid var(--border)}.chat-latest-state.error{color:#945413;background:#fff8ea}.chat-latest-state.updated{color:#28735b}.chat-bitrix-link{flex-shrink:0;margin-left:auto;color:#245cb2;text-decoration:none}@media (max-width:600px){.chat-latest-state{flex-wrap:wrap}}.crm-chat-entry{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px;margin-bottom:10px;border:1px solid var(--border);border-radius:12px;background:white;font-size:12px}.crm-chat-entry button{max-width:100%;padding:9px 12px;border:1px solid var(--border);border-radius:9px;color:#245cb2;background:#f7faff;overflow-wrap:anywhere;text-align:left}.crm-chat-entry button.active{border-color:#2568e8;background:#eaf2ff}.mobile-browser-link{overflow-wrap:anywhere;-webkit-user-select:all;-moz-user-select:all;user-select:all}