*,:before,:after{box-sizing:border-box}html,body{height:100%;margin:0}body{color:#111827;-webkit-font-smoothing:antialiased;background:#fff;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif}a{color:inherit}.sr-only,.hp{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.page{max-width:720px;margin:0 auto;padding:48px 24px;line-height:1.6}.page pre{background:#f3f4f6;border-radius:8px;padding:12px;font-size:13px;overflow-x:auto}.demo-host{min-height:100vh}.demo-host__badge{text-transform:uppercase;letter-spacing:.08em;color:#92400e;background:#fef3c7;border-radius:999px;padding:2px 8px;font-size:12px;display:inline-block}.widget{--accent:#111827;background:#fff;flex-direction:column;height:100dvh;font-size:15px;line-height:1.45;display:flex}.widget__header{background:var(--accent);color:#fff;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;display:flex}.widget__title{margin:0;font-weight:600}.widget__subtitle{opacity:.85;margin:0;font-size:13px}.widget__header-actions{gap:4px;display:flex}.widget__icon-btn{color:inherit;cursor:pointer;font:inherit;background:0 0;border:0;border-radius:6px;padding:6px 8px;font-size:13px}.widget__icon-btn:hover,.widget__icon-btn:focus-visible{background:#ffffff26}.widget__intro{flex-direction:column;gap:14px;padding:20px 16px;display:flex;overflow-y:auto}.widget__intro p{margin:0}.widget__notice{color:#4b5563;font-size:13px}.widget__primary{background:var(--accent);color:#fff;font:inherit;cursor:pointer;border:0;border-radius:10px;padding:12px 16px;font-weight:600}.widget__primary:disabled{opacity:.6;cursor:default}.widget__link{font:inherit;color:#4b5563;cursor:pointer;background:0 0;border:0;padding:4px;font-size:13px;text-decoration:underline}.widget__messages{background:#f9fafb;flex-direction:column;flex:1;gap:8px;margin:0;padding:16px;list-style:none;display:flex;overflow-y:auto}.msg-group{flex-direction:column;gap:6px;max-width:85%;display:flex}.msg-group--assistant{align-self:flex-start;align-items:flex-start}.msg-group--user{align-self:flex-end;align-items:flex-end}.msg{white-space:pre-wrap;overflow-wrap:anywhere;border-radius:14px;margin:0;padding:9px 13px}.msg__links{flex-wrap:wrap;gap:6px;display:flex}.widget__chip--link{border-color:var(--accent);color:var(--accent)}.msg--assistant{background:#fff;border:1px solid #e5e7eb;border-bottom-left-radius:4px}.msg--user{background:var(--accent);color:#fff;border-bottom-right-radius:4px}.msg--typing{flex-direction:row;gap:4px;padding:13px;display:flex}.msg--typing span{background:#9ca3af;border-radius:50%;width:6px;height:6px;animation:1s ease-in-out infinite typing}.msg--typing span:nth-child(2){animation-delay:.15s}.msg--typing span:nth-child(3){animation-delay:.3s}@keyframes typing{0%,80%,to{opacity:.3}40%{opacity:1}}@media (prefers-reduced-motion:reduce){.msg--typing span{animation:none}}.widget__actions{border-top:1px solid #e5e7eb;flex-wrap:wrap;gap:6px;padding:10px 16px 0;display:flex}.widget__status{color:#047857;width:100%;margin:0 0 4px;font-size:13px}.widget__chip{font:inherit;cursor:pointer;background:#fff;border:1px solid #d1d5db;border-radius:999px;align-items:center;padding:6px 12px;font-size:13px;text-decoration:none;display:inline-flex}.widget__chip--accent{background:var(--accent);border-color:var(--accent);color:#fff}.widget__error{color:#b91c1c;margin:8px 16px 0;font-size:13px}.widget__composer{align-items:flex-end;gap:8px;padding:12px 16px 16px;display:flex}.widget__composer textarea{resize:none;font:inherit;field-sizing:content;border:1px solid #d1d5db;border-radius:10px;flex:1;max-height:120px;padding:10px 12px}.widget__composer textarea:focus-visible,.widget__form :is(input,select,textarea):focus-visible{outline:2px solid var(--accent);outline-offset:1px}.widget__send{background:var(--accent);color:#fff;cursor:pointer;border:0;border-radius:10px;flex:none;width:42px;height:42px;font-size:16px}.widget__send:disabled{opacity:.4;cursor:default}.widget__form{flex-direction:column;gap:12px;padding:16px;display:flex;overflow-y:auto}.widget__form label{flex-direction:column;gap:4px;font-size:13px;font-weight:500;display:flex}.widget__form :is(input,select,textarea){font:inherit;border:1px solid #d1d5db;border-radius:8px;padding:9px 11px;font-weight:400}.widget__form .widget__consent{flex-direction:row;align-items:flex-start;gap:8px;font-weight:400}.widget__consent input{margin-top:3px}
