/* Local playback, presented separately so the V2 screenshots and proportions remain intact. */
.demo-dialog {
  width: min(760px, calc(100% - 40px));
  max-height: calc(100dvh - 40px);
  padding: 40px;
  background: #fff;
}
.demo-heading {
  padding-right: 40px;
}
.demo-heading .eyebrow {
  font-size: 14px;
  margin-bottom: 12px;
}
.demo-heading h2 {
  font-size: 32px;
  line-height: 1.25;
  margin-bottom: 16px;
}
.demo-heading > p:last-child,
.demo-note {
  font-size: 16px;
  line-height: 1.5;
}
.demo-scene {
  position: relative;
  margin-top: 24px;
  min-height: 310px;
  border: 1px solid #dce1e9;
  border-radius: 8px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  background: #fff;
  color: #333;
}
/* Source geometry/colors are from the sanitized assistant's captured CSS. */
.demo-scene .ai_assistant-conversation {
  padding: 20px;
  min-height: 220px;
}
.demo-scene .ai_assistant-message-wrapper {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
  max-width: 100%;
}
.demo-scene .ai_assistant-message-wrapper.is-user {
  align-items: flex-end;
}
.demo-scene .ai_assistant-message {
  font:
    17px/1.5 Arial,
    sans-serif;
}
.demo-scene .ai_assistant-message.is-user {
  background: #f4f4f4;
  border-radius: 18px;
  padding: 10px 16px;
  max-width: 90%;
}
.demo-scene .ai_assistant-message.is-assistant {
  background: transparent;
  padding: 0 16px;
}
.demo-scene .assistant-content p {
  font: inherit;
  line-height: 1.5;
  margin: 0 0 8px;
}
.demo-scene .assistant-content strong {
  font-weight: 700;
  color: #1a1a1a;
}
.demo-input {
  padding: 0 20px 20px;
}
.demo-scene .ai_assistant-chat-input {
  align-items: flex-end;
  display: flex;
  gap: 8px;
  border: 1px solid #ddd;
  border-radius: 0;
  padding: 8px 8px 8px 16px;
  background: #fff;
  position: relative;
}
.demo-scene textarea {
  resize: none;
  flex: 1;
  min-width: 0;
  min-height: 60px;
  border: 0;
  outline: 0;
  background: transparent;
  font:
    17px/1.5 Arial,
    sans-serif;
  color: #333;
  padding: 7px 0;
  order: 2;
  pointer-events: none;
}
.demo-scene .ai_assistant-chat-input-buttons {
  display: contents;
}
.demo-scene .ai_assistant-chat-input-send {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  order: 3;
  border: 0;
  border-radius: 2px;
  background: #fc501e;
  color: #fff;
  padding: 0;
  opacity: 1;
}
.demo-scene .ai_assistant-chat-input-send.is-clicked {
  box-shadow: 0 0 0 6px #0070d926;
}
.demo-scene [data-stage-hidden] {
  visibility: hidden;
}
.demo-cursor {
  position: absolute;
  right: 40px;
  bottom: 32px;
  font:
    30px/1 Arial,
    sans-serif;
  color: #252525;
  text-shadow: 1px 1px white;
  opacity: 0;
  pointer-events: none;
}
.demo-scene[data-phase="click"] .demo-cursor {
  opacity: 1;
}
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.demo-toolbar .text-link {
  font-size: 16px;
  min-height: 44px;
  padding: 12px 16px;
  background: white;
}
.demo-state {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.demo-note {
  margin-top: 20px;
  color: var(--muted);
}
@media (max-width: 650px) {
  .demo-dialog {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    padding: 56px 20px 24px;
  }
  .demo-heading {
    padding-right: 0;
  }
  .demo-heading h2 {
    font-size: 24px;
  }
  .demo-scene {
    min-height: 425px;
  }
  .demo-scene .ai_assistant-conversation {
    padding: 16px;
    min-height: 325px;
  }
  .demo-input {
    padding: 0 16px 16px;
  }
  .demo-scene .ai_assistant-message {
    font-size: 16px;
  }
  .demo-scene textarea {
    font-size: 16px;
    min-height: 74px;
  }
  .demo-toolbar {
    gap: 8px;
  }
  .demo-toolbar .text-link {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    white-space: nowrap;
  }
  .demo-state {
    flex-basis: 100%;
  }
}
