/* FSD distance split */

.fsd-gauge {
    height: 14px;
    margin: 0 28px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.fsd-gauge-fill {
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            var(--accent),
            var(--accent-light)
        );
    box-shadow:
        0 0 22px rgba(232, 33, 39, 0.45);
    transition: width 500ms ease;
}

.fsd-gauge-legend {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 28px 24px;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 750;
}

.fsd-gauge-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fsd-gauge-key {
    width: 9px;
    height: 9px;
    flex: 0 0 auto;
    border-radius: 999px;
}

.fsd-gauge-key.self-driving {
    background: var(--accent);
    box-shadow:
        0 0 10px rgba(232, 33, 39, 0.5);
}

.fsd-gauge-key.human-driven {
    background: rgba(255, 255, 255, 0.18);
}

.fsd-distance-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fsd-distance-metrics article {
    min-width: 0;
}

.fsd-distance-metrics strong {
    white-space: nowrap;
}

@media (max-width: 760px) {
    .fsd-distance-metrics {
        grid-template-columns: 1fr;
    }

    .fsd-gauge-legend {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* Live FSD state. */

.fsd-status.active {
    color: var(--success);
    text-shadow:
        0 0 18px rgba(66, 211, 146, 0.32);
}

.fsd-status.manual {
    color: var(--warning);
}

.fsd-status.detecting {
    color: var(--muted);
}
