.rlz-chat{position:fixed;right:20px;bottom:calc(max(20px,env(safe-area-inset-bottom)) + var(--chat-keyboard-offset,0px));z-index:91;display:flex;flex-direction:column;margin:0;padding:0;width:320px;max-width:calc(100vw - 32px);height:350px;max-height:calc(var(--chat-view-height,100dvh) - 40px);border:1px solid #d7d7d7;border-radius:16px;background:#fff;color:#111;font:400 .875rem/1.6 Montserrat,Arial,sans-serif;box-shadow:0 12px 42px #0003;overflow:hidden}
.rlz-chat[hidden]{display:none}
.rlz-chat *{box-sizing:border-box}.rlz-chat p,.rlz-chat p+p{margin:0}.rlz-chat button,.rlz-chat textarea{font-family:inherit}
.chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#000;color:#fff;flex-shrink:0}
.chat-identity{display:flex;align-items:center;gap:11px;min-width:0}.chat-avatar{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;background:#222;border:1px solid #555;border-radius:11px}.chat-header h2{font-size:1.125rem;line-height:1.25;letter-spacing:-.025em}.chat-header p{font-size:.75rem;line-height:1.4;color:#ddd;margin-top:2px!important}
.chat-minimize{display:grid;place-items:center;flex-shrink:0;background:transparent;color:#fff;border:0;border-radius:8px;width:40px;height:40px;cursor:pointer}.chat-minimize:hover{background:#333}.chat-minimize svg,.chat-form button svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chat-tools{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 14px;border-bottom:1px solid #e8e8e8;flex-shrink:0;font-size:.6875rem;color:#666}.chat-tools button{border:0;background:transparent;color:#444;text-decoration:underline;text-underline-offset:3px;font-size:.6875rem;padding:6px 0;min-height:32px;cursor:pointer;white-space:nowrap}
.chat-log{position:relative;flex:1;min-height:70px;overflow:auto;overscroll-behavior:contain;padding:14px;background:#fafafa;scroll-behavior:auto}
.chat-message{max-width:calc(100% - 20px);padding:11px 13px;font-size:.8125rem;overflow-wrap:anywhere;border-radius:12px}.chat-message+.chat-message{margin-top:13px}.chat-speaker{font-size:.6875rem;line-height:1.4;font-weight:700;margin-bottom:5px!important;color:#666}
.chat-message-bot{margin-right:auto;background:#fff;border:1px solid #e3e3e3;border-bottom-left-radius:3px}.chat-message-user{margin-left:auto;background:#111;color:#fff;border-bottom-right-radius:3px}.chat-message-user .chat-speaker{color:#ccc}.chat-text{white-space:pre-line;line-height:1.6}
.chat-answer{margin-top:12px}.chat-answer:first-child,.chat-speaker+.chat-answer{margin-top:0}.chat-answer h3{font-size:.8125rem;line-height:1.4;margin:0 0 6px;letter-spacing:-.015em}.chat-sources{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.chat-source{display:inline-block;border-bottom:1px solid #bbb;font-size:.75rem;font-weight:600;text-decoration:none;line-height:1.5;padding:4px 0;margin-right:8px;overflow-wrap:anywhere}.chat-source:hover{border-color:#000;text-decoration:underline}
.chat-questions{display:flex;flex-wrap:wrap;gap:5px;padding:8px 12px 0;border-top:1px solid #e8e8e8;flex-shrink:0}.chat-questions button{background:#fff;border:1px solid #ddd;border-radius:16px;padding:6px 9px;font-size:.6875rem;line-height:1.4;min-height:30px;cursor:pointer}.chat-questions button:hover{background:#eee}
.chat-status{font-size:.6875rem;color:#555;padding:6px 14px 0}.chat-status:empty{display:none}
.chat-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px 7px;flex-shrink:0}.chat-form label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.chat-form textarea{display:block;flex:1;min-width:0;height:46px;min-height:46px;max-height:90px;resize:vertical;border:1px solid #bbb;border-radius:10px;padding:10px 11px;font-size:1rem;line-height:1.5;background:#fff;color:#111}.chat-form button[type="submit"]{display:grid;place-items:center;flex:0 0 44px;width:44px;height:46px;background:#000;color:#fff;border:1px solid #000;border-radius:10px;cursor:pointer}.chat-form button[type="submit"]:hover{background:#333}.rlz-chat button:disabled{opacity:.5;cursor:wait}
.chat-note{padding:0 12px 10px;font-size:.625rem;line-height:1.5;color:#666;flex-shrink:0}.rlz-chat :focus-visible{outline:2px solid #00a4cf;outline-offset:2px}
@media(max-width:600px){.chat-launch{right:12px;bottom:max(12px,env(safe-area-inset-bottom))}.rlz-chat{right:12px;bottom:calc(max(12px,env(safe-area-inset-bottom)) + var(--chat-keyboard-offset,0px));width:320px;max-width:calc(100vw - 24px);height:350px;max-height:calc(var(--chat-view-height,100dvh) - 24px)}.chat-form textarea{resize:none}.chat-message{max-width:calc(100% - 12px)}}
.rlz-chat.chat-compact .chat-header{padding:7px 12px}.rlz-chat.chat-compact .chat-avatar{width:32px;height:32px;flex-basis:32px}.rlz-chat.chat-compact .chat-header p,.rlz-chat.chat-compact .chat-tools,.rlz-chat.chat-compact .chat-questions,.rlz-chat.chat-compact .chat-note{display:none}.rlz-chat.chat-compact .chat-form{padding:7px 10px}.rlz-chat.chat-compact .chat-log{min-height:0;padding:10px}
@media print{.chat-launch,.rlz-chat{display:none!important}}

/* At rest, Trident is only a face and a question field (about 320 × 82px). */
.rlz-chat.chat-idle{height:auto;border-radius:16px;box-shadow:0 4px 22px #0002}
.rlz-chat.chat-idle .chat-header,.rlz-chat.chat-idle .chat-tools,.rlz-chat.chat-idle .chat-log,.rlz-chat.chat-idle .chat-status,.rlz-chat.chat-idle .chat-note{display:none}
.rlz-chat .chat-form{align-items:center;gap:8px;padding:10px}
.rlz-chat .chat-entry{flex:1;min-width:0}
.rlz-chat .chat-form label{position:static;display:block;width:auto;height:auto;overflow:visible;clip-path:none;font-size:.75rem;font-weight:700;line-height:1.4;margin:0 0 2px}
.rlz-chat .chat-form textarea{width:100%;height:36px;min-height:36px;max-height:36px;resize:none;padding:5px 0;border:0;border-radius:0;font-size:1rem;background:transparent}
.rlz-chat .chat-form button[type="submit"]{flex-basis:36px;width:36px;height:40px;border-radius:10px}
.rlz-chat .chat-face{display:grid;place-items:center;flex:0 0 36px;width:36px;height:40px;padding:0;border:0;background:transparent;color:#111;cursor:pointer}
.rlz-chat .chat-face img{display:block;width:34px;height:34px;object-fit:contain;border-radius:50%}.chat-face:hover{opacity:.85}
.rlz-chat .chat-header{padding:5px 12px}.rlz-chat .chat-header h2{font-size:.9375rem}.rlz-chat .chat-minimize{height:34px;width:34px}
