.olchat-root{position:fixed;inset:auto 16px 16px auto;z-index:9999;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}
.olchat-launcher{width:56px;height:56px;border-radius:50%;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 30% 0%,#00ff5a,#0fa4a2);box-shadow:0 8px 20px rgba(0,0,0,.6);padding:0;transition:transform .15s ease,box-shadow .15s ease}
.olchat-launcher:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(0,0,0,.7)}
.olchat-launcher img{width:70%;height:70%;border-radius:50%;object-fit:cover}
.olchat-window{position:fixed;right:16px;bottom:84px;width:320px;max-width:calc(100% - 32px);max-height:480px;background:#111217;border-radius:18px;box-shadow:0 18px 40px rgba(0,0,0,.9);display:flex;flex-direction:column;overflow:hidden;opacity:0;pointer-events:none;transform:translateY(12px);transition:opacity .18s ease,transform .18s ease}
.olchat-window.olchat-open{opacity:1;pointer-events:auto;transform:translateY(0)}
.olchat-header{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #262837;background:linear-gradient(120deg,#141622,#1c1f2d)}
.olchat-header-left{display:flex;align-items:center;gap:8px}
.olchat-avatar-wrap{width:32px;height:32px;border-radius:50%;overflow:hidden;flex-shrink:0;border:2px solid #00ff5a}
.olchat-avatar-wrap img{width:100%;height:100%;object-fit:cover}
.olchat-header-text{display:flex;flex-direction:column}
.olchat-title{font-size:13px;font-weight:600}
.olchat-subtitle{font-size:11px;color:#9da3b4}
.olchat-close{border:none;background:transparent;color:#9da3b4;font-size:18px;cursor:pointer;padding:0 4px}
.olchat-messages{flex:1;overflow-y:auto;padding:10px 10px 6px;background:radial-gradient(circle at 0 0,#22293a 0,transparent 45%),radial-gradient(circle at 100% 100%,#151827 0,transparent 50%),#0c0d12}
.olchat-messages-inner{display:flex;flex-direction:column;gap:6px}
.olchat-message{display:flex;max-width:90%}
.olchat-message-bot{justify-content:flex-start}
.olchat-message-user{justify-content:flex-end}
.olchat-bubble{padding:7px 10px;border-radius:12px;font-size:12px;line-height:1.4;border:1px solid transparent;word-wrap:break-word;white-space:pre-wrap}
.olchat-message-bot .olchat-bubble{background:rgba(22,24,38,.95);border-color:#272b3c;border-bottom-left-radius:3px;color:#eaeef5}
.olchat-message-user .olchat-bubble{background:#00ff5a;border-color:#00ff5a;border-bottom-right-radius:3px;color:#02030a}
.olchat-meta{font-size:10px;color:#707791;margin-top:2px}
.olchat-input-row{display:flex;align-items:center;gap:6px;padding:8px 8px 8px;border-top:1px solid #262837;background:#0f1119}
.olchat-input-row input[type=text]{flex:1;border-radius:999px;border:1px solid #262837;background:#151827;color:#eaeef5;font-size:12px;padding:7px 10px;outline:none}
.olchat-input-row input[type=text]::placeholder{color:#555b6d}
.olchat-input-row button[type=submit]{border-radius:999px;border:none;padding:7px 12px;font-size:12px;font-weight:600;cursor:pointer;background:#00ff5a;color:#02030a;transition:background .12s ease,transform .12s ease}
.olchat-input-row button[type=submit]:hover{background:#24ff76;transform:translateY(-1px)}
.olchat-typing{display:inline-flex;align-items:center;gap:2px}
.olchat-dot{width:4px;height:4px;border-radius:50%;background:#9da3b4;animation:olchat-bounce 1.1s infinite ease-in-out}
.olchat-dot:nth-child(2){animation-delay:.15s}
.olchat-dot:nth-child(3){animation-delay:.3s}
@keyframes olchat-bounce{0%,80%,100%{transform:scale(0)}40%{transform:scale(1)}}
@media (max-width:480px){
  .olchat-window{right:8px;bottom:76px;width:calc(100% - 16px);max-height:60vh}
  .olchat-launcher{right:8px;bottom:8px}
}

/* Edge chatbot additions (spec/75 §9.5): disclaimer note and thumbs under a bot reply. */
.olchat-note{font-size:11px;opacity:.7;padding:0 12px 10px;color:inherit}
.olchat-rate{display:flex;gap:6px;margin:4px 0 8px 4px}
.olchat-rate button{width:24px;height:24px;padding:0;border:1px solid rgba(255,255,255,.25);border-radius:6px;background:transparent;color:inherit;cursor:pointer;font-size:13px;line-height:22px}
.olchat-rate button:hover{border-color:#00ff5a}
.olchat-rate-up{}
.olchat-rate-down{}
.olchat-rate-done{font-size:11px;opacity:.7}
.olchat-bubble a{color:#00ff5a}
