.visualization-container {
    flex-wrap: nowrap;
    flex-direction: column;
    gap: 1.25rem;
}

.user-node {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.user-node .emoji {
    font-size: 1.75rem;
    line-height: 1;
}

.user-node .label {
    margin-top: 0.35rem;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.system-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    width: 100%;
}

.node {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 130px;
}

.node .viz-badge {
    width: 64px;
    height: 64px;
    border-radius: 16px;
}

.node .viz-badge svg {
    width: 32px;
    height: 32px;
}

.chain-connector {
    width: 60px;
    flex-shrink: 0;
}

.cache-storage {
    display: flex;
    gap: 0.5rem;
    height: 34px;
    align-items: center;
    margin-top: 0.5rem;
}

.cache-item {
    width: 28px;
    height: 28px;
    background: #F59E0B;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.db-storage {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.data-block {
    width: 28px;
    height: 28px;
    background: #475569;
    color: #cbd5e1;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.8rem;
}

.status-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.5rem;
}

.status-badge.hit {
    background: #22c55e;
    color: white;
}

.status-badge.miss {
    background: #ef4444;
    color: white;
}

.status-display {
    font-weight: bold;
    font-size: 1rem;
}

.time-display {
    font-family: monospace;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.active-layer .viz-badge {
    transform: scale(1.08);
    box-shadow: 0 0 34px color-mix(in srgb, #F59E0B 55%, transparent);
}

@keyframes popIn {
    from {
        transform: scale(0);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}
