.tgagg .rich-composer{flex:1;min-width:0;min-height:21px;max-height:160px;overflow:auto;padding:0;margin:0;font:inherit;font-size:15.5px;line-height:21px;white-space:pre-wrap;word-break:break-word;outline:none;border:0;background:transparent;align-self:center}
.tgagg .composer-box.composer-box-multiline .rich-composer{align-self:auto;padding:2px 0}
.tgagg .rich-composer:empty:before{content:attr(data-placeholder);color:#9ca3af;pointer-events:none}
.tgagg .rich-composer.is-disabled{opacity:.55;pointer-events:none}
.tgagg .rich-composer b,.tgagg .rich-composer strong,.tgagg .message b,.tgagg .message strong{font-weight:700}
.tgagg .rich-composer i,.tgagg .rich-composer em,.tgagg .message i,.tgagg .message em{font-style:italic}
.tgagg .rich-composer u,.tgagg .message u{text-decoration:underline}
.tgagg .rich-composer s,.tgagg .rich-composer del,.tgagg .message s,.tgagg .message del{text-decoration:line-through}
.tgagg .rich-composer code,.tgagg .message code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:rgba(15,23,42,.06);border-radius:4px;padding:0 .22em}
.tgagg .rich-composer pre,.tgagg .message pre{display:block;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.92em;background:rgba(15,23,42,.06);border-radius:8px;padding:6px 8px;margin:2px 0;white-space:pre-wrap}
.tgagg .composer-premium-emoji,.tgagg .message-premium-emoji{display:inline-flex;align-items:center;justify-content:center;width:1.25em;height:1.25em;vertical-align:-0.2em;line-height:1;overflow:hidden}
.tgagg .message-premium-emoji.is-placeholder{color:transparent;background:rgba(148,163,184,.28);border-radius:4px;box-shadow:inset 0 0 0 1px rgba(148,163,184,.25)}
.tgagg .message-premium-emoji.is-placeholder::after{content:"";display:block;width:55%;height:55%;border-radius:2px;background:rgba(255,255,255,.45)}
.tgagg .rich-composer .composer-premium-emoji{display:inline-block;user-select:text;-webkit-user-select:text;-webkit-touch-callout:default;cursor:text}
.tgagg .rich-composer .composer-premium-emoji img,.tgagg .rich-composer .composer-premium-emoji video,.tgagg .rich-composer .composer-premium-emoji svg,.tgagg .rich-composer .composer-premium-emoji canvas{pointer-events:none;user-select:none;-webkit-user-select:none}
.tgagg .composer-premium-emoji:not([data-asset-loaded="1"]){opacity:.92}
.tgagg .message-premium-emoji img,.tgagg .message-premium-emoji video,.tgagg .composer-premium-emoji img,.tgagg .composer-premium-emoji video,.tgagg .message-premium-emoji svg,.tgagg .composer-premium-emoji svg,.tgagg .emoji-cell.premium svg,.tgagg .emoji-cell.premium video,.tgagg .emoji-cell.premium img,.tgagg .emoji-cell.premium canvas{width:100%;height:100%;object-fit:contain;pointer-events:none}
.tgagg .emoji-cell.premium{contain:layout paint style}
.tgagg .emoji-picker-body{-webkit-overflow-scrolling:touch;overscroll-behavior:contain;will-change:scroll-position}
/* keyboard hand-off: while the picker is not shown, the reserved gap must not flash white */
.tgagg .emoji-keyboard-slot.is-keyboard-reserved:not(:has(.emoji-picker-panel)){background:transparent!important;border-top:0!important}
.tgagg .emoji-trigger-btn{font-size:18px;line-height:1;flex:0 0 auto;position:relative;z-index:2;touch-action:manipulation;-webkit-tap-highlight-color:transparent;user-select:none;-webkit-user-select:none}
.tgagg .dialog-preview{display:flex;align-items:center;gap:4px;min-width:0}
.tgagg .dialog-preview>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.tgagg .dialog-read-status{flex:0 0 auto}
/* EMOJI_ISLAND_V1: the emoji window looks and moves like the templates, notes and profile windows of the chat:
   glass surface, round corners, a spring opening from the emoji button, skeleton instead of a spinner. */
.tgagg .emoji-picker-portal,.tgagg .emoji-preview-pop{
  --ep-surface:rgba(255,255,255,.84);--ep-solid:#fff;--ep-border:rgba(255,255,255,.72);--ep-fg:#14202e;--ep-muted:#6c7b8d;
  --ep-line:rgba(15,23,42,.08);--ep-chip:rgba(15,23,42,.05);--ep-chip-hover:rgba(15,23,42,.09);
  --ep-accent:#2aabee;--ep-accent-soft:rgba(42,171,238,.14);--ep-accent-line:rgba(42,171,238,.36);--ep-ease:cubic-bezier(.2,.9,.3,1);
}
.tgagg.theme-dark .emoji-picker-portal,.tgagg.theme-dark .emoji-preview-pop{
  --ep-surface:rgba(21,34,47,.86);--ep-solid:#172533;--ep-border:rgba(255,255,255,.09);--ep-fg:#e9eff5;--ep-muted:#8ea2b5;
  --ep-line:rgba(255,255,255,.08);--ep-chip:rgba(255,255,255,.07);--ep-chip-hover:rgba(255,255,255,.12);
  --ep-accent-soft:rgba(42,171,238,.2);--ep-accent-line:rgba(42,171,238,.44);
}
.tgagg .emoji-picker-portal{position:fixed;z-index:12000}
.tgagg .emoji-picker-panel{background:var(--ep-surface);color:var(--ep-fg);border:1px solid var(--ep-border);border-radius:22px;box-shadow:0 26px 64px rgba(15,23,42,.26),0 3px 10px rgba(15,23,42,.10),inset 0 1px 0 rgba(255,255,255,.6);-webkit-backdrop-filter:blur(28px) saturate(1.7);backdrop-filter:blur(28px) saturate(1.7);overflow:hidden;display:flex;flex-direction:column;max-height:min(480px,74vh);transform-origin:var(--emoji-ox,88%) var(--emoji-oy,100%);will-change:transform,opacity;animation:emojiIslandIn .42s cubic-bezier(.18,1.15,.3,1) both}
.tgagg.theme-dark .emoji-picker-panel{box-shadow:0 28px 70px rgba(0,0,0,.62),0 3px 10px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.07)}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.tgagg .emoji-picker-portal{--ep-surface:rgba(255,255,255,.97)}.tgagg.theme-dark .emoji-picker-portal{--ep-surface:rgba(21,34,47,.97)}}
.tgagg .emoji-picker-portal:not(.is-docked) .emoji-picker-panel{height:min(440px,74vh)}
.tgagg .emoji-picker-portal.is-leaving .emoji-picker-panel{animation:emojiIslandOut .15s cubic-bezier(.4,0,1,1) both;pointer-events:none}
@keyframes emojiIslandIn{from{opacity:0;transform:translateY(12px) scale(.9)}to{opacity:1;transform:none}}
@keyframes emojiIslandOut{to{opacity:0;transform:translateY(8px) scale(.94)}}
@keyframes emojiDockIn{from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
@keyframes emojiBodyIn{from{opacity:0;transform:translateY(8px) scale(.985)}to{opacity:1;transform:none}}
@keyframes emojiShimmer{from{background-position:120% 0}to{background-position:-120% 0}}
/* header: the same badge, title and round close button as the other chat windows (hidden in the docked keyboard) */
.tgagg .emoji-head{display:flex;align-items:center;gap:12px;padding:12px 12px 6px 14px;flex:0 0 auto}
.tgagg .emoji-head-badge{flex:0 0 36px;width:36px;height:36px;border-radius:12px;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#ffd45e,#ff9a2e);box-shadow:0 7px 16px rgba(255,154,46,.34)}
.tgagg .emoji-head-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.tgagg .emoji-head-title{font-size:16px;font-weight:800;line-height:1.2;letter-spacing:-.01em;color:var(--ep-fg)}
.tgagg .emoji-head-sub{font-size:12px;line-height:1.25;color:var(--ep-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgagg .emoji-picker-toolbar:not(:has(.emoji-set-btn:nth-child(2))){display:none}
.tgagg .emoji-head-close{flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;cursor:pointer;background:var(--ep-chip);color:var(--ep-muted);transition:background-color .15s ease,color .15s ease,transform .15s ease}
.tgagg .emoji-head-close:hover{background:var(--ep-accent-soft);color:var(--ep-accent)}
.tgagg .emoji-head-close:active{transform:scale(.9)}
.tgagg .emoji-keyboard-slot .emoji-head,.tgagg .emoji-picker-portal.is-docked .emoji-head{display:none}
.tgagg .emoji-picker-toolbar{display:flex;align-items:center;gap:6px;padding:4px 10px 8px;border-bottom:1px solid var(--ep-line);background:transparent;flex:0 0 auto;min-height:0}
.tgagg .emoji-picker-toolbar .emoji-set-nav{flex:1 1 auto;min-width:0;border-bottom:0;padding:0}
/* the search row under the tabs: the same for every number */
.tgagg .emoji-search{position:relative;display:flex;align-items:center;margin:8px 10px 2px;flex:0 0 auto}
.tgagg .emoji-search-icon{position:absolute;left:13px;color:var(--ep-muted);pointer-events:none}
.tgagg .emoji-search-input{width:100%;box-sizing:border-box;height:36px;border:1px solid transparent;border-radius:999px;background:var(--ep-chip);color:var(--ep-fg);font:inherit;font-size:14px;padding:0 34px 0 38px;outline:0;transition:border-color .15s ease,background-color .15s ease}
.tgagg .emoji-search-input::placeholder{color:var(--ep-muted)}
.tgagg .emoji-search-input:focus{border-color:var(--ep-accent-line);background:var(--ep-chip-hover)}
.tgagg .emoji-search-clear{position:absolute;right:5px;width:26px;height:26px;padding:0;border:0;border-radius:50%;display:grid;place-items:center;background:transparent;color:var(--ep-muted);cursor:pointer;transition:background-color .15s ease,color .15s ease}
.tgagg .emoji-search-clear[hidden]{display:none}
.tgagg .emoji-search-clear:hover{background:var(--ep-accent-soft);color:var(--ep-accent)}
@media (hover:none) and (pointer:coarse){.tgagg .emoji-search-input{font-size:16px}}
.tgagg .emoji-picker-body>.emoji-search-grid,.tgagg .emoji-picker-body>.emoji-search-empty{animation:none}
.tgagg .emoji-retry{margin-top:8px;border:0;border-radius:12px;padding:7px 14px;background:var(--ep-accent-soft);color:var(--ep-accent);font:inherit;font-weight:700;cursor:pointer}
/* a section that is far off the screen is not laid out or drawn (the list has about two thousand emoji) */
/* A section that is off screen is not drawn, but it must be exactly as tall as it will be when drawn, or the list changes height under the finger while it
   is scrolled (the scroll bar and the position jump). A row is a 40px cell and a 4px gap; the title is 12px with 2px above and 7px below (set below). */
.tgagg .emoji-picker-body>.emoji-section{content-visibility:auto;contain-intrinsic-block-size:auto calc(var(--emoji-rows,8)*44px + 17px)}
.tgagg .emoji-picker-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:8px 10px;padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));-webkit-overflow-scrolling:touch;background:transparent;scrollbar-width:thin;scrollbar-color:var(--ep-line) transparent}
.tgagg .emoji-picker-body>.emoji-section,.tgagg .emoji-picker-body>.emoji-set-heading,.tgagg .emoji-picker-body>.emoji-grid,.tgagg .emoji-picker-body>.emoji-loading{animation:emojiBodyIn .32s var(--ep-ease) backwards}
.tgagg .emoji-picker-body>.emoji-section:nth-child(2){animation-delay:30ms}
.tgagg .emoji-picker-body>.emoji-section:nth-child(3){animation-delay:60ms}
.tgagg .emoji-picker-body>.emoji-section:nth-child(n+4){animation-delay:90ms}
.tgagg .emoji-section{margin-bottom:10px}
.tgagg .emoji-section-title{font-size:11px;line-height:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--ep-muted);margin:2px 0 7px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tgagg .emoji-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
/* A row of premium emoji is exactly 40px whatever is inside: an unloaded <video> is 150px tall by default and a loaded picture is as tall as it is wide, and the big packs are drawn
   by a window that counts 44px per row (cell + gap), so a row of another height moved the content under the finger and the scroll jumped back */
.tgagg .emoji-grid.premium{grid-auto-rows:40px}
.tgagg .emoji-grid.premium.emoji-grid-virtual{display:block;position:relative;width:100%;overflow-anchor:none}
.tgagg .emoji-grid-virtual-window{position:absolute;left:0;right:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-auto-rows:40px;gap:4px}
.tgagg .emoji-cell{border:0;background:var(--ep-chip);border-radius:12px;min-height:40px;font-size:22px;line-height:1;padding:0;display:grid;place-items:center;position:relative;overflow:hidden;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none;user-drag:none;touch-action:manipulation;transition:background-color .14s ease,transform .16s var(--ep-ease)}
.tgagg .emoji-cell img,.tgagg .emoji-cell video,.tgagg .emoji-cell svg,.tgagg .emoji-set-icon img,.tgagg .emoji-set-icon video,.tgagg .emoji-preview-stage img,.tgagg .emoji-preview-stage video,.tgagg .emoji-preview-stage svg{-webkit-user-drag:none;user-drag:none;pointer-events:none;-webkit-touch-callout:none}
.tgagg .emoji-cell.premium{background:var(--ep-chip);content-visibility:auto;contain-intrinsic-size:40px 40px}
.tgagg .emoji-cell.premium.is-placeholder{background:var(--ep-chip-hover)}
.tgagg .emoji-cell.premium.is-loaded{background:var(--ep-chip)}
.tgagg .emoji-cell-frame{position:absolute;inset:4px;border-radius:9px;background:var(--ep-chip);overflow:hidden}
.tgagg .emoji-cell-frame::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.34) 50%,transparent 70%);background-size:200% 100%;animation:emojiShimmer 1.3s linear infinite;pointer-events:none}
.tgagg .emoji-cell:hover{background:var(--ep-accent-soft);transform:scale(1.08)}
.tgagg .emoji-cell:active{background:var(--ep-accent-soft);transform:scale(.92)}
.tgagg .emoji-loading.emoji-skel{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;padding:0;font-size:0;text-align:initial}
.tgagg .emoji-skel i{display:block;height:40px;border-radius:12px;background:linear-gradient(100deg,var(--ep-chip) 30%,rgba(255,255,255,.3) 50%,var(--ep-chip) 70%);background-size:200% 100%;animation:emojiShimmer 1.2s linear infinite}
.tgagg .emoji-skel i:nth-child(3n){animation-delay:.12s}.tgagg .emoji-skel i:nth-child(3n+1){animation-delay:.24s}
.tgagg .emoji-set-nav{display:flex;gap:4px;overflow-x:auto;overflow-y:hidden;padding:0 2px;touch-action:pan-x;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.tgagg .emoji-set-btn{border:0;background:var(--ep-chip);color:var(--ep-fg);border-radius:12px;padding:3px;font-size:10px;font-weight:700;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:4px;flex:0 0 auto;min-width:34px;min-height:34px;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;transition:background-color .15s ease,box-shadow .15s ease,transform .16s var(--ep-ease)}
.tgagg .emoji-set-btn:hover{background:var(--ep-chip-hover)}
.tgagg .emoji-set-btn:active{transform:scale(.92)}
.tgagg .emoji-set-btn.active{background:var(--ep-accent-soft);color:var(--ep-accent);box-shadow:inset 0 0 0 1.5px var(--ep-accent-line)}
.tgagg .emoji-set-btn.emoji-set-special{min-width:30px}
.tgagg .emoji-set-icon{width:20px;height:20px;border-radius:6px;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;background:var(--ep-chip);flex:0 0 auto}
.tgagg .emoji-set-icon img,.tgagg .emoji-set-icon video{width:100%;height:100%;object-fit:contain;display:block}
.tgagg .emoji-set-icon-fallback{font-size:12px;font-weight:800;line-height:1}
.tgagg .emoji-set-icon-unicode{font-size:16px;font-weight:400;line-height:1;background:transparent}
.tgagg .emoji-set-icon-media{background:transparent}
.tgagg .emoji-set-btn.active .emoji-set-icon{background:transparent}
.tgagg .emoji-set-btn.active .emoji-set-icon-unicode{background:transparent}
.tgagg .emoji-set-title{display:none}
.tgagg .emoji-set-count{display:none}
.tgagg .emoji-set-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:2px 0 8px;font-size:12px;font-weight:800;color:var(--ep-fg)}
.tgagg .emoji-set-heading-count{color:var(--ep-muted);font-weight:700}
.tgagg[data-ui-style="telegram"] .composer-premium-emoji,
.tgagg[data-ui-style="telegram"] .message-premium-emoji{filter:drop-shadow(0 1px 1px rgba(24,55,84,.12))}
.tgagg .rich-composer.is-keyboard-suppressed{caret-color:transparent}
.tgagg.emoji-picker-open .composer{position:relative;z-index:7}
.tgagg .composer.emoji-keyboard-mode{padding-bottom:0}
.tgagg .emoji-keyboard-slot{width:100%;flex:0 0 auto;overflow:hidden;background:transparent}
.tgagg .emoji-keyboard-slot.is-keyboard-reserved{display:block!important;background:transparent}
.tgagg .emoji-keyboard-slot[hidden]{display:none!important}
.tgagg .emoji-keyboard-slot .emoji-picker-portal{position:static!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;max-width:none!important;z-index:1}
.tgagg .emoji-keyboard-slot .emoji-picker-panel{height:var(--emoji-keyboard-height,min(42dvh,360px));max-height:var(--emoji-keyboard-height,min(42dvh,360px));min-height:var(--emoji-keyboard-height,min(42dvh,360px));display:flex;flex-direction:column;overflow:hidden}
.tgagg .emoji-keyboard-slot .emoji-picker-body{flex:1 1 auto;min-height:0;height:auto!important;max-height:none!important;overflow-y:auto}
.tgagg .emoji-trigger-btn.is-keyboard-mode{display:grid;place-items:center;color:#334155}
.emoji-picker-portal.is-docked{left:0!important;right:0!important;top:auto!important;width:100%!important;max-width:none!important;z-index:12050}
.emoji-picker-portal.is-docked .emoji-picker-panel{max-height:min(42dvh,360px)}
.tgagg .emoji-loading{padding:16px;text-align:center;color:var(--ep-muted,#6b7280);font-size:13px}
.tgagg .emoji-picker-portal,.tgagg .emoji-picker-portal .emoji-picker-panel,.tgagg .emoji-picker-portal .emoji-picker-body,.tgagg .emoji-picker-portal .emoji-grid,.tgagg .emoji-picker-portal .emoji-picker-toolbar,.tgagg .emoji-picker-portal .emoji-set-nav,.tgagg .emoji-picker-portal .emoji-set-btn,.tgagg .emoji-picker-portal .emoji-search-clear{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.tgagg .emoji-picker-portal.is-long-pressing,.tgagg .emoji-picker-portal.is-long-pressing *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
.tgagg .emoji-picker-portal .emoji-search-input{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.tgagg .emoji-preview-pop,.tgagg .emoji-preview-pop *,.tgagg .emoji-preview-fav,.tgagg .emoji-preview-stage{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
.tgagg .emoji-preview-pop::selection,.tgagg .emoji-preview-pop *::selection,.tgagg .emoji-preview-fav::selection{background:transparent;color:inherit}
.tgagg .emoji-preview-backdrop{position:fixed;inset:0;z-index:13040;background:transparent;touch-action:none;pointer-events:auto}
.tgagg .emoji-preview-pop{position:fixed;z-index:13050;pointer-events:auto;width:148px;height:148px;border-radius:22px;background:var(--ep-surface);border:1px solid var(--ep-border);box-shadow:0 18px 44px rgba(15,23,42,.26);-webkit-backdrop-filter:blur(24px) saturate(1.6);backdrop-filter:blur(24px) saturate(1.6);overflow:hidden;animation:tgagg-emoji-pop .22s cubic-bezier(.18,1.15,.3,1);-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
.tgagg.is-preview-open .emoji-picker-portal,.tgagg.is-preview-open .emoji-picker-portal *{pointer-events:none!important}
.tgagg.is-preview-open .emoji-preview-backdrop,.tgagg.is-preview-open .emoji-preview-pop,.tgagg.is-preview-open .emoji-preview-pop *{pointer-events:auto!important}
.tgagg .emoji-preview-fav{position:absolute;right:8px;bottom:8px;z-index:2;border:0;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;background:#1d4ed8;color:#fff;box-shadow:0 6px 16px rgba(29,78,216,.28);pointer-events:auto;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;touch-action:manipulation}
.tgagg .emoji-preview-stage{position:absolute;inset:10px 10px 44px 10px;display:flex;align-items:center;justify-content:center;background:#f8fafc;border-radius:14px;overflow:hidden}
.tgagg .emoji-preview-stage.is-placeholder{background:#eef2f7}
.tgagg .emoji-preview-stage .emoji-cell-frame{inset:0;border-radius:14px}
.tgagg .emoji-preview-stage img,.tgagg .emoji-preview-stage video,.tgagg .emoji-preview-stage svg{width:100%!important;height:100%!important;max-width:100%;max-height:100%;object-fit:contain;display:block}
@keyframes tgagg-emoji-pop{from{opacity:0;transform:translate(10px,10px) scale(.86)}to{opacity:1;transform:translate(0,0) scale(1)}}
.tgagg .web-login-overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.96);z-index:20000;padding:24px}
.tgagg .web-login-overlay[hidden]{display:none!important}
.tgagg .web-login-card{max-width:420px;width:100%;background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:24px;box-shadow:0 10px 30px rgba(15,23,42,.08)}
.tgagg .web-login-title{font-size:22px;font-weight:900;margin-bottom:8px}
.tgagg .web-login-sub{color:#6b7280;margin-bottom:16px;line-height:1.45}
.tgagg .web-login-actions{display:flex;flex-direction:column;gap:10px}
.tgagg .web-login-btn{width:100%;justify-content:center;text-align:center;text-decoration:none;box-sizing:border-box}
.tgagg .web-login-status{margin-top:14px;padding:12px 14px;border-radius:12px;background:#eff6ff;color:#1e3a8a;font-size:14px;line-height:1.45}
.tgagg .web-login-status[hidden]{display:none!important}
.tgagg .web-login-hint{margin-top:12px;color:#991b1b;font-size:13px;min-height:0}
.tgagg .drawer-logout{margin:4px 16px 16px;width:calc(100% - 32px);box-sizing:border-box;border:1px solid #fecaca;background:#fff5f5;color:#b91c1c;border-radius:12px;padding:12px 14px;font:inherit;font-size:15px;font-weight:800;text-align:left;cursor:pointer}
.tgagg .drawer-logout:hover{background:#fee2e2}
.tgagg .drawer-logout[hidden]{display:none!important}

.tgagg .drawer{overflow:hidden;overscroll-behavior:contain}
.tgagg .drawer-lang{display:flex;gap:0;align-items:center;justify-content:center;margin:0 16px 12px;padding:3px;border:1px solid #e5e7eb;border-radius:999px;background:#f1f5f9;flex-shrink:0;width:fit-content;align-self:center}
.tgagg .drawer-avatar{padding:0;background:transparent;overflow:visible;border-radius:0}
.tgagg .drawer-avatar img{width:100%;height:100%;object-fit:contain;border-radius:0;display:block;background:transparent}
.tgagg .lang-btn{min-width:52px;height:34px;border:0;border-radius:999px;background:transparent;font-size:11px;line-height:1;cursor:pointer;transition:background .15s,box-shadow .15s;display:inline-flex;align-items:center;justify-content:center;padding:0 14px}
.tgagg .lang-btn:hover{background:rgba(255,255,255,.65)}
.tgagg .lang-btn.is-active{background:#fff;box-shadow:0 1px 3px rgba(15,23,42,.12)}
.tgagg .lang-label{font-size:11px;font-weight:800;letter-spacing:.04em;color:#334155}
.tgagg .lang-btn.is-active .lang-label{color:#1e293b}
.emoji-picker-portal{position:fixed;z-index:12000}
.emoji-picker-portal[hidden]{display:none!important}

/* floating emoji window: rounded, no hard frame, lifted above the background (single source of truth) */
/* docked keyboard on touch screens: the same island, slid up with the composer */
.tgagg .emoji-keyboard-slot,.tgagg .emoji-keyboard-slot.is-keyboard-reserved{background:transparent!important;border-top:0!important;box-sizing:border-box;padding:0 8px 8px}
.tgagg .emoji-keyboard-slot .emoji-picker-panel{height:calc(var(--emoji-keyboard-height,min(42dvh,360px)) - 8px)!important;min-height:0!important;max-height:calc(var(--emoji-keyboard-height,min(42dvh,360px)) - 8px)!important;border-radius:22px;animation:emojiDockIn .3s var(--ep-ease) both}
.tgagg .emoji-picker-portal.is-docked .emoji-picker-panel{animation:emojiDockIn .3s var(--ep-ease) both}

/* emoji-skeleton: the panel shape is visible at once while the packs are still loading */
/* emoji-skeleton: the panel shape is visible at once while the keyboard height is reserved */
.tgagg .emoji-keyboard-slot.is-keyboard-reserved:not(:has(.emoji-picker-panel))::before{content:"";display:block;height:calc(var(--emoji-keyboard-height,min(42dvh,360px)) - 8px);border-radius:22px;background:rgba(255,255,255,.84);box-shadow:0 10px 36px rgba(15,23,42,.22)}
.tgagg.theme-dark .emoji-keyboard-slot.is-keyboard-reserved:not(:has(.emoji-picker-panel))::before{background:rgba(21,34,47,.86);box-shadow:0 10px 36px rgba(0,0,0,.5)}

/* emoji-contained-shimmer: placeholder frames must never grow past their own icon */
.tgagg .emoji-set-icon,.tgagg .emoji-cell{position:relative}

@media (prefers-reduced-motion:reduce){.tgagg .emoji-picker-panel,.tgagg .emoji-picker-body>*,.tgagg .emoji-skel i,.tgagg .emoji-cell-frame::after,.tgagg .emoji-preview-pop{animation:none!important}.tgagg .emoji-cell,.tgagg .emoji-set-btn{transition:none}}