.tt-channel-toggle{display:flex;align-items:center;gap:10px;min-height:48px;font-weight:600}.tt-channel-toggle input{width:22px;height:22px;flex:0 0 auto}.tt-guest-admin-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(240px,2fr);gap:16px}.tt-channel-log{max-height:350px;overflow:auto;padding:12px 24px;background:#f3f7fc;white-space:pre-wrap;overflow-wrap:anywhere}.tt-channel-log li{margin:10px 0}.tt-channel-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}#chat-admin-panel-telegram label,#chat-admin-panel-guests label{display:block;margin:8px 0}#chat-admin-panel-telegram input[type=password],#chat-admin-panel-guests textarea{width:100%;box-sizing:border-box}#chat-admin-panel-telegram details li{margin:10px 0}#chat-admin-panel-telegram a{color:#0759ba;text-decoration:underline}
/* Scoped to the guest widget: keep public-site form and header rules out. */
#tt-guest-chat{position:fixed;right:22px;bottom:22px;z-index:1060;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#152943;font-size:15px;line-height:1.5}
#tt-guest-chat *,#tt-guest-chat *::before,#tt-guest-chat *::after{box-sizing:border-box}
#tt-guest-chat [hidden]{display:none!important}
#tt-guest-chat .tt-guest-launch{display:flex;align-items:center;gap:10px;border:0;border-radius:50px;background:#155eef;color:#fff;padding:13px 20px;font:600 15px/1.4 system-ui,sans-serif;min-height:48px;box-shadow:0 7px 22px #155eef3b}
#tt-guest-chat .tt-guest-launch i{font-size:21px}
#tt-guest-chat .tt-guest-dialog{position:fixed;inset:auto 22px 88px auto;margin:0;width:410px;max-width:calc(100vw - 32px);height:min(640px,calc(100dvh - 112px));max-height:calc(100dvh - 32px);padding:0;border:1px solid #dce6f2;border-radius:22px;background:#fff;box-shadow:0 22px 70px #102a4a33;overflow:hidden;color:#152943;font:15px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
#tt-guest-chat .tt-guest-dialog::backdrop{background:#11294b3d;backdrop-filter:blur(2px)}
#tt-guest-chat .tt-guest-shell{display:flex;flex-direction:column;height:100%;min-height:0}
#tt-guest-chat .tt-guest-header{display:flex;align-items:center;gap:12px;flex:0 0 auto;margin:0;padding:19px 18px;background:linear-gradient(120deg,#155eef,#174cbf);border:0;color:#fff;text-align:left;position:static;box-shadow:none}
#tt-guest-chat .tt-guest-avatar{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border-radius:14px;background:#ffffff24;border:1px solid #ffffff40;font-size:24px}
#tt-guest-chat .tt-guest-header h2{font:700 18px/1.3 system-ui,sans-serif;color:#fff;margin:0 0 4px;letter-spacing:0}
#tt-guest-chat .tt-guest-header p{font-size:12px;line-height:1.4;color:#e2eaff;margin:0}
#tt-guest-chat .tt-guest-close{display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;margin-left:auto;flex:0 0 34px;border:1px solid #ffffff3d;border-radius:10px;background:#ffffff12;color:#fff;font-size:15px;box-shadow:none}
#tt-guest-chat .tt-guest-close:hover{background:#ffffff2b}
#tt-guest-chat .tt-guest-note{display:flex;align-items:center;justify-content:center;gap:7px;flex:0 0 auto;margin:0;padding:9px 12px;border-bottom:1px solid #edf2f8;background:#f7faff;color:#64748b;font-size:11px;line-height:1.4}
#tt-guest-chat .tt-guest-note i{color:#138c74;font-size:14px}
#tt-guest-chat .tt-guest-messages{position:relative;display:flex;flex:1 1 auto;min-height:80px;overflow:hidden;background:linear-gradient(#f7faff,#f1f6fc)}
#tt-guest-chat .tt-guest-log{list-style:none;flex:1;min-width:0;min-height:0;height:auto;margin:0;padding:16px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;white-space:normal;background:transparent}
#tt-guest-chat .tt-guest-log li{display:flex;flex-direction:column;align-items:flex-start;gap:4px;margin:0 0 13px;padding:0;border:0;max-width:100%;background:none}
#tt-guest-chat .tt-guest-log li.is-self{align-items:flex-end}
#tt-guest-chat .tt-guest-bubble{max-width:90%;padding:10px 13px;border:1px solid #e0e8f2;border-radius:15px 15px 15px 4px;background:#fff;box-shadow:0 2px 3px #18375804;color:#243850;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.55;text-align:left}
#tt-guest-chat .is-self .tt-guest-bubble{background:#155eef;color:#fff;border-color:#155eef;border-radius:15px 15px 4px 15px}
#tt-guest-chat .tt-guest-meta{font-size:10px;color:#78889d;padding:0 3px}
#tt-guest-chat .tt-guest-empty{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;pointer-events:none}
#tt-guest-chat .tt-guest-empty>span{display:grid;place-items:center;width:58px;height:58px;margin-bottom:12px;border-radius:20px;background:#e6efff;color:#155eef;font-size:28px}
#tt-guest-chat .tt-guest-empty strong{color:#233d61;font-size:14px;font-weight:650}
#tt-guest-chat .tt-guest-empty p{max-width:240px;margin:7px 0 0;color:#7c8b9f;font-size:12px;line-height:1.55}
#tt-guest-chat .tt-guest-form{display:block;flex:0 0 auto;min-width:0;margin:0;padding:13px 16px 12px;border:0;border-top:1px solid #e5ecf5;background:#fff}
#tt-guest-chat .tt-guest-form .form-label{display:block;margin:0 0 5px;color:#38516f;font-size:12px;font-weight:600;line-height:1.4}
#tt-guest-chat .form-label small{font-size:11px;color:#8a99ad;font-weight:400}
#tt-guest-chat .tt-guest-form input,#tt-guest-chat .tt-guest-form textarea{display:block;width:100%;min-width:0;max-width:100%;margin:0 0 9px;padding:9px 11px;border:1px solid #dce5f0;border-radius:11px;background:#fbfcff;color:#1c3658;font:400 16px/1.45 system-ui,sans-serif;box-shadow:none;outline:0;transition:border-color .15s,box-shadow .15s}
#tt-guest-chat .tt-guest-form input{height:40px}
#tt-guest-chat .tt-guest-form textarea{height:74px;min-height:64px;max-height:140px;resize:vertical}
#tt-guest-chat .tt-guest-form input:focus,#tt-guest-chat .tt-guest-form textarea:focus{border-color:#76a5ff;box-shadow:0 0 0 3px #155eef14;background:#fff}
#tt-guest-chat .tt-guest-form input::placeholder,#tt-guest-chat .tt-guest-form textarea::placeholder{color:#98a5b5;font-size:13px}
#tt-guest-chat .tt-guest-compose-footer{display:flex;align-items:center;justify-content:space-between;gap:10px}
#tt-guest-chat .tt-guest-compose-footer small{font-size:10px;line-height:1.35;color:#98a5b5;max-width:145px}
#tt-guest-chat .tt-guest-compose-footer button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:40px;padding:9px 14px;border:0;border-radius:11px;background:#155eef;color:#fff;font:600 13px/1.4 system-ui,sans-serif;white-space:nowrap}
#tt-guest-chat .tt-guest-compose-footer button:hover{background:#104cc9}
#tt-guest-chat button:disabled{opacity:.6;cursor:wait}
#tt-guest-chat button:focus-visible{outline:3px solid #8bb7ff;outline-offset:3px}
#tt-guest-chat .tt-guest-status{margin:0;color:#b43232;font-size:12px;line-height:1.45}
#tt-guest-chat .tt-guest-status:not(:empty){margin:8px 0 0}
@media(max-width:600px){.tt-guest-admin-layout{grid-template-columns:1fr}.tt-channel-actions>*{min-height:44px}#tt-guest-chat{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}#tt-guest-chat .tt-guest-dialog{inset:auto 12px max(12px,env(safe-area-inset-bottom)) 12px;width:auto;max-width:none;height:min(670px,calc(100dvh - 24px));max-height:calc(100dvh - 24px);border-radius:20px}#tt-guest-chat .tt-guest-header{padding:16px}#tt-guest-chat .tt-guest-form{padding:12px 14px}#tt-guest-chat .tt-guest-compose-footer small{max-width:130px}}
@media(prefers-reduced-motion:reduce){#tt-guest-chat *{transition:none!important}}
