/* Capri — apparence du ChatBot (onglet ChatBot). Verre sobre, comme le reste de l'app. */
.cp-av { width: 30px; height: 30px; border-radius: 9px; flex: none; object-fit: cover; box-shadow: 0 4px 12px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 255, 255, .12); }
.cp-av.sm { width: 32px; height: 32px; }
.cp-av.lg { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 12px 34px rgba(0, 0, 0, .45), 0 0 40px rgba(240, 90, 90, .18); }
.cp-top { gap: 10px; }
.cp-name { display: grid; line-height: 1.15; }
.cp-name small { font-size: 11px; color: var(--ink-2); font-weight: 500; }
.cp-new { position: absolute; right: 16px; }
.cp-new svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.cp-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; animation: msg-in .32s var(--ease) backwards; }
.cp-row .msg { max-width: none; min-width: 0; }
.cp-msg { gap: 8px; }
.cp-src { font-size: 10.5px; color: var(--ink-2); display: flex; align-items: center; gap: 5px; }
.cp-src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #7fb0ff; }
.cp-src.deduit::before { background: #f2a2b3; }

/* Œuvres proposées : liste numérotée, chaque ligne ouvre la fiche */
.cp-cards { display: grid; gap: 6px; }
.cp-card { display: flex; gap: 10px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 14px; text-align: left; color: inherit;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: transform .25s var(--spring), background .2s; }
.cp-card:active { transform: scale(.97); background: rgba(255, 255, 255, .1); }
.cp-po { position: relative; flex: none; width: 46px; aspect-ratio: 2 / 3; border-radius: 9px; overflow: hidden; background: #2a2c33; }
.cp-po img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-po i { position: absolute; left: 3px; top: 3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; display: grid; place-items: center;
  font: 700 11px/1 inherit; font-style: normal; color: #fff; background: rgba(0, 0, 0, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cp-ci { display: grid; gap: 2px; min-width: 0; }
.cp-ci b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cp-ci small { font-size: 11.5px; color: var(--ink-2); }
.cp-ci .cp-why { color: #D4D6DE; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Boutons de réponse rapide */
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0 0 38px; animation: msg-in .32s var(--ease) .1s backwards; }
.cp-chips.center { justify-content: center; padding: 8px 0 0; }
.cp-chips .chip { border: 0; border-radius: 999px; padding: 7px 12px; font-size: 12.5px; font-weight: 600; color: var(--ink);
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--spring), background .2s; }
.cp-chips .chip:active { transform: scale(.94); background: rgba(255, 255, 255, .14); }
.cp-hello { max-width: 420px; }

/* Capri réfléchit… */
.cp-typing { display: flex; align-items: center; gap: 4px; padding: 12px 14px; }
.cp-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-2); animation: cp-dot 1s ease-in-out infinite; }
.cp-typing span:nth-child(2) { animation-delay: .15s; } .cp-typing span:nth-child(3) { animation-delay: .3s; }
.cp-typing em { font-style: normal; font-size: 12px; color: var(--ink-2); margin-left: 6px; }
@keyframes cp-dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .cp-typing span, .cp-row, .cp-chips { animation: none; } }
