.hero-chat{position:absolute;z-index:3;top:calc(var(--hero-header-height) + var(--hero-nav-height) + 26px);left:max(24px,calc((100% - 1240px)/2));width:300px;max-width:calc(100% - 32px);color:#eff0f6;background:#111722b8;border:1px solid #ffffff30;box-shadow:0 8px 32px #0002;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);font:400 13px/1.45 var(--body);text-align:left}
.hero-chat [hidden]{display:none!important}
.chat-heading{display:flex;align-items:center;justify-content:space-between;min-height:44px;padding:0 7px 0 14px;border-bottom:1px solid #ffffff18}
.chat-heading h2{display:flex;align-items:center;gap:8px;margin:0!important;font:600 15px/1.2 var(--display)!important;color:#fff!important;letter-spacing:.3px}
.chat-heading h2 svg{width:17px;height:17px;fill:none;stroke:var(--accent);stroke-width:1.5}
.hero-chat button{cursor:pointer;font:inherit}
#chat-toggle{display:grid;place-items:center;width:34px;height:34px;background:transparent;border:0;color:#e1e3ec}
#chat-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5}
#chat-toggle[aria-expanded=true] .chat-expand-stroke{display:none}
.hero-chat button:hover{background:#ffffff14}
.hero-chat :is(a,button,input):focus-visible{outline:2px solid var(--accent);outline-offset:-2px}
.chat-messages{height:202px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#ffffff40 transparent;padding:10px 13px;overflow-wrap:anywhere}
.chat-empty{margin:0;min-height:100%;display:grid;place-content:center;text-align:center;color:#c5c9d4;font-size:13px}
.chat-message{position:relative;padding:4px 0 7px;margin:0;line-height:1.4;word-break:break-word}
.chat-message+.chat-message{border-top:1px solid #ffffff0b;padding-top:7px}
.chat-message-head{display:flex;align-items:center;gap:7px;min-width:0;margin-bottom:3px}
.chat-author{display:inline-flex;align-items:center;gap:7px;min-width:0;font-weight:600;color:#e1d4fa;text-decoration:none;max-width:185px}
.chat-author-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-avatar{position:relative;display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;overflow:hidden;border-radius:50%;background:#e1d4fa20;border:1px solid #ffffff35;color:#f1eaff;font:600 11px/1 var(--body)}
.chat-avatar-image{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:inherit;object-fit:cover}
:root[data-theme=light] .chat-author{color:#f6d995}
.chat-time{font-size:10px;color:#b1b7c6;margin-left:auto;white-space:nowrap}
.chat-body{margin:0;color:#f3f3f7;white-space:pre-wrap;unicode-bidi:plaintext}
.chat-delete{display:grid;place-items:center;flex:none;width:22px;height:22px;padding:2px;border:0;background:transparent;color:#c2c5d0}
.chat-delete svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.5}
.chat-form{display:flex;gap:4px;align-items:center;margin:0;padding:7px;border-top:1px solid #ffffff20;background:#080d161f}
.chat-form input{min-width:0;flex:1;width:100%;height:36px;padding:7px;background:transparent;border:0;border-radius:0;font:400 14px/1.3 var(--body);color:#fff;box-shadow:none}
.chat-form input::placeholder{color:#c2c6d2;opacity:1}
.chat-form input:disabled{opacity:.6}
.chat-form button{display:grid;place-items:center;flex:none;width:36px;height:36px;border:1px solid #ffffff25;background:#ffffff08;color:var(--accent)}
.chat-form button:disabled{opacity:.4;cursor:default}
.chat-form svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linejoin:round}
.chat-login{display:block;padding:13px;text-align:center;border-top:1px solid #ffffff20;color:#e7dcfa;font-size:13px;text-decoration:none}
.chat-login:hover{background:#ffffff10;color:#fff}
:root[data-theme=light] .chat-login{color:#f6d995}
.chat-status{margin:0;padding:7px 12px;color:#f2d4aa;font-size:12px;line-height:1.4}
.chat-status:empty{display:none}
.chat-retry{display:block;margin:0 12px 10px;padding:5px 10px;color:#fff;background:#ffffff10;border:1px solid #ffffff35}
.hero-chat.is-collapsed{width:184px}
.hero-chat.is-collapsed .chat-heading{border-bottom:0}
@media(max-width:900px){.hero-chat{top:18px;left:18px;width:280px}}
@media(max-width:600px){.hero-chat{top:12px;left:12px;width:248px}.chat-heading{min-height:38px}.chat-messages{height:142px;padding:7px 10px}.chat-form{padding:5px}.chat-form input{font-size:16px}.chat-author{max-width:150px}.chat-login{padding:10px}.hero-chat.is-collapsed{width:166px}}
