:root{color-scheme:dark;--bg:#0b0e0d;--bg-accent:#121a16;--surface-sunken:#0c110e;--surface:#111613;--surface-hover:#121a15;--surface-strong:#171e19;--surface-muted:#1c251f;--line-soft:#1f2b25;--line:#2b3630;--line-strong:#415749;--text:#edf3ef;--text-muted:#9aa99f;--text-subtle:#7a8a80;--brand:#55e890;--brand-strong:#8af0b2;--on-brand:#092013;--success:#55e890;--warning:#e7bd70;--on-warning:#2a1e08;--danger:#ff9191;--danger-strong:#ffabab;--on-danger:#2b0b0b;--info:#83bde7;--link:#78aefc;--accent-blue:#82aeca;--overlay:#05070688;--overlay-strong:#05070699;--shadow:0 12px 32px #0005;--radius-lg:17px;--radius-md:12px;--radius-sm:12px;--font-display:"Avenir Next","Segoe UI",sans-serif;--font-body:"Avenir Next","Segoe UI",sans-serif}:root[data-theme=light]{color-scheme:light;--bg:#ffffff;--bg-accent:#f5f8fe;--surface-sunken:#ffffff;--surface:#ffffff;--surface-hover:#f8faff;--surface-strong:#f8f9fb;--surface-muted:#f1f3f7;--line-soft:#eceff4;--line:#e1e5ec;--line-strong:#c9d0db;--text:#172033;--text-muted:#556178;--text-subtle:#7d889d;--brand:#2563eb;--brand-strong:#1d4ed8;--on-brand:#ffffff;--success:#15803d;--warning:#b45309;--on-warning:#ffffff;--danger:#dc2626;--danger-strong:#b91c1c;--on-danger:#ffffff;--info:#0e7490;--link:#2563eb;--accent-blue:#8a9bb8;--overlay:#0f172a40;--overlay-strong:#0f172a59;--shadow:0 12px 32px #1e293b14}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;color:var(--text);font:14px/1.5 var(--font-body);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button{cursor:pointer}a,button,input,select,textarea{-webkit-tap-highlight-color:transparent}:focus-visible{outline:2px solid var(--brand);outline-offset:3px}::selection{background:color-mix(in srgb,var(--brand) 25.1%,transparent);color:var(--text)}*{scrollbar-width:thin;scrollbar-color:var(--line-strong) var(--bg)}input,select,textarea{min-width:0;max-width:100%;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);padding:8px 14px;min-height:36px}input::placeholder,textarea::placeholder{color:var(--text-subtle)}input:focus,select:focus,textarea:focus{outline:0;border-color:var(--line);box-shadow:inset 0 0 0 1px var(--brand)}input[type=checkbox]{display:grid;width:16px;height:16px;min-height:16px;flex-shrink:0;margin:0;padding:0;place-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--text-subtle);border-radius:5px;background:var(--surface-muted);transition:border-color .12s ease,background-color .12s ease}input[type=checkbox]:before{width:8px;height:4px;border-bottom:2px solid var(--on-brand);border-left:2px solid var(--on-brand);content:"";transform:translateY(-1px) rotate(-45deg) scale(0);transition:transform .12s ease}input[type=checkbox]:checked{border-color:var(--brand);border-radius:5px;background:var(--brand)}input[type=checkbox]:checked:before{transform:translateY(-1px) rotate(-45deg) scale(1)}input[type=checkbox]:focus{box-shadow:none}input[type=checkbox]:focus-visible{outline:2px solid var(--brand);outline-offset:3px}input:disabled,select:disabled{opacity:.55}textarea{resize:vertical}button:disabled{cursor:not-allowed;opacity:.5}.page-shell{min-height:100vh}.data-grid,.stack{display:flex;flex-direction:column;gap:16px;min-width:0}.glass-panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius-lg)}.section-title{margin:0;font:600 22px/1.25 var(--font-display);letter-spacing:-.025em}.section-copy{margin:0;color:var(--text-muted);line-height:1.5}.eyebrow{margin:0 0 4px;color:var(--brand);font-size:11px;font-weight:600;letter-spacing:.12em;text-transform:uppercase}.status-pill{gap:6px;padding:4px 9px;border:1px solid var(--line);border-radius:8px;color:var(--text-muted);font-size:12px}.button-primary,.button-secondary,.status-pill{display:inline-flex;align-items:center;white-space:nowrap}.button-primary,.button-secondary{justify-content:center;gap:8px;min-height:36px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);font-weight:600;transition:background-color .12s}.button-primary{background:var(--brand);border-color:var(--brand);color:var(--on-brand)}.button-primary:hover:not(:disabled){background:var(--brand-strong)}.button-secondary{background:var(--surface-strong);color:var(--text)}.button-secondary:hover:not(:disabled){background:var(--surface-muted)}.button-danger{color:var(--danger)}.field{display:flex;flex-direction:column;gap:6px;min-width:0}.field label,.field>span{color:var(--text-muted);font-size:14px}.field input,.field select,.field textarea{width:100%}.field--invalid .ui-select__trigger{border-color:var(--danger);box-shadow:inset 0 0 0 1px var(--danger)}.app-shell{padding:16px}.app-layout{display:grid;grid-template-columns:56px minmax(0,1fr);align-items:start;grid-gap:16px;gap:16px}.app-layout--open{grid-template-columns:220px minmax(0,1fr)}.app-sidebar{position:-webkit-sticky;position:sticky;top:16px;display:flex;flex-direction:column;gap:16px;min-height:calc(100dvh - 32px);padding:8px}.app-sidebar__toggle{display:flex;align-items:center;justify-content:center;min-height:38px;padding:8px;border:0;border-radius:8px;background:var(--surface-strong);color:var(--brand)}.app-sidebar__content{display:none;min-width:0;flex:1 1;flex-direction:column;gap:20px;padding:4px}.app-layout--open .app-sidebar__content{display:flex}.app-sidebar__intro .section-title{font-size:18px}.app-sidebar__intro .section-copy{font-size:12px}.app-sidebar__nav,.app-sidebar__session{display:flex;flex-direction:column;gap:6px}.app-sidebar__nav a{padding:10px;border-radius:14px;color:var(--text-muted)}.app-sidebar__nav a:hover{background:var(--surface-muted);color:var(--text)}.app-sidebar__nav a[aria-current=page]{background:color-mix(in srgb,var(--brand) 7.1%,transparent);color:var(--brand);box-shadow:inset 2px 0 var(--brand)}.app-sidebar__session{margin-top:auto}.app-sidebar__session .status-pill{white-space:normal;overflow-wrap:anywhere}.brand-wordmark{color:var(--brand);font-size:15px;font-weight:700;letter-spacing:.16em}.app-main{min-width:0}.client-switcher{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:14px 16px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.client-switcher h2{margin:0;font-size:17px;font-weight:600}.client-switcher__error{flex-basis:100%;margin:0;color:var(--danger)}.client-select{display:flex;align-items:center;gap:12px;width:min(100%,460px)}.client-select__label{flex:0 0 auto;color:var(--text-muted);font-size:14px}.client-select .ui-select{flex:1 1}.ui-select{width:100%;min-width:0}.ui-select__trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);text-align:left}.ui-select__trigger:focus-visible,.ui-select__trigger[aria-expanded=true]{outline:0;border-color:var(--line);box-shadow:inset 0 0 0 1px var(--brand)}.ui-select__placeholder{color:var(--text-subtle)}.ui-select__arrow{flex:0 0 16px;margin-left:auto;transition:transform .12s ease}.ui-select__arrow--open{transform:rotate(180deg)}.ui-select__popover{z-index:3300;display:flex;flex-direction:column;overflow:hidden;padding:4px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-strong);box-shadow:var(--shadow);transform-origin:top center;animation:dropdown-popover-enter .16s cubic-bezier(.22,1,.36,1) both}@keyframes dropdown-popover-enter{0%{opacity:0;transform:translateY(-4px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}.ui-select__search{display:flex;align-items:center;gap:8px;margin:2px 2px 4px;padding:0 8px;border:1px solid var(--line);border-radius:6px;color:var(--text-muted);background:var(--bg)}.ui-select__search:focus-within{border-color:var(--line);box-shadow:inset 0 0 0 1px var(--brand)}.ui-select__search input{width:100%;min-height:34px;padding:6px 0;border:0;background:transparent}.ui-select__search input:focus{border:0;outline:0;box-shadow:none}.ui-select__options{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.ui-select__search{flex:0 0 auto}.ui-select__option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:34px;padding:7px 14px;border:0;border-radius:6px;background:transparent;color:var(--text);text-align:left}.ui-select__option--active,.ui-select__option:focus-visible,.ui-select__option:hover{outline:0;background:var(--surface-muted)}.ui-select__option[aria-selected=true]{color:var(--brand)}.ui-select__color-label{display:inline-flex;align-items:center;min-height:25px;max-width:100%;padding:3px 8px;border-radius:10px;font-weight:500;line-height:1.25}.ui-select__empty{padding:12px 10px;color:var(--text-muted);font-size:12px;text-align:center}.card-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));grid-gap:12px;gap:12px}.summary-card{padding:12px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.summary-card span{color:var(--text-muted);font-size:12px}.summary-card strong{font-size:24px;font-weight:600;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.summary-card--success strong{color:var(--brand)}.summary-card--warning strong{color:var(--warning)}.form-panel{padding:16px}.target-panel{display:flex;flex-direction:column;padding:24px;gap:24px}.target-panel__intro{gap:8px}.target-panel__form{gap:18px}.target-panel__form input[type=number]{max-width:200px}.target-panel__actions{display:flex;align-items:center;gap:14px}.compact-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end;grid-gap:12px;gap:12px}.table-card{overflow:hidden}.table-card__heading{padding:16px}.manager-channel-table-scroll,.table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}.manager-channel-table,.table-card table{width:100%;border-collapse:separate;border-spacing:0;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}th{background:var(--surface-strong);color:var(--text-muted);font-size:13px;font-weight:600;letter-spacing:.045em;white-space:nowrap}.manager-channel-table td,.manager-channel-table th,.table-card td,.table-card th{padding:10px 14px;text-align:left;border-bottom:1px solid var(--line)}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:color-mix(in srgb,var(--text) 1.2%,transparent)}tbody tr{animation:table-row-enter .18s cubic-bezier(.22,1,.36,1) both}tbody tr:nth-child(2){animation-delay:16ms}tbody tr:nth-child(3){animation-delay:32ms}tbody tr:nth-child(4){animation-delay:48ms}tbody tr:nth-child(5){animation-delay:64ms}tbody tr:nth-child(6){animation-delay:80ms}tbody tr:nth-child(7){animation-delay:96ms}tbody tr:nth-child(8){animation-delay:112ms}tbody tr:nth-child(9){animation-delay:128ms}tbody tr:nth-child(10){animation-delay:144ms}tbody tr:nth-child(11){animation-delay:.16s}tbody tr:nth-child(12){animation-delay:176ms}tbody tr:nth-child(n+13){animation-delay:192ms}@keyframes table-row-enter{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}.manager-channel-board,.manager-channel-toolbar{display:flex;flex-direction:column;gap:14px;min-width:0}.manager-channel-toolbar{padding:16px}.manager-channel-toolbar__summary{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;grid-gap:14px;gap:14px}.manager-channel-toolbar__primary{display:flex;align-items:center;gap:14px;min-width:0}.manager-channel-toolbar__secondary{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:max-content}.manager-channel-view-switch{position:relative;display:inline-grid;flex:0 0 auto;grid-template-columns:repeat(2,minmax(116px,1fr));align-items:center;height:40px;padding:3px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);isolation:isolate}.manager-channel-view-switch:before{position:absolute;top:3px;bottom:3px;left:3px;z-index:0;width:calc((100% - 6px) / 2);border-radius:9px;background:var(--surface-muted);content:"";transform:translateX(0);transition:transform .22s cubic-bezier(.22,1,.36,1)}.manager-channel-view-switch--archive:before{transform:translateX(100%)}.manager-channel-view-switch__button{position:relative;z-index:1;min-height:34px;padding:0 14px;border:0;border-radius:9px;background:transparent;color:var(--text-muted);font:inherit;font-size:14px;font-weight:400;cursor:pointer;transition:color .16s ease}.manager-channel-view-switch__button:hover{color:var(--text)}.manager-channel-view-switch__button--active,.manager-channel-view-switch__button--active:hover{background:transparent;color:var(--brand)}.manager-channel-toolbar__stats{display:flex;align-items:center;flex-wrap:wrap;gap:14px}.manager-channel-toolbar__stats--balance{flex:0 0 auto;flex-wrap:nowrap}.manager-channel-toolbar .status-pill{padding-right:16px;padding-left:16px;font-size:14px;font-weight:400}.manager-channel-toolbar__stats--balance .status-pill{justify-content:center;min-width:104px}.admin-clients-table{min-width:2200px}.admin-clients-table td{max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.manager-channel-table-shell{position:relative;min-width:0;overflow:hidden}.manager-channel-table-shell--refreshing .manager-channel-table-scroll{opacity:.62;pointer-events:none}.manager-channel-table-refresh{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;gap:8px;color:var(--brand);font-size:12px;font-weight:600;pointer-events:none}.manager-channel-table-refresh:before{position:absolute;inset:0;content:"";background:color-mix(in srgb,var(--bg) 20%,transparent)}.manager-channel-table-refresh>*{position:relative}.manager-channel-table-scroll{transition:opacity .12s ease}.manager-channel-table{min-width:1760px;table-layout:fixed}.manager-channel-table__col-selection{width:48px}.manager-channel-table__col-status{width:72px}.manager-channel-table__col-name{width:260px}.manager-channel-table__col-source{width:220px}.manager-channel-table__col-limit,.manager-channel-table__col-megafon-lead,.manager-channel-table__col-run{width:80px}.manager-channel-table__col-total{width:120px}.manager-channel-table__col-conversion{width:110px}.manager-channel-table__col-late,.manager-channel-table__col-megafon-total,.manager-channel-table__col-not-lead,.manager-channel-table__col-remaining{width:90px}.manager-channel-table__col-uploaded{width:105px}.manager-channel-table__col-updated{width:130px}.manager-channel-table__col-actions{width:92px}.manager-channel-table td,.manager-channel-table th{height:52px;padding:8px 14px;text-align:center;vertical-align:middle;white-space:nowrap}.manager-channel-table th{height:40px}.manager-channel-sort{display:inline-flex;align-items:center;justify-content:center;gap:5px;padding:4px 6px;border:0;border-radius:6px;background:transparent;color:inherit;font:inherit;font-weight:inherit}.manager-channel-sort:hover{background:var(--surface-muted);color:var(--text)}.manager-channel-sort span{color:var(--text-muted);transition:color .12s ease}.manager-channel-sort--active,.manager-channel-sort--active span{color:var(--brand)}.manager-channel-table td strong{font-size:13px;font-weight:600}.manager-channel-table__name{max-width:260px;overflow:hidden;text-overflow:ellipsis;text-align:center!important}.local-only-badge{border-radius:4px;background:var(--brand);color:var(--on-brand)}.local-only-badge,.megafon-route-badge{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;font-size:10px;font-weight:700;line-height:1;vertical-align:middle}.megafon-route-badge{border:1px solid var(--brand);border-radius:4px;color:var(--brand)}.channel-sync-error-badge{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;margin-left:6px;border:1px solid var(--danger);border-radius:50%;color:var(--danger);font-size:11px;font-weight:700;line-height:1;vertical-align:middle}.manager-channel-table__source{max-width:220px;overflow:hidden;text-overflow:ellipsis}.manager-channel-source-button{display:block;width:100%;overflow:hidden;padding:5px 7px;border:0;border-radius:7px;background:transparent;color:var(--text);font:inherit;text-overflow:ellipsis;white-space:nowrap;transition:color .12s ease,background-color .12s ease}.manager-channel-source-button:hover{background:var(--surface-muted);color:var(--brand)}.manager-channel-table__selection{width:48px;min-width:48px;padding-right:14px!important;padding-left:14px!important}.manager-channel-selection-control{display:grid;width:32px;height:32px;margin:-8px auto;place-items:center;cursor:pointer}.manager-channel-selection-control:has(input:disabled){cursor:not-allowed}.manager-channel-table__selection input{display:grid;width:16px;height:16px;margin:0 auto;padding:0;place-content:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:1px solid var(--text-subtle);border-radius:5px;background:var(--surface-muted)}.manager-channel-table__selection input:before{width:8px;height:4px;border-bottom:2px solid var(--on-brand);border-left:2px solid var(--on-brand);content:"";transform:translateY(-1px) rotate(-45deg) scale(0)}.manager-channel-table__selection input:checked{border-color:var(--brand);background:var(--brand)}.manager-channel-table__selection input:checked:before{transform:translateY(-1px) rotate(-45deg) scale(1)}.manager-channel-table__selection input:indeterminate{border-color:var(--brand);background:var(--brand)}.manager-channel-table__selection input:indeterminate:before{width:8px;height:0;border:0;border-top:2px solid var(--on-brand);transform:none}.manager-channel-table__status{width:64px;min-width:64px;line-height:0}.manager-channel-table__status .manager-switch{min-height:20px;vertical-align:middle}.manager-channel-table__actions{width:92px;min-width:92px}.manager-channel-row--busy td,.manager-channel-row--selected td{background:color-mix(in srgb,var(--brand) 3.1%,transparent)}.manager-source-list{display:flex;flex-wrap:wrap;gap:4px}.manager-source-pill{display:inline-flex;align-items:center;gap:10px;max-width:100%;min-height:36px;border:1px solid var(--line);border-radius:6px;padding:6px 14px;color:var(--text-muted);font-size:13px;overflow-wrap:anywhere}.manager-source-pill button{border:0;border-radius:5px;background:transparent;color:var(--danger);width:22px;height:22px}.manager-source-pill button:hover{background:color-mix(in srgb,var(--danger) 9.4%,transparent)}.channel-source-details-overlay{animation-duration:.1s}.channel-source-details-overlay .channel-source-details{animation-duration:.12s}.channel-source-details-overlay.modal-overlay--closing,.channel-source-details-overlay.modal-overlay--closing .channel-source-details{animation-duration:90ms}.channel-source-details{gap:20px}.channel-source-details__list{display:flex;flex-direction:column;gap:8px;margin:0;padding:0;list-style:none;counter-reset:none}.channel-source-details__list li{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;grid-gap:10px;gap:10px;min-height:42px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg)}.channel-source-details__list li>span{color:var(--text-muted);font-size:12px;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.channel-source-details__list li>strong{min-width:0;font-weight:400;overflow-wrap:anywhere}.megafon-board{display:flex;min-width:0;flex-direction:column;gap:20px}.megafon-toolbar{align-items:center;justify-content:space-between}.megafon-toolbar,.megafon-toolbar>div{display:flex;flex-wrap:wrap;gap:14px}.megafon-toolbar .status-pill{min-height:40px;padding-inline:14px;font-size:14px}.megafon-toolbar .button-primary{height:40px}.megafon-table-shell{position:relative;min-height:132px}.megafon-table-shell--loading .table-scroll{opacity:.38}.megafon-table-loader{position:absolute;z-index:2;top:72px;left:calc(50% - 8px)}.megafon-table{min-width:1080px;table-layout:fixed}.megafon-table td,.megafon-table th{height:52px;padding:8px 14px;text-align:center;vertical-align:middle;white-space:nowrap}.megafon-table th{height:40px}.megafon-table th:first-child{width:90px}.megafon-table th:nth-child(2){width:220px}.megafon-table th:nth-child(3){width:150px}.megafon-table th:nth-child(4){width:100px}.megafon-table th:nth-child(5){width:360px}.megafon-table th:nth-child(6){width:140px}.megafon-table__routes{overflow:hidden;text-overflow:ellipsis}.megafon-modal{max-width:760px;gap:20px}.megafon-modal .field{gap:8px}.megafon-modal .field>span{font-size:14px}.megafon-modal__status{display:flex;align-items:center;justify-content:space-between;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:var(--radius-sm);color:var(--text-muted)}.megafon-modal__clients{display:flex;flex-direction:column;gap:12px}.megafon-client-block{display:flex;flex-direction:column;gap:10px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface)}.megafon-client-block__row{display:flex;align-items:flex-end;gap:10px}.megafon-client-block__row .field{flex:1 1 auto;min-width:0}.megafon-modal__add-client{align-self:flex-start}.manager-channel-actions{display:flex;align-items:center;justify-content:center;gap:6px}.manager-channel-bulk-bar{display:flex;align-items:center;gap:12px;min-height:58px;padding:10px 12px;border-top:1px solid var(--line)}.manager-channel-bulk-bar__select{width:220px}.manager-channel-bulk-bar__count{color:var(--text-muted);font-size:12px;white-space:nowrap}.manager-switch{position:relative;display:inline-flex;align-items:center;gap:8px;min-height:36px;color:var(--text-muted);font-size:12px;cursor:pointer}.manager-switch input{position:absolute;opacity:0;width:1px;height:1px}.manager-switch__track{position:relative;width:34px;height:20px;border-radius:20px;background:var(--line-strong);flex-shrink:0}.manager-switch__track:after{content:"";position:absolute;top:3px;left:3px;width:14px;height:14px;border-radius:50%;background:var(--text);transition:transform .12s}.manager-switch input:checked+.manager-switch__track{background:var(--brand)}.manager-switch input:checked+.manager-switch__track:after{transform:translateX(14px);background:var(--on-brand)}.manager-switch input:focus-visible+.manager-switch__track{outline:2px solid var(--brand);outline-offset:3px}.manager-channel-busy{display:inline-flex;align-items:center;gap:8px;color:var(--brand);font-size:12px}.manager-channel-busy--inline{margin-top:8px}.loading-spinner{display:inline-block;width:16px;height:16px;flex-shrink:0;border:2px solid var(--line);border-top-color:var(--brand);border-radius:50%;animation:spin .8s linear infinite}.loading-indicator{display:grid;min-height:96px;place-items:center}.loading-indicator--fullscreen{min-height:100dvh}.loading-indicator--fullscreen .loading-spinner{width:22px;height:22px}@keyframes spin{to{transform:rotate(1turn)}}.region-multi-select{position:relative;min-width:0;width:100%;display:flex;flex-direction:column;gap:6px}.region-multi-select__trigger{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:36px;padding:8px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg);color:var(--text);text-align:left}.region-multi-select__trigger:focus-visible,.region-multi-select__trigger[aria-expanded=true]{outline:0;border-color:var(--line);box-shadow:inset 0 0 0 1px var(--brand)}.region-multi-select__trigger>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.region-multi-select__arrow{width:16px;height:16px;margin-left:auto;flex:0 0 16px;color:var(--text-muted);transition:transform .12s ease}.region-multi-select__arrow--open{transform:rotate(180deg)}.region-multi-select__popover{z-index:3300;display:flex;flex-direction:column;padding:4px;border:1px solid var(--line-strong);border-radius:var(--radius-sm);background:var(--surface-strong);box-shadow:var(--shadow);max-height:calc(100dvh - 24px);overflow:hidden;transform-origin:top center;animation:dropdown-popover-enter .16s cubic-bezier(.22,1,.36,1) both}.region-multi-select__popover--portal{position:fixed}.region-multi-select__search{display:flex;align-items:center;gap:8px;margin:2px 2px 4px;padding:0 8px;border:1px solid var(--line);border-radius:6px;color:var(--text-muted);background:var(--bg)}.region-multi-select__search:focus-within{border-color:var(--line);box-shadow:inset 0 0 0 1px var(--brand)}.region-multi-select__search svg{width:16px;height:16px;flex:0 0 16px;stroke:currentColor;stroke-width:1.5;stroke-linecap:round}.region-multi-select__search input{width:100%;min-height:34px;padding:6px 0;border:0;border-radius:0;background:transparent;box-shadow:none}.region-multi-select__search input:focus{border:0;outline:0;box-shadow:none}.region-multi-select__list{display:flex;min-height:0;flex:1 1 auto;flex-direction:column;max-height:240px;overflow:auto;overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch}.region-option{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:34px;padding:7px 14px;border:0;border-radius:6px;background:transparent;color:var(--text);font-size:14px;text-align:left;cursor:pointer}.region-option:hover{background:var(--surface-muted)}.region-option[aria-selected=true]{color:var(--brand)}.region-option__check{width:16px;height:16px;flex:0 0 16px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.region-multi-select__selected{display:flex;flex-wrap:wrap;gap:4px}.region-chip{border:1px solid var(--line);border-radius:6px;background:var(--surface-muted);color:var(--text);padding:4px 8px;font-size:12px}.operator-page{display:flex;flex-direction:column;gap:14px;padding:16px;min-width:0}.operator-page__header,.operator-queue__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px}.operator-page__session{display:flex;align-items:center;gap:8px}.operator-queue{display:flex;flex-direction:column;gap:12px;min-width:0}.operator-queue-mode-switcher{position:relative;display:inline-grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:center;width:min(100%,360px);height:40px;padding:3px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);isolation:isolate}.operator-queue-mode-switcher:before{position:absolute;top:3px;bottom:3px;left:3px;z-index:0;width:calc((100% - 6px) / 2);border-radius:9px;background:var(--surface-muted);content:"";transform:translateX(0);transition:transform .22s cubic-bezier(.22,1,.36,1)}.operator-queue-mode-switcher--control:before{transform:translateX(100%)}.operator-queue-mode-switcher__button{position:relative;z-index:1;min-height:34px;padding:0 8px;border:0;border-radius:9px;background:transparent;color:var(--text-muted);font:inherit;font-size:14px;font-weight:400;white-space:nowrap;cursor:pointer;transition:color .16s ease}.operator-queue-mode-switcher__button:hover{color:var(--text)}.operator-queue-mode-switcher__button--active,.operator-queue-mode-switcher__button--active:hover{color:var(--brand)}.client-switcher--operator-queue .client-select{width:min(100%,360px)}.operator-filters{display:grid;grid-template-columns:220px minmax(180px,1fr) 130px;align-items:end;grid-gap:12px;gap:12px;padding:14px}.operator-filters__apply{display:flex;padding:0 10px}.operator-action-button{width:110px}.operator-contact-table-scroll{position:relative;width:100%;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface)}.operator-contact-table-scroll--loading tbody{opacity:.42;pointer-events:none}.operator-contact-table__loader{position:absolute;z-index:2;top:58px;left:calc(50% - 8px)}.manager-contacts-page{display:flex;min-width:0;flex-direction:column;gap:20px}.manager-contacts-filters{display:grid;grid-template-columns:minmax(220px,320px) minmax(280px,1fr) 140px;align-items:end;grid-gap:12px;gap:12px;padding-bottom:20px;border-bottom:1px solid var(--line)}.manager-contacts-filters__apply{width:140px}.manager-contacts-summary .incoming-contacts-page-size{margin-left:auto}.manager-contacts-table{position:relative;max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface)}.manager-contacts-table table{width:100%;min-width:1320px;border-collapse:separate;border-spacing:0;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.manager-contacts-table td,.manager-contacts-table th{height:48px;padding:8px 14px;border-bottom:1px solid var(--line);text-align:left;white-space:nowrap}.manager-contacts-table tbody tr:last-child td{border-bottom:0}.manager-contacts-table--loading tbody{opacity:.42;pointer-events:none}.manager-contacts-table__loader{position:absolute;z-index:2;top:58px;left:calc(50% - 8px)}.manager-contacts-table__date{color:var(--text-muted);font-size:12px}.manager-contacts-table__phone{color:var(--text);font-weight:600}.operator-contact-table{width:100%;min-width:1450px;table-layout:fixed;border-collapse:separate;border-spacing:0;font-feature-settings:"tnum";font-variant-numeric:tabular-nums}.operator-contact-table--readonly{min-width:1180px}.operator-contact-table--control-call{min-width:1530px}.incoming-contacts-table__summary.operator-contact-table__summary{display:grid;grid-template-columns:1fr auto 1fr}.operator-contact-table__summary-primary{display:flex;align-items:center;gap:14px}.operator-contact-table__selection-count{font-size:14px}.operator-contact-table__summary .incoming-contacts-page-size{justify-self:end}.operator-contact-table td,.operator-contact-table th{height:54px;padding:8px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle}.operator-contact-table th{height:40px;background:var(--surface-strong)}.operator-contact-table tbody tr:last-child td{border-bottom:0}.operator-contact-table tbody tr:hover{background:color-mix(in srgb,var(--text) 1.2%,transparent)}.operator-contact-table input:not([type=checkbox]){width:100%;height:36px}.operator-contact-table__phone{width:150px}.operator-contact-table__control-call-number{width:80px;text-align:center!important}.operator-contact-table__channel{width:220px}.operator-contact-table__name{width:180px}.operator-contact-table__location{width:170px}.operator-contact-table__status{width:250px}.operator-contact-table__comment{width:330px}.operator-contact-table__attempt{width:90px}.operator-contact-table__attempt input{text-align:center}.operator-contact-table__last-call{width:150px;color:var(--text-muted);font-size:13px;line-height:1.35}.operator-contact-table__last-call>span:not(.status-pill){display:block}.operator-contact-table__last-call .status-pill{margin-bottom:3px}.operator-contact-table__actions{width:130px}.operator-contact-table__status .ui-select__color-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.operator-contact-row--busy{background:color-mix(in srgb,var(--brand) 3.1%,transparent)}.operator-contact-actions{display:flex;align-items:center;justify-content:flex-start;gap:10px}.operator-empty{padding:24px;text-align:center;color:var(--text-muted)}.admin-staff-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}.admin-staff-toolbar .field{width:240px}.app-main .admin-directory-card .table-card__heading{padding:10px 0 30px}.app-main>.admin-directory-controls{margin-top:10px;margin-bottom:10px}.admin-channel-client-picker{display:flex;align-items:center;justify-content:space-between;gap:20px;padding-bottom:16px;border-bottom:1px solid var(--line)}.admin-channel-client-picker .section-title{font-size:16px}.admin-channel-client-picker__select{width:min(100%,520px)}.admin-channel-client-picker .manager-channel-view-switch,.admin-channel-client-picker .ui-select__trigger,.manager-channel-toolbar .button-primary,.manager-channel-toolbar .status-pill{height:40px;min-height:40px}.admin-staff-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px}.icon-button{display:grid;place-items:center;width:32px;height:32px;flex-shrink:0;border:1px solid var(--line);border-radius:8px;background:transparent;color:var(--text-muted)}.icon-button:hover:not(:disabled){background:var(--surface-muted);color:var(--text)}.icon-button--danger:hover:not(:disabled){color:var(--danger);border-color:color-mix(in srgb,var(--danger) 30%,var(--surface))}.modal-overlay{position:fixed;inset:0;z-index:3200;display:grid;place-items:center;padding:16px;overflow:auto;overscroll-behavior:contain;background:var(--overlay);animation:modal-overlay-enter .14s ease-out both}.modal-panel{width:100%;max-width:420px;max-height:calc(100dvh - 32px);overflow-y:auto;overscroll-behavior:contain;padding:24px;display:flex;flex-direction:column;gap:16px;transform-origin:center;animation:modal-panel-enter .18s cubic-bezier(.22,1,.36,1) both}@keyframes modal-overlay-enter{0%{background-color:transparent}to{background-color:var(--overlay)}}@keyframes modal-panel-enter{0%{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}.modal-overlay--closing{pointer-events:none;animation:modal-overlay-exit .14s ease-in both}.modal-overlay--closing .modal-panel{animation:modal-panel-exit .14s ease-in both}@keyframes modal-overlay-exit{0%{background-color:var(--overlay)}to{background-color:transparent}}@keyframes modal-panel-exit{0%{opacity:1;transform:translateY(0) scale(1)}to{opacity:0;transform:translateY(6px) scale(.985)}}.modal-panel--wide{max-width:640px}.modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px}.user-form-modal{padding-block:28px;gap:20px}.user-form-modal__form{gap:22px}.user-form-modal__form .field{gap:8px}.user-form-modal__form .field label,.user-form-modal__form .field>span{font-size:14px}.client-form-modal{padding-block:28px;gap:20px}.client-form-modal__form{gap:22px}.client-form-modal__grid{column-gap:16px;row-gap:20px}.client-form-modal__form .field{gap:8px}.client-form-modal__form .field label,.client-form-modal__form .field>span{font-size:14px}.client-form-modal__call-center{grid-column:1;align-self:end;font-size:14px}.client-form-modal__paid-kc-details{grid-column:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:12px;gap:12px}.client-form-modal__niche{grid-column:1}.client-form-modal__specialization{grid-column:2}.client-form-modal__comment{grid-column:1/-1}.client-form-modal__grid .client-form-modal__comment textarea{height:40px;min-height:40px;resize:none}.channel-editor-modal{max-width:760px}.channel-editor-modal__header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.channel-editor-modal__grid{display:grid;grid-template-columns:minmax(0,1fr) 140px 100px;align-items:start;grid-gap:16px;gap:16px}.channel-editor-modal__grid .field{gap:8px}.channel-editor-modal__grid .field label,.channel-editor-modal__grid .field>span{font-size:14px}.channel-editor-modal__status{align-items:center;text-align:center}.channel-editor-modal__local{grid-column:1/-1;flex-direction:row;justify-content:space-between;min-height:40px;padding:0 14px;border:1px solid var(--line);border-radius:var(--radius-sm);text-align:left}.channel-editor-modal__local .manager-switch{margin-right:18px}.channel-editor-modal__source-type{grid-column:1}.channel-editor-modal__regions{grid-column:2/-1}.channel-editor-modal__regions--full,.channel-editor-modal__source-input{grid-column:1/-1}.channel-editor-modal__source-input textarea{min-height:84px;resize:vertical}.channel-editor-modal__projects{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--line);color:var(--text-muted);font-size:14px}.channel-editor-modal__projects-label{color:var(--text-muted);font-size:13px}.channel-editor-modal__sync-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.channel-sync-status{font-size:13px}.channel-sync-status--synced{color:var(--brand)}.channel-sync-status--failed{color:var(--danger)}.channel-sync-error-message{margin:0;color:var(--danger);font-size:13px;white-space:pre-line}.channel-editor-modal__projects+.modal-actions{margin-top:4px}.channel-editor-modal__actions{justify-content:space-between}.channel-editor-modal__actions-main{display:flex;align-items:center;gap:10px;margin-left:auto}.channel-editor-modal__local-launch{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--bg)}.channel-editor-modal__local-launch>div{display:flex;min-width:0;flex-direction:column;gap:4px}.channel-editor-modal__local-launch strong{font-size:14px;font-weight:500}.channel-editor-modal__local-launch span{color:var(--text-muted);font-size:13px}.channel-project-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-gap:8px;gap:8px}.channel-project-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;padding:9px 14px;border:1px solid var(--line);border-radius:8px;background:var(--bg)}.channel-project-item code{overflow:hidden;color:var(--text);font-family:inherit;font-feature-settings:"tnum";font-variant-numeric:tabular-nums;text-overflow:ellipsis;white-space:nowrap}.channel-editor-modal__sources{display:flex;flex-direction:column;gap:8px;padding-top:16px;border-top:1px solid var(--line);color:var(--text-muted);font-size:14px}.modal-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-gap:16px;gap:16px}.modal-form-grid__full{grid-column:1/-1}.modal-form-grid textarea{width:100%;min-height:72px;resize:vertical}.button-danger-solid{background:var(--danger);border-color:var(--danger);color:var(--on-danger)}.button-danger-solid:hover:not(:disabled){background:var(--danger-strong)}.page-state{margin:16px;padding:16px}.app-main .page-state,.operator-page .page-state{margin:0}.page-state--danger{background:color-mix(in srgb,var(--danger) 10%,var(--surface));border-color:color-mix(in srgb,var(--danger) 30%,var(--surface));color:var(--danger)}.page-state .section-title{font-size:18px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media (max-width:700px){.app-shell,.operator-page{padding:10px}.app-layout,.app-layout--open{grid-template-columns:minmax(0,1fr);gap:10px}.app-sidebar{position:static;min-height:auto}.app-sidebar__toggle{justify-content:flex-start}.app-layout--open .app-sidebar__content{gap:12px}.client-switcher{align-items:stretch}.client-switcher label{width:100%}.client-switcher select{flex:1 1;width:100%;min-width:0}.client-select{width:100%}.admin-channel-client-picker{align-items:stretch;flex-direction:column}.admin-channel-client-picker__select{width:100%}.manager-channel-toolbar__summary{grid-template-columns:minmax(0,1fr)}.manager-channel-toolbar__primary,.manager-channel-toolbar__secondary,.manager-channel-toolbar__stats--balance{align-items:flex-start;flex-direction:column}.manager-channel-toolbar__secondary{justify-content:flex-start;min-width:0}.channel-editor-modal__grid,.client-form-modal__grid,.operator-filters{grid-template-columns:minmax(0,1fr)}.client-form-modal__call-center,.client-form-modal__comment,.client-form-modal__niche,.client-form-modal__paid-kc-details,.client-form-modal__specialization{grid-column:auto}.client-form-modal__paid-kc-details{grid-template-columns:minmax(0,1fr)}.channel-editor-modal__regions,.channel-editor-modal__source-input{grid-column:auto}.channel-editor-modal__local .manager-switch{margin-right:0}.channel-project-list{grid-template-columns:1fr}.operator-page__header,.operator-queue__header{flex-wrap:wrap}.card-grid{grid-template-columns:1fr}input,select,textarea{font-size:16px}}@media (prefers-reduced-motion:reduce){*,:after,:before{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}}