.reference-chat{--chat-green:#79b69c;--chat-green-dark:#619b82;background:#fff;color:#15191d;padding:24px;min-height:100dvh;justify-content:center;font-family:Arial,"Microsoft YaHei","PingFang SC",sans-serif}
.reference-chat .customer-shell{width:min(100%,740px);height:min(640px,calc(100dvh - 48px));min-height:420px;border:0;border-radius:8px;background:#fff;box-shadow:0 4px 12px #00000020;overflow:hidden}
.customer-titlebar{height:44px;flex-shrink:0;padding:0 20px;display:flex;align-items:center;justify-content:space-between;background:var(--chat-green);color:#fff}
.customer-titlebar h1{font-size:18px;font-weight:400;line-height:1.3}
.customer-titlebar button{display:none;background:transparent;color:#fff;padding:8px;border-radius:4px}
.customer-titlebar svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.customer-body{display:flex;flex:1;min-height:0;position:relative}
.chat-column{display:flex;flex-direction:column;min-height:0;min-width:0;flex:1}
.reference-chat .messages{padding:16px;background:#fff;scrollbar-color:#919191 #fff;scrollbar-width:thin}
.welcome-note{max-width:78%;margin:0 0 24px;color:#14181d}
.welcome-note>span{display:block;font-size:12px;color:#6b7280;margin-bottom:7px}
.welcome-note>div{background:#e5e7eb;padding:12px;border-radius:8px;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
.reference-chat .date-divider{font-size:11px;color:#8b9097;margin:14px 0}
.reference-chat .message-row{margin-bottom:18px;gap:7px;align-items:flex-start}
.reference-chat .message-stack{max-width:82%;gap:5px}
.reference-chat .bubble-avatar{display:none}
.reference-chat .message-author{font-size:12px;color:#666;padding:0}
.reference-chat .bubble{font-size:15px;line-height:1.6;border:0;box-shadow:none;border-radius:8px;background:#e5e7eb;padding:11px 12px}
.reference-chat .own .bubble{background:var(--chat-green);color:#fff;border-radius:8px}
.reference-chat .message-time{font-size:10px;color:#8c9096;margin:0}
.reference-chat .message-image{max-width:min(260px,100%);max-height:300px;border-radius:4px}
.reference-chat .composer{border-top:1px solid #e7e7e7;padding:7px 16px 6px;background:#fff}
.reference-chat .composer-tools{height:22px;gap:8px;margin:0 0 4px}
.reference-chat .tool-button{height:22px;width:20px;padding:0;color:#777e87;background:none;border-radius:3px}
.reference-chat .tool-button:hover{color:var(--chat-green-dark);background:#f2f7f4}
.reference-chat .tool-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
#character-count{font-size:11px;color:#6b7280;margin-left:auto;font-variant-numeric:tabular-nums}
.reference-chat .input-row{gap:8px;align-items:flex-end;min-height:48px}
.reference-chat .input-row textarea{border:0;border-radius:0;background:#fff;min-height:48px;height:48px;max-height:80px;font-size:14px;line-height:1.5;padding:1px 0;box-shadow:none}
.reference-chat .input-row textarea::placeholder{color:#a1a1aa}
.reference-chat .input-row textarea:focus-visible{outline:0;box-shadow:0 1px 0 var(--chat-green)}
.reference-chat .send-button{width:32px;height:32px;padding:6px;flex-shrink:0;border-radius:50%;background:var(--chat-green);color:white;margin-bottom:2px}
.reference-chat .send-button:hover{background:var(--chat-green-dark)}
.reference-chat .send-button svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.reference-chat .input-footnote{font-size:9px;line-height:12px;color:#a0a4a9;margin-top:3px}
.reference-chat .emoji-panel{bottom:104px;left:12px;max-width:290px;flex-wrap:wrap;gap:2px;padding:8px}
.reference-chat .emoji-panel button{font-size:22px;width:32px;height:32px;padding:2px}
.reference-chat button:focus-visible{outline-color:#426f5d}
.reference-chat .expired-bar{padding:12px;flex-direction:column;gap:10px}
.reference-chat .primary{background:var(--chat-green-dark)}
.profile-panel{width:240px;flex-shrink:0;border-left:1px solid #e5e5e5;background:#fff;color:#20252b;overflow:auto;outline:none}
.profile-heading{height:44px;display:flex;align-items:center;justify-content:center;border-bottom:2px solid #4fb67e;position:relative}
.profile-heading h2{font-size:14px;font-weight:400}
.profile-heading button{display:none}
.profile-person{padding:24px 16px 20px;text-align:center;border-bottom:1px solid #e5e5e5}
.profile-person img{display:block;margin:0 auto 12px;border-radius:9px;box-shadow:0 2px 5px #00000016}
.profile-person strong{display:block;font-size:14px;font-weight:400;margin-bottom:8px}
.profile-person p{font-size:11px;color:#8b939d;line-height:1.7}
.profile-status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--chat-green);margin-right:5px;vertical-align:2px}
.profile-details{margin:0;padding:18px 20px;font-size:12px;line-height:1.8}
.profile-details>div+div{margin-top:15px}
.profile-details dt{color:#9298a1;margin-bottom:2px}
.profile-details dd{margin:0;color:#505961;font-variant-numeric:tabular-nums}
.profile-tip{margin:4px 20px 20px;color:#9b9fa6;font-size:11px;line-height:1.9}
.profile-backdrop{display:none}
@media(max-width:760px){
.reference-chat{padding:0;background:#fff;min-height:100dvh;justify-content:flex-start}
.reference-chat .customer-shell{width:100%;height:100dvh;min-height:0;border-radius:0;box-shadow:none}
.customer-titlebar{height:44px;padding:0 16px;min-height:44px}
.customer-titlebar h1{font-size:17px}
.customer-titlebar button{display:flex;align-items:center;justify-content:center}
.reference-chat .messages{padding:12px 16px}
.reference-chat .welcome-note{max-width:82%}
.reference-chat .message-stack{max-width:84%}
.reference-chat .composer{padding:7px 16px max(7px,env(safe-area-inset-bottom))}
.reference-chat .message-image{max-width:min(260px,67vw)}
.reference-chat .input-footnote{font-size:8px}
.profile-panel{display:none;position:fixed;right:0;top:0;bottom:0;height:100dvh;width:min(240px,84vw);z-index:20;border-left:0;box-shadow:-5px 0 20px #0000000c}
.profile-open .profile-panel{display:block}
.profile-open .profile-backdrop{display:block;position:fixed;inset:0;background:#0005;z-index:19;border:0;padding:0}
.profile-heading button{display:block;position:absolute;right:8px;top:7px;background:none;color:#7b8189;width:30px;height:30px;font-size:21px}
}
