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

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.7rem;
    padding: 0.6rem 0.75rem;
}

.timeline-scroll {
    max-height: 29rem;
    overflow-y: auto;
    padding-right: 0.25rem;
}

.timeline-user {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.timeline-bot {
    background: #f8fafc;
}

.timeline-label {
    font-size: 0.75rem;
    color: #475569;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0.1rem 0.5rem;
    min-width: 2.2rem;
    text-align: center;
}

.timeline-word {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.05em;
}

.black-toast {
    position: fixed;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%) translateY(-120%);
    background: #020617;
    color: #fff;
    padding: 0.62rem 1rem;
    border-radius: 0.6rem;
    font-size: 0.86rem;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

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