.hero {
  background: radial-gradient(ellipse at 74% 54%, color-mix(in srgb, var(--card-bg) 48%, transparent), transparent 65%), var(--space);
}
.hero::before { mask-image: radial-gradient(ellipse at 74% 52%, var(--space), transparent 68%); }
.architecture {
  --silver: color-mix(in srgb, var(--ink) 73%, var(--soft));
  --wire: color-mix(in srgb, var(--ink) 15%, transparent);
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: linear-gradient(144deg, var(--master-container-bg), var(--surface) 55%, var(--space));
  box-shadow: 0 1rem 4rem color-mix(in srgb, var(--chat-black) 28%, transparent);
}
.run-heading,
.run-footer { padding-inline: clamp(0.8rem, 2vw, 1.55rem); }
.run-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-block: 1rem 0.75rem;
}
.run-heading h2 {
  font: 500 clamp(1.12rem, 1.5vw, 1.45rem)/1.25 Basier, sans-serif;
  letter-spacing: -0.025em;
}
.run-replay:not([hidden]) {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--soft);
}
.run-replay:hover { color: var(--ink); border-color: var(--soft); }
.run-graph {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9%;
  block-size: 11.5rem;
  margin-inline: clamp(0.7rem, 2vw, 1.55rem);
  border-radius: 0.45rem;
  background: radial-gradient(circle, var(--wire) 0.65px, transparent 1px) center / 0.75rem 0.75rem;
}
.run-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.run-wires path {
  fill: none;
  stroke: var(--wire);
  stroke-width: 1.2;
  vector-effect: non-scaling-stroke;
  transition: stroke 0.3s ease;
}
.run-wires path[data-past] { stroke: color-mix(in srgb, var(--ink) 31%, transparent); }
.run-wires path[data-current] {
  stroke: var(--silver);
  animation: run-transfer 0.78s ease-out both;
}
.run-wires path[data-route="agent"] { stroke-dasharray: 3 2; }
[data-inspecting] .run-wires path { animation: none; stroke: var(--wire); }
[data-inspecting] .run-wires path[data-inspected] { stroke: var(--silver); }
@keyframes run-transfer { from { stroke-dasharray: 100; stroke-dashoffset: 100; } to { stroke-dasharray: 100; stroke-dashoffset: 0; } }
.run-column {
  position: relative;
  display: grid;
  grid-auto-rows: 1fr;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.run-node {
  width: 100%;
  min-height: 2.1rem;
  text-align: start;
  display: flex;
  align-items: center;
  gap: clamp(0.32rem, 0.8vw, 0.6rem);
  padding: 0.28rem clamp(0.33rem, 0.9vw, 0.62rem);
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--surface);
  color: var(--ice);
  font-size: clamp(0.68rem, 1vw, 0.85rem);
  line-height: 1.17;
  transition: border-color 0.25s, background-color 0.25s, color 0.25s;
}
.run-node > i { flex: none; color: var(--soft); }
.run-node[data-past] { border-color: color-mix(in srgb, var(--soft) 37%, var(--line)); }
.run-node:is([data-current], [aria-pressed="true"], :hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--silver) 66%, var(--line));
  background: color-mix(in srgb, var(--silver) 10%, var(--surface));
  color: var(--ink);
}
.run-node:is([data-current], [aria-pressed="true"], :hover, :focus-visible) > i { color: var(--silver); }
.run-compute { grid-template-rows: 3fr 1fr; }
.run-job {
  display: grid;
  justify-items: center;
  gap: 0.38rem;
  padding-block: 0.7rem;
  text-align: center;
  background-image: linear-gradient(150deg, color-mix(in srgb, var(--ink) 7%, transparent), transparent 60%);
}
.run-job > i { font-size: 1.05rem; }
[data-inspecting] .run-node[data-current][aria-pressed="false"]:not(:hover, :focus-visible) {
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--ice);
}
.run-workers { display: grid; gap: 3px; width: 72%; margin-top: 0.16rem; }
.run-workers i { display: block; position: relative; height: 2px; background: var(--line); }
.run-workers i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--silver);
  transform: scaleX(0);
  transform-origin: left;
}
.run-node[data-current] .run-workers i::after { animation: run-job-fill 1.15s ease-out both; }
.run-node[data-current] .run-workers i:nth-child(2)::after { animation-delay: 0.1s; }
.run-node[data-current] .run-workers i:nth-child(3)::after { animation-delay: 0.22s; }
:is([data-past], .architecture:not([data-run-enhanced]) .run-node) .run-workers i::after { transform: scaleX(1); }
@keyframes run-job-fill { to { transform: scaleX(1); } }
.run-footer { padding-block: 0.45rem 0.75rem; }
.run-results {
  position: relative;
  display: grid;
  align-items: center;
  block-size: 5.9rem;
  overflow: auto;
  scrollbar-width: thin;
}
.run-overview:not([hidden]) { display: grid; align-items: center; }
.run-overview p {
  grid-area: 1 / 1;
  color: var(--ice);
  font-size: 0.83rem;
  line-height: 1.32;
  transition: opacity 0.26s, transform 0.26s;
}
.run-step:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 0.34rem 0.75rem;
  align-items: start;
  animation: run-detail-in 0.22s ease both;
}
.run-step p {
  grid-column: 1;
  color: var(--ice);
  font-size: 0.81rem;
  line-height: 1.35;
}
.run-step strong { margin-inline-end: 0.3em; color: var(--ink); }
.run-step code { overflow-wrap: anywhere; }
.run-step a {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  padding: 0.33rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 0.3rem;
  color: var(--ink);
  font-size: 0.74rem;
}
.run-step a:hover { border-color: var(--soft); }
.run-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes run-detail-in { from { opacity: 0; transform: translateY(0.17rem); } }
.architecture:not([data-run-enhanced]) [data-run-reveal]:not(:last-child),
[data-run-enhanced] [data-run-reveal]:not([data-current]) {
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.22rem);
}
.run-meter { display: flex; gap: 4px; }
.run-meter i { position: relative; height: 2px; flex: 1; background: var(--line); }
.run-meter i[data-past] { background: var(--soft); }
.run-meter i[data-current] { animation: run-meter-fill 1.55s linear both; transform-origin: left; }
.run-meter i:last-child[data-current] { animation-duration: 4s; }
@keyframes run-meter-fill { from { transform: scaleX(0.04); background: var(--silver); } to { transform: scaleX(1); background: var(--silver); } }
.architecture[data-inspecting] .run-meter i[data-current] { animation: none; background: var(--silver); }
.architecture.offscreen *,
.architecture.offscreen *::after {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .run-meter { display: none; }
  .run-wires path[data-current],
  .run-step:not([hidden]) { animation: none; }
}
@media (min-width: 761px) {
  .hero-grid { align-items: start; grid-template-columns: minmax(0, 0.87fr) minmax(0, 1.13fr); }
  .hero-copy h1 { font-size: clamp(2.55rem, 4.28vw, 4.8rem); }
  .architecture { margin-top: clamp(2.6rem, 4vw, 4.25rem); }
}
@media (max-width: 760px) {
  .hero-grid { padding-block: 1.2rem 3.7rem; gap: 0.85rem; }
  .hero-copy h1 { margin: 0.7rem 0; }
  .hero-copy .intro { font-size: 1rem; line-height: 1.45; }
  .hero-copy .actions { margin-top: 0.7rem; gap: 0.4rem; }
  .hero-copy .actions .button { min-height: 2.75rem; padding: 0.45rem 0.66rem; font-size: 0.83rem; }
  .hero-copy .actions .fa-regular { display: none; }
  .run-heading { padding-block: 0.7rem 0.4rem; }
  .run-graph { block-size: 10.3rem; }
}
@media (max-width: 365px) {
  .hero-copy .actions .button { padding-inline: 0.48rem; font-size: 0.78rem; }
  .run-node { font-size: 0.64rem; }
}

@media (max-width: 560px), (min-width: 761px) and (max-width: 1020px) {
  .run-results { block-size: 7.15rem; }
  .run-step:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  .run-step a { grid-column: 1; grid-row: auto; justify-self: start; }
}

.workflow-case .call-console { width: 100%; }
