rh-product-chat,
rh-demo-panel {
  --rh-ink: var(--brand-night, #0e0b1f);
  --rh-muted: var(--muted, #5c566f);
  --rh-line: var(--line, #e2dff0);
  --rh-paper: #fff;
  --rh-coral: var(--brand-deep, #2a1f5c);
  --rh-accent: var(--primary, #5b39cc);
  display: block;
  min-width: 0;
  color: var(--rh-ink);
  text-align: left;
  font-size: 15px;
  line-height: 1.45;
}

rh-product-chat *,
rh-demo-panel * { box-sizing: border-box; }
rh-product-chat button,
rh-product-chat input { font: inherit; }
rh-product-chat button { cursor: pointer; }
rh-product-chat :focus-visible {
  outline: 2px solid var(--rh-coral);
  outline-offset: 3px;
}
rh-product-chat {
  width: min(100%, 660px);
  margin-inline: auto;
}

.rh-chat-form {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  padding: 7px;
  border: 1px solid var(--rh-line);
  border-radius: 20px;
  background: var(--rh-paper);
  box-shadow: 0 9px 25px #2a1f5c12, 0 2px 5px #2a1f5c0b;
}

.rh-chat-form:focus-within { border-color: var(--rh-coral); }
.rh-chat-form input {
  flex: 1;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 7px 9px 7px 13px;
  border: 0;
  border-radius: 12px;
  outline: none;
  color: inherit;
  background: transparent;
  font-size: 16px;
}
.rh-chat-form input::placeholder { color: var(--rh-muted); }
.rh-send {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  color: white;
  background: var(--rh-accent);
  border: 0;
  border-radius: 14px;
}
.rh-send:hover { background: var(--rh-coral); }

.rh-chat-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.rh-chat-examples {
  justify-content: center;
  margin-top: 10px;
}
.rh-chat-examples button {
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--rh-line);
  border-radius: 99px;
  background: var(--rh-paper);
  color: var(--rh-ink);
  font-size: 13px;
  line-height: 1.25;
}
.rh-chat-examples button:hover { border-color: var(--rh-coral); color: var(--rh-coral); }
.rh-chat-note {
  margin: 8px 0 0;
  color: var(--rh-muted);
  font-size: 12px;
  text-align: center;
}
.rh-chat-results:not(:empty) {
  margin-top: 14px;
  padding: 17px 19px;
  border: 1px solid var(--rh-line);
  border-radius: 16px;
  background: var(--rh-paper);
  overflow-wrap: anywhere;
}
.rh-chat-results p { margin: 5px 0 0; }
.rh-chat-results a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--rh-coral);
  text-decoration: underline;
  text-underline-offset: .19em;
  font-weight: 650;
}
.rh-chat-results a { margin-bottom: -8px; }

.art-frame,
rh-demo-panel[data-fog] {
  display: grid;
  align-items: center;
  padding: clamp(16px, 3vw, 42px);
  overflow: hidden;
  border-radius: 20px;
  background-color: var(--fog-wash, var(--art-stage, #f0efed));
}
.art-frame img,
.rh-flow-image {
  display: block;
  width: 100%;
  height: auto;
}
.art-frame img,
rh-demo-panel[data-fog] .rh-flow-image {
  filter: drop-shadow(var(--art-shadow, 0 8px 12px #1e183610));
}
@media (max-width: 660px) {
  .art-frame, rh-demo-panel[data-fog] { border-radius: 15px; }
}
@media (prefers-reduced-motion: no-preference) {
  .rh-send,
  .rh-chat-examples button { transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
}

.rh-halo-chat {
  --card: var(--rh-paper);
  --muted: var(--rh-muted);
}

.rh-halo-chat .rh-chat-form[hidden] { display: none; }

.rh-halo-chat .rh-halo-surface {
  min-height: 62px;
  padding: 6px 7px 6px 16px;
  border: 1px solid #e2dff080;
  box-shadow: 0 8px 24px #2a1f5c12, 0 2px 5px #2a1f5c0b;
}

.rh-halo-chat .rh-halo-surface:focus-within {
  border-color: var(--rh-coral);
}

.rh-halo-chat .rh-halo-input input {
  display: block;
  min-height: 44px;
  padding: 0;
  border: 0;
  outline-offset: 0;
  font-size: 16px;
}

.rh-halo-chat .rh-halo-input input:focus-visible { outline: none; }
.rh-halo-placeholder {
  right: 0;
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, #000 calc(100% - 10px), transparent);
}

.rh-halo-avatar {
  background: linear-gradient(145deg, var(--brand-mint, #3df5b0), var(--brand-violet, #7c5cff));
}
.rh-halo-avatar canvas { display: block; }

.rh-guide-avatar {
  display: block;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  object-fit: contain;
  transform-origin: 50% 75%;
}

@media (prefers-reduced-motion: no-preference) {
  .rh-guide-avatar { animation: rh-guide-breathe 4.4s ease-in-out infinite; }

  @keyframes rh-guide-breathe {
    0%, 100% { transform: none; }
    50% { transform: translateY(-8%) rotate(5deg) scale(.96, 1.05); }
  }
}

.rh-halo-surface .rh-send { border-radius: 50%; }

.rh-halo-chat .rh-halo-trailing {
  width: 44px;
  height: 44px;
}
.rh-halo-chat .rh-halo-clear {
  border: 0;
  color: var(--rh-muted);
  background: transparent;
  box-shadow: none;
  transition-property: background-color, color;
}
.rh-halo-chat .rh-halo-clear:hover { background: #e2dff080; }

@media (max-width: 480px) {
  .rh-halo-chat .rh-halo-surface {
    gap: 8px;
    padding-inline-start: 10px;
  }
  .rh-halo-chat .rh-halo-avatar { width: 27px; height: 27px; }
  .rh-guide-avatar { width: 27px; height: 27px; }
  .rh-halo-chat .rh-halo-placeholder {
    display: block;
    inset-block: auto;
    top: 50%;
    transform: translateY(-50%);
    mask-image: none;
    white-space: normal;
    font-size: 14px;
    line-height: 1.25;
  }
  .rh-halo-chat .rh-halo-placeholder > span {
    display: inline;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rh-halo-chat .rh-halo-surface,
  .rh-halo-chat .rh-halo-clear { transition: none; }
}
