/* A quiet project overview: four stages, one active task, optional detail. */
.research-map-page.overview-clean {
  --flow-ink: #1f2523;
  --flow-muted: #6c7470;
  --flow-line: #e6e8e7;
  --flow-paper: #fff;
  --flow-soft: #fafafa;
  --flow-accent: #206552;
  max-width: 1280px;
  margin-inline: auto;
  color: var(--flow-ink);
}
.overview-clean :is(h1,h2,h3,h4) { font-family: inherit; color: var(--flow-ink); }
.overview-clean :is(button,summary):focus-visible { outline: 2px solid var(--flow-accent); outline-offset: 4px; }
.overview-clean .eyebrow { color: var(--flow-muted); font-size: 10px; font-weight: 500; letter-spacing: .06em; }
.overview-clean .map-page-head { align-items: flex-start; gap: 24px; margin: 0 0 18px; }
.overview-clean .map-page-head > div:first-child { min-width: 0; }
.overview-clean .map-page-head h1 { margin: 8px 0 0; max-width: 850px; font-size: clamp(25px,2.2vw,32px); font-weight: 600; letter-spacing: -.8px; line-height: 1.25; overflow-wrap: anywhere; }
.overview-clean .map-page-head .actions { flex-shrink: 0; gap: 8px; margin-top: 1px; }
.overview-clean .map-page-head .btn { min-height: 36px; padding: 8px 12px; font-size: 11px; }
.overview-clean .flow-summary { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px 32px; margin: 0 0 30px; padding: 0 0 26px; border: 0; border-bottom: 1px solid var(--flow-line); border-radius: 0; background: transparent; }
.overview-clean .flow-question { flex: 1; min-width: 0; }
.overview-clean .flow-question h2 { max-width: 760px; margin: 0; font-size: 14px; font-weight: 400; line-height: 1.7; letter-spacing: 0; color: var(--flow-muted); overflow-wrap: anywhere; }
.overview-clean .flow-question .actions { gap: 18px; margin-top: 8px; }
.overview-clean .studio-inline-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 0; border: 0; background: transparent; color: var(--flow-accent); font-size: 12px; line-height: 1.5; cursor: pointer; text-align: left; }
.overview-clean .studio-inline-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.overview-clean .flow-question button { font-size: 11px; }
.overview-clean .flow-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; flex-shrink: 0; padding-bottom: 6px; }
.overview-clean .flow-counts > span { display: flex; flex-direction: column; gap: 4px; color: var(--flow-muted); font-size: 10px; white-space: nowrap; }
.overview-clean .flow-counts strong { color: var(--flow-ink); font-size: 20px; font-weight: 550; line-height: 1.2; font-variant-numeric: tabular-nums; letter-spacing: -.4px; }
.overview-clean .flow-counts strong small { color: #8a918d; font-size: 12px; font-weight: 400; }

/* Each stage is a real navigation control. Selection does not run an agent. */
.overview-clean .pipeline-desk { display: block; }
.overview-clean .pipeline-map { padding: 0; border: 0; border-radius: 0; background: none; }
.overview-clean .pipeline-map-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 13px; }
.overview-clean .pipeline-map-heading h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.1px; }
.overview-clean .pipeline-map-heading > span { color: var(--flow-muted); font-size: 11px; }
.overview-clean .pipeline-nodes { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.overview-clean .pipeline-nodes::before { display: none; }
.overview-clean .pipeline-node { position: relative; display: grid; grid-template-columns: 1fr auto; align-content: start; align-items: start; gap: 9px; width: 100%; min-width: 0; min-height: 155px; padding: 17px 18px; border: 1px solid var(--flow-line); border-radius: 12px; background: #fff; color: var(--flow-ink); text-align: left; box-shadow: none; transition: border-color .15s,box-shadow .15s; cursor: pointer; }
.overview-clean .pipeline-node:hover { border-color: #bcc6c1; background: #fff; box-shadow: 0 3px 12px #1f252306; }
.overview-clean .pipeline-node[aria-pressed="true"] { border-color: var(--flow-accent); background: #fff; box-shadow: inset 0 2px 0 var(--flow-accent); }
.overview-clean .pipeline-node-index { grid-column: 1; display: block; width: auto; height: auto; border: 0; border-radius: 0; background: none; color: #8a918d; font-size: 10px; font-weight: 500; font-variant-numeric: tabular-nums; }
.overview-clean .pipeline-node[aria-pressed="true"] .pipeline-node-index { border: 0; background: none; color: var(--flow-accent); }
.overview-clean .pipeline-node-copy { grid-column: 1 / -1; min-width: 0; }
.overview-clean .pipeline-node-copy strong { display: block; color: var(--flow-ink); font-size: 16px; font-weight: 550; line-height: 1.4; letter-spacing: -.2px; }
.overview-clean .pipeline-node-copy small { display: block; margin-top: 6px; min-height: 30px; color: var(--flow-muted); font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.overview-clean .pipeline-state { display: inline-flex; align-items: center; justify-self: start; padding: 3px 7px; border: 0; border-radius: 5px; background: #f4f5f4; color: #65716a; font-size: 10px; font-weight: 400; line-height: 1.5; }
.overview-clean .pipeline-state.is-skipped { color: #8a6530; background: #faf5ec; }
.overview-clean .pipeline-node-arrow { position: absolute; top: 15px; right: 18px; color: #9ca49f; font-size: 14px; }
.overview-clean .pipeline-node[aria-pressed="true"] .pipeline-node-arrow { color: var(--flow-accent); }
.overview-clean .pipeline-inspector { margin-top: 14px; padding: 24px; border: 1px solid var(--flow-line); border-radius: 12px; background: #fff; scroll-margin-top: 90px; }
.overview-clean .pipeline-stage-main { display: flex; align-items: center; gap: 24px; }
.overview-clean .pipeline-stage-copy { flex: 1; min-width: 0; }
.overview-clean .pipeline-inspector-heading { display: flex; align-items: center; gap: 10px; }
.overview-clean .map-node-icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; color: var(--flow-muted); border: 1px solid var(--flow-line); border-radius: 8px; background: var(--flow-soft); }
.overview-clean .map-node-icon svg { width: 16px; height: 16px; }
.overview-clean .pipeline-inspector h2 { margin: 0; color: var(--flow-ink); font-size: 18px; font-weight: 550; letter-spacing: -.3px; line-height: 1.4; }
.overview-clean .pipeline-intro { max-width: 660px; margin: 11px 0 0; color: var(--flow-muted); font-size: 12px; line-height: 1.75; }
.overview-clean .pipeline-primary { flex-shrink: 0; min-height: 40px; padding: 10px 16px; font-size: 12px; }
.overview-clean .pipeline-actions { display: flex; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 6px 24px; margin-top: 17px; }
.overview-clean .pipeline-continue { margin-left: auto; color: var(--flow-muted); }
.overview-clean .pipeline-details { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--flow-line); }
.overview-clean .pipeline-details > summary { display: flex; justify-content: space-between; align-items: center; min-height: 30px; color: var(--flow-muted); font-size: 11px; cursor: pointer; list-style: none; }
.overview-clean details > summary::-webkit-details-marker { display: none; }
.overview-clean .pipeline-details[open] > summary > span { transform: rotate(180deg); }
.overview-clean .pipeline-io { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: 30px; padding: 16px 0 3px; margin: 0; border: 0; }
.overview-clean .pipeline-io dt { color: var(--flow-ink); font-size: 11px; font-weight: 550; }
.overview-clean .pipeline-io dd { margin: 7px 0 0; color: var(--flow-muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.overview-clean .pipeline-run-note { margin-top: 18px; padding: 14px 16px; border: 1px solid var(--flow-line); border-radius: 8px; background: var(--flow-soft); }
.overview-clean .pipeline-run-note strong { display: block; margin-top: 5px; color: var(--flow-ink); font-size: 12px; font-weight: 500; }
.overview-clean .pipeline-run-note p { margin: 6px 0; color: var(--flow-muted); font-size: 11px; line-height: 1.6; }
.overview-clean .pipeline-skipped { display: inline-flex; padding: 3px 7px; color: #8a6530; background: #faf5ec; border-radius: 5px; font-size: 10px; }

/* Saved-state suggestions remain secondary to the selected task. */
.overview-clean .flow-next { display: flex; align-items: center; gap: 14px; margin: 18px 0 0; padding: 16px 18px; border: 1px solid var(--flow-line); border-radius: 10px; background: transparent; }
.overview-clean .flow-next > div { flex: 1; min-width: 0; }
.overview-clean .flow-next small { display: block; margin-bottom: 5px; color: var(--flow-muted); font-size: 10px; }
.overview-clean .flow-next strong { display: block; color: var(--flow-ink); font-size: 12px; font-weight: 500; line-height: 1.5; }
.overview-clean .flow-next p { margin: 5px 0 0; color: var(--flow-muted); font-size: 11px; line-height: 1.6; }
.overview-clean .flow-next > button { flex-shrink: 0; min-height: 36px; font-size: 11px; }

/* The full set of paper agents is available without taking over the overview. */
.overview-clean .pipeline-paper-sections { margin-top: 18px; border: 1px solid var(--flow-line); border-radius: 10px; background: #fff; overflow: hidden; }
.overview-clean .pipeline-paper-sections > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; color: var(--flow-ink); cursor: pointer; list-style: none; }
.overview-clean .pipeline-paper-sections > summary > span:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-width: 0; }
.overview-clean .pipeline-paper-sections > summary svg { width: 17px; height: 17px; color: var(--flow-muted); }
.overview-clean .pipeline-paper-sections > summary strong { font-size: 12px; font-weight: 550; }
.overview-clean .pipeline-paper-sections > summary small { margin-left: 6px; color: var(--flow-muted); font-size: 11px; }
.overview-clean .pipeline-paper-sections > summary > span:last-child { color: var(--flow-muted); }
.overview-clean .pipeline-paper-sections[open] > summary { border-bottom: 1px solid var(--flow-line); }
.overview-clean .pipeline-paper-sections[open] > summary > span:last-child { transform: rotate(180deg); }
.overview-clean .pipeline-paper-body { padding: 20px; }
.overview-clean .flow-phase-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 20px; }
.overview-clean .flow-phase { display: grid; grid-template-columns: 20px minmax(0,1fr); gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--flow-line); border-radius: 8px; background: #fff; color: var(--flow-ink); text-align: left; cursor: pointer; }
.overview-clean .flow-phase:hover { border-color: #bcc6c1; }
.overview-clean .flow-phase[aria-pressed="true"] { border-color: var(--flow-accent); box-shadow: inset 0 2px 0 var(--flow-accent); }
.overview-clean .flow-phase-number { padding-top: 2px; color: #909892; font-size: 10px; font-variant-numeric: tabular-nums; }
.overview-clean .flow-phase-copy strong { display: block; color: var(--flow-ink); font-size: 12px; font-weight: 550; }
.overview-clean .flow-phase-copy small { display: block; margin-top: 5px; color: var(--flow-muted); font-size: 10px; line-height: 1.5; }
.overview-clean .flow-phase-status { grid-column: 2; color: var(--flow-muted); font-size: 10px; }
.overview-clean .flow-phase-progress { grid-column: 1 / -1; display: block; height: 2px; margin-top: 4px; background: #edf0ee; border-radius: 3px; overflow: hidden; }
.overview-clean .flow-phase-progress i { display: block; height: 100%; max-width: 100%; background: var(--flow-accent); }
.overview-clean .flow-workbench { display: grid; grid-template-columns: minmax(0,.42fr) minmax(0,.58fr); align-items: start; gap: 18px; }
.overview-clean .flow-section-list { min-width: 0; border: 1px solid var(--flow-line); border-radius: 10px; background: #fafafa; overflow: hidden; }
.overview-clean .flow-section-head { padding: 19px 18px 14px; }
.overview-clean .flow-section-head h2 { margin: 7px 0 0; font-size: 18px; font-weight: 550; }
.overview-clean .flow-section-head p { margin: 8px 0 0; color: var(--flow-muted); font-size: 11px; line-height: 1.7; }
.overview-clean .flow-filter { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; margin: 0 17px 14px; border: 1px solid var(--flow-line); border-radius: 7px; background: #f1f3f2; }
.overview-clean .flow-filter button { min-height: 31px; padding: 6px 10px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: var(--flow-muted); font-size: 10px; cursor: pointer; }
.overview-clean .flow-filter button[aria-pressed="true"] { background: #fff; color: var(--flow-ink); border-color: var(--flow-line); }
.overview-clean .flow-items { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 13px; }
.overview-clean .flow-item { position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 8px 10px; min-width: 0; width: 100%; padding: 14px; border: 1px solid var(--flow-line); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.overview-clean .flow-item.is-selected { border-color: var(--flow-accent); box-shadow: inset 2px 0 0 var(--flow-accent); }
.overview-clean .flow-item:hover { border-color: #aabbb2; }
.overview-clean .flow-item > .map-node-icon { width: 28px; height: 28px; }
.overview-clean .flow-item-copy { min-width: 0; }
.overview-clean .flow-item-copy strong { display: block; color: var(--flow-ink); font-size: 12px; font-weight: 550; }
.overview-clean .flow-item-copy > span { display: block; margin-top: 5px; color: var(--flow-muted); font-size: 11px; line-height: 1.5; }
.overview-clean .flow-item-copy small { display: block; margin-top: 6px; color: var(--flow-muted); font-size: 10px; }
.overview-clean .flow-item-status { grid-column: 2; justify-self: start; padding: 2px 6px; border-radius: 4px; color: var(--flow-muted); background: #f3f5f3; font-size: 10px; }
.overview-clean .flow-item.is-draft .flow-item-status { color: #856735; background: #faf5ec; }
.overview-clean .flow-item.is-reviewed .flow-item-status { color: var(--flow-accent); background: #f0f6f2; }
.overview-clean .flow-item-chevron { position: absolute; right: 15px; bottom: 15px; color: var(--flow-muted); }
.overview-clean .flow-phase-jump { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--flow-line); color: var(--flow-muted); font-size: 10px; line-height: 1.5; }
.overview-clean .flow-phase-jump button { font-size: 10px; }
.overview-clean .flow-empty { padding: 16px; background: #fff; font-size: 11px; }
.overview-clean .flow-empty strong { font-size: 12px; }
.overview-clean .map-selected-shortcut { display: none; }
.overview-clean .map-inspector { display: block; min-width: 0; padding: 21px; border: 1px solid var(--flow-line); border-radius: 10px; background: #fff; scroll-margin-top: 90px; }
.overview-clean .map-inspector-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.overview-clean .map-inspector-status { margin-left: auto; color: var(--flow-muted); font-size: 10px; }
.overview-clean .map-inspector h2 { margin: 0; font-size: 20px; font-weight: 550; letter-spacing: -.3px; }
.overview-clean .map-inspector-summary > p { color: var(--flow-muted); font-size: 12px; line-height: 1.7; }
.overview-clean .map-inspector-actions { display: flex; flex-direction: row; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.overview-clean .map-inspector-actions .btn { min-height: 36px; width: auto; padding: 8px 12px; font-size: 11px; }
.overview-clean .map-inspector > section { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--flow-line); }
.overview-clean .map-section-label { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.overview-clean .map-section-label h3, .overview-clean .workflow-step-list h3 { margin: 0; color: var(--flow-ink); font-size: 11px; font-weight: 550; }
.overview-clean .map-preview h4 { color: var(--flow-ink); font-size: 12px; font-weight: 500; line-height: 1.7; }
.overview-clean :is(.map-preview p,.map-muted,.flow-context-path p,.workflow-step-list p) { color: var(--flow-muted); font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }
.overview-clean .map-provenance { display: inline-block; padding: 4px 7px; border-radius: 4px; background: #f4f5f4; color: var(--flow-muted); font-size: 10px; }
.overview-clean .map-input-list strong { color: var(--flow-ink); font-size: 11px; }
.overview-clean .map-input-list small { color: var(--flow-muted); font-size: 10px; }
.overview-clean .flow-suggested-inputs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; color: var(--flow-muted); font-size: 10px; }
.overview-clean .map-route-chip { min-height: 30px; padding: 5px 8px; border: 1px solid var(--flow-line); border-radius: 5px; background: #fff; color: var(--flow-muted); font-size: 10px; }
.overview-clean .workflow-step-list { display: flex; flex-direction: column; gap: 7px; }
.overview-clean .workflow-step-list > button { display: flex; justify-content: space-between; min-height: 34px; padding: 8px 10px; border: 1px solid var(--flow-line); border-radius: 5px; background: #fafafa; color: var(--flow-accent); text-align: left; font-size: 11px; }
.overview-clean .map-handoffs { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--flow-line); border-radius: 10px; background: #fff; }
.overview-clean .map-handoffs strong { color: var(--flow-ink); font-size: 12px; }
.overview-clean .map-handoffs p, .overview-clean .map-handoffs > div:first-child { color: var(--flow-muted); font-size: 11px; }
.overview-clean .map-handoff-link { min-height: 34px; padding: 6px 9px; border-color: var(--flow-line); color: var(--flow-accent); background: #fafafa; font-size: 11px; }
.overview-clean .flow-legend { margin-top: 17px; color: var(--flow-muted); font-size: 10px; line-height: 1.7; }
.overview-clean .flow-legend summary { display: inline-block; padding: 5px 0; cursor: pointer; list-style: none; }
.overview-clean .flow-legend summary::after { content: ' +'; margin-left: 7px; }
.overview-clean .flow-legend details[open] summary::after { content: ' −'; }
.overview-clean .flow-legend details > div { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 7px; }
.overview-clean .flow-legend p { flex-basis: 100%; margin: 0; color: var(--flow-muted); font-size: 10px; }

@media (max-width: 1100px) {
  .overview-clean .flow-summary { align-items: flex-start; flex-direction: column; gap: 15px; }
  .overview-clean .flow-counts { flex-wrap: wrap; gap: 24px; padding: 0; }
  .overview-clean .flow-counts > span { flex-direction: row; align-items: baseline; gap: 7px; }
  .overview-clean .flow-counts strong { font-size: 16px; }
  .overview-clean .map-page-head .actions { flex-direction: column; align-items: stretch; }
  .overview-clean .pipeline-node { padding: 15px; }
  .overview-clean .flow-workbench { grid-template-columns: minmax(0,1fr); }
  .overview-clean .flow-items { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-clean .map-selected-shortcut { display: block; }
  .overview-clean .map-selected-shortcut button { width: 100%; display: flex; justify-content: space-between; }
}
@media (max-width: 760px) {
  .overview-clean .map-page-head { gap: 16px; }
  .overview-clean .map-page-head h1 { font-size: 26px; }
  .overview-clean .map-page-head .actions { flex-direction: row; flex-wrap: wrap; }
  .overview-clean .pipeline-nodes { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .overview-clean .pipeline-node { min-height: 145px; }
  .overview-clean .pipeline-stage-main { align-items: flex-start; flex-direction: column; gap: 16px; }
  .overview-clean .pipeline-primary { min-height: 42px; }
  .overview-clean .pipeline-actions { gap: 6px 18px; }
  .overview-clean .pipeline-continue { margin-left: 0; }
  .overview-clean .pipeline-io { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .overview-clean .flow-next { align-items: flex-start; flex-wrap: wrap; }
  .overview-clean .flow-next > div { flex-basis: calc(100% - 45px); }
  .overview-clean .flow-next > button { margin-left: 44px; }
  .overview-clean .flow-phase-nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 480px) {
  .overview-clean .map-page-head { flex-direction: column; }
  .overview-clean .map-page-head h1 { font-size: 25px; }
  .overview-clean .map-page-head .actions { width: 100%; }
  .overview-clean .map-page-head .btn { min-height: 40px; }
  .overview-clean .flow-summary { padding-bottom: 20px; margin-bottom: 24px; }
  .overview-clean .flow-counts { gap: 10px 16px; }
  .overview-clean .flow-counts > span { font-size: 10px; }
  .overview-clean .pipeline-map-heading > span { font-size: 10px; }
  .overview-clean .pipeline-nodes { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .overview-clean .pipeline-node { grid-template-columns: 22px minmax(0,1fr) auto; align-items: center; gap: 10px; min-height: 86px; padding: 15px; }
  .overview-clean .pipeline-node-copy { grid-column: 2; }
  .overview-clean .pipeline-node-copy strong { font-size: 14px; }
  .overview-clean .pipeline-node-copy small { margin-top: 4px; min-height: 0; font-size: 10px; }
  .overview-clean .pipeline-node .pipeline-state { grid-column: 3; max-width: 76px; text-align: center; font-size: 9px; }
  .overview-clean .pipeline-node-arrow { display: none; }
  .overview-clean .pipeline-inspector { padding: 19px 17px; }
  .overview-clean .pipeline-inspector h2 { font-size: 17px; }
  .overview-clean .pipeline-primary { width: 100%; }
  .overview-clean .pipeline-actions { flex-direction: column; align-items: flex-start; gap: 0; }
  .overview-clean .studio-inline-link { min-height: 40px; }
  .overview-clean .pipeline-details summary { min-height: 40px; }
  .overview-clean .pipeline-paper-sections > summary { padding: 16px; }
  .overview-clean .pipeline-paper-sections > summary small { flex-basis: 100%; margin-left: 27px; }
  .overview-clean .pipeline-paper-body { padding: 12px; }
  .overview-clean .flow-phase { padding: 12px 10px; grid-template-columns: 16px minmax(0,1fr); gap: 7px; }
  .overview-clean .flow-phase-copy strong { font-size: 11px; }
  .overview-clean .flow-items { grid-template-columns: minmax(0,1fr); }
  .overview-clean .flow-filter button, .overview-clean .workflow-step-list > button, .overview-clean .map-route-chip { min-height: 40px; }
  .overview-clean .map-inspector { padding: 17px; }
  .overview-clean .map-inspector-head .eyebrow { display: none; }
  .overview-clean .flow-next { padding: 15px; }
  .overview-clean .flow-next > button { margin-left: 0; width: 100%; min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .overview-clean .pipeline-node { transition: none; } }
