
.wf { padding: var(--mlp-cc-sec-pad-y, clamp(56px, 8vh, 88px)) var(--mlp-section-gutter, clamp(20px, 4vw, 64px)); }
.wf-inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: clamp(18px, 2.6vh, 26px); }
.wf-head { max-width: 820px; }
.wf-head h2 { margin: 14px 0 0; font: 700 clamp(1.75rem, 2.7vw, 2.5rem)/1.12 Poppins, system-ui, sans-serif; letter-spacing: -.022em; color: var(--mel-text-primary); text-wrap: balance; }
.wf-head p { margin: 12px 0 0; max-width: 62ch; font: 400 clamp(1rem, .35vw + .9rem, 1.08rem)/1.6 Poppins, system-ui, sans-serif; color: var(--mel-text-secondary); }

.wf-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 22px); }
.wf-lane { --wf-a: #64748B; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px 18px 18px; border-radius: 18px;
  border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.wf-lane--fast { --wf-a: #818CF8; border-color: rgba(129,140,248,.32); background: linear-gradient(160deg, rgba(129,140,248,.09), rgba(34,211,238,.02));
  box-shadow: 0 0 40px rgba(99,102,241,.10); }
.light .wf-lane { border-color: rgba(15,23,42,.09); background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.06); }
.light .wf-lane--fast { --wf-a: #1E3A8A; border-color: rgba(30,58,138,.35); box-shadow: 0 14px 34px rgba(30,58,138,.12); }
.wf-lane-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.wf-lane-id { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wf-lane-name { font: 650 15.5px/1.25 Poppins, system-ui, sans-serif; color: var(--mel-text-primary); }
.wf-lane-count { font: 400 12.5px/1.3 Poppins, system-ui, sans-serif; color: var(--mel-text-tertiary); white-space: nowrap; }
.wf-lane-count b { font-weight: 700; color: var(--mel-text-primary); font-variant-numeric: tabular-nums; }
.wf-lane-count i { font-style: normal; margin: 0 4px; }
.wf-clock { font: 700 clamp(24px, 2.4vw, 32px)/1 Poppins, system-ui, sans-serif; letter-spacing: -.03em; color: var(--mel-text-primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wf-clock small { margin-left: 2px; font-size: .5em; font-weight: 600; color: var(--mel-text-tertiary); }
.wf-lane--fast.is-done .wf-clock { color: #a5b4fc; text-shadow: 0 0 18px rgba(129,140,248,.55); }
.light .wf-lane--fast.is-done .wf-clock { color: #1E3A8A; text-shadow: none; }

.wf-sheet { position: relative; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 3px; }
.wf-sheet::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: 6px; background: #fff; opacity: 0; transition: opacity .12s ease; }
.wf-sheet.is-flash::after { opacity: .14; }
.wf-sheet.is-scan::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 50%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(129,140,248,0), rgba(129,140,248,.3)); animation: wf-scan .5s linear infinite; }
@keyframes wf-scan { from { transform: translateY(-100%); } to { transform: translateY(200%); } }
.wf-cell { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 5px; overflow: hidden;
  font: 500 10.5px/1 'JetBrains Mono', ui-monospace, monospace; color: var(--mel-text-primary); font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); transition: background .2s ease; }
.light .wf-cell { background: #f1f5f9; box-shadow: inset 0 0 0 1px rgba(15,23,42,.05); }
.wf-lane--fast .wf-cell.is-on { background: rgba(129,140,248,.14); }
.light .wf-lane--fast .wf-cell.is-on { background: rgba(30,58,138,.08); }
.wf-lane--slow .wf-cell.is-on { background: rgba(148,163,184,.12); }
.wf-cell.is-current { box-shadow: inset 0 0 0 1.5px var(--wf-a); }
.wf-phase { grid-column: 1 / -1; justify-self: start; display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; padding: 4px 9px; border-radius: 999px;
  font: 600 11px/1 Poppins, system-ui, sans-serif; color: #e2e8f0; background: rgba(15,23,42,.86); border: 1px solid rgba(255,255,255,.12); }
.light .wf-phase { color: #0f172a; background: #fff; border-color: rgba(15,23,42,.12); }
.wf-phase--think, .wf-phase--plan { color: #fde68a; border-color: rgba(251,191,36,.45); }
.wf-phase--think svg, .wf-phase--plan svg { animation: wf-pulse 1s ease-in-out infinite; }
.light .wf-phase--think, .light .wf-phase--plan { color: #92400e; border-color: rgba(217,119,6,.4); }
.wf-phase--done { color: #6ee7b7; border-color: rgba(16,185,129,.5); }
.light .wf-phase--done { color: #047857; border-color: rgba(16,185,129,.45); }
@keyframes wf-pulse { 50% { opacity: .35; } }

.wf-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; margin-top: -4px; }
.wf-note { margin: 0; max-width: 78ch; font: 400 12.5px/1.55 Poppins, system-ui, sans-serif; color: var(--mel-text-tertiary); }
.wf-note b { margin-right: 4px; font: 700 13px/1 Poppins, system-ui, sans-serif; color: #a5b4fc; }
.light .wf-note b { color: #1E3A8A; }
.wf-replay { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; cursor: pointer;
  font: 600 12px/1 Poppins, system-ui, sans-serif; color: var(--mel-text-secondary); background: transparent; border: 1px solid rgba(148,163,184,.3); }
.wf-replay:hover { color: var(--mel-text-primary); border-color: rgba(129,140,248,.6); }
.wf-replay:focus-visible, .wf-docs:focus-visible { outline: 2px solid #818CF8; outline-offset: 3px; }

.wf-takeaways { list-style: none; margin: 0; padding: 14px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 28px; border-top: 1px solid rgba(148,163,184,.2); }
.wf-takeaways li { font: 400 13.5px/1.5 Poppins, system-ui, sans-serif; color: var(--mel-text-secondary); }
.wf-takeaways strong { display: block; margin-bottom: 2px; font: 650 14.5px/1.3 Poppins, system-ui, sans-serif; color: var(--mel-text-primary); }
.wf-docs { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: 600 13.5px/1 Poppins, system-ui, sans-serif; color: #a5b4fc; text-decoration: none; }
.wf-docs:hover { text-decoration: underline; text-underline-offset: 3px; }
.light .wf-docs { color: #1E3A8A; }

@media (max-width: 900px) {
  .wf-stage { grid-template-columns: minmax(0, 1fr); }
  .wf-takeaways { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .wf-sheet { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .wf-cell { height: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-sheet.is-scan::before, .wf-phase svg { animation: none !important; }
  .wf-sheet::after, .wf-cell { transition: none; }
}
