:root{color-scheme:light;--bg: #f5f5f5;--surface: #ffffff;--surface-soft: #f5f5f5;--ink: #534d64;--muted: #66727d;--muted-strong: #5d5670;--line: #d8dde3;--line-strong: #bfcad3;--accent: #f08377;--accent-hover: #d66c60;--primary: #778591;--primary-soft: #eef1f3;--secondary: #94a6b5;--nav: #534d64;--nav-hover: #5d5670;--mint: #a5e8d6;--mint-soft: #d8f5ee;--teal: var(--accent);--teal-dark: var(--accent-hover);--teal-soft: #fff1ef;--blue: #3a79b8;--blue-soft: #edf4fb;--green: #3c763d;--green-soft: #dff0d8;--amber: #8a6d3b;--amber-soft: #fcf8e3;--violet: #9589b3;--violet-soft: #f3f0f8;--shadow: 0 10px 30px rgba(83, 77, 100, .12);font-family:Helvetica Neue,Helvetica,Arial,Segoe UI,system-ui,-apple-system,sans-serif}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(240,131,119,.18)}html,body,#app{width:100%;height:100%}body{margin:0;min-width:320px;min-height:100%;overflow:hidden;background:var(--bg);color:var(--ink)}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}button:disabled{cursor:not-allowed}a{color:inherit;touch-action:manipulation}.has-modal-open{overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;clip-path:inset(50%)}:where(button,a,input,audio,video,[tabindex]):focus-visible{outline:3px solid rgba(240,131,119,.34);outline-offset:2px}.app-shell{display:grid;grid-template-rows:42px minmax(0,1fr);height:100vh;min-height:0;overflow:hidden}.crm-topbar{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 12px;background:var(--nav);color:#fff;box-shadow:0 1px #11182729}.crm-topbar__nav,.crm-topbar__tools{min-width:0;display:flex;align-items:center;gap:10px}.crm-topbar__nav button{border:0;padding:0;background:transparent;color:#ffffffeb;font-size:11px;font-weight:800;text-transform:uppercase;white-space:nowrap}.crm-topbar__nav button:hover,.crm-topbar__nav button:focus-visible{color:#fff}.crm-action,.crm-icon,.crm-user,.crm-tabs button{min-height:28px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:0;border-radius:3px;font-size:12px;font-weight:800}.crm-action{padding:0 9px;background:var(--secondary);color:#fff}.crm-search{width:178px;min-height:30px;display:flex;align-items:center;gap:6px;padding:0 8px;border:1px solid rgba(255,255,255,.12);border-radius:3px;background:var(--nav-hover);color:#ffffffb3}.crm-search input{min-width:0;width:100%;border:0;outline:2px solid transparent;background:transparent;color:#fff;font-size:12px}.crm-search:focus-within,.rooms-search-slot:focus-within,.dialog-search-field:focus-within{border-color:#f083778f;box-shadow:0 0 0 3px #f083771f}.crm-search input::placeholder{color:#ffffffb8}.crm-icon{position:relative;width:30px;background:transparent;color:#fff}.crm-icon span{position:absolute;top:2px;right:0;min-width:15px;height:15px;padding:0 4px;border-radius:999px;background:var(--accent);color:#fff;font-size:9px;line-height:15px}.crm-user{padding:0;background:transparent;color:#fff;white-space:nowrap}.crm-workspace{min-width:0;min-height:0;display:grid;grid-template-columns:58px minmax(0,1fr);overflow:hidden}.crm-sidebar{min-height:0;display:grid;align-content:start;gap:1px;padding:8px 5px;background:var(--primary)}.crm-sidebar button{min-width:0;min-height:50px;display:grid;place-items:center;gap:3px;border:0;border-radius:3px;background:transparent;color:#ffffffdb;font-size:9px;font-weight:700}.crm-sidebar button:hover{background:#ffffff1f}.crm-sidebar span{max-width:50px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-page{min-width:0;min-height:0;height:calc(100vh - 42px);display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:8px;padding:14px;background:var(--bg);overflow:hidden}.crm-page__heading{min-width:0;display:flex;align-items:center;justify-content:space-between;gap:14px}.crm-breadcrumb{min-width:0;display:flex;align-items:center;gap:6px;color:#54606d;font-size:18px;font-weight:800}.crm-breadcrumb span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.crm-tabs{min-width:0;display:flex;flex-wrap:wrap;gap:5px}.crm-tabs button{padding:0 10px;background:var(--violet);color:#fff}.crm-tabs button.is-active{background:var(--primary)}.crm-tabs button.is-danger{background:var(--accent)}.crm-action:hover,.crm-tabs button:hover,.crm-tabs button:focus-visible{filter:brightness(1.06)}.crm-chat{min-height:0;height:100%}.tallanto-crm-chat-host{min-width:0}.crm-chat__surface{height:100%;min-height:0;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--line);border-radius:4px;background:var(--surface);box-shadow:var(--shadow)}.rooms-search-slot,.dialog-search-field{height:34px;min-width:0;display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted)}.rooms-search-slot,.dialog-search-field{padding:0 12px}.rooms-search-slot input,.dialog-search-field input{width:100%;min-width:0;border:0;outline:2px solid transparent;background:transparent;color:var(--ink)}.rooms-search-slot input::placeholder,.dialog-search-field input::placeholder{color:#8b97a8}.dialog-search-field input[type=search]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.dialog-search-field input[type=search]::-webkit-search-cancel-button,.dialog-search-field input[type=search]::-webkit-search-decoration,.dialog-search-field input[type=search]::-webkit-search-results-button,.dialog-search-field input[type=search]::-webkit-search-results-decoration{display:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.icon-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted-strong)}.icon-button:hover{border-color:var(--line-strong);background:var(--surface-soft);color:var(--accent-hover)}.icon-button:focus-visible{border-color:var(--accent-hover);color:var(--accent-hover)}.readonly-strip{display:flex;align-items:center;gap:8px;padding:9px 14px;border-bottom:1px solid #efd7bd;background:var(--amber-soft);color:#8a6d3b;font-size:13px;font-weight:700}.api-error-strip{padding:9px 14px;border-bottom:1px solid #ebccd1;background:#f2dede;color:#a94442;font-size:13px;font-weight:700}.chat-layout{min-height:0;flex:1 1 auto;display:grid;grid-template-columns:minmax(0,1fr) 326px;background:var(--bg);overflow:hidden}.is-single-room .chat-layout{grid-template-columns:minmax(0,1fr)}.advanced-chat-shell{--rooms-list-width: 312px;position:relative;min-width:0;min-height:0;height:100%;padding:12px;overflow:hidden}.rooms-resize-handle{position:absolute;z-index:20;top:12px;bottom:12px;left:calc(12px + var(--rooms-list-width) - 6px);width:12px;border-radius:999px;cursor:col-resize;outline:none;touch-action:none}.rooms-resize-handle:before{content:"";position:absolute;top:62px;bottom:10px;left:5px;width:2px;border-radius:999px;background:transparent;transition:background-color .16s ease,box-shadow .16s ease}.rooms-resize-handle:hover:before,.rooms-resize-handle:focus-visible:before,.advanced-chat-shell.is-resizing-rooms .rooms-resize-handle:before{background:#aeb8c4;box-shadow:0 0 0 3px #534d6414}body.is-resizing-room-list{cursor:col-resize}body.is-resizing-room-list *{cursor:col-resize!important;-webkit-user-select:none;user-select:none}vue-advanced-chat{display:block;width:100%;height:100%;overflow:hidden;border-radius:4px}.conversation-preloader{position:absolute;z-index:36;top:76px;right:12px;bottom:12px;left:calc(12px + var(--rooms-list-width));display:grid;place-items:center;border-left:1px solid var(--line);background:#f8fafb;color:var(--muted);font-size:14px;font-weight:800;letter-spacing:0;pointer-events:all}.advanced-chat-shell.is-rooms-list-closed .conversation-preloader{left:12px}.conversation-preloader>span:last-child{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border:1px solid var(--line);border-radius:4px;background:#fff;box-shadow:0 10px 24px #534d6414}.conversation-preloader__spinner{width:24px;height:24px;margin-bottom:10px;border:3px solid #d8dde3;border-top-color:var(--accent);border-radius:999px;animation:chat-loading-spin .8s linear infinite}.scroll-date-indicator{position:absolute;z-index:34;top:70px;left:calc(12px + var(--rooms-list-width) + (100% - var(--rooms-list-width) - 24px) / 2);min-height:28px;display:inline-flex;align-items:center;justify-content:center;padding:0 12px;border:1px solid rgba(216,221,227,.82);border-radius:999px;background:#ffffffeb;color:var(--muted-strong);font-size:12px;font-weight:900;line-height:1;box-shadow:0 10px 26px #534d6429;opacity:0;pointer-events:none;transform:translate(-50%,-6px);transition:opacity .15s ease,transform .15s ease;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px)}.scroll-date-indicator.is-visible{opacity:1;transform:translate(-50%)}.is-single-room .scroll-date-indicator{left:50%}.room-header-slot{width:100%;min-width:0;display:flex;align-items:center;gap:10px;padding:0 14px}.room-header-slot>.contact-avatar,.rooms-back,.profile-open{flex:0 0 auto}.room-header-slot>div:not(.contact-avatar):not(.dialog-channel-tabs):not(.dialog-search):not(.channel-warning){min-width:124px;flex:1 1 168px}.room-header-slot strong,.room-header-slot span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-header-slot strong{font-size:14px;color:var(--ink)}.room-header-slot span{margin-top:2px;color:var(--muted);font-size:12px}.dialog-channel-tabs{min-width:0;max-width:238px;flex:0 1 238px;display:flex;align-items:center;gap:5px;overflow-x:auto;scrollbar-width:none}.dialog-channel-tabs::-webkit-scrollbar{display:none}.dialog-channel-tabs button{flex:0 0 auto;min-height:28px;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted-strong);font-size:12px;font-weight:900;line-height:1}.dialog-channel-tabs button:hover,.dialog-channel-tabs button:focus-visible{border-color:var(--line-strong);background:var(--surface-soft)}.dialog-channel-tabs button.is-active{border-color:#f083777a;background:var(--teal-soft);color:var(--accent-hover)}.channel-warning{flex:0 0 auto;display:inline-flex;align-items:center;gap:5px;min-width:0;max-width:156px;min-height:28px;padding:0 9px;border:1px solid #efd7bd;border-radius:999px;background:var(--amber-soft);color:#8a6d3b;font-size:12px;font-weight:900;line-height:1;white-space:nowrap}.channel-warning span{min-width:0;margin:0;color:inherit;font-size:inherit;text-overflow:ellipsis}.dialog-search{position:relative;min-width:0;flex:1 1 260px;max-width:420px;margin-left:auto}.dialog-search-field button{width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:0;border-radius:4px;background:transparent;color:var(--muted)}.dialog-search-field button:hover,.dialog-search-field button:focus-visible{background:var(--surface-soft);color:var(--accent-hover)}.dialog-search-panel{position:absolute;z-index:36;top:74px;right:12px;left:calc(12px + var(--rooms-list-width));display:grid;gap:0;max-height:min(258px,calc(100% - 112px));overflow:hidden;border:1px solid var(--line);border-radius:4px;background:#fff;box-shadow:0 14px 32px #534d6429}.is-single-room .dialog-search-panel{left:12px}.dialog-search-panel__summary{min-height:30px;padding:7px 10px;border-bottom:1px solid var(--line);background:#fff;color:var(--muted);font-size:11px;font-weight:900;line-height:1.25;text-transform:uppercase}.dialog-search-panel__list{max-height:220px;overflow-y:auto;overscroll-behavior:contain}.dialog-search-panel__list button{min-width:0;display:grid;grid-template-columns:minmax(0,1fr);align-items:start;width:100%;min-height:44px;padding:6px 10px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;color:var(--ink);text-align:left}.dialog-search-panel__list button:last-child{border-bottom:0}.dialog-search-panel__list button:hover,.dialog-search-panel__list button:focus-visible,.dialog-search-panel__list button.is-selected{background:var(--surface-soft)}.dialog-search-panel__avatar{display:none}.dialog-search-panel__body{min-width:0;display:grid;gap:2px}.dialog-search-panel__meta{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:baseline;gap:7px}.dialog-search-panel__meta strong,.dialog-search-panel__meta em,.dialog-search-panel__meta time{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dialog-search-panel__meta strong{color:var(--ink);font-size:13px;font-weight:900}.dialog-search-panel__meta em,.dialog-search-panel__meta time{color:var(--muted);font-style:normal;font-weight:800}.dialog-search-panel__meta em{font-size:11px}.dialog-search-panel__meta time{justify-self:end;font-size:11px}.dialog-search-panel__snippet{color:var(--muted-strong);font-size:12px;font-weight:700;line-height:1.3;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.dialog-search-panel__snippet mark{padding:0 2px;border-radius:3px;background:#fff1a6;color:var(--ink);font-weight:900}.rooms-header-slot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 12px 8px;color:var(--ink)}.rooms-header-slot strong{font-size:13px;font-weight:900}.rooms-header-slot span{min-width:24px;height:20px;border-radius:999px;background:var(--primary-soft);color:var(--primary);font-size:11px;font-weight:900;line-height:20px;text-align:center}.rooms-search-slot{margin:0 12px 10px}.room-list-item-slot{position:relative;min-width:0;display:grid;grid-template-columns:44px minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;column-gap:10px;row-gap:2px;width:100%;min-height:70px;padding:9px 8px}.contact-avatar{position:relative;display:inline-grid;place-items:center;overflow:hidden;border:0;border-radius:4px;background:#edf1f4;color:var(--muted-strong);font-weight:900;line-height:1;box-shadow:none;-webkit-user-select:none;user-select:none}.contact-avatar img{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;width:100%;height:100%;border-radius:inherit;background:#edf1f4;object-fit:cover}.contact-avatar__initials{position:relative;font-style:normal;letter-spacing:0}.contact-avatar--room{grid-column:1;grid-row:1 / 3;width:40px;height:40px;font-size:13px}.contact-avatar--header{width:36px;height:36px;font-size:12px}.contact-avatar--message{width:30px;height:30px;font-size:10px}.room-list-item-slot strong,.room-list-item-slot span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room-list-item-slot strong{display:block;color:var(--ink);font-size:14px;font-weight:800}.room-list-item-slot__content{grid-column:2;grid-row:1 / 3;min-width:0}.room-list-item-slot__content>span{display:-webkit-box;overflow:hidden;min-height:32px;margin-top:4px;color:var(--muted);font-size:12px;line-height:1.35;text-overflow:ellipsis;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.room-list-item-slot__content>span.is-loading{color:#8b97a8}.room-list-item-slot__meta{grid-column:3;grid-row:1;align-self:start;display:grid;justify-items:end;gap:4px}.room-list-item-slot time{color:#7d8996;font-size:11px;white-space:nowrap}.room-list-item-slot__filial{max-width:42px;padding:2px 5px;border-radius:999px;background:#edf1f4;color:var(--muted-strong);font-size:10px;font-weight:900;line-height:1.1}.room-list-item-slot__unread{grid-column:3;grid-row:2;justify-self:end;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#df5244;color:#fff;font-size:11px;font-weight:900;line-height:18px;text-align:center}.channel-badge{min-height:24px;display:inline-flex;align-items:center;justify-content:center;padding:3px 8px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:800;line-height:1;white-space:nowrap}.channel-badge.is-compact{min-height:20px;padding:2px 6px;font-size:11px}.channel-badge.is-telegram{border-color:#b9e6ff;background:#e7f6ff;color:#1686c4}.channel-badge.is-max{border-color:#c7bbe2;background:#ede8f7;color:#4a2a73}.channel-badge.is-vk{border-color:#c9daf8;background:#edf4ff;color:#2f66b3}.channel-badge.is-viber{border-color:#dacdf0;background:#f3edff;color:#7b5abc}.message-slot{position:relative;width:fit-content;max-width:100%;margin-block:0 5px;padding:7px 10px 6px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);box-shadow:0 6px 16px #534d6414}.message-slot.is-mine{margin-left:auto;border-color:var(--nav);background:var(--nav);color:#fff}.message-slot.is-search-focused{border-color:#f08377bd;box-shadow:0 0 0 3px #f083772e,0 8px 20px #534d641f}.message-slot .channel-badge{opacity:.9}.message-slot__channel{position:absolute;top:6px;right:6px}.message-slot__meta{min-width:0;margin:0 0 3px;padding-right:46px;color:var(--muted);font-size:12px}.message-slot__meta>strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink);font-size:12px;font-weight:900}.message-slot.is-mine .message-slot__meta{color:#ffffffc7}.message-slot.is-mine .message-slot__meta strong{color:#fff}.message-slot__quote{display:grid;gap:2px;margin:0 34px 7px 0;padding:4px 8px 5px 9px;border-left:3px solid var(--accent);border-radius:5px;background:#f0837714;color:var(--ink)}.message-slot__quote.is-forward{border-left-color:var(--blue);background:#3a79b814}.message-slot__quote-label{color:var(--accent-hover);font-size:11px;font-weight:900;line-height:1.1}.message-slot__quote.is-forward .message-slot__quote-label{color:var(--blue)}.message-slot__quote p{display:-webkit-box;margin:0;overflow:hidden;color:inherit;font-size:13px;font-weight:600;line-height:1.32;overflow-wrap:anywhere;white-space:pre-wrap;-webkit-box-orient:vertical;-webkit-line-clamp:3}.message-slot__quote a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.message-slot.is-mine .message-slot__quote{border-left-color:#ffffffc7;background:#ffffff1f;color:#fff}.message-slot.is-mine .message-slot__quote-label{color:#ffffffdb}.message-slot__text{margin:0;padding-right:46px;color:inherit;font-size:14px;line-height:1.48;overflow-wrap:anywhere;white-space:pre-wrap}.message-slot__text a{color:var(--accent-hover);font-weight:800;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px}.message-slot.is-mine .message-slot__text a{color:#fff;text-decoration-color:#ffffffb8}.message-slot__status{margin-top:5px;display:flex;align-items:baseline;justify-content:flex-end;gap:4px;color:var(--muted);font-size:11px;font-weight:400;text-align:right}.message-slot__check{position:relative;display:inline-block;width:15px;height:11px;color:currentColor;line-height:1;vertical-align:-1px}.message-slot__check:before,.message-slot__check:after{position:absolute;top:-3px;color:currentColor;font-size:13px;font-weight:700;line-height:1}.message-slot__check.is-sent:before{content:"✓";left:5px}.message-slot__check.is-delivered:before,.message-slot__check.is-seen:before{content:"✓";left:0}.message-slot__check.is-delivered:after,.message-slot__check.is-seen:after{content:"✓";left:5px}.message-slot__check.is-failed{width:13px;height:13px;border-radius:999px;background:#df52442e;color:#df5244;text-align:center}.message-slot__check.is-failed:before{content:"!";top:1px;left:0;width:100%;color:currentColor;font-size:10px;font-weight:900}.message-slot.is-mine .message-slot__status{color:#ffffffbd}.message-slot__status.is-seen .message-slot__check{color:#90cdf4}.message-slot__status.is-failed{color:var(--accent)}.message-slot__attachments{display:grid;gap:8px;margin-top:10px}.message-slot.has-image-attachment{padding:4px}.message-slot.has-image-attachment:not(.is-media-only){max-width:min(330px,100%);box-sizing:border-box}.message-slot.has-image-attachment:not(.is-media-only) .message-slot__attachments{width:fit-content;max-width:100%}.message-slot.is-media-only{overflow:visible;padding:0;border:0;background:transparent;box-shadow:none}.message-slot.is-media-only .message-slot__attachments{margin-top:0}.message-slot.is-media-only .message-slot__channel{z-index:2;top:8px;right:8px}.message-slot.is-media-only .message-slot__status{position:absolute;z-index:2;right:8px;bottom:8px;display:inline-flex;align-items:center;gap:4px;padding:2px 7px;border-radius:999px;background:#1a1c2494;color:#ffffffe6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.message-slot.is-media-only .message-slot__status.is-seen .message-slot__check{color:#98d8ff}.image-attachment{width:min(320px,calc(100vw - 112px));max-width:100%;aspect-ratio:4 / 3;display:grid;overflow:hidden;padding:0;border:0;border-radius:9px;background:#edf1f4;color:var(--ink);font:inherit;text-align:left;cursor:pointer;box-shadow:0 8px 18px #534d641a}.image-attachment:hover,.image-attachment:focus-visible{filter:brightness(.97)}.message-slot.is-mine .image-attachment{justify-self:end;color:#fff}.image-attachment__preview{display:block;width:100%;height:100%;min-height:100%;border-radius:inherit;object-fit:contain;background:#edf1f4}.attachment-chip{min-height:40px;width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:8px;padding:7px;border:0;border-radius:4px;background:#ffffffc7;color:var(--ink);font:inherit;text-align:left;text-decoration:none}.attachment-chip:hover{background:#fff}.attachment-chip__preview{width:54px;height:34px;border-radius:3px;object-fit:cover}.attachment-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:800}.attachment-chip small{color:var(--muted);font-size:11px}.voice-attachment{width:min(420px,100%);min-height:58px;display:grid;grid-template-columns:28px minmax(0,1fr);align-items:start;gap:10px;padding:10px;border:0;border-radius:4px;background:#ffffffd1;color:var(--ink);font:inherit;text-align:left}.voice-attachment:hover{background:#fff}.voice-attachment.is-unavailable{opacity:.74}.voice-attachment__body{min-width:0;display:grid;gap:7px}.voice-attachment__body>div{min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:12px}.voice-attachment strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}.voice-attachment small{color:var(--muted);font-size:11px;white-space:nowrap}.voice-attachment audio{max-width:100%;height:32px}.voice-attachment__body>span{color:var(--accent-hover);font-size:12px;font-weight:900}.message-check{position:relative;display:inline-block;width:15px;height:11px;color:#98a2b3;vertical-align:-1px}.message-check:before,.message-check:after{position:absolute;top:-3px;color:currentColor;font-size:13px;font-weight:700;line-height:1}.message-check.is-sent:before{content:"✓";left:5px}.message-check.is-delivered:before,.message-check.is-seen:before{content:"✓";left:0}.message-check.is-delivered:after,.message-check.is-seen:after{content:"✓";left:5px}.message-check.is-seen{color:var(--accent)}.message-check.is-failed{width:13px;height:13px;border-radius:999px;background:#df52442e;color:#df5244;text-align:center}.message-check.is-failed:before{content:"!";top:1px;left:0;width:100%;color:currentColor;font-size:10px;font-weight:900}.send-slot{width:34px;min-width:34px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #df766b;border-radius:4px;background:var(--accent);color:#fff;line-height:1;box-shadow:none}.send-slot svg{width:16px;height:16px;display:block;flex:0 0 auto;margin:0;stroke-width:2.2}.send-slot:hover,.send-slot:focus-visible{background:var(--accent-hover);border-color:var(--accent-hover)}.send-slot.is-sending{cursor:wait;opacity:.92}.send-slot__spinner{width:16px;height:16px;display:block;border:2px solid rgba(255,255,255,.48);border-top-color:#fff;border-radius:999px;animation:send-spinner-rotate .72s linear infinite}@keyframes send-spinner-rotate{to{transform:rotate(360deg)}}.composer-channel-slot span{font-size:12px;font-weight:900;line-height:1}.composer-channel-slot{min-width:64px;height:34px;padding:0 9px;display:inline-flex;align-items:center;justify-content:center;gap:5px;border:1px solid #d8dde3;border-radius:4px;background:#fff;color:var(--ink);box-sizing:border-box;line-height:1}.composer-channel-slot svg{width:14px;height:14px;flex:0 0 auto;margin:0;color:var(--muted);stroke-width:2.2}.composer-channel-slot:hover,.composer-channel-slot:focus-visible{border-color:#c8d0d8;background:var(--surface-soft);color:var(--accent-hover)}.empty-chat-slot{display:grid;place-items:center;gap:8px;min-height:220px;color:var(--muted);font-size:14px;font-weight:800}.empty-chat-slot.is-loading{color:#7d8996}.empty-chat-slot__spinner{width:24px;height:24px;border:3px solid #d8dde3;border-top-color:var(--accent);border-radius:999px;animation:chat-loading-spin .8s linear infinite}@keyframes chat-loading-spin{to{transform:rotate(360deg)}}.client-panel{min-width:0;min-height:0;display:grid;grid-template-rows:auto auto 1fr;gap:14px;padding:16px;border-left:1px solid var(--line);background:#fbfbfb;overflow:auto}.client-panel__header{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.client-panel__identity{min-width:0;display:grid;grid-template-columns:58px minmax(0,1fr);align-items:center;gap:12px}.client-panel__avatar{width:58px;height:58px;border-radius:4px}.client-panel__eyebrow{display:flex;align-items:center;gap:5px;color:var(--muted);font-size:12px;font-weight:800;text-transform:uppercase}.client-panel h2{margin:3px 0 0;font-size:19px;line-height:1.2;letter-spacing:0}.client-panel__close{display:none}.client-panel__facts{display:grid;gap:8px}.client-fact{min-height:36px;display:grid;grid-template-columns:18px minmax(0,1fr);align-items:center;gap:9px;padding:8px 10px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted-strong);font-size:13px;text-decoration:none}.client-fact span{min-width:0;overflow-wrap:anywhere}.client-fact.is-muted{color:#8b97a8}.client-panel__section{display:grid;align-content:start;gap:8px}.client-panel__section-title{color:var(--muted);font-size:12px;font-weight:900;text-transform:uppercase}.client-panel__channels{display:flex;flex-wrap:wrap;gap:7px}.client-panel__channels-empty{color:#8b97a8;font-size:13px}.client-panel__html{padding:12px;border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted-strong);font-size:13px;line-height:1.55}.client-panel__html strong{color:var(--ink)}.client-panel__html a{color:var(--accent-hover);font-weight:800}.client-panel__html.is-muted{color:#8b97a8}.client-panel__crm-link{min-height:34px;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 10px;border:1px solid rgba(240,131,119,.36);border-radius:4px;background:var(--teal-soft);color:var(--accent-hover);font-size:13px;font-weight:900;text-decoration:none}.client-panel__crm-link:hover,.client-panel__crm-link:focus-visible{border-color:#f0837794;background:#fff7f5}.profile-open,.rooms-back,.rooms-back__label{display:none}.is-single-room .profile-open{display:inline-flex}.is-single-room .client-panel{position:fixed;z-index:20;top:16px;right:16px;bottom:16px;width:min(360px,calc(100vw - 32px));border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);transform:translate(calc(100% + 24px));transition:transform .18s ease}.is-single-room .client-panel.is-open{transform:translate(0)}.is-single-room .client-panel__close{display:inline-flex}.attachment-modal{position:fixed;z-index:2147483000;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:22px;background:#0f172a94;overscroll-behavior:contain}.attachment-modal.is-image-viewer{place-items:stretch;padding:0;background:#090a0eeb}.attachment-viewer{position:relative;min-width:0;min-height:0;width:100%;height:100%}.attachment-viewer__bar{position:absolute;z-index:2;top:14px;right:122px;left:16px;display:flex;align-items:center;justify-content:space-between;gap:16px;pointer-events:none}.attachment-viewer__bar strong{min-width:0;max-width:min(520px,44vw);overflow:hidden;padding:8px 12px;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:#14161e9e;color:#fff;font-size:13px;font-weight:700;text-overflow:ellipsis;white-space:nowrap;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);pointer-events:auto}.attachment-viewer__actions{display:inline-flex;align-items:center;gap:8px;pointer-events:auto}.attachment-viewer__top-actions{position:absolute;z-index:5;top:calc(env(safe-area-inset-top,0px) + 14px);right:calc(env(safe-area-inset-right,0px) + 16px);display:inline-flex;align-items:center;gap:8px}.attachment-viewer__close-action{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:999px;background:#14161eb8;color:#fff;cursor:pointer;text-decoration:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.attachment-viewer__button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid rgba(255,255,255,.12);border-radius:999px;background:#14161e9e;color:#fff;cursor:pointer;text-decoration:none;-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.attachment-viewer__button:hover,.attachment-viewer__button:focus-visible,.attachment-viewer__button.is-active,.attachment-viewer__close-action:hover,.attachment-viewer__close-action:focus-visible{border-color:#ffffff3d;background:#ffffff29}.attachment-viewer__button:disabled{opacity:.38;cursor:default}.attachment-viewer__stage{width:100%;height:100%;display:grid;place-items:center;overflow:auto;box-sizing:border-box;padding:74px 28px 28px}.attachment-viewer__stage.is-actual-size{place-items:start center}.attachment-viewer__image{display:block;max-width:calc(100vw - 56px);max-height:calc(100vh - 102px);border-radius:8px;object-fit:contain;box-shadow:0 22px 80px #0000006b;transform:scale(var(--viewer-scale, 1));transform-origin:center center;transition:transform .14s ease}.attachment-viewer__stage.is-actual-size .attachment-viewer__image{max-width:none;max-height:none}@media(min-width:1201px){.attachment-viewer__stage{padding-left:93px}.attachment-viewer__image{max-width:calc(100vw - 121px)}}.attachment-modal__panel{width:min(920px,100%);max-height:min(760px,calc(100vh - 44px));display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden;border-radius:4px;background:#fff;box-shadow:0 26px 70px #0f172a47}.attachment-modal__header,.attachment-modal__footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-bottom:1px solid var(--line)}.attachment-modal__header div{min-width:0;display:grid;gap:3px}.attachment-modal__header strong,.attachment-modal__header span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-modal__header strong{font-size:14px}.attachment-modal__header span{color:var(--muted);font-size:12px}.attachment-modal__body{min-height:280px;display:grid;place-items:center;overflow:auto;padding:16px;background:var(--bg)}.attachment-modal__body img,.attachment-modal__body video{max-width:100%;max-height:calc(100vh - 190px);border-radius:4px;object-fit:contain}.attachment-modal__body audio{width:min(520px,100%)}.attachment-modal__body iframe{width:100%;height:min(620px,calc(100vh - 190px));border:0;border-radius:6px;background:#fff}.attachment-modal__document{width:min(440px,100%);display:grid;place-items:center;gap:9px;padding:28px;border:1px dashed var(--line-strong);border-radius:4px;background:#fff;color:var(--muted-strong);text-align:center}.attachment-modal__document strong{color:var(--ink)}.attachment-modal__document span{font-size:13px;line-height:1.45}.attachment-modal__footer{justify-content:flex-end;border-top:1px solid var(--line);border-bottom:0}.attachment-modal__footer a{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border-radius:4px;background:var(--accent-hover);color:#fff;font-size:13px;font-weight:800;text-decoration:none}.attachment-modal__footer button{min-height:34px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid var(--line);border-radius:4px;background:var(--surface-soft);color:var(--muted);font-size:13px;font-weight:800}@media(max-width:1200px){.crm-topbar__nav button:nth-of-type(n+5){display:none}.chat-layout{grid-template-columns:minmax(0,1fr)}.client-panel,.is-single-room .client-panel{position:fixed;z-index:200000;top:56px;right:16px;bottom:16px;width:min(360px,calc(100vw - 32px));border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow);transform:translate(calc(100% + 24px));transition:transform .18s ease}.client-panel.is-open{transform:translate(0)}.client-panel__close,.profile-open{display:inline-flex}.dialog-channel-tabs{max-width:168px;flex-basis:168px}.dialog-search{min-width:184px;max-width:none}}@media(max-width:980px)and (min-width:761px){.dialog-channel-tabs{display:none}}@media(max-width:760px){body{height:100dvh;min-height:100dvh;overflow:hidden}.app-shell{height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.crm-topbar{min-height:42px;padding:6px 8px}.crm-topbar__nav button{display:none}.crm-topbar__tools{flex:1;justify-content:flex-end}.crm-action,.crm-user{display:none}.crm-search{width:min(190px,52vw)}.crm-workspace{min-height:0;grid-template-columns:minmax(0,1fr)}.crm-sidebar{display:none}.crm-page{height:100%;min-height:0;padding:8px;gap:7px;overflow:hidden}.crm-page__heading{align-items:flex-start;flex-direction:column;gap:8px}.crm-breadcrumb{width:100%;font-size:14px}.crm-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:2px}.crm-tabs button{flex:0 0 auto}.crm-chat__surface,.chat-layout{height:100%;min-height:0}.room-header-slot{align-items:center;align-content:flex-start;flex-wrap:wrap;gap:4px;padding:0 8px}.rooms-back{display:inline-flex;order:0;width:34px;min-width:34px;padding:0;color:var(--accent-hover)}.rooms-back .rooms-back__label{display:none}.room-header-slot>.contact-avatar{order:1}.room-header-slot>div:not(.contact-avatar):not(.dialog-channel-tabs):not(.dialog-search):not(.channel-warning){min-width:0;order:2;flex:1 1 0}.room-header-slot__empty{flex-basis:calc(100% - 96px)}.dialog-search{order:5;flex:1 1 100%;max-width:none;margin-left:0}.profile-open{order:3;margin-left:auto}.dialog-channel-tabs{order:4;flex:1 1 100%;max-width:100%;padding-bottom:1px}.channel-warning{order:4;max-width:100%}.dialog-search-panel{top:138px;right:8px;left:8px;max-height:min(258px,calc(100% - 168px))}.dialog-search-panel__list{max-height:220px}.dialog-search-panel__list button{grid-template-columns:minmax(0,1fr);min-height:44px;padding:6px 10px}.dialog-search-panel__meta{grid-template-columns:minmax(0,1fr) auto}.dialog-search-panel__meta time{grid-column:2;grid-row:1}.dialog-search-panel__meta em{grid-column:1 / -1}.advanced-chat-shell{padding:8px;height:calc(100vh - 100px);height:calc(100dvh - 100px);max-height:100%;min-height:0}.tallanto-crm-chat-host{height:100%;min-height:0;overflow:hidden}.tallanto-crm-chat-host>.crm-chat{height:100%;min-height:0}.scroll-date-indicator{top:146px;left:50%}.conversation-preloader,.advanced-chat-shell.is-rooms-list-closed .conversation-preloader{top:134px;right:8px;bottom:8px;left:8px}.rooms-resize-handle{display:none}.message-slot{max-width:100%}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.client-panel,.scroll-date-indicator{transition:none}.empty-chat-slot__spinner,.conversation-preloader__spinner{animation:none}}
