/* Designer-supplied operated-work treatment, adapted to Corbel site tokens and behavior. */
#outcomes { padding: 76px 0; background: var(--stone); }
    #outcomes .container { width: min(1150px, 100% - 40px); margin: 0 auto; }

    .wf-header { display: flex; flex-wrap: wrap; gap: 24px 56px; align-items: flex-end; justify-content: space-between; }
    .wf-intro { flex: 1 1 440px; min-width: 0; }
    .wf-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-deep); }
    .wf-title { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; max-width: 22ch; text-wrap: balance; }
    .wf-lede { margin: 14px 0 0; font-size: 16.5px; line-height: 1.65; color: var(--muted); max-width: 46rem; text-wrap: pretty; }

    .wf-legend { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 0 6px; }
    .wf-legend-head { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #857c6b; }
    .wf-legend span.wf-legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); }
    .wf-legend-item strong { color: var(--ink); font-weight: 600; }
    .wf-dot-auto, .wf-dot-mon, .wf-dot-gate { flex: 0 0 auto; }
    .wf-dot-auto { width: 8px; height: 8px; border-radius: 50%; background: #2d7768; }
    .wf-dot-mon { width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid #66798c; }
    .wf-dot-gate { width: 7px; height: 7px; border: 1.5px solid #c95829; transform: rotate(45deg); }

    .outcome-switcher { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 20px; align-items: start; margin-top: 28px; }
    .wf-tabs { display: grid; gap: 7px; align-content: start; }
    .wf-tab {
      display: flex; align-items: flex-start; gap: 9px;
      min-height: 50px; padding: 10px 12px 11px 14px;
      border: 1px solid var(--line); border-radius: 9px;
      background: rgba(255, 255, 255, .55); color: var(--ink);
      text-align: left; cursor: pointer;
      transition: border-color .15s ease, background .15s ease;
    }
    .wf-tab:hover { border-color: #c9bfad; background: #ffffff; }
    .wf-tab[aria-selected="true"] { background: #ffffff; border-color: #dfb391; box-shadow: inset 3px 0 0 var(--accent), 0 1px 3px rgba(31, 35, 40, .07); }
    .wf-tab-idx { font-family: var(--mono); font-size: 9.5px; font-weight: 700; color: #8d8371; padding-top: 4px; letter-spacing: .04em; flex: 0 0 auto; }
    .wf-tab[aria-selected="true"] .wf-tab-idx { color: var(--accent); }
    .wf-tab-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
    .wf-tab-text > span { font-size: 14px; font-weight: 600; line-height: 1.3; }
    .wf-tab-text > small { color: var(--muted); font-size: 11.5px; font-weight: 400; line-height: 1.4; }

    .outcome-panels { min-width: 0; }
    .outcome-switcher:not(.outcome-switcher--enhanced) .wf-tabs { display: none; }
    .outcome-switcher:not(.outcome-switcher--enhanced) .outcome-panels { display: grid; gap: 20px; }
    .outcome-switcher.outcome-switcher--enhanced .outcome-panel { display: none; }
    .outcome-switcher.outcome-switcher--enhanced .outcome-panel.is-active { display: grid; }
    .outcome-panel {
      background: #ffffff; border: 1px solid var(--line); border-radius: 12px;
      padding: 20px 22px 22px; box-shadow: 0 1px 3px rgba(31, 35, 40, .05);
      display: grid; gap: 12px; min-width: 0;
      animation: wfPanelIn .22s ease-out both;
    }
    .wf-kicker { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-deep); }
    .wf-pain { margin: 6px 0 0; font-size: clamp(17px, 2vw, 20px); font-weight: 600; line-height: 1.32; max-width: 60ch; text-wrap: balance; }

    .workflow-state-current { border: 1px dashed #d3c3ae; border-radius: 10px; background: #faf6ee; padding: 12px 14px 14px; }
    .workflow-state-corbel { border-radius: 10px; background: var(--ink-2); padding: 13px 14px 14px; }
    .wf-blockhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
    .wf-blockhead > span { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
    .workflow-state-current .wf-blockhead > span { color: #9b4c2c; }
    .workflow-state-corbel .wf-blockhead > span { color: #f0a276; }
    .wf-blockhead > em { font-style: normal; font-size: 11px; }
    .workflow-state-current .wf-blockhead > em { color: #7a7466; }
    .workflow-state-corbel .wf-blockhead > em { color: #9aa3ad; }

    .wf-track { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr) 24px minmax(0, 1fr); align-items: stretch; }
    .wf-node {
      min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center;
      padding: 8px 10px; border: 1px solid #ded5c6; border-radius: 7px; background: #ffffff;
      color: #4a4f57; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center;
      min-width: 0; text-wrap: balance;
    }
    .wf-node--break { border-color: #e3c4ad; background: #fffcf7; }
    .wf-note { display: block; margin-top: 3px; color: #a8502b; font-size: 10.5px; font-weight: 600; line-height: 1.3; }

    .wf-step {
      min-height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
      padding: 10px 9px; border: 1px solid #3b434e; border-radius: 8px; background: #2a303a;
      color: #eef0ec; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center;
      min-width: 0; text-wrap: balance;
    }
    .wf-step--result { border-color: #4a7a68; background: #243830; }
    .wf-mode { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
    .wf-mode::before { content: ""; flex: 0 0 auto; }
    .wf-mode--auto { color: #8bc9b6; }
    .wf-mode--auto::before { width: 7px; height: 7px; border-radius: 50%; background: #4faa92; }
    .wf-mode--mon { color: #aec2d2; }
    .wf-mode--mon::before { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #92adc2; }
    .wf-mode--gate { color: #f2a17b; }
    .wf-mode--gate::before { width: 6px; height: 6px; border: 1.5px solid #ef8c5e; transform: rotate(45deg); }

    .wf-conn { position: relative; min-width: 0; }
    .wf-conn::before { content: ""; position: absolute; top: 50%; left: 2px; right: 8px; border-top: 1.5px dashed #c2b29c; }
    .wf-conn::after { content: ""; position: absolute; top: calc(50% - 4px); right: 3px; width: 7px; height: 7px; border-top: 1.5px solid #ab9a82; border-right: 1.5px solid #ab9a82; transform: rotate(45deg); }
    .workflow-state-corbel .wf-conn::before { border-top: 2px solid var(--accent); }
    .workflow-state-corbel .wf-conn::after { border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); width: 7px; height: 7px; }

    .workflow-implementation { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px 12px; margin-top: 12px; padding-top: 11px; border-top: 1px solid #414a56; animation: wfPanelIn .16s ease-out both; animation-delay: .16s; }
    .workflow-implementation > span { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #bac2cb; }
    .workflow-implementation ul { display: flex; flex: 1 1 300px; flex-wrap: wrap; gap: 5px; list-style: none; padding: 0; }
    .workflow-implementation li { padding: 3px 8px; border: 1px solid #566171; border-radius: 5px; background: #303743; color: #eef1f4; font-size: 11px; font-weight: 500; line-height: 1.35; }
    .wf-hide-impl .workflow-implementation { display: none; }

    .workflow-result { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 10px; animation: wfPanelIn .16s ease-out both; animation-delay: .18s; }
    .wf-controls { border: 1px solid #e0d8c9; background: #f8f5ee; border-radius: 9px; padding: 12px 14px; }
    .wf-controls > span { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #7b7263; }
    .wf-controls p { margin: 5px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
    .wf-controls a { font-weight: 600; text-underline-offset: 3px; }
    .wf-outcome { border: 1.5px solid #2d7768; background: rgba(45, 119, 104, .06); border-radius: 9px; padding: 14px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
    .wf-outcome > span { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #246457; }
    .wf-outcome strong { display: block; font-size: 14px; font-weight: 600; color: #1f3a33; line-height: 1.5; }
    #outcomes .wf-cta {
      align-self: flex-end; display: inline-flex; align-items: center; gap: 9px;
      margin-top: 4px; min-height: 44px; padding: 0 20px; border-radius: 8px;
      background: #c94b16; color: #ffffff; font-size: 13.5px; font-weight: 700; letter-spacing: .01em; line-height: 1;
      text-decoration: none; box-shadow: 0 1px 2px rgba(31, 35, 40, .18);
      transition: background .15s ease;
    }
    #outcomes .wf-cta::after { content: "→"; }
    #outcomes .wf-cta:hover { background: var(--accent-deep); color: #ffffff; }

    @keyframes wfPanelIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
    @keyframes wfStepIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
    .workflow-state-corbel .wf-track > * { animation: wfStepIn .15s ease-out both; }
    .workflow-state-corbel .wf-track > *:nth-child(1) { animation-delay: .015s; }
    .workflow-state-corbel .wf-track > *:nth-child(2) { animation-delay: .035s; }
    .workflow-state-corbel .wf-track > *:nth-child(3) { animation-delay: .055s; }
    .workflow-state-corbel .wf-track > *:nth-child(4) { animation-delay: .075s; }
    .workflow-state-corbel .wf-track > *:nth-child(5) { animation-delay: .095s; }
    .workflow-state-corbel .wf-track > *:nth-child(6) { animation-delay: .115s; }
    .workflow-state-corbel .wf-track > *:nth-child(7) { animation-delay: .135s; }

    @media (max-width: 1020px) {
      .outcome-switcher { grid-template-columns: 1fr; gap: 14px; }
      .wf-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }
    @media (max-width: 740px) {
      #outcomes { padding: 52px 0; }
      .outcome-panel { padding: 16px 13px; }
      .wf-track { grid-template-columns: minmax(0, 1fr); }
      .wf-node, .wf-step { min-height: 0; }
      .wf-conn { height: 22px; }
      .wf-conn::before { left: 50%; right: auto; top: 2px; bottom: 9px; border-top: none !important; border-left: 1.5px dashed #c2b29c; }
      .workflow-state-corbel .wf-conn::before { border-left: 2px solid var(--accent); }
      .wf-conn::after { top: auto; right: auto; bottom: 3px; left: calc(50% - 4px); transform: rotate(135deg); }
      .workflow-result { grid-template-columns: 1fr; }
      .wf-blockhead { flex-direction: column; gap: 2px; }
      .wf-tab small { display: none; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    }
