.unread-badge{color:#fff;background:#25a55f;border-radius:10px;flex:none;place-items:center;min-width:18px;height:18px;margin-left:auto;padding:0 5px;font-size:8px;font-weight:900;display:grid;box-shadow:0 0 0 2px #fffdf8}.messages-end{height:1px!important;margin:0!important}.real-items>button>div:nth-child(2){flex:1;min-width:0}*{scrollbar-width:thin;scrollbar-color:#1d4772 #eee5d6}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:#eee5d6;border-radius:999px}::-webkit-scrollbar-thumb{background:linear-gradient(#285d91,#102f50);border:2px solid #eee5d6;border-radius:999px;min-height:34px}::-webkit-scrollbar-thumb:hover{background:linear-gradient(#3474ad,#173f68)}::-webkit-scrollbar-corner{background:#eee5d6}.real-items::-webkit-scrollbar{width:8px}.real-messages::-webkit-scrollbar{width:8px}.participants-popover>div::-webkit-scrollbar{width:8px}.permission-columns fieldset>div::-webkit-scrollbar{width:8px}.live-composer{position:relative}.live-composer .composer-tools{border:1px solid var(--line);background:#fffdf8;border-radius:10px;align-items:center;display:flex;overflow:hidden}.composer-tools>input:not(.attachment-input){border:0;flex:1;min-width:80px;padding:11px 8px;background:0 0!important}.attachment-input{display:none}.composer-tools .tool-button{width:37px;height:37px;color:var(--navy);background:0 0;border:0;flex:0 0 37px;font-size:15px}.composer-tools .tool-button:hover{background:#e6edf4}.composer-tools .tool-button.recording{color:#fff;background:#b44136;animation:1s infinite recording-pulse}.composer-tools .send-message{background:var(--navy);color:#fff;border:0;flex:0 0 43px;width:43px;height:39px}.attachment-preview{border:1px solid var(--line);background:#f3ecdf;border-radius:8px;align-items:center;padding:8px 10px;gap:9px!important;margin:0 0 8px!important;display:flex!important}.attachment-preview>span{font-size:17px}.attachment-preview>div{flex:1;margin:0!important;display:block!important}.attachment-preview b,.attachment-preview small{font-size:9px;display:block}.attachment-preview small{color:var(--muted);margin-top:3px}.attachment-preview>button{color:#8f4037;background:0 0;border:0;font-size:17px}.emoji-picker{z-index:30;border:1px solid var(--line);background:#fffdf8;border-radius:10px;grid-template-columns:repeat(6,1fr);width:250px;padding:9px;position:absolute;bottom:68px;left:55px;box-shadow:0 12px 35px #102d5030;gap:4px!important;margin:0!important;display:grid!important}.emoji-picker button{background:0 0;border:0;border-radius:6px;padding:6px 3px;font-size:17px}.emoji-picker button:hover{background:#e6edf4}@keyframes recording-pulse{50%{opacity:.55}}.integration-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;max-width:1050px;display:grid}.integration-form{height:auto}.integration-title{align-items:center;gap:11px;margin-bottom:18px;display:flex}.integration-title>span{background:var(--navy);color:#fff;border-radius:10px;place-items:center;width:42px;height:42px;font-size:20px;display:grid}.integration-title h3{margin:0 0 4px}.integration-title small{color:var(--muted);font-size:8px}.integration-numbers{grid-template-columns:1fr 1fr;gap:10px;display:grid}.integration-note{color:var(--muted);background:#f3ecdf;border-radius:7px;padding:9px;font-size:8px;line-height:1.5}.integration-form>.primary-action{width:100%;margin-top:8px}@media (max-width:850px){.integration-grid{grid-template-columns:1fr}}.integration-grid.single{grid-template-columns:minmax(420px,700px)}@media (max-width:700px){.integration-grid.single{grid-template-columns:1fr}}.telegram-select{position:relative}.telegram-select-trigger{border:1px solid var(--line);width:100%;color:var(--ink);text-align:left;background:#fffdf8;border-radius:8px;justify-content:space-between;align-items:center;padding:10px;font-size:9px;display:flex}.telegram-dropdown{z-index:40;border:1px solid var(--line);background:#fffdf8;border-radius:10px;position:absolute;top:42px;left:0;right:0;overflow:hidden;box-shadow:0 14px 38px #102d5030}.telegram-search{border-bottom:1px solid var(--line);align-items:center;padding:7px 10px;display:flex}.telegram-search input{outline:0;background:0 0!important;border:0!important;margin:0!important;padding:7px!important}.telegram-options{max-height:240px;overflow:auto}.telegram-options>label{border-bottom:1px solid var(--line);cursor:pointer;align-items:center;gap:9px;margin:0;padding:9px 11px;display:flex}.telegram-options>label:hover{background:#e6edf4}.telegram-options input{width:auto!important;margin:0!important}.telegram-options label>span{min-width:0}.telegram-options b,.telegram-options small{font-size:9px;display:block}.telegram-options small{color:var(--muted);margin-top:3px}.telegram-options>p{text-align:center;color:var(--muted);padding:18px;font-size:9px}.telegram-refresh{width:100%;margin:8px 0}.telegram-selected{flex-wrap:wrap;gap:5px;margin:8px 0;display:flex}.telegram-selected>span{color:var(--navy);background:#e3eaf1;border-radius:12px;align-items:center;gap:5px;padding:5px 7px;font-size:8px;display:flex}.telegram-selected button{color:var(--navy);background:0 0;border:0;padding:0;font-size:12px}.integration-grid.telegram-layout{grid-template-columns:minmax(420px,700px) minmax(300px,430px);align-items:start;max-width:1160px}.telegram-guide{border:1px solid var(--line);background:#fffdf8;border-radius:11px;padding:20px}.guide-heading{border-bottom:1px solid var(--line);align-items:center;gap:10px;padding-bottom:15px;display:flex}.guide-heading>span{background:var(--navy);color:#fff;border-radius:50%;place-items:center;width:34px;height:34px;font-size:14px;font-weight:900;display:grid}.guide-heading h3{margin:0 0 4px;font-size:13px}.guide-heading p{color:var(--muted);margin:0;font-size:8px}.telegram-guide ol{margin:16px 0 0;padding-left:25px}.telegram-guide li{color:var(--navy);padding:0 0 14px 5px;font-size:10px}.telegram-guide li::marker{font-weight:900}.telegram-guide li b{font-size:10px}.telegram-guide li p{color:var(--muted);margin:4px 0 0;font-size:9px;line-height:1.55}.telegram-guide code{color:var(--navy);background:#e6edf4;border-radius:4px;padding:2px 4px;font-size:8px;display:inline-block}.telegram-guide a{color:var(--navy-light);font-weight:800}.guide-tip{border-left:3px solid var(--navy);background:#f3ecdf;border-radius:6px;padding:10px}.guide-tip b{font-size:9px}.guide-tip p{color:var(--muted);margin:4px 0 0;font-size:8px;line-height:1.5}@media (max-width:1050px){.integration-grid.telegram-layout{grid-template-columns:1fr;max-width:700px}}.crm-topbar{grid-template-columns:minmax(620px,1fr) auto;gap:16px;margin-bottom:20px;display:grid}.crm-ticket-form{border:1px solid var(--line);background:#fffdf8;border-radius:12px;grid-template-columns:minmax(170px,1.4fr) minmax(170px,1.6fr) repeat(4,minmax(120px,1fr)) auto;align-items:end;gap:8px;padding:14px;display:grid}.crm-form-title{grid-column:1/-1;justify-content:space-between;display:flex}.crm-form-title b,.crm-form-title small{display:block}.crm-form-title b{font-size:13px}.crm-form-title small{color:var(--muted);margin-top:3px;font-size:8px}.crm-ticket-form input,.crm-ticket-form textarea,.crm-ticket-form select{border:1px solid var(--line);width:100%;height:36px;color:var(--ink);background:#fff;border-radius:7px;min-width:0;padding:0 9px;font-size:9px}.crm-ticket-form textarea{resize:none;padding-top:9px}.crm-ticket-form .primary-action{white-space:nowrap;height:36px}.crm-summary{grid-template-columns:repeat(3,94px);gap:8px;display:grid}.crm-summary article{border:1px solid var(--line);background:#fffdf8;border-radius:10px;padding:12px}.crm-summary b,.crm-summary span{display:block}.crm-summary b{color:var(--navy);font-size:22px}.crm-summary span{color:var(--muted);margin-top:4px;font-size:8px}.crm-summary>button{grid-column:1/-1}.crm-board{align-items:flex-start;gap:14px;min-height:calc(100vh - 295px);padding-bottom:18px;display:flex;overflow:auto}.crm-column{border:1px solid var(--line);background:#eee9df;border-radius:11px;flex:0 0 292px;overflow:hidden}.crm-column>header{background:#fffdf8;border-top:4px solid;justify-content:space-between;align-items:center;height:51px;padding:0 10px;display:flex}.crm-column>header>div:first-child{align-items:center;gap:7px;min-width:0;display:flex}.crm-column header i{border-radius:50%;flex:0 0 9px;width:9px;height:9px}.crm-column header b{white-space:nowrap;text-overflow:ellipsis;font-size:10px;overflow:hidden}.crm-column header span{color:var(--navy);background:#e5eaf1;border-radius:10px;place-items:center;min-width:19px;height:19px;padding:0 5px;font-size:8px;display:grid}.crm-column-actions{align-items:center;gap:2px;display:flex}.crm-column-actions input{background:0 0;border:0;width:20px;height:22px;padding:0}.crm-column-actions button{color:var(--muted);background:0 0;border:0;border-radius:5px;width:24px;height:24px}.crm-column-actions button:hover{color:var(--navy);background:#e7e1d6}.crm-column-body{min-height:170px;padding:9px}.crm-card{border:1px solid var(--line);cursor:grab;background:#fffdf8;border-radius:9px;margin-bottom:9px;padding:12px;box-shadow:0 2px 5px #102d5008}.crm-card:active{cursor:grabbing}.crm-card-tags{flex-wrap:wrap;gap:4px;display:flex}.crm-card-tags span{border:1px solid #0000;border-radius:9px;padding:3px 6px;font-size:7px;font-weight:800}.priority-tag.low{color:#397257;background:#e4efe9}.priority-tag.medium{color:#87621e;background:#f6edd8}.priority-tag.high{color:#a04b35;background:#f5dfd7}.priority-tag.urgent{color:#fff;background:#a94339}.crm-card h3{margin:9px 0 5px;font-size:11px;line-height:1.35}.crm-card>p{color:var(--muted);-webkit-line-clamp:3;-webkit-box-orient:vertical;margin:0 0 9px;font-size:8px;line-height:1.45;display:-webkit-box;overflow:hidden}.crm-link{border-top:1px solid var(--line);flex-direction:column;gap:4px;padding-top:8px;display:flex}.crm-link span{color:var(--navy-light);white-space:nowrap;text-overflow:ellipsis;font-size:8px;overflow:hidden}.crm-card footer{justify-content:space-between;align-items:center;margin-top:10px;display:flex}.crm-card time{color:var(--muted);font-size:7px}.crm-card footer select{max-width:145px;color:var(--navy);background:#e5eaf1;border:0;border-radius:7px;padding:5px;font-size:7px}.crm-drop-empty{text-align:center;color:#908778;border:1px dashed #c9c1b3;border-radius:8px;padding:18px 8px;font-size:8px}@media (max-width:1250px){.crm-topbar{grid-template-columns:1fr}.crm-summary{grid-template-columns:repeat(3,1fr)}.crm-ticket-form{grid-template-columns:repeat(3,minmax(140px,1fr))}.crm-ticket-form .primary-action{grid-column:span 1}}@media (max-width:800px){.crm-ticket-form{grid-template-columns:1fr 1fr}.crm-summary{grid-template-columns:repeat(3,1fr)}}.success-banner{color:#245f43;background:#e1eee6;border:1px solid #c8dfd0;border-radius:8px;margin-bottom:12px;padding:10px 13px;font-size:10px}.integration-form>.primary-action:disabled{opacity:.65;cursor:wait}.integration-title.telegram-brand>span{background:#229ed9;border-radius:50%;box-shadow:0 5px 16px #229ed936}.telegram-brand svg{fill:#fff;width:25px;height:25px;display:block}.telegram-template{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;min-height:150px!important;line-height:1.55!important}.template-help{color:var(--muted);margin:4px 0 10px;font-size:8px;line-height:1.8}.template-help code{color:var(--navy);background:#e5eaf1;border-radius:4px;padding:2px 4px}.telegram-form-actions{grid-template-columns:1fr 1fr;gap:8px;margin-top:8px;display:grid}.telegram-form-actions button{width:100%;height:36px}.telegram-form-actions button:disabled{opacity:.5;cursor:not-allowed}@media (max-width:620px){.telegram-form-actions{grid-template-columns:1fr}}.admin-grid .admin-telegram-logo{background:#229ed9;border-radius:50%;place-items:center;width:24px;height:24px;display:grid;box-shadow:0 3px 9px #229ed92b}.admin-grid .admin-telegram-logo svg{fill:#fff;width:14px;height:14px;display:block}.crm-filter{border:1px solid var(--line);color:var(--navy);background:#fffdf8;border-radius:10px;align-items:center;gap:8px;margin:0 0 14px;padding:8px 11px;display:flex}.crm-filter input{min-width:180px;color:var(--ink);background:0 0;border:0;outline:0;flex:1;font-size:10px}.crm-filter button{color:var(--navy);background:#e5eaf1;border:0;border-radius:6px;padding:6px 9px;font-size:8px}.crm-filter b{color:var(--muted);white-space:nowrap;font-size:8px}.support-code{background:var(--navy);color:#fff;letter-spacing:.05em;border-radius:5px;margin-top:9px;padding:4px 7px;font:800 8px ui-monospace,SFMono-Regular,Consolas,monospace;display:inline-block}@media (max-width:650px){.crm-filter{flex-wrap:wrap}.crm-filter input{flex-basis:85%;order:2}}
