.ml-flow {
  grid-column: 1 / -1;
  min-width: 0;
  font: 400 17px/1.5 var(--font);
  color: var(--fg-1, #1F2A44);
  overflow-wrap: anywhere;
}
.ml-flow h2 { font-size: 1.4em; margin: 0; }
.ml-flow > p { margin: .35em 0 .85em; }
.ml-flow-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.8em minmax(0, 1.35fr) 3.8em minmax(0, .95fr) 3.8em minmax(0, 1.25fr);
  align-items: stretch;
}
.ml-flow-card {
  min-width: 0;
  background: var(--bg-panel, #F3F2EE);
  border: 1px solid var(--hairline, #D2D6E0);
  border-radius: 16px;
  padding: .75em;
  animation: ml-flow-arrive 220ms ease-out;
}
.ml-flow-card h3 { color: var(--action, #1739A8); font-size: 1.1em; margin: 0 0 .55em; }
.ml-flow-card p { margin: .6em 0; }
.ml-flow-card dl { display: grid; gap: .48em; margin: 0; }
.ml-flow-card dl > div { display: flex; justify-content: space-between; gap: .3em .65em; flex-wrap: wrap; }
.ml-flow-card dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.ml-flow-source[title] { text-decoration: underline dotted; text-underline-offset: .17em; cursor: help; }
.ml-flow-arrow { align-self: center; text-align: center; min-width: 0; color: var(--action, #1739A8); }
.ml-flow-arrow > span:first-child::before { content: '→'; display: block; font-size: 1.5em; }
.ml-flow-arrow .ml-flow-source { display: block; }
.ml-flow-wait { color: var(--fg-2, #33415C); }
.ml-flow-details { margin-block: .45em .8em; }
.ml-flow-details summary, .ml-flow-link { display: list-item; cursor: pointer; min-height: 48px; align-content: center; }
.ml-flow-link { display: inline-grid; color: var(--action, #1739A8); }
.ml-flow-details pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: inherit; }
@keyframes ml-flow-arrive { from { transform: translateY(3px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .ml-flow-card { animation: none; }
}
@media (min-width: 1400px) {
  .lr .ml-flow { font-size: clamp(20px, 1.23vw, 25px); }
}
@media (max-width: 900px) {
  .ml-flow-track { grid-template-columns: minmax(0, 1fr); }
  .ml-flow-arrow { display: flex; align-items: center; justify-content: center; gap: .5em; min-height: 40px; }
  .ml-flow-arrow > span:first-child::before { content: '↓'; }
}

.ml-flow-back { min-height: 48px; flex-shrink: 0; }
.ml-flow-primary {
  display: inline-grid;
  align-items: center;
  min-height: 48px;
  padding-inline: 1em;
  border-radius: 12px;
  background: var(--action, #1739A8);
  color: #FFFFFF;
  font-weight: 600;
  text-decoration: none;
}
