/* Scoped to the notes extraction workspace. Review panels retain their own evidence styles. */
.workflow-bar { display:flex; flex:none; align-items:center; justify-content:space-between; gap:12px; margin:0 0 11px; }
.workflow-steps { list-style:none; margin:0; padding:0; display:flex; align-items:center; gap:0; min-width:0; }
.workflow-steps li { display:flex; align-items:center; gap:7px; font:430 13px/1.35 var(--font); color:#67675f; white-space:nowrap; }
.workflow-steps li + li::before { content:''; display:block; width:clamp(10px,2.1vw,32px); height:1px; margin:0 2px 0 8px; background:#c7c6bd; }
.workflow-steps li > span { display:grid; width:24px; height:24px; place-items:center; border:1px solid #bcbcb2; border-radius:50%; font-variant-numeric:tabular-nums; }
.workflow-steps [aria-current=step] { color:var(--ink); font-weight:580; }
.workflow-steps [aria-current=step] span { background:var(--shell-dark); border-color:var(--shell-dark); color:var(--shell-action-ink); }
.workflow-steps .flow-done > span { background:color-mix(in srgb,var(--shell-highlight) 48%,white); border-color:transparent; color:#29291f; }
.flow-primary,.flow-secondary { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:34px; padding:6px 13px; border-radius:999px; font:480 13px/1.3 var(--font); cursor:pointer; }
.flow-primary { border:1px solid var(--shell-dark); color:var(--shell-action-ink); background:var(--shell-dark); }
.flow-primary:disabled { background:#e4e4df; border-color:transparent; color:#65655d; cursor:default; }
.flow-secondary { border:1px solid #d0cfc6; color:var(--ink); background:#ffffffc9; }
.flow-secondary:hover { background:#fff; border-color:#9d9c91; }
.flow-secondary svg { width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; }
#workflow-context { flex:none; color:var(--ink-2); margin:-3px 0 11px 1px; font:450 13px/1.45 var(--font); overflow-wrap:anywhere; }
#workflow-context { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; }
#workflow-context [hidden],#illustration-nav[hidden] { display:none; }
#review-case { font-weight:550; }
#next-run-notice { flex-basis:100%; }
.worked-example :is(#export-banner,#open-run-setup,.result-note-filter,#result-meta,#side-dataset),
.worked-example .run-rail :is(.rail-tabs,#run-panel,#side-conversations) { display:none; }
#illustration-nav { padding:0 18px 12px; flex:1; }
#illustration-nav h2 { font-size:17px; margin:3px 0; }
#illustration-nav p { font-size:13px; color:var(--side-subtle); margin:4px 0 16px; }
#illustration-nav button { display:block; width:100%; padding:9px; text-align:left; border:0; border-radius:8px; background:transparent; color:inherit; font:inherit; cursor:pointer; }
#illustration-nav button:is(:hover,[aria-current=page]) { background:color-mix(in srgb,var(--side-fg) 8%,transparent); }
#workflow-task { flex:1 1 auto; min-height:0; align-self:stretch; overflow:auto; padding:clamp(20px,3.4vw,50px); background:var(--shell-card); border:1px solid #fff; border-radius:var(--shell-corner) var(--shell-corner) 0 0; }
#workflow-task[hidden],#workflow-task [hidden],#workflow-context[hidden] { display:none; }
.flow-intro h1 { font:420 clamp(26px,2.8vw,41px)/1.16 var(--font); letter-spacing:-.045em; margin:0; text-wrap:balance; }
#flow-message { color:var(--muted); font-size:15px; line-height:1.55; margin:9px 0 24px; }
#flow-sources { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; max-width:720px; }
#flow-demo-list { grid-column:1/-1; display:grid; gap:7px; padding-top:4px; }
.flow-source { position:relative; width:100%; min-width:0; text-align:left; padding:14px 34px 14px 15px; border:1px solid #d4d3cc; border-radius:13px; background:#fbfbf9; font-family:var(--font); color:var(--ink); overflow-wrap:anywhere; cursor:pointer; }
#flow-demo-list .flow-source { background:var(--shell-card); }
.flow-source:not(:disabled)::after { content:'→'; position:absolute; top:50%; right:15px; transform:translateY(-50%); font-size:17px; }
#flow-demo-toggle[aria-expanded]::after { content:'⌄'; }
#flow-demo-toggle[aria-expanded=true]::after { transform:translateY(-50%) rotate(180deg); }
.flow-source strong,.flow-source span { display:block; }
.flow-source strong { font-size:16px; line-height:1.4; font-weight:500; }
.flow-source span { margin-top:3px; color:var(--muted); font-size:14px; line-height:1.45; }
.flow-source:enabled:hover { background:color-mix(in srgb,var(--shell-highlight) 12%,white); border-color:#b2ac95; }
.flow-source:disabled { cursor:default; background:#f5f5f2; }
#flow-example { display:inline-block; margin-top:20px; color:var(--ink-2); text-underline-offset:3px; font-size:13px; }
#flow-actions { display:flex; gap:8px; flex-wrap:wrap; }
#flow-progress { accent-color:var(--shell-highlight); display:block; width:min(100%,320px); margin-top:20px; height:6px; }
.journey-workspace .col-result.flow-preparation > :is(.tabs,.tabpanels,.result-note-filter,#result-meta) { display:none; }
.shell-actions button:disabled { opacity:.45; cursor:default; }
@media (max-width:760px) {
  .workflow-bar { margin:4px 0 10px; gap:8px; flex-wrap:wrap; }
  .workflow-steps li { font-size:11.5px; gap:4px; }
  .workflow-steps li + li::before { width:8px; margin:0 2px; }
  .workflow-steps li > span { width:20px; height:20px; }
  #open-run-setup { min-height:31px; padding:5px 9px; font-size:12px; }
  #workflow-task { padding:20px 15px 26px; border-radius:17px; }
  #flow-sources { gap:7px; }
  #flow-sources > .flow-source { padding:12px 10px; }
  #flow-sources > .flow-source::after { position:static; display:inline-block; margin-top:3px; transform:none; }
  #flow-demo-toggle[aria-expanded=true]::after { transform:rotate(180deg); }
  .journey-workspace .col-result > .tabs { width:100%; flex-wrap:wrap; border-radius:14px; }
  .journey-workspace .col-result > .tabs button { white-space:normal; min-height:36px; padding:7px 10px; }
  .journey-workspace :is(.ep-source-action,.ep-attribute-link,.ep-controls > .ep-link) { min-height:40px; font-size:14px; }
  .journey-workspace .ep-evidence-foot { gap:2px 16px; }
  .journey-workspace .run-rail :is(.hint,#note-hint,.other-notes summary) { font-size:14px; line-height:1.45; }
  .flow-primary,.flow-secondary { min-height:40px; font-size:14px; }

  #flow-message { margin-bottom:16px; }
}
@media (max-width:470px) {
  .workflow-bar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:3px; }
  #open-run-setup svg { display:none; }
  .workflow-steps li { font-size:11px; gap:3px; }
  .workflow-steps li + li::before { width:4px; margin:0 1px; }
}
@media (max-width:366px) { .workflow-bar { display:flex; } }

#flow-inputs { margin:0 0 14px; font-size:15px; line-height:1.5; overflow-wrap:anywhere; }
#flow-destination { display:flex; align-items:center; flex-wrap:wrap; gap:5px 12px; margin:0 0 14px; }
#flow-destination label { font-size:14px; font-weight:500; }
#flow-output { width:auto; min-height:37px; max-width:100%; padding:5px 9px; border:1px solid var(--line-2); border-radius:8px; background:white; color:var(--ink); font:inherit; }
#flow-settings { margin:14px 0 0; color:var(--ink-2); font-size:14px; }
#flow-settings summary { width:fit-content; padding:8px 0; cursor:pointer; font-weight:500; }
#flow-settings-summary { margin:0 0 8px; }
#flow-result-heading { flex:none; margin:0 0 8px; width:fit-content; max-width:100%; font:500 17px/1.4 var(--font); }
/* Keep the arrival heading in place when focus moves from it to a result tab. */
#flow-result-heading:not([data-arrival-view]) { position:absolute; width:1px; height:1px; margin:0; overflow:hidden; clip-path:inset(50%); }
@media (min-width:1101px) {
  .workspace-frame:has(.flow-preparation) > .run-rail #run-btn:enabled { background:var(--shell-sidebar); border:1px solid var(--side-subtle); color:var(--side-fg); }
}
