::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.avatar-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
}

.avatar-preview-wrap {
    min-height: 220px;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
}

.avatar-preview {
    width: 160px;
    height: 160px;
    border-radius: 1rem;
    border: 1px solid #cbd5e1;
    object-fit: cover;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

.toast {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: #1e293b;
    color: #fff;
    padding: 0.625rem 1.25rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

@media (max-width: 640px) {
    .avatar-preview-wrap {
        min-height: 180px;
    }

    .avatar-preview {
        width: 130px;
        height: 130px;
        border-radius: 0.85rem;
    }
}
