/* ---------------------------------- */
/* ОТВЕТЫ И ПЕРЕСЫЛКИ                 */
/* ---------------------------------- */
.reply-bar {
    background: var(--bg-elevated);
    padding: 8px 12px;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 12px;
    margin: 4px 12px;
}
.reply-bar:hover {
    background: var(--bg-surface);
}
.reply-bar-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.reply-sender {
    font-weight: bold;
    color: var(--primary);
}
.reply-preview-image {
    display: flex;
    align-items: center;
    gap: 6px;
}
.reply-preview-image img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 6px;
}
.reply-preview-icon {
    display: flex;
    align-items: center;
    gap: 6px;
}
.reply-preview-icon i {
    font-size: 20px;
    color: var(--primary);
}
.reply-file-name {
    font-size: 11px;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reply-text-preview {
    font-style: italic;
    color: var(--text-secondary);
}
.reply-preview-sticker img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}
.reply-indicator {
    background: rgba(76, 154, 255, 0.1);
    border-radius: 12px;
    padding: 6px 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    transition: background 0.2s;
}
.reply-indicator:hover {
    background: rgba(76, 154, 255, 0.2);
}
.reply-indicator-preview {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 2px 8px;
}
.reply-preview-img {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 4px;
}
.reply-preview-name {
    font-size: 11px;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reply-preview-sticker {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.reply-preview-text {
    font-style: italic;
    color: var(--text-secondary);
}
.reply-indicator-preview.reply-video-preview img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
}
.reply-preview-video {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    padding: 2px 8px;
}
.reply-indicator-compact {
    background: var(--bg-surface) !important;
    border-radius: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.2s;
    overflow: hidden;
    display: inline-block;
    width: auto;
    max-width: 100%;
}
.reply-indicator-compact:hover {
    background: var(--bg-elevated) !important;
}
.reply-preview-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px;
}
.reply-compact-media {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}
.reply-compact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    border-radius: 8px;
    font-size: 28px;
    color: var(--primary);
}
.reply-compact-text-only {
    font-size: 12px;
    padding: 8px;
    font-style: italic;
    color: var(--text-secondary);
    text-align: center;
    max-width: 100px;
    word-break: break-word;
}
.reply-compact-sticker .reply-compact-media {
    width: 60px;
    height: 60px;
    object-fit: contain;
}
.reply-full-text {
    font-size: inherit;
    font-family: inherit;
    font-style: normal;
    color: var(--text);
    white-space: normal;
    word-break: break-word;
    padding: 8px;
}
body.light-theme .reply-indicator-compact {
    background: rgba(0, 0, 0, 0.05) !important;
    border: 1px solid var(--border);
}
body.light-theme .reply-indicator-compact:hover {
    background: rgba(0, 0, 0, 0.1) !important;
}