/* Security and Governance for Agents: the figures on its slides. Boxes,
   chips, tables and the shared colours are in ../llmops.css. */

.stack { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* A defence: a box in the "ok" green. */
.bx.guard { --c: var(--ok); background: #effaf2; }

/* The context window. */
.as { display: grid; grid-template-columns: minmax(0, 1fr) auto 150px; gap: 10px; align-items: center; }
.cw { border: 2px solid var(--model); border-radius: 12px; background: #fff; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.cw-head { font-size: 13px; font-weight: 700; color: var(--model); }
.cw-seg { border-left: 4px solid var(--c); border-radius: 6px; padding: 6px 10px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.cw-seg code { font: 13px/1.45 var(--mono); overflow-wrap: anywhere; }
.cw-seg.code { --c: var(--code); background: #f0f8fd; }
.cw-seg.user { --c: var(--user); background: #fdf2f8; }
.cw-seg.data { --c: var(--data); background: #effaf5; }
.cw-seg.tool { --c: var(--tool); background: #fffaf0; }
.cw-inj { background: #fde8e8; color: var(--no); font-weight: 600 !important; border-radius: 3px; padding: 1px 4px; box-shadow: inset 3px 0 0 var(--no); }

/* The trifecta. */
.tf-c { stroke-width: 2.5; fill-opacity: .16; }
.tf-c.data { fill: var(--data); stroke: var(--data); }
.tf-c.tool { fill: var(--tool); stroke: var(--tool); }
.tf-c.user { fill: var(--user); stroke: var(--user); }
.tf-mid { fill: var(--no); }
.tf-pill { fill: #fff; stroke: var(--no); stroke-width: 1.5; }

/* Leakage. */
.lk-fix { color: var(--ok); }
.cards .card li { margin: 6px 0; }

/* Excessive agency. */
.tbl.ag td:nth-child(3), .tbl.ag td:nth-child(4) { white-space: nowrap; }

/* Approval. */
.ap { display: flex; flex-direction: column; gap: 16px; }
.ap-card { align-self: center; width: min(520px, 100%); background: #fff; border: 1px solid var(--sv-line); border-top: 4px solid var(--tool); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 4px 14px rgba(0, 0, 0, .06); }
.ap-title { font-weight: 700; }
.ap-title code { font: 600 14px var(--mono); color: var(--tool); }
.ap-why { font-size: 13.5px; color: var(--sv-ink2); }
.ap-btns { display: flex; gap: 10px; justify-content: flex-end; }
.ap-btns span { font-size: 14px; font-weight: 700; border-radius: 6px; padding: 5px 14px; }
.ap-ok { background: var(--ok); color: #fff; }
.ap-no { border: 1.5px solid var(--no); color: var(--no); }

/* OWASP. */
.tbl.ow th:first-child { font-family: var(--mono); white-space: nowrap; }
.tbl.ow td, .tbl.ow th { padding: 5px 10px; }

/* Governance. */
.gv { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.gv .cards { grid-template-columns: 1fr; }

@media (max-width: 860px) {
  .as, .gv { grid-template-columns: 1fr; }
  .as > .ar i { transform: rotate(90deg); }
}
