/* r107-r87: stickers — the picker tab, a sent sticker, the administrator's dialog. */

.qchat-emoji-picker .qchat-emoji-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}
.qchat-emoji-picker .qchat-emoji-search {
    flex: 1 1 auto;
    min-width: 0;
}
.qchat-emoji-modes {
    flex: 0 0 auto;
    display: flex;
    gap: 6px;
}
.qchat-emoji-modes[hidden],
.qchat-emoji-search[hidden] {
    display: none;
}
.qchat-emoji-mode-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(13, 110, 253, 0.35);
    border-radius: 10px;
    background: rgba(13, 110, 253, 0.08);
    color: var(--bs-primary, #0d6efd);
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
}
.qchat-emoji-mode-btn:hover,
.qchat-emoji-mode-btn:focus-visible {
    background: rgba(13, 110, 253, 0.16);
}

.qchat-emoji-body:has(> .qchat-sticker-panel),
#profileBlogEmojiPicker .qchat-emoji-body:has(> .qchat-sticker-panel) {
    display: flex;
    overflow: hidden;
}
.qchat-sticker-panel {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
}
.qchat-sticker-header {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.1));
}
.qchat-sticker-packs {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.qchat-sticker-packs::-webkit-scrollbar {
    display: none;
}
.qchat-sticker-content {
    flex: 1 1 auto;
    min-height: 0;
    padding-top: 4px;
    overflow: hidden auto;
    overscroll-behavior: contain;
}
.qchat-sticker-pack-tab {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    padding: 3px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--bs-secondary-color, #6c757d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.qchat-sticker-pack-tab.active {
    background: var(--bs-secondary-bg, rgba(0, 0, 0, 0.08));
    color: var(--bs-primary, #0d6efd);
}
.qchat-sticker-pack-tab :is(img, canvas.qchat-tgs-sticker, video.qchat-video-sticker) {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.qchat-sticker-pack-letter {
    font-weight: 600;
    font-size: 15px;
}
/* r107-r109: a long press on a sticker shows the preview; on iPhone it also
   started a text selection with the «Скопировать / Найти» menu. */
.qchat-sticker-grid,
.qchat-sticker-modal-body:has(.qchat-sticker-pack-view),
.qchat-gif-pick {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
.qchat-sticker-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}
.qchat-sticker-pick {
    aspect-ratio: 1 / 1;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qchat-sticker-pick:hover,
.qchat-sticker-pick:focus-visible {
    background: var(--bs-secondary-bg, rgba(0, 0, 0, 0.08));
}
.qchat-sticker-pick :is(img, canvas.qchat-tgs-sticker, video.qchat-video-sticker) {
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

/* A sent sticker: the picture without the bubble. The chat themes paint
   bubbles with very specific !important rules, so these selectors repeat the
   container id to stay above them. */
.qchat-sticker {
    display: block;
    width: 160px;
    max-width: 50vw;
    height: 160px;
    max-height: 160px;
    object-fit: contain;
    user-select: none;
    cursor: pointer;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message > .d-flex > .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))),
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message > .d-flex > .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
    backdrop-filter: none !important;
    padding: 0 !important;
    min-width: 0 !important;
    width: fit-content !important;
    flex: 0 1 auto !important;
}
/* r107-r91: the time sits on the sticker's lower corner (no gap). */
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-content-wrapper,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-content-wrapper {
    display: grid !important;
    width: fit-content !important;
    grid-template-columns: minmax(0, max-content) !important;
    grid-template-areas: "header" "reply" "content" !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-content,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-content {
    grid-area: content !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-content,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-content {
    padding: 0 !important;
    margin: 0 !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-header,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-header {
    width: fit-content !important;
    max-width: 100% !important;
    justify-self: start !important;
    margin: 0 0 4px !important;
    padding: 1px 8px !important;
    border-radius: 9px !important;
    background: rgba(0, 0, 0, 0.5) !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message.sent .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-header,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message.sent .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-header {
    justify-self: end !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-header :is(strong, a),
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-header :is(strong, a) {
    color: #fff !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-footer,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-footer {
    justify-content: flex-end !important;
    gap: 4px !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) :is(.message-time, .message-edited-label, .message-status, .message-status > *, .message-checkmark, .qcg-sending-icon),
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) :is(.message-time, .message-edited-label, .message-status, .message-status > *, .message-checkmark, .qcg-sending-icon) {
    color: #fff !important;
    opacity: 1 !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-footer,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-footer {
    width: fit-content !important;
    grid-area: content !important;
    align-self: end !important;
    justify-self: end !important;
    margin: 0 4px 4px 0 !important;
    position: relative !important;
    z-index: 1 !important;
    padding: 1px 8px !important;
    border-radius: 9px !important;
    background: rgba(0, 0, 0, 0.5) !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-time,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .message-time {
    background: transparent !important;
    padding: 0 !important;
}
.qchat-sticker-missing {
    font-style: italic;
    opacity: 0.75;
}

.qchat-sticker-admin-cell {
    position: relative;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: var(--bs-secondary-bg, rgba(0, 0, 0, 0.05));
    display: flex;
    align-items: center;
    justify-content: center;
}
.qchat-sticker-admin-cell :is(img, canvas.qchat-tgs-sticker, video.qchat-video-sticker) {
    width: 88%;
    height: 88%;
    object-fit: contain;
}
.qchat-sticker-admin-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    padding: 0 5px;
    line-height: 1.4;
    background-color: var(--bs-body-bg, #fff);
}

/* r107-r92: the large preview of a sticker (hover / long press). */
.qchat-sticker-preview {
    --qchat-sticker-preview-size: 220px;
    position: fixed;
    z-index: 10980;
    width: var(--qchat-sticker-preview-size);
    height: var(--qchat-sticker-preview-size);
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
}
.qchat-sticker-preview-actions {
    pointer-events: auto;
}
.qchat-sticker-preview-actions > button {
    position: absolute;
    inset-inline: .25rem;
    bottom: .25rem;
    white-space: normal;
}

.qchat-sticker-preview[hidden] {
    display: none;
}
.qchat-sticker-preview :is(img, canvas.qchat-tgs-sticker, video.qchat-video-sticker) {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* r107-r92: the dark theme (the app's body.dark-theme, and auto by the system). */
body.dark-theme .qchat-sticker-pick:hover,
body.dark-theme .qchat-sticker-pick:focus-visible,
body.dark-theme .qchat-sticker-pack-tab.active,
body.dark-theme .qchat-sticker-pack-tab:hover {
    background: rgba(255, 255, 255, 0.08) !important;
}
body.dark-theme .qchat-sticker-header {
    border-bottom-color: #30363d;
}
body.dark-theme .qchat-sticker-pack-tab,
body.dark-theme .qchat-emoji-empty {
    color: #8b949e;
}
body.dark-theme .qchat-sticker-pack-tab.active {
    color: #58a6ff;
}
body.dark-theme .qchat-emoji-mode-btn {
    border-color: rgba(88, 166, 255, 0.4);
    background: rgba(88, 166, 255, 0.1);
    color: #58a6ff;
}
body.dark-theme .qchat-emoji-mode-btn:hover,
body.dark-theme .qchat-emoji-mode-btn:focus-visible {
    background: rgba(88, 166, 255, 0.2);
}
body.dark-theme .qchat-sticker-admin-cell {
    background: rgba(255, 255, 255, 0.06);
}
body.dark-theme .qchat-sticker-admin-remove {
    background-color: #0d1117;
}
body.dark-theme .qchat-sticker-preview {
    background: rgba(22, 27, 34, 0.96);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
    body.auto-theme .qchat-sticker-pick:hover,
    body.auto-theme .qchat-sticker-pick:focus-visible,
    body.auto-theme .qchat-sticker-pack-tab.active,
    body.auto-theme .qchat-sticker-pack-tab:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }
    body.auto-theme .qchat-sticker-header {
        border-bottom-color: #30363d;
    }
    body.auto-theme .qchat-sticker-pack-tab,
    body.auto-theme .qchat-emoji-empty {
        color: #8b949e;
    }
    body.auto-theme .qchat-sticker-pack-tab.active {
        color: #58a6ff;
    }
    body.auto-theme .qchat-emoji-mode-btn {
        border-color: rgba(88, 166, 255, 0.4);
        background: rgba(88, 166, 255, 0.1);
        color: #58a6ff;
    }
    body.auto-theme .qchat-emoji-mode-btn:hover,
    body.auto-theme .qchat-emoji-mode-btn:focus-visible {
        background: rgba(88, 166, 255, 0.2);
    }
    body.auto-theme .qchat-sticker-admin-cell {
        background: rgba(255, 255, 255, 0.06);
    }
    body.auto-theme .qchat-sticker-admin-remove {
        background-color: #0d1117;
    }
    body.auto-theme .qchat-sticker-preview {
        background: rgba(22, 27, 34, 0.96);
        box-shadow: 0 16px 44px rgba(0, 0, 0, 0.6);
    }
}

/* r107-r95: saved GIFs in the emoji panel. */
.qchat-gif-panel {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.qchat-gif-bar {
    display: flex;
    gap: 6px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--bs-border-color, rgba(0, 0, 0, 0.1));
}
.qchat-gif-bar-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--bs-primary, #0d6efd);
    font-size: 0.86rem;
}
.qchat-gif-bar-btn:hover,
.qchat-gif-bar-btn:focus-visible,
.qchat-gif-bar-btn.active {
    background: rgba(13, 110, 253, 0.1);
}
.qchat-gif-empty {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}
.qchat-gif-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}
.qchat-gif-cell {
    position: relative;
}
.qchat-gif-pick {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(127, 127, 127, 0.15);
}
.qchat-gif-pick img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.qchat-gif-pick:not(.is-ready) img {
    visibility: hidden;
}
.qchat-gif-pick.is-broken {
    background: rgba(220, 53, 69, 0.15);
}
.qchat-gif-pick:hover,
.qchat-gif-pick:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: -2px;
}
.qchat-gif-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.dark-theme .qchat-gif-bar {
    border-bottom-color: #30363d;
}
body.dark-theme .qchat-gif-bar-btn {
    color: #58a6ff;
}
@media (prefers-color-scheme: dark) {
    body.auto-theme .qchat-gif-bar {
        border-bottom-color: #30363d;
    }
    body.auto-theme .qchat-gif-bar-btn {
        color: #58a6ff;
    }
}

/* r107-r103: a lone GIF (no caption) is shown like a sticker — no bubble, no
   «1 файлов · 160 КБ» line, the time on its corner — as in Telegram. The
   bubble rules above cover it too. */
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .qchat-chat-blog-title,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .qchat-chat-blog-title {
    display: none !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .qchat-chat-blog-single-image-host,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .qchat-chat-blog-single-image-host,
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .qchat-chat-blog-gallery-item,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .qchat-chat-blog-gallery-item {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .qchat-chat-blog-gallery,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:is(:has(.qchat-sticker), :has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption))) .qchat-chat-blog-gallery {
    margin-bottom: 0 !important;
}
/* The GIF itself sets the height (its own proportions), on every screen:
   no empty band above or below it once the bubble is gone. */
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-gallery,
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-gallery-item,
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-gallery-tile,
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-attachment-preview,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-gallery,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-gallery-item,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-gallery-tile,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-attachment-preview {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    aspect-ratio: auto !important;
    background: transparent !important;
}
html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) img.qchat-chat-blog-image,
html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) img.qchat-chat-blog-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: 340px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
}
/* On a computer the GIF keeps the usual 300 px picture width. */
@media (min-width: 768px) {
    html body #messagesContainer#messagesContainer#messagesContainer > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-single-image-host,
    html body #qcgMessages#qcgMessages#qcgMessages#qcgMessages > .message .message-bubble:has(.qchat-chat-blog-single-image-host img[data-download-name$=".gif" i]):not(:has(.file-caption)) .qchat-chat-blog-single-image-host {
        width: min(300px, 60vw) !important;
        max-width: 100% !important;
    }
}

/* r107-r104: the second tap is asked for in words; a sticker being deleted fades. */
.qchat-sticker-confirm-hint {
    font-size: 0.75rem;
    font-weight: 600;
}
.qchat-sticker-deleting {
    opacity: 0.4;
    pointer-events: none;
}

.qchat-blog-draft-sticker {
    display: inline-block;
    width: 64px;
    height: 64px;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
}
