:root {
  --james-accent: #00d4b8;
}
#james-chatbot-root, .james-chatbot-inline {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
.james-bubble {
  position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--james-accent); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,0.25); z-index: 999999; border: none;
}
.james-bubble svg { width: 26px; height: 26px; fill: #fff; }
.james-panel {
  position: fixed; right: 20px; bottom: 88px; width: 340px; max-width: calc(100vw - 32px);
  height: 460px; max-height: calc(100vh - 140px); background: #fff; border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25); display: none; flex-direction: column; overflow: hidden;
  z-index: 999999;
}
.james-panel.james-open { display: flex; }
.james-chatbot-inline .james-panel {
  position: static; display: flex; width: 100%; max-width: 480px; height: 520px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12); border: 1px solid #e5e7eb;
}
.james-header {
  background: var(--james-accent); color: #fff; padding: 12px 14px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.james-close { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; line-height: 1; }
.james-messages {
  flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px;
  background: #f8f9fb;
}
.james-msg {
  max-width: 85%; padding: 8px 12px; border-radius: 12px; font-size: 14px; line-height: 1.4;
  white-space: pre-wrap; word-wrap: break-word;
}
.james-msg.user { align-self: flex-end; background: var(--james-accent); color: #fff; border-bottom-right-radius: 2px; }
.james-msg.assistant { align-self: flex-start; background: #fff; color: #111; border: 1px solid #e5e7eb; border-bottom-left-radius: 2px; }
.james-msg.error { align-self: center; background: #fee2e2; color: #991b1b; font-size: 12px; }
.james-typing { align-self: flex-start; font-size: 12px; color: #888; padding: 0 4px; }
.james-inputbar { display: flex; border-top: 1px solid #e5e7eb; padding: 8px; gap: 6px; }
.james-input { flex: 1; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-size: 14px; resize: none; font-family: inherit; }
.james-send { background: var(--james-accent); color: #fff; border: none; border-radius: 8px; padding: 0 14px; cursor: pointer; font-size: 14px; }
.james-send:disabled { opacity: 0.5; cursor: default; }
/* Authenticae brand */
:root{--james-accent:#24382B}
#james-chatbot-root,.james-chatbot-inline{font-family:'Schibsted Grotesk',system-ui,sans-serif}
.james-bubble{box-shadow:0 6px 20px rgba(27,30,25,.35);border:2px solid #F2F3EE}
.james-bubble:hover{background:#1B1E19}
.james-panel{border-radius:10px;background:#F2F3EE}
.james-header{font-weight:600}
.james-header span:before{content:"";display:inline-block;width:8px;height:8px;border-radius:50%;background:#A8692F;margin-right:9px}
.james-messages{background:#F2F3EE}
.james-msg.assistant{background:#fff;border-color:rgba(27,30,25,.14);color:#1B1E19}
.james-input{border-color:#1B1E19}
.james-input:focus-visible,.james-send:focus-visible,.james-bubble:focus-visible,.james-close:focus-visible{outline:3px solid #A8692F;outline-offset:2px}
.james-msg.human{border-left:3px solid #A8692F}
