.mol-chat{--mol-lilac:#514786;position:fixed;inset:auto 22px 22px auto;width:min(384px,calc(100vw - 32px));height:min(548px,calc(100vh - 118px));height:min(548px,calc(100dvh - 118px));z-index:120;display:flex;flex-direction:column;overflow:hidden;background:#fbfcff;border:1px solid #dce1ef;border-radius:22px;box-shadow:0 20px 65px #35415f24,0 2px 10px #4540690a;color:#46516c;font:13px/1.7 "PingFang SC","Microsoft YaHei",sans-serif}.mol-chat[hidden]{display:none}.mol-chat *{box-sizing:border-box}.mol-chat .mol-chat-header{flex-shrink:0;display:flex;align-items:center;gap:11px;padding:15px 17px;background:linear-gradient(115deg,#f0f3fb,#f6f2fc 72%,#edf2fc);border-bottom:1px solid #e3e5f0;position:relative}.mol-chat-header::after{content:"";position:absolute;inset:auto 22px -1px;height:1px;background:linear-gradient(90deg,transparent,#aaa3d1,transparent)}.mol-avatar{display:block;width:43px;height:43px;flex-shrink:0;border-radius:50%;background:#fff url('../assets/mol-character-reference.png') 78% 14%/190px auto no-repeat;border:2px solid white;box-shadow:0 0 0 1px #dadbed}.mol-chat .mol-heading{flex:1;min-width:0}.mol-chat .mol-heading-line{display:flex;align-items:center;gap:8px}.mol-chat .mol-heading strong{color:#45416f;font-size:16px;font-weight:600;letter-spacing:1px}.mol-chat .mol-heading small{display:block;font-size:10px;color:#8991a9;letter-spacing:.4px;margin-top:1px}.mol-chat .mol-bow{width:20px;height:17px;stroke:#7466aa;fill:#e1daf6;stroke-width:1.2}.mol-chat .mol-close{display:flex;align-items:center;justify-content:center;width:29px;height:29px;padding:0;border:1px solid #e0e2ef;border-radius:50%;background:#ffffffa6;color:#8285a3;font-size:21px;line-height:1;cursor:pointer}.mol-chat .mol-close:hover{background:white;color:var(--mol-lilac)}.mol-messages{flex:1;min-height:80px;overflow:auto;overscroll-behavior:contain;padding:18px 15px;display:flex;flex-direction:column;gap:14px;scrollbar-width:thin;scrollbar-color:#d6d9e8 transparent;background:radial-gradient(ellipse at 0 0,#eeeffa75,transparent 68%),#f8faff}.mol-message{display:flex;align-items:flex-start;gap:8px;flex-shrink:0}.mol-message .mol-avatar{width:27px;height:27px;background-size:124px auto;border-width:1px;margin-top:2px}.mol-message.mine{justify-content:flex-end}.mol-bubble{max-width:calc(100% - 38px);padding:10px 13px;background:white;border:1px solid #e4e6f0;border-radius:4px 15px 15px 15px;box-shadow:0 3px 10px #4b507607;white-space:pre-wrap;overflow-wrap:anywhere;color:#5b6380;font-size:12px;line-height:1.85}.mol-message.mine .mol-bubble{background:linear-gradient(125deg,#eeedf9,#e7edf9);border-color:#dfe0f1;border-radius:15px 4px 15px 15px;color:#4d5277}.mol-chat .mol-status{flex-shrink:0;padding:8px 16px;margin:0;border-top:1px solid #ebeaf3;background:#f5f4fc;font-size:11px;line-height:1.6;color:#797194;overflow-wrap:anywhere}.mol-chat .mol-status:empty{display:none}.mol-chat .mol-compose{flex-shrink:0;padding:11px 15px 13px;background:#fff;border-top:1px solid #e5e6f0}.mol-chat textarea{display:block;width:100%;height:60px;min-height:60px;max-height:100px;resize:none;border:1px solid #dfe2ef;border-radius:13px;padding:10px 12px;font-family:inherit;font-size:12px;line-height:1.7;background:#f9faff;color:inherit;outline:none}.mol-chat textarea:focus{border-color:#aaa1d0;box-shadow:0 0 0 3px #ebe6fa80}.mol-chat textarea::placeholder{color:#9a9db3}.mol-chat .mol-handoff-hint{margin:8px 1px;color:#9295a8;font-size:10px;line-height:1.8}.mol-chat .mol-handoff-hint span{color:#7a709b}.mol-chat .policy-consent-line{display:flex;align-items:flex-start;gap:6px;margin:7px 0 0;font-size:10px;line-height:1.6;color:#9498ac}.mol-chat .policy-consent-line input{width:12px;height:12px;flex-shrink:0;margin:2px 0;accent-color:#766b9f}.mol-chat .policy-consent-line a{color:#79759f;text-decoration:underline;text-underline-offset:2px}.mol-chat .mol-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}.mol-chat .mol-tools small{font-size:10px;color:#a1a5b7}.mol-chat .mol-send{min-height:31px;padding:6px 16px;display:flex;gap:9px;align-items:center;justify-content:center;background:#686294;color:white;border:1px solid #625b90;border-radius:10px;font-family:inherit;font-size:11px;cursor:pointer;box-shadow:0 3px 8px #5b517e16}.mol-chat .mol-send:hover{background:#595285}.mol-chat .mol-send:disabled{opacity:.55;cursor:wait}.mol-chat .mol-send svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:1.5}.mol-chat button:focus-visible{outline:2px solid #9b90c5;outline-offset:3px}@media(max-width:650px){.mol-chat{inset:auto 12px 12px auto;width:calc(100% - 24px);height:min(530px,calc(100vh - 86px));height:min(530px,calc(100dvh - 86px));border-radius:19px}.mol-chat .mol-chat-header{padding:13px 15px}.mol-chat .mol-compose{padding:10px 13px 12px}}@media(prefers-reduced-motion:no-preference){.mol-chat:not([hidden]){animation:mol-chat-in .18s ease-out}@keyframes mol-chat-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}}

.mol-chat .mol-bubble{background:linear-gradient(145deg,#fff,#faf9ff);border-radius:5px 17px 17px 17px;box-shadow:0 4px 14px #57517e08;font-size:13px;line-height:1.85}.mol-chat .mol-message.mine .mol-bubble{background:linear-gradient(125deg,#e9e6f8,#e5edfc);border-color:#d9d8ee;border-radius:17px 5px 17px 17px}.mol-chat .mol-heading{padding-block:6px}
