/* ═══════════════════════════════════════════════════════════════════
   donna — donna-assistant-14444db2.css  (cleané)
   ─ z-index migrés vers tokens (--z-* dans _z-index-scale.css) : 1 occurrence(s)
   ─ Aucune autre modification. Voir CHANGELOG.md.
   ═══════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════
   donna-assistant.css — v505 Phase 1
   Panel slide-in 440px desktop · Light + Noir via data-theme
   ═══════════════════════════════════════════════════════════════════ */

#da-panel {
  position: fixed;
  top: 46px; right: 0; bottom: 0;
  width: 440px;
  max-width: 50vw;
  background: var(--surface, #fff);
  border-left: 1px solid var(--border, #e4e7ee);
  box-shadow: -12px 0 32px rgba(20,22,31,.06);
  z-index: calc(var(--z-sticky) + 50) /* was 150 */;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 220ms cubic-bezier(.16,1,.3,1);
  font-family: var(--font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
}
#da-panel.open {
  transform: translateX(0);
}
[data-theme="noir"] #da-panel {
  box-shadow: -12px 0 32px rgba(0,0,0,.5);
}
@media (max-width: 1280px) {
  #da-panel { width: 50vw; max-width: 480px; }
}

/* ─── Header ─────────────────────────────────── */
#da-panel .da-header {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e4e7ee);
  background: var(--surface, #fff);
}
.da-avatar {
  width: 32px; height: 32px;
  background: transparent;
  display: grid; place-items: center;
  color: var(--accent, #6b5cf5);
  flex-shrink: 0;
}
.da-h-info { flex: 1; min-width: 0; }
.da-h-name {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700; font-size: 15px;
  color: var(--text, #14161f);
  letter-spacing: -.2px;
}
.da-h-name .dot { color: var(--accent, #6b5cf5); }
.da-h-status {
  font-size: 11px; color: var(--muted, #8a93ab);
  display: flex; align-items: center; gap: 5px;
  margin-top: 1px;
}
.da-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green, #22a06b);
  display: inline-block;
}
.da-h-btn {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: transparent;
  color: var(--muted, #8a93ab);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.da-h-btn:hover {
  background: var(--s2, #f1f3f7);
  color: var(--text, #14161f);
}

/* ─── Context bar ──────────────────────────────── */
.da-context-bar {
  flex-shrink: 0;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: var(--s2, #f1f3f7);
  border-bottom: 1px solid var(--border, #e4e7ee);
  font-size: 11px;
  color: var(--text-dim, #4a5169);
}
.da-ctx-label { color: var(--muted, #8a93ab); font-weight: 500; }
.da-ctx-value { color: var(--text, #14161f); font-weight: 600; flex: 1; }
.da-ctx-clear {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--border, #e4e7ee);
  color: var(--muted, #8a93ab);
  font-size: 14px; line-height: 1;
}

/* ─── Body (thread) ────────────────────────────── */
.da-body {
  flex: 1;
  overflow-y: auto; overflow-x: hidden;
  padding: 18px;
  display: flex; flex-direction: column;
  gap: 14px;
  background: var(--bg, #f7f8fa);
}
.da-body::-webkit-scrollbar { width: 6px; }
.da-body::-webkit-scrollbar-thumb { background: var(--border, #e4e7ee); border-radius: 3px; }

/* ─── Welcome state ────────────────────────────── */
.da-welcome {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 30px 14px 12px;
}
.da-w-avatar {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent, #6b5cf5), var(--mauve, #8257e5));
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 16px;
}
.da-w-greet {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700; font-size: 22px;
  color: var(--text, #14161f);
  letter-spacing: -.4px;
  margin-bottom: 6px;
}
.da-w-sub {
  font-size: 13px;
  color: var(--text-dim, #4a5169);
  margin-bottom: 22px;
}
.da-w-sugs {
  width: 100%;
  display: flex; flex-direction: column;
  gap: 8px;
}
.da-sug {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e4e7ee);
  border-radius: var(--radius, 4px);
  text-align: left;
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .12s;
}
.da-sug:hover {
  border-color: color-mix(in srgb, var(--accent, #6b5cf5) 40%, var(--border, #e4e7ee));
  background: color-mix(in srgb, var(--accent, #6b5cf5) 4%, var(--surface, #fff));
}
.da-sug:active { transform: scale(.99); }
.da-sug-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-dim, rgba(107,92,245,.09));
  display: grid; place-items: center;
  flex-shrink: 0;
}
.da-sug-emoji { font-size: 14px; }
.da-sug-info { flex: 1; min-width: 0; }
.da-sug-t {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 600; font-size: 13px;
  color: var(--text, #14161f);
  letter-spacing: -.1px;
  line-height: 1.3;
}
.da-sug-s {
  font-size: 11.5px;
  color: var(--text-dim, #4a5169);
  margin-top: 2px;
}
.da-sug-arrow {
  color: var(--muted, #8a93ab);
  flex-shrink: 0;
}
.da-sug:hover .da-sug-arrow { color: var(--accent, #6b5cf5); }

/* ─── Messages bubble ──────────────────────────── */
.da-msg {
  display: flex; gap: 8px;
  animation: da-fade-in 180ms ease;
}
.da-msg.user { flex-direction: row-reverse; }
@keyframes da-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.da-msg-av {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  font-family: var(--font-display, sans-serif);
}
.da-msg-av.user {
  background: var(--s2, #f1f3f7);
  border: 1px solid var(--border, #e4e7ee);
  color: var(--text-dim, #4a5169);
}
.da-msg-av.donna {
  background: transparent;
  color: var(--accent, #6b5cf5);
  border: none;
}
.da-msg-bubble {
  max-width: 340px;
  padding: 9px 13px;
  border-radius: var(--radius-lg, 8px);
  font-size: 13.5px;
  line-height: 1.55;
  word-wrap: break-word;
}
.da-msg.user .da-msg-bubble {
  background: var(--text, #14161f);
  color: var(--bg, #f7f8fa);
  border-radius: var(--radius-lg, 8px) var(--radius-lg, 8px) var(--radius-sm, 3px) var(--radius-lg, 8px);
}
.da-msg.donna .da-msg-bubble {
  background: var(--s2, #f1f3f7);
  color: var(--text, #14161f);
  border-radius: var(--radius-lg, 8px) var(--radius-lg, 8px) var(--radius-lg, 8px) var(--radius-sm, 3px);
}
.da-msg-bubble p { margin: 0 0 6px; }
.da-msg-bubble p:last-child { margin-bottom: 0; }
.da-msg-bubble b { font-weight: 700; }
.da-msg-bubble code {
  font-family: var(--mono, monospace);
  font-size: 12px;
  background: rgba(0,0,0,.06);
  padding: 1px 5px; border-radius: 3px;
}
.da-msg-bubble .da-md-ul {
  margin: 6px 0 6px 18px;
  padding: 0;
}
.da-msg-bubble .da-md-ul li {
  margin-bottom: 3px;
}
.da-msg-bubble .da-h1, .da-msg-bubble .da-h2, .da-msg-bubble .da-h3 {
  font-family: var(--font-display, sans-serif);
  font-weight: 700;
  margin: 6px 0 4px;
}
.da-msg-bubble .da-h1 { font-size: 16px; }
.da-msg-bubble .da-h2 { font-size: 14px; }
.da-msg-bubble .da-h3 { font-size: 13px; }
.da-msg-bubble .da-md-hr {
  border: none;
  border-top: 1px solid var(--border, #e4e7ee);
  margin: 8px 0;
}
.da-msg-bubble a {
  color: var(--accent, #6b5cf5);
  text-decoration: underline;
}

/* ─── Typing indicator ─────────────────────────── */
.da-typing {
  display: flex; gap: 4px;
  align-items: center;
  padding: 4px 0;
}
.da-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--muted, #8a93ab);
  animation: da-typing-pulse 1.2s ease-in-out infinite;
}
.da-typing span:nth-child(2) { animation-delay: .15s; }
.da-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes da-typing-pulse {
  0%, 100% { opacity: .3; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}

/* ─── Composer ─────────────────────────────────── */
.da-composer {
  flex-shrink: 0;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border, #e4e7ee);
  background: var(--surface, #fff);
}
.da-input {
  flex: 1;
  resize: none;
  padding: 8px 12px;
  background: var(--s2, #f1f3f7);
  border: 1px solid var(--border, #e4e7ee);
  border-radius: var(--radius, 4px);
  font-family: inherit;
  font-size: 13.5px;
  color: var(--text, #14161f);
  line-height: 1.4;
  outline: none;
  transition: border-color .15s;
  min-height: 36px;
}
.da-input:focus {
  border-color: var(--accent, #6b5cf5);
  background: var(--surface, #fff);
}
.da-send {
  width: 36px; height: 36px;
  border-radius: var(--radius, 4px);
  background: var(--accent, #6b5cf5);
  color: #fff;
  display: grid; place-items: center;
  transition: opacity .15s, background .15s;
  flex-shrink: 0;
}
.da-send:hover:not(:disabled) {
  background: var(--accent-hi, #564bd8);
}
.da-send:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.da-foot {
  flex-shrink: 0;
  padding: 6px 14px 8px;
  border-top: 1px solid var(--border, #e4e7ee);
  background: var(--surface, #fff);
  font-size: 10px;
  color: var(--muted, #8a93ab);
  text-align: center;
  letter-spacing: .2px;
}
.da-foot kbd {
  font-family: var(--mono, monospace);
  font-size: 9px;
  background: var(--s2, #f1f3f7);
  border: 1px solid var(--border, #e4e7ee);
  border-radius: 3px;
  padding: 1px 4px;
  color: var(--text-dim, #4a5169);
}

/* ─── Sidebar item donna IA ────────────────────── */
.da-sb-item {
  /* v515 : plus fin que .sb-search (qui est plus haut) + effet pulse subtil */
  background: color-mix(in srgb, var(--accent, #6b5cf5) 8%, var(--surface, #fff)) !important;
  border-color: color-mix(in srgb, var(--accent, #6b5cf5) 22%, var(--border, #e4e7ee)) !important;
  color: var(--accent, #6b5cf5) !important;
  padding: 5px 10px !important;
  font-size: 11.5px !important;
  min-height: 28px !important;
  height: 28px !important;
  line-height: 1.2 !important;
  position: relative;
  animation: da-sb-pulse 2.6s ease-out infinite;
}
.da-sb-item svg {
  color: var(--accent, #6b5cf5);
  width: 12px !important;
  height: 12px !important;
}
.da-sb-item .lbl { font-size: 11.5px !important; }
.da-sb-item kbd { font-size: 9px !important; padding: 1px 4px !important; }
.da-sb-item:hover {
  background: color-mix(in srgb, var(--accent, #6b5cf5) 14%, var(--surface, #fff)) !important;
  animation-play-state: paused;
}
.da-sb-item kbd {
  background: var(--surface, #fff) !important;
  border-color: color-mix(in srgb, var(--accent, #6b5cf5) 22%, var(--border, #e4e7ee)) !important;
  color: var(--accent, #6b5cf5) !important;
}
@keyframes da-sb-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent, #6b5cf5) 0%, transparent);
  }
  40% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent, #6b5cf5) 14%, transparent);
  }
}

/* ─── Bouton donna dans search v2 ──────────────── */

/* ─── PWA mobile : hide desktop panel ──────────── */
body.is-mobile.pwa-active #da-panel,
body.is-mobile.pwa-active .da-sb-item,
body.is-mobile.pwa-active .da-search-btn {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   PHASE 2 — Fullscreen mode + result cards + vocal + inline
   ═══════════════════════════════════════════════════════════════ */

/* ─── Tools (attach + vocal) ───────────────────── */
.da-composer .da-tool {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: transparent;
  border: none !important;
  outline: none;
  color: var(--muted, #8a93ab);
  flex-shrink: 0;
  transition: background .15s, color .15s;
  align-self: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.da-composer .da-tool:hover {
  background: var(--s2, #f1f3f7);
  color: var(--text, #14161f);
}
.da-composer .da-tool:focus,
.da-composer .da-tool:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #6b5cf5) 30%, transparent);
}
.da-composer .da-tool.active {
  background: var(--accent-dim, rgba(107,92,245,.09));
  color: var(--accent, #6b5cf5);
  animation: da-vocal-pulse 1.4s ease-in-out infinite;
}
@keyframes da-vocal-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107,92,245,0); }
  50% { box-shadow: 0 0 0 4px rgba(107,92,245,.25); }
}

/* ─── Attached file chip ───────────────────────── */
.da-attached-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 14px 6px;
  padding: 5px 8px 5px 10px;
  background: var(--accent-dim, rgba(107,92,245,.09));
  border: 1px solid color-mix(in srgb, var(--accent, #6b5cf5) 22%, var(--border, #e4e7ee));
  border-radius: var(--radius, 4px);
  font-size: 11.5px;
  color: var(--text, #14161f);
  width: fit-content;
}
.da-attached-chip svg { color: var(--accent, #6b5cf5); }
.da-attached-chip .da-attached-x {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--border, #e4e7ee);
  color: var(--muted, #8a93ab);
  font-size: 12px; line-height: 1;
}

/* ─── Result cards (dans bulles donna) ─────────── */
.da-result-card {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0;
  padding: 9px 12px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e4e7ee);
  border-radius: var(--radius, 4px);
  cursor: pointer;
  transition: border-color .15s, transform .12s;
}
.da-result-card:hover {
  border-color: color-mix(in srgb, var(--accent, #6b5cf5) 40%, var(--border, #e4e7ee));
  transform: translateX(2px);
}
.da-rc-av {
  width: 30px; height: 30px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  font-family: var(--font-display, sans-serif);
  flex-shrink: 0;
}
.da-rc-av.client {
  background: color-mix(in srgb, var(--accent, #6b5cf5) 14%, var(--s2, #f1f3f7));
  color: var(--accent, #6b5cf5);
}
.da-rc-av.bien {
  background: color-mix(in srgb, var(--mauve, #8257e5) 14%, var(--s2, #f1f3f7));
  color: var(--mauve, #8257e5);
}
.da-rc-av.dossier {
  background: color-mix(in srgb, var(--green, #22a06b) 14%, var(--s2, #f1f3f7));
  color: var(--green, #22a06b);
}
.da-rc-info { flex: 1; min-width: 0; }
.da-rc-name {
  font-family: var(--font-display, sans-serif);
  font-weight: 600; font-size: 13px;
  color: var(--text, #14161f);
  letter-spacing: -.1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.da-rc-sub {
  font-size: 11.5px;
  color: var(--text-dim, #4a5169);
  margin-top: 1px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.da-rc-score {
  font-family: var(--mono, monospace);
  font-size: 12.5px; font-weight: 700;
  padding: 3px 8px;
  border-radius: 99px;
  flex-shrink: 0;
}
.da-rc-score.hot {
  background: color-mix(in srgb, var(--chaud, #d64560) 14%, transparent);
  color: var(--chaud, #d64560);
}
.da-rc-score.warm {
  background: color-mix(in srgb, var(--tiede, #c08a2e) 14%, transparent);
  color: var(--tiede, #c08a2e);
}
.da-rc-score.cold {
  background: color-mix(in srgb, var(--froid, #3d7fc2) 14%, transparent);
  color: var(--froid, #3d7fc2);
}

/* ─── Citations chips ─────────────────────────── */
.da-citations {
  margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 5px;
}
.da-citation-chip {
  font-size: 11px;
  padding: 3px 8px;
  background: var(--s2, #f1f3f7);
  border: 1px solid var(--border, #e4e7ee);
  border-radius: 99px;
  color: var(--text-dim, #4a5169);
  text-decoration: none;
  transition: border-color .15s, color .15s;
}
.da-citation-chip:hover {
  border-color: var(--accent, #6b5cf5);
  color: var(--accent, #6b5cf5);
}

/* ─── Fullscreen mode ─────────────────────────── */
#da-fullscreen {
  position: fixed; inset: 0;
  z-index: var(--z-fixed) /* was 200 */;
  background: var(--bg, #f7f8fa);
  display: none;
  /* v515 : par défaut sans la 3e colonne (right context vide), grid 240px / 1fr */
  grid-template-columns: 240px 1fr;
  font-family: var(--font, -apple-system, BlinkMacSystemFont, 'Inter', sans-serif);
}
/* Si la colonne droite est visible (a un context à montrer), grid 240px / 1fr / 320px */

#da-fullscreen.open {
  display: grid;
}
body.da-fs-open {
  overflow: hidden;
}

.da-fs-left {
  border-right: 1px solid var(--border, #e4e7ee);
  background: var(--surface, #fff);
  display: flex; flex-direction: column;
  padding: 14px 12px;
  overflow-y: auto;
}
.da-fs-brand {
  display: flex; align-items: center; gap: 8px;
  padding: 0 6px 14px;
  border-bottom: 1px solid var(--border, #e4e7ee);
  margin-bottom: 12px;
}
.da-avatar.small {
  width: 22px; height: 22px;
  background: transparent;
  color: var(--accent, #6b5cf5);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.da-fs-brand-name {
  flex: 1;
  font-family: var(--font-display, sans-serif);
  font-weight: 700; font-size: 14px;
  color: var(--text, #14161f);
  letter-spacing: -.2px;
}
.da-fs-brand-name .dot { color: var(--accent, #6b5cf5); }

.da-fs-newchat {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px;
  margin: 0 0 14px;
  background: var(--text, #14161f);
  color: var(--bg, #f7f8fa);
  border: none;
  border-radius: var(--radius, 4px);
  font-family: var(--font-display, sans-serif);
  font-weight: 600; font-size: 12px;
  cursor: pointer;
}
.da-fs-newchat:hover {
  background: color-mix(in srgb, var(--text, #14161f) 90%, transparent);
}
.da-fs-history { flex: 1; overflow-y: auto; }
.da-fs-h-empty {
  padding: 20px 6px;
  text-align: center;
  font-size: 12px;
  color: var(--muted, #8a93ab);
}
.da-fs-h-group { margin-bottom: 14px; }
.da-fs-h-grp-lbl {
  font-family: var(--mono, monospace);
  font-size: 9.5px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--muted, #8a93ab);
  padding: 0 6px 4px;
}
.da-fs-h-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius, 4px);
  font-size: 12px; line-height: 1.4;
  color: var(--text-dim, #4a5169);
  cursor: pointer;
  transition: background .12s, color .12s;
  margin-bottom: 1px;
}
.da-fs-h-item:hover {
  background: var(--s2, #f1f3f7);
  color: var(--text, #14161f);
}

.da-fs-center {
  display: flex; flex-direction: column;
  position: relative;
  align-items: center; /* v515 : centre horizontalement le contenu */
  width: 100%;
  min-width: 0;
  overflow: hidden;
}
.da-fs-center-inner {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}
/* Override panel body sizes en fullscreen — centré et large */
#da-fullscreen .da-body {
  flex: 1; padding: 28px 36px;
  background: var(--bg, #f7f8fa);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  align-self: center;
}
#da-fullscreen .da-msg-bubble { max-width: 600px; }
#da-fullscreen .da-composer {
  padding: 14px 36px;
  border-top: 1px solid var(--border, #e4e7ee);
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  align-self: center;
  background: var(--surface, #fff);
}
#da-fullscreen .da-foot {
  padding: 6px 36px 10px;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  align-self: center;
}

.da-fs-right {
  border-left: 1px solid var(--border, #e4e7ee);
  background: var(--surface, #fff);
  display: flex; flex-direction: column;
}
.da-fs-right-hdr {
  display: flex; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border, #e4e7ee);
}
.da-fs-right-t {
  flex: 1;
  font-family: var(--font-display, sans-serif);
  font-weight: 700; font-size: 13px;
  color: var(--text, #14161f);
  letter-spacing: -.1px;
}
.da-fs-right-body {
  flex: 1; overflow-y: auto;
  padding: 14px;
}

/* ─── Inline contextuel sur fiches CRM ─────────── */
.da-inline {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, #6b5cf5) 5%, var(--surface, #fff)), color-mix(in srgb, var(--mauve, #8257e5) 3%, var(--surface, #fff)));
  border: 1px solid color-mix(in srgb, var(--accent, #6b5cf5) 22%, var(--border, #e4e7ee));
  border-radius: var(--radius, 4px);
  padding: 14px;
  margin: 12px 0;
}
.da-inline-hdr {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 12px;
}
.da-inline-h-info { flex: 1; min-width: 0; }
.da-inline-h-name {
  font-family: var(--font-display, sans-serif);
  font-weight: 700; font-size: 13px;
  color: var(--text, #14161f);
}
.da-inline-h-name .dot { color: var(--accent, #6b5cf5); }
.da-inline-h-sub {
  font-size: 11px; color: var(--text-dim, #4a5169);
  margin-top: 1px;
}
.da-inline-open {
  padding: 6px 11px;
  background: var(--text, #14161f);
  color: var(--bg, #f7f8fa);
  border: none;
  border-radius: var(--radius, 4px);
  font-family: var(--font-display, sans-serif);
  font-weight: 600; font-size: 11.5px;
  cursor: pointer;
}
.da-inline-open:hover {
  background: color-mix(in srgb, var(--text, #14161f) 90%, transparent);
}
.da-inline-prompts {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.da-inline-prompt {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e4e7ee);
  border-radius: 99px;
  font-size: 11.5px;
  color: var(--text-dim, #4a5169);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.da-inline-prompt:hover {
  border-color: var(--accent, #6b5cf5);
  background: var(--accent-dim, rgba(107,92,245,.09));
  color: var(--accent, #6b5cf5);
}
.da-inline-p-icon { font-size: 12px; }

/* PWA mobile : hide fullscreen too */
body.is-mobile.pwa-active #da-fullscreen,
body.is-mobile.pwa-active .da-inline {
  display: none !important;
}

/* ════════════════════════════════════════════════
   v508 — Cache assistant desktop sur écran de login
   ════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════
   v512 — Assistant desktop : caché par défaut, révélé par body.app-loaded
   v512 : retire .da-search-btn (utilisé bouton natif #dsv2-ask-donna)
   v512 : ajout FAB desktop #da-fab-desktop
   ════════════════════════════════════════════════ */
#da-panel,
#da-fullscreen,
.da-sb-item,
.da-inline,
#da-fab-desktop {
  display: none !important;
}
body.app-loaded #da-panel { display: flex !important; }
body.app-loaded #da-fullscreen.open { display: grid !important; }
body.app-loaded .da-sb-item { display: flex !important; }
body.app-loaded .da-inline { display: block !important; }
body.app-loaded #da-fab-desktop { display: grid !important; }

/* Cache aussi en PWA mobile (ne touche pas le FAB PWA) */
body.is-mobile.pwa-active #da-fab-desktop,
body.is-mobile #da-fab-desktop {
  display: none !important;
}

/* ─── FAB desktop (bas droite) ─────────────────── */
#da-fab-desktop {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent, #6b5cf5), var(--mauve, #8257e5));
  color: #fff;
  border: none;
  cursor: pointer;
  z-index: calc(var(--z-sticky) + 40) /* was 140 */;
  place-items: center;
  box-shadow: 0 6px 18px rgba(107, 92, 245, .35);
  transition: transform .18s cubic-bezier(.16, 1, .3, 1), box-shadow .2s;
}
#da-fab-desktop:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 26px rgba(107, 92, 245, .45);
}
#da-fab-desktop:active {
  transform: translateY(0) scale(0.98);
}
/* Pulse subtil au repos */
#da-fab-desktop::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(107, 92, 245, .35);
  opacity: 0;
  animation: da-fab-pulse 2.6s ease-out infinite;
  pointer-events: none;
}
@keyframes da-fab-pulse {
  0% { transform: scale(.85); opacity: 0; }
  40% { opacity: .5; }
  100% { transform: scale(1.4); opacity: 0; }
}
/* Quand le panel est ouvert, on cache le FAB */
body.da-panel-open #da-fab-desktop {
  display: none !important;
}

/* ════════════════════════════════════════════════════
   PHASE 4 — Action cards + streaming cursor
   ════════════════════════════════════════════════════ */

/* Stream cursor (typewriter effect) */
.da-stream-cursor {
  display: inline-block;
  margin-left: 1px;
  color: var(--accent, #6b5cf5);
  font-weight: bold;
  animation: da-cursor-blink 530ms infinite;
}
@keyframes da-cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Action card */
.da-action-card {
  margin: 8px 0;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e4e7ee);
  border-radius: var(--radius, 4px);
  overflow: hidden;
  transition: border-color .2s, opacity .2s;
}
.da-action-card.executing {
  opacity: .6;
  pointer-events: none;
}
.da-action-card.success {
  border-color: var(--green, #22a06b);
  background: color-mix(in srgb, var(--green, #22a06b) 4%, var(--surface, #fff));
}
.da-action-card.error {
  border-color: var(--chaud, #d64560);
  background: color-mix(in srgb, var(--chaud, #d64560) 4%, var(--surface, #fff));
}
.da-action-card.cancelled {
  opacity: .55;
  background: var(--s2, #f1f3f7);
}
.da-act-hdr {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border, #e4e7ee);
  background: color-mix(in srgb, var(--accent, #6b5cf5) 4%, var(--surface, #fff));
}
.da-act-icon {
  font-size: 14px;
  flex-shrink: 0;
}
.da-act-title {
  font-family: var(--font-display, 'Plus Jakarta Sans', sans-serif);
  font-weight: 700; font-size: 13px;
  color: var(--text, #14161f);
  letter-spacing: -.1px;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.da-act-body {
  padding: 8px 14px 10px;
}
.da-act-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  padding: 4px 0;
  font-size: 12px;
  align-items: center;
}
.da-act-row + .da-act-row {
  border-top: 1px dashed var(--border, #e4e7ee);
}
.da-act-k {
  font-family: var(--mono, monospace);
  font-size: 10.5px;
  color: var(--muted, #8a93ab);
  letter-spacing: .3px;
  text-transform: uppercase;
  font-weight: 600;
}
.da-act-v {
  color: var(--text, #14161f);
  font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.da-act-foot {
  display: flex; gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid var(--border, #e4e7ee);
  background: var(--bg, #f7f8fa);
}
.da-act-btn {
  padding: 6px 12px;
  font-family: var(--font-display, sans-serif);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: -.1px;
  border-radius: var(--radius, 4px);
  border: 1px solid var(--border, #e4e7ee);
  background: var(--surface, #fff);
  color: var(--text-dim, #4a5169);
  cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.da-act-btn:hover {
  border-color: var(--border-hi, #d3d8e3);
  color: var(--text, #14161f);
}
.da-act-btn.primary {
  background: var(--text, #14161f);
  border-color: var(--text, #14161f);
  color: var(--bg, #f7f8fa);
}
.da-act-btn.primary:hover {
  background: color-mix(in srgb, var(--text, #14161f) 88%, transparent);
}
.da-act-btn.ghost {
  border-color: transparent;
  background: transparent;
  margin-left: auto;
  color: var(--muted, #8a93ab);
}
.da-act-btn.ghost:hover {
  color: var(--chaud, #d64560);
  background: transparent;
}
.da-act-status {
  font-family: var(--font-display, sans-serif);
  font-weight: 600; font-size: 12px;
  color: var(--text-dim, #4a5169);
  padding: 4px 0;
}
.da-action-card.success .da-act-status { color: var(--green, #22a06b); }
.da-action-card.error .da-act-status { color: var(--chaud, #d64560); }
