:root {
  --he-ink: #25372f;
  --he-muted: #78857d;
  --he-line: #e5eae6;
  --he-green: #247957;
  --he-soft: #edf5ef;
}
.he-share-button {
  white-space: nowrap;
  flex-shrink: 0;
}
.chat-head-actions {
  flex-shrink: 0;
}
.he-report-card {
  width: min(510px, 100%);
  overflow: hidden;
  border: 1px solid #d8e5dc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 22px #254a3210;
}
.he-report-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 18px 20px 14px;
  background: #f4f8f3;
}
.he-report-card header > div {
  display: grid;
  gap: 4px;
  flex: 1;
}
.he-report-card header strong {
  color: #284d38;
  font-size: 14px;
}
.he-report-card header small {
  color: #7b887e;
  font-size: 11px;
}
.he-report-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #e1ede2;
  color: #417456;
}
.he-status {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 20px;
  color: #617466;
  background: #e9f0e9;
  white-space: nowrap;
}
.he-status.pending {
  background: #fff1d4;
  color: #986819;
}
.he-report-text {
  padding: 18px 20px 8px;
  line-height: 1.85;
  color: #33483b;
  font-size: 13px;
  word-break: break-word;
}
.he-report-text p {
  margin: 0 0 9px;
}
.he-report-card footer {
  padding: 12px 20px 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.he-report-card footer .button {
  font-size: 12px;
}
.he-public-reply {
  margin: 5px 20px;
  padding: 10px 12px;
  background: #f4f7f3;
  border-radius: 9px;
  font-size: 12px;
  line-height: 1.8;
}
.he-public-reply span {
  font-size: 10px;
  display: block;
  color: #7b8b7e;
}
.he-public-reply p {
  margin: 4px 0;
}
.he-execution-status {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  margin: 12px 20px 0;
  color: #52785b;
}
.he-share-hero {
  text-align: center;
}
.he-eyebrow {
  color: var(--he-muted);
  font-size: 12px;
}
.he-share-hero h3 {
  font-size: 22px;
  margin: 8px 0 16px;
  color: var(--he-ink);
}
.he-share-hero p {
  font-size: 13px;
  margin: 12px 0 6px;
}
.he-share-hero small {
  color: var(--he-muted);
  font-size: 11px;
}
.he-share-qr {
  margin: 0 auto;
  width: 190px;
  height: 190px;
  border: 1px solid var(--he-line);
  border-radius: 16px;
  background: #fff;
  padding: 7px;
}
.he-share-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}
.he-share-hero + .field {
  margin-top: 22px;
}
.he-demo-note {
  color: #8b7250;
  background: #fcf6e9;
  border: 1px solid #f2e7cc;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.7;
  border-radius: 9px;
}
.he-advanced {
  margin-top: 16px;
  border-top: 1px solid var(--he-line);
  padding-top: 14px;
}
.he-advanced summary {
  cursor: pointer;
  font-size: 12px;
  color: #54735f;
}
.he-advanced summary span {
  color: #8e9b91;
  font-size: 11px;
  margin-left: 6px;
}
.he-advanced form,
.he-advanced > .field {
  margin-top: 16px;
}
.he-scope {
  padding: 8px 0 14px;
}
.he-scope summary {
  font-size: 12px;
  cursor: pointer;
}
.he-scope .check-line {
  padding: 6px 0;
  font-size: 12px;
}
.he-robot-invite {
  background: #f4f8f2;
  padding: 20px;
  border-radius: 14px;
  border: 1px solid #e0eadf;
}
.he-robot-invite h3 {
  margin-top: 0;
}
.he-robot-invite p {
  font-size: 12px;
  color: #7a887d;
}
.he-robot-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.he-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 20px 0 14px;
}
.he-metric-grid article {
  background: #f2f6f1;
  border: 1px solid #e4ece1;
  padding: 18px 10px;
  border-radius: 13px;
  display: grid;
  gap: 8px;
  text-align: center;
}
.he-metric-grid strong {
  font-size: 28px;
  font-weight: 500;
  color: #345a40;
}
.he-metric-grid span {
  font-size: 11px;
  color: #788573;
}
.he-invite-list article {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #edf0ea;
}
.he-invite-list article > div {
  flex: 1;
}
.he-invite-list strong {
  font-size: 13px;
}
.he-invite-list p,
.he-invite-list small {
  font-size: 11px;
  color: #859180;
  line-height: 1.6;
}
.he-invite-list .button {
  font-size: 11px;
}
.he-trend {
  width: 100%;
  font-size: 12px;
  border-collapse: collapse;
  margin-top: 15px;
}
.he-trend th,
.he-trend td {
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #eef0e8;
}
.he-funnel {
  display: grid;
  gap: 10px;
  padding: 8px 0 16px;
}
.he-funnel > div {
  padding: 15px 18px;
  display: flex;
  gap: 16px;
  align-items: center;
  background: #f1f6ed;
  border-radius: 10px;
}
.he-funnel span {
  color: #91a085;
  font-size: 11px;
}
.he-funnel strong {
  flex: 1;
  font-size: 13px;
  color: #48613f;
}
.he-funnel b {
  font-size: 23px;
  font-weight: 500;
  color: #48613f;
}
.he-instructions {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 18px;
  border: 1px solid #e3e9df;
  background: #f8faf6;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.8;
  max-height: 300px;
  overflow-y: auto;
}
.he-execution-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.he-execution-summary p {
  font-size: 13px;
  color: #71806b;
  line-height: 1.8;
}
.he-guest-page {
  background: #f7f9f6;
  color: var(--he-ink);
  height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  overflow: hidden;
}
.he-guest-page #guest-app {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.he-guest-page a {
  color: inherit;
}
.he-guest-demo {
  background: #edf1e6;
  color: #728162;
  display: flex;
  align-items: center;
  padding: 8px 32px;
  font-size: 12px;
  flex-shrink: 0;
}
.he-guest-demo b {
  color: #526a3d;
  font-weight: 600;
}
.he-guest-top {
  padding: 19px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  border-bottom: 1px solid var(--he-line);
  flex-shrink: 0;
}
.he-wordmark {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}
.he-wordmark > span {
  color: #3c805b;
  font-size: 23px;
}
.he-guest-top > div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.he-visitor-name {
  font-size: 11px;
  color: #8a9587;
}
.he-guest-top .button {
  font-size: 11px;
  padding: 7px 11px;
}
.he-guest-layout {
  width: min(1210px, calc(100% - 64px));
  margin: 26px auto;
  display: grid;
  grid-template-columns: 265px minmax(0, 1fr);
  gap: 36px;
  flex: 1;
  min-height: 0;
}
.he-guest-about {
  display: flex;
  flex-direction: column;
  padding: 23px 8px 12px;
  overflow-y: auto;
}
.he-guest-identity > .avatar {
  width: 64px;
  height: 64px;
  border-radius: 21px;
  font-size: 28px;
  background: #e2eddf;
  color: #50794a;
}
.he-guest-identity p:first-of-type {
  font-size: 11px;
  color: #8b9786;
  margin: 24px 0 8px;
}
.he-guest-identity h1 {
  font-size: 23px;
  font-weight: 550;
  letter-spacing: -0.7px;
  margin: 6px 0 13px;
}
.he-guest-identity p:last-child {
  font-size: 13px;
  line-height: 1.9;
  color: #7b8975;
}
.he-guest-about section {
  border-top: 1px solid #e7ece2;
  margin-top: 26px;
  padding-top: 23px;
}
.he-guest-about h2 {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 550;
  margin: 0;
  color: #607356;
}
.he-guest-about ul {
  padding: 8px 0 0 23px;
  font-size: 12px;
  line-height: 2.1;
  color: #85917b;
}
.he-private-note {
  display: flex;
  gap: 10px;
}
.he-private-note svg {
  margin-top: 3px;
  flex-shrink: 0;
  color: #839674;
}
.he-private-note p {
  margin: 0;
  font-size: 11px;
  line-height: 1.9;
  color: #8b9583;
}
.he-guest-retention {
  font-size: 10px;
  line-height: 1.9;
  color: #98a18f;
  padding: 3px 0;
}
.he-guest-about > .button {
  align-self: flex-start;
  font-size: 11px;
  padding-left: 0;
  color: #829374;
}
.he-about-footer {
  font-size: 10px;
  color: #a2ac98;
  margin-top: auto;
  padding-top: 30px;
  letter-spacing: 1px;
}
.he-guest-chat {
  border: 1px solid #e2e9df;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 7px 35px #2c482208;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.he-guest-chat-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 28px 19px;
  border-bottom: 1px solid #eef1eb;
  flex-shrink: 0;
}
.he-guest-chat-header > div {
  display: flex;
  align-items: center;
  gap: 9px;
}
.he-guest-chat-header h2 {
  font-size: 15px;
  margin: 0;
  font-weight: 550;
  letter-spacing: -0.2px;
}
.he-guest-chat-header > span {
  color: #95a08e;
  font-size: 10px;
  padding-left: 15px;
}
.he-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7da66d;
}
.he-guest-chat .inline-ai {
  background: #edf4e9;
  color: #6d8c5c;
  border-color: #e0e9da;
  font-size: 8px;
  vertical-align: middle;
  margin-left: 5px;
}
.he-guest-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 29px 27px 15px;
  scroll-behavior: smooth;
}
.he-guest-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 21px;
}
.he-guest-message > .avatar {
  width: 31px;
  height: 31px;
  flex-shrink: 0;
  border-radius: 11px;
  font-size: 13px;
}
.he-guest-message .ai-badge {
  display: none;
}
.he-guest-message-body {
  max-width: calc(100% - 45px);
  min-width: 0;
}
.he-guest-message .bubble {
  font-size: 12px;
  line-height: 1.9;
  border-radius: 0 14px 14px 14px;
  border: 1px solid #e7ece3;
  background: #f8faf6;
  padding: 13px 17px;
  color: #4e6047;
  white-space: normal;
  word-break: break-word;
  max-width: 580px;
}
.he-guest-message .bubble p {
  margin: 0 0 9px;
}
.he-guest-message .bubble p:last-child {
  margin: 0;
}
.he-guest-message.outgoing {
  flex-direction: row-reverse;
}
.he-guest-message.outgoing .bubble {
  background: #edf5e7;
  border-color: #e0ecd9;
  border-radius: 14px 0 14px 14px;
  color: #47633a;
}
.he-guest-message.outgoing .message-meta {
  justify-content: flex-end;
}
.he-guest-message .message-meta {
  padding: 5px 3px 0;
  color: #b0b8a9;
  font-size: 9px;
}
.he-guest-message .message-meta button {
  color: #a2af98;
  font-size: 9px;
}
.he-decision-label {
  display: block;
  color: #588342;
  font-size: 10px;
  margin-bottom: 7px;
}
.he-suggestions {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 20px 41px;
  max-width: 340px;
}
.he-suggestions button {
  padding: 10px 13px;
  background: #fff;
  border: 1px solid #e4ebdf;
  border-radius: 9px;
  color: #7b8f6b;
  font-size: 11px;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
}
.he-suggestions button:hover {
  background: #f6f9f2;
  border-color: #cbdcbd;
}
.he-guest-composer {
  border: 1px solid #e2e9db;
  border-radius: 13px;
  margin: 0 22px;
  padding: 13px 14px 10px;
  flex-shrink: 0;
  background: #fff;
}
.he-guest-composer:focus-within {
  border-color: #a9c69a;
  box-shadow: 0 0 0 2px #eef5e9;
}
.he-guest-composer textarea {
  border: 0;
  outline: none;
  width: 100%;
  background: transparent;
  resize: none;
  color: #455b3b;
  min-height: 49px;
  max-height: 160px;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.8;
  padding: 0 2px 4px;
}
.he-guest-composer textarea::placeholder {
  color: #a9b39e;
}
.he-guest-composer > div:last-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.he-guest-composer .icon-button {
  color: #91a17f;
  width: 28px;
  height: 28px;
}
.he-guest-composer .button {
  font-size: 11px;
  padding: 7px 11px;
}
.he-guest-page .button.primary,
.he-registered-stage .button.primary {
  background: #3c7c52;
  color: white;
  border-color: #3c7c52;
}
.he-guest-page .button.primary:hover {
  background: #326d46;
}
.he-guest-page .button.subtle {
  background: #f4f7f0;
  border-color: #e6ecdf;
  color: #76866a;
}
.he-guest-page button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.he-quota {
  flex: 1;
  text-align: right;
  color: #a2ae96;
  font-size: 9px;
  padding-right: 5px;
}
.he-guest-chat-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  color: #a6b09b;
  padding: 11px 25px 13px;
  font-size: 9px;
}
.he-guest-chat-footer button {
  border: 0;
  background: transparent;
  font: inherit;
  color: #8b9f7a;
  cursor: pointer;
}
.he-pending-files {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.he-pending-files:empty {
  display: none;
}
.he-pending-files > span {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 6px;
  background: #f1f5ec;
  color: #7d906c;
  font-size: 10px;
  margin-bottom: 8px;
}
.he-pending-files button {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.he-file {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 0 0;
  min-width: 160px;
}
.he-file > span {
  flex: 1;
  font-size: 11px;
}
.he-file small {
  display: block;
  color: #95a087;
  font-size: 9px;
}
.he-file img {
  display: block;
  max-height: 240px;
  max-width: 100%;
  border-radius: 9px;
}
.he-file > a:has(img) {
  flex-basis: 100%;
}
.he-file .button {
  padding: 5px;
}
.he-readonly {
  margin: 0 22px;
  padding: 17px;
  background: #f3f6ed;
  border: 1px solid #e1ead8;
  border-radius: 13px;
}
.he-readonly > div {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #839771;
}
.he-readonly svg {
  flex-shrink: 0;
}
.he-readonly p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.8;
  color: #728565;
}
.he-readonly small {
  font-size: 9px;
  color: #94a287;
  margin-left: 10px;
}
.he-readonly .button {
  font-size: 11px;
}
.he-thinking {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 20px 43px;
  color: #9fab91;
}
.he-thinking > span {
  width: 4px;
  height: 4px;
  background: #a5b494;
  border-radius: 50%;
  animation: he-pulse 1.2s infinite;
}
.he-thinking > span:nth-child(2) {
  animation-delay: 0.2s;
}
.he-thinking > span:nth-child(3) {
  animation-delay: 0.4s;
}
.he-thinking small {
  margin-left: 7px;
  font-size: 10px;
}
@keyframes he-pulse {
  50% {
    opacity: 0.2;
  }
}
.he-connection-notice {
  padding: 9px 22px;
  font-size: 11px;
  color: #8f7c4a;
  background: #fcf6e6;
}
.he-connection-notice button {
  border: 0;
  background: transparent;
  color: #887344;
  text-decoration: underline;
  cursor: pointer;
}
.he-guest-loading {
  margin: auto;
  padding: 35px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.he-guest-loading h1 {
  font-size: 24px;
  font-weight: 500;
}
.he-guest-loading p {
  max-width: 420px;
  font-size: 13px;
  line-height: 1.8;
  color: #7c8e71;
}
.he-guest-modal .field {
  margin-bottom: 13px;
}
.he-guest-modal .field input,
.he-guest-modal .field textarea {
  font-size: 13px;
}
.he-guest-modal .full {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}
.he-signup-intro {
  color: #829376;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 19px;
}
.he-provider-options {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5eddd;
}
.he-privacy-text p {
  font-size: 12px;
  line-height: 1.9;
  color: #7a8970;
}
.he-guest-modal .form-error {
  font-size: 12px;
}
.he-registered-stage {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  padding-bottom: 20px;
}
.he-registered-messages {
  flex: 1;
}
.he-registered-stage .he-guest-composer {
  margin: 0 25px;
}
.he-registered-stage .he-guest-composer .field-hint {
  flex: 1;
  font-size: 10px;
}
@media (max-width: 1050px) {
  .he-guest-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 22px;
    width: calc(100% - 40px);
  }
  .he-guest-top {
    padding: 16px 24px;
  }
  .he-guest-about {
    padding-left: 2px;
  }
  .he-guest-identity h1 {
    font-size: 20px;
  }
  .he-guest-demo {
    padding-inline: 24px;
  }
  .he-quota {
    font-size: 8px;
  }
}
@media (max-width: 760px) {
  .he-guest-page {
    background: #fff;
  }
  .he-guest-layout {
    display: flex;
    width: 100%;
    margin: 0;
    gap: 0;
  }
  .he-guest-about {
    display: none;
  }
  .he-guest-chat {
    border-radius: 0;
    border: 0;
    box-shadow: none;
    flex: 1;
  }
  .he-guest-top {
    padding: 13px 16px;
  }
  .he-wordmark {
    font-size: 15px;
  }
  .he-guest-top > div {
    gap: 4px;
  }
  .he-visitor-name {
    display: none;
  }
  .he-guest-top .button {
    padding: 6px;
    font-size: 10px;
  }
  .he-guest-demo {
    padding: 6px 14px;
    font-size: 12px;
  }
  .he-guest-demo > span {
    line-height: 1.7;
  }
  .he-guest-chat-header {
    padding: 16px 18px 14px;
  }
  .he-guest-chat-header h2 {
    font-size: 14px;
  }
  .he-guest-messages {
    padding: 22px 14px 14px;
  }
  .he-guest-message .bubble {
    padding: 12px;
    font-size: 12px;
  }
  .he-guest-composer {
    margin: 0 12px;
    padding: 12px 10px 9px;
  }
  .he-guest-composer .button {
    padding: 7px 9px;
    font-size: 10px;
  }
  .he-guest-composer > div:last-child {
    gap: 6px;
  }
  .he-quota {
    font-size: 8px;
    padding-right: 0;
  }
  .he-guest-chat-footer {
    padding: 10px 17px 12px;
    font-size: 8px;
  }
  .he-readonly {
    margin: 0 12px;
  }
  .he-readonly small {
    display: block;
    margin: 8px 0 0;
  }
  .he-guest-modal {
    width: min(450px, calc(100vw - 22px));
    max-height: 92dvh;
  }
  .he-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .chat-head-actions > .button {
    font-size: 11px;
    padding: 7px;
  }
  .chat-head-actions > .he-share-button {
    font-size: 12px;
    padding: 7px 8px;
  }
  .he-report-card header {
    padding: 14px;
  }
  .he-report-card header strong {
    font-size: 12px;
  }
  .he-report-text {
    padding: 14px 14px 4px;
    font-size: 12px;
  }
  .he-report-card footer {
    padding: 10px 14px 14px;
  }
  .he-status {
    font-size: 9px;
  }
  .he-invite-list article {
    flex-wrap: wrap;
  }
  .he-invite-list article > div {
    flex-basis: 100%;
  }
  .he-registered-stage .he-guest-composer {
    margin-inline: 10px;
  }
  .he-registered-stage .he-guest-composer .field-hint {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .he-thinking > span {
    animation: none;
  }
  .he-guest-messages {
    scroll-behavior: auto;
  }
}

/* Keep secondary copy legible without competing with the conversation. */
.he-guest-identity p:first-of-type,
.he-guest-identity p:last-child,
.he-guest-about ul,
.he-private-note p,
.he-guest-retention,
.he-guest-chat-header > span,
.he-quota,
.he-guest-chat-footer,
.he-visitor-name {
  color: #6f8067;
}
.he-guest-message .bubble {
  font-size: 13px;
}
.he-guest-composer textarea {
  font-size: 13px;
}
.he-guest-chat-header h2 {
  font-size: 16px;
}
.he-quota,
.he-guest-chat-footer,
.he-guest-retention {
  font-size: 10px;
}
.he-guest-message .message-meta {
  color: #7b8c71;
  font-size: 10px;
}
.he-guest-message .message-meta button {
  color: #6a815e;
  font-size: 10px;
  white-space: nowrap;
  min-width: 44px;
  flex-shrink: 0;
}
.he-guest-chat-footer button {
  color: #5e7950;
}
@media (max-width: 760px) {
  .he-guest-message .bubble,
  .he-guest-composer textarea {
    font-size: 14px;
  }
  .he-guest-chat-header h2 {
    font-size: 15px;
  }
  .he-quota {
    font-size: 9px;
  }
}

.he-outcome-fields {
  padding: 0;
  margin: 0;
  border: 0;
  min-width: 0;
}
.he-outcome-fields:disabled {
  opacity: 0.55;
}
.he-scope-empty {
  background: #faf5e7;
  color: #8a7549;
  font-size: 12px;
  line-height: 1.8;
  padding: 14px;
  border-radius: 11px;
  margin-top: 14px;
}
.he-scope-empty p {
  margin: 0 0 9px;
}
