/* The homepage chat. Built from the page's own parts: the paper pill of
   .button, Geist, the dark contact ground, hairlines instead of shadows. */
.chat{position:fixed;z-index:40;right:var(--gutter);bottom:24px;display:flex;flex-direction:column;align-items:flex-end;gap:12px;font-family:Geist,Arial,sans-serif}
.codera-loading .chat{visibility:hidden}
.chat-launcher{display:inline-flex;align-items:center;gap:22px;min-height:52px;padding:14px 22px;border:1px solid #15151326;border-radius:999px;background:var(--paper);color:var(--ink);font-size:15px;font-weight:500;line-height:1.3;transition:background .2s}
.chat-launcher:hover{background:#d4d0c5}
.chat-launcher-icon{font-size:22px;line-height:1;transition:transform .2s}
.chat.is-open .chat-launcher-icon{transform:rotate(90deg)}
.chat-panel{width:min(400px,calc(100vw - 2 * var(--gutter)));max-height:min(600px,calc(100svh - 120px));display:flex;flex-direction:column;background:#1a1a17;color:var(--white);border:1px solid #55544c;border-radius:24px;overflow:hidden}
.chat-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:20px 22px 16px;border-bottom:1px solid #55544c}
.chat-title{font-size:24px;letter-spacing:-.04em;line-height:1.1}
.chat-close{width:44px;height:44px;flex-shrink:0;border:1px solid #6f6d63;border-radius:50%;background:none;font-size:22px;line-height:1}
.chat-log{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px;display:flex;flex-direction:column;gap:10px}
.chat-msg{max-width:88%;padding:11px 15px;border-radius:18px;font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere}
.chat-bot{align-self:flex-start;background:#252521;border-bottom-left-radius:6px}
.chat-user{align-self:flex-end;background:var(--paper);color:var(--ink);border-bottom-right-radius:6px}
.chat-msg.is-pending{color:#b0aea5}
.chat-form{display:flex;align-items:end;gap:10px;padding:12px 22px;border-top:1px solid #55544c}
.chat-input{flex:1;min-height:44px;max-height:120px;border:0;border-bottom:1px solid #6f6d63;background:transparent;color:var(--white);padding:11px 0;font-size:16px;line-height:1.4;resize:none}
.chat-input::placeholder{color:#b0aea5;opacity:1}
.chat-input:focus{outline:none;border-bottom-color:#d4d0c5}
.chat-send{min-height:44px;padding:10px 18px;border:0;border-radius:999px;background:var(--paper);color:var(--ink);font-size:14px;font-weight:500}
.chat-send:disabled{opacity:.6}
.chat-note{padding:0 22px 16px;font-size:12px;line-height:1.5;color:#c4c1b8}
.chat-note a{border-bottom:1px solid currentColor}
.chat-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(max-width:700px){.chat{bottom:16px}.chat-launcher{min-height:46px;padding:11px 17px;font-size:14px;gap:14px}.chat-panel{max-height:calc(100svh - 100px)}}
