#chatBtn{position:fixed;right:16px;bottom:16px;z-index:9998;min-height:56px;padding:0 22px;border-radius:28px;border:0;background:#0f172a;color:#fff;font:600 18px/1 inherit;box-shadow:0 4px 14px rgba(0,0,0,.3);cursor:pointer}
#chatBtn .dot{display:none;width:12px;height:12px;border-radius:6px;background:#ef4444;margin-left:8px;vertical-align:middle}
#chatBtn.new .dot{display:inline-block}
#chatPanel{position:fixed;right:16px;bottom:84px;z-index:9999;width:min(420px,calc(100vw - 32px));height:min(620px,calc(100dvh - 110px));background:#fff;border:1px solid #cbd5e1;border-radius:12px;box-shadow:0 8px 30px rgba(0,0,0,.3);display:none;flex-direction:column;font-family:inherit}
#chatPanel.open{display:flex}
#chatHead{padding:14px 16px;border-bottom:1px solid #e2e8f0;font-weight:700;font-size:19px;display:flex;justify-content:space-between;align-items:center}
#chatHead button{border:0;background:none;font-size:28px;line-height:1;min-width:44px;min-height:44px;cursor:pointer}
#chatList{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:10px;background:#f8fafc}
.cm{max-width:88%;padding:10px 14px;border-radius:8px;font-size:18px;line-height:1.5;white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere}
.cm.dad{align-self:flex-end;background:#dbeafe}
.cm.edith{align-self:flex-start;background:#fff;border:1px solid #e2e8f0}
.cm small{display:block;margin-top:4px;font-size:15px;color:#475569}
#chatEmpty{margin:auto;text-align:center;font-size:18px;color:#475569;padding:20px}
#chatForm{display:flex;gap:8px;padding:10px;border-top:1px solid #e2e8f0}
#chatInput{flex:1;min-height:52px;max-height:120px;font-size:18px;padding:10px;border:1px solid #94a3b8;border-radius:8px;resize:none;font-family:inherit}
#chatSend{min-width:76px;min-height:52px;border:0;border-radius:8px;background:#0f172a;color:#fff;font-size:18px;font-weight:600;cursor:pointer}
#chatSend:disabled{opacity:.5}
