.tg-composer-tools-toggle{display:none}.tg-composer-tools{flex:none;min-width:0}@media(max-width:1024px) and (max-height:500px) and (pointer:coarse),(max-width:760px){body:has(.tg-redesign),html:has(.tg-redesign){height:var(--tg-visible-height,100dvh);min-height:0;overflow:hidden;overscroll-behavior:none}body:has(.tg-redesign){position:fixed;inset:0 0 auto;width:100%}.admin-app:has(.tg-redesign){position:fixed;inset:var(--tg-visible-top,0) 0 auto;height:var(--tg-visible-height,100dvh);min-height:0;display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top)}.admin-app:has(.tg-redesign)>.admin-sidebar{position:relative;inset:auto;width:100%;height:56px;min-height:56px;flex:none;padding:4px 12px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.admin-app:has(.tg-redesign)>.admin-sidebar>.logo-lockup{height:44px;width:132px;margin:0}.admin-app:has(.tg-redesign)>.admin-sidebar>.admin-menu-toggle{display:flex;min-height:44px;align-items:center;justify-content:center;margin:0}.admin-app:has(.tg-redesign)>.admin-sidebar:not(.menu-open)>.admin-sidebar-bottom,.admin-app:has(.tg-redesign)>.admin-sidebar:not(.menu-open)>nav{display:none}.admin-app:has(.tg-redesign)>.admin-sidebar.menu-open{position:absolute;inset:0 0 auto;z-index:700;height:auto;max-height:100%;display:flex;flex-wrap:wrap;overflow:auto;box-shadow:0 12px 25px #0002}.admin-app:has(.tg-redesign)>.admin-sidebar.menu-open>.admin-sidebar-bottom,.admin-app:has(.tg-redesign)>.admin-sidebar.menu-open>nav{display:flex;flex-basis:100%;width:100%;margin:8px 0}.admin-app:has(.tg-redesign.tg-has-selection)>.admin-sidebar{display:none}.admin-app:has(.tg-redesign)>.admin-main.channel-chat-main{position:relative;inset:auto;flex:1 1;width:100%;height:0;min-height:0;margin:0!important;padding:0!important;overflow:hidden}.admin-main:has(.tg-redesign)>.channel-page-header{display:none}.tg-redesign.channel-chat-content{height:100%;min-height:0;overflow:hidden}.tg-redesign.channel-chat-content>.tg-workspace,.tg-redesign.channel-chat-content>.tg-workspace:has(.tg-contact-sidebar.collapsed),.tg-redesign.channel-chat-content>.tg-workspace:not(:has(.tg-contact-sidebar)){display:flex!important;flex-direction:column;flex:1 1;height:0!important;min-height:0!important;overflow:hidden}.tg-redesign .tg-workspace>.wa-chat-sidebar{height:100%;max-height:none;min-height:0!important;flex:1 1;border:0}.tg-redesign .tg-workspace>.wa-chat-detail{display:none!important;min-height:0!important;height:100%!important}.tg-redesign .tg-contact-sidebar,.tg-redesign.tg-has-selection .wa-chat-sidebar{display:none}.tg-redesign.tg-has-selection:not(.tg-mobile-contact) .wa-chat-detail{display:flex!important;flex:1 1}.tg-redesign.tg-has-selection.tg-mobile-contact .tg-contact-sidebar{display:block;flex:1 1;border-left:0;max-height:none;overflow:auto;padding:0 16px max(20px,env(safe-area-inset-bottom));overscroll-behavior:contain}.tg-redesign .tg-redesign-mobilebar{display:flex;flex:none;justify-content:space-between;padding:4px 8px;border-bottom:1px solid var(--line);background:var(--surface)}.tg-redesign .tg-redesign-mobilebar>button{min-height:44px;padding:8px;font-size:14px;color:var(--ink)}.tg-redesign .tg-contact-sidebar :is(input,textarea,select),.tg-redesign .wa-chat-search input:not([type=checkbox]),.tg-redesign .wa-chat-search select{font-size:16px;min-height:44px}.tg-redesign .tg-workspace>.wa-chat-sidebar>.wa-chat-search{padding:12px 12px 0;max-height:60%}.tg-redesign .tg-inbox-tabs{gap:4px;justify-content:space-between;overflow-x:auto}.tg-redesign .tg-inbox-tabs :is(button,span>button){min-height:44px;flex-shrink:0}.tg-redesign .tg-automation-trigger{height:44px}.tg-redesign .wa-chat-line strong{font-size:16px}.tg-redesign .wa-chat-preview{font-size:14px;line-height:1.45}.tg-redesign .wa-chat-scroll{padding:4px 6px max(8px,env(safe-area-inset-bottom));overscroll-behavior:contain}.tg-redesign .wa-chat-item{min-height:98px;padding:12px 10px}.tg-redesign .wa-chat-message-scroll{padding:12px 10px;overscroll-behavior:contain;min-height:0;flex:1 1}html .tg-redesign .tg-workspace .tg-message-wrap .tg-telegram-bubble{max-width:94%;padding:10px 12px;font-size:16px;line-height:1.5;overflow-wrap:anywhere;word-break:normal}html .tg-redesign .tg-workspace .tg-message-wrap .tg-telegram-bubble p{font-size:16px;line-height:1.5;overflow-wrap:anywhere;white-space:pre-wrap}.tg-redesign .tg-message-wrap{margin-bottom:8px}html .tg-redesign .tg-workspace .tg-message-wrap .tg-telegram-bubble>.tg-bubble-time{font-size:11px;min-height:30px;margin:0;padding:8px 34px 0 0;box-sizing:border-box}.tg-redesign .tg-flow-summary{min-height:26px;padding:3px 12px;gap:8px;font-size:11px}.tg-redesign .tg-flow-ai,.tg-redesign .tg-flow-auto{flex-wrap:nowrap;gap:5px}.tg-redesign .tg-flow-ai>span,.tg-redesign .tg-flow-auto>span{flex-basis:auto}.tg-redesign .tg-composer-tools-toggle{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;border:0;border-top:1px solid var(--line);border-radius:0;padding:8px 12px;background:var(--surface);color:var(--ink);font-size:13px;text-align:left}.tg-composer-tools-toggle svg{width:20px;height:20px;flex:none}.tg-tools-state{margin-left:auto;color:var(--text-secondary);font-size:12px}.tg-redesign .tg-composer-tools:not(.is-open)>.tg-composer-tools-content{display:none}.tg-redesign .tg-composer-tools{display:flex;flex-direction:column;flex:0 1 auto;min-height:44px;max-height:min(360px,calc(var(--tg-visible-height,100dvh) * .36))}.tg-redesign .tg-composer-tools-toggle{flex:none}.tg-redesign .tg-composer-tools-content{flex:1 1;min-height:0;overflow:auto;padding:4px 10px;overscroll-behavior:contain;background:var(--surface)}.tg-redesign .tg-composer-tools-content :is(button,input,select){min-height:44px}.tg-redesign .tg-composer-tools-content .ai-recommendation-bar{margin:4px 0!important;flex-wrap:wrap}.tg-redesign .tg-reply{margin:0;padding:8px 10px max(8px,env(safe-area-inset-bottom));gap:8px;border:0;border-top:1px solid var(--line);border-radius:0;background:var(--surface);align-items:stretch}.tg-redesign .tg-reply textarea{min-height:60px;max-height:min(24dvh,144px);font-size:16px;line-height:1.45;resize:none;padding:8px!important;background:var(--control)!important;border-radius:8px}.tg-redesign .tg-reply .tg-reply-actions{width:92px;gap:4px}.tg-redesign .tg-reply .tg-reply-actions>button{min-height:44px;background:#b83450;color:white}.tg-redesign .tg-reply .tg-quick-emoji{gap:4px}.tg-redesign .tg-reply .tg-quick-emoji button{min-height:44px;min-width:44px}.tg-redesign .tg-contact-sidebar details[data-contact-section]>summary{font-size:15px;min-height:48px}.tg-redesign .tg-contact-sidebar :is(button,label,dt,dd){font-size:14px}.tg-redesign .tg-contact-sidebar button{min-height:44px}.tg-redesign .tg-contact-title{font-size:16px;min-height:54px}.tg-redesign .tg-contact-collapse{display:none}.tg-redesign .tg-persona-hint{padding:6px 10px;gap:6px;flex-wrap:wrap}.tg-redesign .tg-persona-hint .tg-persona-btn{min-height:44px}.tg-redesign .tg-persona-text{min-width:0}.tg-redesign .tg-send-check{flex:none;max-height:100px;overflow:auto;font-size:12px}html[data-tg-keyboard=open] .tg-redesign .tg-flow-status,html[data-tg-keyboard=open] .tg-redesign .tg-reply .tg-quick-emoji{display:none}html[data-tg-keyboard=open] .tg-redesign .tg-reply textarea{min-height:44px}}.tg-composer-drawer-header,.tg-mobile-next-row{display:none}.tg-latest-jump{position:absolute;left:50%;bottom:12px;transform:translateX(-50%);z-index:9;min-height:44px;padding:8px 14px;border:1px solid var(--line);border-radius:22px;background:var(--surface);color:var(--ink);white-space:nowrap}.tg-connection-state{display:flex;flex:none;align-items:center;justify-content:space-between;gap:8px;padding:8px 12px;background:var(--control);color:var(--ink);font-size:13px;border-top:1px solid var(--line)}.tg-favorite-toggle{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--text-secondary)}.tg-favorite-toggle[aria-pressed=true]{color:var(--chat-accent);background:var(--chat-accent-wash)}.tg-favorite-toggle svg{width:20px;height:20px}.tg-material-search{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0}.tg-material-search input{min-width:140px;flex:1 1}.tg-favorites-filter,.tg-material-search button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink)}.tg-favorites-filter[aria-pressed=true],.tg-material-search button[aria-pressed=true]{background:var(--chat-accent-wash);color:var(--chat-accent)}.tg-material-preview p{white-space:pre-wrap;overflow-wrap:anywhere}.tg-material-preview summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.tg-tools-portal{position:relative;z-index:2000;color:var(--ink)}.tg-tools-portal:not(.is-open){display:none}@media(max-width:1024px) and (max-height:500px) and (pointer:coarse),(max-width:760px){.tg-redesign .tg-reply{align-items:flex-end}.tg-redesign .tg-reply textarea{max-height:none;min-height:60px;flex:1 1;align-self:flex-end}.tg-redesign .tg-mobile-next-row{display:flex;flex:none;justify-content:flex-end;min-height:44px;padding:0 10px;border-top:1px solid var(--line);background:var(--surface)}.tg-mobile-next-row button{min-height:44px;padding:8px 12px;border:0;background:transparent;color:var(--chat-accent);font-size:13px}.tg-mobile-next-row button:disabled{color:var(--text-secondary);opacity:.6}.tg-composer-backdrop{position:fixed;inset:0;z-index:2000;border:0;background:#0006}.tg-redesign .tg-mobile-drawer{position:fixed;z-index:2001;left:0;right:0;bottom:auto;width:auto;margin:0;top:calc(var(--tg-visible-top,0px) + var(--tg-visible-height,100dvh) * .16);height:calc(var(--tg-visible-height,100dvh) * .84);max-height:none;display:block;overflow:auto;overscroll-behavior:contain;padding:0 12px max(16px,env(safe-area-inset-bottom));background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px 16px 0 0;outline:none}.tg-mobile-drawer .tg-composer-drawer-header{display:flex;position:-webkit-sticky;position:sticky;top:0;z-index:4;align-items:center;justify-content:space-between;gap:8px;min-height:56px;background:var(--surface);border-bottom:1px solid var(--line);touch-action:pan-x}.tg-composer-drawer-header strong{font-size:16px}.tg-mobile-drawer :is(button,input,select){min-height:44px;font-size:14px}.tg-mobile-drawer :is(input,textarea,select){font-size:16px}.tg-mobile-drawer .tg-text-scripts-panel{height:auto;max-height:none;overflow:visible}.tg-mobile-drawer .tg-text-scripts-panel>header{display:flex;flex-wrap:wrap;gap:8px}.tg-mobile-drawer .tg-text-scripts-panel>header input{flex:1 1;min-width:140px}.tg-mobile-drawer .tg-text-scripts-list{overflow:visible}.tg-mobile-drawer .tg-text-scripts-list article{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start}.tg-mobile-drawer .tg-text-scripts-list article>div:first-of-type{flex:1 1;min-width:180px}.tg-mobile-drawer .tg-script-tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tg-mobile-drawer .tg-script-tile{min-width:0}.tg-mobile-drawer .tg-script-tile>strong{white-space:normal}.tg-mobile-drawer .model-view-switch{display:flex;flex-wrap:wrap;gap:4px}.tg-mobile-drawer .tg-chat-scripts-panel{max-height:none;overflow:visible}}.tg-mobile-drawer::-webkit-backdrop{background:#0006}.tg-mobile-drawer::backdrop{background:#0006}.tg-tool-tabs,.tg-toolbar-next-slot,.tg-toolbar-status-empty,.tg-toolbar-status-toggle{display:none}.tg-tools-ai,.tg-tools-upload{display:contents}@media(max-width:1024px) and (max-height:500px) and (pointer:coarse),(max-width:760px){.tg-toolbar-status-detail:not(:has(.tg-flow-status)) .tg-toolbar-status-empty{display:block}}@media(max-width:1024px) and (max-height:500px) and (pointer:coarse),(max-width:760px){.tg-redesign .tg-composer-tools{position:relative;overflow:visible;max-height:none;flex:none}.tg-composer-toolbar{display:flex;align-items:center;gap:4px;min-height:48px;padding:0 8px;border-top:1px solid var(--line);background:var(--surface)}.tg-redesign .tg-composer-toolbar .tg-composer-tools-toggle{width:auto;min-width:0;flex:1 1;border:0;padding:8px 4px;gap:5px;white-space:nowrap;font-size:13px}.tg-toolbar-next-slot{display:block;flex:none}.tg-toolbar-next{min-height:44px;padding:6px;border:0;background:transparent;color:var(--chat-accent);font-size:12px;white-space:nowrap}.tg-toolbar-next:disabled{color:var(--text-secondary)}.tg-toolbar-status{flex:none}.tg-toolbar-status-toggle{display:flex;align-items:center;justify-content:center;gap:4px;min-width:48px;min-height:44px;padding:4px;border:0;background:transparent;color:var(--text-secondary);font-size:12px}.tg-toolbar-status-detail{display:none;position:absolute;right:8px;bottom:calc(100% + 4px);z-index:30;max-width:calc(100vw - 32px);padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 4px 16px #0002}.tg-toolbar-status.is-open .tg-toolbar-status-detail,html[data-tg-keyboard=open] .tg-redesign .tg-toolbar-status-detail .tg-flow-status{display:block}.tg-toolbar-status-detail .tg-flow-summary{flex-wrap:wrap;gap:8px;padding:0;min-height:0}.tg-toolbar-status-empty{font-size:13px}.tg-redesign .tg-mobile-drawer{padding:0 12px max(16px,env(safe-area-inset-bottom))}.tg-tool-tabs{display:flex;gap:4px;position:-webkit-sticky;position:sticky;top:56px;z-index:4;background:var(--surface);padding:4px 0 8px;border-bottom:1px solid var(--line)}.tg-tool-tabs button{flex:1 1;min-width:0;border:0;border-radius:8px;background:transparent;color:var(--text-secondary);font-size:14px}.tg-tool-tabs button[aria-selected=true]{color:var(--chat-accent);background:var(--chat-accent-wash);font-weight:600}.tg-mobile-drawer .tg-chat-scripts-bar>.tg-scripts-toggle,.tg-mobile-drawer>.tg-mobile-text-scripts,.tg-mobile-drawer[data-tool-tab=ai] .tg-chat-scripts-panel,.tg-mobile-drawer[data-tool-tab=ai] .tg-tools-upload,.tg-mobile-drawer[data-tool-tab=media] .tg-tools-ai{display:none}.tg-mobile-drawer .tg-chat-scripts-bar{padding:8px 0;min-height:0;flex-wrap:wrap}.tg-mobile-drawer .tg-chat-scripts-panel{padding:0;border:0;background:transparent;box-shadow:none}.tg-mobile-drawer .tg-material-search{margin:0 0 6px;gap:4px;flex-wrap:nowrap}.tg-mobile-drawer .tg-material-search input{min-width:0;width:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:var(--control)}.tg-mobile-drawer .tg-material-search button{font-size:12px;padding:6px;white-space:nowrap}.tg-mobile-drawer .model-view-switch{flex-wrap:nowrap;overflow-x:auto;padding:0;gap:4px;justify-content:flex-start;min-height:44px}.tg-mobile-drawer .model-view-switch button{flex:none;padding:6px 10px;font-size:12px}.tg-mobile-drawer .tg-script-once{display:flex;align-items:center;gap:6px;min-height:44px;padding:6px 0;font-size:12px;line-height:1.35}.tg-mobile-drawer .tg-script-once input{min-height:20px;width:20px;height:20px;flex:none;margin:0}.tg-mobile-drawer .tg-script-tile{position:relative;align-content:start;padding:8px;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.tg-mobile-drawer .tg-script-tile>.tg-favorite-toggle{position:absolute;right:2px;top:2px;width:44px;min-width:44px;height:44px;margin:0;padding:10px;border:0;background:transparent;z-index:1}.tg-mobile-drawer .tg-script-tile>strong{padding-right:34px;min-height:36px;font-size:14px;line-height:1.35;display:flex;align-items:center}.tg-mobile-drawer .tg-script-tile-text{display:block;min-height:64px;height:auto;padding:10px;font-size:14px;line-height:1.45;text-align:left;overflow-wrap:anywhere}.tg-mobile-drawer .tg-script-tile-media{height:110px;object-fit:cover;border-radius:6px}.tg-mobile-drawer .tg-material-preview{font-size:14px;line-height:1.45}html .tg-redesign .tg-workspace .tg-message-wrap .tg-telegram-bubble>[data-message-body]{display:block;margin:0;float:none}html .tg-redesign .tg-workspace .tg-message-wrap .tg-telegram-bubble>.tg-bubble-time{display:flex;float:none;position:static;clear:both;width:100%;justify-content:flex-end;align-items:center;gap:4px;min-height:30px;padding:6px 34px 0 0;margin:0;font-size:11px;line-height:18px}}.tg-location-toggle,.tg-toolbar-quick-actions{display:none}.tg-location-details{display:contents}@media(max-width:1024px) and (max-height:500px) and (pointer:coarse),(max-width:760px){.admin-app .tg-redesign .tg-location-strip{position:relative;inset:auto;display:flex;flex-direction:column;flex-wrap:nowrap;align-items:stretch;flex:0 0 auto;min-width:0;min-height:44px;margin:0;padding:0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--surface);box-shadow:none}.tg-redesign .tg-location-toggle{display:flex;align-items:center;gap:6px;width:100%;min-width:0;min-height:44px;padding:0 10px;border:0;background:transparent;color:var(--ink);font-size:13px;text-align:left}.tg-location-summary{flex:1 1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.tg-location-check{color:var(--green,#35b987)}.tg-redesign .tg-location-details{display:none}.tg-redesign .tg-location-strip.is-expanded .tg-location-details{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:4px 10px 10px;max-height:min(240px,calc(var(--tg-visible-height,100dvh)*.4));overflow:auto;overscroll-behavior:contain}.tg-location-details>.tg-persona-icon{display:none}.tg-redesign .tg-location-details .tg-persona-text{flex:1 1 100%;min-width:0}.tg-redesign .tg-location-details .tg-persona-text strong{white-space:normal;overflow-wrap:anywhere}.tg-redesign .tg-location-details .tg-persona-badge{display:none}.tg-redesign .tg-location-details :is(.tg-persona-actions,.tg-persona-custom){margin:0;width:100%;min-width:0;display:flex;flex-wrap:wrap;gap:6px}.tg-redesign .tg-location-details .tg-persona-custom label{flex:1 1 100%;min-width:0}.tg-redesign .tg-location-details .tg-persona-custom input{font-size:16px;min-height:44px;max-width:100%;box-sizing:border-box}.tg-redesign .tg-location-details .tg-persona-btn{min-height:44px;min-width:44px;padding:8px 10px;white-space:normal}.admin-app .tg-redesign .tg-reply{align-items:flex-end;gap:8px;padding:8px 10px max(8px,env(safe-area-inset-bottom))}.admin-app .tg-redesign .tg-reply textarea{box-sizing:border-box;min-height:44px;max-height:none;padding:8px 10px;font-size:16px;line-height:1.45;overflow-y:auto;resize:none}.admin-app .tg-redesign .tg-reply .tg-reply-actions{width:80px;flex:0 0 80px;display:flex;align-self:flex-end}.admin-app .tg-redesign .tg-reply .tg-reply-actions>.tg-quick-emoji{display:none}.admin-app .tg-redesign .tg-reply .tg-reply-actions>button{min-height:44px;width:100%;padding:8px 4px;font-size:13px}.tg-redesign .tg-composer-toolbar{gap:2px;padding:0 6px;min-height:48px}.tg-redesign .tg-toolbar-quick-actions{display:block;flex:none}.tg-redesign .tg-toolbar-quick-actions .tg-quick-emoji{display:flex;gap:2px;margin:0}.tg-redesign .tg-toolbar-quick-actions button{display:flex;align-items:center;justify-content:center;min-width:44px;width:44px;min-height:44px;height:44px;margin:0;padding:0;font-size:21px;background:transparent;border:0;border-radius:8px}.tg-redesign .tg-composer-toolbar .tg-composer-tools-toggle{flex:0 1 auto;min-width:44px;min-height:44px;padding:0 4px;gap:4px;font-size:12px}.tg-redesign .tg-toolbar-next-slot{flex:1 1;min-width:0;display:flex;justify-content:flex-end}.tg-redesign .tg-toolbar-next{display:flex;align-items:center;justify-content:center;gap:3px;min-width:44px;min-height:44px;padding:0 4px;white-space:nowrap;font-size:12px}.tg-redesign .tg-toolbar-status-toggle{min-width:44px;min-height:44px;padding:0 2px;font-size:12px}}@media(max-width:360px){.tg-redesign .tg-composer-tools-toggle>span,.tg-redesign .tg-toolbar-next .tg-next-label{display:none}}