/* Visible project flow, separate from record status and read-only source auditing. */
.project-flow,.project-flow-summary{--flow-paper:#f7f3ec;--flow-surface:#fffcf7;--flow-ink:#282923;--flow-muted:#69675d;--flow-line:#dcd7cb;--flow-accent:#984529;--flow-tint:#f3e3d6;--flow-ready:#3e6250;--flow-ready-bg:#e7eee5;color:var(--flow-ink)}
html[data-theme=medium] :is(.project-flow,.project-flow-summary){--flow-paper:#45423b;--flow-surface:#504c44;--flow-ink:#fffaf0;--flow-muted:#e0d8c9;--flow-line:#817767;--flow-accent:#ffc4a6;--flow-tint:#654735;--flow-ready:#d3e9cf;--flow-ready-bg:#405448}
html[data-theme=dark] :is(.project-flow,.project-flow-summary){--flow-paper:#221f1c;--flow-surface:#2d2925;--flow-ink:#f4eee4;--flow-muted:#c6bdae;--flow-line:#5a5147;--flow-accent:#efaa87;--flow-tint:#493125;--flow-ready:#bbd7b7;--flow-ready-bg:#2e4234}
.project-flow{margin:24px 0;padding:24px;border:1px solid var(--flow-line);border-radius:5px;background:var(--flow-paper);min-width:0;max-width:100%;overflow-wrap:anywhere;container-type:inline-size}
.project-flow h2,.project-flow h3,.project-flow h4{color:var(--flow-ink);font-family:var(--display);letter-spacing:-.025em}.project-flow h2{font-size:27px;line-height:1.2;margin:4px 0 0}.project-flow h3{font-size:17px;line-height:1.4;margin:0 0 10px}.project-flow h4{font-size:13px;line-height:1.5;margin:0 0 5px}.project-flow p{font-size:14px;line-height:1.65;margin:0;max-width:78ch}
.project-flow-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px;flex-wrap:wrap}.project-flow .project-flow-eyebrow{font-size:10px;letter-spacing:.12em;font-weight:600;color:var(--flow-accent)}.project-flow-count{font-size:12px;color:var(--flow-muted);padding:6px 9px;border:1px solid var(--flow-line);border-radius:3px}
.project-flow-focus{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.7fr);gap:22px;padding:20px;border:1px solid var(--flow-line);border-left:4px solid var(--flow-accent);background:var(--flow-surface);border-radius:3px;margin-bottom:24px}.project-flow-focus>section{min-width:0}.project-flow .project-flow-current-title{font-size:19px;font-weight:600;line-height:1.4;margin-bottom:6px}.project-flow-next-text{font-size:15px!important;white-space:pre-wrap}.project-flow .project-flow-origin{font-size:12px;color:var(--flow-muted);margin-top:8px}.project-flow-muted{color:var(--flow-muted)}.project-flow-field{margin-top:16px}.project-flow-field p{white-space:pre-wrap}
.project-flow-plan-header{margin:0 0 16px}.project-flow-plan-header h3{margin-bottom:4px}.project-flow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;gap:12px;margin:0;padding:0;align-items:start;min-width:0}.project-flow-step{min-width:0;border:1px solid var(--flow-line);border-radius:4px;background:var(--flow-surface)}.project-flow-step.is-current{border:2px solid var(--flow-accent)}
.project-flow-step summary{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-start;padding:14px;cursor:pointer;min-height:120px;list-style:none}.project-flow-step summary::-webkit-details-marker{display:none}.project-flow-step-number{font-size:12px;font-weight:600;color:var(--flow-muted);line-height:1.7}.project-flow-step-heading{flex:1 1 calc(100% - 34px);min-width:0;display:flex;flex-direction:column;gap:8px}.project-flow-step-heading strong{font-size:14px;line-height:1.4}.project-flow-step-status{font-size:12px;line-height:1.4;color:var(--flow-muted)}.project-flow-step[data-category=completed] .project-flow-step-status{color:var(--flow-ready)}.project-flow-step[data-category=active] .project-flow-step-status,.project-flow-step[data-category=blocked] .project-flow-step-status{color:var(--flow-accent)}
.project-flow-current-tag{font-size:11px;font-weight:600;line-height:1.4;padding:4px 7px;color:var(--flow-accent);background:var(--flow-tint);border-radius:3px}.project-flow-disclosure{font-size:12px;color:var(--flow-accent);flex-basis:100%;margin-top:4px}.project-flow-disclosure::before{content:'+ ';font-weight:600}.project-flow-step details[open] .project-flow-disclosure::before{content:'− '}.project-flow-step details[open] summary{border-bottom:1px solid var(--flow-line)}.project-flow-step-body{padding:0 14px 16px}.project-flow-step-body>.project-flow-muted{margin-top:14px}.project-flow-step-body p{font-size:13px}.project-flow-criteria{margin-top:16px}.project-flow-criteria ul{padding:0;list-style:none;margin:8px 0 0}.project-flow-criteria li{padding:10px 0;border-top:1px solid var(--flow-line);font-size:13px;line-height:1.6}.project-flow-criteria li strong,.project-flow-criteria li small{display:block}.project-flow-criteria li small{font-size:11px;color:var(--flow-muted);margin:4px 0}.project-flow-criteria li p{margin-top:6px}.project-flow-criterion-note{color:var(--flow-muted)}
.project-flow-provenance{margin-top:20px;border-top:1px solid var(--flow-line);font-size:13px}.project-flow-provenance summary{min-height:44px;padding:12px 0;cursor:pointer;font-size:13px;font-weight:600}.project-flow-provenance p{font-size:12px;color:var(--flow-muted);margin:0 0 8px}.project-flow summary:focus-visible{outline:3px solid var(--flow-accent);outline-offset:3px}.project-flow-empty{padding:18px;border:1px dashed var(--flow-line);border-radius:3px}.project-flow-empty p{color:var(--flow-muted)}
.project-flow-summary{font-size:12px;line-height:1.5;min-width:0}.project-flow-summary p{margin:0}.project-flow-summary-stage{display:flex;flex-direction:column;gap:2px}.project-flow-summary-stage>span,.project-flow-summary-next>span{font-size:11px;color:var(--flow-muted)}.project-flow-summary-stage strong{font-size:13px;line-height:1.4;overflow-wrap:anywhere}.project-flow-summary .project-flow-summary-count{font-size:11px;color:var(--flow-muted);margin-top:4px}.project-flow-summary-next{margin-top:8px}.project-flow-summary-next p{font-size:13px;line-height:1.5;overflow-wrap:anywhere}
@container(max-width:1000px){.project-flow-steps{grid-template-columns:repeat(3,minmax(0,1fr))}}@container(max-width:650px){.project-flow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.project-flow-focus{grid-template-columns:minmax(0,1fr);gap:18px}}@container(max-width:380px){.project-flow-steps{grid-template-columns:minmax(0,1fr)}.project-flow-step summary{min-height:88px}}
@media(max-width:760px){.project-flow{padding:18px;margin:18px 0}.project-flow-focus{grid-template-columns:minmax(0,1fr);padding:16px;gap:18px}.project-flow h2{font-size:24px}.project-flow-steps{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:440px){.project-flow{padding:14px}.project-flow-steps{grid-template-columns:minmax(0,1fr)}.project-flow-step summary{min-height:88px}}
@media(forced-colors:active){.project-flow-step.is-current{border:2px solid Highlight}.project-flow-current-tag{border:1px solid CanvasText}.project-flow summary:focus-visible{outline-color:Highlight}}
