.chat-launch{position:fixed;bottom:22px;right:22px;z-index:90;background:#57172b;color:#fff;border:1px solid #b49a60;border-radius:28px;padding:14px 22px;font:600 16px 'Segoe UI',sans-serif;box-shadow:0 6px 24px #351b3e33;cursor:pointer}
.chat-panel{position:fixed;right:22px;bottom:84px;width:380px;max-width:calc(100vw - 24px);height:560px;max-height:calc(100dvh - 108px);z-index:91;background:#f7f4ef;color:#351b3e;border:1px solid #b49a60;border-radius:18px;box-shadow:0 12px 48px #351b3e40;display:flex;flex-direction:column;font:16px/1.5 'Segoe UI',sans-serif;overflow:hidden;text-align:left}
.chat-panel[hidden]{display:none}.chat-head{background:#351b3e;color:#fff;padding:16px;display:flex;justify-content:space-between;align-items:center}.chat-head strong{display:block}.chat-head small{font-size:12px;color:#eee}.chat-close{background:transparent;color:white;border:1px solid #ffffff66;border-radius:8px;font-size:24px;cursor:pointer;padding:0 10px}.chat-log{padding:16px;overflow:auto;flex:1;overscroll-behavior:contain}.chat-msg{padding:12px 14px;background:#ebe6df;border-radius:12px;margin:0 0 12px;white-space:pre-line;overflow-wrap:anywhere}.chat-msg.user{background:#57172b;color:white;margin-left:32px}.chat-choices{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 18px}.chat-choices button,.chat-reset{font:inherit;color:#57172b;background:#fff;border:1px solid #57172b55;border-radius:9px;padding:9px 12px;cursor:pointer;text-align:left}.chat-choices button:hover,.chat-choices button:focus-visible{background:#57172b;color:white}.chat-foot{padding:10px 16px;border-top:1px solid #b49a6066;font-size:12px}.chat-foot p{margin:4px 0}.chat-reset{font-size:13px;padding:5px 9px}.chat-launch:hover{background:#351b3e;transform:translateY(-2px)}.chat-panel button:focus-visible,.chat-launch:focus-visible{outline:3px solid #b49a60;outline-offset:3px}
@media(max-width:480px){.chat-launch{right:12px;bottom:12px}.chat-panel{right:12px;bottom:74px;max-height:calc(100dvh - 90px);width:calc(100vw - 24px)}}@media(prefers-reduced-motion:reduce){.chat-launch:hover{transform:none}}
.chat-panel{padding:0;max-width:calc(100% - 24px)}@media(max-width:480px){.chat-panel{width:calc(100% - 24px)}}
.chat-head,.chat-foot,.chat-compose{flex-shrink:0}.chat-log{min-height:0}.chat-compose{padding:10px 16px;border-top:1px solid #b49a6066}.chat-compose label{display:block;font-size:13px;font-weight:600;margin-bottom:5px}.chat-compose>div{display:flex;gap:8px}.chat-compose input{min-width:0;width:100%;font:16px Segoe UI,sans-serif;padding:10px;border:1px solid #93818f;border-radius:8px;background:white;color:#351b3e}.chat-compose button{font:600 14px Segoe UI,sans-serif;background:#57172b;color:white;padding:8px 12px;border:0;border-radius:8px;cursor:pointer}.chat-compose small{font-size:11px}.chat-compose input:focus-visible{outline:3px solid #b49a60;outline-offset:1px}

.chat-panel{height:500px}.chat-compose label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.chat-actions{display:flex;justify-content:space-between;gap:12px;align-items:center}.chat-actions button{font:13px/1.4 'Segoe UI',sans-serif;background:none;border:0;border-radius:3px;padding:3px 0;color:#57172b;text-decoration:underline;text-underline-offset:3px;cursor:pointer}.chat-foot{padding:8px 16px 12px}.chat-foot p{font-size:11px;line-height:1.4;margin-top:7px;color:#655d61}.chat-compose{padding:12px 16px}.chat-compose button:disabled{opacity:.6;cursor:wait}
