/* Approved A: position in the workflow, independent of generation/render progress. */
.flow-step-icon, .project-progress-caption { display: none; }
#detailView[data-ai-flow="true"] .project-flow {
  padding: 18px 20px; border-radius: 24px; border-color: var(--sia-sidebar-active-line) !important;
  background: var(--sia-sidebar-bg) !important; box-shadow: var(--sia-shadow) !important;
}
#detailView[data-ai-flow="true"] .project-progress-head { align-items: center; gap: 16px; }
#detailView[data-ai-flow="true"] .project-progress-current > span { color: var(--sia-muted); font-size: 11px; letter-spacing: .12em; font-weight: 750; }
#detailView[data-ai-flow="true"] #projectProgressCurrent { display: block; color: var(--sia-heading); font-size: 20px; font-weight: 800; line-height: 1.3; margin-top: 3px; }
#detailView[data-ai-flow="true"] .project-progress-value { display: grid; grid-template-columns: auto auto; align-items: baseline; justify-content: end; gap: 3px 8px; text-align: right; }
#detailView[data-ai-flow="true"] #projectProgressPercent { font-size: 23px; line-height: 1.1; font-weight: 800; color: var(--sia-sidebar-accent); letter-spacing: -.03em; }
#detailView[data-ai-flow="true"] .project-progress-caption { display: block; font-size: 12px; color: var(--sia-muted); }
#detailView[data-ai-flow="true"] #projectProgressPosition { grid-column: 1 / -1; color: var(--sia-muted); font-size: 12px; }
#detailView[data-ai-flow="true"] .project-progress-track { height: 5px; margin: 14px 0 16px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb,var(--sia-muted) 16%,transparent) !important; }
#detailView[data-ai-flow="true"] .project-progress-bar { background: linear-gradient(90deg,var(--sia-teal),var(--sia-sidebar-accent)); border-radius: inherit; }
#detailView[data-ai-flow="true"] .project-flow-steps { isolation: isolate; display: grid; grid-template-columns: repeat(var(--project-flow-step-count,6),minmax(0,1fr)); gap: 8px; padding: 0; margin: 0; overflow: visible; }
#detailView[data-ai-flow="true"] .flow-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 4px; min-height: 82px; border-radius: 16px; border: 1px solid transparent; border-color: transparent !important; background: transparent !important; overflow: visible; }
#detailView[data-ai-flow="true"] .flow-step[hidden] { display: none; }
#detailView[data-ai-flow="true"] .flow-number { display: none; }
#detailView[data-ai-flow="true"] .flow-step-icon { position: relative; display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; background: var(--sia-surface); border: 1px solid var(--sia-line-strong); border-radius: 11px; color: var(--sia-muted); z-index: 1; }
#detailView[data-ai-flow="true"] .flow-step-icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
#detailView[data-ai-flow="true"] .flow-step-check { display: none; }
#detailView[data-ai-flow="true"] .flow-step.done .flow-step-check { display: grid; place-items: center; position: absolute; bottom: -5px; right: -5px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--sia-surface); background: var(--sia-teal); color: var(--sia-bg); font-size: 10px; line-height: 1; font-weight: 800; }
#detailView[data-ai-flow="true"] .flow-step:not([hidden]):has(~ .flow-step:not([hidden]))::after { content: ""; z-index: -1; pointer-events: none; position: absolute; height: 1px; left: calc(50% + 17px); top: 24px; width: calc(100% - 26px); background: var(--sia-line-strong); }
#detailView[data-ai-flow="true"] .flow-step.done::after { background: var(--sia-sidebar-active-line) !important; }
#detailView[data-ai-flow="true"] .flow-step-copy { min-width: 0; width: 100%; text-align: center; }
#detailView[data-ai-flow="true"] .flow-step-copy strong { font-size: 14px; line-height: 1.35; color: var(--sia-heading); white-space: normal; overflow: visible; text-overflow: clip; }
#detailView[data-ai-flow="true"] .flow-step-copy > span { font-size: 11px; line-height: 1.4; margin-top: 3px; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
#detailView[data-ai-flow="true"] .flow-step.active { background: var(--sia-sidebar-active) !important; border-color: var(--sia-sidebar-active-line) !important; box-shadow: var(--sia-sidebar-glow) !important; }
#detailView[data-ai-flow="true"] :is(.flow-step.active,.flow-step.done) .flow-step-icon { color: var(--sia-sidebar-accent); border-color: var(--sia-sidebar-active-line); }
#detailView[data-ai-flow="true"] .flow-step.active .flow-step-icon { background: var(--sia-sidebar-active); }
#detailView[data-ai-flow="true"] button.flow-step:disabled { opacity: .72; cursor: not-allowed; }
#detailView[data-ai-flow="true"] button.flow-step:focus-visible { outline: 3px solid var(--sia-teal); outline-offset: 3px; }
@media(max-width:700px) {
 #detailView[data-ai-flow="true"] .project-flow { padding: 16px; border-radius: 22px; }
 #detailView[data-ai-flow="true"] .project-flow-steps { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; overflow: visible; }
 #detailView[data-ai-flow="true"] .flow-step { min-height: 84px; padding: 8px 3px; }
 #detailView[data-ai-flow="true"] .flow-step::after { display: none; }
 #detailView[data-ai-flow="true"] .flow-step-icon { width: 30px; height: 30px; flex-basis: 30px; }
 #detailView[data-ai-flow="true"] .flow-step-copy strong { font-size: 12px; }
 #detailView[data-ai-flow="true"] .flow-step-copy > span { font-size: 11px; }
 #detailView[data-ai-flow="true"] #projectProgressCurrent { font-size: 19px; }
 #detailView[data-ai-flow="true"] #projectProgressPercent { font-size: 22px; }
}
@media(prefers-reduced-motion:reduce) { #detailView[data-ai-flow="true"] .project-progress-bar { transition: none; } }
