/* Плашка ответа: живёт внутри панели ввода, над полем, а не поверх него */
.reply-card.quote-block,
.reply-card.mobile-quote-block {
    position: static !important;
    inset: auto !important;
    order: -1;
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    gap: 10px;
    min-height: 0;
    margin: 0;
    padding: 7px 10px 7px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: auto;
    animation: replyCardIn .18s ease-out;
}
/* Телефон: у панели слева отступ больше, чем справа — выравниваем плашку */
.reply-card.mobile-quote-block { flex-basis: calc(100% + 4px); width: calc(100% + 4px); margin-left: -4px; }

@keyframes replyCardIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.reply-bar { width: 3px; align-self: stretch; flex: none; border-radius: 2px; background: #ffffff; }

.reply-thumb {
    width: 38px; height: 38px; flex: none; border-radius: 10px;
    background: #34404f center / cover no-repeat; color: #d6e6f7;
    display: flex; align-items: center; justify-content: center;
}
.reply-thumb[hidden] { display: none; }
.reply-thumb.is-round { border-radius: 50%; }
.reply-thumb svg { width: 20px; height: 20px; }

.reply-body { flex: 1; min-width: 0; }
.reply-name {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; line-height: 1.3; color: #ffffff;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.reply-name::before {
    content: ''; width: 13px; height: 13px; flex: none; background-color: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 14 4 9l5-5'/%3E%3Cpath d='M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11'/%3E%3C/svg%3E") center / contain no-repeat;
}
.reply-text {
    font-size: 13px; line-height: 1.35; color: #dcdcdc;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.reply-x {
    width: 28px; height: 28px; flex: none; padding: 0; border: none; border-radius: 50%;
    background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.reply-x:hover { background: rgba(255, 255, 255, 0.1); }
.reply-x img { width: 16px; height: 16px; object-fit: contain; filter: invert(1); opacity: .65; }
