.tgagg .chips{position:relative;z-index:30;height:0;min-height:0;padding:0;border:0;display:block;overflow:visible}
.tgagg .account-filter-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.22);z-index:80}
.tgagg .account-filter-backdrop[hidden],.tgagg .account-filter-popover[hidden]{display:none!important}
.tgagg .account-filter-popover{position:absolute;top:calc(100% + 6px);left:12px;width:min(340px,calc(100vw - 24px));padding:10px;border:1px solid #e5e7eb;border-radius:14px;background:#fff;box-shadow:0 14px 36px rgba(15,23,42,.2);z-index:90}
.tgagg .account-filter-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:2px 2px 9px;font-size:13px;color:#334155}
.tgagg .account-filter-reset{border:0;border-radius:8px;padding:6px 9px;background:#eef2f7;color:#64748b;font:inherit;font-size:12px;cursor:pointer}
.tgagg .account-filter-reset:disabled{opacity:.5;cursor:default}
.tgagg .account-filter-search{width:100%;height:34px;margin-bottom:6px;border:0;border-radius:9px;padding:0 10px;background:#f1f3f4;color:#1f2937;font:inherit;font-size:13px;outline:0}
.tgagg .account-filter-search:focus{box-shadow:0 0 0 2px rgba(51,144,236,.22)}
.tgagg .account-filter-list{max-height:clamp(150px,calc(100dvh - 240px),480px);overflow:auto;scrollbar-width:thin;scrollbar-color:rgba(100,116,139,.6) transparent}
.tgagg .account-filter-list::-webkit-scrollbar{width:6px}.tgagg .account-filter-list::-webkit-scrollbar-thumb{background:rgba(100,116,139,.6);border-radius:3px}
.tgagg .account-filter-row{display:grid;grid-template-columns:20px 10px 23px minmax(0,1fr) auto;align-items:center;gap:7px;min-height:40px;padding:0 6px;border-radius:9px;color:#334155;cursor:pointer;font-size:13px}
.tgagg .account-filter-row:hover{background:#f1f5f9}
.tgagg .account-filter-row input{width:16px;height:16px;accent-color:#3390ec}
.tgagg .account-filter-dot{width:9px;height:9px;border-radius:50%;background:var(--account-color,#64748b)}
.tgagg .account-filter-platform{font-size:10px;font-weight:900;color:#94a3b8}
.tgagg .account-filter-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tgagg .account-filter-unread{min-width:20px;padding:3px 6px;border-radius:9px;background:#e8f2fc;color:#2481cc;font-size:11px;text-align:center}
@media(max-width:700px){
  .tgagg .account-filter-popover{left:8px;right:8px;width:auto}
}
.tgagg.theme-dark .account-filter-popover{border-color:#304253;background:#17212b;color:#e8edf2}
.tgagg.theme-dark .account-filter-head{color:#e8edf2}
.tgagg.theme-dark .account-filter-reset{background:#243443;color:#cbd5df}
.tgagg.theme-dark .account-filter-search{background:#1c2a38;color:#e8edf2}
.tgagg.theme-dark .account-filter-row{color:#d7e1ea}
.tgagg.theme-dark .account-filter-row:hover{background:#203142}
.tgagg.theme-dark .account-filter-unread{background:#24547c;color:#dcebf6}
.tgagg .chat-pane .messages{padding-bottom:calc(96px + env(safe-area-inset-bottom))}
.tgagg .chat-pane .composer,
.tgagg.theme-dark .chat-pane .composer{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:6;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  pointer-events:none;
}
.tgagg .chat-pane .composer .composer-row,
.tgagg .chat-pane .composer .composer-preview,
.tgagg .chat-pane .composer .composer-reply,
.tgagg .chat-pane .composer .composer-edit,
.tgagg .chat-pane .composer .emoji-keyboard-slot{pointer-events:auto}
.tgagg .composer-box,
.tgagg .composer-box:focus-within,
.tgagg.theme-dark .chat-pane .composer-box,
.tgagg.theme-dark .chat-pane .composer-box:focus-within{
  border:0!important;
  outline:0!important;
  box-shadow:0 6px 18px rgba(0,0,0,.16)!important;
}
.tgagg .tab,.tgagg .chip{transition:background-color .12s ease,color .12s ease}
.tgagg .tab:hover,.tgagg .chip:hover{transform:none}
.tgagg .tab:active,.tgagg .chip:active{transform:none}
.tgagg .dialog-card{transition:background-color .15s ease,box-shadow .15s ease}
.tgagg .dialog-list .dialog-card{
  display:flex!important;
  align-items:center;
  gap:12px;
  margin:2px 8px;
  padding:8px 10px;
  border-radius:16px!important;
}
.tgagg .dialog-list .dialog-card .avatar{
  width:54px!important;
  height:54px!important;
  min-width:54px;
  max-width:54px;
  aspect-ratio:auto;
  align-self:center;
  flex:0 0 54px;
  font-size:16px;
}
.tgagg .dialog-list .dialog-main{
  gap:3px;
  flex:1;
  min-height:54px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.tgagg .dialog-list .dialog-title,
.tgagg .dialog-list .dialog-preview{line-height:1.2}
.tgagg .dialog-card:hover{transform:none}
.tgagg .dialog-card::before{display:none!important}
.tgagg .dialog-list .dialog-card,
.tgagg.theme-dark .dialog-list .dialog-card{
  border:0!important;
  box-shadow:none!important;
  background:transparent!important;
  transform:none!important;
}
.tgagg .dialog-list .dialog-card.unread{
  background:rgba(51,144,236,.1)!important;
}
.tgagg.theme-dark .dialog-list .dialog-card.unread{
  background:rgba(88,166,255,.1)!important;
}
.tgagg .dialog-list .dialog-card:hover{background:rgba(15,23,42,.05)!important;box-shadow:none!important;transform:none!important}
.tgagg.theme-dark .dialog-list .dialog-card:hover{background:rgba(255,255,255,.06)!important}
.tgagg .dialog-list .dialog-card.unread:hover{background:rgba(51,144,236,.16)!important}
.tgagg.theme-dark .dialog-list .dialog-card.unread:hover{background:rgba(88,166,255,.16)!important}
/* Open-chat tint only while the inbox and the chat are on screen together. */
@media (min-width:901px) and (hover:hover){
.tgagg .dialog-list .dialog-card.active,
.tgagg.theme-dark .dialog-list .dialog-card.active{
  border:0!important;
  box-shadow:inset 0 0 0 1px rgba(51,144,236,.3)!important;
  background:rgba(51,144,236,.16)!important;
}
.tgagg.theme-dark .dialog-list .dialog-card.active{background:rgba(88,166,255,.18)!important;box-shadow:inset 0 0 0 1px rgba(88,166,255,.32)!important}
}
/* Touch / phone / narrowed window: no hover, no "opened chat" trace - only unread is highlighted */
@media (hover:none),(max-width:900px){
.tgagg .dialog-list .dialog-card:hover,.tgagg.theme-dark .dialog-list .dialog-card:hover,
.tgagg .dialog-list .dialog-card.active,.tgagg.theme-dark .dialog-list .dialog-card.active,
.tgagg .dialog-list .dialog-card.tap-select,.tgagg.theme-dark .dialog-list .dialog-card.tap-select,
.tgagg .dialog-list .dialog-card:active,.tgagg.theme-dark .dialog-list .dialog-card:active{background:transparent!important;box-shadow:none!important;border-color:transparent!important;transform:none!important}
.tgagg .dialog-list .dialog-card.unread,.tgagg .dialog-list .dialog-card.unread:hover,.tgagg .dialog-list .dialog-card.unread.active,.tgagg .dialog-list .dialog-card.unread.tap-select{background:#eef6ff!important}
.tgagg.theme-dark .dialog-list .dialog-card.unread,.tgagg.theme-dark .dialog-list .dialog-card.unread:hover,.tgagg.theme-dark .dialog-list .dialog-card.unread.active,.tgagg.theme-dark .dialog-list .dialog-card.unread.tap-select{background:#1d3a52!important}
.tgagg .dialog-card{-webkit-tap-highlight-color:transparent}
}
.tgagg .favorites-tab{width:38px;min-width:38px;height:34px;justify-content:center;padding:0;font-size:20px;line-height:1}
.tgagg .account-filter-tab{margin-left:0}
/* Folder strip: one soft rounded bar, the chosen folder is a lifted capsule (like the folders of Telegram) */
.tgagg #filterTabs{display:flex;align-items:center;gap:2px;margin:6px 10px 2px;padding:3px;border:0;border-radius:18px;background:rgba(15,23,42,.055);scrollbar-width:none}
.tgagg.theme-dark #filterTabs{background:rgba(255,255,255,.065)}
.tgagg #filterTabs::-webkit-scrollbar{display:none}
.tgagg #filterTabs .tab,
.tgagg .chips .chip{
  flex:0 0 auto;
  border:0;
  outline:0;
  box-shadow:none;
  background:transparent;
  height:auto;
  min-height:0;
  padding:7px 12px;
  border-radius:15px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  font-size:13.5px;
  font-weight:600;
  letter-spacing:0;
  text-transform:none;
  -webkit-font-smoothing:antialiased;
  color:var(--muted,#6b7785);
  -webkit-tap-highlight-color:transparent;
  transition:background-color .18s ease,color .18s ease,box-shadow .18s ease,transform .2s cubic-bezier(.2,.9,.3,1);
}
.tgagg #filterTabs .tab:hover{background:rgba(15,23,42,.05);color:var(--text,#14202e)}
.tgagg.theme-dark #filterTabs .tab:hover{background:rgba(255,255,255,.06);color:var(--text,#e8edf2)}
.tgagg #filterTabs .tab:active{transform:scale(.95)}
.tgagg #filterTabs .tab.active,
.tgagg .chips .chip.active{
  background:#fff;
  color:#1b6fb3;
  box-shadow:0 1px 3px rgba(15,23,42,.12),inset 0 0 0 1px rgba(51,144,236,.2);
}
.tgagg.theme-dark #filterTabs .tab.active,
.tgagg.theme-dark .chips .chip.active{
  background:rgba(88,166,255,.2);
  color:#8cc4f7;
  box-shadow:inset 0 0 0 1px rgba(88,166,255,.3);
}
.tgagg #filterTabs .tab:focus-visible{box-shadow:0 0 0 2px rgba(51,144,236,.45)}
.tgagg #filterTabs .favorites-tab{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:34px;
  min-width:34px;
  padding:6px 8px;
  font-size:16px;
  line-height:1;
  color:#e0a526;
}
.tgagg #filterTabs .favorites-tab.active,
.tgagg.theme-dark #filterTabs .favorites-tab.active{color:#e0a526;background:rgba(244,185,66,.22);box-shadow:inset 0 0 0 1px rgba(244,185,66,.4)}
.tgagg #filterTabs .tab .badge{min-width:18px;height:18px;padding:0 5px;margin-left:6px;font-size:11px;font-weight:700}
.tgagg .chat-header .header-avatar{
  width:36px!important;
  height:36px!important;
  min-width:36px!important;
  max-width:36px!important;
  min-height:36px!important;
  max-height:36px!important;
  flex:0 0 36px!important;
  aspect-ratio:1/1;
  border-radius:50%!important;
  overflow:hidden;
}
.tgagg .chat-header .header-avatar img{
  width:36px!important;
  height:36px!important;
  max-width:none!important;
  border-radius:50%!important;
  object-fit:cover;
}
.tgagg .chat-header .icon-action-btn,
.tgagg.theme-dark .chat-header .icon-action-btn,
.tgagg .chat-header .icon-action-btn.primary{
  width:34px;
  height:34px;
  border:0!important;
  border-radius:999px;
  background:transparent!important;
  box-shadow:none!important;
  color:#8d99a6!important;
}
.tgagg .chat-header .icon-action-btn:hover,
.tgagg .chat-header .icon-action-btn:focus,
.tgagg .chat-header .icon-action-btn:focus-visible{
  transform:none!important;
  outline:0!important;
  background:transparent!important;
  color:#d5dde6!important;
}
.tgagg .chat-header .icon-action-btn.active,
.tgagg.theme-dark .chat-header .icon-action-btn.active{
  background:transparent!important;
  color:#8d99a6!important;
  box-shadow:inset 0 0 0 1px #8d99a6!important;
}
.tgagg .message .media-video-note-player{
  overflow:visible!important;
  box-sizing:border-box;
  width:202px!important;
  max-width:202px!important;
  padding:6px;
}
.tgagg .media-video-note-frame{
  overflow:visible!important;
  background:transparent!important;
}
.tgagg .media-video-note{
  border-radius:50%;
  overflow:hidden;
}
.tgagg .media-video-note-ring-track{
  border-color:rgba(255,255,255,.78);
}
.emoji-picker-portal:not(.is-docked) .emoji-picker-panel{
  min-height:min(360px,52vh);
}
.tgagg #emojiBtn,
.tgagg #emojiBtn.is-keyboard-mode{
  color:#8d99a6;
  font-size:0;
}
.tgagg .soft-scroll{
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.tgagg .soft-scroll::-webkit-scrollbar{
  width:0;
  height:0;
  display:none;
}
.tgagg .soft-scrollbar{
  position:absolute;
  z-index:8;
  width:16px;
  pointer-events:none;
  opacity:0;
}
.tgagg .soft-scrollbar.is-armed{pointer-events:auto}
.tgagg .soft-scrollbar.is-visible{opacity:1}
.tgagg .soft-scrollbar-thumb{
  position:absolute;
  top:0;
  right:3px;
  width:4px;
  border:0;
  border-radius:999px;
  background:rgba(90,104,120,.42);
  pointer-events:none;
  touch-action:none;
}
.tgagg.theme-dark .soft-scrollbar-thumb{background:rgba(186,202,216,.5)}
.tgagg .soft-scrollbar.is-visible .soft-scrollbar-thumb,
.tgagg .soft-scrollbar.is-fading .soft-scrollbar-thumb{pointer-events:auto;cursor:grab}
.tgagg .soft-scrollbar-thumb:hover{background:rgba(70,84,100,.72)}
.tgagg .soft-scrollbar.is-dragging .soft-scrollbar-thumb{cursor:grabbing;background:rgba(70,84,100,.72)}
.tgagg.theme-dark .soft-scrollbar-thumb:hover,
.tgagg.theme-dark .soft-scrollbar.is-dragging .soft-scrollbar-thumb{background:rgba(226,234,240,.82)}
@media(min-width:861px){
  .tgagg .app{background:#e7eef5}
  .tgagg.theme-dark .app{background:#0a1219!important}
  .tgagg .sidebar{
    margin:10px 10px 16px 10px;
    height:calc(100% - 26px);
    min-height:0;
    align-self:start;
    border:0!important;
    border-radius:18px;
    box-shadow:0 12px 32px rgba(0,0,0,.28);
    overflow:hidden;
  }
  .tgagg .chat-pane .composer,
  .tgagg.theme-dark .chat-pane .composer{
    left:var(--chat-side);
    right:var(--chat-side);
    padding-bottom:16px;
  }
  .tgagg .chat-pane .composer-box{min-height:56px}
  .tgagg .chat-pane .send-btn{width:56px;height:56px}
}
.tgagg .tabs .account-filter-tab .badge{
  background:#6f7c89!important;
  color:#e8edf2!important;
  font-family:"Trebuchet MS","Avenir Next","Segoe UI",sans-serif!important;
  font-size:12px!important;
  font-weight:600!important;
}
.tgagg .tabs .account-filter-tab .badge[hidden],
.tgagg .tabs .account-filter-tab .badge:empty{
  display:none!important;
}
.tgagg .tabs .account-filter-tab{display:inline-flex;align-items:center;justify-content:center;gap:4px;margin-left:0;padding:7px 8px!important}
.tgagg .account-filter-icon{width:15px;height:15px;display:inline-block;flex:0 0 15px;background:currentColor;-webkit-mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.5 7v5l-3 2v-7L4 5Z'/%3E%3C/svg%3E");mask:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5h16l-6.5 7v5l-3 2v-7L4 5Z'/%3E%3C/svg%3E")}
@media(prefers-reduced-motion:reduce){
  .tgagg .tab,.tgagg .chip,.tgagg .dialog-card{transition:none}
}

/* Redesigned control language: line icons replace emoji glyphs on controls. */
.tgagg .ui-icon{
  width:19px;
  height:19px;
  display:inline-block;
  flex:0 0 19px;
  background:currentColor;
  -webkit-mask:center/contain no-repeat;
  mask:center/contain no-repeat;
}
.tgagg .ui-icon-attach{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20.5 11.5-8.8 8.8a5 5 0 0 1-7.1-7.1l9.2-9.2a3.5 3.5 0 0 1 5 5l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m20.5 11.5-8.8 8.8a5 5 0 0 1-7.1-7.1l9.2-9.2a3.5 3.5 0 0 1 5 5l-9.2 9.2a2 2 0 0 1-2.8-2.8l8.5-8.5'/%3E%3C/svg%3E")}
.tgagg .ui-icon-emoji{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 14.5s1.2 1.8 3.5 1.8 3.5-1.8 3.5-1.8M8.5 9.5h.01M15.5 9.5h.01'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8.5 14.5s1.2 1.8 3.5 1.8 3.5-1.8 3.5-1.8M8.5 9.5h.01M15.5 9.5h.01'/%3E%3C/svg%3E")}
.tgagg .ui-icon-mic{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3M8 21h8'/%3E%3C/svg%3E")}
.tgagg .ui-icon-close{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M18 6 6 18'/%3E%3C/svg%3E")}
.tgagg .ui-icon-send{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-8-8 18-2-8-8-2Z'/%3E%3Cpath d='M11 13 21 3'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 11 18-8-8 18-2-8-8-2Z'/%3E%3Cpath d='M11 13 21 3'/%3E%3C/svg%3E")}
.tgagg .ui-icon-notes{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4Z'/%3E%3C/svg%3E")}
.tgagg .ui-icon-broadcast{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4M7 8v8M10 6v12M13 4v16M16 8l4-2v12l-4-2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10v4M7 8v8M10 6v12M13 4v16M16 8l4-2v12l-4-2'/%3E%3C/svg%3E")}
.tgagg .ui-icon-templates{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='7' width='12' height='13' rx='2'/%3E%3Cpath d='M4 16.5V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='8' y='7' width='12' height='13' rx='2'/%3E%3Cpath d='M4 16.5V5a2 2 0 0 1 2-2h10'/%3E%3C/svg%3E")}
.tgagg .ui-icon-search{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E")}
.tgagg .ui-icon-settings{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 1.2 2.3 2.6.6.4 2.6 2.3 1.5-1.2 2.4 1.2 2.4-2.3 1.5-.4 2.6-2.6.6L12 21l-1.2-2.3-2.6-.6-.4-2.6-2.3-1.5 1.2-2.4-1.2-2.4 2.3-1.5.4-2.6 2.6-.6z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 1.2 2.3 2.6.6.4 2.6 2.3 1.5-1.2 2.4 1.2 2.4-2.3 1.5-.4 2.6-2.6.6L12 21l-1.2-2.3-2.6-.6-.4-2.6-2.3-1.5 1.2-2.4-1.2-2.4 2.3-1.5.4-2.6 2.6-.6z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E")}
.tgagg .ui-icon-sun{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.9 4.9l1.4 1.4M17.7 17.7l1.4 1.4M2 12h2M20 12h2M4.9 19.1l1.4-1.4M17.7 6.3l1.4-1.4'/%3E%3C/svg%3E")}
.tgagg .ui-icon-moon{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 15.5A8.5 8.5 0 0 1 8.5 4 8.5 8.5 0 1 0 20 15.5Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M20 15.5A8.5 8.5 0 0 1 8.5 4 8.5 8.5 0 1 0 20 15.5Z'/%3E%3C/svg%3E")}
.tgagg .ui-icon-star{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2-5.6-3-5.6 3 1.1-6.2L3 9.6l6.2-.9L12 3Z'/%3E%3C/svg%3E")}
.tgagg .ui-icon-back{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 18-6-6 6-6'/%3E%3C/svg%3E")}
.tgagg .ui-icon-profile{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c.8-3.2 3.1-5 7-5s6.2 1.8 7 5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 20c.8-3.2 3.1-5 7-5s6.2 1.8 7 5'/%3E%3C/svg%3E")}
.tgagg .ui-icon-whatsapp{width:17px;height:17px;margin-right:7px}
.tgagg .ui-icon-whatsapp{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8 8 0 0 1-11.8 7L4 20l1.5-4.1A8 8 0 1 1 20 11.5Z'/%3E%3Cpath d='M8.5 8.5c.4 2.1 1.8 3.5 4 4l1.2-1.1 1.7.8c-.2 1.2-1 1.7-2 1.5-3.5-.7-5.4-2.6-6-5.5-.2-1 .3-1.8 1.5-2l.8 1.7-1.2.6Z'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8 8 0 0 1-11.8 7L4 20l1.5-4.1A8 8 0 1 1 20 11.5Z'/%3E%3Cpath d='M8.5 8.5c.4 2.1 1.8 3.5 4 4l1.2-1.1 1.7.8c-.2 1.2-1 1.7-2 1.5-3.5-.7-5.4-2.6-6-5.5-.2-1 .3-1.8 1.5-2l.8 1.7-1.2.6Z'/%3E%3C/svg%3E")}

/* FOLDER_SWIPE_V1: swiping the inbox moves to the next/previous folder. */
.tgagg #dialogList{touch-action:pan-y}

/* PLATFORM_BADGE_V1: messenger mark on the avatar corner */
.tgagg .avatar-slot{position:relative;flex:0 0 54px;width:54px;height:54px;display:block}
.tgagg .avatar-slot > .avatar{width:100%!important;height:100%!important;max-width:none;flex:none}
.tgagg .avatar-platform{position:absolute;right:-2px;bottom:-2px;width:20px;height:20px;border-radius:50%;background:var(--side);box-shadow:0 0 0 2px var(--side);object-fit:cover;pointer-events:none;z-index:2}
.tgagg .chat-header .avatar-slot{width:36px;height:36px;flex-basis:36px}
.tgagg .chat-header .avatar-platform{width:16px;height:16px;background:#fff;box-shadow:0 0 0 2px #fff}
.tgagg.theme-dark .chat-header .avatar-platform{background:#17212b;box-shadow:0 0 0 2px #17212b}
