.orbit-chat {
  position: fixed; inset: auto 20px 88px auto; margin: 0; padding: 0;
  width: 392px; max-width: calc(100% - 24px); height: 590px;
  max-height: calc(100dvh - 112px); border: 1px solid #d6ddd8; border-radius: 8px;
  background: #fff; color: #17221b; box-shadow: 0 12px 60px #0003;
  font-family: inherit; font-size: 14px; line-height: 1.5; letter-spacing: 0;
}
.orbit-chat[open] { display: flex; flex-direction: column; }
.orbit-chat::backdrop { background: #0002; }
.orbit-chat * { box-sizing: border-box; letter-spacing: 0; }
.orbit-chat [hidden] { display: none !important; }
.orbit-header { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; padding: 14px 12px; border-bottom: 1px solid #e5e8e6; }
.orbit-avatar { flex: 0 0 40px; height: 40px; display: grid; place-items: center; background: #d9f8e5; border-radius: 8px; }
.orbit-heading { flex: 1; min-width: 0; }
.orbit-heading h2 { font-size: 16px; line-height: 1.3; margin: 0; }
.orbit-heading p { font-size: 12px; margin: 2px 0 0; color: #54645a; }
.orbit-icon { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 36px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.orbit-icon:hover { background: #edf3ef; }
.orbit-chat button:focus-visible, .orbit-chat a:focus-visible, .orbit-chat summary:focus-visible, .orbit-chat input:focus-visible { outline: 2px solid #126340; outline-offset: 2px; }
.orbit-chat button:disabled { opacity: .45; cursor: not-allowed; }
.orbit-body { flex: 1; min-height: 80px; padding: 16px; overflow-y: auto; overscroll-behavior: contain; background: #f7f9f7; }
.orbit-log { display: flex; flex-direction: column; gap: 14px; }
.orbit-message { max-width: 94%; overflow-wrap: anywhere; }
.orbit-author { display: block; font-size: 11px; font-weight: 700; color: #56635a; margin-bottom: 4px; }
.orbit-message p { padding: 10px 12px; margin: 0; background: #fff; border: 1px solid #e2e9e4; border-radius: 6px; white-space: pre-wrap; }
.orbit-message--user { align-self: flex-end; }
.orbit-message--user .orbit-author { text-align: right; }
.orbit-message--user p { background: #e0f6e9; border-color: #c9e7d5; }
.orbit-suggestions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.orbit-suggestions button { padding: 0; background: transparent; border: none; border-bottom: 1px solid #6c9a7d; color: #1d6840; font: inherit; font-size: 12px; cursor: pointer; }
.orbit-status { margin: 12px 0 0; color: #705819; font-size: 12px; overflow-wrap: anywhere; }
.orbit-status:empty { display: none; }
.orbit-lead-status { font-size: 11px; color: #536158; margin: 6px 0; overflow-wrap: anywhere; }
.orbit-lead-status:empty { display: none; }
.orbit-footer { flex: 0 0 auto; padding: 10px 14px 12px; border-top: 1px solid #e5e8e6; background: #fff; }
.orbit-privacy { font-size: 11px; color: #536158; margin-bottom: 6px; }
.orbit-privacy summary { cursor: pointer; width: fit-content; }
.orbit-privacy p { margin: 5px 0; max-height: 90px; overflow-y: auto; }
.orbit-privacy a { text-decoration: underline; }
.orbit-consent { display: flex; align-items: flex-start; gap: 7px; font-size: 11px; color: #536158; margin: 8px 0; }
.orbit-consent input { flex: 0 0 15px; width: 15px; height: 15px; margin: 1px 0 0; accent-color: #146039; }
.orbit-form { display: flex; align-items: flex-end; gap: 6px; padding: 6px; border: 1px solid #afbfb4; border-radius: 6px; }
.orbit-form:focus-within { outline: 2px solid #126340; outline-offset: 1px; }
.orbit-form textarea { width: 100%; min-width: 0; height: 44px; max-height: 100px; resize: none; border: none; outline: none; background: transparent; padding: 3px; font: inherit; font-size: 16px; color: #17221b; }
.orbit-send { background: #52ca88; flex-basis: 36px; width: 36px; }
.orbit-send:hover { background: #64d695; }
.orbit-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; margin-top: 10px; font-size: 12px; font-weight: 600; }
.orbit-links a { display: inline-flex; align-items: center; gap: 5px; text-decoration: underline; text-underline-offset: 3px; color: #205e3b; }
.orbit-links button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: none; padding: 0; color: #205e3b; font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.orbit-handoff h3 { margin: 0 0 8px; font-size: 17px; }
.orbit-handoff p { font-size: 12px; color: #536158; }
.orbit-handoff label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 6px; }
.orbit-handoff textarea { display: block; width: 100%; min-height: 150px; resize: vertical; padding: 10px; border: 1px solid #afbfb4; border-radius: 4px; font: inherit; font-size: 16px; }
.orbit-links a[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.orbit-disclaimer { margin: 8px 0 0; font-size: 10px; line-height: 1.4; color: #647169; }
.orbit-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .orbit-chat { left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); width: auto; max-width: none; height: 600px; max-height: calc(100dvh - 24px); }
}
@media (max-height: 500px) {
  .orbit-chat { inset: 8px 12px 8px auto; height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); }
  .orbit-header { padding: 8px 12px; }
  .orbit-footer { padding: 6px 12px; }
  .orbit-disclaimer { display: none; }
}
