/* A flat loop, with log sheets on the capture path and an uninterrupted MCP return. */
.session-flow { --flow-trace: var(--palette-holly-500); margin: 36px 0 0; }
.session-flow-map { position: relative; display: grid; gap: 72px; padding-left: 44px; max-width: 420px; }
.session-flow-map > div { min-width: 0; position: relative; }
.session-flow h3 { margin: 0 0 12px; font: 400 18px/1.2 var(--font-heading); color: var(--theme-ink); }
.session-flow-agent { margin-bottom: 48px; }
.session-flow-marks { width: max-content; margin-inline: auto; height: 44px; display: flex; align-items: center; justify-content: center; }
.session-flow-harness-circle { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--theme-line); border-radius: 50%; background: var(--theme-surface-raised); box-shadow: 0 0 0 2px var(--theme-surface); }
.session-flow-harness-circle + .session-flow-harness-circle { margin-left: -8px; }
.session-flow-marks img { width: 28px; height: 28px; object-fit: contain; }
[data-theme="light"] .session-flow-neutral-mark { filter: brightness(.15); }
.session-flow-server { display: flex; justify-content: center; align-self: end; }
.session-flow-brand { display: flex; align-items: center; justify-content: center; gap: 6px; height: 44px; width: max-content; }
.session-flow-brand img { object-fit: contain; }
.session-flow-map .session-flow-logs { position: absolute; transform: translate(-50%,-50%); }
.session-flow-sheets { display: flex; align-items: center; gap: 12px; color: var(--flow-trace); }
.session-flow-sheets svg + svg { display: none; }
.session-flow-sheets path { stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.session-flow-sheet { fill: var(--theme-surface); }
.session-flow-logs p { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); margin: 0; font-size: 11px; white-space: nowrap; color: var(--theme-ink-muted); }
.session-flow-terminal { padding: 0 16px 22px; border: 1px solid var(--palette-greyscale-700); border-radius: 12px; background: var(--palette-greyscale-900); color: var(--palette-holly-50); font: 12px/1.6 ui-monospace,SFMono-Regular,Menlo,monospace; }
.session-flow-terminal-bar { display: flex; align-items: center; gap: 12px; padding: 12px 0 24px; font: 11px/1.4 ui-monospace,SFMono-Regular,Menlo,monospace; color: var(--palette-greyscale-400); }
.session-flow-dots { display: flex; gap: 5px; }
.session-flow-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--palette-greyscale-600); }
.session-flow-terminal code { font: inherit; white-space: nowrap; }
.session-flow-prompt { color: var(--palette-holly-400); }
.session-flow-terminal p { margin: 10px 0 0; font: inherit; font-size: 11px; color: var(--palette-holly-300); }
.session-flow-cursor { display: inline-block; width: 6px; height: 12px; margin-left: 8px; background: currentColor; vertical-align: -2px; }
.session-flow-team { display: flex; flex-direction: column; align-items: center; width: max-content; margin-inline: auto; }
.session-flow-team h3 { white-space: nowrap; }
.session-flow-avatars { display: flex; align-items: center; height: 44px; padding-left: 2px; }
.session-flow-avatars .ava { border: 2px solid var(--theme-surface); }
.session-flow-avatars .ava + .ava { margin-left: -8px; }
.session-flow-traces { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; color: var(--flow-trace); }
.session-flow-traces path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.session-flow-label { position: absolute; font: 400 12px/1.4 var(--font-body); color: var(--theme-ink-muted); text-align: center; white-space: nowrap; }
.session-flow-mcp { transform: translate(-50%,-50%) rotate(-90deg); }
.session-flow-secure { transform: translate(-50%,-50%); padding: 4px 8px; background: var(--theme-surface); }
.session-flow figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 28px 0 0; font-size: 13px; line-height: 1.5; color: var(--theme-ink-muted); }
.session-flow figcaption a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; color: var(--theme-ink); }
@media (min-width: 768px) {
  .session-flow { margin-top: 40px; }
  .session-flow-map { max-width: none; padding: 0; grid-template-columns: repeat(12,minmax(0,1fr)); grid-template-rows: auto auto; gap: 64px 0; align-items: end; }
  .session-flow-marks { margin-inline: 0; }
  .session-flow-agent { grid-column: 1 / 4; grid-row: 1; margin: 0; }
  .session-flow-cli { grid-column: 5 / 8; grid-row: 2; }
  .session-flow-server { grid-column: 7 / 10; grid-row: 1; }
  .session-flow-team { grid-column: 11 / 13; grid-row: 1; justify-self: center; }
  .session-flow-sheets svg + svg { display: block; }
  .session-flow-logs p { left: 50%; top: calc(100% + 8px); transform: translateX(-50%); font-size: 12px; }
  .session-flow-mcp { transform: translate(-50%,-100%); }
  .session-flow figcaption { margin-top: 32px; }
}
@media (min-width: 1120px) {
  .session-flow h3 { font-size: 20px; margin-bottom: 16px; }
  .session-flow-cli { left: -50px; }
  .session-flow-terminal { padding: 0 20px 24px; font-size: 14px; }
  .session-flow-terminal p { font-size: 12px; }
  .session-flow-label { font-size: 14px; }
}

.session-flow .session-flow-agent h3,
.session-flow .session-flow-team h3 { margin-bottom: 8px; }
