/* ── Build Progress Indicator — Sprint 17 ── */

.build-progress {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-bottom: 16px;
}

.build-progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 12px;
}

.build-progress-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.build-elapsed {
    font-size: 12px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.build-steps {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.build-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
    text-align: center;
}

/* Connector line between steps */
.build-step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 13px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.build-step-complete:not(:last-child)::after {
    background: var(--brand-success, #10B981);
}

.build-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 2px solid var(--border);
    color: var(--text-muted);
    z-index: 1;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.build-step-label {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-muted);
    line-height: 1.3;
}

/* States */
.build-step-pending .build-step-dot {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text-light);
}

.build-step-active .build-step-dot {
    background: var(--brand-primary, #4826fd);
    border-color: var(--brand-primary, #4826fd);
    color: #fff;
}

.build-step-active .build-step-label {
    color: var(--brand-primary, #4826fd);
    font-weight: 600;
}

.build-step-active .build-step-dot .build-step-spinner {
    animation: buildSpin 0.8s linear infinite;
}

.build-step-complete .build-step-dot {
    background: var(--brand-success, #10B981);
    border-color: var(--brand-success, #10B981);
    color: #fff;
}

.build-step-complete .build-step-label {
    color: var(--text);
}

.build-step-error .build-step-dot {
    background: var(--brand-danger, #E8620A);
    border-color: var(--brand-danger, #E8620A);
    color: #fff;
}

.build-step-error .build-step-label {
    color: var(--brand-danger, #E8620A);
    font-weight: 600;
}

@keyframes buildSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .build-step-dot { transition: none; }
    .build-step-active .build-step-dot .build-step-spinner { animation-duration: 2s; }
}

/* Success CTA row (auto-surfaced Share / Open) */
.build-success-cta {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .build-step-label { font-size: 10px; }
    .build-progress { padding: 16px; }
}
