@use '@/styles/breakpoints' as *;

.timeline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.row {
    display: grid;
    grid-template-columns: minmax(140px, 220px) 1fr;
    gap: 12px;
    align-items: center;
    min-width: 0;
}

.label {
    min-width: 0;
}

.labelTitle {
    display: block;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.labelMeta {
    display: block;
    font-size: 12px;
    color: var(--text-secondary, rgba(0, 0, 0, 0.65));
}

.track {
    position: relative;
    height: 28px;
    border-radius: 8px;
    background: var(--gray-100, #f5f5f5);
    border: 1px solid var(--border-light, #f0f0f0);
    overflow: hidden;
    min-width: 0;
}

.bar {
    position: absolute;
    top: 4px;
    bottom: 4px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--primary, #27132e) 72%, white);
    min-width: 8px;
}

.barEmpty {
    position: absolute;
    inset: 4px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-size: 12px;
    color: var(--text-secondary, rgba(0, 0, 0, 0.65));
}

@include max-mobile {
    .row {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .labelTitle {
        white-space: normal;
    }
}
