.cb-toggle { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; align-items: center; gap: 0.5rem; padding: 0.8rem 1.1rem; border-radius: 9999px;
  background: var(--color-primary); color: #0D1117; font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; box-shadow: 0 10px 30px rgba(0,201,212,0.35); transition: transform 180ms; }
.cb-toggle:hover { transform: translateY(-2px); }
.cb-toggle svg { width: 20px; height: 20px; }
.cb-panel { position: fixed; right: 20px; bottom: 84px; z-index: 201; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100dvh - 110px)); display: none; flex-direction: column;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.cb-panel.open { display: flex; }
.cb-head { display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1rem; border-bottom: 1px solid var(--color-border); background: var(--color-surface-2); }
.cb-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--color-primary-glow); color: var(--color-primary); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.cb-title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.cb-status { font-size: 0.75rem; color: var(--color-text-muted); }
.cb-close { margin-left: auto; color: var(--color-text-muted); font-size: 1.4rem; line-height: 1; padding: 0.2rem 0.4rem; }
.cb-body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.cb-msg { max-width: 85%; padding: 0.6rem 0.85rem; border-radius: 14px; font-size: 0.9rem; line-height: 1.5; white-space: pre-wrap; }
.cb-msg--bot { background: var(--color-surface-2); border: 1px solid var(--color-border); align-self: flex-start; }
.cb-msg--me { background: var(--color-primary); color: #0D1117; align-self: flex-end; }
.cb-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.cb-chip { font-size: 0.8rem; padding: 0.35rem 0.7rem; border: 1px solid var(--color-border); border-radius: 9999px; color: var(--color-text); }
.cb-chip:hover { border-color: var(--color-primary); color: var(--color-primary); }
.cb-typing { display: inline-flex; gap: 4px; }
.cb-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-muted); animation: cbdot 1s infinite; }
.cb-typing span:nth-child(2) { animation-delay: .15s } .cb-typing span:nth-child(3) { animation-delay: .3s }
@keyframes cbdot { 0%, 80%, 100% { opacity: .3 } 40% { opacity: 1 } }
.cb-form { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--color-border); }
.cb-input { flex: 1; background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 10px; padding: 0.6rem 0.8rem; color: var(--color-text); font: inherit; font-size: 0.9rem; }
.cb-input:focus { outline: none; border-color: var(--color-primary); }
.cb-send { background: var(--color-primary); color: #0D1117; border-radius: 10px; padding: 0 0.9rem; font-weight: 600; }
.cb-send:disabled { opacity: .5; }
@media (max-width: 520px) { .cb-toggle span { display: none; } .cb-panel { right: 12px; bottom: 80px; } }
