.overview-shell {
  max-width: 1180px;
}

.overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.overview-stage {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 28px;
  align-items: center;
  min-height: 430px;
  padding: 28px;
}

.stage-kicker {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.stage-copy h2 {
  margin-bottom: 14px;
  font-size: 34px;
  line-height: 1.1;
}

.stage-copy p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.stage-visual {
  display: grid;
  grid-template-columns: 120px 1fr 150px 1fr 180px;
  align-items: center;
  min-height: 260px;
}

.agent-node,
.firewall-node {
  display: grid;
  place-items: center;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(23, 34, 48, 0.08);
  color: #344054;
  font-weight: 850;
  text-align: center;
}

.firewall-node {
  background: var(--teal-soft);
  color: var(--teal);
}

.firewall-node span {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 700;
}

.flow-line {
  height: 3px;
  background: linear-gradient(90deg, #cbd5df, var(--teal));
}

.states-grid {
  display: grid;
  gap: 8px;
}

.overview-progress {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
}

.overview-progress span {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #d9e2ec;
}

.overview-progress span.active {
  background: var(--teal);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.overview-card {
  padding: 20px;
}

.overview-card ul,
.overview-card p {
  margin-bottom: 0;
  color: #344054;
  font-size: 14px;
  line-height: 1.55;
}

.overview-card li + li {
  margin-top: 6px;
}

.transcript-panel {
  margin-top: 18px;
  padding: 20px;
}

#overview-script {
  overflow-x: auto;
  white-space: pre-wrap;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 16px;
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .overview-stage,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .stage-visual {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .flow-line {
    width: 3px;
    height: 28px;
    justify-self: center;
  }

  .overview-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .overview-stage {
    padding: 18px;
  }

  .stage-copy h2 {
    font-size: 26px;
  }
}

