@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-ext-wght-normal-B2xhLi22.woff2)format("woff2-variations");unicode-range:U+460-52F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-cyrillic-wght-normal-CMZtQduZ.woff2)format("woff2-variations");unicode-range:U+301,U+400-45F,U+490-491,U+4B0-4B1,U+2116}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-ext-wght-normal-CGAr0uHJ.woff2)format("woff2-variations");unicode-range:U+1F??}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-greek-wght-normal-CaVNZxsx.woff2)format("woff2-variations");unicode-range:U+370-377,U+37A-37F,U+384-38A,U+38C,U+38E-3A1,U+3A3-3FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2)format("woff2-variations");unicode-range:U+102-103,U+110-111,U+128-129,U+168-169,U+1A0-1A1,U+1AF-1B0,U+300-301,U+303-304,U+308-309,U+323,U+329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-ext-wght-normal-CFHvXkgd.woff2)format("woff2-variations");unicode-range:U+100-2BA,U+2BD-2C5,U+2C7-2CC,U+2CE-2D7,U+2DD-2FF,U+304,U+308,U+329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Inter Variable;font-style:normal;font-display:swap;font-weight:100 900;src:url(/assets/inter-latin-wght-normal-C2S99t-D.woff2)format("woff2-variations");unicode-range:U+??,U+131,U+152-153,U+2BB-2BC,U+2C6,U+2DA,U+2DC,U+304,U+308,U+329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--color-bg:#f4f5fa;--color-surface:#fff;--color-surface-alt:#f7f8fc;--color-border:#e7e9f0;--color-border-strong:#d4d7e2;--color-text:#0f172a;--color-text-secondary:#475569;--color-text-muted:#94a3b8;--color-primary:#4f46e5;--color-primary-hover:#4338ca;--color-primary-active:#3730a3;--color-primary-soft:#eef2ff;--color-primary-soft-strong:#e0e7ff;--color-primary-text:#4338ca;--color-success:#16a34a;--color-success-soft:#dcfce7;--color-success-text:#15803d;--color-danger:#dc2626;--color-danger-soft:#fef2f2;--color-danger-text:#b91c1c;--color-warning:#d97706;--color-warning-soft:#fffbeb;--color-warning-text:#92400e;--color-info:#0284c7;--color-info-soft:#e0f2fe;--radius-sm:6px;--radius-md:10px;--radius-lg:14px;--radius-full:999px;--shadow-sm:0 1px 2px #0f172a0d;--shadow-card:0 1px 2px #0f172a0a, 0 1px 1px #0f172a05;--shadow-md:0 4px 16px #0f172a14;--shadow-lg:0 16px 40px #0f172a29;--nav-height:60px;font-feature-settings:"cv11", "ss01";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-family:Inter Variable,Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif}*{box-sizing:border-box}html{-webkit-tap-highlight-color:transparent}body{background:var(--color-bg);color:var(--color-text);margin:0;font-size:14px;line-height:1.45}h1,h2,h3,h4{font-weight:600;line-height:1.25}button,input,select,textarea{color:inherit;font-family:inherit}button{touch-action:manipulation}input:not([type=checkbox]):not([type=radio]),select,textarea{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);padding:9px 11px;font-size:14px;transition:border-color .15s,box-shadow .15s}input:not([type=checkbox]):not([type=radio]):focus,select:focus,textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-soft);outline:none}button:not([class]){border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);cursor:pointer;padding:9px 14px;font-size:14px}a{color:var(--color-primary)}::-webkit-scrollbar{width:10px;height:10px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--color-border-strong);border-radius:var(--radius-full);background-clip:content-box;border:2px solid #0000}:focus-visible{outline:2px solid var(--color-primary);outline-offset:1px}:root{--tg-accent:#3390ec;--tg-accent-hover:#2b7fd4;--tg-bg:#fff;--tg-bg-2:#f4f4f5;--tg-border:#dadce0;--tg-divider:#f0f0f0;--tg-text:#000;--tg-text-2:#707579;--tg-chat-bg:#dfe7ec;--tg-chat-pattern:radial-gradient(#ffffff8c 1.2px, transparent 1.3px);--tg-chat-pattern-size:22px 22px;--tg-bubble-in:#fff;--tg-bubble-out:#e3fecb;--tg-bubble-note:#fff6d6;--tg-meta-in:#686c72;--tg-meta-out:#4fae4e;--tg-date-chip:#0000002e;--tg-shadow-bubble:0 1px 1px #00000014;--tg-radius-bubble:15px;--tg-radius-tail:4px;--tg-badge:#3390ec;--tg-badge-muted:#c4c9cc;--tg-r4-bg:#fdecea;--tg-r4-fg:#c62828;--tg-r3-bg:#fff4e5;--tg-r3-fg:#b45309;--tg-r2-bg:#fdf6d8;--tg-r2-fg:#8a6d00;--tg-r1-bg:#f1f3f4;--tg-r1-fg:#5f6368;--tg-pos-bg:#e6f4ea;--tg-pos-fg:#1e7a34;--tg-info-bg:#e8f0fe;--tg-info-fg:#1a56b0;--tg-warn-bg:#fff4e5;--tg-warn-fg:#b45309;--tg-neg-bg:#fdecea;--tg-neg-fg:#c62828;--tg-neu-bg:#f1f3f4;--tg-neu-fg:#3c4043}.tg-av-0{background:linear-gradient(#ff885e,#ff516a)}.tg-av-1{background:linear-gradient(#ffcd6a,#ffa85c)}.tg-av-2{background:linear-gradient(#e0a2f3,#d669ed)}.tg-av-3{background:linear-gradient(#a0de7e,#54cb68)}.tg-av-4{background:linear-gradient(#53edd6,#28c9b7)}.tg-av-5{background:linear-gradient(#72d5fd,#2a9ef1)}.tg-av-6{background:linear-gradient(#ffa8a8,#ff719a)}.tg-pill{white-space:nowrap;text-overflow:ellipsis;border-radius:11px;align-items:center;gap:4px;max-width:100%;height:22px;padding:0 8px;font-size:12px;font-weight:600;display:inline-flex;overflow:hidden}.tg-pill[data-tone=r4]{background:var(--tg-r4-bg);color:var(--tg-r4-fg)}.tg-pill[data-tone=r3]{background:var(--tg-r3-bg);color:var(--tg-r3-fg)}.tg-pill[data-tone=r2]{background:var(--tg-r2-bg);color:var(--tg-r2-fg)}.tg-pill[data-tone=r1]{background:var(--tg-r1-bg);color:var(--tg-r1-fg)}.tg-pill[data-tone=pos]{background:var(--tg-pos-bg);color:var(--tg-pos-fg)}.tg-pill[data-tone=info]{background:var(--tg-info-bg);color:var(--tg-info-fg)}.tg-pill[data-tone=warn]{background:var(--tg-warn-bg);color:var(--tg-warn-fg)}.tg-pill[data-tone=neg]{background:var(--tg-neg-bg);color:var(--tg-neg-fg)}.tg-pill[data-tone=neu]{background:var(--tg-neu-bg);color:var(--tg-neu-fg)}.login-form input,.global-search input,.inbox-filters select,.lead-card input,.lead-card select,.lead-card textarea,.chat-find-bar input,.chat-text-input-wrapper textarea,.chat-input textarea,.kanban-toolbar select,.kanban-add-stage input,.distribution-list input[type=number],.employees-add-form input,.employees-add-form select,.modal-box select,.modal-box input,.modal-box textarea,.voice-templates-form input,.voice-templates-form select,.text-templates-form input,.text-templates-form select,.text-templates-form textarea,.my-tasks-complete-form textarea,.note-edit-form textarea,.lead-card-tags+input{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);padding:10px 12px;font-family:inherit;font-size:14px;transition:border-color .15s,box-shadow .15s}.login-form input:focus,.global-search input:focus,.inbox-filters select:focus,.lead-card input:focus,.lead-card select:focus,.lead-card textarea:focus,.chat-find-bar input:focus,.chat-text-input-wrapper textarea:focus,.chat-input textarea:focus,.kanban-toolbar select:focus,.kanban-add-stage input:focus,.distribution-list input[type=number]:focus,.employees-add-form input:focus,.employees-add-form select:focus,.modal-box select:focus,.modal-box input:focus,.modal-box textarea:focus,.voice-templates-form input:focus,.voice-templates-form select:focus,.text-templates-form input:focus,.text-templates-form select:focus,.text-templates-form textarea:focus,.my-tasks-complete-form textarea:focus,.note-edit-form textarea:focus{border-color:var(--color-primary);box-shadow:0 0 0 3px var(--color-primary-soft);outline:none}.login-form button,.chat-input button,.lead-card button:not(.lead-card-history-toggle):not(.lead-card-tag-chip button):not(.lead-card-back-btn),.distribution-editor button,.permissions-detail button,.kanban-add-stage button,.voice-preview button,.template-picker-item button,.voice-templates-form button,.text-templates-form button,.employees-toolbar button,.employees-add-form button[type=submit],.lead-detail-open-btn,.my-tasks-tabs button.active{border-radius:var(--radius-md);background:var(--color-primary);color:#fff;cursor:pointer;border:none;padding:10px 16px;font-size:14px;font-weight:500;transition:background-color .15s,box-shadow .15s,transform 50ms}.login-form button:hover:not(:disabled),.chat-input button:hover:not(:disabled),.lead-card button:hover:not(:disabled):not(.lead-card-history-toggle):not(.lead-card-tag-chip button):not(.lead-card-back-btn),.distribution-editor button:hover:not(:disabled),.permissions-detail button:hover:not(:disabled),.kanban-add-stage button:hover:not(:disabled),.voice-preview button:hover:not(:disabled),.template-picker-item button:hover:not(:disabled),.voice-templates-form button:hover:not(:disabled),.text-templates-form button:hover:not(:disabled),.employees-toolbar button:hover,.employees-add-form button[type=submit]:hover:not(:disabled),.lead-detail-open-btn:hover{background:var(--color-primary-hover)}.login-form button:active:not(:disabled),.lead-card button:active:not(:disabled):not(.lead-card-history-toggle):not(.lead-card-tag-chip button):not(.lead-card-back-btn){transform:translateY(1px)}.login-form button:disabled,.chat-input button:disabled,.lead-card button:disabled,.distribution-editor button:disabled,.permissions-detail button:disabled,.kanban-add-stage button:disabled,.voice-preview button:disabled,.template-picker-item button:disabled,.employees-add-form button[type=submit]:disabled{opacity:.5;cursor:default}.inbox-bulk-bar button,.employees-actions button,.sessions-list button,.modal-actions button,.lead-detail-history-toggle,.lead-card-history-toggle,.lead-card-back-btn,.my-tasks-list>li>button,.notification-dropdown-header button,.chat-find-bar button{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);color:var(--color-text-secondary);cursor:pointer;padding:8px 14px;font-size:13px;transition:background-color .15s,border-color .15s,color .15s}.inbox-bulk-bar button:hover,.employees-actions button:hover,.sessions-list button:hover,.modal-actions button:hover,.lead-detail-history-toggle:hover,.lead-card-history-toggle:hover,.lead-card-back-btn:hover,.my-tasks-list>li>button:hover,.notification-dropdown-header button:hover,.chat-find-bar button:hover{background:var(--color-surface-alt);border-color:var(--color-border-strong);color:var(--color-text)}.analytics-page h2,.distribution-editor h2,.permissions-managers h2,.permissions-detail h2,.employees-toolbar h2,.voice-templates-form h2,.voice-templates-list h2,.text-templates-form h2,.text-templates-list h2{color:var(--color-text);margin:0 0 10px;font-size:15px;font-weight:600}.login-screen{background:linear-gradient(180deg, #eef2ff 0%, var(--color-bg) 320px);justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.login-form{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);width:340px;max-width:100%;box-shadow:var(--shadow-lg);flex-direction:column;gap:14px;padding:32px 28px;display:flex}.login-form h1{margin:0 0 4px;font-size:20px}.login-form label{color:var(--color-text-secondary);flex-direction:column;gap:6px;font-size:13px;font-weight:500;display:flex}.login-form button{margin-top:4px;padding:12px}.error{color:var(--color-danger);margin:0;font-size:13px}.app-shell{background:var(--color-bg);flex-direction:column;height:100vh;display:flex}.top-nav{height:var(--nav-height);background:var(--color-surface);border-bottom:1px solid var(--color-border);box-shadow:var(--shadow-sm);z-index:30;flex-shrink:0;align-items:center;gap:4px;padding:0 16px;display:flex;position:relative}.nav-brand{color:var(--color-text);white-space:nowrap;flex-shrink:0;align-items:center;gap:8px;margin-right:8px;font-size:15px;font-weight:700;display:flex}.nav-brand-mark{background:var(--color-primary);color:#fff;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;width:26px;height:26px;font-size:13px;font-weight:700;display:flex}.nav-links{flex:1;align-items:center;gap:2px;min-width:0;display:flex}.nav-links-scroll{scrollbar-width:none;align-items:center;gap:2px;min-width:0;display:flex;overflow-x:auto}.nav-links-scroll::-webkit-scrollbar{display:none}.top-nav button{border-radius:var(--radius-md);cursor:pointer;color:var(--color-text-secondary);white-space:nowrap;background:0 0;border:none;flex-shrink:0;padding:8px 12px;font-size:13px;font-weight:500;transition:background-color .15s,color .15s}.top-nav button:hover{background:var(--color-surface-alt);color:var(--color-text)}.top-nav button.active{background:var(--color-primary-soft);color:var(--color-primary-text);font-weight:600}.nav-divider{background:var(--color-border);flex-shrink:0;align-self:stretch;width:1px;margin:10px 6px}.nav-admin-group{flex-shrink:0;position:relative}.nav-admin-toggle{border-radius:var(--radius-md);cursor:pointer;color:var(--color-text-secondary);white-space:nowrap;background:0 0;border:none;padding:8px 12px;font-size:13px;font-weight:500;list-style:none;display:block}.nav-admin-toggle::-webkit-details-marker{display:none}.nav-admin-toggle:hover{background:var(--color-surface-alt);color:var(--color-text)}.nav-admin-toggle.active{background:var(--color-primary-soft);color:var(--color-primary-text);font-weight:600}.nav-admin-dropdown{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);min-width:200px;box-shadow:var(--shadow-lg);z-index:35;flex-direction:column;gap:1px;margin-top:6px;padding:6px;display:none;position:absolute;top:100%;left:0}.nav-admin-group[open]>.nav-admin-dropdown{display:flex}.nav-admin-dropdown button{text-align:left;width:100%}.nav-admin-mobile{display:none}.nav-right{flex-shrink:0;align-items:center;gap:4px;margin-left:8px;display:flex}.nav-burger{border-radius:var(--radius-md);cursor:pointer;width:36px;height:36px;color:var(--color-text);background:0 0;border:none;flex-shrink:0;justify-content:center;align-items:center;display:none}.nav-burger:hover{background:var(--color-surface-alt)}.nav-burger-bar{background:currentColor;border-radius:2px;width:18px;height:2px;display:block;position:relative}.nav-burger-bar:before,.nav-burger-bar:after{content:"";background:currentColor;border-radius:2px;width:18px;height:2px;position:absolute;left:0}.nav-burger-bar:before{top:-6px}.nav-burger-bar:after{top:6px}.mobile-nav-overlay{display:none}.nav-waiting-badge{border-radius:var(--radius-full);background:var(--color-danger);color:#fff;margin-left:4px;padding:1px 6px;font-size:11px;font-weight:600;display:inline-block}.nav-logout{color:var(--color-danger-text)!important}@media (width<=860px){.nav-links{top:var(--nav-height);background:var(--color-surface);border-right:1px solid var(--color-border);width:280px;max-width:82vw;box-shadow:var(--shadow-lg);z-index:45;flex-direction:column;align-items:stretch;gap:2px;padding:10px;transition:transform .2s;position:fixed;bottom:0;left:0;overflow:hidden auto;transform:translate(-100%)}.nav-links.open{transform:translate(0)}.nav-links-scroll{flex-direction:column;align-items:stretch;overflow-x:hidden}.top-nav button{text-align:left;padding:11px 12px}.nav-divider{display:none}.nav-burger{display:flex}.nav-admin-group{display:none}.nav-admin-mobile{flex-direction:column;gap:1px;margin-top:6px;display:flex}.nav-admin-mobile:before{content:"Управление";text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-muted);padding:8px 12px 4px;font-size:11px;font-weight:600}.mobile-nav-overlay.open{inset:0;top:var(--nav-height);z-index:40;background:#0f172a52;display:block;position:fixed}.nav-brand span:not(.nav-brand-mark){display:none}}.global-search{width:240px;margin-left:8px;position:relative}@media (width<=1560px){.global-search{width:180px}.top-nav .nav-links-scroll>button{padding-left:9px;padding-right:9px}}@media (width<=1440px) and (width>=769px){.global-search{width:130px}.top-nav .nav-links-scroll>button{padding-left:7px;padding-right:7px;font-size:13px}.top-nav .status-toggle-label{display:none}}.global-search input{box-sizing:border-box;width:100%;padding:8px 12px;font-size:13px}.global-search-results{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);width:340px;max-width:88vw;max-height:420px;box-shadow:var(--shadow-lg);z-index:35;margin-top:6px;position:absolute;top:100%;right:0;overflow-y:auto}.global-search-group-title{text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-muted);padding:10px 12px 4px;font-size:11px;font-weight:600}.global-search-item{border:none;border-bottom:1px solid var(--color-border);background:var(--color-surface);text-align:left;cursor:pointer;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:9px 12px;display:flex}.global-search-item:hover{background:var(--color-surface-alt)}.global-search-item:disabled{opacity:.5;cursor:default}.global-search-item-title{font-size:13px;font-weight:500}.global-search-item-sub{color:var(--color-text-muted);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:11px;overflow:hidden}@media (width<=860px){.global-search{width:130px;margin-left:4px}.status-toggle-label{display:none}.status-toggle-button{padding:6px 9px}}.inbox-layout{height:calc(100vh - var(--nav-height));background:var(--color-surface);min-height:0;display:flex}.analytics-page{height:calc(100vh - var(--nav-height));box-sizing:border-box;flex-direction:column;gap:28px;width:100%;max-width:1400px;padding:28px;display:flex;overflow-y:auto}.analytics-list{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);margin:0;padding:0;list-style:none;overflow:hidden}.analytics-list li{border-bottom:1px solid var(--color-border);justify-content:space-between;gap:8px;padding:10px 14px;font-size:14px;display:flex}.analytics-list li:last-child{border-bottom:none}.analytics-count{color:var(--color-primary-text);font-weight:600}.analytics-table-wrap{border:1px solid var(--color-border);border-radius:var(--radius-md);overflow-x:auto}.analytics-table{border-collapse:collapse;width:100%;font-size:14px}.analytics-table th,.analytics-table td{text-align:left;border-bottom:1px solid var(--color-border);white-space:nowrap;padding:10px 14px}.analytics-table th{background:var(--color-surface-alt);color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:.02em;font-size:12px;font-weight:600}.analytics-table tr:last-child td{border-bottom:none}.analytics-empty{color:var(--color-text-muted);font-size:13px}@media (width<=860px){.analytics-page{gap:20px;max-width:100%;padding:16px}}.sidebar{border-right:1px solid var(--color-border);background:var(--color-surface);flex-direction:row;flex-shrink:0;width:424px;min-height:0;display:flex}.sidebar-body{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.inbox-folders{border-right:1px solid var(--color-border);background:var(--color-surface-alt);flex-direction:column;flex-shrink:0;gap:2px;width:84px;padding:8px 4px;display:flex;overflow-y:auto}.inbox-folder{border-radius:var(--radius-md);color:var(--color-text-secondary);cursor:pointer;background:0 0;border:none;flex-direction:column;align-items:center;gap:4px;padding:8px 2px;font-size:11px;line-height:1.2;display:flex}.inbox-folder-active{background:var(--color-primary-soft);color:var(--color-primary-text);font-weight:600}.inbox-folder-icon{font-size:22px;line-height:1;position:relative}.inbox-folder-badge{background:var(--color-primary);color:#fff;text-align:center;border-radius:9px;min-width:18px;padding:1px 5px;font-size:11px;font-weight:600;position:absolute;top:-6px;right:-12px}.inbox-folder-label{text-overflow:ellipsis;white-space:nowrap;max-width:76px;overflow:hidden}.inbox-filters{border-bottom:1px solid var(--color-border);flex-wrap:wrap;flex-shrink:0;gap:8px;padding:12px;display:flex}.inbox-filters select{flex:1;min-width:110px;padding:7px 8px;font-size:12px}.inbox-tab-btn{border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text);cursor:pointer;white-space:nowrap;border-radius:6px;padding:7px 10px;font-size:12px}.inbox-tab-btn-active{background:var(--color-primary);border-color:var(--color-primary);color:var(--color-primary-text)}.inbox-bulk-bar{background:var(--color-warning-soft);border-bottom:1px solid var(--color-border);flex-shrink:0;align-items:center;gap:8px;padding:10px 12px;font-size:13px;display:flex}.conversation-bulk-checkbox{flex-shrink:0;margin-top:2px}.chat-error{color:var(--color-danger);margin:0 16px 8px;font-size:13px}.conversation-list-wrap{flex:1;min-height:0}.conversation-list-empty{color:var(--color-text-muted);text-align:center;padding:32px 20px;font-size:14px}.conversation-list-row{border-bottom:1px solid var(--color-border);cursor:pointer;align-items:flex-start;gap:10px;padding:12px 16px;transition:background-color .1s;display:flex;overflow:hidden}.conversation-list-row-main{flex:1;min-width:0}.avatar-img,.avatar-fallback{object-fit:cover;border-radius:50%;flex-shrink:0}.avatar-fallback{color:#fff;text-transform:uppercase;justify-content:center;align-items:center;font-weight:600;display:flex}.conversation-list-row:hover{background:var(--color-surface-alt)}.conversation-subchats{border-top:1px dashed var(--color-border);margin-top:4px}.conversation-subchat{white-space:nowrap;border-radius:6px;align-items:center;gap:8px;font-size:12px;display:flex;overflow:hidden}.conversation-subchat.unanswered{background:var(--color-danger-soft);box-shadow:inset 3px 0 0 var(--color-danger);padding-left:6px}.conversation-subchat:hover{background:#0000000f}.conversation-subchat-label{text-overflow:ellipsis;flex-shrink:0;max-width:45%;font-weight:600;overflow:hidden}.conversation-subchat-preview{opacity:.75;text-overflow:ellipsis;min-width:0;overflow:hidden}.conversation-list-row.unanswered:hover{filter:brightness(.97)}.message-actions{opacity:0;margin-left:6px;transition:opacity .1s}.message:hover .message-actions{opacity:1}.message-actions button{cursor:pointer;color:inherit;background:0 0;border:none;padding:0 3px;font-size:12px}.conversation-list-row.active{background:var(--color-primary-soft);box-shadow:inset 3px 0 0 var(--color-primary)}.conversation-row{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.conversation-name{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600;overflow:hidden}.conversation-time{color:var(--color-text-muted);flex-shrink:0;font-size:12px}.conversation-pin-icon{margin-right:4px}.conversation-pin-btn{cursor:pointer;opacity:0;background:0 0;border:none;border-radius:50%;flex-shrink:0;width:20px;height:20px;padding:0;font-size:12px;line-height:1;transition:opacity .1s}.conversation-list-row:hover .conversation-pin-btn{opacity:.6}.conversation-pin-btn:hover{background:var(--color-surface-alt);opacity:1!important}.conversation-list-row.active:has(.conversation-pin-icon){background:var(--color-primary-soft)}.conversation-preview-row{justify-content:space-between;align-items:center;gap:6px;margin-top:2px;display:flex}.conversation-preview{color:var(--color-text-muted);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:13px;overflow:hidden}.conversation-preview.unread{color:var(--color-text);font-weight:600}.conversation-unread-dot{background:var(--color-primary);border-radius:50%;flex-shrink:0;width:9px;height:9px}.conversation-badges{flex-wrap:nowrap;gap:5px;min-height:20px;margin-top:6px;display:flex;overflow:hidden}.badge{border-radius:var(--radius-full);background:var(--color-surface-alt);color:var(--color-text-secondary);white-space:nowrap;flex-shrink:0;padding:3px 8px;font-size:11px;font-weight:500}.badge.more{color:var(--color-text-muted);background:0 0;padding:3px 2px}.badge.tag{background:var(--color-primary-soft);color:var(--color-primary-text)}.badge.status{background:var(--color-info-soft);color:#075985}.badge.sla-violated{background:var(--color-danger-soft);color:var(--color-danger-text);font-weight:600}.badge.task-due{background:var(--color-primary-soft-strong);color:#3730a3}.badge.task-due.task-overdue{background:var(--color-danger-soft);color:var(--color-danger-text);font-weight:600}.badge.waiting-timer.waiting-gray{color:#475569;background:#eef0f3}.badge.waiting-timer.waiting-yellow{background:var(--color-warning-soft);color:var(--color-warning-text)}.badge.waiting-timer.waiting-red{background:var(--color-danger-soft);color:var(--color-danger-text)}main{flex:1;min-width:0}.chat-window{background:var(--color-surface);flex-direction:column;height:100%;display:flex;position:relative}.chat-drop-overlay{z-index:15;border:2px dashed var(--color-primary);pointer-events:none;background:#2563eb14;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.chat-drop-overlay span{background:var(--color-surface);border-radius:var(--radius-md);color:var(--color-primary);box-shadow:var(--shadow-md);padding:8px 16px;font-size:14px;font-weight:500}.message-photo{border-radius:var(--radius-md);max-width:240px;max-height:240px;display:block}.message-sticker{max-width:120px;max-height:120px}.message-caption{margin-top:6px}.message-document{color:var(--color-primary-text);font-size:13px;font-weight:500;text-decoration:none;display:inline-block}.message-document:hover{text-decoration:underline}.message-location,.message-contact,.message-unknown{font-size:13px}.message-location{color:var(--color-primary-text);text-decoration:none}.message-location:hover{text-decoration:underline}.message-unknown{color:var(--color-text-muted);font-style:italic}.chat-file-preview-image{border-radius:var(--radius-md);max-width:100%;max-height:300px}.chat-window-empty{color:var(--color-text-muted);justify-content:center;align-items:center;font-size:14px}.chat-header{border-bottom:1px solid var(--color-border);align-items:center;gap:12px;padding:14px 20px;font-weight:600;display:flex}.chat-header-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.chat-back-btn,.chat-info-btn,.chat-link-btn{background:var(--color-surface-alt);border-radius:var(--radius-md);cursor:pointer;width:32px;height:32px;color:var(--color-text);border:none;flex-shrink:0;justify-content:center;align-items:center;font-size:16px}.chat-back-btn,.chat-info-btn{display:none}.chat-link-btn{display:flex}.chat-notes-filter{color:var(--color-text-secondary);flex-shrink:0;align-items:center;gap:4px;font-size:12px;font-weight:400;display:flex}.chat-find-bar{border-bottom:1px solid var(--color-border);background:var(--color-surface-alt);align-items:center;gap:8px;padding:8px 16px;display:flex}.chat-find-bar input{flex:1;padding:7px 10px;font-size:13px}.chat-find-count{color:var(--color-text-muted);white-space:nowrap;font-size:12px}.chat-find-bar button{padding:5px 9px}.search-highlight{animation:1.5s ease-out search-highlight-flash}@keyframes search-highlight-flash{0%{background:var(--color-warning-soft)}to{background:0 0}}.chat-text-input-wrapper{flex:1;min-width:0;position:relative}.chat-text-input-wrapper textarea{box-sizing:border-box;resize:none;width:100%;max-height:160px;padding:11px 14px;font-family:inherit;font-size:14px;line-height:1.4;overflow-y:auto}.chat-template-dropdown{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);max-height:240px;box-shadow:var(--shadow-lg);z-index:5;margin-bottom:6px;position:absolute;bottom:100%;left:0;right:0;overflow-y:auto}.chat-template-dropdown-item{border:none;border-bottom:1px solid var(--color-border);background:var(--color-surface);text-align:left;cursor:pointer;flex-direction:column;align-items:flex-start;gap:2px;width:100%;padding:8px 10px;display:flex}.chat-template-dropdown-item:hover{background:var(--color-surface-alt)}.chat-template-dropdown-title{font-size:13px;font-weight:500}.chat-template-dropdown-preview{color:var(--color-text-muted);white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:11px;overflow:hidden}.chat-template-missing-warning{color:var(--color-danger-text);margin:0;padding:4px 16px;font-size:12px}.chat-messages{background:var(--color-bg);flex-direction:column;flex:1;gap:10px;padding:20px;display:flex;overflow-y:auto}.message{border-radius:var(--radius-md);max-width:62%;box-shadow:var(--shadow-sm);padding:9px 13px;font-size:14px}.message.in{background:var(--color-surface);border-bottom-left-radius:3px;align-self:flex-start}.message.out{background:var(--color-primary-soft-strong);border-bottom-right-radius:3px;align-self:flex-end}.message-text{white-space:pre-wrap;word-break:break-word}.message-time{color:var(--color-text-muted);text-align:right;margin-top:4px;font-size:11px}.chat-input{border-top:1px solid var(--color-border);background:var(--color-surface);align-items:flex-end;gap:8px;padding:14px 20px;display:flex}.chat-input textarea{flex:1;padding:11px 14px}.chat-input button{padding:11px 18px}.chat-input-note{background:var(--color-warning-soft)!important}.chat-input .chat-mode-toggle{flex-shrink:0;background:var(--color-surface-alt)!important;color:var(--color-text-secondary)!important}.chat-day-separator{justify-content:center;margin:10px 0;display:flex}.chat-day-separator span{color:var(--color-text-secondary);background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-full);padding:3px 12px;font-size:11px;font-weight:500}.message-sender{font-weight:600}.message-read-status{color:var(--color-text-muted)}.chat-pinned-notes{border-bottom:1px solid var(--color-border);background:var(--color-warning-soft);flex-direction:column;gap:4px;padding:8px 16px;display:flex}.chat-pinned-note{border-radius:var(--radius-sm);background:0 0;justify-content:space-between;align-items:center;gap:8px;padding:2px 0;font-size:12px;display:flex}.chat-pinned-note-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-pinned-note button{cursor:pointer;color:var(--color-text-muted);background:0 0;border:none;flex-shrink:0}.note-entry{background:var(--color-warning-soft);border-radius:var(--radius-md);align-self:stretch;padding:9px 13px;font-size:13px}.note-header{color:var(--color-warning-text);align-items:center;gap:6px;margin-bottom:4px;font-size:11px;display:flex}.note-icon{text-transform:uppercase;background:#fde68a;border-radius:3px;padding:1px 5px;font-size:10px;font-style:normal;font-weight:600}.note-author{font-weight:600}.note-entry-system{background:var(--color-primary-soft)}.note-entry-system .note-header{color:var(--color-primary-text)}.note-entry-system .note-icon{background:var(--color-primary);color:#fff}.note-edited-badge{color:var(--color-warning-text)}.note-text{white-space:pre-wrap;word-break:break-word}.note-actions{gap:10px;margin-top:6px;display:flex}.note-actions button{color:var(--color-warning-text);cursor:pointer;background:0 0;border:none;padding:0;font-size:11px;text-decoration:underline}.note-edit-form{flex-direction:column;gap:4px;display:flex}.note-edit-form textarea{padding:6px 8px;font-size:13px}.note-edit-actions{gap:8px;display:flex}.inbox-waiting-filter{color:var(--color-text-secondary);align-items:center;gap:4px;font-size:12px;display:flex}.lead-detail-last-note{background:var(--color-warning-soft);border-radius:var(--radius-sm);white-space:pre-wrap;padding:6px 8px}@media (width<=860px){.chat-back-btn,.chat-info-btn{display:flex}.chat-header{padding:12px 14px}.chat-messages{padding:14px}.message{max-width:82%}.chat-input{padding:10px 12px}.chat-toolbar{padding:0 12px 10px}}.lead-card{border-left:1px solid var(--color-border);background:var(--color-surface);flex-direction:column;flex-shrink:0;gap:14px;width:320px;padding:20px;display:flex;overflow-y:auto}.lead-card h2{margin:0;font-size:16px}.lead-card-back-btn{background:var(--color-surface-alt);border-radius:var(--radius-md);cursor:pointer;color:var(--color-text-secondary);border:none;align-self:flex-start;padding:7px 12px;font-size:13px;display:none}.lead-card-info{background:var(--color-surface-alt);border-radius:var(--radius-md);margin:0;padding:10px 12px;font-size:13px}.lead-card-info dt{color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.02em;margin-top:8px;font-size:11px}.lead-card-info dt:first-child{margin-top:0}.lead-card-info dd{margin:2px 0 0}.lead-card label{color:var(--color-text-secondary);text-transform:uppercase;letter-spacing:.02em;flex-direction:column;gap:6px;font-size:12px;font-weight:600;display:flex}.lead-card-checkbox{text-transform:none;align-items:center;font-weight:500;flex-direction:row!important}.lead-card-tags{flex-wrap:wrap;gap:6px;display:flex}.lead-card-tags:empty{display:none}.lead-card-tag-chip{background:var(--color-primary-soft);color:var(--color-primary-text);border-radius:var(--radius-full);text-transform:none;align-items:center;gap:5px;padding:3px 6px 3px 10px;font-size:12px;font-weight:500;display:inline-flex}.lead-card-tag-chip button{cursor:pointer;width:16px;height:16px;color:var(--color-primary-text);background:#2563eb1f;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;font-size:12px;line-height:1;display:inline-flex}.lead-card-checkbox input{width:auto}.lead-card-lost-reason{background:var(--color-danger-soft);border-radius:var(--radius-md);border:1px solid #fecaca;padding:10px 12px;font-size:13px}.lead-card-lost-reason p{color:var(--color-danger-text);margin:4px 0 0}.lead-detail-badge{border-radius:var(--radius-sm);margin-bottom:10px;padding:4px 10px;font-size:12px;font-weight:600;display:inline-block}.lead-detail-reengaged{background:var(--color-info-soft);color:#075985}.lead-detail-duplicate-warning{background:var(--color-warning-soft);border-radius:var(--radius-md);color:var(--color-warning-text);border:1px solid #fde68a;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:12px;padding:10px 12px;font-size:13px;display:flex}.lead-detail-account-unavailable{background:var(--color-danger-soft);border-radius:var(--radius-md);color:var(--color-danger-text);border:1px solid #fecaca;margin-bottom:12px;padding:10px 12px;font-size:13px;font-weight:600}.lead-card-readonly-hint{color:var(--color-text-muted);text-transform:none;font-size:11px;font-weight:400}.saved-hint{color:var(--color-success-text);margin:0;font-size:12px;font-weight:500}@media (width<=860px){.lead-card{border-left:none;width:100%}.lead-card-back-btn{display:inline-flex}.inbox-layout{position:relative;overflow:hidden}.inbox-layout[data-mobile-pane=list] main,.inbox-layout[data-mobile-pane=list] .lead-card,.inbox-layout[data-mobile-pane=chat] .sidebar,.inbox-layout[data-mobile-pane=chat] .lead-card,.inbox-layout[data-mobile-pane=lead] .sidebar,.inbox-layout[data-mobile-pane=lead] main{display:none}.sidebar,main,.lead-card{width:100%}}.permissions-page-wrapper{flex-direction:column;display:flex}.permissions-page{min-height:calc(100vh - var(--nav-height));background:var(--color-surface);display:flex}.distribution-editor{border-top:1px solid var(--color-border);max-width:520px;padding:28px}.distribution-hint{color:var(--color-text-muted);margin:0 0 16px;font-size:12px;line-height:1.5}.distribution-list{margin:0 0 16px;padding:0;list-style:none}.distribution-list li{align-items:center;gap:10px;margin-bottom:8px;display:flex}.distribution-name{flex:1;font-size:14px}.distribution-list input[type=number]{width:74px;padding:7px 8px}.distribution-percent{text-align:right;width:50px;color:var(--color-primary-text);font-size:13px;font-weight:600}.permissions-managers{border-right:1px solid var(--color-border);background:var(--color-surface-alt);flex-shrink:0;width:260px;padding:20px;overflow-y:auto}.permissions-managers ul{margin:0;padding:0;list-style:none}.permissions-managers li{border-radius:var(--radius-md);cursor:pointer;align-items:center;gap:6px;padding:9px 12px;font-size:14px;transition:background-color .1s;display:flex}.permissions-managers li:hover{background:var(--color-surface)}.permissions-managers li.active{background:var(--color-primary-soft);color:var(--color-primary-text);font-weight:500}.permissions-detail{flex:1;max-width:440px;padding:28px}.permission-row{cursor:pointer;align-items:center;gap:8px;margin-bottom:12px;font-size:14px;display:flex}@media (width<=860px){.permissions-page{flex-direction:column;min-height:0}.permissions-managers{border-right:none;border-bottom:1px solid var(--color-border);width:100%;max-height:220px}.permissions-detail,.distribution-editor{max-width:100%;padding:18px}}.kanban-page{height:calc(100vh - var(--nav-height));background:var(--color-bg);flex-direction:column;display:flex}.kanban-toolbar{border-bottom:1px solid var(--color-border);background:var(--color-surface);flex-wrap:wrap;align-items:center;gap:10px;padding:12px 16px;display:flex}.kanban-toolbar select{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);padding:7px 10px;font-size:13px}.kanban-readonly-hint{color:var(--color-text-muted);background:var(--color-surface-alt);border-radius:var(--radius-full);padding:4px 10px;font-size:12px}.kanban-stuck-filter{color:var(--color-text-secondary);align-items:center;gap:6px;margin-left:auto;font-size:13px;display:flex}.kanban-board{flex:1;gap:14px;padding:16px;display:flex;overflow-x:auto}.kanban-column{background:var(--color-surface-alt);border-radius:var(--radius-lg);border:1px solid var(--color-border);flex-direction:column;flex-shrink:0;width:270px;max-height:100%;display:flex}.kanban-column.over{background:var(--color-primary-soft);border-color:var(--color-primary)}.kanban-column-header{border-bottom:1px solid var(--color-border);align-items:center;gap:6px;padding:12px 14px;font-size:13px;font-weight:600;display:flex}.kanban-stage-title{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.kanban-stage-title.editable{cursor:text;border-radius:var(--radius-sm)}.kanban-stage-system-badge{color:var(--color-text-muted);font-size:11px;font-weight:400}.kanban-stage-title.editable:hover{background:var(--color-surface)}.kanban-stage-rename{border:1px solid var(--color-primary);border-radius:var(--radius-sm);flex:1;min-width:0;padding:3px 6px;font-family:inherit;font-size:13px;font-weight:600}.kanban-count{color:var(--color-text-muted);background:var(--color-surface);border-radius:var(--radius-full);flex-shrink:0;padding:1px 7px;font-size:12px;font-weight:400}.kanban-stage-delete{width:22px;height:22px;color:var(--color-text-muted);cursor:pointer;border-radius:var(--radius-sm);background:0 0;border:none;flex-shrink:0;font-size:16px;line-height:1}.kanban-stage-delete:hover{background:var(--color-danger-soft);color:var(--color-danger-text)}.kanban-add-stage{background:var(--color-surface-alt);border:1px dashed var(--color-border-strong);border-radius:var(--radius-lg);flex-direction:column;flex-shrink:0;gap:8px;width:220px;height:fit-content;padding:12px;display:flex}.kanban-add-stage input{padding:8px 10px;font-size:13px}.kanban-add-stage button{padding:8px;font-size:13px}.kanban-stage-limit{border-bottom:1px solid var(--color-border);padding:6px 14px 8px;font-size:11px}.kanban-stage-limit-label{color:var(--color-text-muted);cursor:pointer}.kanban-stage-limit-label:hover{color:var(--color-primary-text)}.kanban-stage-limit-input{border:1px solid var(--color-primary);border-radius:var(--radius-sm);width:70px;padding:3px 5px;font-size:11px}.kanban-column-body{flex-direction:column;flex:1;gap:8px;padding:10px;display:flex;overflow-y:auto}.kanban-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);cursor:grab;touch-action:none;box-shadow:var(--shadow-sm);padding:11px 12px;font-size:13px;transition:box-shadow .15s,border-color .15s}.kanban-card:hover{box-shadow:var(--shadow-md);border-color:var(--color-border-strong)}.kanban-card.readonly{cursor:default}.kanban-card.stuck{border:1.5px solid var(--color-danger)}.kanban-card-name{font-weight:600}.kanban-card-stage-age{color:var(--color-text-muted);margin-top:4px;font-size:11px}.kanban-card-task.overdue{color:var(--color-danger-text);font-weight:600}@media (width<=860px){.kanban-toolbar{gap:8px;padding:10px 12px}.kanban-board{gap:10px;padding:12px}.kanban-column,.kanban-add-stage{width:240px}}.lead-detail-overlay{z-index:20;background:#0f172a47;position:fixed;inset:0}.lead-detail-panel{background:var(--color-surface);width:380px;max-width:92vw;box-shadow:var(--shadow-lg);z-index:21;flex-direction:column;padding:24px;display:flex;position:fixed;top:0;bottom:0;right:0;overflow-y:auto}.lead-detail-close{background:var(--color-surface-alt);cursor:pointer;width:32px;height:32px;color:var(--color-text-secondary);border:none;border-radius:50%;font-size:18px;line-height:1;position:absolute;top:16px;right:16px}.lead-detail-close:hover{background:var(--color-border)}.lead-detail-panel h2{margin:0 0 16px;padding-right:36px;font-size:17px}.lead-detail-info{margin:0 0 20px}.lead-detail-info dt{text-transform:uppercase;letter-spacing:.02em;color:var(--color-text-muted);margin-top:14px;font-size:11px}.lead-detail-info dt:first-child{margin-top:0}.lead-detail-info dd{margin:3px 0 0;font-size:14px}.lead-detail-tasks h3{text-transform:uppercase;letter-spacing:.02em;color:var(--color-text-muted);margin:16px 0 8px;font-size:13px}.voice-panel{align-items:center;gap:8px;padding:8px 16px 12px;display:flex}.voice-recording{color:var(--color-text-secondary);align-items:center;gap:8px;font-size:13px;display:flex}.voice-recording button{border-radius:var(--radius-md);background:var(--color-danger);color:#fff;cursor:pointer;border:none;padding:7px 14px}.recording-dot{background:var(--color-danger);border-radius:50%;width:8px;height:8px;animation:1s infinite pulse;display:inline-block}@keyframes pulse{0%,to{opacity:1}50%{opacity:.3}}.voice-preview audio,.voice-preview video{height:34px}.voice-error{color:var(--color-danger);font-size:12px}.chat-toolbar{flex-wrap:wrap;align-items:flex-start;gap:6px;padding:0 20px 10px;display:flex}.chat-toolbar .voice-panel{gap:6px;padding:0}.chat-toolbar-btn{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);width:56px;height:46px;color:var(--color-text-secondary);cursor:pointer;flex-direction:column;flex-shrink:0;justify-content:center;align-items:center;gap:2px;padding:4px 2px;font-size:10px;line-height:1.1;transition:background-color .15s,border-color .15s,color .15s;display:flex}.chat-toolbar-btn:hover{background:var(--color-surface-alt);border-color:var(--color-border-strong);color:var(--color-text)}.chat-toolbar-btn-icon{font-size:17px;line-height:1}.chat-toolbar-divider{background:var(--color-border);align-self:stretch;width:1px;margin:2px}.template-picker{position:relative}.template-picker-list{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);width:280px;max-height:260px;box-shadow:var(--shadow-lg);z-index:20;padding:8px;position:absolute;bottom:52px;left:0;overflow-y:auto}.template-picker-item{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:8px;padding:7px 5px;font-size:13px;display:flex}.template-picker-item button{flex-shrink:0;padding:5px 10px;font-size:12px}.templates-page{height:calc(100vh - var(--nav-height));background:var(--color-surface);flex-direction:column;display:flex;overflow-y:auto}.templates-page .voice-templates-page,.templates-page .text-templates-page{border-bottom:1px solid var(--color-border);height:auto;overflow-y:visible}.voice-templates-page,.text-templates-page{height:calc(100vh - var(--nav-height));flex-wrap:wrap;gap:32px;padding:28px;display:flex;overflow-y:auto}.text-template-folder{color:var(--color-text-muted);margin:12px 0 4px;font-size:12px}.text-template-preview{color:var(--color-text-secondary);white-space:pre-wrap;flex-basis:100%;margin:0;font-size:12px}.voice-templates-form,.text-templates-form{flex-direction:column;flex-shrink:0;gap:12px;width:280px;display:flex}.voice-templates-form label,.text-templates-form label{color:var(--color-text-secondary);flex-direction:column;gap:4px;font-size:13px;font-weight:500;display:flex}.voice-templates-shared,.text-templates-shared{align-items:center;flex-direction:row!important}.voice-templates-list,.text-templates-list{flex:1;min-width:260px}.voice-templates-list ul,.text-templates-list ul{margin:0;padding:0;list-style:none}.voice-templates-list li,.text-templates-list li{border-bottom:1px solid var(--color-border);flex-wrap:wrap;align-items:center;gap:10px;padding:12px 0;display:flex}.voice-templates-title,.text-templates-title{min-width:140px;font-size:14px;font-weight:500}@media (width<=860px){.voice-templates-page,.text-templates-page{gap:20px;padding:16px}.voice-templates-form,.text-templates-form{width:100%}}.employees-page{height:calc(100vh - var(--nav-height));background:var(--color-surface);padding:28px;overflow-y:auto}.employees-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:18px;display:flex}.employees-toolbar h2{margin:0;font-size:17px}.employees-add-form{border:1px solid var(--color-border);border-radius:var(--radius-lg);background:var(--color-surface-alt);flex-direction:column;gap:12px;max-width:440px;margin-bottom:22px;padding:18px;display:flex}.employees-add-form label{color:var(--color-text-secondary);flex-direction:column;gap:4px;font-size:13px;font-weight:500;display:flex}.employees-table-wrap{border:1px solid var(--color-border);border-radius:var(--radius-md);overflow-x:auto}.employees-table{border-collapse:collapse;width:100%;font-size:13px}.employees-table th,.employees-table td{text-align:left;border-bottom:1px solid var(--color-border);white-space:nowrap;padding:10px 12px}.employees-table th{background:var(--color-surface-alt);color:var(--color-text-secondary);text-transform:uppercase;font-size:11px;font-weight:600}.employee-inactive{opacity:.55}.employees-actions{gap:6px;display:flex}.employees-actions button{padding:5px 10px;font-size:12px}@media (width<=860px){.employees-page{padding:16px}.employees-add-form{max-width:100%}}.modal-overlay{z-index:60;background:#0f172a66;justify-content:center;align-items:center;padding:16px;display:flex;position:fixed;inset:0}.modal-box{background:var(--color-surface);border-radius:var(--radius-lg);width:440px;max-width:100%;max-height:86vh;box-shadow:var(--shadow-lg);padding:24px;overflow-y:auto}.modal-box h2{margin:0 0 10px;font-size:17px}.modal-box select,.modal-box input,.modal-box textarea{box-sizing:border-box;width:100%;margin-top:8px}.modal-box label{color:var(--color-text-secondary);margin-top:14px;font-size:13px;font-weight:500;display:block}.modal-error{color:var(--color-danger-text);margin:8px 0 0;font-size:13px}.modal-actions{justify-content:flex-end;gap:8px;margin-top:18px;display:flex}.modal-actions button:last-child{background:var(--color-primary);color:#fff;border-color:var(--color-primary)}.modal-actions button:last-child:hover{background:var(--color-primary-hover)}.generated-password{letter-spacing:1px;background:var(--color-surface-alt);border-radius:var(--radius-md);text-align:center;margin:12px 0;padding:14px;font-size:20px;font-weight:600;display:block}.sessions-list{margin:0;padding:0;list-style:none}.sessions-list li{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:12px;padding:10px 0;font-size:13px;display:flex}.sessions-list button{flex-shrink:0}.lead-detail-history-toggle,.lead-card-history-toggle{text-align:center;width:100%;margin-top:10px}.lead-history-list{max-height:260px;margin:10px 0 0;padding:0;list-style:none;overflow-y:auto}.lead-history-list li{border-bottom:1px solid var(--color-border);padding:8px 0;font-size:12px}.lead-history-meta{color:var(--color-text-muted);margin-bottom:2px}.lead-history-summary{word-break:break-word}.audit-change{word-break:break-word;max-width:320px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px}.lead-custom-fields{border-top:1px solid var(--color-border);flex-direction:column;gap:8px;padding-top:14px;display:flex}.lead-custom-fields h3{text-transform:uppercase;letter-spacing:.02em;color:var(--color-text-muted);margin:0;font-size:12px}.custom-field-group h4{color:var(--color-text-muted);margin:8px 0 4px;font-size:12px}.custom-field-row{flex-direction:column;gap:4px;margin-bottom:8px;font-size:13px;display:flex}.custom-field-multiselect{flex-direction:column;gap:2px;display:flex}.my-tasks-page{height:calc(100vh - var(--nav-height));max-width:760px;margin:0 auto;padding:28px 20px;overflow-y:auto}.my-tasks-tabs{flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:18px;display:flex}.my-tasks-tabs button{border:1px solid var(--color-border);border-radius:var(--radius-full);background:var(--color-surface);color:var(--color-text-secondary);cursor:pointer;padding:7px 14px;font-size:13px;font-weight:500;transition:all .15s}.my-tasks-tabs button:hover{border-color:var(--color-border-strong)}.my-tasks-tabs button.active{border-color:var(--color-primary)}.my-tasks-manager-counts{margin-bottom:22px}.my-tasks-list{margin:0;padding:0;list-style:none}.my-tasks-list li{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);box-shadow:var(--shadow-sm);margin-bottom:10px;padding:14px}.my-tasks-list li.overdue{background:var(--color-danger-soft);border-color:#fca5a5}.my-tasks-row{flex-wrap:wrap;align-items:baseline;gap:10px 12px;font-size:14px;display:flex}.my-tasks-type{font-weight:600}.my-tasks-due{color:var(--color-text-secondary)}.my-tasks-assignee{color:var(--color-text-muted);margin-left:auto;font-size:12px}.my-tasks-comment{color:var(--color-text-secondary);margin:6px 0 0;font-size:13px}.my-tasks-lead-row{flex-wrap:wrap;align-items:baseline;gap:10px 14px;margin-top:6px;font-size:13px;display:flex}.my-tasks-lead-name{font-weight:600}.my-tasks-lead-link{color:var(--color-primary-text);font-weight:500;text-decoration:none}.my-tasks-lead-link:hover{text-decoration:underline}.my-tasks-result{color:var(--color-success-text);margin:6px 0 0;font-size:13px}.my-tasks-complete-form{margin-top:10px}.my-tasks-complete-form textarea{box-sizing:border-box;width:100%}@media (width<=860px){.my-tasks-page{padding:16px}.my-tasks-assignee{margin-left:0}}.notification-center{margin-left:4px;position:relative}.notification-bell{cursor:pointer;border-radius:var(--radius-md);color:var(--color-text-secondary);background:0 0;border:none;padding:7px 10px;font-size:17px;position:relative}.notification-bell:hover{background:var(--color-surface-alt)}.notification-bell .nav-waiting-badge{position:absolute;top:2px;right:2px}.notification-toast{z-index:70;background:var(--color-surface);border:1px solid var(--color-border);border-left:4px solid var(--color-primary);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);cursor:pointer;width:320px;max-width:calc(100vw - 32px);padding:14px 16px;position:fixed;top:16px;left:auto;right:16px}.notification-toast strong{margin-bottom:4px;font-size:14px;display:block}.notification-toast p{color:var(--color-text-secondary);margin:0;font-size:13px}.notification-dropdown{z-index:40;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-lg);width:360px;max-width:calc(100vw - 24px);max-height:440px;margin-top:6px;position:absolute;top:100%;right:0;overflow-y:auto}.notification-dropdown-header{border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;gap:8px;padding:12px 14px;font-size:13px;font-weight:600;display:flex}.notification-dropdown-header button{padding:5px 9px;font-weight:400}.notification-list{margin:0;padding:0;list-style:none}.notification-list li{border-bottom:1px solid var(--color-border);cursor:pointer;padding:11px 14px}.notification-list li.unread{background:var(--color-primary-soft)}.notification-list li.read{opacity:.65}.notification-item-title{font-size:13px;font-weight:600}.notification-item-body{color:var(--color-text-secondary);white-space:pre-wrap;margin-top:2px;font-size:12px}.notification-item-time{color:var(--color-text-muted);margin-top:4px;font-size:11px}.notification-setting-row{color:var(--color-text);align-items:center;gap:8px;margin-top:12px;font-size:13px;display:flex}.notification-setting-row input[type=checkbox]{width:auto;margin-top:0}.notification-settings-list{margin:4px 0 0;padding:0;list-style:none}.notification-mandatory-hint{color:var(--color-text-muted);font-size:12px}.notification-telegram-status{color:var(--color-text-secondary);word-break:break-all;margin-top:8px;font-size:13px}@media (width<=480px){.notification-dropdown{top:var(--nav-height);width:auto;position:fixed;left:8px;right:8px}}.status-toggle{margin-left:4px;position:relative}.status-toggle-button{background:var(--color-surface-alt);border:1px solid var(--color-border);border-radius:var(--radius-full);cursor:pointer;color:var(--color-text-secondary);align-items:center;gap:6px;padding:6px 12px;font-size:13px;display:flex}.status-toggle-button:hover{border-color:var(--color-border-strong)}.status-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px;display:inline-block}.status-dot-online{background:var(--color-success)}.status-dot-break{background:var(--color-warning)}.status-dot-offline{background:#9ca3af}.status-toggle-dropdown{z-index:40;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);width:170px;margin:6px 0 0;padding:4px 0;list-style:none;position:absolute;top:100%;right:0}.status-toggle-dropdown li{cursor:pointer;align-items:center;gap:8px;padding:8px 12px;font-size:13px;display:flex}.status-toggle-dropdown li:hover{background:var(--color-surface-alt)}.schedule-grid{grid-template-columns:100px 1fr 1fr auto;align-items:center;gap:8px 10px;margin:8px 0;display:grid}.schedule-grid input[type=time]{border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:6px}.vacation-list{margin:8px 0;padding:0;list-style:none}.vacation-list li{justify-content:space-between;align-items:center;padding:6px 0;font-size:13px;display:flex}@media (width<=480px){.schedule-grid{grid-template-columns:1fr}}@media (hover:none){.message-actions{opacity:1}}.emoji-picker{position:absolute;bottom:6px;right:6px}.emoji-picker-popup{z-index:50;background:var(--color-surface);border-radius:10px;position:fixed;box-shadow:0 6px 24px #0000002e}.emoji-picker-popup em-emoji-picker{max-height:55vh}.chat-input .emoji-picker .emoji-picker-toggle,.chat-input .emoji-picker .emoji-picker-toggle:hover:not(:disabled){color:inherit;box-shadow:none;background:0 0;border-radius:6px;padding:4px;font-size:20px;font-weight:400;line-height:1}.chat-input .emoji-picker .emoji-picker-toggle:hover:not(:disabled){background:var(--color-surface-alt)}.chat-text-input-wrapper textarea{padding-right:40px}.chat-subchats{border-bottom:1px solid var(--color-border);background:var(--color-surface);gap:6px;padding:6px 16px;display:flex;overflow-x:auto}.chat-subchats .chat-subchat{border:1px solid var(--color-border);background:var(--color-surface-alt);color:inherit;cursor:pointer;text-align:left;border-radius:12px;flex-direction:column;flex-shrink:0;align-items:flex-start;gap:2px;max-width:220px;padding:5px 12px;font-size:13px;display:inline-flex}.chat-subchats .chat-subchat-name{align-items:center;gap:6px;font-weight:600;display:inline-flex}.chat-subchats .chat-subchat-preview{opacity:.75;white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:12px;overflow:hidden}.chat-subchats .chat-subchat.active{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.badge.chat-count{background:var(--color-surface-alt)}.top-nav{box-shadow:none;gap:6px;padding:0 20px}.nav-brand{letter-spacing:-.01em;margin-right:16px;font-size:16px}.nav-brand-mark{background:linear-gradient(135deg,#6366f1 0%,#8b5cf6 100%);border-radius:9px;width:30px;height:30px;font-size:14px;box-shadow:0 4px 10px #6366f14d}.top-nav button,.nav-admin-toggle{color:var(--color-text-secondary);padding:8px 12px;font-size:14px}.top-nav button.active,.nav-admin-toggle.active{background:var(--color-primary-soft);color:var(--color-primary-text)}.nav-waiting-badge{background:#ef4444;margin-left:6px;padding:1px 7px;font-size:11px;line-height:16px}.notification-bell{border-radius:50%;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:flex}.notification-bell .nav-waiting-badge{text-align:center;border:2px solid var(--color-surface);min-width:18px;margin:0;padding:0 5px;top:3px;right:1px}@media (width>=861px){.nav-logout{display:none!important}}.status-toggle-button{background:0 0;border:1px solid #0000;gap:10px;padding:4px 10px 4px 4px}.status-toggle-button:hover{background:var(--color-surface-alt);border-color:var(--color-border)}.profile-avatar{width:34px;height:34px;color:var(--color-primary-text);background:linear-gradient(135deg,#e0e7ff,#ede9fe);border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;font-size:13px;font-weight:600;display:flex;position:relative}.profile-avatar-dot{border:2px solid var(--color-surface);width:11px;height:11px;position:absolute;bottom:-1px;right:-1px}.status-toggle-label{flex-direction:column;align-items:flex-start;line-height:1.2;display:flex}.profile-name{color:var(--color-text);text-overflow:ellipsis;white-space:nowrap;max-width:160px;font-size:13px;font-weight:600;overflow:hidden}.profile-status{color:var(--color-text-muted);font-size:12px}.status-toggle-backdrop{z-index:39;position:fixed;inset:0}.status-toggle-dropdown{border-radius:12px;width:220px;padding:6px}.status-toggle-dropdown li{border-radius:8px}.status-toggle-dropdown li.selected{background:var(--color-primary-soft);color:var(--color-primary-text);font-weight:500}.status-toggle-dropdown .profile-menu-head{cursor:default;border-bottom:1px solid var(--color-border);border-radius:0;flex-direction:column;align-items:flex-start;gap:2px;margin-bottom:4px;padding:8px 12px 10px}.status-toggle-dropdown .profile-menu-head:hover{background:0 0}.status-toggle-dropdown .profile-menu-head span{color:var(--color-text-muted);font-size:12px}.status-toggle-dropdown .profile-menu-logout{border-top:1px solid var(--color-border);color:var(--color-danger-text);border-radius:0 0 8px 8px;margin-top:4px}@media (width<=860px){.profile-name{display:none}}.conversation-list-row{border-bottom:1px solid #f0f1f6;padding:12px 16px}.conversation-list-row.unanswered{background:#fff7f7;box-shadow:inset 3px 0 #ef4444}.conversation-list-row.unanswered:hover{filter:none;background:#fff0f0}.conversation-list-row:has(.conversation-pin-icon){background:0 0}.conversation-list-row.unanswered:has(.conversation-pin-icon){background:#fff7f7}:is(.conversation-list-row.active,.conversation-list-row.active:has(.conversation-pin-icon)){background:var(--color-primary-soft);box-shadow:inset 3px 0 0 var(--color-primary)}.conversation-pin-icon{opacity:.8;font-size:12px}.seg{background:#eceef5;border-radius:10px;flex-wrap:wrap;gap:2px;padding:3px;display:inline-flex}.seg .seg-btn{color:var(--color-text-secondary);cursor:pointer;box-shadow:none;background:0 0;border:none;border-radius:8px;padding:6px 12px;font-size:13px;font-weight:500}.seg .seg-btn:hover{color:var(--color-text);background:#fff9}.seg .seg-btn.active{background:var(--color-surface);color:var(--color-text);box-shadow:0 1px 2px #0f172a14,0 1px 3px #0f172a0f}.analytics-page>section{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);padding:20px 22px}.analytics-page>section>h2{letter-spacing:-.01em;margin-top:0;font-size:17px}.analytics-page .analytics-table-wrap,.analytics-page .analytics-list{box-shadow:none}.analytics-table th{letter-spacing:.04em;color:var(--color-text-muted);background:var(--color-surface-alt);font-size:11px}.analytics-table td{font-variant-numeric:tabular-nums}.analytics-page{gap:20px;max-width:1440px}.dashboard{flex-direction:column;gap:16px;display:flex}.dashboard-head{flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px;display:flex}.dashboard-head h1{letter-spacing:-.02em;margin:0;font-size:26px}.dashboard-head p{color:var(--color-text-muted);margin:4px 0 0}.kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;display:grid}@media (width<=1280px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=640px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.kpi-card,.dashboard-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-card)}.kpi-card{min-width:0;padding:16px 18px}.kpi-label{color:var(--color-text-secondary);align-items:center;gap:8px;font-size:13px;font-weight:500;display:flex}.kpi-accent{border-radius:3px;flex-shrink:0;width:8px;height:8px}.kpi-value{letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;text-overflow:ellipsis;margin-top:10px;font-size:28px;font-weight:700;overflow:hidden}.kpi-foot{flex-wrap:wrap;align-items:center;gap:8px;min-height:20px;margin-top:6px;display:flex}.kpi-hint{color:var(--color-text-muted);font-size:12px}.kpi-delta{border-radius:var(--radius-full);padding:1px 7px;font-size:12px;font-weight:600}.kpi-delta.up{color:#047857;background:#ecfdf5}.kpi-delta.down{color:#b91c1c;background:#fef2f2}.kpi-delta.flat{color:var(--color-text-muted);background:var(--color-surface-alt)}.dashboard-card{padding:18px 20px}.dashboard-card-head{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:12px;display:flex}.dashboard-card-head h3{margin:0;font-size:15px}.dashboard-muted{color:var(--color-text-muted);font-size:12px}.dashboard-two{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;display:grid}@media (width<=1000px){.dashboard-two{grid-template-columns:minmax(0,1fr)}}.dashboard-skeleton{border-radius:var(--radius-md);background:linear-gradient(90deg,#f1f2f7 25%,#f7f8fc 50%,#f1f2f7 75%) 0 0/200% 100%;height:180px;animation:1.2s linear infinite dashboard-shimmer}@keyframes dashboard-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.trend-legend{color:var(--color-text-secondary);flex-wrap:wrap;align-items:center;gap:16px;min-height:18px;margin-bottom:8px;font-size:12px;display:flex}.trend-legend i{vertical-align:-1px;border-radius:3px;width:10px;height:10px;margin-right:6px;display:inline-block}.trend-hover{color:var(--color-text);margin-left:auto;font-weight:500}.trend-svg{width:100%;height:240px;display:block}.trend-grid{stroke:#eef0f5;stroke-width:1px;vector-effect:non-scaling-stroke}.trend-axis{fill:var(--color-text-muted);font-size:11px}.funnel{flex-direction:column;gap:14px;display:flex}.funnel-head{justify-content:space-between;align-items:baseline;margin-bottom:6px;display:flex}.funnel-label{font-weight:500}.funnel-value{font-variant-numeric:tabular-nums;font-weight:700}.funnel-step{color:var(--color-text-muted);margin-left:8px;font-size:12px;font-weight:500}.funnel-track{border-radius:var(--radius-full);background:#f1f2f7;height:10px;overflow:hidden}.funnel-bar{border-radius:var(--radius-full);height:100%;transition:width .4s}.mini-table{border-collapse:collapse;width:100%;font-size:13px}.mini-table th{text-align:left;letter-spacing:.04em;text-transform:uppercase;color:var(--color-text-muted);padding:0 8px 8px;font-size:11px;font-weight:600}.mini-table td{font-variant-numeric:tabular-nums;border-top:1px solid #f0f1f6;padding:10px 8px}.mini-table th:first-child,.mini-table td:first-child{padding-left:0}.mini-pill{border-radius:var(--radius-full);color:#047857;background:#ecfdf5;padding:1px 8px;font-size:12px;font-weight:600;display:inline-block}.analytics-page{margin:0 auto}.notification-bell .nav-waiting-badge{top:-2px;right:-6px}.chat-entry{flex-direction:column;display:flex}.chat-messages{background:#eef0f6;gap:8px;padding:20px 28px}.message{border-radius:16px;max-width:min(62%,560px);padding:9px 13px 7px;box-shadow:0 1px 1px #0f172a0f}.message.in{border-bottom-left-radius:5px}.message.out{background:#e3e6ff;border-bottom-right-radius:5px}.message-time{font-size:11px}.chat-day-separator span{background:#ffffffd9;border:none;font-weight:500;box-shadow:0 1px 1px #0f172a0d}.inbox-folders{background:var(--color-surface);gap:4px;width:80px;padding:10px 6px}.inbox-folder{gap:6px;padding:8px 2px 7px}.inbox-folder:hover{background:var(--color-surface-alt)}.inbox-folder-active{background:var(--color-primary-soft)}.folder-glyph{letter-spacing:.02em;border-radius:11px;justify-content:center;align-items:center;width:36px;height:36px;font-size:13px;font-weight:600;display:flex}.folder-glyph-all{color:#fff;background:linear-gradient(135deg,#6366f1,#8b5cf6)}.folder-glyph-new{color:#b45309;background:#fef3c7}.folder-glyph-manager{color:#4338ca;background:#e0e7ff}.folder-glyph-retention{color:#047857;background:#d1fae5}.inbox-folder-badge{border:2px solid var(--color-surface);background:#ef4444;line-height:14px;top:-5px;right:-9px}.inbox-folder-icon{font-size:0}.lead-card{background:#fafbfd;gap:12px;width:340px}.lead-card-profile{align-items:center;gap:14px;padding:4px 2px 6px;display:flex}.lead-card-profile-text{min-width:0}.lead-card-profile h2{letter-spacing:-.01em;text-overflow:ellipsis;white-space:nowrap;font-size:18px;overflow:hidden}.lead-card-profile span{color:var(--color-text-muted);margin-top:2px;font-size:13px;display:block}.lead-card-info{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;grid-template-columns:auto 1fr;align-items:baseline;gap:6px 12px;padding:12px 14px;display:grid}.lead-card-info dt,.lead-card-info dt:first-child{margin:0}.lead-card-info dd{text-align:right;font-variant-numeric:tabular-nums;margin:0;font-weight:500}.lead-card-group{background:var(--color-surface);border:1px solid var(--color-border);border-radius:12px;flex-direction:column;gap:12px;padding:14px;display:flex}.lead-card-group-title{color:var(--color-text);letter-spacing:0;margin:0;font-size:13px;font-weight:600}.lead-card label{color:var(--color-text-muted);letter-spacing:.03em;font-size:11px;font-weight:500}.lead-card label select,.lead-card label input,.lead-card label textarea{text-transform:none;letter-spacing:0;color:var(--color-text);padding:8px 10px;font-size:14px}.lead-card-readonly-hint{text-transform:none;letter-spacing:0;font-weight:400}.lead-card-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.lead-card .lead-card-actions .lead-card-secondary-btn{background:var(--color-surface);color:var(--color-primary-text);border:1px solid var(--color-primary-soft-strong)}.lead-card .lead-card-actions .lead-card-secondary-btn:hover:not(:disabled),.conversation-list-row.active:hover{background:var(--color-primary-soft)}.kanban-toolbar{gap:10px;padding:14px 20px}.kanban-board{gap:14px;padding:18px 20px}.kanban-column{background:#eef0f6;border:none;border-radius:14px;width:290px}.kanban-column.over{background:var(--color-primary-soft-strong);box-shadow:inset 0 0 0 2px var(--color-primary)}.kanban-column-header{border-bottom:none;padding:14px 14px 10px;font-size:14px}.kanban-stage-title{white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:8px;display:flex;overflow:hidden}.kanban-stage-dot{border-radius:50%;flex-shrink:0;width:9px;height:9px}.kanban-count{color:var(--color-text-secondary);border-radius:var(--radius-full);background:#ffffffe6;padding:1px 9px;font-size:12px;font-weight:600}.kanban-stage-settings{width:28px;height:28px;color:var(--color-text-muted);cursor:pointer;background:0 0;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.kanban-stage-settings:hover,.kanban-stage-settings.open{color:var(--color-text);background:#fffc}.kanban-stage-settings-panel{background:var(--color-surface);box-shadow:var(--shadow-sm);border-radius:10px;flex-direction:column;gap:8px;margin:0 10px 6px;padding:10px;display:flex}.kanban-stage-settings-panel .kanban-stage-limit{padding:0}.kanban-stage-delete-btn{color:var(--color-danger-text);cursor:pointer;background:0 0;border:none;align-self:flex-start;padding:2px 0;font-size:12px}.kanban-column-body{gap:8px;padding:4px 10px 12px}.kanban-column-empty{text-align:center;color:var(--color-text-muted);border:1.5px dashed #d8dbe6;border-radius:10px;padding:18px 0;font-size:12px}.kanban-card{border:1px solid #0000;border-radius:12px;padding:12px;box-shadow:0 1px 2px #0f172a0f}.kanban-card:hover{border-color:var(--color-primary-soft-strong);box-shadow:0 6px 16px #0f172a14}.kanban-card.stuck{border:1px solid #fca5a5;box-shadow:inset 3px 0 #ef4444,0 1px 2px #0f172a0f}.kanban-card-top{align-items:center;gap:10px;display:flex}.kanban-card-head{flex:1;min-width:0}.kanban-card-name{text-overflow:ellipsis;white-space:nowrap;font-size:14px;overflow:hidden}.kanban-card-manager{color:var(--color-text-muted);text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.kanban-card-waiting{background:#ef4444;border-radius:50%;flex-shrink:0;width:8px;height:8px;box-shadow:0 0 0 3px #fee2e2}.kanban-card-preview{color:var(--color-text-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;margin-top:8px;font-size:12.5px;display:-webkit-box;overflow:hidden}.kanban-card-meta{flex-wrap:wrap;align-items:center;gap:6px;margin-top:10px;display:flex}.kanban-card-stage-age{color:var(--color-text-muted);background:var(--color-surface-alt);border-radius:var(--radius-full);margin:0;padding:2px 8px;font-size:11px}.kanban-card-tag{color:var(--color-primary-text);background:var(--color-primary-soft);border-radius:var(--radius-full);padding:2px 8px;font-size:11px}.kanban-card-task{color:var(--color-primary-text);margin-top:8px;font-size:11.5px}.report-page{background:var(--color-bg);padding:28px 32px}.report-head h2{letter-spacing:-.02em;border:none;margin:0;padding:0;font-size:26px}.report-head p{color:var(--color-text-muted);margin:4px 0 0}.report-filters{margin:20px 0 16px}.report-filters-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.report-filters-row .seg{flex-wrap:nowrap}.report-compare{color:var(--color-text-secondary);align-items:center;gap:8px;margin-left:4px;font-size:13px;display:flex}.report-page .analytics-table-wrap{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);overflow-x:auto}.report-page h2:not(.report-head h2),.report-page h3{margin-top:28px;font-size:17px}@media (width<=860px){.status-toggle-label{display:none}.status-toggle-button{padding:2px}.report-page{padding:16px}}.source-intake{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-lg);box-shadow:var(--shadow-card);flex-direction:column;gap:16px;margin-top:16px;padding:16px;display:flex}.source-intake h3{color:var(--color-text);margin:0;font-size:15px;font-weight:600}.source-intake h4{color:var(--color-text);margin:0 0 6px;font-size:14px;font-weight:600}.source-intake-block{flex-direction:column;gap:8px;min-width:0;display:flex}.source-intake-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.source-intake-hint{color:var(--color-text-muted,var(--color-text));margin:0;font-size:13px}.source-intake-error{color:#c62828;margin:0;font-size:13px}.source-intake-url-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.source-intake-url-row input{flex:260px;min-width:0}.source-intake-map{flex-direction:column;gap:8px;display:flex}.source-intake-map-row{grid-template-columns:160px minmax(0,1fr);align-items:center;gap:8px;display:grid}.source-intake-map-label{color:var(--color-text);font-size:13px}.source-intake-map-row select{width:100%;min-width:0}.source-intake-actions{align-items:center;gap:8px;display:flex}.source-intake-recent{flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;display:flex}.source-intake-recent li{border:1px solid var(--color-border);border-radius:var(--radius-md,8px);flex-direction:column;gap:4px;min-width:0;padding:8px 10px;display:flex}.source-intake-recent-head{color:var(--color-text);justify-content:space-between;gap:8px;font-size:13px;display:flex}.source-intake-method{text-transform:uppercase;font-weight:600}.source-intake-recent summary{cursor:pointer;font-size:13px}.source-intake-recent pre{white-space:pre-wrap;word-break:break-all;background:var(--color-surface-alt);border-radius:var(--radius-md,8px);max-height:240px;margin:6px 0 0;padding:8px;font-size:12px;overflow:auto}@media (width<=860px){.source-intake{padding:12px}.source-intake-map-row{grid-template-columns:1fr;gap:4px}.source-intake-url-row button,.source-intake-actions button,.source-intake-head button{flex:auto}}.lead-forms-layout{height:calc(100vh - var(--nav-height));background:var(--color-surface);min-height:0;display:flex}.lead-forms-list{border-right:1px solid var(--color-border);flex-direction:column;flex-shrink:0;width:440px;min-height:0;display:flex}.lead-forms-chat{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.lead-forms-toolbar{border-bottom:1px solid var(--color-border);flex-direction:column;gap:10px;padding:12px 16px;display:flex}.lead-forms-toolbar h2{margin:0;font-size:18px}.lead-forms-filters,.lead-forms-bulk{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.lead-forms-bulk{justify-content:space-between;font-size:14px}.lead-forms-filters button.active{background:var(--color-primary-soft);color:var(--color-primary-text)}.lead-forms-items{flex-direction:column;flex:1;gap:10px;min-height:0;padding:12px;display:flex;overflow-y:auto}.lead-form-card{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);flex-direction:column;gap:8px;padding:12px;display:flex}.lead-form-card.selected{border-color:var(--color-primary);background:var(--color-primary-soft)}.lead-form-head{align-items:center;gap:10px;min-width:0;display:flex}.lead-form-main{flex:1;min-width:0}.lead-form-name{overflow-wrap:anywhere;font-weight:600}.lead-form-meta{color:var(--color-text-secondary);flex-wrap:wrap;gap:4px 10px;font-size:13px;display:flex}.lead-form-status{background:var(--color-surface-alt);color:var(--color-text-secondary);border-radius:999px;align-self:flex-start;padding:2px 8px;font-size:12px}.lead-form-status-found{background:var(--color-success-soft);color:var(--color-success-text)}.lead-form-status-not_found{background:var(--color-warning-soft);color:var(--color-warning-text)}.lead-form-status-error{background:var(--color-danger-soft);color:var(--color-danger-text)}.lead-form-resolve,.lead-form-actions{flex-wrap:wrap;gap:8px;display:flex}.lead-form-resolve input{flex:1;min-width:120px}.lead-form-answers{flex-direction:column;gap:4px;margin:0;font-size:13px;display:flex}.lead-form-answers dt{color:var(--color-text-muted)}.lead-form-answers dd{overflow-wrap:anywhere;margin:0}.lead-form-modal{width:calc(100vw - 32px);max-width:480px}.lead-form-hint{color:var(--color-text-secondary);font-size:13px}.lead-form-templates{flex-direction:column;gap:8px;max-height:40vh;margin:8px 0;display:flex;overflow-y:auto}.lead-form-templates label{align-items:flex-start;gap:8px;display:flex}.lead-form-templates label span{flex-direction:column;min-width:0;display:flex}.lead-form-templates small{color:var(--color-text-secondary);overflow-wrap:anywhere}.lead-form-progress{background:var(--color-surface-alt);border-radius:999px;height:10px;margin:12px 0 8px;overflow:hidden}.lead-form-progress-bar{background:var(--color-primary);height:100%;transition:width .3s}@media (width<=860px){.lead-forms-list{border-right:none;width:100%}.lead-forms-chat,.lead-forms-layout[data-chat-open=true] .lead-forms-list{display:none}.lead-forms-layout[data-chat-open=true] .lead-forms-chat{display:flex}}.my-calendar-page{box-sizing:border-box;flex-direction:column;gap:10px;max-width:100%;height:calc(100vh - 56px);min-height:0;padding:16px;display:flex;overflow-x:hidden}.cal-toolbar{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.cal-toolbar-group{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.cal-range{text-transform:capitalize;margin-left:6px;font-weight:600}.cal-mode-switch{border:1px solid var(--color-border-strong);border-radius:8px;display:inline-flex;overflow:hidden}.cal-mode-switch button{border:0;border-radius:0}.cal-mode-switch button.active{background:var(--color-primary);color:#fff}.cal-upcoming{background:var(--color-primary-soft);color:var(--color-primary-text);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}.cal-message{margin:0}.cal-info{color:var(--color-success-text)}.cal-legend{color:var(--color-text-secondary);flex-wrap:wrap;gap:12px;font-size:12px;display:flex}.cal-hint{color:var(--color-text-muted)}.cal-dot{border-radius:3px;width:10px;height:10px;margin-right:4px;display:inline-block}.cal-dot.free{background:#86efac}.cal-dot.call{background:#60a5fa}.cal-dot.needs{background:#fb923c}.cal-grid{--cal-row-h:30px;--cal-time-w:44px;border:1px solid var(--color-border);background:var(--color-surface);-webkit-user-select:none;user-select:none;border-radius:10px;flex:1;min-height:0;overflow:auto}.cal-head{grid-template-columns:var(--cal-time-w) repeat(var(--cal-cols), minmax(0, 1fr));z-index:5;background:var(--color-surface);border-bottom:1px solid var(--color-border-strong);display:grid;position:sticky;top:0}.cal-col-head{text-align:center;border-left:1px solid var(--color-border);min-width:0;padding:6px 4px;font-size:13px}.cal-col-head.today .cal-col-title{color:var(--color-primary-text);font-weight:700}.cal-col-title.clickable{cursor:pointer}.cal-col-sub{color:var(--color-text-muted);font-size:11px}.cal-day-free-btn{margin-top:4px;padding:2px 6px;font-size:11px}.cal-body{grid-template-columns:var(--cal-time-w) repeat(var(--cal-cols), minmax(0, 1fr));display:grid}.cal-times .cal-time{height:var(--cal-row-h);color:var(--color-text-muted);text-align:right;box-sizing:border-box;padding-right:6px;font-size:11px}.cal-col{border-left:1px solid var(--color-border);min-width:0;position:relative}.cal-col.today{background:var(--color-surface-alt)}.cal-cell{height:var(--cal-row-h);box-sizing:border-box;border-bottom:1px dashed var(--color-border);background:var(--color-bg);cursor:pointer;touch-action:pan-y}.cal-cell.hour{border-top:1px solid var(--color-border-strong)}.cal-cell.free{background:#bbf7d0}.cal-cell.drag-on{background:#86efac}.cal-cell.drag-off{background:var(--color-bg);outline:1px dashed var(--color-text-muted);outline-offset:-2px}.cal-cell.past{opacity:.45}.cal-cell.locked{cursor:default}.cal-now{background:var(--color-danger);z-index:3;pointer-events:none;height:2px;position:absolute;left:0;right:0}.cal-call{z-index:2;box-sizing:border-box;color:#fff;cursor:pointer;background:#3b82f6;border-radius:6px;padding:3px 22px 3px 6px;font-size:12px;line-height:1.25;position:absolute;left:2px;right:2px;overflow:visible}.cal-call.needs-outcome{background:#f97316}.cal-call.done{background:#94a3b8}.cal-call.menu-open{z-index:6}.cal-call-time{font-weight:600}.cal-call-outcome{background:#ffffff4d;border-radius:4px;margin-left:6px;padding:0 4px}.cal-call-who{align-items:center;gap:4px;min-width:0;margin-top:2px;display:flex}.cal-call-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.cal-avatar{object-fit:cover;border-radius:50%;flex-shrink:0}.cal-avatar-fallback{color:#fff;background:#ffffff59;justify-content:center;align-items:center;font-weight:600;display:inline-flex}.cal-call-menu-btn{width:22px;height:22px;color:inherit;background:0 0;border:0;padding:0;font-size:16px;line-height:1;position:absolute;top:0;right:0}.cal-call-menu{z-index:10;background:var(--color-surface);border:1px solid var(--color-border-strong);border-radius:8px;flex-direction:column;min-width:150px;display:flex;position:absolute;top:22px;right:0;overflow:hidden;box-shadow:0 6px 20px #0f172a2e}.cal-call-menu button{text-align:left;color:var(--color-text);background:0 0;border:0;border-radius:0;padding:8px 12px}.cal-call-menu button.danger{color:var(--color-danger-text)}.cal-call-menu button:hover{background:var(--color-surface-alt)}.cal-outcome-options{flex-direction:column;gap:6px;margin:8px 0;display:flex}.cal-outcome-option{border:1px solid var(--color-border-strong);cursor:pointer;border-radius:8px;flex-direction:row;align-items:center;gap:8px;padding:8px 10px;display:flex}.cal-outcome-option input{width:auto}.cal-outcome-option.active{border-color:var(--color-primary);background:var(--color-primary-soft)}.cal-windows{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.cal-cancel-who{align-items:center;gap:8px;display:flex}@media (width<=767px){.my-calendar-page{padding:8px}.cal-grid{--cal-time-w:38px;--cal-row-h:34px}.cal-toolbar-group button{padding:6px 8px}}.nav-admin-group-title{text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-muted);padding:8px 12px 4px;font-size:11px;font-weight:600}.nav-admin-dropdown .nav-admin-section+.nav-admin-section{border-top:1px solid var(--color-border);margin-top:4px}.nav-admin-section{flex-direction:column;gap:1px;display:flex}.nav-admin-section button{text-align:left;justify-content:space-between;align-items:center;gap:12px;width:100%;display:flex}.nav-admin-hint,.mobile-more-hint{color:var(--color-text-muted);font-size:12px;font-weight:400}@media (width<=768px){.nav-admin-mobile:before{content:none}}:root{--bottom-bar-h:60px;--mobile-nav-height:0px}@media (width<=767px){:root{--mobile-nav-height:calc(var(--bottom-bar-h) + env(safe-area-inset-bottom));--nav-height:calc(56px + env(safe-area-inset-top))}}.mobile-tabbar,.mobile-more,.nav-search-toggle,.nav-search-close{display:none}.nav-search{display:contents}@media (width<=767px){.app-shell{height:100dvh;padding-bottom:calc(var(--bottom-bar-h) + env(safe-area-inset-bottom));box-sizing:border-box;overflow-x:hidden}.app-shell>:not(.top-nav):not(.mobile-tabbar):not(.mobile-more){max-height:calc(100dvh - var(--nav-height) - var(--mobile-nav-height));min-width:0}.top-nav{height:var(--nav-height);padding:env(safe-area-inset-top) max(12px, env(safe-area-inset-right)) 0 max(12px, env(safe-area-inset-left));box-sizing:border-box;gap:4px}.nav-burger,.nav-links,.mobile-nav-overlay{display:none!important}.nav-brand{flex:1;min-width:0;margin-right:0}.nav-brand span:not(.nav-brand-mark){text-overflow:ellipsis;font-size:15px;display:inline;overflow:hidden}.nav-right{gap:2px;margin-left:0}.top-nav .nav-search-toggle{width:40px;height:40px;color:var(--color-text-secondary);background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;display:flex}.nav-search .global-search{display:none}.nav-search.open{padding:env(safe-area-inset-top) 12px 0;background:var(--color-surface);z-index:50;align-items:center;gap:6px;display:flex;position:absolute;inset:0}.nav-search.open .global-search{flex:1;width:auto;min-width:0;margin:0;display:block}.nav-search.open .global-search input{padding:10px 12px;font-size:16px}.nav-search.open .global-search-results{left:8px;right:8px;top:var(--nav-height);width:auto;max-width:none;max-height:60dvh;position:fixed}.top-nav .nav-search.open .nav-search-toggle{display:none}.top-nav .nav-search.open .nav-search-close{width:40px;height:40px;color:var(--color-text-secondary);background:0 0;border:none;justify-content:center;align-items:center;padding:0;font-size:18px;display:flex}.mobile-tabbar{z-index:60;height:calc(var(--bottom-bar-h) + env(safe-area-inset-bottom));padding:0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);box-sizing:border-box;background:var(--color-surface);border-top:1px solid var(--color-border);display:flex;position:fixed;bottom:0;left:0;right:0}.mobile-tab{min-width:0;color:var(--color-text-muted);font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:none;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;padding:4px 2px;display:flex}.mobile-tab.active{color:var(--color-primary-text)}.mobile-tab-icon{display:flex;position:relative}.mobile-tab-label{white-space:nowrap;text-overflow:ellipsis;max-width:100%;font-size:11px;font-weight:500;line-height:14px;overflow:hidden}.mobile-tab-badge,.mobile-more-badge{box-sizing:border-box;color:#fff;text-align:center;background:#ef4444;border-radius:8px;min-width:16px;height:16px;padding:0 4px;font-size:10px;font-weight:600;line-height:16px}.mobile-tab-badge{margin-left:-9px;position:absolute;top:-4px;left:100%}.mobile-more{inset:0 0 calc(var(--bottom-bar-h) + env(safe-area-inset-bottom)) 0;z-index:55;background:var(--color-bg);padding-top:env(safe-area-inset-top);flex-direction:column;display:flex;position:fixed}.mobile-more-head{background:var(--color-surface);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;padding:12px 16px;font-size:17px;font-weight:700;display:flex}.mobile-more-close{width:40px;height:40px;color:var(--color-text-secondary);background:0 0;border:none;font-size:18px}.mobile-more-list{flex-direction:column;flex:1;gap:6px;padding:8px 12px 16px;display:flex;overflow-y:auto}.mobile-more-title{text-transform:uppercase;letter-spacing:.03em;color:var(--color-text-muted);padding:14px 4px 2px;font-size:11px;font-weight:600}.mobile-more-item{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);min-height:48px;color:var(--color-text);font:inherit;text-align:left;cursor:pointer;justify-content:space-between;align-items:center;padding:0 16px;font-size:15px;display:flex}.mobile-more-item.active{background:var(--color-primary-soft);color:var(--color-primary-text);border-color:var(--color-primary-soft-strong)}.mobile-more-logout{color:var(--color-danger-text);margin-top:10px}}.sec-page,.acc-page{box-sizing:border-box;color:#000;background:#f4f5f7;flex-direction:column;flex:1;gap:16px;min-height:0;padding:20px 28px 32px;display:flex;overflow-y:auto}.sec-head,.acc-head{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.sec-head h1,.acc-head h1{margin:0 12px 0 0;font-size:24px}.sec-tabs{flex-wrap:wrap;gap:4px;display:flex}.sec-tab{height:34px;font:inherit;color:#3c4043;cursor:pointer;background:0 0;border:0;border-radius:17px;padding:0 14px;font-size:14px;font-weight:500}.sec-tab:hover{background:#e8eaed}.sec-tab.on{color:#fff;background:#000}.sec-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.sec-filters select{height:34px;font:inherit;color:#202124;background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:0 10px;font-size:13px}.sec-check{color:#3c4043;cursor:pointer;align-items:center;gap:6px;margin-left:8px;font-size:13px;display:flex}.sec-card{background:#fff;border-radius:16px;padding:4px 8px}.sec-scroll{overflow-x:auto}.sec-grid{min-width:760px;display:grid}.sec-grid-actions{grid-template-columns:150px 210px minmax(180px,1fr) minmax(220px,1.2fr)}.sec-grid-logins{grid-template-columns:150px minmax(180px,1.2fr) 100px minmax(140px,1fr) 130px minmax(120px,1fr)}.sec-row{display:contents}.sec-th{color:#707579;text-align:left;border-bottom:1px solid #eee;padding:10px 12px;font-size:12px;font-weight:600}.sec-td{box-sizing:border-box;border-bottom:1px solid #f3f3f3;flex-wrap:wrap;align-items:center;gap:8px;min-height:52px;padding:10px 12px;font-size:14px;display:flex}.sec-row.fail .sec-td{background:#fef7f6}.sec-when{color:#707579;font-size:13px}.sec-sub{color:#707579;font-size:12px}.sec-sub b{color:#000;font-weight:600}.sec-details{gap:4px 10px}.sec-lead{color:#1a56b0;text-decoration:none}.sec-lead:hover{text-decoration:underline}.sec-lead-plain{color:#3c4043}.sec-code{color:#9aa0a6;font-family:ui-monospace,monospace;font-size:12px}.sec-av{color:#5b5bd6;background:#e8eaf6;border-radius:50%;flex:none;justify-content:center;align-items:center;width:26px;height:26px;font-size:11px;font-weight:700;display:inline-flex}.sec-chip,.acc-chip{color:#3c4043;white-space:nowrap;background:#f1f3f4;border-radius:12px;align-items:center;height:24px;padding:0 10px;font-size:12px;font-weight:500;display:inline-flex}.sec-chip.red,.acc-chip.red{color:#c5221f;background:#fce8e6}.sec-chip.green,.acc-chip.green{color:#137333;background:#e6f4ea}.acc-chip.yellow{color:#b06000;background:#fef7e0}.sec-empty{color:#707579;margin:0;padding:20px 12px;font-size:14px}.sec-export{max-width:720px;padding:20px 24px}.sec-export h2{margin:0 0 8px;font-size:16px}.sec-note{color:#707579;margin:0 0 14px;font-size:13px;line-height:1.5}.sec-export-actions{flex-wrap:wrap;align-items:center;gap:14px;display:flex}.sec-error{color:#c5221f;margin:10px 0 0;font-size:13px}.sec-btn,.acc-btn{color:#fff;height:36px;font:inherit;cursor:pointer;background:#5b5bd6;border:0;border-radius:10px;padding:0 16px;font-size:14px;font-weight:600}.sec-btn:hover,.acc-btn:hover{background:#4b4bc4}.sec-btn:disabled,.acc-btn:disabled{opacity:.6;cursor:default}.acc-btn2{height:34px;font:inherit;color:#202124;cursor:pointer;background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:0 14px;font-size:13px}.acc-btn2:disabled{opacity:.6;cursor:default}.acc-head .acc-spacer{flex:1}.acc-chips{flex-wrap:wrap;gap:8px;display:flex}.acc-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;display:grid}.acc-card{background:#fff;border-radius:16px;flex-direction:column;gap:10px;padding:16px 20px;display:flex;position:relative}.acc-card.bad{outline:2px solid #fce8e6}.acc-top{align-items:center;gap:10px;display:flex}.acc-av{color:#5b5bd6;background:#e8eaf6;border-radius:50%;flex:none;justify-content:center;align-items:center;width:34px;height:34px;font-size:13px;font-weight:700;display:flex}.acc-card.bad .acc-av{color:#c5221f;background:#fce8e6}.acc-name{flex-direction:column;flex:1;min-width:0;font-weight:600;display:flex}.acc-name span:first-child{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.acc-name .none{color:#707579;font-weight:500}.acc-sub{color:#707579;font-size:12px;font-weight:400}.acc-kebab{color:#5f6368;cursor:pointer;background:0 0;border:0;border-radius:8px;width:32px;height:32px;font-size:18px}.acc-kebab:hover{background:#f1f3f4}.acc-menu{z-index:5;background:#fff;border-radius:12px;width:210px;padding:6px;position:absolute;top:48px;right:14px;box-shadow:0 10px 32px #00000029}.acc-menu button{width:100%;height:36px;font:inherit;cursor:pointer;text-align:left;background:0 0;border:0;border-radius:8px;align-items:center;padding:0 12px;font-size:14px;display:flex}.acc-menu button:hover{background:#f1f3f4}.acc-menu .red{color:#c5221f}.acc-stats{background:#f8f9fa;border-radius:12px;grid-template-columns:1fr 1fr 1fr;gap:8px;padding:10px;display:grid}.acc-stats b{text-overflow:ellipsis;white-space:nowrap;font-weight:700;display:block;overflow:hidden}.acc-text{color:#707579;font-size:12px;line-height:1.4}.acc-foot{color:#707579;font-size:12px}.acc-field{box-sizing:border-box;width:100%;height:36px;font:inherit;border:1px solid #d4d7e2;border-radius:8px;padding:0 10px}.acc-empty{color:#707579}@media (width<=1100px){.acc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){.sec-page,.acc-page{padding:14px 12px 24px}.sec-tabs{flex-wrap:nowrap;width:100%;overflow-x:auto}.sec-tab{flex:none}.acc-grid{grid-template-columns:1fr}.sec-filters{grid-template-columns:1fr 1fr;display:grid}.sec-filters select{width:100%;min-width:0}.sec-filters .sec-select-action{order:3;grid-column:1/-1}.sec-filters .sec-check{order:4;grid-column:1/-1;margin-left:0}.sec-card{background:0 0;padding:0}.sec-scroll{overflow:visible}.sec-grid{flex-direction:column;gap:8px;min-width:0;display:flex}.sec-th{display:none}.sec-row{background:#fff;border-radius:14px;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:12px 14px;display:flex}.sec-row.fail{background:#fef7f6}.sec-td,.sec-row.fail .sec-td{background:0 0;border:0;min-height:0;padding:0}.sec-actions-row .sec-who{flex:1;order:1;min-width:0;font-weight:600}.sec-actions-row .sec-when{order:2}.sec-actions-row .sec-what{flex-basis:100%;order:3;font-weight:600}.sec-actions-row .sec-details{flex-basis:100%;order:4}.sec-logins-row .sec-when{flex:1;order:1}.sec-logins-row .sec-res{order:2}.sec-logins-row .sec-mail{word-break:break-all;flex-basis:100%;order:3;font-weight:600}.sec-logins-row .sec-sub{order:4}}.acc-deleted{background:#fff;border-radius:16px;margin-top:8px;padding:12px 20px}.acc-deleted h2{margin:0;font-size:15px}.acc-deleted-toggle{cursor:pointer;font:inherit;color:#3c4043;background:0 0;border:0;padding:0;font-weight:600}.acc-import{color:#3c4043;background:#f8f9fa;border-radius:12px;padding:8px 10px;font-size:12px;line-height:1.4}.acc-import.err{color:#c5221f;background:#fce8e6}.acc-import-bar{background:#e0e0e0;border-radius:3px;height:6px;margin-top:6px;overflow:hidden}.acc-import-bar span{background:#5b5bd6;height:100%;display:block}.st-page{box-sizing:border-box;color:#000;background:#f4f5f7;flex-direction:column;gap:16px;min-height:100%;padding:20px 28px;display:flex}.st-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.st-title{margin:0 12px 0 0;font-size:24px;font-weight:700}.st-tabs{flex-wrap:wrap;gap:4px;display:flex}.st-tab{height:36px;font:inherit;color:#3c4043;cursor:pointer;background:0 0;border:0;border-radius:18px;padding:0 14px;font-size:14px;font-weight:500}.st-tab:hover{background:#e8eaed}.st-tab.on{color:#fff;background:#000}.st-stack{flex-direction:column;gap:16px;display:flex}.st-stack .distribution-editor,.st-fieldset .distribution-editor{box-sizing:border-box;background:#fff;border-radius:14px;max-width:640px;margin-bottom:16px;padding:20px 24px}.st-fieldset{border:0;min-width:0;margin:0;padding:0}.st-fieldset:disabled .distribution-editor{opacity:.7}.st-note{color:#707579;margin:0 0 12px;font-size:13px;line-height:1.4}.st-card{background:#fff;border-radius:14px;padding:20px 24px}.st-h{margin:0 0 6px;font-size:16px;font-weight:700}.st-table-wrap{overflow-x:auto}.st-table{border-collapse:collapse;width:100%;font-size:14px}.st-table th{text-align:center;color:#707579;border-bottom:1px solid #eee;padding:8px 10px;font-size:12px;font-weight:600}.st-table td{text-align:center;border-bottom:1px solid #f3f3f3;padding:10px}.st-table th:first-child,.st-table td:first-child{text-align:left;white-space:nowrap}.st-name{margin-right:8px;font-weight:600}.st-role{color:#707579;font-size:12px}.st-switch{accent-color:#3390ec;cursor:pointer;width:18px;height:18px}.st-switch:disabled{cursor:not-allowed;opacity:.55}@media (width<=768px){.st-page{padding:14px 12px}.st-tabs{flex-wrap:nowrap;width:100%;overflow-x:auto}.st-tab{flex:none}.st-card{padding:14px}}.report-embedded.employees-page{background:0 0;padding:0}.an-page{box-sizing:border-box;color:#000;background:#f4f5f7;flex-direction:column;gap:16px;min-height:100%;padding:20px 28px;display:flex}.an-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.an-title{margin:0 12px 0 0;font-size:24px;font-weight:700}.an-tab{height:36px;font:inherit;color:#3c4043;cursor:pointer;background:0 0;border:0;border-radius:18px;padding:0 14px;font-size:14px;font-weight:500}.an-tab.on{color:#fff;background:#000}.an-spacer{flex:1}.an-filters{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.an-chip{height:34px;font:inherit;color:#3c4043;cursor:pointer;background:#fff;border:1px solid #dadce0;border-radius:17px;padding:0 12px;font-size:13px;font-weight:500}.an-chip.on{color:#fff;background:#3390ec;border-color:#3390ec}.an-select{height:34px;font:inherit;color:#3c4043;background:#fff;border:1px solid #dadce0;border-radius:17px;max-width:220px;padding:0 10px;font-size:13px}.an-date{height:34px;font:inherit;background:#fff;border:1px solid #dadce0;border-radius:10px;padding:0 8px;font-size:13px}.an-kpis{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.an-kpi{background:#fff;border-radius:16px;flex-direction:column;gap:4px;min-width:0;padding:16px 18px;display:flex}.an-kpi-l{color:#707579;font-size:13px}.an-kpi-v{letter-spacing:-.01em;font-size:28px;font-weight:700}.an-kpi-d{color:#707579;font-size:12px;font-weight:600}.an-up{color:#1e7a34!important}.an-down{color:#b3261e!important}.an-grid2{grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:12px;display:grid}.an-box{background:#fff;border-radius:16px;flex-direction:column;gap:12px;min-width:0;padding:18px 20px;display:flex}.an-h{margin:0;font-size:16px;font-weight:700}.an-h-sm{margin:6px 0 0;font-size:14px;font-weight:700}.an-row-h{justify-content:space-between;align-items:center;gap:8px;display:flex}.an-link{color:#1a56b0;font:inherit;cursor:pointer;background:0 0;border:0;padding:0;font-size:13px;font-weight:600}.an-note{color:#707579;margin:0;font-size:13px}.an-empty{color:#9aa0a6;margin:0;font-size:14px}.an-error{color:#b3261e;margin:0;font-size:14px}.an-fl{grid-template-columns:170px 1fr 70px 70px;align-items:center;gap:12px;font-size:14px;display:grid}.an-fl.three{grid-template-columns:130px 1fr 60px}.an-fl.wide{grid-template-columns:200px 1fr 50px}.an-fl span{text-overflow:ellipsis;overflow:hidden}.an-bar{background:#3390ec;border-radius:5px;min-width:2px;height:10px}.an-r{text-align:right}.an-b{font-weight:600}.an-scroll{-webkit-overflow-scrolling:touch;overflow-x:auto}.an-table{border-collapse:collapse;width:100%;font-size:14px}.an-table th{text-align:right;color:#707579;white-space:nowrap;border-bottom:1px solid #eee;padding:8px 10px;font-size:12px;font-weight:600}.an-table td{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;border-bottom:1px solid #f3f3f3;padding:10px}.an-table th:first-child,.an-table td:first-child{text-align:left}.an-table td.an-wrap{white-space:normal}.an-form{flex-wrap:wrap;align-items:flex-end;gap:8px;display:flex}.an-field{color:#707579;flex-direction:column;gap:4px;font-size:12px;display:flex}.an-input{height:34px;font:inherit;background:#fff;border:1px solid #dadce0;border-radius:10px;padding:0 10px;font-size:14px}.an-btn{color:#fff;height:34px;font:inherit;cursor:pointer;background:#3390ec;border:0;border-radius:17px;padding:0 16px;font-size:14px;font-weight:600}.an-btn:disabled{opacity:.5;cursor:default}.an-del{color:#b3261e;cursor:pointer;font:inherit;background:0 0;border:0;font-size:13px}.an-coh-grid{align-items:center;gap:6px;display:grid}.an-coh-hd{color:#707579;text-align:center;font-size:12px;font-weight:600}.an-coh-cell{font-variant-numeric:tabular-nums;border:0;border-radius:8px;justify-content:center;align-items:center;height:40px;font-family:inherit;font-size:13px;font-weight:600;display:flex}button.an-coh-cell{cursor:pointer}.an-coh-cell.empty{background:#f7f8fa}.an-coh-label{font-size:14px;font-weight:500}.an-coh-n{color:#5f6368;text-align:center;font-size:14px}.an-leads{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.an-leads li{border-bottom:1px solid #f3f3f3;justify-content:space-between;gap:12px;padding:8px 0;font-size:14px;display:flex}.an-leads a{color:#1a56b0;font-weight:500;text-decoration:none}.an-money-kpis{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.an-chart{align-items:flex-end;gap:3px;height:180px;padding-top:8px;display:flex}.an-chart-col{background:#3390ec;border-radius:3px 3px 0 0;flex:1;min-width:4px}.an-chart-axis{color:#707579;justify-content:space-between;font-size:12px;display:flex}@media (width<=767px){.an-page{gap:12px;padding:12px}.an-title{font-size:20px}.an-tabs{gap:4px;width:100%;display:flex;overflow-x:auto}.an-tab{flex:none}.an-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.an-kpi-v{font-size:22px}.an-grid2,.an-money-kpis{grid-template-columns:1fr}.an-fl{grid-template-columns:110px 1fr 50px 50px;gap:8px;font-size:13px}.an-fl.three{grid-template-columns:90px 1fr 50px}.an-fl.wide{grid-template-columns:110px 1fr 40px}.an-filters{width:100%}.an-coh-scroll{overflow-x:auto}.an-coh-scroll .an-coh-grid{min-width:640px}}.tag-pill{white-space:nowrap;color:#5f6368;background:#eceff1;border-radius:12px;align-items:center;gap:5px;height:24px;padding:0 10px;font-size:12px;font-weight:600;display:inline-flex}.tag-pill[data-color=purple]{color:#7b1fa2;background:#f3e5f5}.tag-pill[data-color=blue]{color:#1a56b0;background:#e8f0fe}.tag-pill[data-color=orange]{color:#b45309;background:#fff4e5}.tag-pill[data-color=green]{color:#1e7a34;background:#e6f4ea}.tag-pill[data-color=red]{color:#c62828;background:#fdecea}.tag-pill[data-color=teal]{color:#00695c;background:#e0f2f1}.tag-pill[data-color=yellow]{color:#8a6d00;background:#fff8e1}.tag-pill[data-color=gray]{color:#5f6368;background:#eceff1}.kanban-card-tag.tag-pill{height:auto;padding:2px 8px;font-size:11px;font-weight:500}.tag-pill-x{cursor:pointer;opacity:.7;font-size:14px;line-height:1;color:inherit!important;background:0 0!important;border:0!important;width:auto!important;height:auto!important;padding:0!important}.tag-pill-x:hover{opacity:1}.tag-pill.add{cursor:pointer;font-family:inherit;color:#707579!important;background:0 0!important;border:1px dashed #c4c7c5!important}.tag-picker{display:inline-block;position:relative}.tag-picker-pop{z-index:30;background:#fff;border:1px solid #e4e6e8;border-radius:12px;flex-direction:column;gap:6px;width:220px;padding:8px;display:flex;position:absolute;top:30px;left:0;box-shadow:0 8px 24px #0000001f}.tag-picker-list{flex-direction:column;gap:2px;max-height:220px;display:flex;overflow-y:auto}.tag-picker-item{cursor:pointer;text-align:left;border-radius:8px;background:0 0!important;border:0!important;padding:5px 6px!important;display:flex!important}.tag-picker-item:hover{background:#f1f3f4!important}.tag-picker-empty{color:#707579;padding:4px 6px;font-size:13px}.tag-picker-link{color:#3390ec;padding:2px 6px;font-size:12px;text-decoration:none}.lead-tags-row{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.tags-page{flex-direction:column;gap:16px;padding:20px 24px;display:flex;overflow-y:auto}.tags-page-head{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.tags-page-head h2{margin:0;font-size:22px}.tags-grid{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start;gap:16px;display:grid}.tags-box{background:#fff;border-radius:16px;flex-direction:column;gap:10px;padding:18px 20px;display:flex}.tags-box h3{margin:0;font-size:17px}.tags-box-head{justify-content:space-between;align-items:center;gap:8px;display:flex}.tags-sub{color:#707579;font-size:13px}.tags-row{border-bottom:1px solid #f1f1f1;flex-wrap:wrap;align-items:center;gap:10px;min-height:44px;display:flex}.tags-row .spacer{flex:1}.tags-row input[type=text]{height:32px;font:inherit;border:1px solid #d0d4d8;border-radius:8px;min-width:120px;padding:0 8px}.tags-row button,.tags-btn{height:30px;font:inherit;cursor:pointer;background:#fff;border:1px solid #d0d4d8;border-radius:8px;padding:0 10px;font-size:13px}.tags-btn.primary{color:#fff;background:#3390ec;border-color:#3390ec;height:36px;padding:0 14px;font-weight:600}.tags-btn.danger{color:#c62828}.tags-btn:disabled,.tags-row button:disabled{opacity:.4;cursor:default}.tags-colors{flex-wrap:wrap;gap:6px;display:inline-flex}.tags-row button.tags-dot{cursor:pointer;border:2px solid #0000;border-radius:50%;width:20px;height:20px;padding:0}.tags-row button.tags-dot[aria-pressed=true]{border-color:#000}.tags-dot[data-color=purple]{background:#9c27b0}.tags-dot[data-color=blue]{background:#3390ec}.tags-dot[data-color=orange]{background:#f57c00}.tags-dot[data-color=green]{background:#43a047}.tags-dot[data-color=red]{background:#e53935}.tags-dot[data-color=teal]{background:#00897b}.tags-dot[data-color=yellow]{background:#f2c94c}.tags-dot[data-color=gray]{background:#9aa0a6}.tags-add{flex-wrap:wrap;align-items:center;gap:8px;padding-top:6px;display:flex}.tags-add input[type=text]{height:36px;font:inherit;border:1px solid #d0d4d8;border-radius:8px;flex:1;min-width:140px;padding:0 10px}.tags-error{color:#c62828;font-size:13px}.tags-opt{color:#3c4043;background:#f1f3f4;border-radius:13px;align-items:center;height:26px;padding:0 10px;font-size:13px;display:inline-flex}.tags-field{border-bottom:1px solid #f1f1f1;flex-direction:column;gap:6px;padding:10px 0;display:flex}.tags-field-opts{flex-wrap:wrap;gap:5px;display:flex}.lead-fields-grid{grid-template-columns:120px 1fr;align-items:center;gap:8px 10px;font-size:14px;display:grid}.lead-fields-grid .lead-field-label{color:#707579}.lead-fields-grid input:not([type=checkbox]),.lead-fields-grid select,.lead-fields-grid textarea{box-sizing:border-box;width:100%}.lead-fields-group-title{color:#3390ec;text-transform:uppercase;margin:8px 0 4px;font-size:12px;font-weight:600}@media (width<=767px){.tags-page{padding:12px}.lead-fields-grid{grid-template-columns:1fr}}.mg-page{box-sizing:border-box;flex-direction:column;flex:1;gap:16px;min-height:0;padding:20px 28px 32px;display:flex;overflow-y:auto}.mg-page.narrow{max-width:1156px}.mg-head{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.mg-head h1{margin:0 12px 0 0;font-size:24px}.mg-spacer{flex:1}.mg-tab{height:34px;font:inherit;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:17px;padding:0 14px;font-size:14px;font-weight:500}.mg-tab:hover{background:var(--color-surface-alt)}.mg-tab.on{background:var(--color-text);color:#fff}.mg-tab b{color:var(--color-text-muted);margin-left:4px;font-weight:500}.mg-tab.on b{color:#cbd5e1}.mg-btn{background:var(--color-primary);color:#fff;height:36px;font:inherit;cursor:pointer;border:0;border-radius:10px;padding:0 16px;font-size:14px;font-weight:600}.mg-btn:hover{background:var(--color-primary-hover)}.mg-btn:disabled{opacity:.55;cursor:default}.mg-btn2{border:1px solid var(--color-border-strong);background:var(--color-surface);height:34px;font:inherit;color:var(--color-text);cursor:pointer;border-radius:10px;padding:0 14px;font-size:13px}.mg-btn2:hover{background:var(--color-surface-alt)}.mg-card{background:var(--color-surface);border-radius:16px;padding:4px 8px}.mg-card.flush{padding:0}.mg-muted{color:var(--color-text-secondary);font-size:13px}.mg-sub{color:var(--color-text-secondary);font-size:12px}.mg-error{color:var(--color-danger-text);margin:0;font-size:13px}.mg-empty{text-align:center;color:var(--color-text-secondary);padding:28px;font-size:14px}.mg-chip{color:#3c4043;white-space:nowrap;background:#f1f3f4;border-radius:12px;align-items:center;height:24px;padding:0 10px;font-size:12px;font-weight:500;display:inline-flex}.mg-chip.g{background:var(--color-success-soft);color:var(--color-success-text)}.mg-chip.r{background:var(--color-danger-soft);color:var(--color-danger-text)}.mg-chip.y{background:var(--color-warning-soft);color:var(--color-warning-text)}.mg-chip.b{background:var(--color-primary-soft);color:var(--color-primary-text)}.mg-grid{display:grid}.mg-th{color:var(--color-text-secondary);border-bottom:1px solid var(--color-border);text-align:left;padding:10px 12px;font-size:12px;font-weight:600}.mg-td{border-bottom:1px solid var(--color-surface-alt);align-items:center;gap:8px;min-width:0;min-height:56px;padding:0 12px;font-size:14px;display:flex}.mg-td.last,.mg-grid>.mg-td.nb{border-bottom:0}.mg-td.end{justify-content:flex-end}.mg-td.wrap{flex-wrap:wrap;padding-top:8px;padding-bottom:8px}.mg-emp-grid{grid-template-columns:minmax(200px,2.2fr) 1.2fr 1.2fr 1.7fr 1fr 60px}.mg-av{background:var(--color-primary-soft-strong);width:34px;height:34px;color:var(--color-primary);border-radius:50%;flex:none;justify-content:center;align-items:center;font-size:13px;font-weight:700;display:flex}.mg-av.off{color:var(--color-text-muted);background:#eceff3}.mg-who{flex-direction:column;min-width:0;display:flex}.mg-who span:first-child{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.mg-who .mg-sub{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.mg-dot{background:#c4c7c5;border-radius:50%;flex:none;width:8px;height:8px;display:inline-block}.mg-dot.online{background:#34a853}.mg-dot.break{background:#f59e0b}.mg-menu-wrap{position:relative}.mg-kebab{width:32px;height:32px;color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0;border-radius:8px;font-size:18px}.mg-kebab:hover{background:var(--color-surface-alt)}.mg-menu{z-index:20;background:var(--color-surface);border-radius:12px;flex-direction:column;width:220px;padding:6px;display:flex;position:absolute;top:34px;right:0;box-shadow:0 10px 32px #0f172a29}.mg-menu button{height:36px;font:inherit;color:var(--color-text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:8px;align-items:center;padding:0 12px;font-size:14px;display:flex}.mg-menu button:hover{background:var(--color-surface-alt)}.mg-menu button.danger{color:var(--color-danger-text)}.mg-form{flex-wrap:wrap;align-items:flex-end;gap:12px;padding:16px 20px;display:flex}.mg-form label{color:var(--color-text-secondary);flex-direction:column;gap:4px;font-size:12px;display:flex}.mg-disc-grid{grid-template-columns:minmax(200px,2fr) repeat(5,minmax(90px,1fr))}.mg-disc-grid .mg-th:not(:first-child),.mg-disc-grid .mg-td:not(.first){text-align:center;justify-content:center}.mg-disc-row{display:contents}.mg-disc-row.clickable>.mg-td{cursor:pointer}.mg-disc-row.clickable:hover>.mg-td{background:var(--color-surface-alt)}.mg-disc-leads{border-bottom:1px solid var(--color-surface-alt);grid-column:1/-1;padding:4px 12px 12px}.mg-prod-head{border-bottom:1px solid var(--color-border);flex-wrap:wrap;align-items:center;gap:10px;padding:16px 20px;display:flex}.mg-prod-head h2{margin:0;font-size:17px;font-weight:700}.mg-tariff-grid{grid-template-columns:1.2fr .8fr 2.6fr 60px;padding:0 8px}.mg-tariff-grid.empty{padding:16px 20px;display:block}.mg-field{color:var(--color-text-secondary);flex-direction:column;gap:4px;margin-bottom:10px;font-size:12px;display:flex}.mg-methods{flex-wrap:wrap;gap:6px;margin-bottom:14px;display:flex}.mg-method{border:1px solid var(--color-border-strong);background:var(--color-surface);height:28px;font:inherit;color:var(--color-text-secondary);cursor:pointer;border-radius:14px;padding:0 12px;font-size:12px;font-weight:500}.mg-method.on{background:var(--color-primary-soft);border-color:var(--color-primary-soft-strong);color:var(--color-primary-text)}.mg-modal-actions{justify-content:flex-end;gap:8px;margin-top:8px;display:flex}.mg-modal-title{margin:0 0 12px;font-size:16px;font-weight:700}@media (width<=1100px){.mg-page{padding:16px}.mg-emp-grid,.mg-disc-grid{min-width:860px}.mg-scroll{overflow-x:auto}}.mg-tabs{display:contents}.mg-emp-cards,.disc-cards,.mg-tariff-cards{display:none}@media (width<=768px){.mg-page{gap:12px;padding:12px}.mg-page.narrow{max-width:none}.mg-hide-m{display:none!important}.mg-head h1{margin:0;font-size:20px}.mg-head{flex-wrap:wrap;gap:8px}.mg-head .mg-spacer{order:1}.mg-head h1{order:0}.mg-head .mg-add{order:2}.mg-head .mg-tabs{scrollbar-width:none;flex:0 0 100%;order:3;gap:6px;padding-bottom:2px;display:flex;overflow-x:auto}.mg-head .mg-tabs::-webkit-scrollbar{display:none}.mg-tabs .mg-tab{background:var(--color-surface);flex:none}.mg-tabs .mg-tab.on{background:var(--color-text)}.mg-head h1{flex:1}.mg-head .mg-spacer{display:none}.mg-form{padding:14px}.mg-form label,.mg-form input,.mg-form select{box-sizing:border-box;width:100%}.mg-emp-table,.disc-wide,.mg-tariff-table{display:none}.mg-emp-cards,.disc-cards,.mg-tariff-cards{flex-direction:column;gap:10px;display:flex}.mg-ecard{background:var(--color-surface);border-radius:14px;padding:12px 8px 12px 12px}.mg-ecard-top{align-items:center;gap:10px;display:flex}.mg-ecard-bottom{align-items:center;gap:8px;margin-top:10px;padding-right:4px;display:flex}.mg-tariff-cards{gap:0;padding:0 12px 4px}.mg-tcard{border-bottom:1px solid var(--color-surface-alt);padding:12px 0}.mg-tcard:last-child{border-bottom:0}.mg-tcard-top{align-items:center;gap:8px;display:flex}.mg-tcard-name{flex:1;min-width:0;font-size:15px;font-weight:600}.mg-tcard-price{white-space:nowrap;font-size:15px;font-weight:600}.mg-tcard-methods{flex-wrap:wrap;gap:6px;margin-top:6px;display:flex}.mg-prod-head{flex-wrap:nowrap;gap:8px;padding:12px 12px 12px 16px}.mg-prod-name{text-overflow:ellipsis;flex:1;min-width:0;overflow:hidden}.mg-prod-head .mg-spacer{display:none}.mg-tariff-grid.empty{padding:12px 16px}.mg-dcard{background:var(--color-surface);border-radius:14px;padding:12px}.mg-dcard-head{width:100%;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;justify-content:space-between;align-items:center;padding:0;display:flex}.mg-dcard-head:disabled{cursor:default}.mg-dcard-chips{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.mg-dcard .disc-leads{margin-top:8px}}.mg-old-price{margin-left:2px;text-decoration:line-through}.mg-seg{background:var(--color-surface-muted,#f1f3f4);border-radius:10px;margin-bottom:8px;padding:3px;display:inline-flex}.mg-seg button{font:inherit;cursor:pointer;background:0 0;border:0;border-radius:8px;padding:6px 12px;font-size:13px}.mg-seg button.on{background:#fff;font-weight:600;box-shadow:0 1px 2px #0000001a}.mg-countries{grid-template-columns:1fr 110px 24px;align-items:center;gap:6px;margin-top:6px;display:grid}.mg-countries input{min-width:0}.mg-x{color:var(--color-text-secondary);cursor:pointer;background:0 0;border:0}.mg-link{color:var(--color-primary-text);font:inherit;cursor:pointer;background:0 0;border:0;padding:6px 0;font-size:13px}.mg-surcharges{color:var(--color-text-secondary);flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;font-size:12px;display:flex}.mg-surcharges label{align-items:center;gap:4px;display:flex}.mg-surcharges input{width:64px}.tg-pill-task{color:#4a6785;background:#e9eff5}.tg-pill-notask{background:var(--tg-bg);color:var(--tg-neg-fg);box-shadow:inset 0 0 0 1px var(--tg-neg-fg)}.nsf{flex-direction:column;gap:8px;display:flex}.nsf-pills{flex-wrap:wrap;gap:6px;display:flex}.nsf-pill{border:1px solid var(--tg-border);background:var(--tg-bg);height:30px;color:var(--tg-text);cursor:pointer;border-radius:15px;padding:0 12px;font-size:13px}.nsf-pill:hover{background:var(--tg-bg-2)}.nsf-pill-on,.nsf-pill-on:hover{background:var(--tg-accent);border-color:var(--tg-accent);color:#fff}.nsf-date,.nsf-comment{box-sizing:border-box;border:1px solid var(--tg-border);width:100%;font:inherit;background:var(--tg-bg);color:var(--tg-text);border-radius:10px;padding:8px 10px;font-size:14px}.nsf-comment{resize:vertical}.tasks-modal{flex-direction:column;gap:10px;display:flex}.tasks-modal h2,.tasks-modal p{margin:0}.tasks-section-title{color:var(--tg-text-2);font-size:13px;font-weight:600}.tasks-tz-hint{color:var(--tg-text-2);font-size:12px}.outcome-next{background:var(--tg-bg-2);border-radius:10px;flex-direction:column;gap:6px;margin:4px 0;padding:10px;display:flex}.task-btn{border:1px solid var(--tg-border);background:var(--tg-bg);height:30px;color:var(--tg-accent);cursor:pointer;white-space:nowrap;border-radius:15px;justify-content:center;align-items:center;padding:0 12px;font-size:13px;font-weight:500;text-decoration:none;display:inline-flex}.task-btn:hover{background:var(--tg-bg-2)}.task-btn-primary,.task-btn-primary:hover{background:var(--tg-accent);border-color:var(--tg-accent);color:#fff}.task-btn-primary:hover{background:var(--tg-accent-hover)}.resched{display:inline-block;position:relative}.resched-backdrop{z-index:40;position:fixed;inset:0}.resched-pop{z-index:41;background:var(--tg-bg);border:1px solid var(--tg-border);border-radius:12px;flex-direction:column;min-width:210px;padding:6px;display:flex;position:absolute;top:calc(100% + 4px);right:0;box-shadow:0 6px 20px #00000026}.resched-pop>button{text-align:left;color:var(--tg-text);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:8px 10px;font-size:14px}.resched-pop>button:hover{background:var(--tg-bg-2)}.resched-custom{flex-direction:column;gap:6px;padding:6px;display:flex}.resched-custom input{border:1px solid var(--tg-border);font:inherit;border-radius:8px;padding:6px 8px;font-size:14px}.resched-custom button{background:var(--tg-accent);color:#fff;cursor:pointer;border:none;border-radius:15px;height:30px;font-size:13px}.resched-custom button:disabled{opacity:.5}.task-bar{background:var(--tg-bg);border-bottom:1px solid var(--tg-divider);align-items:center;gap:10px;padding:8px 14px;display:flex;position:relative}.task-bar-icon{background:var(--tg-info-bg);width:32px;height:32px;color:var(--tg-info-fg);border-radius:50%;flex:none;justify-content:center;align-items:center;display:inline-flex}.task-bar-main{flex-direction:column;flex:1;min-width:0;display:flex}.task-bar-title{color:var(--tg-text);font-size:14px;font-weight:600}.task-bar-sub{color:var(--tg-text-2);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.task-bar-flag{color:var(--tg-neg-fg);margin-left:8px;font-size:12px;font-weight:600}.task-bar-actions{flex:none;gap:6px;display:flex}.task-bar-overdue,.task-bar-missing{background:var(--tg-neg-bg)}.task-bar-overdue .task-bar-icon,.task-bar-missing .task-bar-icon{color:var(--tg-neg-fg);background:#fff}.task-bar-overdue .task-bar-title,.task-bar-missing .task-bar-title{color:var(--tg-neg-fg)}.tasks-page{max-width:760px;margin:0 auto}.tasks-page-head{margin-bottom:12px}.tl-section{margin:0 0 18px}.tl-title{color:var(--tg-text-2);text-transform:none;margin:0 0 6px;padding:0 4px;font-size:14px;font-weight:600}.tl-title-red{color:var(--tg-neg-fg)}.tl-count{opacity:.8;margin-left:6px;font-weight:500}.tl-list{background:var(--tg-bg);border:1px solid var(--tg-divider);border-radius:12px;margin:0;padding:0;list-style:none;overflow:hidden}.tl-row{border-bottom:1px solid var(--tg-divider);gap:12px;padding:12px 14px;display:flex}.tl-row:last-child{border-bottom:none}.tl-row-overdue{background:var(--tg-neg-bg)}.tl-body{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.tl-top{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.tl-name{color:var(--tg-text);text-overflow:ellipsis;white-space:nowrap;font-size:15px;font-weight:600;overflow:hidden}.tl-when{color:var(--tg-text-2);flex:none;font-size:13px}.tl-row-overdue .tl-when{color:var(--tg-neg-fg);font-weight:600}.tl-meta{color:var(--tg-text-2);flex-wrap:wrap;gap:10px;font-size:13px;display:flex}.tl-type{align-items:center;gap:4px;display:inline-flex}.tl-type svg{width:15px;height:15px}.tl-resched{color:var(--tg-warn-fg)}.tl-comment,.tl-result{color:var(--tg-text);margin:0;font-size:14px}.tl-result{color:var(--tg-pos-fg)}.tl-actions{flex-wrap:wrap;gap:6px;margin-top:4px;display:flex}.tl-done-toggle{color:var(--tg-accent);cursor:pointer;background:0 0;border:none;padding:4px;font-size:14px}@media (width<=767px){.task-bar{flex-wrap:wrap;padding:8px 12px}.task-bar-actions{width:100%}.task-bar-actions .task-btn,.task-bar>.task-btn{flex:1;height:36px}.task-bar-missing>.task-btn{flex:none;width:100%}.resched{flex:1}.resched>.task-btn{width:100%;height:36px}.resched-pop{left:0;right:auto}.tasks-page{max-width:none}.tl-list{border-left:none;border-right:none;border-radius:0}.tl-row{padding:12px}.tl-actions .task-btn{flex:1;height:36px}.tl-actions .resched{flex:1}.nsf-pill{height:34px}.nsf-date,.nsf-comment{font-size:16px}}.modal-actions .tasks-refuse-btn{margin-right:auto;color:#c62828!important;background:#fdecea!important;border:1px solid #f5c2c0!important}.modal-actions .tasks-refuse-btn:hover{background:#fbdcd8!important}.inbox-mobile-bar,.chat-menu-btn,.chat-menu-backdrop,.chat-tools-btn,.chat-send-icon,.chat-menu-label,.lead-card-close-btn{display:none}.chat-header-actions{display:contents}@media (width<=767px){.inbox-layout{height:calc(100dvh - var(--nav-height) - var(--mobile-nav-height,0px));max-width:100vw}.sidebar,main,.chat-window{min-width:0;max-width:100%}.sidebar{border-right:none;width:100%}.inbox-folders{display:none}.inbox-mobile-bar{border-bottom:1px solid var(--color-border);flex-shrink:0;align-items:center;gap:8px;min-width:0;padding:8px 12px;display:flex}.inbox-mobile-chips{scrollbar-width:none;-webkit-overflow-scrolling:touch;flex:1;gap:6px;min-width:0;display:flex;overflow-x:auto}.inbox-mobile-chips::-webkit-scrollbar{display:none}.inbox-chip{border:1px solid var(--color-border);border-radius:var(--radius-full);background:var(--color-surface);min-height:36px;color:var(--color-text-secondary);white-space:nowrap;cursor:pointer;flex-shrink:0;align-items:center;gap:6px;padding:0 12px;font-size:13px;display:inline-flex}.inbox-chip-active{background:var(--color-primary-soft);border-color:var(--color-primary);color:var(--color-primary-text);font-weight:600}.inbox-chip-badge{background:var(--color-primary);color:#fff;text-align:center;border-radius:9px;min-width:18px;padding:1px 5px;font-size:11px;font-weight:600}.inbox-filters-toggle{border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface-alt);min-height:36px;color:var(--color-text);cursor:pointer;flex-shrink:0;padding:0 14px;font-size:13px}.inbox-filters-toggle-open{border-color:var(--color-primary);color:var(--color-primary-text)}.inbox-filters{display:none}.inbox-filters-open{display:flex}.inbox-filters select{min-height:40px;font-size:16px}.inbox-waiting-filter{min-height:32px;font-size:13px}.chat-header{gap:8px;min-width:0;padding:8px 10px;position:relative}.chat-back-btn,.chat-menu-btn{border-radius:var(--radius-md);background:var(--color-surface-alt);width:40px;height:40px;color:var(--color-text);cursor:pointer;border:none;flex-shrink:0;justify-content:center;align-items:center;font-size:20px;display:flex}.chat-menu-btn-open{background:var(--color-primary-soft)}.chat-info-btn{display:none}.chat-header-name{cursor:pointer;font-size:16px}.chat-menu-backdrop{z-index:40;display:block;position:fixed;inset:0}.chat-header-actions{display:contents}.chat-header-actions:not(.chat-header-actions-open)>:not(.modal-overlay){display:none}.chat-header-actions-open{z-index:41;border:1px solid var(--color-border);border-radius:var(--radius-md);background:var(--color-surface);min-width:230px;max-width:calc(100vw - 20px);box-shadow:var(--shadow-md,0 8px 24px #0f172a2e);flex-direction:column;align-items:stretch;gap:4px;padding:6px;display:flex;position:absolute;top:calc(100% - 4px);right:10px}.chat-header-actions-open>*{min-height:44px}.chat-header-actions-open .chat-notes-filter{color:var(--color-text);padding:0 10px;font-size:15px}.chat-header-actions-open .chat-notes-filter input{width:20px;height:20px}.chat-header-actions-open .chat-link-btn,.chat-header-actions-open .chat-call-btn{border-radius:var(--radius-md);width:auto;height:auto;min-height:44px;color:var(--color-text);text-align:left;cursor:pointer;background:0 0;border:none;justify-content:flex-start;align-items:center;gap:10px;padding:0 10px;font-size:15px;display:flex}.chat-header-actions-open .chat-menu-label{display:inline}.chat-window{height:100%;min-height:0}.chat-messages{overscroll-behavior:contain;min-height:0;overflow-x:hidden}.message,.note-entry{overflow-wrap:anywhere}.chat-subchats{overflow-x:auto}.chat-input{grid-template-columns:auto minmax(0,1fr) auto;align-items:end;gap:6px;padding:8px 10px;display:grid;position:relative}.chat-input .chat-mode-toggle{grid-column:1/-1;justify-self:start;min-height:28px;font-size:12px;border-radius:var(--radius-full)!important;padding:0 10px!important}.chat-tools-btn{flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;font-size:24px;line-height:1;transition:transform .15s;display:flex;border-radius:var(--radius-full)!important;background:var(--color-surface-alt)!important;color:var(--color-text-secondary)!important;padding:0!important}.chat-tools-btn-open{transform:rotate(45deg)}.chat-text-input-wrapper textarea{text-align:left;min-height:40px;max-height:124px;padding:9px 12px;font-size:16px;line-height:20px}.chat-input .chat-send-btn{border-radius:var(--radius-full);flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:flex}.chat-send-label{display:none}.chat-send-icon{font-size:16px;display:inline}.chat-toolbar{opacity:0;max-height:0;padding:0 10px;transition:max-height .2s,opacity .2s,padding .2s;display:flex;overflow:hidden}.chat-toolbar-open{opacity:1;gap:8px;max-height:260px;padding:8px 10px 10px;overflow-y:auto}.chat-toolbar-btn{width:64px;height:56px;font-size:11px}.chat-template-missing-warning{margin:0;padding:4px 10px}.lead-card{z-index:55;box-sizing:border-box;width:100%;max-width:100vw;padding:16px;padding-bottom:calc(24px + env(safe-area-inset-bottom,0px));border-left:none;animation:.2s lead-card-slide-in;position:fixed;inset:0;overflow-x:hidden}.lead-card .lead-card-back-btn{display:none}.lead-card .lead-card-close-btn{z-index:2;border-radius:var(--radius-full);background:var(--color-surface-alt);width:44px;height:44px;min-height:44px;color:var(--color-text);cursor:pointer;border:none;flex-shrink:0;justify-content:center;align-self:flex-end;align-items:center;margin:-4px -4px -30px 0;padding:0;font-size:18px;display:flex;position:sticky;top:0}.lead-card input,.lead-card select,.lead-card textarea{box-sizing:border-box;max-width:100%;font-size:16px}}@keyframes lead-card-slide-in{0%{opacity:0;transform:translate(24px)}to{opacity:1;transform:none}}.chat-window.tg-chat{background:var(--tg-bg);color:var(--tg-text);min-width:0}.tg-chat button{font-family:inherit}.tg-chat .tgc-icon-btn{width:40px;height:40px;color:var(--tg-text-2);cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background-color .12s,color .12s;display:inline-flex}.tg-chat .tgc-icon-btn:hover,.tg-chat .tgc-icon-btn-on{background:var(--tg-bg-2);color:var(--tg-accent)}.tg-chat .tgc-header{background:var(--tg-bg);border-bottom:1px solid var(--tg-border);flex-shrink:0;align-items:center;gap:4px;min-height:56px;padding:6px 10px;display:flex;position:relative}.tg-chat .tgc-back{display:none}.tg-chat .tgc-header-who{text-align:left;cursor:pointer;background:0 0;border:none;border-radius:10px;flex:1;align-items:center;gap:12px;min-width:0;padding:2px 6px;display:flex}.tg-chat .tgc-header-who:hover{background:var(--tg-bg-2)}.tg-chat .tgc-header-text{flex-direction:column;min-width:0;display:flex}.tg-chat .tgc-header-name{color:var(--tg-text);text-overflow:ellipsis;white-space:nowrap;font-size:16px;font-weight:600;overflow:hidden}.tg-chat .tgc-header-sub{color:var(--tg-text-2);text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.tg-chat .tgc-call-btn{background:var(--tg-accent);color:#fff;cursor:pointer;white-space:nowrap;border:none;border-radius:17px;flex-shrink:0;height:34px;margin-right:4px;padding:0 16px;font-size:14px;font-weight:600}.tg-chat .tgc-call-btn:hover{background:var(--tg-accent-hover)}.tg-chat .tgc-backdrop{z-index:40;position:fixed;inset:0}.tg-chat .tgc-menu{z-index:41;background:var(--tg-bg);border:1px solid var(--tg-border);border-radius:12px;min-width:220px;max-width:calc(100vw - 20px);padding:6px;position:absolute;box-shadow:0 6px 24px #00000029}.tg-chat .tgc-menu-header{top:calc(100% - 4px);right:10px}.tg-chat .tgc-menu-attach{bottom:48px;right:0}.tg-chat .tgc-menu-item{width:100%;min-height:42px;color:var(--tg-text);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:12px;padding:0 12px;font-size:15px;display:flex}.tg-chat .tgc-menu-item:hover{background:var(--tg-bg-2)}.tg-chat .tgc-menu-item svg{color:var(--tg-text-2);flex-shrink:0}.tg-chat .tgc-menu-item input{width:18px;height:18px;accent-color:var(--tg-accent);margin:0 2px;padding:0}.tg-chat .tgc-menu-sep{background:var(--tg-divider);height:1px;margin:4px 6px}.tg-chat .tgc-form{background:var(--tg-bg);border-bottom:1px solid var(--tg-border);flex-shrink:0}.tg-chat .tgc-form-bar{border:none;border-left:3px solid var(--tg-accent);text-align:left;cursor:pointer;background:0 0;flex-direction:column;align-items:flex-start;gap:5px;width:100%;padding:7px 14px 8px 12px;display:flex}.tg-chat .tgc-form-bar:hover{background:var(--tg-bg-2)}.tg-chat .tgc-form-title{color:var(--tg-accent);font-size:13px;font-weight:600}.tg-chat .tgc-form-pills{flex-wrap:wrap;gap:5px;min-width:0;max-width:100%;display:flex}.tg-chat .tgc-form-details{max-height:40vh;color:var(--tg-text);padding:4px 14px 10px 15px;font-size:14px;overflow-y:auto}.tg-chat .tgc-form-details p{margin:4px 0}.tg-chat .tgc-form-all{color:var(--tg-accent);cursor:pointer;background:0 0;border:none;margin-top:4px;padding:0;font-size:14px;font-weight:600}.tg-chat .tgc-find{background:var(--tg-bg);border-bottom:1px solid var(--tg-border);flex-shrink:0;align-items:center;gap:6px;padding:6px 12px;display:flex}.tg-chat .tgc-find input{background:var(--tg-bg-2);border:none;border-radius:18px;flex:1;min-width:0;height:36px;padding:0 14px;font-size:14px}.tg-chat .tgc-find input:focus{box-shadow:0 0 0 2px var(--tg-accent)}.tg-chat .tgc-find-count{color:var(--tg-text-2);white-space:nowrap;font-size:12px}.tg-chat .tgc-find button{width:32px;height:32px;color:var(--tg-text-2);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;font-size:16px;display:inline-flex}.tg-chat .tgc-find button:hover:not(:disabled){background:var(--tg-bg-2)}.tg-chat .tgc-find button:disabled{opacity:.4;cursor:default}.tg-chat .tgc-pinned{background:var(--tg-bubble-note);border-bottom:1px solid var(--tg-border);flex-shrink:0}.tg-chat .tgc-pinned-note{align-items:center;gap:8px;padding:5px 12px;font-size:13px;display:flex}.tg-chat .tgc-pinned-text{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.tg-chat .tgc-pinned-note button{color:var(--tg-text-2);cursor:pointer;background:0 0;border:none;padding:2px;display:inline-flex}.tg-chat .tgc-messages{overscroll-behavior:contain;background-color:var(--tg-chat-bg);background-image:var(--tg-chat-pattern);background-size:var(--tg-chat-pattern-size);flex-direction:column;flex:1;gap:6px;min-height:0;padding:12px 16px;display:flex;overflow:hidden auto}.tg-chat .tgc-entry{flex-direction:column;display:flex}.tg-chat .tgc-entry-grouped{margin-top:-4px}.tg-chat .tgc-day{justify-content:center;margin:8px 0 6px;display:flex}.tg-chat .tgc-day span{background:var(--tg-date-chip);color:#fff;border-radius:14px;padding:3px 12px;font-size:13px;font-weight:500}.tg-chat .tgc-bubble{border-radius:var(--tg-radius-bubble);min-width:64px;max-width:min(68%,560px);box-shadow:var(--tg-shadow-bubble);overflow-wrap:anywhere;color:var(--tg-text);padding:6px 10px;font-size:15px;line-height:1.4;position:relative}.tg-chat .tgc-in{background:var(--tg-bubble-in);align-self:flex-start}.tg-chat .tgc-out{background:var(--tg-bubble-out);align-self:flex-end}.tg-chat .tgc-in.tgc-tail{border-bottom-left-radius:var(--tg-radius-tail)}.tg-chat .tgc-out.tgc-tail{border-bottom-right-radius:var(--tg-radius-tail)}.tg-chat .tgc-note{background:var(--tg-bubble-note);align-self:flex-end}.tg-chat .tgc-note.tgc-tail{border-bottom-right-radius:var(--tg-radius-tail)}.tg-chat .tgc-note-system{align-self:center;max-width:80%}.tg-chat .tgc-bubble-media{box-shadow:none;background:0 0;padding:0}.tg-chat .message-text{white-space:pre-wrap}.tg-chat .tgc-bubble>.message-text:after,.tg-chat .tgc-bubble>.message-caption:after{content:"";width:74px;height:1px;display:inline-block}.tg-chat .tgc-meta{float:right;color:var(--tg-meta-in);-webkit-user-select:none;user-select:none;align-items:center;gap:4px;margin:4px 0 -2px 8px;font-size:12px;line-height:1;display:inline-flex}.tg-chat .tgc-out .tgc-meta{color:var(--tg-meta-out)}.tg-chat .tgc-ticks{display:inline-flex}.tg-chat .tgc-bubble:after{content:"";clear:both;display:block}.tg-chat .tgc-bubble-media .tgc-meta{background:var(--tg-date-chip);color:#fff;border-radius:10px;margin:0;padding:2px 6px;position:absolute;bottom:6px;right:8px}.tg-chat .tgc-sender{color:var(--tg-accent);margin-bottom:1px;font-size:13px;font-weight:600}.tg-chat .tgc-actions{gap:2px;margin-right:4px;display:none}.tg-chat .tgc-bubble:hover .tgc-actions{display:inline-flex}.tg-chat .tgc-actions button{color:var(--tg-text-2);cursor:pointer;background:0 0;border:none;border-radius:4px;padding:2px;display:inline-flex}.tg-chat .tgc-actions button:hover{background:var(--tg-bg-2);color:var(--tg-accent)}@media (hover:none){.tg-chat .tgc-actions{display:inline-flex}}.tg-chat .tgc-note-head{flex-wrap:wrap;align-items:baseline;gap:6px;margin-bottom:1px;display:flex}.tg-chat .tgc-note-label{text-transform:uppercase;letter-spacing:.02em;color:var(--tg-r2-fg);font-size:12px;font-weight:700}.tg-chat .tgc-note-author{color:var(--tg-text-2);font-size:12px}.tg-chat .tgc-note-foot{justify-content:space-between;align-items:flex-end;gap:10px;margin-top:2px;display:flex}.tg-chat .tgc-note-actions{flex-wrap:wrap;gap:8px;display:flex}.tg-chat .tgc-note-actions button{color:var(--tg-accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:12px}.tg-chat .tgc-note-actions button:hover{text-decoration:underline}.tg-chat .tgc-meta-note{float:none;color:var(--tg-meta-in);margin:0}.tg-chat .tgc-note>.message-text:after{display:none}.tg-chat .note-edit-form{flex-direction:column;gap:6px;min-width:240px;display:flex}.tg-chat .note-edit-form textarea{border:1px solid var(--tg-border);background:var(--tg-bg);resize:vertical;border-radius:10px;padding:8px 10px;font-size:14px}.tg-chat .note-edit-actions{gap:6px;display:flex}.tg-chat .note-edit-actions button{background:var(--tg-accent);color:#fff;cursor:pointer;border:none;border-radius:14px;padding:5px 12px;font-size:13px}.tg-chat .note-edit-actions button:last-child{background:var(--tg-bg-2);color:var(--tg-text)}.tg-chat .message-photo{border-radius:11px;max-width:100%;max-height:360px;display:block}.tg-chat .message-sticker{max-width:160px;display:block}.tg-chat .tgc-video{border-radius:11px;width:300px;max-width:100%;display:block}.tg-chat .message-caption{margin-top:4px}.tg-chat .message-location,.tg-chat .message-contact,.tg-chat .message-unknown{color:var(--tg-accent);font-size:14px}.tg-chat .message-unknown{color:var(--tg-text-2);font-style:italic}.tg-chat .tgc-doc{color:var(--tg-text);align-items:center;gap:10px;text-decoration:none;display:flex}.tg-chat .tgc-doc-icon{background:var(--tg-accent);color:#fff;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;display:inline-flex}.tg-chat .tgc-doc-name{word-break:break-all;font-size:14px;font-weight:500}.tg-chat .tgc-voice{align-items:center;gap:10px;min-width:210px;padding:2px 0;display:flex}.tg-chat .tgc-voice-play{background:var(--tg-accent);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:42px;height:42px;padding:0;display:inline-flex}.tg-chat .tgc-voice-play:hover{background:var(--tg-accent-hover)}.tg-chat .tgc-voice-wave{cursor:pointer;flex:1;align-items:center;gap:2px;height:24px;display:flex}.tg-chat .tgc-voice-bar{background:var(--tg-badge-muted);border-radius:2px;width:3px}.tg-chat .tgc-voice-bar-done{background:var(--tg-accent)}.tg-chat .tgc-voice-time{color:var(--tg-meta-in);min-width:30px;font-size:12px}.tg-chat .tgc-out .tgc-voice-time{color:var(--tg-meta-out)}.tg-chat .tgc-voice audio{display:none}.tg-chat .tgc-round{cursor:pointer;background:var(--tg-bg-2);width:200px;height:200px;box-shadow:var(--tg-shadow-bubble);border-radius:50%;position:relative;overflow:hidden}.tg-chat .tgc-round video{object-fit:cover;width:100%;height:100%;display:block}.tg-chat .tgc-round-play{color:#fff;background:#0000002e;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.tg-chat .tgc-voice-panel{background:var(--tg-bg);border-top:1px solid var(--tg-border);flex-shrink:0;padding:8px 14px;font-size:14px}.tg-chat .tgc-voice-panel button{background:var(--tg-accent);color:#fff;cursor:pointer;border:none;border-radius:16px;padding:6px 14px;font-size:14px}.tg-chat .tgc-voice-panel.voice-recording button{background:var(--tg-neg-fg)}.tg-chat .tgc-voice-panel.voice-preview button:nth-of-type(2){background:var(--tg-bg-2);color:var(--tg-text)}.tg-chat .tgc-voice-panel button:disabled{opacity:.5;cursor:default}.tg-chat .tgc-voice-bar-wrap{flex-shrink:0;padding:4px 14px}.tg-chat .tgc-composer{background:var(--tg-bg);border-top:1px solid var(--tg-border);flex-shrink:0;padding:8px 12px;position:relative}.tg-chat .tgc-composer-note{background:var(--tg-bubble-note)}.tg-chat .tgc-note-banner{color:var(--tg-r2-fg);justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;font-size:13px;font-weight:600;display:flex}.tg-chat .tgc-note-banner button{color:var(--tg-accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:13px}.tg-chat .tgc-composer-row{align-items:flex-end;gap:8px;display:flex}.tg-chat .tgc-field{background:var(--tg-bg-2);border-radius:22px;flex:1;align-items:flex-end;gap:0;min-width:0;padding:3px 4px;display:flex;position:relative}.tg-chat .tgc-composer-note .tgc-field{background:var(--tg-bg)}.tg-chat .tgc-field .tgc-icon-btn{width:38px;height:38px}.tg-chat .tgc-field .tgc-icon-btn:hover,.tg-chat .tgc-field .tgc-icon-btn-on{color:var(--tg-accent);background:0 0}.tg-chat .tgc-textarea{resize:none;min-width:0;min-height:38px;max-height:124px;box-shadow:none;background:0 0;border:none;border-radius:0;flex:1;padding:9px 4px;font-size:16px;line-height:20px}.tg-chat .tgc-textarea:focus{box-shadow:none;border:none;outline:none}.tg-chat .tgc-attach,.tg-chat .tgc-emoji,.tg-chat .tgc-templates{display:flex;position:relative}.tg-chat .tgc-send{background:var(--tg-accent);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:44px;height:44px;padding:0;transition:background-color .12s;display:inline-flex}.tg-chat .tgc-send:hover:not(:disabled){background:var(--tg-accent-hover)}.tg-chat .tgc-send:disabled{background:var(--tg-badge-muted);cursor:default}.tg-chat .tgc-templates-list{z-index:41;background:var(--tg-bg);border:1px solid var(--tg-border);border-radius:12px;width:280px;max-width:calc(100vw - 24px);max-height:260px;padding:6px;position:absolute;bottom:48px;left:0;overflow-y:auto;box-shadow:0 6px 24px #00000029}.tg-chat .tgc-templates-item{border-bottom:1px solid var(--tg-divider);justify-content:space-between;align-items:center;gap:8px;padding:7px 8px;font-size:14px;display:flex}.tg-chat .tgc-templates-item:last-child{border-bottom:none}.tg-chat .tgc-templates-item button{background:var(--tg-accent);color:#fff;cursor:pointer;border:none;border-radius:14px;flex-shrink:0;padding:4px 12px;font-size:12px}.tg-chat .tgc-templates-item button:disabled{opacity:.5}.tg-chat .chat-template-dropdown{z-index:41;background:var(--tg-bg);border:1px solid var(--tg-border);border-radius:12px;max-height:240px;position:absolute;bottom:calc(100% + 6px);left:0;right:0;overflow-y:auto;box-shadow:0 6px 24px #00000029}.tg-chat .chat-template-dropdown-item:hover{background:var(--tg-bg-2)}.tg-chat .chat-template-missing-warning{background:var(--tg-bg);color:var(--tg-warn-fg)}.tgc-emoji-popup{z-index:50;background:var(--tg-bg);border:1px solid var(--tg-border);border-radius:14px;position:fixed;overflow:hidden;box-shadow:0 8px 28px #0003}.tgc-emoji-popup em-emoji-picker{--border-radius:0;--shadow:none;--rgb-accent:51, 144, 236;max-height:55vh}@media (width<=767px){.chat-window.tg-chat{height:100%;min-height:0}.tg-chat .tgc-back{display:inline-flex}.tg-chat .tgc-header{padding:6px}.tg-chat .tgc-call-btn{width:40px;height:40px;color:var(--tg-text-2);background:0 0;border-radius:50%;margin:0;padding:0;font-size:0;position:relative}.tg-chat .tgc-call-btn:hover{background:var(--tg-bg-2)}.tg-chat .tgc-call-btn:before{content:"";background:currentColor;position:absolute;inset:9px;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2.5'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") 50%/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2.5'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") 50%/contain no-repeat}.tg-chat .tgc-messages{padding:10px}.tg-chat .tgc-bubble{max-width:86%}.tg-chat .tgc-video{width:240px}.tg-chat .tgc-round{width:180px;height:180px}.tg-chat .tgc-composer{padding:6px 8px;padding-bottom:calc(6px + env(safe-area-inset-bottom,0px))}.tg-chat .tgc-menu-header{right:6px}.tg-chat .tgc-textarea{font-size:16px}.tg-chat .tgc-form-details{max-height:35vh}}.tg-chat .tgc-media-pending{font:inherit;cursor:pointer;text-align:left;background:0 0;border:0;padding:0}.tg-chat .tgc-media-pending:disabled{opacity:.6;cursor:default}.tg-chat .tgc-media-error{color:#c5221f;margin-top:4px;font-size:12px}.tpl-page{height:calc(100vh - var(--nav-height));background:var(--color-bg);min-height:0;display:flex}.tpl-folders{background:var(--color-surface);border-right:1px solid var(--color-border);flex-direction:column;flex-shrink:0;gap:4px;width:240px;padding:16px 12px;display:flex;overflow-y:auto}.tpl-folders h2{margin:0 4px 10px;font-size:20px}.tpl-lbl{color:var(--color-text-secondary);text-transform:uppercase;font-size:12px;font-weight:600}.tpl-folders .tpl-lbl{padding:12px 12px 4px}.tpl-fold{height:38px;font:inherit;color:var(--color-text);text-align:left;cursor:pointer;background:0 0;border:0;border-radius:10px;justify-content:space-between;align-items:center;padding:0 12px;font-size:14px;display:flex}.tpl-fold:hover{background:var(--color-surface-alt)}.tpl-fold.on{background:var(--color-primary);color:#fff;font-weight:600}.tpl-cnt{color:var(--color-text-muted);font-size:12px}.tpl-fold.on .tpl-cnt{color:#e0e7ff}.tpl-main{flex-direction:column;flex:1;gap:12px;min-width:0;padding:16px 20px;display:flex;overflow-y:auto}.tpl-toolbar{gap:10px;display:flex}.tpl-toolbar input{border:1px solid var(--color-border-strong);height:40px;font:inherit;border-radius:10px;flex:1;padding:0 12px;font-size:14px}.tpl-btn{background:var(--color-primary);color:#fff;height:40px;font:inherit;cursor:pointer;border:0;border-radius:10px;padding:0 16px;font-size:14px;font-weight:600}.tpl-btn:disabled{opacity:.5;cursor:default}.tpl-btn.alt{background:var(--color-surface-alt);color:var(--color-text);border:1px solid var(--color-border)}.tpl-btn.danger{background:var(--color-danger-soft);color:var(--color-danger-text)}.tpl-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;display:grid}.tpl-card{background:var(--color-surface);border:1px solid var(--color-border);text-align:left;font:inherit;cursor:pointer;border-radius:14px;flex-direction:column;gap:6px;padding:12px 14px;display:flex}.tpl-card.sel{border:2px solid var(--color-primary);padding:11px 13px}.tpl-card-title{align-items:center;gap:8px;font-size:15px;font-weight:600;display:flex}.tpl-card-text{color:var(--color-text-secondary);-webkit-line-clamp:2;-webkit-box-orient:vertical;font-size:14px;line-height:1.4;display:-webkit-box;overflow:hidden}.tpl-card-meta{color:var(--color-text-muted);font-size:12px}.tpl-pill{background:var(--color-success-soft);height:22px;color:var(--color-success-text);border-radius:11px;align-items:center;padding:0 8px;font-size:12px;font-weight:600;display:inline-flex}.tpl-editor{background:var(--color-surface);border-left:1px solid var(--color-border);flex-direction:column;flex-shrink:0;gap:10px;width:400px;padding:16px 20px;display:flex;overflow-y:auto}.tpl-editor h3{margin:0;font-size:18px}.tpl-editor input[type=text],.tpl-editor input[type=file],.tpl-editor select,.tpl-editor textarea{border:1px solid var(--color-border-strong);font:inherit;box-sizing:border-box;border-radius:10px;width:100%;padding:8px 12px;font-size:14px}.tpl-editor textarea{resize:vertical;min-height:110px;line-height:1.45}.tpl-vars{flex-wrap:wrap;gap:6px;display:flex}.tpl-var{background:var(--color-primary-soft);height:28px;color:var(--color-primary-text);cursor:pointer;border:0;border-radius:14px;align-items:center;padding:0 10px;font-family:inherit;font-size:13px;font-weight:500;display:inline-flex}.tpl-preview{background:#dfe7ec;border-radius:14px;padding:14px;display:flex}.tpl-bubble{white-space:pre-wrap;background:#e3fecb;border-radius:16px 16px 4px;max-width:330px;margin-left:auto;padding:8px 11px;font-size:14px;line-height:1.4}.tpl-check{align-items:center;gap:8px;font-size:14px;display:flex}.tpl-actions{justify-content:flex-end;gap:8px;margin-top:auto;display:flex}.tpl-error{color:var(--color-danger-text);margin:0;font-size:13px}.tpl-warn{color:var(--color-warning-text);margin:0;font-size:12px}.tpl-empty{color:var(--color-text-muted);font-size:14px}@media (width<=1100px){.tpl-page{flex-direction:column;height:auto}.tpl-folders{border-right:0;border-bottom:1px solid var(--color-border);flex-flow:wrap;width:auto}.tpl-folders h2,.tpl-folders .tpl-lbl{display:none}.tpl-fold{gap:8px}.tpl-editor{border-left:0;border-top:1px solid var(--color-border);width:auto}.tpl-grid{grid-template-columns:minmax(0,1fr)}}.chat-template-dropdown-group{color:var(--color-text-muted);text-transform:uppercase;padding:6px 10px 2px;font-size:11px;font-weight:600}.chat-template-dropdown-item.active{background:var(--color-primary-soft)}.tgc-templates-section{color:var(--color-text-muted);text-transform:uppercase;padding:8px 10px 2px;font-size:11px;font-weight:600}.dept-only-free{cursor:pointer;align-items:center;gap:6px;display:inline-flex}.dept-call-btn,.chat-call-btn{white-space:nowrap}.dept-call-modal{max-width:560px}.dept-day-nav{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.dept-day-label{text-transform:capitalize;font-weight:600}.dept-windows{flex-direction:column;gap:10px;max-height:45vh;margin:10px 0;display:flex;overflow-y:auto}.dept-windows-name{margin-bottom:4px;font-weight:600}.dept-windows .cal-windows button.active{background:var(--color-primary);color:#fff}.dept-confirm{background:var(--color-primary-soft);color:var(--color-primary-text);border-radius:8px;padding:8px 12px}.dept-toast{color:#fff;background:#b42318;border-radius:8px;margin-top:8px;padding:8px 12px}.badge.call-today{background:var(--color-primary-soft);color:var(--color-primary-text)}.lead-calls{flex-direction:column;gap:8px;margin-top:16px;display:flex}.lead-calls h3{margin:0}.lead-call{background:var(--color-primary-soft);border-radius:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;display:flex}.lead-call-actions{gap:6px;display:flex}.lead-calls-history{flex-direction:column;gap:6px;margin:0;padding:0;font-size:.9em;list-style:none;display:flex}@media (width<=767px){.dept-calendar-page{padding:8px}.dept-call-modal{max-width:100%}}.sc-label{color:#707579;margin:12px 0 6px;font-size:12px}.sc-chips{flex-wrap:wrap;gap:6px;margin-top:10px;display:flex}.sc-chips button{height:30px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dadce0;border-radius:15px;padding:0 12px;font-size:13px}.sc-chips button.on{color:#1a56b0;background:#e8f0fe;border-color:#3390ec;font-weight:600}.sc-grid{grid-template-columns:repeat(auto-fill,minmax(72px,1fr));gap:6px;max-height:240px;display:grid;overflow-y:auto}.sc-grid button{min-height:44px;font:inherit;cursor:pointer;background:#fff;border:1px solid #dadce0;border-radius:10px;flex-direction:column;justify-content:center;align-items:center;font-size:15px;line-height:1.15;display:flex}.sc-grid button small{color:#707579;font-size:11px}.sc-grid button.on{color:#1a56b0;background:#e8f0fe;border-color:#3390ec;font-weight:600}.sc-grid button.on small{color:#1a56b0}.sc-mgrs{gap:6px;max-height:220px;display:grid;overflow-y:auto}.sc-mgrs button{min-height:44px;font:inherit;text-align:left;cursor:pointer;background:#fff;border:1px solid #e6e6e6;border-radius:10px;align-items:center;gap:10px;padding:0 12px;font-size:15px;display:flex}.sc-mgrs button.on{background:#e8f0fe;border-color:#3390ec}.sc-av{background:#f1f3f4;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;font-size:13px;font-weight:600;display:flex}.sc-days{gap:6px;padding-bottom:2px;display:flex;overflow-x:auto}.sc-days button{height:32px;font:inherit;cursor:pointer;text-transform:capitalize;background:#fff;border:1px solid #dadce0;border-radius:16px;flex-shrink:0;padding:0 12px;font-size:14px}.sc-days button.on{color:#fff;background:#3390ec;border-color:#3390ec;font-weight:600}.sc-hint{color:#707579;margin-top:2px;font-size:12px;font-weight:400;display:block}.dept-pills{flex-wrap:wrap;gap:6px;margin:8px 0;display:flex}.dept-pill,.dept-pill-reset{border:1px solid var(--tg-border);background:var(--tg-bg);height:28px;color:var(--tg-text);cursor:pointer;border-radius:14px;padding:0 12px;font-size:13px}.dept-pill.on{background:var(--tg-info-bg);border-color:var(--tg-accent);color:var(--tg-info-fg)}.dept-pill-reset{color:var(--tg-accent);background:0 0;border-color:#0000}.dept-rows{border:1px solid var(--tg-border);background:var(--tg-bg);border-radius:10px;overflow:hidden}.dept-row{border-bottom:1px solid var(--tg-divider);align-items:stretch;display:flex}.dept-row:last-child{border-bottom:none}.dept-row-name{white-space:nowrap;text-overflow:ellipsis;border-right:1px solid var(--tg-divider);flex:0 0 150px;padding:8px 10px;font-size:13px;font-weight:600;overflow:hidden}.dept-row-cells{flex:1;gap:1px;min-width:0;padding:6px 4px;display:grid}.dept-row-head .dept-row-cells{padding:4px}.dept-hour{color:var(--tg-text-2);padding-left:2px;font-size:11px}.dept-cell{background:var(--tg-bg-2);border-radius:3px;height:28px}.dept-cell.free{background:var(--tg-pos-bg);box-shadow:inset 0 0 0 1px var(--tg-pos-fg)}.dept-cell.call{background:var(--tg-accent);cursor:pointer}.dept-cell.past{opacity:.45}.dept-cell.editable{cursor:crosshair;touch-action:none}.dept-mobile-list{display:none}@media (width<=767px){.dept-rows{display:none}.dept-mobile-list{flex-direction:column;gap:8px;display:flex}.dept-mobile-row{border:1px solid var(--tg-border);background:var(--tg-bg);border-radius:10px;padding:10px 12px}.dept-mobile-name{margin-bottom:6px;font-weight:600}.dept-mobile-windows{flex-wrap:wrap;gap:6px;display:flex}.dept-window-chip{background:var(--tg-pos-bg);color:var(--tg-pos-fg);border-radius:12px;padding:3px 10px;font-size:13px;font-weight:600}.dept-mobile-none{color:var(--tg-text-2);font-size:13px}}.sidebar.tg-sidebar{background:var(--tg-bg);border-right:1px solid var(--tg-border);flex-direction:column;width:400px}.inbox-layout[data-info=closed] .lead-card{display:none}.tg-list-head{flex-shrink:0;align-items:center;gap:8px;padding:8px 12px;display:flex}.tg-icon-btn{width:40px;height:40px;color:var(--tg-text-2);cursor:pointer;background:0 0;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:inline-flex}button.tg-icon-btn:hover{background:var(--tg-bg-2)}.tg-icon-btn-on{color:var(--tg-accent);background:var(--tg-bg-2)}.tg-burger{cursor:default}.tg-search{background:var(--tg-bg-2);min-width:0;height:40px;color:var(--tg-text-2);box-sizing:border-box;border:1px solid #0000;border-radius:20px;flex:1;align-items:center;gap:8px;padding:0 14px;display:flex}.tg-search:focus-within{border-color:var(--tg-accent);background:var(--tg-bg)}.tg-search input{min-width:0;color:var(--tg-text);box-shadow:none;background:0 0;border:none;outline:none;flex:1;padding:0;font-family:inherit;font-size:15px}.tg-folders{border-bottom:1px solid var(--tg-border);scrollbar-width:none;-webkit-overflow-scrolling:touch;flex-shrink:0;gap:4px;padding:0 8px;display:flex;overflow-x:auto}.tg-folders::-webkit-scrollbar{display:none}.tg-folder{height:40px;color:var(--tg-text-2);white-space:nowrap;cursor:pointer;background:0 0;border:none;flex-shrink:0;align-items:center;gap:6px;padding:0 10px;font-family:inherit;font-size:14px;font-weight:600;display:inline-flex;position:relative}.tg-folder:hover{color:var(--tg-text)}.tg-folder-active{color:var(--tg-accent)}.tg-folder-active:after{content:"";background:var(--tg-accent);border-radius:3px 3px 0 0;height:3px;position:absolute;bottom:0;left:6px;right:6px}.tg-folder-badge{background:var(--tg-badge);color:#fff;text-align:center;box-sizing:border-box;border-radius:10px;min-width:20px;height:20px;padding:0 6px;font-size:12px;font-weight:600;line-height:20px}.tg-filters{border-bottom:1px solid var(--tg-border);background:var(--tg-bg-2);color:var(--tg-text);flex-wrap:wrap;flex-shrink:0;gap:8px 14px;padding:10px 12px;font-size:13px;display:flex}.tg-filters select{border:1px solid var(--tg-border);background:var(--tg-bg);min-height:34px;color:var(--tg-text);border-radius:8px;flex:100%;padding:4px 8px;font-size:14px}.tg-filters label{cursor:pointer;align-items:center;gap:6px;min-height:28px;display:inline-flex}.conversation-list-row.tg-row{box-shadow:none;background:var(--tg-bg);color:var(--tg-text);box-sizing:border-box;border-bottom:none;flex-direction:column;align-items:stretch;gap:0;padding:11px 12px 0;display:flex;position:relative}.conversation-list-row.tg-row:hover{background:var(--tg-bg-2);filter:none}.conversation-list-row.tg-row.active{background:var(--tg-accent);color:#fff;box-shadow:none}.conversation-list-row.tg-row:after{content:"";background:var(--tg-divider);height:1px;position:absolute;bottom:0;left:78px;right:0}.conversation-list-row.tg-row.active:after{display:none}.tg-row-main{align-items:flex-start;gap:12px;height:54px;display:flex}.tg-row .avatar-img,.tg-row .avatar-fallback,.tg-avatar{border-radius:50%;flex-shrink:0;width:54px;height:54px}.tg-avatar{color:#fff;justify-content:center;align-items:center;font-size:22px;font-weight:600;display:flex}.tg-row-body{flex-direction:column;flex:1;gap:3px;min-width:0;padding-top:3px;display:flex}.tg-row-top,.tg-row-preview-line{align-items:center;gap:6px;min-width:0;display:flex}.tg-row-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:16px;font-weight:600;overflow:hidden}.tg-row-tick{color:var(--tg-meta-out);flex-shrink:0;display:inline-flex}.tg-row-time{color:var(--tg-text-2);flex-shrink:0;font-size:12px}.tg-row-preview{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--tg-text-2);flex:1;font-size:15px;overflow:hidden}.tg-row-preview.unread{color:var(--tg-text);font-weight:500}.tg-row-you{color:var(--tg-accent)}.tg-unread-badge{background:var(--tg-badge);border-radius:50%;flex-shrink:0;width:12px;height:12px}.tg-row-pin{color:var(--tg-text-2);flex-shrink:0;display:inline-flex}.tg-row-pin-btn{color:var(--tg-text-2);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;padding:2px;display:none}.tg-row:hover .tg-row-pin-btn{display:inline-flex}.tg-row:hover .tg-row-pin,.tg-row:hover .tg-unread-badge{display:none}.tg-row.active .tg-row-time,.tg-row.active .tg-row-preview,.tg-row.active .tg-row-pin,.tg-row.active .tg-row-pin-btn,.tg-row.active .tg-row-tick{color:#ffffffd9}.tg-row.active .tg-row-you,.tg-row.active .tg-row-preview.unread{color:#fff}.tg-row.active .tg-unread-badge{background:#fff}.tg-row-pills{box-sizing:border-box;flex-wrap:nowrap;align-items:center;gap:6px;height:28px;padding:6px 0 0 66px;display:flex;overflow:hidden}.tg-row-pills .tg-pill,.tg-row-pills .badge{flex-shrink:0}.tg-subchats{border-top:1px solid var(--tg-divider);margin:4px 0 0 66px}.tg-row.active .conversation-subchat{color:#fff}.tg-row.active .conversation-subchat:hover{background:#ffffff26}@media (width<=860px){.sidebar.tg-sidebar{border-right:none;width:100%}}@media (width<=767px){.tg-filters select,.tg-search input{font-size:16px}}.tg-pill.tg-pill-wait{white-space:nowrap;font-weight:600}.tg-pill.if-tag,.if-tag{--tag-bg:#f1f3f4;--tag-fg:#3c4043;background:var(--tag-bg);color:var(--tag-fg)}.if-tag[data-color=purple]{--tag-bg:#f1e8fd;--tag-fg:#6b2fb8}.if-tag[data-color=blue]{--tag-bg:#e8f0fe;--tag-fg:#1a56b0}.if-tag[data-color=orange]{--tag-bg:#ffeede;--tag-fg:#b2490b}.if-tag[data-color=green]{--tag-bg:#e6f4ea;--tag-fg:#1e7a34}.if-tag[data-color=red]{--tag-bg:#fdecea;--tag-fg:#c62828}.if-tag[data-color=teal]{--tag-bg:#e0f5f3;--tag-fg:#0b7a72}.if-tag[data-color=yellow]{--tag-bg:#fff6d6;--tag-fg:#8a6500}.if-tag[data-color=gray]{--tag-bg:#f1f3f4;--tag-fg:#3c4043}.if-tab-count{color:var(--tg-text-2);font-weight:500}.tg-folder-active .if-tab-count{color:inherit}.tg-folder .tg-folder-badge{background:var(--tg-badge)}.tg-folder .tg-folder-badge.if-badge-red,.tg-folder[data-alert=true] .tg-folder-badge{background:#e53935}.if-head-btn{position:relative}.if-head-btn[data-on=true]{color:var(--tg-accent);background:var(--tg-bg-2)}.if-dot{background:var(--tg-accent);border-radius:50%;width:8px;height:8px;position:absolute;top:8px;right:8px}.if-link{color:var(--tg-accent);font:inherit;cursor:pointer;background:0 0;border:none;padding:4px 6px;font-size:13px;font-weight:600}.if-link:disabled{color:var(--tg-text-2);cursor:default}.if-active{border-bottom:1px solid var(--tg-border);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px;padding:8px 12px;display:flex}.if-active-chip{background:var(--tg-info-bg);max-width:100%;color:var(--tg-info-fg);border-radius:14px;align-items:center;gap:4px;padding:3px 4px 3px 10px;font-size:12.5px;font-weight:600;display:inline-flex}.if-active-chip button{width:20px;height:20px;color:inherit;cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;padding:0;display:inline-flex}.if-active-chip button:hover{background:#00000014}.if-backdrop{z-index:60;background:#00000059;position:fixed;inset:0}.if-backdrop-clear{background:0 0}.if-panel{z-index:61;background:var(--tg-bg);width:400px;max-height:calc(100vh - 120px);color:var(--tg-text);border-radius:14px;flex-direction:column;display:flex;position:fixed;top:96px;left:12px;box-shadow:0 8px 32px #00000038}.if-grip{display:none}.if-head{justify-content:space-between;align-items:center;padding:14px 16px 6px;font-size:16px;display:flex}.if-body{flex:1;padding:4px 16px 8px;overflow-y:auto}.if-sec{padding:10px 0}.if-sec h4{letter-spacing:.04em;text-transform:uppercase;color:var(--tg-text-2);margin:0 0 8px;font-size:11.5px;font-weight:700}.if-sort-sec{display:none}.if-chips{flex-wrap:wrap;gap:6px;display:flex}.if-chip{border:1px solid var(--tg-border);background:var(--tg-bg);min-height:32px;color:var(--tg-text);font:inherit;cursor:pointer;border-radius:16px;padding:0 12px;font-size:13.5px}.if-chip[data-on=true]{border-color:var(--tg-accent);background:var(--tg-info-bg);color:var(--tg-info-fg);font-weight:600}.if-chip.if-tag{background:var(--tag-bg);color:var(--tag-fg);border-color:#0000}.if-chip.if-tag[data-on=true]{border-color:var(--tag-fg);font-weight:600}.if-chip-more{color:var(--tg-text-2);border-style:dashed}.if-selects{grid-template-columns:1fr 1fr;gap:8px;margin-top:10px;display:grid}.if-selects label{color:var(--tg-text-2);flex-direction:column;gap:4px;min-width:0;font-size:12px;display:flex}.if-selects select{border:1px solid var(--tg-border);background:var(--tg-bg);min-height:36px;color:var(--tg-text);border-radius:8px;min-width:0;padding:4px 8px;font-size:14px}.if-foot{border-top:1px solid var(--tg-border);gap:8px;padding:12px 16px;display:flex}.if-btn-primary,.if-btn-secondary{min-height:40px;font:inherit;cursor:pointer;border-radius:10px;padding:0 14px;font-size:14px;font-weight:600}.if-btn-primary{background:var(--tg-accent);color:#fff;border:none;flex:1}.if-btn-primary:hover{background:var(--tg-accent-hover)}.if-btn-secondary{border:1px solid var(--tg-border);color:var(--tg-accent);background:0 0}.if-btn-secondary:disabled{color:var(--tg-text-2);cursor:default}.if-sort-menu{z-index:61;background:var(--tg-bg);border-radius:12px;min-width:240px;padding:6px;position:fixed;top:96px;left:60px;box-shadow:0 8px 28px #00000038}.if-sort-title{letter-spacing:.04em;text-transform:uppercase;color:var(--tg-text-2);padding:8px 10px 4px;font-size:11.5px;font-weight:700}.if-sort-item{width:100%;min-height:38px;color:var(--tg-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;padding:0 10px;font-size:14px;display:block}.if-sort-item:hover{background:var(--tg-bg-2)}.if-sort-item[data-on=true]{color:var(--tg-accent);font-weight:600}.if-ctx-menu{z-index:62;background:var(--tg-bg);border-radius:10px;min-width:180px;padding:6px;position:fixed;box-shadow:0 8px 28px #00000040}.if-ctx-menu button{width:100%;min-height:38px;color:var(--tg-text);font:inherit;text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;padding:0 10px;font-size:14px;display:block}.if-ctx-menu button:hover{background:var(--tg-bg-2)}.if-ctx-menu .if-danger{color:#c62828}@media (width<=767px){.if-panel{width:auto;max-height:88vh;padding-bottom:env(safe-area-inset-bottom);border-radius:18px 18px 0 0;inset:auto 0 0}.if-grip{background:var(--tg-border);border-radius:2px;width:40px;height:4px;margin:8px auto 0;display:block}.if-sort-sec{display:block}.if-chip{min-height:40px}.if-selects{grid-template-columns:1fr}.if-sort-menu{left:12px;right:12px}}.pay-page{box-sizing:border-box;max-width:900px;margin:0 auto;padding:16px}.pay-modal{max-width:560px;max-height:90vh;overflow-y:auto}.pay-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.pay-row>label,.pay-row>input{flex:140px;min-width:0}.pay-toolbar{margin-bottom:12px}.pay-head{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;display:flex}.pay-head h2,.pay-head h3{margin:0}.pay-actions{flex-wrap:wrap;gap:6px;display:flex}.pay-product,.pay-deal{border:1px solid #8080804d;border-radius:8px;margin:12px 0;padding:12px}.pay-archived{opacity:.6}.pay-list{margin:8px 0;padding:0;list-style:none}.pay-list li{border-bottom:1px solid #80808033;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:6px;padding:6px 0;display:flex}.pay-check{cursor:pointer;align-items:center;gap:6px;display:inline-flex}.pay-methods{flex-direction:column;gap:6px;margin:8px 0;display:flex}.pay-badge{background:#80808033;border-radius:10px;margin-left:6px;padding:1px 8px;font-size:12px;display:inline-block}.pay-paid{background:#2ea04333}.pay-overdue,.pay-bad,.pay-overdue-row{color:#d93025}.pay-deal-title{flex-wrap:wrap;align-items:center;gap:4px;display:flex}.pay-schedule-row>input{flex:120px}.pay-split-n{flex:0 0 64px;width:64px}.pay-remaining{font-weight:600}.pay-filters{flex-wrap:wrap;gap:6px;margin:12px 0;display:flex}.pay-filters button.active{outline:2px solid;font-weight:700}.pay-expected{margin:0;padding:0;list-style:none}.pay-expected li{border-bottom:1px solid #80808040;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;display:flex}.pay-expected-main,.pay-expected-sum{flex-direction:column;gap:2px;display:flex}.pay-expected-actions{gap:6px;display:flex}@media (width<=600px){.pay-page{padding:12px}.pay-expected li{flex-direction:column;align-items:flex-start}}.pay-tabs{border-bottom:1px solid var(--tg-border,#dadce0);gap:4px;margin:8px 0;display:flex}.pay-tabs button{color:var(--tg-text-2,#707579);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;border-radius:0;padding:8px 14px}.pay-tabs button.active{color:var(--tg-accent,#3390ec);border-bottom-color:var(--tg-accent,#3390ec);font-weight:600}.pay-installments{border-collapse:collapse;width:100%}.pay-installments th,.pay-installments td{text-align:left;border-bottom:1px solid var(--tg-divider,#f0f0f0);vertical-align:middle;padding:8px 10px}.pay-installments th{color:var(--tg-text-2,#707579);font-size:12px;font-weight:600}.pay-installments .num{text-align:right;white-space:nowrap}.pay-installments tr.pay-overdue-row{background:var(--tg-neg-bg,#fdecea)}.pay-flag-overdue{background:var(--tg-neg-bg,#fdecea);color:var(--tg-neg-fg,#c62828);border-radius:10px;margin-left:8px;padding:1px 8px;font-size:11px}@media (width<=700px){.pay-installments,.pay-installments tbody,.pay-installments tr,.pay-installments td{width:100%;display:block}.pay-installments thead{display:none}.pay-installments tr{border-bottom:1px solid var(--tg-border,#dadce0);padding:10px 0}.pay-installments td{text-align:right;border:none;justify-content:space-between;gap:12px;padding:3px 0;display:flex}.pay-installments td[data-label]:before{content:attr(data-label);color:var(--tg-text-2,#707579);text-align:left}}.pay-countries-title{color:var(--color-text-secondary);margin-bottom:4px;font-size:12px}.pay-chips{flex-wrap:wrap;gap:6px;display:flex}.pay-chips .pay-chip{height:32px;font:inherit;cursor:pointer;font-size:13px;color:#202124!important;background:#fff!important;border:1px solid #e0e0e0!important;border-radius:16px!important;padding:0 12px!important}.pay-chips .pay-chip small{color:#9aa0a6}.pay-chips .pay-chip.on{font-weight:600;background:var(--color-primary-soft)!important;border-color:var(--color-primary-soft-strong)!important;color:var(--color-primary-text)!important}.pay-chips .pay-chip:disabled{opacity:.5;cursor:default}.pay-quote{background:#f8f9fa;border-radius:12px;margin-top:10px;padding:10px 14px}.pay-quote-row{justify-content:space-between;padding:3px 0;font-size:13px;display:flex}.pay-quote-row.total{border-top:1px solid #e6e6e6;margin-top:4px;padding-top:6px;font-weight:700}.lead-card.tg-info{background:var(--tg-bg);border-left:1px solid var(--tg-border);width:360px;color:var(--tg-text);gap:0;padding:0 0 24px;font-family:inherit}.tg-info-header{z-index:3;background:var(--tg-bg);border-bottom:1px solid var(--tg-divider);flex-shrink:0;justify-content:space-between;align-items:center;height:56px;padding:0 12px 0 20px;display:flex;position:sticky;top:0}.lead-card.tg-info .tg-info-header h2{font-size:18px;font-weight:600}.lead-card.tg-info button.tg-info-close:not(#_){width:40px;height:40px;min-height:40px;color:var(--tg-text-2);cursor:pointer;background:0 0;border:none;border-radius:50%;justify-content:center;align-items:center;margin:0;padding:0;display:flex;position:static;transform:none}.lead-card.tg-info button.tg-info-close:not(#_):hover{background:var(--tg-bg-2)}.tg-info-profile{text-align:center;flex-direction:column;align-items:center;gap:4px;padding:24px 20px 16px;display:flex}.lead-card.tg-info h3.tg-info-name{overflow-wrap:anywhere;margin:12px 0 0;font-size:20px;font-weight:600}.tg-info-sub{color:var(--tg-text-2);overflow-wrap:anywhere;font-size:14px}.tg-info-pills{flex-wrap:wrap;justify-content:center;gap:6px;margin-top:10px;display:flex}.lead-card.tg-info .lead-card-info{border:none;border-top:1px solid var(--tg-divider);color:var(--tg-text-2);background:0 0;border-radius:0;margin:0 20px 8px;padding:8px 0;font-size:13px}.lead-card.tg-info .lead-card-info dd{color:var(--tg-text)}.lead-card.tg-info .lead-detail-badge,.lead-card.tg-info .lead-detail-duplicate-warning,.lead-card.tg-info .lead-detail-account-unavailable{margin:0 20px 8px}.tg-info-sec{border-top:8px solid var(--tg-bg-2)}.lead-card.tg-info button.tg-info-sec-head:not(#_){width:100%;min-height:0;box-shadow:none;color:var(--tg-accent);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:0;justify-content:space-between;align-items:center;margin:0;padding:14px 20px 8px;font-size:14px;font-weight:600;display:flex;transform:none}.lead-card.tg-info button.tg-info-sec-head:not(#_):hover{background:0 0}.tg-info-sec-head svg{transition:transform .15s;transform:rotate(-90deg)}.tg-info-sec[data-open=true] .tg-info-sec-head svg{transform:none}.tg-info-sec-body{flex-direction:column;gap:12px;padding:0 20px 14px;display:flex}.tg-info-empty{color:var(--tg-text-2);margin:0;font-size:13px}.lead-card.tg-info .lead-card-group{background:0 0;border:none;border-radius:0;gap:12px;padding:0}.lead-card.tg-info .lead-card-group-title,.lead-card.tg-info .lead-calls>h3,.lead-card.tg-info .lead-custom-fields>h3{display:none}.lead-card.tg-info .lead-calls,.lead-card.tg-info .lead-custom-fields{background:0 0;border:none;margin:0;padding:0}.lead-card.tg-info label{color:var(--tg-text-2);letter-spacing:0;font-size:12px}.lead-card.tg-info label select,.lead-card.tg-info label input:not([type=checkbox]),.lead-card.tg-info label textarea{border:1px solid var(--tg-border);background:var(--tg-bg);color:var(--tg-text);border-radius:10px}.lead-card.tg-info label select:focus,.lead-card.tg-info label input:focus,.lead-card.tg-info label textarea:focus{border-color:var(--tg-accent);outline:none}.lead-card.tg-info .lead-card-readonly-hint{color:var(--tg-text-2)}.lead-card.tg-info .lead-card-tag-chip{background:var(--tg-info-bg);color:var(--tg-info-fg)}.tg-info-flat{border-top:8px solid var(--tg-bg-2);padding:14px 20px}.tg-info-flat .pay-head h3{color:var(--tg-accent);margin:0;font-size:14px;font-weight:600}.lead-card.tg-info .lead-card-actions{border-top:8px solid var(--tg-bg-2);padding:12px 20px 0}.lead-card.tg-info .lead-card-actions button:not(#_){background:var(--tg-accent);color:#fff;border:none;border-radius:10px;font-weight:600}.lead-card.tg-info .lead-card-actions button:not(#_):hover:not(:disabled){background:var(--tg-accent-hover)}.lead-card.tg-info .lead-card-actions .lead-card-secondary-btn:not(#_){background:var(--tg-bg-2);color:var(--tg-accent)}.lead-card.tg-info .saved-hint{margin:6px 20px 0}.tg-info-form-meta{color:var(--tg-text-2);flex-wrap:wrap;align-items:center;gap:6px;font-size:13px;display:flex}.tg-info-answers{flex-direction:column;gap:12px;margin:0;display:flex}.tg-info-answers dt{color:var(--tg-text-2);font-size:12px}.tg-info-answers dd{overflow-wrap:anywhere;margin:2px 0 0;font-size:14px}.tg-info-answers .tg-pill{white-space:normal;text-overflow:clip;height:auto;min-height:22px;padding:3px 8px}.tg-info-answer-text[data-tone=pos]{color:var(--tg-pos-fg)}.tg-info-answer-text[data-tone=warn]{color:var(--tg-warn-fg)}.tg-info-answer-text[data-tone=neg]{color:var(--tg-neg-fg)}.tg-info-prev-form{border-top:1px solid var(--tg-divider);flex-direction:column;gap:10px;padding-top:12px;display:flex}.lead-card.tg-info button.tg-info-link:not(#_){min-height:0;box-shadow:none;color:var(--tg-accent);cursor:pointer;background:0 0;border:none;align-self:flex-start;padding:0;font-size:13px;font-weight:600}@media (width<=767px){.lead-card.tg-info{padding:0 0 calc(24px + env(safe-area-inset-bottom,0px))}}.lead-forms-layout{background:var(--tg-bg)}.lead-forms-list{border-right:1px solid var(--tg-border);background:var(--tg-bg);width:460px}.lead-forms-toolbar{border-bottom:1px solid var(--tg-divider);gap:10px;padding:14px 16px 10px}.lead-forms-toolbar h2{color:var(--tg-text);font-size:20px;font-weight:600}.lead-forms-filters{gap:6px}.lead-forms-filters button:not(#_){background:var(--tg-bg-2);min-height:0;color:var(--tg-text-2);cursor:pointer;border:none;border-radius:16px;padding:6px 14px;font-size:14px;font-weight:600}.lead-forms-filters button.active:not(#_){background:var(--tg-accent);color:#fff}.lead-forms-bulk{color:var(--tg-text-2);gap:10px}.lead-forms-bulk label{cursor:pointer;color:var(--tg-accent);align-items:center;gap:8px;font-size:14px;font-weight:600;display:inline-flex}.lead-forms-bulk>button:not(#_){background:var(--tg-accent);color:#fff;cursor:pointer;border:none;border-radius:16px;min-height:0;padding:7px 14px;font-size:14px;font-weight:600}.lead-forms-bulk>button:not(#_):disabled{background:var(--tg-bg-2);color:var(--tg-text-2);opacity:1;cursor:default}.lead-forms-items{background:var(--tg-bg-2);gap:0;padding:0}.lead-form-card{border:none;border-bottom:1px solid var(--tg-divider);background:var(--tg-bg);border-radius:0;gap:10px;padding:12px 16px 14px}.lead-form-card.selected{background:var(--tg-info-bg);border-color:var(--tg-divider)}.lead-form-head{align-items:center;gap:12px}.lead-form-name{color:var(--tg-text);font-size:16px;font-weight:600}.lead-form-meta{color:var(--tg-text-2);gap:2px 8px;font-size:13px}.lead-form-meta span+span:before{content:"·";margin-right:8px}.lead-form-head input[type=checkbox]{appearance:none;border:2px solid var(--tg-border);background:var(--tg-bg);cursor:pointer;border-radius:50%;flex-shrink:0;place-content:center;width:22px;height:22px;margin:0;display:grid}.lead-form-head input[type=checkbox]:after{content:"";opacity:0;border-bottom:2px solid #fff;border-left:2px solid #fff;width:10px;height:6px;transform:rotate(-45deg)translate(1px,-1px)}.lead-form-head input[type=checkbox]:checked{background:var(--tg-accent);border-color:var(--tg-accent)}.lead-form-head input[type=checkbox]:checked:after{opacity:1}.lead-form-head input[type=checkbox]:disabled{opacity:.4;cursor:default}.lead-form-pills{flex-wrap:wrap;gap:6px;display:flex}.lead-form-quote{border-left:3px solid var(--tg-accent);background:var(--tg-bg-2);color:var(--tg-text);overflow-wrap:anywhere;border-radius:0 8px 8px 0;margin:0;padding:6px 10px;font-size:14px}.lead-form-card .lead-form-actions{gap:8px}.lead-form-card .lead-form-actions button:not(#_){cursor:pointer;background:var(--tg-accent);color:#fff;border:none;border-radius:16px;min-height:0;padding:7px 14px;font-size:14px;font-weight:600}.lead-form-card .lead-form-actions button:not(#_):disabled{background:var(--tg-bg-2);color:var(--tg-text-2);opacity:1;cursor:default}.lead-form-card .lead-form-actions button.lead-form-link:not(#_){background:var(--tg-bg-2);color:var(--tg-accent)}.lead-form-notfound{background:var(--tg-warn-bg);color:var(--tg-warn-fg);border-radius:10px;flex-direction:column;gap:8px;padding:10px 12px;display:flex}.lead-form-notfound strong{font-size:14px}.lead-form-notfound .error{margin:0}.lead-form-notfound .lead-form-resolve input{border:1px solid var(--tg-border);background:var(--tg-bg);color:var(--tg-text);border-radius:10px}.lead-form-notfound .lead-form-resolve button:not(#_){background:var(--tg-accent);color:#fff;cursor:pointer;border:none;border-radius:16px;min-height:0;padding:7px 14px;font-weight:600}.lead-form-card .lead-form-answers{border-top:1px solid var(--tg-divider);gap:10px;padding:8px 0 0}.lead-form-card .lead-form-answers dt{color:var(--tg-text-2);font-size:12px}.lead-form-card .lead-form-answers dd{color:var(--tg-text);font-size:14px}@media (width>=1280px){.lead-forms-list{width:520px}}@media (width<=767px){.lead-forms-list{border-right:none;width:100%}.lead-forms-toolbar{z-index:2;background:var(--tg-bg);position:sticky;top:0}}.tg-quick{display:inline-flex;position:relative}.tg-quick .tg-quick-btn{cursor:pointer;font:inherit;box-shadow:none;border:0;font-size:12px;font-weight:600}.tg-quick .tg-quick-backdrop{z-index:40;width:auto;height:auto;min-height:0;box-shadow:none;cursor:default;border:0;border-radius:0;margin:0;padding:0;position:fixed;inset:0;background:0 0!important}.tg-quick .tg-quick-menu{z-index:41;background:#fff;border-radius:12px;min-width:190px;max-height:280px;margin:0;padding:6px;list-style:none;position:absolute;top:calc(100% + 6px);left:50%;overflow-y:auto;transform:translate(-50%);box-shadow:0 6px 24px #0000002e}.tg-quick .tg-quick-menu button{text-align:left;width:100%;min-height:40px;font:inherit;box-shadow:none;cursor:pointer;border:0;border-radius:8px;margin:0;padding:0 12px;font-size:15px;font-weight:400;display:block;color:#000!important;background:0 0!important}.tg-quick .tg-quick-menu button:hover{background:#f1f3f4!important}.tg-quick .tg-quick-menu button[data-on=true]{font-weight:600;color:var(--tg-accent)!important}.tg-quick .tg-quick-btn[data-tone=info]{background:var(--tg-info-bg)!important;color:var(--tg-info-fg)!important}.tg-quick .tg-quick-btn[data-tone=neu]{background:var(--tg-neu-bg)!important;color:var(--tg-neu-fg)!important}.tg-quick .tg-quick-btn{border-radius:13px;align-items:center;gap:4px;height:26px;padding:0 10px;display:inline-flex}.kanban-toolbar.funnel-toolbar{background:var(--tg-bg);border-bottom:1px solid var(--tg-border);flex-direction:column;align-items:stretch;gap:10px}.funnel-row{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.funnel-btn{border:1px solid var(--tg-border);background:var(--tg-bg);height:32px;color:var(--tg-accent);cursor:pointer;border-radius:16px;padding:0 14px;font-size:13px;font-weight:600}.funnel-btn:hover{background:var(--tg-bg-2)}.funnel-pillwrap{display:inline-flex;position:relative}.funnel-pill{border:1px solid var(--tg-border);background:var(--tg-bg);height:30px;color:var(--tg-text);cursor:pointer;white-space:nowrap;border-radius:15px;align-items:center;gap:6px;padding:0 12px;font-size:13px;font-weight:500;display:inline-flex}.funnel-pill:hover{background:var(--tg-bg-2)}.funnel-pill.on{background:var(--tg-info-bg);border-color:var(--tg-accent);color:var(--tg-info-fg)}.funnel-pill-count{background:var(--tg-neg-bg);min-width:18px;height:18px;color:var(--tg-neg-fg);text-align:center;border-radius:9px;padding:0 5px;font-size:11px;font-weight:700;line-height:18px}.funnel-toggle.on .funnel-pill-count{background:var(--tg-neg-fg);color:#fff}.funnel-reset{color:var(--tg-accent);cursor:pointer;background:0 0;border:none;padding:4px 6px;font-size:13px;font-weight:600}.funnel-reset:hover{text-decoration:underline}.funnel-backdrop{z-index:40;cursor:default;background:0 0;border:none;position:fixed;inset:0}.funnel-menu{z-index:41;background:var(--tg-bg);border:1px solid var(--tg-border);border-radius:10px;min-width:180px;max-height:280px;margin:0;padding:4px;list-style:none;position:absolute;top:34px;left:0;overflow-y:auto;box-shadow:0 6px 20px #00000024}.funnel-menu li button{text-align:left;width:100%;color:var(--tg-text);cursor:pointer;background:0 0;border:none;border-radius:6px;padding:8px 10px;font-size:13px}.funnel-menu li button:hover{background:var(--tg-bg-2)}.funnel-menu li button[data-on=true]{color:var(--tg-accent);font-weight:600}.funnel-menu-empty{color:var(--tg-text-2);padding:8px 10px;font-size:13px}.funnel-period{flex-direction:column;gap:8px;min-width:210px;padding:10px;display:flex}.funnel-period label{color:var(--tg-text-2);flex-direction:column;gap:4px;font-size:12px;display:flex}.kanban-sum{color:var(--tg-pos-fg);background:var(--tg-pos-bg);white-space:nowrap;border-radius:10px;margin-left:auto;padding:1px 8px;font-size:12px;font-weight:600}.kanban-card .kanban-card-meta+.kanban-card-meta{margin-top:6px}.kanban-card-meta:empty{display:none}.kanban-card .kanban-card-stage-age{color:var(--tg-text-2);background:var(--tg-neu-bg);align-items:center;gap:4px;display:inline-flex}.kanban-card .kanban-card-stage-age.stale{color:var(--tg-warn-fg);background:var(--tg-warn-bg);font-weight:600}.kanban-card-utm{color:var(--tg-text-2);background:var(--tg-bg-2);border-radius:10px;padding:2px 8px;font-size:11px}.funnel-sheet-overlay{z-index:70;background:#00000059;justify-content:center;align-items:flex-end;display:flex;position:fixed;inset:0}.funnel-sheet{width:100%;max-width:480px;max-height:80vh;padding:14px 16px calc(16px + env(safe-area-inset-bottom));background:var(--tg-bg);border-radius:16px 16px 0 0;overflow-y:auto}.funnel-sheet-title{color:var(--tg-text);margin-bottom:10px;font-size:16px;font-weight:700}.funnel-sheet-chat{background:var(--tg-accent);color:#fff;border:none;border-radius:10px;justify-content:center;align-items:center;gap:8px;width:100%;height:44px;font-size:15px;font-weight:600;display:flex}.funnel-sheet-chat:hover{background:var(--tg-accent-hover)}.funnel-sheet-sub{color:var(--tg-text-2);text-transform:uppercase;margin:14px 0 6px;font-size:12px}.funnel-sheet-list{margin:0;padding:0;list-style:none}.funnel-sheet-list li button{border:none;border-bottom:1px solid var(--tg-divider);width:100%;min-height:44px;color:var(--tg-text);text-align:left;background:0 0;align-items:center;gap:10px;padding:0 8px;font-size:15px;display:flex}.funnel-sheet-list li button[data-on=true]{color:var(--tg-accent);font-weight:600}@media (width>=768px){.funnel-sheet-overlay{display:none}}@media (width<=767px){.funnel-filters{flex-wrap:nowrap;padding-bottom:4px;overflow-x:auto}.funnel-filters .funnel-pillwrap{position:static}.funnel-menu{max-height:60vh;position:fixed;inset:auto 16px 16px}}.kanban-card-task{background:var(--tg-info-bg);color:var(--tg-info-fg);border-radius:11px;align-self:flex-start;align-items:center;gap:4px;padding:2px 8px;font-size:12px;font-weight:600;display:inline-flex}.kanban-card-task.overdue{background:var(--tg-neg-bg);color:var(--tg-neg-fg)}.kanban-card-task.no-task{border:1px solid var(--tg-neg-fg);color:var(--tg-neg-fg);background:0 0}.kanban-card-task{margin-top:4px}.mt-page{height:calc(100dvh - var(--nav-height,56px));background:var(--tg-bg);min-height:0;display:flex}.mt-side{border-right:1px solid var(--tg-border);flex-direction:column;flex:none;width:420px;min-height:0;display:flex}.mt-head{border-bottom:1px solid var(--tg-divider);flex-direction:column;gap:10px;padding:14px 16px 10px;display:flex}.mt-head-top{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.mt-title{margin:0;font-size:20px;font-weight:700}.mt-progress-text{color:var(--tg-text-2);font-size:13px}.mt-bar{background:#eef1f4;border-radius:3px;height:6px;overflow:hidden}.mt-bar>div{background:#4fae4e;height:100%;transition:width .3s}.mt-manager{border:1px solid var(--tg-border);background:var(--tg-bg);height:34px;color:var(--tg-text);font:inherit;border-radius:10px;padding:0 8px;font-size:14px}.mt-chips{flex-wrap:wrap;gap:6px;display:flex}.mt-chip{border:1px solid var(--tg-border);background:var(--tg-bg);height:34px;color:var(--tg-neu-fg);font:inherit;cursor:pointer;border-radius:17px;flex-shrink:0;padding:0 12px;font-size:13px;font-weight:500}.mt-chip-red{background:var(--tg-neg-bg);color:var(--tg-neg-fg);border-color:#f5c2c0}.mt-chip-on,.mt-chip-on.mt-chip-red{background:var(--tg-accent);border-color:var(--tg-accent);color:#fff}.mt-list{flex:1;min-height:0;overflow-y:auto}.mt-row-wrap{align-items:center;display:flex}.mt-row{box-sizing:border-box;background:var(--tg-bg);min-width:0;font:inherit;text-align:left;cursor:pointer;color:var(--tg-text);border:0;flex:1;align-items:center;gap:12px;padding:10px 14px;display:flex}.mt-row:hover{background:var(--tg-bg-2)}.mt-row-sel,.mt-row-sel:hover{background:var(--tg-accent)}.mt-row-body{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.mt-row-top{justify-content:space-between;gap:8px;display:flex}.mt-row-name{white-space:nowrap;text-overflow:ellipsis;font-size:15px;font-weight:600;overflow:hidden}.mt-row-when{color:var(--tg-text-2);flex:none;font-size:13px}.mt-row-over .mt-row-when{color:var(--tg-neg-fg);font-weight:600}.mt-row-sub{color:var(--tg-text-2);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.mt-row-sel .mt-row-name,.mt-row-sel .mt-row-when,.mt-row-sel .mt-row-sub,.mt-row-sel.mt-row-over .mt-row-when{color:#fff}.mt-row-done{display:none}.mt-empty{text-align:center;color:var(--tg-text-2);padding:40px 20px;font-size:15px}.mt-main{background-color:var(--tg-chat-bg);background-image:var(--tg-chat-pattern);background-size:var(--tg-chat-pattern-size);flex-direction:column;flex:1;min-width:0;display:flex}.mt-main-head{background:var(--tg-bg);border-bottom:1px solid var(--tg-border);flex:none;align-items:center;gap:12px;height:56px;padding:0 16px;display:flex}.mt-main-who{flex-direction:column;min-width:0;display:flex}.mt-main-name{white-space:nowrap;text-overflow:ellipsis;font-size:16px;font-weight:600;overflow:hidden}.mt-main-stage{color:var(--tg-text-2);font-size:13px}.mt-ready{white-space:nowrap;border-radius:11px;align-items:center;height:22px;padding:0 8px;font-size:12px;font-weight:600;display:inline-flex}.mt-ready-4{background:var(--tg-r4-bg);color:var(--tg-r4-fg)}.mt-ready-3{background:var(--tg-r3-bg);color:var(--tg-r3-fg)}.mt-ready-2{background:var(--tg-r2-bg);color:var(--tg-r2-fg)}.mt-ready-1{background:var(--tg-r1-bg);color:var(--tg-r1-fg)}.mt-spacer{flex:1}.mt-counter{color:var(--tg-text-2);white-space:nowrap;font-size:13px}.mt-next{background:var(--tg-neu-bg);height:36px;color:var(--tg-neu-fg);font:inherit;cursor:pointer;border:0;border-radius:10px;align-items:center;gap:6px;padding:0 14px;font-size:14px;font-weight:600;display:inline-flex}.mt-next:disabled{opacity:.5;cursor:default}.mt-chat{flex:1;min-height:0}.mt-chat>.chat-window{height:100%}.mt-placeholder{color:var(--tg-text-2);flex-direction:column;flex:1;justify-content:center;align-items:center;gap:8px;font-size:16px;display:flex}.mt-placeholder svg{color:#4fae4e;width:48px;height:48px}@media (width<=767px){.mt-page{height:auto;display:block}.mt-side{border-right:none;width:auto}.mt-main{display:none}.mt-head{background:var(--tg-bg);z-index:2;padding-top:12px;position:sticky;top:0}.mt-chips{flex-wrap:nowrap;overflow-x:auto}.mt-row-wrap{border-bottom:1px solid var(--tg-divider);background:var(--tg-bg);padding-right:16px}.mt-row{padding:10px 0 10px 16px}.mt-row-body{gap:2px}.mt-row-top{flex-direction:column;gap:2px}.mt-row-name{font-size:16px}.mt-row-when,.mt-row-sub{font-size:14px}.mt-row-done{background:var(--tg-bg);cursor:pointer;border:2px solid #c4c7c5;border-radius:50%;flex-shrink:0;width:44px;height:44px;padding:0;display:block}.mt-row-done:active{background:var(--tg-pos-bg);border-color:#4fae4e}.mt-overlay{z-index:60;background:var(--tg-bg);position:fixed;inset:0}.mt-overlay>.chat-window{height:100%}}.discipline-page{max-width:1100px;margin:0 auto;padding:16px}.disc-head{justify-content:space-between;align-items:center;margin-bottom:12px;display:flex}.disc-head h2{margin:0}.disc-refresh,.disc-open{border:1px solid var(--tg-border);background:var(--tg-bg);height:30px;color:var(--tg-accent);cursor:pointer;border-radius:15px;padding:0 14px;font-size:13px;font-weight:600}.disc-refresh:hover,.disc-open:hover{background:var(--tg-bg-2)}.disc-table{border-collapse:collapse;background:var(--tg-bg);border:1px solid var(--tg-border);width:100%}.disc-table th{text-align:center;color:var(--tg-text-2);background:var(--tg-bg-2);padding:10px 8px;font-size:12px;font-weight:600}.disc-table th:first-child,.disc-table td:first-child{text-align:left;padding-left:14px}.disc-table td{text-align:center;border-top:1px solid var(--tg-divider);padding:10px 8px}.disc-row.clickable{cursor:pointer}.disc-row.clickable:hover,.disc-row.open{background:var(--tg-bg-2)}.disc-name{font-weight:600}.disc-role{color:var(--tg-text-2);font-size:12px}.disc-num{border-radius:11px;min-width:28px;padding:2px 8px;font-weight:600;display:inline-block}.disc-num.bad{background:var(--tg-neg-bg);color:var(--tg-neg-fg)}.disc-leads{text-align:left;margin:0;padding:4px 0;list-style:none}.disc-leads li{border-top:1px solid var(--tg-divider);align-items:center;gap:10px;padding:6px 4px;display:flex}.disc-leads li:first-child{border-top:none}.disc-lead-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.disc-table .disc-leads-row td{background:var(--tg-bg);text-align:left;padding:4px 14px 10px}.disc-cards{display:none}@media (width<=767px){.discipline-page{padding:12px}.disc-table{display:none}.disc-cards{flex-direction:column;gap:10px;display:flex}.disc-card{border:1px solid var(--tg-border);background:var(--tg-bg);border-radius:10px;padding:10px 12px}.disc-card-head{text-align:left;cursor:pointer;width:100%;font:inherit;color:inherit;background:0 0;border:none;flex-direction:column;align-items:flex-start;padding:0 0 8px;display:flex}.disc-card-head:disabled{cursor:default}.disc-stats{margin:0}.disc-stats>div{border-top:1px solid var(--tg-divider);justify-content:space-between;align-items:center;padding:5px 0;display:flex}.disc-stats dt{color:var(--tg-text-2);font-size:13px}.disc-stats dd{margin:0}}.pe-tabs{border-bottom:0;flex-wrap:wrap;gap:4px}.pay-tabs.pe-tabs button{color:#3c4043;background:0 0;border:0;border-radius:17px;height:34px;padding:0 14px;font-size:14px;font-weight:500}.pay-tabs.pe-tabs button:hover{background:#e8eaed}.pay-tabs.pe-tabs button.active{color:#fff;background:#000}.pe-chips{flex-wrap:wrap;gap:8px;margin:4px 0 12px;display:flex}.pe-chip{height:34px;font:inherit;color:#202124;cursor:pointer;background:#fff;border:1px solid #e0e0e0;border-radius:17px;align-items:center;gap:6px;padding:0 14px;font-size:13px;display:inline-flex}.pay-filters button.pe-chip.active{color:#fff;background:#000;border-color:#000;outline:0;font-weight:600}.pe-count{color:#3c4043;box-sizing:border-box;background:#f1f3f4;border-radius:10px;justify-content:center;align-items:center;min-width:20px;height:20px;padding:0 6px;font-size:12px;display:inline-flex}.pe-chip.active .pe-count{color:#fff;background:#fff3}.pe-chip.bad:not(.active) .pe-count{color:#c5221f;background:#fce8e6}.pe-card{background:#fff;border-radius:14px}.pay-expected-actions button{height:32px;font:inherit;cursor:pointer;background:#fff;border:1px solid #e0e0e0;border-radius:10px;padding:0 14px;font-size:13px}.pay-expected-actions button:last-child{color:#fff;background:#5b5bd6;border-color:#5b5bd6}@media (width<=768px){.pe-tabs{flex-wrap:nowrap;overflow-x:auto}.pay-tabs.pe-tabs button{flex:none}.pe-chips{flex-wrap:nowrap;margin-left:-2px;padding-bottom:2px;overflow-x:auto}.pe-chip{flex:none}.pe-card{grid-template-columns:1fr auto;gap:8px 12px;padding:14px;align-items:start!important;display:grid!important}.pe-card .pay-expected-sum{text-align:right;grid-area:1/2;align-items:flex-end}.pe-card .pay-expected-sum strong{font-size:17px}.pe-card .pay-expected-main{grid-area:1/1;min-width:0}.pe-card .pay-expected-actions{grid-column:1/-1}.pe-card .pay-expected-actions button{flex:1;height:38px}}.summary-page{box-sizing:border-box;flex-direction:column;flex:1;gap:16px;min-height:0;padding:20px 28px 32px;display:flex;overflow-y:auto}.summary-head{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.summary-head h1{margin:0 12px 0 0;font-size:24px}.summary-chips{flex-wrap:wrap;gap:8px;display:flex}.summary-chip{border:1px solid var(--color-border-strong);background:var(--color-surface);height:32px;color:var(--color-text-secondary);cursor:pointer;border-radius:16px;padding:0 12px;font-size:13px;font-weight:500}.summary-chip.on{background:var(--color-text);border-color:var(--color-text);color:#fff}.summary-updated{margin-left:auto}.summary-muted{color:var(--color-text-secondary);font-size:13px}.summary-error{color:var(--color-danger-text)}.summary-good{color:var(--color-success-text);font-size:13px;font-weight:600}.summary-bad{color:var(--color-danger-text);font-weight:600}.summary-box{background:var(--color-surface);min-width:0;box-shadow:var(--shadow-card);border-radius:16px;flex-direction:column;gap:10px;padding:18px 20px;display:flex}.summary-h{font-size:16px;font-weight:700}.summary-k{font-variant-numeric:tabular-nums;font-size:28px;font-weight:700}.summary-k small{color:var(--color-text-secondary);font-size:14px;font-weight:500}.summary-small{font-size:13px}.summary-row-between{justify-content:space-between;align-items:baseline;gap:8px;display:flex}.summary-wrap{flex-wrap:wrap}.summary-big-row{flex-wrap:wrap;align-items:baseline;gap:10px;display:flex}.summary-link{color:var(--color-primary);cursor:pointer;background:0 0;border:none;padding:0;font-size:13px;font-weight:600}.summary-kpis{grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;display:grid}.summary-kpis .summary-plan{grid-column:span 2}.summary-cols{grid-template-columns:1.5fr 1fr;gap:16px;display:grid}.summary-cols-even{grid-template-columns:1fr 1fr}.summary-pb{background:#eef0f2;border-radius:4px;height:8px;position:relative;overflow:hidden}.summary-plan .summary-pb{border-radius:6px;height:12px;overflow:visible}.summary-pb i{background:var(--color-primary);border-radius:inherit;position:absolute;inset:0 auto 0 0}.summary-pb i.ok{background:var(--color-success)}.summary-pb i.low{background:var(--color-warning)}.summary-pb-mark{background:var(--color-text);width:2px;position:absolute;top:-3px;bottom:-3px}.summary-managers .summary-tr{grid-template-columns:1.4fr 1.8fr .7fr .9fr .8fr}.summary-sources.summary-tr{grid-template-columns:1.4fr .7fr .7fr 1fr .9fr}.summary-tr{border-bottom:1px solid var(--color-border);font-variant-numeric:tabular-nums;align-items:center;gap:10px;min-height:44px;font-size:14px;display:grid}.summary-th{min-height:28px;color:var(--color-text-secondary);font-size:12px;font-weight:600}.summary-name{overflow-wrap:anywhere;font-weight:500}.summary-cell-plan{flex-direction:column;gap:4px;display:flex}.summary-attn{border:none;border-bottom:1px solid var(--color-border);text-align:left;cursor:pointer;width:100%;min-height:44px;color:var(--color-text);background:0 0;border-radius:0;align-items:center;gap:10px;padding:0;font-size:14px;display:flex}.summary-attn:last-child{border-bottom:none}.summary-attn:hover{background:var(--color-surface-alt)}.summary-attn-label{flex:1}.summary-dot{border-radius:50%;flex-shrink:0;width:10px;height:10px}.summary-dot.red{background:var(--color-danger)}.summary-dot.yellow{background:#f2a600}.summary-dot.gray{background:#9aa0a6}.summary-dot.none{background:var(--color-success);opacity:.5}.summary-fn{grid-template-columns:150px 1fr 60px;align-items:center;gap:10px;min-height:30px;font-size:14px;display:grid}.summary-fn-track i{background:var(--color-primary);border-radius:6px;height:22px;display:block}.summary-fn-track i.paid{background:var(--color-success)}.summary-fn b{text-align:right}.summary-plan-modal label{margin-top:10px}.summary-plan-title{margin-top:16px;font-size:14px;font-weight:700}@media (width<=1100px){.summary-cols,.summary-cols-even{grid-template-columns:1fr}}@media (width<=767px){.summary-page{gap:10px;padding:12px 12px 20px}.summary-head h1{flex:1;margin:0;font-size:20px}.summary-updated{display:none}.summary-chips{flex-wrap:nowrap;width:100%;overflow-x:auto}.summary-chip{flex-shrink:0}.summary-box{gap:8px;padding:14px 16px}.summary-k{font-size:24px}.summary-kpis{grid-template-columns:1fr 1fr;gap:10px}.summary-kpis .summary-plan{order:-2;grid-column:1/-1}.summary-kpis .summary-today{order:-1;grid-column:1/-1}.summary-th{display:none}.summary-managers .summary-tr{grid-template-columns:1fr 1fr 1fr;padding:8px 0}.summary-managers .summary-name,.summary-managers .summary-cell-plan{grid-column:1/-1}.summary-managers [data-label]:before{content:attr(data-label) ": ";color:var(--color-text-secondary);font-size:12px}.summary-fn{grid-template-columns:110px 1fr 44px}.summary-sources.summary-tr{grid-template-columns:1.4fr .6fr .6fr 1fr .8fr;font-size:12px}}.calendar-switch{background:var(--color-surface-alt);border:1px solid var(--color-border);border-radius:10px;flex-shrink:0;align-self:flex-start;gap:4px;margin:10px 16px 0;padding:3px;display:inline-flex}.calendar-switch button{color:var(--color-text-secondary);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:5px 14px;font-size:13px;font-weight:500}.calendar-switch button.on{background:var(--color-surface);color:var(--color-text);box-shadow:var(--shadow-sm);font-weight:600}@media (width<=767px){.app-shell{overflow-x:clip}.employees-page,.analytics-page,.permissions-page,.my-tasks-page,.text-templates-page,.voice-templates-page,.report-page,.pay-page{box-sizing:border-box;min-width:0;max-width:100%;padding:16px}.my-tasks-page{padding:16px 12px}.analytics-page{gap:20px}.employees-toolbar{flex-wrap:wrap;gap:8px}:is(.employees-page,.analytics-page,.permissions-page,.my-tasks-page,.text-templates-page,.voice-templates-page,.report-page,.pay-page,.modal-box,.pay-modal,.kanban-toolbar) input:not([type=checkbox]):not([type=radio]),:is(.employees-page,.analytics-page,.permissions-page,.my-tasks-page,.text-templates-page,.voice-templates-page,.report-page,.pay-page,.modal-box,.pay-modal,.kanban-toolbar) select,:is(.employees-page,.analytics-page,.permissions-page,.my-tasks-page,.text-templates-page,.voice-templates-page,.report-page,.pay-page,.modal-box,.pay-modal) textarea{box-sizing:border-box;max-width:100%;min-height:44px;font-size:16px}:is(.employees-page,.analytics-page,.permissions-page,.my-tasks-page,.text-templates-page,.voice-templates-page,.report-page,.pay-page,.modal-box,.pay-modal) button{min-height:44px}:is(.employees-table,.analytics-table) button{min-height:36px}.employees-add-form,.voice-templates-form,.text-templates-form{box-sizing:border-box;width:100%;max-width:100%}.text-templates-page,.voice-templates-page{flex-direction:column;gap:20px}.text-templates-list{width:100%;min-width:0}.employees-table-wrap,.analytics-table-wrap{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;max-width:100%;overflow-x:auto}.employees-table th,.employees-table td,.analytics-table th,.analytics-table td{white-space:nowrap}.modal-overlay{justify-content:stretch;align-items:stretch;padding:0}.modal-box,.pay-modal{box-sizing:border-box;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border-radius:0;width:100%;max-width:100%;height:100%;max-height:100%;padding:16px;overflow-y:auto}.modal-box .modal-actions,.pay-modal .modal-actions{z-index:1;padding:12px 16px calc(12px + env(safe-area-inset-bottom,0px));background:var(--color-surface);border-top:1px solid var(--color-border);flex-wrap:wrap;gap:8px;margin:12px -16px 0;display:flex;position:sticky;bottom:0}.modal-box .modal-actions button,.pay-modal .modal-actions button{flex:auto}.kanban-toolbar{flex-wrap:wrap;gap:8px}.kanban-board{scroll-snap-type:x mandatory;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;gap:12px;padding:12px 16px;scroll-padding-inline:16px}.kanban-column{scroll-snap-align:start;width:85vw;max-width:340px}.permissions-page{flex-direction:column}.permissions-managers{border-right:none;border-bottom:1px solid var(--color-border);width:auto;padding:16px}.permissions-detail{box-sizing:border-box;width:100%;max-width:none;padding:16px}.distribution-editor{max-width:none;padding:16px}.report-filters-row{flex-direction:column;align-items:stretch}.report-filters-row>*{box-sizing:border-box;width:100%;max-width:100%}.report-filters-row .seg{flex-wrap:wrap}}
