/* Agentic Workflows: the figures on its slides. Boxes, chips, tables and the
   shared colours are in ../llmops.css. */

/* SVG nodes, in the shared colours. */
.nd { stroke-width: 2; fill: #fff; stroke: var(--sv-line); }
.nd.model { fill: #f7f3ff; stroke: var(--model); }
.nd.code { fill: #f0f8fd; stroke: var(--code); }
.nd.data { fill: #effaf5; stroke: var(--data); }
.nd.tool { fill: #fffaf0; stroke: var(--tool); }
.nd.user { fill: #fdf2f8; stroke: var(--user); }
.nd.ops { fill: #f5f7fa; stroke: var(--ops); }
.nd.plain { fill: #fff; stroke: #9aa3ad; stroke-width: 1.4; }
.nd.bad { fill: #fef2f2; stroke: var(--no); }
.nd.rerun { fill: #fef2f2; stroke: var(--no); stroke-dasharray: 5 3; }
.nd.replay { fill: #f3f4f6; stroke: #9aa3ad; stroke-dasharray: 5 3; }
.nd-t { font-size: 14px; font-weight: 700; fill: var(--sv-ink); }
.nd-t.sm { font-size: 13px; }
.sv-fig svg .mono { font-family: var(--mono); font-size: 13px; }

/* Tool use. */
.tu-life { stroke: #c4cad1; stroke-width: 1.5; stroke-dasharray: 4 4; }
.tu-l { font-size: 13.5px; font-weight: 600; }
.tu-l.code { fill: var(--code); } .tu-l.model { fill: var(--model); } .tu-l.tool { fill: var(--tool); }

/* Tool definition. */
.td { display: flex; flex-direction: column; gap: 10px; }
.td .src { font-size: 12.5px; }
.src.td-model { border-left: 4px solid var(--model); }
.src.td-code { border-left: 4px solid var(--code); }

/* The agent loop. */
.al { display: flex; flex-direction: column; gap: 12px; }
.al .src, .al .term { font-size: 12.5px; }

/* Workflows and agents. */
.wa-panel { fill: #fff; stroke: var(--sv-line); }
.wa-try { stroke: var(--tool); stroke-width: 1.6; stroke-dasharray: 5 4; fill: none; marker-end: url(#llm-arrow); }

/* Patterns. */
.pt-defs { position: absolute; }
.pt { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 10px; }
.pt-c { background: #fff; border: 1px solid var(--sv-line); border-top: 4px solid var(--model); border-radius: 8px; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.pt-c > b { font-size: 14.5px; }
.pt-c > span { font-size: 13px; color: var(--sv-ink2); }
.pt-svg { width: 100%; height: auto; }
.pt-t { font-size: 10.5px; font-weight: 600; fill: var(--sv-ink); }
.pt-e { stroke-width: 1.4; }
.pt-back { stroke-dasharray: 4 3; }

/* The graph. */
.gr-se { fill: #16191f; }
.gr-set { font: 700 12px var(--mono); fill: #fff; }
.gr-ck { fill: var(--data); stroke: #fff; stroke-width: 2; }
.gr-state { fill: #effaf5; stroke: var(--data); }
.sv-fig svg .gr-keys { font: 13px var(--mono); fill: var(--data); }

/* Human in the loop. */
.hl-w { display: flex; flex-direction: column; gap: 12px; }
.hl-w .src { font-size: 12.5px; }
.hl-on { fill: var(--code); }
.hl-off { fill: #fff; stroke: var(--code); stroke-width: 1.5; stroke-dasharray: 6 4; }
.hl-pt { font-size: 12.5px; fill: var(--code); font-style: italic; }
.hl-p { fill: var(--user); }
.sv-fig svg .hl-time { font: 600 12.5px var(--mono); fill: var(--sv-ink2); }

/* Durable execution. */
.du-x { font-size: 13px; font-weight: 700; fill: var(--no); }
.du-bad { font-size: 13px; font-weight: 600; fill: var(--no); }
.du-hist { fill: #effaf5; stroke: var(--data); }
.sv-fig svg .du-ht { font: 600 12.5px var(--mono); fill: var(--data); }

/* Temporal. */
.src.tp { font-size: 12.5px; }

/* Idempotency. */
.id { display: flex; flex-direction: column; gap: 12px; }
.bx.good { --c: var(--ok); background: #f0fdf4; }

/* Workloads. */
.wl { display: flex; flex-direction: column; gap: 16px; }
.wl-col { flex: 1 1 0; display: flex; flex-direction: column; gap: 6px; }
.tbl.wl-t td:nth-child(2) { white-space: nowrap; }

/* MCP. */
.mc { display: flex; flex-direction: column; gap: 10px; }
.sv-fig svg .mc-tools { font: 600 13px var(--mono); fill: var(--tool); }

@media (max-width: 860px) {
  .tbl.wl-t td:nth-child(2) { white-space: normal; }
}
.src .hl.user { --hlc: #fce7f3; --hlb: var(--user); }
.wl > .flow { align-items: center; }
