/* Isolated preview: a short conversation, not a framed process chart. */
.scenario-window.scenario-stage {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.scenario-stage .stage-panel {
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
  min-height: 0;
  padding: 42px 36px 30px;
  scroll-margin-top: 190px;
}
.scenario-stage .stage-copy { min-width: 0; padding-bottom: 20px; }
.scenario-stage .stage-copy .eyebrow { font-size: 10px; margin-bottom: 26px; }
.scenario-stage .stage-copy h3 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -.04em;
  margin: 0;
}
.scenario-stage .stage-intro {
  max-width: 22em;
  margin: 23px 0 27px;
  color: #656978;
  font-size: 15px;
  line-height: 1.9;
}
.scenario-stage .stage-copy > a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  min-height: 44px;
  color: #3448ec;
  font-size: 14px;
}
.scenario-stage .stage-copy > a span { font-size: 19px; }
.scenario-stage .scene-canvas {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 0;
  padding: 18px 0 15px;
}
.scenario-stage .scene-canvas::before {
  content: "";
  position: absolute;
  inset: 4% -6%;
  z-index: -1;
  background: radial-gradient(ellipse, #e5ddfb9c, #ebe8ff50 44%, transparent 72%);
  pointer-events: none;
}
.scenario-stage .scene-trail {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  inset: 0;
  color: #b2a2e6;
  pointer-events: none;
}
.scenario-stage .scene-message { width: 79%; max-width: 390px; align-self: flex-start; }
.scenario-stage .message-bubble {
  padding: 20px 24px;
  border: 1px solid #ffffff;
  border-radius: 22px 22px 22px 7px;
  background: #ffffffcf;
  box-shadow: 0 12px 36px #6456a60a;
  transform: rotate(-3deg);
}
.scenario-stage .scene-label { color: #656978; font-size: 11px; }
.scenario-stage .message-bubble p { margin: 8px 0 0; font-size: 15px; line-height: 1.8; color: #383a50; }
.scenario-stage .scene-agent { align-self: flex-end; margin-right: 9%; }
.scenario-stage .agent-pill {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 10px;
  color: #fff;
  background: linear-gradient(115deg, #514de2, #8651c5);
  border: 1px solid #ffffffb3;
  border-radius: 999px;
  box-shadow: 0 9px 25px #6c50c52b;
  font-size: 13px;
}
.scenario-stage .agent-spark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff1f;
  font-size: 27px;
}
.scenario-stage .agent-dots { letter-spacing: 2px; font-size: 20px; }
.scenario-stage .scene-result { align-self: flex-end; width: 92%; max-width: 440px; }
.scenario-stage .result-sheet {
  background: linear-gradient(135deg, #ffffffed, #faf8ffdf);
  border: 1px solid #fff;
  border-radius: 23px;
  padding: 24px 26px 19px;
  box-shadow: 0 14px 45px #65539e0d, inset 0 0 0 1px #e7e3f547;
  transform: rotate(1.5deg);
}
.scenario-stage .result-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.scenario-stage .result-heading h4 { margin: 0; font-size: 17px; font-weight: 600; }
.scenario-stage .result-heading > span { flex-shrink: 0; font-size: 10px; color: #6f6593; padding: 4px 9px; background: #eeebf8; border-radius: 999px; }
.scenario-stage .result-sheet ul { list-style: none; margin: 19px 0 20px; padding: 0; display: grid; gap: 10px; }
.scenario-stage .result-sheet li { position: relative; padding-left: 15px; color: #595c70; font-size: 14px; line-height: 1.75; }
.scenario-stage .result-sheet li::before { content: ""; position: absolute; top: .73em; left: 0; width: 4px; height: 4px; border-radius: 50%; background: #a39ac9; }
.scenario-stage .result-review { display: flex; align-items: baseline; gap: 8px; border-top: 1px solid #eae6f3; margin: 0; padding-top: 13px; color: #736d86; font-size: 11px; line-height: 1.8; }
.scenario-stage .result-review > span { color: #7d66ba; }
.scenario-stage .stage-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 23px 36px 0; }
.scenario-stage .stage-demo-label { color: #656978; font-size: 11px; }
.scenario-stage #scenario-status { font-size: 10px; color: #656978; margin: 5px 0 0; line-height: 1.6; }
.scenario-stage #workflow-replay { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 44px; padding: 9px 17px; border: 1px solid #dcd5ef; border-radius: 999px; background: #ffffffa6; color: #6b5da2; font-size: 12px; }
.scenario-stage a:focus-visible, .scenario-stage button:focus-visible { outline: 2px solid #7854cf; outline-offset: 5px; }
@supports ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .scenario-stage .message-bubble, .scenario-stage .result-sheet, .scenario-stage #workflow-replay { -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
@media (hover: hover) and (pointer: fine) {
  .scenario-stage #workflow-replay:hover { background: #eee8fb; }
  .scenario-stage .stage-copy > a:hover { text-decoration: underline; text-underline-offset: 6px; }
}
@media (max-width: 800px) {
  .scenario-stage .stage-panel { grid-template-columns: 1fr; padding: 30px 18px 20px; gap: 18px; }
  .scenario-stage .stage-copy { padding-bottom: 0; }
  .scenario-stage .stage-copy .eyebrow { margin-bottom: 16px; }
  .scenario-stage .stage-intro { margin: 17px 0 13px; max-width: 30em; }
  .scenario-stage .scene-canvas { width: min(100%, 500px); justify-self: center; }
  .scenario-stage .stage-footer { padding: 16px 18px 0; }
}
@media (max-width: 480px) {
  .scenario-stage .stage-panel { padding: 20px 4px; gap: 13px; scroll-margin-top: 220px; }
  .scenario-stage .stage-copy h3 { font-size: 29px; }
  .scenario-stage .stage-intro { font-size: 14px; }
  .scenario-stage .scene-canvas { gap: 22px; padding: 14px 3px; }
  .scenario-stage .scene-message { width: 88%; }
  .scenario-stage .message-bubble { padding: 16px 18px; }
  .scenario-stage .message-bubble p { font-size: 14px; }
  .scenario-stage .scene-result { width: 96%; }
  .scenario-stage .result-sheet { padding: 20px 18px 16px; }
  .scenario-stage .result-heading h4 { font-size: 16px; }
  .scenario-stage .result-sheet li { font-size: 13px; }
  .scenario-stage .stage-footer { padding: 14px 4px 0; gap: 10px; align-items: flex-start; }
  .scenario-stage #workflow-replay { padding-inline: 13px; }
}
