/* Blog assistant widget — inherits blog.css variables */
.cba-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 50;
  background: var(--gold); color: #2a1d04; border: none; cursor: pointer;
  font-family: "Inter", system-ui, sans-serif; font-weight: 600; font-size: 15px;
  padding: 12px 20px; border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
.cba-btn:hover { opacity: .93; }
.cba-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 51;
  width: min(380px, calc(100vw - 32px)); height: min(520px, calc(100vh - 40px));
  display: flex; flex-direction: column;
  background: #171634; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); overflow: hidden;
}
.cba-head {
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 20px; color: var(--gold);
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
}
.cba-close { background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1; cursor: pointer; }
.cba-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cba-msg { font-family: "Inter", system-ui, sans-serif; font-size: 14.5px; line-height: 1.55; max-width: 92%; padding: 10px 13px; border-radius: 14px; }
.cba-bot { background: var(--card); color: var(--text); align-self: flex-start; border: 1px solid rgba(255,255,255,.07); }
.cba-user { background: var(--violet); color: #fff; align-self: flex-end; }
.cba-msg a { color: var(--gold); }
.cba-list { margin: 6px 0 0; padding-left: 18px; }
.cba-list li { margin: 4px 0; }
.cba-src { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.cba-typing { letter-spacing: 3px; color: var(--muted); }
.cba-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid rgba(255,255,255,.08); }
.cba-input {
  flex: 1; padding: 11px 14px; font-size: 14.5px; font-family: "Inter", system-ui, sans-serif;
  color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: 12px; outline: none;
}
.cba-input:focus { border-color: var(--gold); }
.cba-send { background: var(--gold); color: #2a1d04; border: none; border-radius: 12px; padding: 0 16px; font-weight: 600; cursor: pointer; }
.cba-panel[hidden], .cba-btn[hidden] { display: none; }
