.chatbox{--chatbox-color-text: var(--chatbox-host-text, #1a1b22);--chatbox-color-surface: var(--chatbox-host-surface, #ffffff);--chatbox-color-primary: var(--chatbox-host-primary, #00685f);--chatbox-color-link: var(--chatbox-host-link, #006398);--chatbox-color-border: var(--chatbox-host-border, #6d7a77);--chatbox-color-focus: var(--chatbox-host-focus, #006398);--chatbox-color-error: var(--chatbox-host-error, #ba1a1a);--chatbox-color-surface-subtle: var(--chatbox-host-surface-subtle, #eeedf7);--chatbox-color-surface-raised: var(--chatbox-host-surface-raised, #e8e7f1);--chatbox-color-accent-container: var(--chatbox-host-accent-container, #008378);display:flex;flex-direction:column;box-sizing:border-box;height:100%;max-height:100dvh;min-height:0;padding-bottom:var(--chatbox-keyboard-inset, 0px);margin:0;font-family:var(--chatbox-host-font, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);font-size:.875rem;line-height:20px;letter-spacing:-.006em;color:var(--chatbox-color-text);background-color:var(--chatbox-color-surface)}@media(prefers-color-scheme:dark){.chatbox{--chatbox-color-text: var(--chatbox-host-text, #f1effa);--chatbox-color-surface: var(--chatbox-host-surface, #2f3038);--chatbox-color-primary: var(--chatbox-host-primary, #6bd8cb);--chatbox-color-link: var(--chatbox-host-link, #93ccff);--chatbox-color-border: var(--chatbox-host-border, #bcc9c6);--chatbox-color-focus: var(--chatbox-host-focus, #93ccff);--chatbox-color-error: var(--chatbox-host-error, #fca5a5);--chatbox-color-surface-subtle: var(--chatbox-host-surface-subtle, #3a3b44);--chatbox-color-surface-raised: var(--chatbox-host-surface-raised, #45464f);--chatbox-color-accent-container: var(--chatbox-host-accent-container, #89f5e7)}}[data-theme=dark] .chatbox{--chatbox-color-text: var(--chatbox-host-text, #f1effa);--chatbox-color-surface: var(--chatbox-host-surface, #2f3038);--chatbox-color-primary: var(--chatbox-host-primary, #6bd8cb);--chatbox-color-link: var(--chatbox-host-link, #93ccff);--chatbox-color-border: var(--chatbox-host-border, #bcc9c6);--chatbox-color-focus: var(--chatbox-host-focus, #93ccff);--chatbox-color-error: var(--chatbox-host-error, #fca5a5);--chatbox-color-surface-subtle: var(--chatbox-host-surface-subtle, #3a3b44);--chatbox-color-surface-raised: var(--chatbox-host-surface-raised, #45464f);--chatbox-color-accent-container: var(--chatbox-host-accent-container, #89f5e7)}[data-theme=light] .chatbox{--chatbox-color-text: var(--chatbox-host-text, #1a1b22);--chatbox-color-surface: var(--chatbox-host-surface, #ffffff);--chatbox-color-primary: var(--chatbox-host-primary, #00685f);--chatbox-color-link: var(--chatbox-host-link, #006398);--chatbox-color-border: var(--chatbox-host-border, #6d7a77);--chatbox-color-focus: var(--chatbox-host-focus, #006398);--chatbox-color-error: var(--chatbox-host-error, #ba1a1a);--chatbox-color-surface-subtle: var(--chatbox-host-surface-subtle, #eeedf7);--chatbox-color-surface-raised: var(--chatbox-host-surface-raised, #e8e7f1);--chatbox-color-accent-container: var(--chatbox-host-accent-container, #008378)}@media(prefers-contrast:more)and (prefers-color-scheme:light){.chatbox{--chatbox-color-text: #000000;--chatbox-color-surface: #ffffff;--chatbox-color-primary: #004b45;--chatbox-color-link: #00476e;--chatbox-color-border: #111827;--chatbox-color-focus: #00476e;--chatbox-color-error: #7f1d1d;--chatbox-color-surface-subtle: #ffffff;--chatbox-color-surface-raised: #ffffff;--chatbox-color-accent-container: #004b45}}@media(prefers-contrast:more){[data-theme=light] .chatbox{--chatbox-color-text: #000000;--chatbox-color-surface: #ffffff;--chatbox-color-primary: #004b45;--chatbox-color-link: #00476e;--chatbox-color-border: #111827;--chatbox-color-focus: #00476e;--chatbox-color-error: #7f1d1d;--chatbox-color-surface-subtle: #ffffff;--chatbox-color-surface-raised: #ffffff;--chatbox-color-accent-container: #004b45}.chatbox__message{border:1px solid var(--chatbox-color-text)}}@media(forced-colors:active){.chatbox,[data-theme=dark] .chatbox,[data-theme=light] .chatbox{--chatbox-color-text: CanvasText;--chatbox-color-surface: Canvas;--chatbox-color-primary: Highlight;--chatbox-color-link: LinkText;--chatbox-color-border: GrayText;--chatbox-color-focus: Highlight;--chatbox-color-error: ButtonText;--chatbox-color-surface-subtle: Canvas;--chatbox-color-surface-raised: ButtonFace;--chatbox-color-accent-container: ButtonFace}.chatbox__message{border:1px solid CanvasText}}.chatbox a{color:var(--chatbox-color-link);text-decoration:underline}.chatbox *,.chatbox *:before,.chatbox *:after{box-sizing:border-box}.chatbox h1,.chatbox p,.chatbox ol{margin:0}.chatbox textarea,.chatbox button{font-family:inherit;font-style:inherit;font-variant:inherit;font-weight:inherit;font-stretch:inherit;line-height:inherit;letter-spacing:inherit;color:inherit}.chatbox button{min-height:44px;min-width:44px;padding:.5rem .75rem;border:1px solid var(--chatbox-color-border);border-radius:.75rem;background-color:var(--chatbox-color-surface);cursor:pointer;font-size:.8125rem}.chatbox button:disabled{cursor:not-allowed;opacity:.6}.chatbox :focus-visible{outline:2px solid var(--chatbox-color-focus);outline-offset:2px}.chatbox__header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem;padding:.75rem 1rem;padding-top:max(.75rem,env(safe-area-inset-top,0px));padding-left:max(1rem,env(safe-area-inset-left,0px));padding-right:max(1rem,env(safe-area-inset-right,0px));border-bottom:1px solid var(--chatbox-color-border)}.chatbox__header p{flex:1 1 100%;padding:.25rem .5rem;border-radius:.5rem;background-color:var(--chatbox-color-surface-subtle);font-size:.75rem}.chatbox h1{font-size:1.125rem;font-weight:600;line-height:24px;letter-spacing:-.015em}.chatbox__badge{padding:.125rem .5rem;border-radius:9999px;background-color:var(--chatbox-color-accent-container);color:var(--chatbox-color-surface);font-size:.75rem;font-weight:600}.chatbox__status:empty{display:none}.chatbox__status--error{color:var(--chatbox-color-error)}.chatbox__status--announced,.chatbox[data-state=collapsed] .chatbox__status{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.chatbox__conversation{position:relative;display:flex;flex:1 1 auto;flex-direction:column;gap:.75rem;min-height:0;padding:1rem;padding-left:max(1rem,env(safe-area-inset-left,0px));padding-right:max(1rem,env(safe-area-inset-right,0px));overflow-y:auto}.chatbox__notice{font-size:.75rem}.chatbox__conversation>button{align-self:center;border-radius:9999px}.chatbox__messages{display:flex;flex-direction:column;gap:.75rem;padding:0;list-style:none}.chatbox__message{max-width:85%;padding:.5rem .75rem;border-radius:1rem;box-shadow:0 1px 2px #0000000d;overflow-wrap:anywhere}.chatbox__message--assistant{align-self:flex-start;background-color:var(--chatbox-color-surface-subtle);border-top-left-radius:.25rem}.chatbox__message--user{align-self:flex-end;background-color:var(--chatbox-color-primary);border-top-right-radius:.25rem;color:var(--chatbox-color-surface)}.chatbox__message-author{display:block;margin-bottom:.25rem;font-size:.75rem;font-weight:600}.chatbox__message--assistant .chatbox__message-author{color:var(--chatbox-color-text)}.chatbox__message--user .chatbox__message-author{color:var(--chatbox-color-surface)}.chatbox__sources{margin:.35rem 0 0;font-size:.75rem;color:var(--chatbox-color-text)}.chatbox__typing{display:inline-flex;align-items:center;gap:.25rem}.chatbox__typing-dot{width:8px;height:8px;border-radius:9999px;background-color:var(--chatbox-color-primary);opacity:.7}.chatbox__writing{margin-right:.5rem}.chatbox__empty{display:flex;flex-direction:column;gap:.75rem;margin:auto;text-align:center}.chatbox__empty ul{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem;margin:0;padding:0;list-style:none}.chatbox__empty li{margin:0;padding:0}.chatbox__empty ul button{border-radius:9999px;box-shadow:0 1px 2px #0000000d}.chatbox__empty ul button:hover:not(:disabled){border-color:var(--chatbox-color-primary);background-color:var(--chatbox-color-surface-raised)}.chatbox__footer{display:flex;flex-direction:column;gap:.5rem;padding:.75rem 1rem;padding-bottom:max(.75rem,env(safe-area-inset-bottom,0px));padding-left:max(1rem,env(safe-area-inset-left,0px));padding-right:max(1rem,env(safe-area-inset-right,0px));border-top:1px solid var(--chatbox-color-border)}.chatbox__footer form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:.5rem}.chatbox__footer label{flex:1 1 100%;font-size:.8125rem;font-weight:500}.chatbox textarea{flex:1 1 12rem;min-height:2.75rem;padding:.5rem .75rem;border:1px solid var(--chatbox-color-border);border-radius:.75rem;font-size:max(1rem,16px);line-height:1.375;background-color:var(--chatbox-color-surface);resize:vertical}.chatbox__footer small{flex:1 1 100%;font-size:.75rem}.chatbox__footer button[type=submit]{flex:0 0 auto;align-self:flex-end;border-color:var(--chatbox-color-primary);border-radius:9999px;background-color:var(--chatbox-color-primary);color:var(--chatbox-color-surface)}.chatbox__footer>button{align-self:flex-start;border-radius:9999px}.chatbox__conversation-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem}.chatbox[data-variant=floating]{position:fixed;right:max(1rem,env(safe-area-inset-right,0px));bottom:max(1rem,env(safe-area-inset-bottom,0px));width:min(100% - 2rem,380px);height:min(100dvh - 2rem,640px);border-radius:1rem;box-shadow:0 8px 24px #0000002e;z-index:50}.chatbox[data-variant=drawer]{position:fixed;top:0;right:0;width:min(100%,460px);height:100dvh;box-shadow:-8px 0 24px #00000029;z-index:50}.chatbox[data-variant=drawer][data-state=collapsed]{top:auto;right:max(1rem,env(safe-area-inset-right,0px));bottom:max(1rem,env(safe-area-inset-bottom,0px))}.chatbox[data-state=collapsed]{width:56px;height:56px;border-radius:9999px;background-color:var(--chatbox-color-primary);color:var(--chatbox-color-surface);box-shadow:0 4px 12px #0000003d}.chatbox[data-state=collapsed] .chatbox__launcher{display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;border-radius:inherit;background-color:transparent;color:inherit}.chatbox__icon{width:1.25rem;height:1.25rem;fill:currentColor}.chatbox__collapse{border-radius:9999px}@media(prefers-reduced-motion:no-preference){@keyframes chatbox-typing-bounce{0%,to{transform:translateY(0)}50%{transform:translateY(-4px)}}.chatbox__typing-dot{animation:chatbox-typing-bounce 1s infinite ease-in-out}.chatbox__typing-dot:nth-child(2){animation-delay:.15s}.chatbox__typing-dot:nth-child(3){animation-delay:.3s}}@media(prefers-reduced-motion:reduce){.chatbox *,.chatbox *:before,.chatbox *:after{transition:none;animation:none}.chatbox__conversation{scroll-behavior:auto}}
