:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f3f6f8}html,body,#root{height:100%;min-height:100%}body{margin:0;box-sizing:border-box;padding:0;background:#f3f6f8}button,input,select,textarea{font:inherit}button{cursor:pointer}#telegram-hub-flow{--thf-bg:#f3f6f8;--thf-app:#ffffff;--thf-panel:#f9fbfc;--thf-raised:#edf3f6;--thf-border:#d9e2e8;--thf-text:#14212b;--thf-muted:#5c6b78;--thf-faint:#7a8997;--thf-primary:#0f766e;--thf-primary-2:#115e59;--thf-blue:#2563eb;--thf-green:#16803c;--thf-orange:#b45309;--thf-red:#c2410c;--thf-purple:#7c3aed;--thf-shadow:0 18px 48px rgba(18,31,43,.14);height:100vh;min-height:640px;border:0;border-radius:0;overflow:hidden;color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:var(--thf-bg);color:var(--thf-text);box-sizing:border-box}#telegram-hub-flow *,#telegram-hub-flow *:before,#telegram-hub-flow *:after{box-sizing:border-box}#telegram-hub-flow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}.thf-app{height:100%;min-height:0;display:grid;grid-template-columns:78px minmax(0,1fr);background:var(--thf-bg)}#telegram-hub-flow.is-inbox-layout{height:100vh;min-height:640px}.is-inbox-layout .thf-app,.is-inbox-layout .thf-main{height:100%;min-height:0}.thf-sidebar{background:#17212b;color:#f8fafc;display:flex;flex-direction:column;gap:16px;align-items:center;padding:16px 10px}.thf-brand{display:flex;align-items:center;gap:10px;justify-content:center;width:100%;padding:2px 0 14px;border-bottom:1px solid rgba(255,255,255,.13)}.thf-logo{width:32px;height:32px;border-radius:8px;background:var(--thf-primary);display:grid;place-items:center;color:#fff;flex:0 0 auto}.thf-brand-text,.thf-nav-label,.thf-side-status{display:none}.thf-brand-name{font-size:14px;font-weight:780;line-height:1.15}.thf-brand-sub{margin-top:3px;color:#a7b4c2;font-size:12px;line-height:1.25}.thf-nav{display:grid;gap:4px;justify-items:center;width:100%}.thf-nav-btn{width:54px;min-height:38px;border:0;border-radius:7px;padding:8px;color:#cbd5e1;background:transparent;display:flex;align-items:center;justify-content:center;gap:10px;text-align:left;font-size:14px;font-weight:640}.thf-nav-btn:hover{background:#ffffff14}.thf-nav-btn.is-active{color:#fff;background:#14b8a629;box-shadow:inset 3px 0 #14b8a6}.thf-side-status{margin-top:auto;border:1px solid rgba(255,255,255,.13);border-radius:8px;padding:10px;color:#cbd5e1;font-size:12px;line-height:1.38}.thf-main{min-width:0;display:grid;grid-template-rows:62px minmax(0,1fr)}.thf-header{background:var(--thf-app);border-bottom:1px solid var(--thf-border);display:flex;align-items:center;justify-content:space-between;gap:14px;padding:0 20px;min-width:0}.thf-title{margin:0;font-size:18px;line-height:1.2;font-weight:780;letter-spacing:0}.thf-subtitle{margin-top:3px;color:var(--thf-muted);font-size:12px;line-height:1.3}.thf-owner{color:var(--thf-muted);font-size:12px;white-space:nowrap}.thf-header-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.thf-content{min-width:0;min-height:0;padding:16px 20px 20px;display:flex;flex-direction:column;gap:12px;overflow:hidden}.thf-content.is-inbox-mode{gap:0}.is-inbox-layout .thf-content{align-content:stretch;overflow:hidden}.thf-content.is-inbox-mode .thf-metrics{display:none}.thf-metrics{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;align-self:start}.thf-metric{width:fit-content;min-width:86px;min-height:54px;background:var(--thf-app);border:1px solid var(--thf-border);border-radius:8px;padding:7px 10px;display:grid;gap:4px;align-content:center}.thf-num{font-size:20px;line-height:1;font-weight:780;font-variant-numeric:tabular-nums}.thf-label{color:var(--thf-muted);font-size:11px;line-height:1.25}.thf-board{min-width:0;min-height:0;flex:1 1 auto;display:grid}.is-inbox-layout .thf-board{height:100%;display:grid}.thf-view{display:none;min-height:0}.thf-view.is-active{display:grid;gap:12px}.thf-accounts-view.is-active{grid-template-columns:1fr;height:100%}.thf-inbox-view.is-active{display:grid;grid-template-columns:minmax(300px,320px) minmax(0,1fr);align-items:stretch;min-height:650px}.is-inbox-layout .thf-inbox-view.is-active{height:100%;min-height:0}.thf-panel{background:var(--thf-app);border:1px solid var(--thf-border);border-radius:8px;min-width:0;overflow:hidden}.thf-accounts-panel{min-height:0;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto}.thf-panel-head{min-height:46px;border-bottom:1px solid var(--thf-border);padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--thf-panel)}.thf-panel-title{font-size:13px;font-weight:780;line-height:1.25}.thf-small{color:var(--thf-muted);font-size:12px;line-height:1.4}.thf-search{position:relative;min-width:220px}.thf-search svg{position:absolute;top:50%;left:9px;width:16px;height:16px;color:var(--thf-faint);transform:translateY(-50%)}.thf-input{min-height:32px;width:100%;border:1px solid var(--thf-border);border-radius:7px;background:var(--thf-app);color:var(--thf-text);padding:0 9px 0 32px;font-size:12px}.thf-btn{min-height:34px;border-radius:7px;border:1px solid var(--thf-border);background:var(--thf-app);color:var(--thf-text);display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:0 11px;font-size:12px;font-weight:730;transition:background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease;white-space:nowrap}.thf-btn:hover:not(:disabled){background:var(--thf-raised)}.thf-btn:focus-visible,textarea:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(20,184,166,.36);outline-offset:2px}.thf-btn.primary{background:var(--thf-primary);border-color:var(--thf-primary);color:#fff}.thf-btn.primary:hover:not(:disabled){background:var(--thf-primary-2);border-color:var(--thf-primary-2)}.thf-btn.danger{color:var(--thf-red)}.thf-btn:disabled,.thf-page-btn:disabled{cursor:not-allowed;opacity:.44}.thf-bulk-bar{min-height:43px;border-bottom:1px solid var(--thf-border);background:var(--thf-app);padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.thf-bulk-left,.thf-bulk-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-width:0}.thf-checkline,.thf-page-size,.thf-page-controls,.thf-inline-actions{display:flex;align-items:center;gap:7px}.thf-bulk-actions{justify-content:flex-end}.thf-checkline{display:inline-flex;color:var(--thf-muted);font-size:11px;font-weight:720;white-space:nowrap}.thf-check-input{width:15px;height:15px;margin:0;accent-color:var(--thf-primary);flex:0 0 auto}.thf-selected-count{min-height:24px;display:inline-flex;align-items:center;border-radius:999px;background:var(--thf-raised);color:var(--thf-muted);padding:0 8px;font-size:11px;font-weight:740;white-space:nowrap}.thf-table-wrap{min-width:0;overflow:auto;max-height:424px}.thf-accounts-panel .thf-table-wrap{max-height:none;min-height:0}.thf-accounts-panel table{min-width:920px}#telegram-hub-flow table{width:100%;border-collapse:collapse;min-width:780px;font-size:12px}#telegram-hub-flow th{position:sticky;top:0;z-index:1;background:var(--thf-panel);color:var(--thf-muted);text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.04em;padding:9px 10px;border-bottom:1px solid var(--thf-border);white-space:nowrap}#telegram-hub-flow td{padding:10px;border-bottom:1px solid var(--thf-border);vertical-align:middle;color:var(--thf-text)}#telegram-hub-flow tr:last-child td{border-bottom:0}#telegram-hub-flow tr.is-selected td{background:#e9f7f4}#telegram-hub-flow tr.is-action-locked td{color:var(--thf-muted);background:#f1f5f7}.thf-check-cell{width:38px;min-width:38px;padding-left:12px;padding-right:4px;text-align:center}.thf-check-cell .thf-check-input{vertical-align:middle}.thf-right{text-align:right}.thf-account{display:flex;align-items:center;gap:8px;min-width:166px}.thf-avatar{width:30px;height:30px;border-radius:7px;display:grid;place-items:center;background:var(--thf-blue);color:#fff;font-size:11px;font-weight:820;flex:0 0 auto}.thf-avatar.green{background:#0f766e}.thf-avatar.orange{background:#b45309}.thf-avatar.purple{background:#7c3aed}.thf-chat-avatar{width:38px;height:38px;border-radius:999px;display:grid;place-items:center;flex:0 0 auto;color:#fff;background:var(--thf-blue);font-size:12px;font-weight:800}.thf-chat-avatar.green{background:var(--thf-primary)}.thf-chat-avatar.orange{background:var(--thf-orange)}.thf-chat-avatar.purple{background:var(--thf-purple)}.thf-account-name{font-size:12px;font-weight:780;line-height:1.2;white-space:nowrap}.thf-account-sub{color:var(--thf-muted);font-size:11px;line-height:1.25;margin-top:2px;white-space:nowrap}.thf-mono{font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11px;line-height:1.35;font-variant-numeric:tabular-nums;white-space:nowrap}.thf-telegram-name{font-size:13px;font-weight:760;line-height:1.25}.thf-telegram-tag,.thf-chat-sub{color:var(--thf-muted);font-size:12px;line-height:1.35}.thf-date-cell{display:grid;gap:2px}.thf-date-time{color:var(--thf-muted)}.thf-status{min-height:23px;border-radius:999px;padding:0 8px;border:1px solid transparent;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:760;white-space:nowrap}.thf-dot{width:7px;height:7px;border-radius:999px;background:currentColor;flex:0 0 auto}.thf-ok{color:var(--thf-green);background:#e8f7ed;border-color:#bee8c9}.thf-work{color:var(--thf-blue);background:#eaf1ff;border-color:#c8d8ff}.thf-warn{color:var(--thf-orange);background:#fff5df;border-color:#f3d59a}.thf-bad{color:var(--thf-red);background:#fff0ea;border-color:#ffc7b4}.thf-idle{color:var(--thf-muted);background:var(--thf-raised);border-color:var(--thf-border)}.thf-status-dot-only{width:9px;height:9px;border-radius:999px;background:var(--thf-faint)}.thf-status-dot-only.ok{background:var(--thf-green)}.thf-status-dot-only.work{background:var(--thf-blue)}.thf-status-dot-only.warn{background:var(--thf-orange)}.thf-status-dot-only.bad{background:var(--thf-red)}.thf-page-btn,.thf-close{width:34px;height:34px;border:1px solid var(--thf-border);border-radius:7px;background:var(--thf-app);color:var(--thf-muted);display:inline-grid;place-items:center}.thf-page-btn:hover:not(:disabled),.thf-close:hover{color:var(--thf-text);background:var(--thf-raised)}.thf-table-footer{min-height:45px;border-top:1px solid var(--thf-border);background:var(--thf-panel);padding:7px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.thf-page-size label{color:var(--thf-muted);font-size:11px;white-space:nowrap}.thf-page-select{min-height:30px;border:1px solid var(--thf-border);border-radius:7px;background:var(--thf-app);color:var(--thf-text);padding:0 28px 0 8px;font-size:11px}.thf-page-indicator{min-width:46px;text-align:center;color:var(--thf-muted);font-size:11px;font-weight:720;white-space:nowrap}.thf-page-btn{width:32px;height:30px;display:grid}.thf-inline-actions{gap:6px;justify-content:flex-end;white-space:nowrap;position:relative}.thf-action-menu{position:relative;display:inline-flex;justify-content:flex-end}.thf-menu-trigger{width:34px;height:30px;border-radius:7px;border:1px solid var(--thf-border);background:var(--thf-panel);color:var(--thf-muted);display:grid;place-items:center;font-size:18px;line-height:1;font-weight:780}.thf-menu-trigger:hover,.thf-action-menu.is-open .thf-menu-trigger{color:var(--thf-text);background:var(--thf-raised)}.thf-menu-trigger:disabled{cursor:not-allowed;opacity:.42}.thf-row-menu{position:fixed;z-index:40;min-width:214px;display:none;gap:4px;padding:5px;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);box-shadow:var(--thf-shadow)}.thf-row-menu.is-open{display:grid}.thf-row-menu button{min-height:31px;border:0;border-radius:6px;background:transparent;color:var(--thf-text);display:flex;align-items:center;gap:7px;padding:0 8px;font-size:11px;font-weight:720;text-align:left;white-space:nowrap}.thf-row-menu button:hover{background:var(--thf-raised)}.thf-row-menu button.primary{color:#fff;background:var(--thf-primary)}.thf-row-menu button.danger{color:var(--thf-red)}.thf-row-menu button.danger:hover{background:#fff0ea}.thf-menu-sep{height:1px;background:var(--thf-border);margin:3px 4px}.thf-profile-switcher{min-height:0;height:100%;display:grid;grid-template-rows:auto minmax(0,1fr)}.thf-profile-switcher .thf-list,.thf-telegram-chats .thf-list{padding:8px;display:grid;gap:8px;align-content:start}.thf-profile-switcher .thf-list,.thf-telegram-chats .thf-list{overflow-y:auto;overflow-x:hidden}.thf-profile-card,.thf-chat-card{width:100%;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);color:var(--thf-text);padding:9px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left}.thf-profile-card:hover,.thf-profile-card.is-active{border-color:#0f766e8c;background:#edf8f5}.thf-chat-preview{min-width:0}.thf-profile-meta{display:grid;justify-items:end;align-self:start;padding-top:7px;gap:0}.thf-telegram-shell{min-height:0;display:grid;grid-template-rows:57px minmax(0,1fr)}.thf-telegram-top{border-bottom:1px solid var(--thf-border);padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.thf-telegram-identity{display:flex;align-items:center;gap:10px;min-width:0}.thf-telegram-body{min-height:0;display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr)}.thf-telegram-body.thf-desktop-body{grid-template-columns:minmax(0,1fr)}.thf-telegram-chats{min-width:0;min-height:0;border-right:1px solid var(--thf-border);background:var(--thf-panel)}.thf-chat-list-head{height:44px;border-bottom:1px solid var(--thf-border);padding:0 12px;display:flex;align-items:center;justify-content:space-between;color:var(--thf-muted);font-size:12px;font-weight:760}.thf-runtime-summary{min-height:0;overflow:auto;padding:10px;display:grid;gap:8px;align-content:start}.thf-detail-box{border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:9px;display:grid;gap:5px}.thf-detail-label{color:var(--thf-muted);font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:0;font-weight:820}.thf-detail-value{color:var(--thf-text);overflow-wrap:anywhere}.thf-dialog{min-width:0;min-height:0;display:grid;grid-template-rows:54px minmax(0,1fr);background:#eef3f6}.thf-desktop-dialog{height:100%}.thf-dialog-head{border-bottom:1px solid var(--thf-border);background:var(--thf-app);padding:9px 12px;display:flex;align-items:center;justify-content:space-between}.thf-dialog-chat-head{display:flex;align-items:center;gap:10px;min-width:0}.thf-chat-title{font-size:14px;line-height:1.25;font-weight:800}.thf-desktop-surface{min-height:0;padding:0;background:#0c0f12;display:grid}.thf-desktop-frame{width:100%;height:100%;border:0;background:#0c0f12}.thf-desktop-blocked{color:#dbeafe;display:grid;place-items:center;align-content:center;gap:10px;padding:24px;text-align:center}.thf-desktop-blocked svg{width:38px;height:38px;color:#14b8a6}.thf-desktop-blocked span{max-width:420px;color:#9fb1c5;font-size:13px;line-height:1.5}.thf-audit-layout{display:grid;grid-template-columns:1fr;gap:12px}.thf-audit-layout .thf-audit-panel.is-wide{grid-column:1 / -1}.thf-audit-view.is-active{grid-template-columns:1fr}.thf-audit-panel .thf-table-wrap{max-height:260px}.thf-audit-panel table{min-width:860px}.thf-quality-pill{min-height:24px;border-radius:999px;padding:0 9px;display:inline-flex;align-items:center;font-size:12px;font-weight:760}.thf-quality-pill.good{color:var(--thf-green);background:#e8f8ee}.thf-quality-pill.watch{color:var(--thf-orange);background:#fff5df}.thf-quality-pill.bad{color:var(--thf-red);background:#fff0ea}.thf-timeline{padding:12px;display:grid;gap:10px}.thf-timeline-row{display:grid;grid-template-columns:13px minmax(0,1fr);gap:9px;color:var(--thf-muted);font-size:12px;line-height:1.4}.thf-timeline-row strong{color:var(--thf-text)}.thf-timeline-mark{width:9px;height:9px;margin-top:4px;border-radius:999px;background:var(--thf-primary)}.thf-empty{min-height:82px;color:var(--thf-muted);display:flex;align-items:center;justify-content:center;gap:8px;padding:18px;font-size:13px;text-align:center}.thf-proxy-status{border-radius:8px;border:1px solid var(--thf-border);padding:10px;margin-bottom:12px;font-size:12px;line-height:1.4}.thf-proxy-status.warn{color:var(--thf-orange);background:#fff8ed}.thf-proxy-status.good{color:var(--thf-green);background:#eefaf1}.thf-proxy-status.bad{color:var(--thf-red);background:#fff1eb}.thf-proxy-status-title{font-weight:780}.thf-login{min-height:100vh;display:grid;place-items:center;padding:24px}.thf-login-card{width:min(380px,100%);border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);box-shadow:var(--thf-shadow);padding:22px;display:grid;gap:14px}.thf-field{display:grid;gap:6px}.thf-field-label{color:var(--thf-muted);font-size:12px;font-weight:760}.thf-field-input,.thf-field-select,.thf-textarea{width:100%;border:1px solid var(--thf-border);border-radius:7px;background:var(--thf-app);color:var(--thf-text);outline:0}.thf-field-input,.thf-field-select{height:36px;padding:0 10px}.thf-textarea{min-height:148px;resize:vertical;padding:10px;font-family:SFMono-Regular,Consolas,Liberation Mono,monospace;font-size:12px;line-height:1.45}.thf-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20;background:#070c1285;display:none;justify-content:flex-end}.thf-modal-backdrop.is-open{display:flex}.thf-drawer{width:min(620px,100vw);height:100%;background:var(--thf-app);color:var(--thf-text);box-shadow:var(--thf-shadow);display:grid;grid-template-rows:auto minmax(0,1fr) auto}.thf-drawer-head,.thf-drawer-foot{border-bottom:1px solid var(--thf-border);padding:14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.thf-drawer-foot{border-top:1px solid var(--thf-border);border-bottom:0}.thf-drawer-title{margin:0;font-size:18px;line-height:1.2}.thf-drawer-sub{margin-top:4px;color:var(--thf-muted);font-size:12px}.thf-drawer-body{min-height:0;overflow:auto;padding:14px;display:grid;gap:14px;align-content:start}.thf-foot-actions,.thf-form-grid{display:flex;align-items:center;gap:8px}.thf-form-grid{align-items:start}.thf-stepper{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.thf-step{display:grid;gap:6px}.thf-step-bar{height:5px;border-radius:999px;background:var(--thf-border)}.thf-step.is-current .thf-step-bar{background:var(--thf-primary)}.thf-step-label{color:var(--thf-muted);font-size:12px;font-weight:760}.thf-dropzone{border:1px dashed var(--thf-border);border-radius:8px;background:var(--thf-panel);min-height:116px;padding:16px;display:flex;align-items:center;gap:14px}.thf-file-input{position:absolute;inline-size:1px;block-size:1px;overflow:hidden;clip:rect(0 0 0 0)}.thf-drop-icon{width:44px;height:44px;border-radius:8px;background:#0f766e1f;color:var(--thf-primary);display:grid;place-items:center}.thf-upload-title{font-size:14px;font-weight:780}.thf-upload-sub,.thf-result-text{color:var(--thf-muted);font-size:12px;line-height:1.4}.thf-result-list{display:grid;gap:8px}.thf-result-row{border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-panel);padding:10px;display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr) auto;gap:12px;align-items:center}.thf-result-label{font-weight:780}.thf-spin{animation:thf-spin .8s linear infinite}@keyframes thf-spin{to{transform:rotate(360deg)}}@media(max-width:920px){.thf-app{grid-template-columns:64px minmax(0,1fr)}.thf-nav-btn{justify-content:center}.thf-inbox-view.is-active,.thf-telegram-body,.thf-audit-layout{grid-template-columns:1fr}.is-inbox-layout .thf-inbox-view.is-active{height:auto;min-height:auto}.thf-profile-switcher{max-height:260px}.thf-telegram-chats{border-right:0;border-bottom:1px solid var(--thf-border)}.thf-desktop-surface{min-height:420px}}@media(max-width:720px){#telegram-hub-flow{min-height:100dvh}.thf-app{grid-template-columns:1fr}.thf-sidebar{display:none}.thf-main{grid-template-rows:auto minmax(0,1fr)}.thf-header,.thf-bulk-bar,.thf-table-footer{align-items:flex-start;flex-direction:column}.thf-search{min-width:100%}.thf-form-grid,.thf-result-row{grid-template-columns:1fr;display:grid}}.thf-desktop-dialog{grid-template-rows:minmax(0,1fr)}.thf-avatar[src]{object-fit:cover;border:0}.thf-account-name-line{display:flex;align-items:center;gap:6px;min-width:0}.thf-account-name-line .thf-account-name{min-width:0;overflow:hidden;text-overflow:ellipsis}.thf-unread-envelope{width:18px;height:18px;border-radius:999px;display:inline-grid;place-items:center;color:#2563eb;background:light-dark(#dbeafe,rgba(37,99,235,.18));box-shadow:0 0 0 1px light-dark(#bfdbfe,rgba(96,165,250,.28));animation:thf-unread-blink 1.1s ease-in-out infinite;flex:0 0 auto}#telegram-hub-flow .thf-unread-envelope svg{width:13px;height:13px;stroke-width:2.2}.thf-script-gear{width:18px;height:18px;border-radius:999px;display:inline-grid;place-items:center;color:var(--thf-orange);background:light-dark(#fff5df,rgba(180,83,9,.14));box-shadow:0 0 0 1px light-dark(#f3d59a,rgba(245,158,11,.28));animation:thf-unread-blink 1s ease-in-out infinite;flex:0 0 auto}#telegram-hub-flow .thf-script-gear svg{width:13px;height:13px;stroke-width:2.2}@keyframes thf-unread-blink{0%,to{opacity:1;transform:scale(1)}50%{opacity:.42;transform:scale(.92)}}@media(prefers-reduced-motion:reduce){.thf-unread-envelope,.thf-script-gear{animation:none}}.thf-proxy-modal{width:min(560px,calc(100vw - 28px));max-height:calc(100vh - 40px);background:var(--thf-app);border:1px solid var(--thf-border);border-radius:8px;box-shadow:var(--thf-shadow);display:grid;grid-template-rows:auto minmax(0,1fr) auto;overflow:hidden}.thf-textarea{min-height:116px;padding:9px;resize:vertical;line-height:1.4}.thf-proxy-meta-grid{display:grid;grid-template-columns:minmax(170px,1fr) minmax(82px,.45fr) minmax(132px,.62fr);gap:8px;align-items:start}.thf-form-error{border:1px solid light-dark(#ffc7b4,rgba(248,113,113,.24));border-radius:7px;background:light-dark(#fff0ea,rgba(194,65,12,.14));color:var(--thf-red);padding:8px 9px;font-size:12px;line-height:1.35}.thf-telegram-actions{margin-left:auto;display:flex;align-items:center;gap:6px;flex:0 0 auto}.thf-icon-btn{width:34px;height:34px;border:1px solid var(--thf-border);border-radius:7px;background:var(--thf-app);color:var(--thf-muted);display:inline-grid;place-items:center;padding:0;transition:background .16s ease,border-color .16s ease,color .16s ease,opacity .16s ease}.thf-icon-btn:hover:not(:disabled){background:var(--thf-raised);color:var(--thf-text)}.thf-icon-btn:focus-visible{outline:3px solid rgba(20,184,166,.36);outline-offset:2px}.thf-icon-btn.primary{background:var(--thf-primary);border-color:var(--thf-primary);color:#fff}.thf-icon-btn.primary:hover:not(:disabled){background:var(--thf-primary-2);border-color:var(--thf-primary-2);color:#fff}.thf-icon-btn.danger{color:var(--thf-red)}.thf-icon-btn:disabled,.thf-row-menu button:disabled{cursor:not-allowed;opacity:.42}.thf-row-menu a{min-height:31px;border:0;border-radius:6px;background:transparent;color:var(--thf-text);display:flex;align-items:center;gap:7px;padding:0 8px;font-size:11px;font-weight:720;text-align:left;white-space:nowrap;text-decoration:none}.thf-row-menu a:hover{background:var(--thf-raised)}.thf-row-menu a.primary{color:#fff;background:var(--thf-primary)}.thf-proxy-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-panel);padding:8px}.thf-flow-step{min-width:0;display:grid;grid-template-columns:10px minmax(0,1fr);gap:7px;align-items:start;color:var(--thf-muted)}.thf-flow-dot{width:8px;height:8px;margin-top:4px;border-radius:999px;background:currentColor;box-shadow:0 0 0 3px color-mix(in srgb,currentColor 14%,transparent)}.thf-flow-copy{min-width:0;display:grid;gap:2px}.thf-flow-label{color:var(--thf-text);font-size:11px;font-weight:780;line-height:1.25}.thf-flow-detail{font-size:11px;line-height:1.3;overflow-wrap:anywhere}.thf-flow-step.is-active{color:var(--thf-blue)}.thf-flow-step.is-done{color:var(--thf-green)}.thf-flow-step.is-failed{color:var(--thf-red)}.thf-flow-step.is-skipped{color:var(--thf-faint)}@media(max-width:720px){.thf-panel-head{align-items:flex-start;flex-direction:column}}@media(max-width:720px){.thf-proxy-meta-grid{grid-template-columns:1fr}}@media(max-width:720px){.thf-proxy-flow{grid-template-columns:1fr}}@media(max-width:720px){.thf-row-menu{right:14px;max-width:calc(100vw - 28px)}}.thf-username-calibration{border-left:3px solid var(--thf-orange);background:light-dark(#fff8e8,rgba(180,83,9,.08));padding:8px 10px;color:var(--thf-text);font-size:12px;line-height:1.45;overflow-wrap:anywhere}.thf-username-delay-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.thf-username-start-option{align-items:flex-start;white-space:normal;line-height:1.35}.thf-username-progress{display:grid;gap:10px;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-panel);padding:10px;min-width:0}.thf-username-progress-head,.thf-username-item{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.thf-username-counts{color:var(--thf-muted);font-size:12px;line-height:1.4;overflow-wrap:anywhere}.thf-username-preview{display:grid;gap:6px}.thf-username-item{border-top:1px solid var(--thf-border);padding-top:7px;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;line-height:1.35}.thf-username-item>span:first-child{min-width:0;overflow-wrap:anywhere}.thf-username-item-meta{display:inline-flex;align-items:center;justify-content:flex-end;gap:7px;min-width:0}.thf-username-reason{min-width:0;color:var(--thf-muted);font-family:inherit;font-size:11px;line-height:1.3;overflow-wrap:anywhere}.thf-username-status{display:inline-flex;align-items:center;min-height:22px;border-radius:999px;padding:0 8px;background:var(--thf-raised);color:var(--thf-muted);font-family:inherit;font-size:11px;font-weight:760;line-height:1;text-transform:capitalize;white-space:nowrap}.thf-username-status.is-running,.thf-username-status.is-starting_profile,.thf-username-status.is-waiting_delay{background:light-dark(#eaf1ff,rgba(37,99,235,.14));color:var(--thf-blue)}.thf-username-status.is-succeeded,.thf-username-status.is-completed{background:light-dark(#e8f7ed,rgba(22,128,60,.13));color:var(--thf-green)}.thf-username-status.is-failed,.thf-username-status.is-completed_with_errors{background:light-dark(#fff0ea,rgba(194,65,12,.14));color:var(--thf-red)}.thf-username-status.is-cancel_requested,.thf-username-status.is-cancelled,.thf-username-status.is-skipped{background:light-dark(#fff5df,rgba(180,83,9,.13));color:var(--thf-orange)}@media(max-width:720px){.thf-username-delay-grid{grid-template-columns:1fr}.thf-username-progress-head,.thf-username-item,.thf-username-item-meta{align-items:flex-start;flex-direction:column}.thf-username-status{max-width:100%;white-space:normal;line-height:1.25;padding:5px 8px}}#telegram-hub-flow.is-storage-layout{height:100vh;min-height:640px}.is-storage-layout .thf-app,.is-storage-layout .thf-main{height:100%;min-height:0}.is-storage-layout .thf-content{display:grid;grid-template-rows:auto minmax(0,1fr);gap:10px;overflow:hidden}.is-storage-layout .thf-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(86px,max-content));align-items:start;gap:8px;max-width:100%;overflow:hidden}.is-storage-layout .thf-metric{min-height:48px;padding:6px 10px}.is-storage-layout .thf-num{font-size:19px}.is-storage-layout .thf-board,.thf-storage-view.is-active{height:100%;min-height:0;display:grid}.thf-storage-layout{min-width:0;min-height:0;height:100%;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,360px);gap:12px}.thf-storage-layout.is-detail-closed{grid-template-columns:minmax(0,1fr)}.thf-storage-panel{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr) auto}.thf-storage-panel .thf-table-wrap{max-height:none;min-height:0}.thf-storage-panel table{min-width:720px}.thf-storage-panel tr.thf-clickable-row{cursor:pointer}.thf-storage-panel tr.thf-clickable-row:hover td{background:light-dark(#f0faf7,rgba(20,184,166,.07))}.thf-storage-panel tr.thf-clickable-row:focus-visible{outline:3px solid rgba(20,184,166,.36);outline-offset:-3px}.thf-storage-detail{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.thf-detail-scroll{min-height:0;overflow:auto;padding:10px;display:grid;gap:9px;align-content:start}.thf-detail-box.is-identity{display:flex;align-items:center;gap:9px}.thf-detail-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.thf-detail-title{font-size:12px;line-height:1.25;font-weight:800}.thf-kv-row{display:grid;grid-template-columns:minmax(112px,.86fr) minmax(0,1fr);gap:10px;padding-top:6px;border-top:1px solid var(--thf-border)}.thf-kv-row:first-of-type{border-top:0;padding-top:0}.thf-kv-label{color:var(--thf-muted);font-size:11px;line-height:1.25}.thf-kv-value{min-width:0;color:var(--thf-text);font-size:11px;line-height:1.35;overflow-wrap:anywhere}@media(max-width:920px){.thf-storage-layout{grid-template-columns:1fr}.thf-storage-detail{max-height:380px}.is-storage-layout .thf-content{overflow:auto}}@media(max-width:720px){#telegram-hub-flow.is-storage-layout{min-height:1000px}.is-storage-layout .thf-content{display:flex}.thf-storage-layout{height:auto}.thf-kv-row{grid-template-columns:1fr;gap:3px}}#telegram-hub-flow.is-audit-layout{height:100vh;min-height:640px}.is-audit-layout .thf-app,.is-audit-layout .thf-main{height:100%;min-height:0}.is-audit-layout .thf-content{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;overflow:hidden}.is-audit-layout .thf-board,.thf-audit-view.is-active,.thf-audit-shell,.thf-risk-layout{height:100%;min-height:0}.thf-audit-shell{min-width:0;min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px}.thf-audit-tabs{display:inline-flex;align-items:center;gap:6px;align-self:start;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:4px}.thf-audit-tab{min-height:32px;border:0;border-radius:7px;background:transparent;color:var(--thf-muted);display:inline-flex;align-items:center;gap:7px;padding:0 10px;font-size:12px;font-weight:760;white-space:nowrap}.thf-audit-tab:hover{background:var(--thf-raised);color:var(--thf-text)}.thf-audit-tab.is-active{background:var(--thf-primary);color:#fff}.thf-risk-tab-count{min-width:20px;height:20px;border-radius:999px;background:var(--thf-raised);color:var(--thf-muted);display:inline-grid;place-items:center;padding:0 6px;font-size:11px;font-weight:820}.thf-audit-tab.is-active .thf-risk-tab-count{background:#ffffff26;color:#fff}.thf-risk-tab-count.is-blocked{background:light-dark(#fff0ea,rgba(194,65,12,.2));color:var(--thf-red)}.thf-audit-tab.is-active .thf-risk-tab-count.is-blocked{background:#ffffff26;color:#fff}.thf-risk-layout{min-width:0;min-height:0;display:grid;grid-template-columns:minmax(270px,320px) minmax(0,1fr);gap:12px}.thf-risk-empty-panel{min-height:180px}.thf-risk-list-panel,.thf-risk-detail-panel{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.thf-risk-profile-list{min-height:0;overflow:auto;padding:8px;display:grid;gap:8px;align-content:start}.thf-risk-profile-card{width:100%;min-height:58px;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);color:var(--thf-text);display:grid;grid-template-columns:10px minmax(0,1fr) auto auto;gap:8px;align-items:center;padding:9px;text-align:left}.thf-risk-profile-card:hover,.thf-risk-profile-card.is-active{border-color:#0f766e8c;background:light-dark(#edf8f5,rgba(15,118,110,.13))}.thf-risk-gate-dot{width:8px;height:8px;border-radius:999px;background:currentColor;color:var(--thf-muted)}.thf-risk-gate-dot.ok{color:var(--thf-green)}.thf-risk-gate-dot.warn{color:var(--thf-orange)}.thf-risk-gate-dot.bad{color:var(--thf-red)}.thf-risk-profile-copy{min-width:0;display:grid;gap:2px}.thf-risk-profile-name{font-size:12px;font-weight:780;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thf-risk-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.thf-risk-badge{min-height:23px;border-radius:999px;border:1px solid transparent;display:inline-flex;align-items:center;justify-content:center;padding:0 8px;font-size:11px;font-weight:780;white-space:nowrap}.thf-risk-badge.ok{color:var(--thf-green);background:light-dark(#e8f7ed,rgba(22,128,60,.13));border-color:light-dark(#bee8c9,rgba(34,197,94,.22))}.thf-risk-badge.warn{color:var(--thf-orange);background:light-dark(#fff5df,rgba(180,83,9,.13));border-color:light-dark(#f3d59a,rgba(245,158,11,.24))}.thf-risk-badge.bad{color:var(--thf-red);background:light-dark(#fff0ea,rgba(194,65,12,.14));border-color:light-dark(#ffc7b4,rgba(248,113,113,.24))}.thf-risk-score{min-width:32px;text-align:right;color:var(--thf-muted)}.thf-risk-detail-scroll{min-height:0;overflow:auto;padding:10px;display:grid;gap:10px;align-content:start}.thf-risk-decision{border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-panel);padding:11px;display:flex;align-items:center;justify-content:space-between;gap:14px}.thf-risk-decision.ok{border-color:light-dark(#bee8c9,rgba(34,197,94,.22))}.thf-risk-decision.warn{border-color:light-dark(#f3d59a,rgba(245,158,11,.24))}.thf-risk-decision.bad{border-color:light-dark(#ffc7b4,rgba(248,113,113,.24))}.thf-risk-decision-title{font-size:14px;font-weight:820;line-height:1.25}.thf-risk-decision>div{min-width:0}.thf-risk-decision-next{min-width:0;color:var(--thf-muted);font-size:12px;line-height:1.35;text-align:right;max-width:320px;overflow-wrap:anywhere;word-break:break-word}.thf-risk-fact-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:10px}.thf-risk-fact-card,.thf-risk-rules{min-width:0;overflow:hidden;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:10px;display:grid;gap:8px;align-content:start}.thf-risk-fact-title{font-size:12px;line-height:1.25;font-weight:820}.thf-risk-kv-list{display:grid;gap:6px}.thf-risk-detail-scroll .thf-kv-row{grid-template-columns:minmax(88px,.55fr) minmax(0,1fr);gap:8px}.thf-risk-detail-scroll .thf-kv-label,.thf-risk-detail-scroll .thf-kv-value{min-width:0;overflow-wrap:anywhere;word-break:break-word}.thf-risk-detail-scroll .thf-kv-value.thf-mono{white-space:normal}.thf-risk-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);gap:10px;align-items:start}.thf-risk-rule-list,.thf-risk-enforcement-list{display:grid;gap:8px}.thf-risk-rule{border:1px solid var(--thf-border);border-radius:8px;padding:9px;display:grid;gap:5px;background:var(--thf-panel)}.thf-risk-rule.ok{border-color:light-dark(#bee8c9,rgba(34,197,94,.18))}.thf-risk-rule.warn{border-color:light-dark(#f3d59a,rgba(245,158,11,.22))}.thf-risk-rule.bad{border-color:light-dark(#ffc7b4,rgba(248,113,113,.22))}.thf-risk-rule-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.thf-risk-rule-id{min-width:0;color:var(--thf-text);overflow-wrap:anywhere;white-space:normal}.thf-risk-rule-title{font-size:12px;font-weight:780;line-height:1.3}.thf-risk-rule-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;color:var(--thf-muted);font-size:11px;line-height:1.35}.thf-risk-rule-values span{min-width:0;overflow-wrap:anywhere}@media(max-width:920px){.thf-risk-layout,.thf-risk-bottom-grid{grid-template-columns:1fr}.thf-risk-list-panel{max-height:300px}.thf-risk-decision{align-items:flex-start;flex-direction:column}.thf-risk-decision-next{text-align:left;max-width:none}}@media(max-width:720px){.thf-audit-tabs{width:100%;display:grid;grid-template-columns:1fr}.thf-audit-tab{justify-content:center}.thf-risk-profile-card{grid-template-columns:10px minmax(0,1fr) auto}.thf-risk-profile-card .thf-risk-score{display:none}.thf-risk-rule-values{grid-template-columns:1fr}}#telegram-hub-flow.is-scripts-layout{height:100vh;min-height:640px}.is-scripts-layout .thf-app,.is-scripts-layout .thf-main{height:100%;min-height:0}.is-scripts-layout .thf-content{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;overflow:hidden}.is-scripts-layout .thf-board,.thf-scripts-view.is-active,.thf-scripts-shell{height:100%;min-height:0}.thf-scripts-view.is-active{display:grid}.thf-scripts-shell{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;min-width:0}.thf-scripts-tabs{align-self:start}.thf-scripts-panel{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.thf-script-list{min-height:0;overflow:auto;padding:8px;display:flex;flex-direction:column;gap:7px;align-items:stretch}.thf-script-row{flex:0 0 auto;min-width:0;min-height:58px;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:8px;display:grid;grid-template-columns:36px minmax(0,1fr) auto;gap:9px;align-items:center}.thf-script-row.is-expanded{align-items:start;border-color:#0f766e;background:light-dark(#f0faf7,rgba(20,184,166,.07))}.thf-script-row[role=button]{cursor:pointer}.thf-script-row[role=button]:focus-visible{outline:3px solid rgba(20,184,166,.36);outline-offset:2px}.thf-script-row[role=button]:hover{border-color:#0f766e8c;background:light-dark(#f0faf7,rgba(20,184,166,.07))}.thf-script-row.is-expanded:hover{border-color:#0f766e;background:light-dark(#f0faf7,rgba(20,184,166,.07))}.thf-run-row,.thf-log-row,.thf-profile-script-row{grid-template-columns:36px minmax(0,1fr) auto}.thf-script-icon{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;color:var(--thf-muted);background:var(--thf-raised)}.thf-script-icon.ok{color:var(--thf-green);background:light-dark(#e8f7ed,rgba(22,128,60,.13))}.thf-script-icon.work{color:var(--thf-blue);background:light-dark(#eaf1ff,rgba(37,99,235,.14))}.thf-script-icon.warn{color:var(--thf-orange);background:light-dark(#fff5df,rgba(180,83,9,.13))}.thf-script-icon.bad{color:var(--thf-red);background:light-dark(#fff0ea,rgba(194,65,12,.14))}.thf-script-copy{min-width:0;display:grid;gap:4px}.thf-script-title-row{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.thf-script-title-row strong{min-width:0;font-size:12px;line-height:1.25;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thf-script-tags{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0}.thf-script-kind{display:inline-flex;align-items:center;gap:4px;color:#64748b;font-size:12px}.thf-script-tag{min-height:22px;border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-panel);color:var(--thf-muted);display:inline-flex;align-items:center;padding:0 8px;font-size:11px;font-weight:720;line-height:1.1;white-space:nowrap}.thf-script-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:nowrap}.thf-script-row-actions{align-self:center}.thf-job-control{width:32px;height:32px;min-height:32px;padding:0;font-size:11px}.thf-btn.subtle{background:transparent}.thf-script-side{min-width:0;text-align:right;display:grid;gap:4px;justify-items:end}.thf-run-progress{height:7px;overflow:hidden;border-radius:999px;background:var(--thf-raised)}.thf-run-progress span{display:block;height:100%;border-radius:inherit;background:var(--thf-primary)}.thf-script-details{grid-column:2 / -1;grid-row:2;border-top:1px solid var(--thf-border);margin-top:2px;padding-top:9px;display:grid;gap:9px;min-width:0}.thf-detail-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.thf-detail-grid>div,.thf-detail-table>div{min-width:0;border:1px solid var(--thf-border);border-radius:7px;background:var(--thf-panel);padding:8px;display:grid;gap:3px}.thf-detail-grid span,.thf-detail-table span{color:var(--thf-muted);font-size:10px;font-weight:780;text-transform:uppercase;letter-spacing:.03em}.thf-detail-grid strong,.thf-detail-table strong{min-width:0;color:var(--thf-text);font-size:11px;line-height:1.35;overflow-wrap:anywhere;white-space:normal}.thf-script-detail-title{color:var(--thf-muted);font-size:11px;font-weight:820;text-transform:uppercase;letter-spacing:.03em}.thf-action-sections{display:grid;gap:10px;min-width:0}.thf-action-section{min-width:0;display:grid;gap:6px}.thf-action-section-title{color:var(--thf-text);font-size:11px;font-weight:820;line-height:1.25}.thf-action-list{display:grid;gap:6px;min-width:0}.thf-action-row{min-width:0;border:1px solid var(--thf-border);border-radius:7px;background:light-dark(#fbfdfe,rgba(255,255,255,.02));padding:7px;display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,220px);gap:8px;align-items:center}.thf-action-row.compact{grid-template-columns:minmax(0,1fr) auto}.thf-action-main{min-width:0;display:grid;gap:2px}.thf-action-main strong{min-width:0;font-size:12px;line-height:1.25;overflow-wrap:anywhere}.thf-action-main span,.thf-action-meta,.thf-detail-note{min-width:0;color:var(--thf-muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.thf-action-change{color:var(--thf-text);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.thf-action-error{border:1px solid light-dark(#fecaca,rgba(248,113,113,.28));border-radius:7px;background:light-dark(#fff7f7,rgba(127,29,29,.18));color:var(--thf-red);padding:5px 7px;font-weight:760;text-align:left}.thf-cleanup-warning{color:#b45309;font-weight:700}.thf-action-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap;text-align:right}.thf-action-meta span{min-width:0;overflow-wrap:anywhere}.thf-detail-table{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.thf-detail-note{border:1px solid var(--thf-border);border-radius:7px;background:var(--thf-panel);padding:8px;color:var(--thf-text)}.thf-catalog-details{gap:10px}.thf-workflow-list{position:relative;list-style:none;margin:0;padding:0;display:grid;gap:7px;min-width:0}.thf-workflow-list:before{content:"";position:absolute;left:14px;top:8px;bottom:8px;width:1px;background:var(--thf-border)}.thf-workflow-step{position:relative;min-width:0;display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:start}.thf-workflow-index{position:relative;z-index:1;width:28px;height:28px;border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-app);color:var(--thf-primary);display:grid;place-items:center;font-size:11px;font-weight:840}.thf-workflow-copy{min-width:0;border:1px solid var(--thf-border);border-radius:7px;background:light-dark(#fbfdfe,rgba(255,255,255,.02));padding:8px;display:grid;gap:5px}.thf-workflow-copy strong{min-width:0;font-size:12px;line-height:1.25;overflow-wrap:anywhere}.thf-workflow-copy span{min-width:0;color:var(--thf-muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.thf-script-io-grid{grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:920px){.thf-script-row,.thf-run-row,.thf-log-row,.thf-profile-script-row{grid-template-columns:36px minmax(0,1fr)}.thf-script-actions,.thf-script-side{grid-column:2;justify-content:flex-start;justify-items:start;text-align:left}.thf-script-details{grid-column:2}.thf-detail-grid,.thf-detail-table,.thf-action-row{grid-template-columns:1fr}.thf-action-meta{justify-content:flex-start;text-align:left}.is-scripts-layout .thf-content{overflow:auto}}@media(max-width:720px){#telegram-hub-flow.is-scripts-layout{min-height:1000px}.is-scripts-layout .thf-content{display:flex}.thf-scripts-tabs{width:100%;display:grid;grid-template-columns:1fr}.thf-script-row,.thf-run-row,.thf-log-row,.thf-profile-script-row{grid-template-columns:1fr}.thf-script-icon{display:none}.thf-script-actions,.thf-script-side,.thf-script-details{grid-column:auto}.thf-script-details{grid-row:auto}.thf-script-title-row strong{white-space:normal}}.thf-flow-picker{border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-panel);display:grid;gap:10px;padding:10px}.thf-flow-picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.thf-flow-search{min-width:0;flex:1 1 auto}.thf-flow-profile-list{max-height:300px;overflow:auto;display:grid;gap:7px;align-content:start}.thf-flow-profile-row{min-height:54px;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:8px;display:grid;grid-template-columns:auto 32px minmax(0,1fr) auto;gap:9px;align-items:center}.thf-flow-profile-row:hover{border-color:#0f766e8c;background:light-dark(#edf8f5,rgba(15,118,110,.13))}.thf-flow-profile-copy{min-width:0;display:grid;gap:2px}.thf-flow-profile-copy strong{font-size:12px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thf-flow-profile-copy span{color:var(--thf-muted);font-size:11px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thf-script-run-summary{border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-panel);padding:10px;display:grid;gap:4px}.thf-script-run-summary strong{font-size:13px}.thf-script-run-summary span{color:var(--thf-muted);font-size:12px;line-height:1.4}#telegram-hub-flow.is-chat-leads-layout{height:100vh;min-height:640px}.is-chat-leads-layout .thf-app,.is-chat-leads-layout .thf-main{height:100%;min-height:0}.is-chat-leads-layout .thf-content{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;overflow:hidden}.is-chat-leads-layout .thf-board,.thf-chat-leads-view.is-active,.thf-chat-leads-grid{height:100%;min-height:0}.thf-chat-leads-view.is-active{display:grid}.thf-chat-leads-grid{display:grid;grid-template-columns:minmax(360px,470px) minmax(0,1fr);gap:12px;min-width:0;align-items:stretch}.thf-chat-leads-input-panel{align-self:start;min-height:0;display:grid;gap:10px;align-content:start;overflow:hidden}.thf-chat-leads-table-panel{min-height:0;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;overflow:hidden}.thf-chat-leads-throttle{margin:0 12px 8px;border:1px solid #0f766e52;border-radius:8px;background:light-dark(#edf8f5,rgba(15,118,110,.12));display:flex;align-items:center;gap:6px 12px;min-width:0;padding:8px 10px;color:var(--thf-muted);font-size:11px;line-height:1.3;overflow:hidden}.thf-chat-leads-throttle strong{color:var(--thf-text);font-size:12px;font-weight:840;white-space:nowrap}.thf-chat-leads-throttle span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thf-chat-leads-limit-grid{padding:10px 12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.thf-chat-leads-limit{min-width:0;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-panel);padding:8px;display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-areas:"icon label" "icon value" "icon note";gap:2px 8px;align-items:center}.thf-chat-leads-limit.is-primary{border-color:#0f766e66;background:light-dark(#edf8f5,rgba(15,118,110,.12))}.thf-chat-leads-limit svg{grid-area:icon;width:18px;height:18px;color:var(--thf-primary)}.thf-chat-leads-limit span{grid-area:label;min-width:0;color:var(--thf-muted);font-size:10px;font-weight:820;text-transform:uppercase;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thf-chat-leads-limit strong{grid-area:value;min-width:0;color:var(--thf-text);font-size:13px;font-weight:840;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thf-chat-leads-limit small{grid-area:note;min-width:0;color:var(--thf-muted);font-size:11px;font-weight:650;line-height:1.25;white-space:normal;overflow-wrap:anywhere}.thf-chat-leads-day-plan{margin:0 12px;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);display:grid;gap:8px;padding:9px;min-width:0}.thf-chat-leads-day-plan-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.thf-chat-leads-day-plan-head span{font-size:12px;font-weight:820;line-height:1.25;margin-right:auto}.thf-chat-leads-day-plan-head strong{border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-panel);padding:3px 8px;color:var(--thf-muted);font-size:10px;font-weight:820;line-height:1.25;white-space:nowrap}.thf-chat-leads-day-plan-list{display:grid;gap:6px;min-width:0;max-height:180px;overflow:auto;padding-right:2px}.thf-chat-leads-day-plan-row{display:grid;grid-template-columns:minmax(82px,1fr) minmax(92px,1.1fr) minmax(120px,1.2fr);gap:8px;align-items:center;min-width:0;color:var(--thf-muted);font-size:11px;line-height:1.3}.thf-chat-leads-day-plan-row span,.thf-chat-leads-day-plan-row strong,.thf-chat-leads-day-plan-row small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thf-chat-leads-day-plan-row strong{color:var(--thf-text);font-weight:760}.thf-chat-leads-day-plan-empty{color:var(--thf-muted);font-size:11px;line-height:1.35}.thf-chat-leads-input{display:grid;gap:6px;min-width:0;padding:0 12px;color:var(--thf-text);font-size:12px;font-weight:760;line-height:1.25}.thf-chat-leads-input>span{font-size:12px;font-weight:800}.thf-chat-leads-input>small{color:var(--thf-muted);font-size:11px;font-weight:620;line-height:1.35}.thf-chat-leads-input textarea.thf-input{min-height:116px;max-height:220px;resize:vertical;line-height:1.45;padding:9px 10px;font-family:JetBrains Mono,ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.thf-chat-leads-input-panel>.thf-error{margin:0 12px}.thf-chat-leads-crm{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:0 12px;color:var(--thf-muted);font-size:11px;font-weight:760;line-height:1.3}.thf-chat-leads-crm span{border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-panel);padding:4px 8px;white-space:nowrap}.thf-chat-leads-crm .thf-chat-leads-crm-warning{border-color:#f4cfcf;background:#fff6f4;color:#a23b28}.thf-chat-leads-crm .thf-btn{min-height:30px;padding:0 10px;margin-left:auto}.thf-chat-leads-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:0 12px}.thf-chat-leads-actions .thf-btn{min-width:0}.thf-chat-leads-preview{min-width:0;padding:0 12px 10px;display:grid;gap:8px}.thf-chat-leads-preview-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--thf-muted);font-size:11px;font-weight:760;line-height:1.3}.thf-chat-leads-preview-head span{border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-panel);padding:3px 8px}.thf-chat-leads-preview .thf-table-wrap{max-height:220px;border:1px solid var(--thf-border);border-radius:8px}.thf-chat-leads-table-tools{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.thf-chat-leads-table-tools .thf-status{min-height:24px}.thf-chat-leads-refresh-status{min-height:24px;border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-app);color:var(--thf-muted);display:inline-flex;align-items:center;padding:0 9px;font-size:11px;font-weight:760;white-space:nowrap}.thf-chat-leads-bulk-bar{width:100%;height:40px;max-height:40px;min-height:40px;align-self:start;border-top:1px solid var(--thf-border);border-bottom:1px solid var(--thf-border);background:var(--thf-panel);display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 12px;min-width:0;overflow:hidden;flex:0 0 auto}.thf-chat-leads-select-all{display:flex;align-items:center;gap:8px;min-width:0;color:var(--thf-muted);font-size:12px;font-weight:760;line-height:1.25}.thf-chat-leads-select-all input,.thf-chat-leads-table-panel td input[type=checkbox]{width:16px;height:16px;accent-color:var(--thf-primary)}.thf-chat-leads-select-all span{min-width:0;white-space:nowrap}.thf-chat-leads-bulk-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:0}.thf-chat-leads-bulk-actions .thf-btn{min-height:30px;padding:0 10px}.thf-chat-leads-table-panel .thf-table-wrap{max-height:none;min-height:0}.thf-chat-leads-table-panel.is-empty{grid-template-rows:auto auto 40px auto auto auto}.thf-chat-leads-table-panel.is-empty .thf-table-wrap{max-height:180px;min-height:0;align-self:start}.thf-chat-leads-table-panel table{min-width:1180px}.thf-chat-leads-chat-cell{display:grid;gap:2px;min-width:0}.thf-chat-leads-chat-cell strong{min-width:0;font-size:12px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thf-chat-leads-chat-cell span{min-width:0;color:var(--thf-muted);font-size:10px;line-height:1.25;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thf-chat-leads-scan-progress{display:grid;grid-template-columns:repeat(2,minmax(0,max-content));gap:3px 5px;margin-top:5px;min-width:0}.thf-chat-leads-scan-progress small{min-width:0;border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-app);padding:2px 6px;color:var(--thf-muted);font-size:10px;font-weight:720;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.thf-chat-leads-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;min-width:38px;white-space:nowrap}.thf-chat-leads-action-menu .thf-row-menu{position:absolute;right:0;top:calc(100% + 6px);min-width:212px}.thf-chat-leads-delete-chip{display:block;margin-top:4px;color:#0f766e;font-size:10px;font-weight:820;line-height:1.2}.thf-chat-leads-delete-chip.is-failed{color:var(--thf-red)}.thf-chat-leads-delete-queue{border-top:1px solid var(--thf-border);background:var(--thf-panel);display:grid;gap:7px;padding:8px 12px;min-width:0}.thf-chat-leads-delete-queue-head{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.thf-chat-leads-delete-queue-head span{font-size:12px;font-weight:820;line-height:1.25;margin-right:auto}.thf-chat-leads-delete-queue-head strong{border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-app);padding:3px 8px;color:var(--thf-muted);font-size:10px;font-weight:820;line-height:1.25;white-space:nowrap}.thf-chat-leads-delete-queue-list{display:grid;gap:6px;max-height:132px;overflow:auto;min-width:0}.thf-chat-leads-delete-queue-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(180px,.85fr) minmax(120px,.6fr);gap:8px;align-items:center;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:7px 8px;color:var(--thf-muted);font-size:11px;line-height:1.3}.thf-chat-leads-delete-queue-row strong,.thf-chat-leads-delete-queue-row span,.thf-chat-leads-delete-queue-row small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thf-chat-leads-delete-queue-row strong{color:var(--thf-text);font-size:12px;font-weight:800}.thf-chat-leads-archive{border-top:1px solid var(--thf-border);background:var(--thf-panel);display:grid;gap:7px;padding:8px 12px;min-width:0}.thf-chat-leads-archive-head{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.thf-chat-leads-archive-head span{font-size:12px;font-weight:820;line-height:1.25}.thf-chat-leads-archive-head strong{border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-app);padding:3px 8px;color:var(--thf-muted);font-size:10px;font-weight:820;line-height:1.25;white-space:nowrap}.thf-chat-leads-archive-list{display:grid;gap:6px;max-height:112px;overflow:auto;min-width:0}.thf-chat-leads-archive-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(88px,.7fr) minmax(86px,.6fr) minmax(100px,.7fr);gap:8px;align-items:center;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:7px 8px;color:var(--thf-muted);font-size:11px;line-height:1.3}.thf-chat-leads-archive-row strong,.thf-chat-leads-archive-row span,.thf-chat-leads-archive-row small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thf-chat-leads-archive-row strong{color:var(--thf-text);font-size:12px;font-weight:800}.thf-chat-leads-archive-empty{border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:9px;color:var(--thf-muted);font-size:11px;line-height:1.35}.thf-chat-leads-dialog-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:35;background:#07111a73;display:grid;place-items:center;padding:18px}.thf-chat-leads-dialog{width:min(420px,100%);max-height:min(620px,calc(100vh - 36px));border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);box-shadow:var(--thf-shadow);display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden}.thf-chat-leads-dialog-head{border-bottom:1px solid var(--thf-border);background:var(--thf-panel);padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px}.thf-chat-leads-transfer-list{padding:8px;display:grid;gap:7px;overflow:auto}.thf-chat-leads-transfer-option{min-width:0;min-height:48px;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);color:var(--thf-text);display:grid;grid-template-columns:28px minmax(0,1fr);gap:9px;align-items:center;text-align:left;padding:8px}.thf-chat-leads-transfer-option:hover:not(:disabled){border-color:#0f766e7a;background:#edf8f5}.thf-chat-leads-transfer-option.is-current{background:var(--thf-panel);color:var(--thf-muted)}.thf-chat-leads-transfer-option svg{color:var(--thf-primary)}.thf-chat-leads-transfer-option span{min-width:0;display:grid;gap:2px}.thf-chat-leads-transfer-option strong,.thf-chat-leads-transfer-option small{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thf-chat-leads-transfer-option strong{font-size:12px;line-height:1.25}.thf-chat-leads-transfer-option small{color:var(--thf-muted);font-size:11px;line-height:1.25}.thf-chat-leads-confirm{padding:12px;display:grid;gap:10px;color:var(--thf-muted);font-size:12px;line-height:1.4}.thf-chat-leads-confirm span,.thf-chat-leads-confirm strong{min-width:0;overflow-wrap:anywhere}.thf-chat-leads-confirm strong{color:var(--thf-text)}.thf-chat-leads-confirm-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.thf-chat-leads-error-chip{display:block;margin-top:4px;color:var(--thf-red);font-size:10px;font-weight:760;line-height:1.2}@media(max-width:1320px){.is-chat-leads-layout .thf-board,.thf-chat-leads-view.is-active{height:auto;min-height:auto}.thf-chat-leads-grid{grid-template-columns:1fr;height:auto;min-height:auto;align-items:start}.is-chat-leads-layout .thf-content{overflow:auto}.thf-chat-leads-input-panel{align-self:stretch}.thf-chat-leads-table-panel{min-height:460px}}@media(max-width:1120px){.thf-chat-leads-limit-grid{grid-template-columns:1fr}}@media(max-width:920px){.is-chat-leads-layout .thf-board,.thf-chat-leads-view.is-active{height:auto;min-height:auto}.thf-chat-leads-grid{grid-template-columns:1fr;height:auto;min-height:auto;align-items:start}.is-chat-leads-layout .thf-content{overflow:auto}.thf-chat-leads-input-panel{align-self:stretch}.thf-chat-leads-table-panel{min-height:360px}}@media(max-width:720px){#telegram-hub-flow.is-chat-leads-layout{min-height:100dvh}.is-chat-leads-layout .thf-content{display:flex}.thf-chat-leads-day-plan-row,.thf-chat-leads-actions{grid-template-columns:1fr}.thf-chat-leads-table-tools{width:100%;justify-content:flex-start}.thf-chat-leads-throttle{display:grid;grid-template-columns:1fr;margin:0 0 8px;max-width:100%}.thf-chat-leads-throttle strong,.thf-chat-leads-throttle span{white-space:normal;overflow-wrap:anywhere}.thf-chat-leads-bulk-bar{width:100%;height:auto;max-width:100%;max-height:none;margin:0 0 8px;border:1px solid var(--thf-border);border-radius:8px;align-items:flex-start;justify-content:space-between;flex-direction:row;gap:8px;padding:8px;overflow:hidden}.thf-chat-leads-select-all{flex:1 1 140px}.thf-chat-leads-bulk-actions{flex:1 1 210px;justify-content:flex-end;flex-wrap:wrap}.thf-chat-leads-table-panel table{min-width:1180px}.thf-chat-leads-scan-progress{grid-template-columns:1fr}.thf-chat-leads-row-actions{min-width:0}.thf-chat-leads-delete-queue-row,.thf-chat-leads-archive-row{grid-template-columns:1fr}}#telegram-hub-flow.is-crm-campaigns-layout{height:100vh;min-height:640px}.is-crm-campaigns-layout .thf-app,.is-crm-campaigns-layout .thf-main{height:100%;min-height:0}.is-crm-campaigns-layout .thf-content{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;overflow:hidden}.is-crm-campaigns-layout .thf-board,.thf-crm-campaigns-view.is-active,.thf-crm-campaigns-shell{height:100%;min-height:0}.thf-crm-campaigns-view.is-active{display:grid}.thf-crm-campaigns-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:10px;min-width:0}.thf-crm-campaigns-guard{min-width:0;border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:10px 12px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center}.thf-crm-campaigns-guard.is-dry{border-color:#f3d59a;background:#fff8ed;color:#9a4d05}.thf-crm-campaigns-guard.is-live{border-color:#bee8c9;background:#eefaf1;color:var(--thf-green)}.thf-crm-campaigns-guard svg{width:18px;height:18px}.thf-crm-campaigns-guard strong{display:block;color:var(--thf-text);font-size:13px;line-height:1.25}.thf-crm-campaigns-guard span{display:block;font-size:12px;line-height:1.35;overflow-wrap:anywhere}.thf-crm-campaigns-guard-meta{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.thf-crm-campaigns-guard-meta span{border:1px solid var(--thf-border);border-radius:999px;background:#fff;padding:3px 8px;color:var(--thf-muted);font-size:10px;font-weight:800;white-space:nowrap}.thf-crm-campaigns-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;min-width:0}.thf-crm-campaigns-create{display:flex;align-items:flex-end;gap:8px;min-width:min(520px,100%)}.thf-crm-campaigns-create label{display:grid;gap:5px;min-width:220px;flex:1;color:var(--thf-muted);font-size:11px;font-weight:760}.thf-crm-campaigns-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.thf-crm-campaigns-grid{min-height:0;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(330px,.8fr);grid-auto-rows:minmax(190px,auto);gap:10px;overflow:auto;align-content:start}.thf-crm-campaigns-panel{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.thf-crm-campaigns-side-panel{min-height:0;display:grid;gap:0;align-content:start}.thf-crm-campaigns-table-wrap{max-height:320px}.thf-crm-campaigns-panel table{min-width:920px}.thf-crm-campaigns-main-cell{display:grid;gap:3px;min-width:0}.thf-crm-campaigns-main-cell strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.thf-crm-campaigns-main-cell span{color:var(--thf-muted)}.thf-crm-campaigns-form{padding:12px;display:grid;gap:10px}.thf-crm-campaigns-form .thf-textarea{min-height:132px}.thf-crm-campaigns-chip-list{border-top:1px solid var(--thf-border);background:var(--thf-panel);padding:10px 12px;display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:0}.thf-crm-campaigns-chip{min-height:24px;border:1px solid var(--thf-border);border-radius:999px;background:#fff;color:var(--thf-text);padding:3px 8px;display:inline-flex;align-items:center;gap:6px;font-size:11px;font-weight:780}.thf-crm-campaigns-chip small{color:var(--thf-muted);font-size:10px;font-weight:700}.thf-crm-campaigns-template-list,.thf-crm-campaigns-activity{padding:10px 12px;display:grid;gap:8px;min-width:0}.thf-crm-campaigns-step{border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-panel);padding:8px;display:grid;grid-template-columns:30px minmax(0,1fr);gap:8px;align-items:start}.thf-crm-campaigns-step div:last-child{display:grid;gap:3px;min-width:0}.thf-crm-campaigns-step strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.thf-crm-campaigns-step span,.thf-crm-campaigns-step small{color:var(--thf-muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.thf-crm-campaigns-activity-row{border:1px solid var(--thf-border);border-radius:8px;background:#fff;padding:8px;display:grid;gap:3px;min-width:0}.thf-crm-campaigns-activity-row strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.thf-crm-campaigns-activity-row span,.thf-crm-campaigns-activity-row small{color:var(--thf-muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}@media(max-width:1180px){.is-crm-campaigns-layout .thf-content{overflow:auto}.is-crm-campaigns-layout .thf-board,.thf-crm-campaigns-view.is-active,.thf-crm-campaigns-shell{height:auto;min-height:auto}.thf-crm-campaigns-grid{grid-template-columns:1fr;overflow:visible}.thf-crm-campaigns-table-wrap{max-height:360px}}@media(max-width:720px){#telegram-hub-flow.is-crm-campaigns-layout{min-height:100dvh}.is-crm-campaigns-layout .thf-content{display:flex}.thf-crm-campaigns-guard{grid-template-columns:1fr}.thf-crm-campaigns-guard-meta{justify-content:flex-start}.thf-crm-campaigns-toolbar,.thf-crm-campaigns-create{align-items:stretch;flex-direction:column}.thf-crm-campaigns-head-actions{display:grid;grid-template-columns:1fr}.thf-crm-campaigns-head-actions .thf-btn,.thf-crm-campaigns-create .thf-btn{width:100%}.thf-crm-campaigns-panel table{min-width:880px}}#telegram-hub-flow.is-warmup-layout{height:100vh;min-height:640px}.is-warmup-layout .thf-app,.is-warmup-layout .thf-main{height:100%;min-height:0}.is-warmup-layout .thf-content{display:grid;grid-template-rows:auto minmax(0,1fr);gap:12px;overflow:hidden}.is-warmup-layout .thf-board,.thf-warmup-view.is-active,.thf-warmup-shell{height:100%;min-height:0}.thf-warmup-view.is-active{display:grid}.thf-warmup-shell{display:grid;grid-template-rows:auto auto minmax(0,1fr);gap:10px;min-width:0}.thf-warmup-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;min-width:0}.thf-warmup-tabs{align-self:start}.thf-warmup-tabs .thf-audit-tab{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px}.thf-warmup-tabs .thf-audit-tab svg{width:15px;height:15px;flex:0 0 15px}.thf-warmup-panel{min-height:0;display:grid;grid-template-rows:auto minmax(0,1fr)}.thf-warmup-grid{min-height:0;overflow:auto;padding:8px;display:grid;gap:8px;align-content:start}.thf-warmup-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.thf-warmup-card{border:1px solid var(--thf-border);border-radius:8px;background:var(--thf-app);padding:9px;display:grid;gap:6px;min-width:0}.thf-warmup-card strong{font-size:13px;line-height:1.3;overflow-wrap:anywhere}.thf-warmup-card .thf-detail-title{display:flex;align-items:center;gap:6px}.thf-warmup-card .thf-detail-title svg{width:14px;height:14px;color:var(--thf-primary);flex:0 0 14px}.thf-warmup-section-title{font-size:12px;font-weight:800;line-height:1.25}.thf-warmup-row{border:1px solid var(--thf-border);border-radius:8px;background:light-dark(#fbfdfe,rgba(255,255,255,.02));padding:8px;display:grid;grid-template-columns:minmax(0,1fr) minmax(188px,auto);gap:8px;align-items:center}.thf-warmup-row.is-running{border-color:#2f6fed;background:#edf5ff;box-shadow:inset 3px 0 #2f6fed}.thf-warmup-row.is-running .thf-warmup-row-copy strong{color:#174ea6}.thf-warmup-row.is-failed{border-color:#f0b4a6;background:#fff6f3;box-shadow:inset 3px 0 var(--thf-red)}.thf-warmup-row.is-failed .thf-warmup-row-copy strong{color:var(--thf-red)}.thf-warmup-row-copy{min-width:0;display:grid;gap:3px}.thf-warmup-row-copy strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.thf-warmup-preview{color:var(--thf-muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.thf-warmup-evidence{display:flex;align-items:center;gap:5px;flex-wrap:wrap;min-width:0;color:var(--thf-muted);font-size:11px;line-height:1.35}.thf-warmup-evidence time{min-width:0;overflow-wrap:anywhere}.thf-warmup-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.thf-warmup-actions .thf-btn,.thf-warmup-actions .thf-icon-btn{min-height:34px}.thf-warmup-actions .thf-btn svg,.thf-warmup-actions .thf-icon-btn svg{width:15px;height:15px;flex:0 0 15px}.thf-warmup-readonly-note{min-height:28px;border:1px solid var(--thf-border);border-radius:999px;background:var(--thf-panel);padding:5px 9px;color:var(--thf-muted);font-size:11px;line-height:1.35;display:inline-flex;align-items:center}.thf-warmup-job-check{min-height:34px;border:1px solid var(--thf-border);border-radius:7px;padding:0 9px;background:var(--thf-panel)}.thf-warmup-job-list{display:grid;gap:8px;min-width:0}.thf-warmup-job-row{border:1px solid var(--thf-border);border-radius:8px;background:#fbfdfe;padding:10px;display:grid;grid-template-columns:minmax(260px,1fr) minmax(180px,auto);gap:10px;align-items:center}.thf-warmup-job-row.is-active{border-color:#9edbd2;background:#eefaf7;box-shadow:inset 3px 0 var(--thf-primary)}.thf-warmup-job-main{display:grid;gap:3px;min-width:0}.thf-warmup-job-main strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.thf-warmup-job-main span:not(.thf-mono){color:var(--thf-muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.thf-warmup-job-details{margin-top:8px;display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) minmax(160px,.8fr);gap:8px}.thf-warmup-job-people,.thf-warmup-job-process{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--thf-muted);font-size:11px;line-height:1.35}.thf-warmup-job-people span,.thf-warmup-job-process span{min-height:23px;border:1px solid var(--thf-border);border-radius:999px;background:#fff;padding:3px 8px}.thf-warmup-job-timeline{grid-column:1/-1}.thf-warmup-job-actions{display:grid;gap:6px;min-width:0}.thf-warmup-job-action{border-left:3px solid var(--thf-border);padding:2px 0 2px 8px;display:grid;gap:2px;min-width:0}.thf-warmup-job-action.is-running{border-color:#2f6fed}.thf-warmup-job-action.is-queued{border-color:var(--thf-primary)}.thf-warmup-job-action.is-failed{border-color:var(--thf-red)}.thf-warmup-job-action strong{font-size:11px;line-height:1.3;overflow-wrap:anywhere}.thf-warmup-job-action span:not(.thf-warmup-preview){color:var(--thf-muted);font-size:11px;line-height:1.35;overflow-wrap:anywhere}.thf-warmup-expand{justify-self:start}.thf-warmup-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex-wrap:wrap}.thf-warmup-toggle[aria-checked=true]{border-color:#0f766e;background:light-dark(#edf8f5,rgba(15,118,110,.16));color:light-dark(#0f5f57,#83e1d3)}.thf-warmup-accounts-panel{grid-template-rows:auto auto minmax(0,1fr)}.thf-warmup-account-bulk{background:#fff}.thf-warmup-account-bulk .thf-small{max-width:420px}.thf-warmup-account-grid{padding:0;gap:0;overflow:hidden}.thf-warmup-account-table-wrap{max-height:none;min-height:0;height:100%;overflow:auto}.thf-warmup-account-table{min-width:1240px}.thf-warmup-account-table th{top:0}.thf-warmup-account-table td{height:62px}.thf-warmup-account-cell,.thf-warmup-status-cell{display:grid;gap:3px;min-width:0}.thf-warmup-account-cell strong{font-size:12px;line-height:1.25}.thf-warmup-account-cell span{color:var(--thf-muted);font-size:11px;line-height:1.3;white-space:nowrap}.thf-warmup-limits{min-width:220px;display:grid;gap:4px;color:var(--thf-muted);font-size:11px;line-height:1.35}.thf-warmup-limits span{overflow-wrap:anywhere}.thf-warmup-usage{min-width:118px;display:grid;gap:6px}.thf-warmup-usage-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.thf-warmup-usage-head strong{font-size:12px;line-height:1;font-variant-numeric:tabular-nums}.thf-warmup-usage-head span{color:var(--thf-muted);font-size:11px;line-height:1;font-variant-numeric:tabular-nums}.thf-warmup-meter{height:6px;border-radius:999px;background:#e4ebf0;overflow:hidden}.thf-warmup-meter span{display:block;height:100%;border-radius:inherit;background:var(--thf-primary)}.thf-warmup-job-drawer{width:min(680px,100vw)}.thf-warmup-job-drawer .thf-drawer-body{background:#f3f6f8}.thf-warmup-drawer-section{background:#fff;gap:10px;padding:12px}.thf-warmup-drawer-title{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}.thf-warmup-drawer-title strong{font-size:13px;line-height:1.25}.thf-warmup-drawer-accounts{display:grid;gap:7px;max-height:260px;overflow:auto;padding-right:2px}.thf-warmup-drawer-account{min-height:52px;border:1px solid var(--thf-border);border-radius:8px;background:#fbfdfe;padding:8px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:9px}.thf-warmup-drawer-account.is-selected{border-color:#9edbd2;background:#eefaf7}.thf-warmup-drawer-account-main{min-width:0;display:grid;gap:2px}.thf-warmup-drawer-account-main strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}.thf-warmup-drawer-account-main span{color:var(--thf-muted);font-size:11px;line-height:1.3;overflow-wrap:anywhere}.thf-warmup-drawer-settings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end}.thf-warmup-drawer-settings .thf-warmup-job-check{min-width:0;justify-content:flex-start}.thf-warmup-analytics-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.thf-warmup-analytics-table-wrap{max-height:none;overflow:auto}.thf-warmup-analytics-table{min-width:940px}.thf-warmup-analytics-table td{vertical-align:top}.thf-warmup-validation{border:1px solid var(--thf-border);border-radius:8px;background:#fff;padding:10px;display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px;align-items:start;color:var(--thf-muted)}.thf-warmup-validation.is-ok{border-color:#bee8c9;background:#f0fbf4;color:var(--thf-green)}.thf-warmup-validation.is-bad{border-color:#ffc7b4;background:#fff4ef;color:var(--thf-red)}.thf-warmup-validation>div{display:grid;gap:4px;min-width:0}.thf-warmup-validation strong{color:var(--thf-text);font-size:12px;line-height:1.25}.thf-warmup-validation span:not(.thf-dot){font-size:12px;line-height:1.35;overflow-wrap:anywhere}.thf-warmup-drawer-foot-note{min-width:160px;overflow-wrap:anywhere}.thf-action-meta .thf-btn{justify-self:end}@media(max-width:920px){.thf-warmup-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thf-warmup-analytics-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.thf-warmup-row,.thf-warmup-job-row,.thf-warmup-job-details{grid-template-columns:1fr}.thf-warmup-row>.thf-warmup-actions,.thf-warmup-job-row>.thf-warmup-actions{justify-content:flex-start}.is-warmup-layout .thf-content{overflow:auto}}@media(max-width:720px){#telegram-hub-flow.is-warmup-layout{min-height:1000px}.is-warmup-layout .thf-content{display:flex}.thf-warmup-toolbar{align-items:stretch;grid-template-columns:1fr;flex-direction:column}.thf-warmup-tabs{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.thf-warmup-tabs .thf-audit-tab{min-height:42px}.thf-warmup-tabs .thf-audit-tab:first-child{grid-column:1 / -1}.thf-warmup-toolbar>.thf-warmup-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}.thf-warmup-toolbar>.thf-warmup-actions .thf-status,.thf-warmup-toolbar>.thf-warmup-actions .thf-btn{width:100%;justify-content:center}.thf-warmup-toolbar>.thf-warmup-actions .thf-btn.primary{grid-column:1 / -1}.thf-warmup-summary-grid,.thf-warmup-analytics-grid,.thf-warmup-drawer-settings{grid-template-columns:repeat(2,minmax(0,1fr))}.thf-warmup-job-drawer .thf-drawer-foot{align-items:stretch;flex-direction:column}.thf-warmup-job-drawer .thf-foot-actions{display:grid;grid-template-columns:1fr}.thf-warmup-account-bulk{align-items:stretch}.thf-warmup-account-bulk .thf-bulk-left,.thf-warmup-account-bulk .thf-bulk-actions{width:100%;justify-content:flex-start}.thf-warmup-account-table{min-width:0}.thf-warmup-account-table,.thf-warmup-account-table thead,.thf-warmup-account-table tbody,.thf-warmup-account-table tr,.thf-warmup-account-table td{display:block}.thf-warmup-account-table thead{display:none}.thf-warmup-account-table tr{border-bottom:1px solid var(--thf-border);padding:10px 12px;display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px}.thf-warmup-account-table td{height:auto;border-bottom:0!important;padding:4px 0!important}.thf-warmup-account-table td:nth-child(1){grid-column:1;grid-row:1;padding-top:7px!important}.thf-warmup-account-table td:nth-child(2){grid-column:2 / 4;grid-row:1}.thf-warmup-account-table td:nth-child(3),.thf-warmup-account-table td:nth-child(4),.thf-warmup-account-table td:nth-child(5),.thf-warmup-account-table td:nth-child(6){grid-column:1 / -1}.thf-warmup-account-table td:nth-child(7){grid-column:1 / 3}.thf-warmup-account-table td:nth-child(8){grid-column:3;grid-row:2;text-align:right}.thf-warmup-usage,.thf-warmup-limits{min-width:0}.thf-warmup-analytics-table{min-width:760px}}@media(max-width:460px){.thf-warmup-toolbar>.thf-warmup-actions{grid-template-columns:1fr}.thf-warmup-toolbar>.thf-warmup-actions .thf-btn.primary{grid-column:auto}.thf-warmup-summary-grid{grid-template-columns:1fr}}
