.process-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1.7rem;
  margin: .8rem 0;
  padding: 0;
  list-style: none;
}
.process-steps li { position: relative; padding: .4rem .55rem; background: #fffaf0; border-bottom: 2px solid #bba77e; text-align: center; }
.process-steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(100% + .12rem); top: calc(50% - .5rem); width: 1.46rem; height: 1rem; background: #00534d; clip-path: var(--diagram-step-arrow); }
.process-steps h4, .process-steps p { margin: .2rem 0; }
.process-steps img { width: 4.4rem; height: auto; }
.process-steps .process-highlight { background: #e3f0e0; border-bottom-color: #467e63; }
.process-lane-title { padding: .3rem .55rem; margin: .45rem 0; background: #f8e9ad; border-left: 3px solid #8b6b29; }
.process-down { display: flex; justify-content: center; align-items: center; gap: .55rem; margin-block: .65rem; font-weight: 700; color: #155651; }
.process-down i { width: 1.4rem; height: 1rem; background: currentColor; clip-path: var(--diagram-step-arrow); rotate: 90deg; }
.process-pair > :first-child, .process-pair > :last-child { position: relative; }
.process-pair > :first-child::after, .process-pair > :last-child::before { position: absolute; content: ""; top: 46%; width: 1.45rem; height: 1rem; background: #00534d; clip-path: var(--diagram-step-arrow); }
.process-pair > :first-child::after { right: -.82rem; }
.process-pair > :last-child::before { left: -.82rem; transform: scaleX(-1); }
.scrum-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5.8rem, auto) minmax(0, 1fr);
  align-items: stretch;
  gap: .75rem;
  margin: .85rem 0;
}
.scrum-board section { padding: .75rem .85rem; background: #fffaf0; border-top: 3px solid #155651; }
.scrum-board img, .scrum-support img { width: 3.6rem; height: auto; vertical-align: middle; }
.scrum-board h4 { display: inline; margin: 0; }
.scrum-board section > p { margin: .25rem 0 .5rem; }
.scrum-selection { align-self: end; margin-bottom: 6.5rem; text-align: center; font-weight: 700; white-space: nowrap; }
.scrum-selection .flow-arrow { display: block; width: 3.5rem; margin: .25rem auto; }
.scrum-notes { padding: .55rem .7rem; background: #f8efd8; border: 2px solid #302820; border-radius: .45rem; }
.scrum-notes h5 { margin: 0 0 .3rem; font-size: 1em; }
.scrum-notes ol { margin: 0; padding-left: 1.5rem; }
.scrum-notes p { margin: 0; }
.scrum-picked { background: #ffed88; font-weight: 700; }
.scrum-support { display: flex; align-items: center; gap: .65rem; padding: .5rem .75rem; background: #e4f1e7; }
.scrum-support h4 { flex-shrink: 0; }
.scrum-support p { margin: 0; }
.process-repeat {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: .55rem;
  align-items: center;
  margin: .6rem .75rem;
  color: #155651;
  text-align: center;
}
.process-repeat i, .process-repeat::after { height: .75rem; border-bottom: 3px solid #155651; }
.process-repeat i { position: relative; border-left: 3px solid #155651; border-radius: 0 0 0 .65rem; }
.process-repeat i::before { position: absolute; content: ""; left: -.41rem; top: -.12rem; width: .55rem; height: .55rem; border: solid #155651; border-width: 3px 0 0 3px; transform: rotate(45deg); }
.process-repeat::after { content: ""; border-right: 3px solid #155651; border-radius: 0 0 .65rem; }
.process-tree { text-align: center; margin-block: .7rem; }
.process-root { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border: 2px solid #312a22; border-radius: .55rem; background: #ffec91; }
.process-root img, .process-tree li img { width: 3.5rem; height: auto; }
.process-tree ul { --tree-span: 34%; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; list-style: none; padding: 1.6rem 0 0; margin: 0; }
.process-tree ul::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; height: .72rem; width: 3px; background: #155651; }
.process-tree ul::after { content: ""; position: absolute; left: calc(50% - var(--tree-span)); right: calc(50% - var(--tree-span)); top: .62rem; height: .93rem; border: 3px solid #155651; border-bottom: 0; border-radius: .55rem .55rem 0 0; }
.process-tree li { display: grid; justify-items: center; gap: .12rem; padding: .35rem; background: #fffaf0; border-top: 2px solid #155651; }
.process-tree li:nth-child(2)::before { position: absolute; content: ""; left: calc(50% - 1px); top: .7rem; height: .9rem; width: 3px; background: #155651; }
.process-inheritance ul { --tree-span: 25.2%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.process-inheritance li:nth-child(2)::before { content: none; }
.modeling-viewpoints { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; margin:1rem 0; }
.modeling-viewpoints section { padding:.6rem .7rem; border-top:3px solid var(--teal); background:var(--paper); }
.modeling-viewpoints h4 { margin:0 0 .5rem; }
.modeling-viewpoints p { margin:.4rem 0 0; }
.modeling-order,.modeling-relation,.modeling-unit { min-height:4.6rem; display:flex; align-items:center; justify-content:center; gap:.3rem; text-align:center; }
.modeling-order b,.modeling-relation b { padding:.2rem .35rem; border:2px solid var(--ink); background:var(--lemon); }
.modeling-order .flow-arrow { width:1.45rem; flex-shrink:0; }
.modeling-relation span { white-space:nowrap; padding-inline:.25rem; border-bottom:2px solid var(--ink); font-size:.82rem; }
.modeling-unit { display:grid; gap:0; border:2px solid var(--ink); border-radius:.45rem; background:var(--mint); padding:.2rem .4rem; }
.modeling-unit b { border-bottom:1px solid var(--ink); }
@media (max-width:760px) { .modeling-viewpoints { grid-template-columns:1fr; } }
.modeling-call { display: grid; grid-template-columns: 1fr minmax(10rem, 1fr) 1.3fr; align-items: center; gap: .65rem; margin: 1rem 0; text-align: center; }
.modeling-call > div { display: grid; justify-items: center; gap: .25rem; }
.modeling-call img { width: 4.2rem; height: 3.35rem; object-fit: contain; }
.modeling-call > div:last-child { border: 2px solid #467e63; border-radius: .6rem; padding: .6rem; background: #e4f1e3; }
.modeling-messages i[data-diagram-arrow] { display: block; width: 92%; color: #165953; line-height: 0; }
.modeling-messages i[data-diagram-arrow]::before {
  width: 100%;
  height: .84rem;
  clip-path: polygon(0 38%, calc(100% - 13px) 38%, calc(100% - 13px) 6%, calc(100% - 10px) 6%, 100% 50%, calc(100% - 10px) 94%, calc(100% - 13px) 94%, calc(100% - 13px) 62%, 0 62%);
}
.modeling-messages i + span { margin-top: .4rem; }
@media (max-width: 600px) { .modeling-call { grid-template-columns: 1fr; } .modeling-messages { width: min(85%, 16rem); margin-inline: auto; } .modeling-messages i[data-diagram-arrow] { width: 1.5rem; transform: rotate(90deg); margin-block: .5rem; } }
.modeling-objects { display: grid; grid-template-columns: minmax(0, 1fr) minmax(8.5rem, .65fr) minmax(0, 1fr) minmax(0, .9fr); align-items: center; gap: .55rem; margin: .75rem 0; }
.modeling-objects section { background: #fffaf0; border: 2px solid #9f8f6e; border-radius: .5rem; padding: .55rem; }
.modeling-objects section h4 { margin: 0; }
.modeling-objects section p { margin: .35rem 0 0; }
.modeling-objects dl { margin: .25rem 0 0; }
.modeling-objects dl > div { display: grid; grid-template-columns: auto 1fr; gap: .55rem; padding: .25rem 0; border-top: 1px solid #bda781; }
.modeling-objects dt { font-weight: 750; }
.modeling-objects dd { margin: 0; }
.modeling-objects .modeling-changed { border-color: #467e63; background: #e3f0e0; }
.modeling-objects .modeling-separate { margin-left: .3rem; border-style: dashed; }
.modeling-usecase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: .8rem; margin: .75rem 0; }
.modeling-usecase section { padding: .55rem; border-top: 2px solid #155651; background: #fffaf0; }
.modeling-usecase h4 { margin: 0 0 .45rem; }
.modeling-scenario { margin: 0; padding-left: 1.35rem; }
.modeling-scenario li { margin-bottom: .25rem; }
.modeling-exception { margin: .4rem 0 0; padding: .3rem .5rem; border-left: 3px solid #8f304d; background: #f7e5e4; }
.mlops-gates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; margin-block: .55rem; }
.mlops-gates p { margin: 0; padding: .4rem .55rem; font-weight: 400; }
@media (max-width: 720px) {
  .modeling-objects, .modeling-usecase, .mlops-gates { grid-template-columns: minmax(0, 1fr); }
  .modeling-objects .modeling-separate { margin-left: 0; }
  .process-pair > :first-child::after, .process-pair > :last-child::before { content: none; }
  .process-steps { grid-auto-flow: row; }
  .process-steps li:not(:last-child)::after { top: calc(100% + .35rem); left: calc(50% - .73rem); rotate: 90deg; }
  .scrum-board { grid-template-columns: minmax(0, 1fr); }
  .scrum-selection { margin-bottom: 0; }
  .scrum-selection .flow-arrow { transform: rotate(90deg); }
  .scrum-support { flex-wrap: wrap; }
  .process-repeat { grid-template-columns: .6rem 1fr .6rem; }
}
