/* Ненавязчивое подтверждение успешно выполненного действия. */
/* Серверный баннер не показываем ни на мгновение: сообщение переносится в
   toast общим скриптом. */
.alert.alert-success { display: none !important; }

.echo-action-toast {
    position: fixed;
    z-index: 1100;
    top: calc(var(--account-topbar-height, 72px) + 16px);
    right: 24px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: min(420px, calc(100vw - 32px));
    padding: 14px 14px 14px 16px;
    color: var(--text-primary, #fff);
    background: color-mix(in srgb, var(--surface-primary, #18181f) 96%, #16c784);
    border: 1px solid color-mix(in srgb, #20d892 50%, var(--border-subtle, rgba(255, 255, 255, .12)));
    border-radius: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .24);
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.echo-action-toast.is-visible { opacity: 1; transform: translateY(0); }
.echo-action-toast__icon { flex: 0 0 auto; width: 20px; height: 20px; color: #20d892; margin-top: 1px; }
.echo-action-toast__message { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 600; line-height: 1.4; }
.echo-action-toast__close {
    display: grid;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: -4px -4px 0 0;
    color: var(--text-secondary, #b6b8c4);
    background: transparent;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    place-items: center;
}
.echo-action-toast__close:hover { color: var(--text-primary, #fff); background: rgba(255, 255, 255, .07); }
.echo-action-toast__close svg { width: 16px; height: 16px; }

@media (max-width: 767px) {
    .echo-action-toast {
        top: calc(max(12px, env(safe-area-inset-top)) + 72px);
        right: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .echo-action-toast { transition: none; }
}
