:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;color:#1c1917;background:#f6f4ef;font-family:Georgia,Times New Roman,serif}body{margin:0}main{max-width:45rem;margin:0 auto;padding:4rem 1.5rem}h1{margin:.25rem 0 1rem;font-size:2.25rem;font-weight:500;line-height:1.15}p{line-height:1.5}a{color:inherit}main.chat{background:#ececee;width:100%;max-width:none;height:100dvh;min-height:100dvh;margin:0;padding:0;display:flex}:is(html:has(main.embed),html:has(main.chat)){--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;background:#fff;height:100%}@media (prefers-color-scheme:dark){:is(html:has(main.embed),html:has(main.chat)){--lightningcss-light: ;--lightningcss-dark:initial}}:is(html:has(main.embed) body,html:has(main.chat) body){overscroll-behavior:contain;background:#fff;flex-direction:column;height:100%;margin:0;display:flex;overflow:visible}@media (prefers-color-scheme:dark){main.chat{background:#09090b}html:has(main.embed){background:#09090b}html:has(main.embed) body{background:#09090b}html:has(main.chat){background:#09090b}}@media (min-width:840px){main.chat{padding:1.5rem 1rem}main.chat .chat__panel{border:1px solid var(--chat-line);border-radius:1.25rem;overflow:hidden;box-shadow:0 24px 80px #00000014}}main.embed{flex-direction:column;flex:auto;width:100%;max-width:none;height:100%;min-height:0;max-height:100%;margin:0;padding:0;display:flex;overflow:visible}.embed__bridge{flex-direction:column;flex:auto;height:100%;min-height:0;max-height:100%;display:flex}main.embed .chat__panel,main.chat .chat__panel{flex:auto;width:min(48rem,100%);height:100%;min-height:0;max-height:100%;margin:0 auto}.chat__panel{--chat-bg:#fff;--chat-fg:#18181b;--chat-muted:#52525b;--chat-user-bg:#f4f4f5;--chat-line:#e4e4e7;--chat-chip:#f4f4f5;--chat-accent:#2563eb;--chat-accent-ink:#fff;background:var(--chat-bg);min-height:0;color:var(--chat-fg);flex-direction:column;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif;font-size:.95rem;line-height:1.55;display:flex;position:relative;overflow:hidden}@media (prefers-color-scheme:dark){.chat__panel{--chat-bg:#0c0c0e;--chat-fg:#f4f4f5;--chat-muted:#a1a1aa;--chat-user-bg:#27272a;--chat-line:#3f3f46;--chat-chip:#27272a}}.chat__header{padding:calc(.75rem + env(safe-area-inset-top)) 1rem .75rem;border-bottom:1px solid var(--chat-line);flex:none;align-items:center;gap:.75rem;display:flex}.chat__heading{min-width:0}.chat__name{letter-spacing:-.01em;margin:0;font-size:.95rem;font-weight:600;line-height:1.3}.chat__status{color:var(--chat-muted);margin:.1rem 0 0;font-size:.75rem;line-height:1.3}.chat__close{width:2.25rem;height:2.25rem;color:inherit;cursor:pointer;background:0 0;border:0;border-radius:999px;place-items:center;margin-left:auto;display:grid}.chat__close:hover,.chat__starters button:hover{background:var(--chat-user-bg)}.chat__close:focus-visible,.chat__composer button:focus-visible,.chat__starters button:focus-visible,.chat__person:focus-visible,.chat__handoff button:focus-visible{outline:2px solid var(--chat-accent);outline-offset:2px}.chat__scroll{overscroll-behavior:contain;touch-action:pan-y;-webkit-overflow-scrolling:touch;flex:auto;min-height:0;padding:.5rem 1rem 1rem;overflow:hidden auto}.chat__welcome{padding:1.5rem .25rem .5rem}.chat__welcome h2{letter-spacing:-.02em;margin:.75rem 0 .4rem;font-size:1.35rem;font-weight:600;line-height:1.2}.chat__welcome p{max-width:36rem;color:var(--chat-muted);margin:0}.chat__starters{flex-direction:column;align-items:flex-start;gap:.5rem;margin-top:1.25rem;display:flex}.chat__starters button{border:1px solid var(--chat-line);color:inherit;font:inherit;cursor:pointer;text-align:left;background:0 0;border-radius:999px;padding:.5rem .9rem}.chat__starters button:disabled{opacity:.55;cursor:default}.chat__transcript{flex-direction:column;gap:1.25rem;margin:0;padding:.5rem 0 0;list-style:none;display:flex}.chat__row{align-items:flex-start;gap:.65rem;display:flex}.chat__row--user{justify-content:flex-end}.chat__avatar{background:var(--chat-accent);width:1.75rem;height:1.75rem;color:var(--chat-accent-ink);object-fit:cover;border-radius:999px;flex:none;place-items:center;font-size:.75rem;font-weight:600;display:grid}.chat__avatar--large{width:2.75rem;height:2.75rem;font-size:1.05rem}.chat__bubble{overflow-wrap:anywhere;min-width:0;max-width:min(40rem,100%)}.chat__row--user .chat__bubble{background:var(--chat-user-bg);border-radius:1.15rem 1.15rem .4rem;max-width:min(85%,32rem);padding:.6rem .9rem}.chat__who{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.chat__markdown p{margin:0 0 .75em}.chat__markdown p:last-child,.chat__markdown ul:last-child,.chat__markdown ol:last-child,.chat__markdown pre:last-child{margin-bottom:0}.chat__markdown ul,.chat__markdown ol{margin:.2em 0 .75em;padding-left:1.2em}.chat__markdown li+li{margin-top:.25em}.chat__markdown a{color:var(--chat-accent)}.chat__markdown code{background:var(--chat-chip);border-radius:.35em;padding:.1em .35em;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em}.chat__markdown pre{background:var(--chat-chip);border-radius:.75em;margin:.5em 0 .75em;padding:.75em .9em;overflow:auto}.chat__markdown pre code{background:0 0;padding:0}.chat__citations{flex-wrap:wrap;gap:.35rem;margin:.65rem 0 0;padding:0;list-style:none;display:flex}.chat__chip{text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--chat-line);background:var(--chat-chip);max-width:16rem;color:var(--chat-muted);border-radius:999px;padding:.15rem .5rem;font-size:.75rem;line-height:1.4;display:inline-block;overflow:hidden}.chat__typing{align-items:center;gap:.3rem;margin:.8rem 0 0 2.4rem;display:flex}.chat__typing span:not(.chat__label){background:var(--chat-muted);border-radius:999px;width:.4rem;height:.4rem;animation:1.2s ease-in-out infinite chat-blink}.chat__typing span:nth-child(2){animation-delay:.15s}.chat__typing span:nth-child(3){animation-delay:.3s}@keyframes chat-blink{0%,80%,to{opacity:.25}40%{opacity:1}}@media (prefers-reduced-motion:reduce){.chat__typing span{opacity:.7;animation:none}}.chat__label{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.chat__alert{color:#b91c1c;flex:none;margin:0 1rem .5rem;font-size:.85rem}.chat__jump{left:50%;bottom:calc(4.75rem + env(safe-area-inset-bottom));z-index:2;border:1px solid var(--chat-line);background:var(--chat-bg);color:var(--chat-fg);font:inherit;cursor:pointer;border-radius:999px;padding:.4rem .75rem;font-size:.8rem;font-weight:600;position:absolute;transform:translate(-50%);box-shadow:0 8px 24px #0000001f}.chat__jump:focus-visible{outline:2px solid var(--chat-accent);outline-offset:2px}.chat__composer{margin:0 .75rem calc(.75rem + env(safe-area-inset-bottom));border:1px solid var(--chat-line);background:var(--chat-bg);border-radius:1.5rem;flex:none;align-items:flex-end;gap:.4rem;padding:.35rem .35rem .35rem .9rem;display:flex;box-shadow:0 1px 2px #0000000a,0 8px 24px #0000000d}.chat__composer:focus-within{border-color:var(--chat-accent);box-shadow:0 0 0 3px color-mix(in srgb, var(--chat-accent) 28%, transparent)}.chat__composer textarea{resize:none;min-width:0;max-height:10rem;color:inherit;font:inherit;field-sizing:content;background:0 0;border:0;flex:1;margin:0;padding:.55rem 0;line-height:1.45}.chat__composer textarea:focus{outline:none}.chat__composer button{background:var(--chat-accent);width:2.25rem;height:2.25rem;color:var(--chat-accent-ink);cursor:pointer;border:0;border-radius:999px;flex:none;place-items:center;display:grid}.chat__composer button:disabled{opacity:.4;cursor:default}.chat__follow{flex-direction:column;align-items:flex-start;gap:.75rem;margin-top:.75rem;display:flex}.chat__follow .chat__starters,.chat__follow .chat__handoff{width:100%;margin-top:0}.chat__person{background:var(--chat-accent);color:var(--chat-accent-ink);font:inherit;cursor:pointer;border:0;border-radius:999px;padding:.65rem 1rem;font-weight:600}.chat__person:hover{filter:brightness(1.08)}.chat__handoff{border:1px solid var(--chat-line);background:var(--chat-chip);border-radius:1rem;flex-direction:column;gap:.4rem;margin-top:1rem;padding:.9rem;display:flex}.chat__handoff p{margin:0}.chat__handoff input,.chat__handoff textarea{font:inherit;color:inherit;background:var(--chat-bg);border:1px solid var(--chat-line);border-radius:.7rem;padding:.5rem .7rem}.chat__handoff button{font:inherit;background:var(--chat-accent);color:var(--chat-accent-ink);cursor:pointer;border:0;border-radius:999px;align-self:start;padding:.5rem .9rem}
