/* ==========================================================================
   WHISP IT · VUE DÉTAIL COMPTE-RENDU & TRANSCRIPTION
   Design Harmonie Page d'Accueil : Contraste Franc (#0f172a / #ffffff / #ff5e3a)
   Vrai Post-it Tactile (#fff176 Caveat + Scotch), Bento KPI, Ticket Agenda
   Zéro capsule semi-transparente IA
   ========================================================================== */

.meeting-detail-view {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background-color: var(--bg-app, #f4f6f9);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 14px;
  padding-top: max(14px, env(safe-area-inset-top));
  padding-bottom: max(48px, calc(env(safe-area-inset-bottom, 0px) + 32px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, visibility 0.32s;
}

.meeting-detail-view > * {
  width: 100%;
  max-width: 560px;
}

.meeting-detail-view.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==========================================================================
   1. EN-TÊTE ÉDITORIAL AÉRÉ (.detail-header-card / .whisp-hero-header)
   ========================================================================== */
.detail-header-card,
.whisp-hero-header {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 2px 2px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}

.whisp-nav-row,
.detail-header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.whisp-back-btn,
.btn-back-to-reports {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background-color: var(--bg-card, #ffffff);
  color: var(--text-primary, #0f172a);
  border: 1px solid var(--border-card, #e2e8f0);
  padding: 6px 12px 6px 8px;
  height: 34px;
  width: auto;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.whisp-back-btn:active,
.btn-back-to-reports:active {
  transform: scale(0.97);
}

.whisp-meta-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  font-variant-numeric: tabular-nums;
}

.detail-duration-text {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  font-weight: 600;
}

.detail-status-capsule {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  padding: 0;
}

.whisp-solid-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff5e3a;
  display: inline-block;
  flex-shrink: 0;
}

.sr-only-status {
  display: none;
}

.detail-status-capsule.editing-mode .sr-only-status {
  display: inline-block;
  background-color: #ff5e3a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.detail-header-title-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.whisp-main-title,
.detail-meeting-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.18;
  color: var(--text-primary, #0f172a);
  margin: 0;
  word-break: break-word;
}

body.dark-mode .whisp-main-title,
body.dark-mode .detail-meeting-title {
  color: #f8fafc;
}

/* Pastilles Participants */
.whisp-roster-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roster-avatars {
  display: flex;
  align-items: center;
}

.roster-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  margin-right: -6px;
  border: 2px solid var(--bg-app, #f4f6f9);
}

.roster-bubble.dark {
  background-color: #0f172a;
  color: #ffffff;
}

.roster-bubble.orange {
  background-color: #ff5e3a;
  color: #ffffff;
}

.roster-bubble.light {
  background-color: #ffffff;
  color: #0f172a;
  border: 1.5px solid #cbd5e1;
  margin-right: 0;
  font-size: 10px;
}

.roster-names {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary, #475569);
}

/* Barre d'actions franche (Noir Ardoise #0f172a + Blanc pur #ffffff) */
.detail-header-bottom-bar {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-top: 2px;
  border-top: none;
}

.whisp-action-bar,
.detail-segmented-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

.btn-solid-slate,
.detail-seg-btn#btn-copy-transcript {
  flex: 1 1 0%;
  min-width: 0;
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  height: 38px;
  padding: 0 10px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.14);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-seg-btn#btn-copy-transcript svg {
  flex-shrink: 0;
}

.detail-seg-btn#btn-copy-transcript span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.dark-mode .btn-solid-slate,
body.dark-mode .detail-seg-btn#btn-copy-transcript {
  background-color: #ff5e3a;
  color: #ffffff;
}

.detail-seg-btn#btn-copy-transcript.copied {
  background-color: #10b981;
  color: #ffffff;
}

.btn-crisp-white,
.detail-seg-btn:not(#btn-copy-transcript) {
  flex: 0 0 auto;
  background-color: var(--bg-card, #ffffff);
  color: var(--text-primary, #0f172a);
  border: 1px solid var(--border-card, #e2e8f0);
  height: 38px;
  padding: 0 9px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  box-sizing: border-box;
}

.btn-crisp-white.icon-only,
.detail-seg-btn#btn-edit-meeting,
.detail-seg-btn#btn-retranscribe,
.detail-seg-btn#btn-share-transcript {
  flex: 0 0 36px;
  width: 36px;
  height: 38px;
  padding: 0;
}

/* ==========================================================================
   CONTENEUR DE CONTENU DU COMPTE-RENDU (TRANSPARENT POUR CARDS BENTO)
   ========================================================================== */
.transcript-content-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
  overflow: visible;
}

.executive-report-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--text-primary, #0f172a);
  user-select: text;
}

/* ==========================================================================
   2. DUO D'OUVERTURE : BLOC SOMBRE #0F172A + VRAI POST-IT WHISP IT
   ========================================================================== */
.whisp-opening-duo {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.whisp-dark-summary-card {
  background-color: #0f172a;
  color: #ffffff;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.dark-mode .whisp-dark-summary-card {
  background-color: #161f30;
  border: 1px solid #2a384f;
}

.dark-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.solid-orange-tag {
  background-color: #d23f18;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 6px;
}

.dark-card-reading {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
}

.dark-card-lead {
  font-size: 14.5px;
  line-height: 1.5;
  color: #f1f5f9;
  font-weight: 500;
  margin: 0;
}

.dark-card-lead strong {
  color: #ffffff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: #ff5e3a;
  text-underline-offset: 3px;
}

.dark-card-mini-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid #1e293b;
}

.dark-mini-item {
  background-color: #1e293b;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.orange-dot-solid {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ff5e3a;
  flex-shrink: 0;
}

/* Vrai Post-it Whisp It : style et largeur max 1:1 identiques à l'accueil (.postit-sticky) */
.report-postits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 195px));
  gap: 12px 10px;
  width: 100%;
  margin: 4px 0;
}

.postit-inline-wrap {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  width: 100%;
}

.postit-report-sticky,
.whisp-postit-card,
.postit-realistic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 105px;
  padding: 13px 11px 11px 11px;
  border-radius: 6px;
  border: none;
  box-shadow: 0 1.5px 4px rgba(0, 0, 0, 0.04), 0 0.5px 1.5px rgba(0, 0, 0, 0.02);
  transform: rotate(-1.5deg);
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.2s ease, opacity 0.25s ease;
  width: 100%;
  max-width: 195px;
  box-sizing: border-box;
  margin-top: 4px;
}

.postit-report-sticky:hover,
.postit-report-sticky:active,
.whisp-postit-card:hover,
.postit-realistic-card:hover {
  transform: rotate(0deg) translateY(-2px) scale(1.02);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
  z-index: 5;
}

.postit-tape {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 12px;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  transform-origin: top center;
}

body.dark-mode .postit-tape {
  background: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
}

.postit-report-sticky .postit-sticky-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 5px;
}

.postit-report-sticky .postit-sticky-title {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.postit-report-sticky .postit-sticky-content {
  margin: 0;
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  word-break: break-word;
  white-space: pre-wrap;
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
  opacity: 0.95;
}

.btn-pin-sticky,
.postit-pin-btn,
.btn-postit-pin {
  position: static;
  width: auto;
  height: auto;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 9.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-pin-sticky:hover,
.postit-pin-btn:hover,
.btn-postit-pin:hover {
  background: rgba(0, 0, 0, 0.14);
}

.btn-pin-sticky.active,
.postit-pin-btn.active,
.btn-postit-pin.active {
  background-color: #ff5e3a;
  color: #ffffff;
}

/* ==========================================================================
   3. SECTIONS & BENTO DE CHIFFRES CLÉS
   ========================================================================== */
.whisp-section-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.whisp-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.whisp-block-title {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

.whisp-solid-count {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.bento-kpi-grid,
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}

.bento-kpi-grid.single-kpi,
.kpi-grid.single-kpi {
  grid-template-columns: minmax(160px, 240px);
}

.bento-tile,
.kpi-card {
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
  min-width: 0;
  overflow: hidden;
}

.bento-tile.tile-dark {
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
}

.bento-tile.tile-white {
  background-color: var(--bg-card, #ffffff);
  color: var(--text-primary, #0f172a);
  border: 1px solid var(--border-card, #e2e8f0);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body.dark-mode .bento-tile.tile-white {
  background-color: #161f30;
  border-color: #2a384f;
  color: #f8fafc;
}

.tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  min-width: 0;
}

.tile-label,
.kpi-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  text-transform: none;
  letter-spacing: 0;
  word-break: break-word;
  min-width: 0;
}

.tile-dark .tile-label {
  color: #94a3b8;
}

.tile-badge-orange {
  background-color: #d23f18;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tile-badge-slate {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tile-number-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.tile-val,
.kpi-value {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: inherit;
  word-break: break-word;
}

.tile-unit {
  font-size: 12px;
  font-weight: 700;
  opacity: 0.75;
}

/* Barre de Répartition Mix Logistique & Graphiques (Courbes / Donut / Barres sans débordement) */
.whisp-mix-card,
.report-chart-card {
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 16px;
  padding: 14px 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

body.dark-mode .whisp-mix-card,
body.dark-mode .report-chart-card {
  background-color: #161f30;
  border-color: #2a384f;
}

.mix-header-row,
.chart-header {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.chart-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.mix-title,
.chart-title {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary, #0f172a);
  word-break: break-word;
  min-width: 0;
  flex: 1;
}

.chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  width: 100%;
  min-width: 0;
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary, #475569);
  min-width: 0;
}

body.dark-mode .legend-item {
  color: #cbd5e1;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block;
}

.legend-name {
  word-break: break-word;
}

.chart-svg-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.mix-highlight {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted, #64748b);
  word-break: break-word;
}

.mix-segmented-bar {
  height: 12px;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  gap: 3px;
}

.mix-seg {
  height: 100%;
  border-radius: 4px;
  min-width: 4px;
}

.mix-legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 8px;
  padding-top: 2px;
  width: 100%;
}

.mix-legend-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.mix-dot {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 3px;
}

.mix-legend-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.mix-legend-text strong {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
}

.mix-legend-text span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  word-break: break-word;
}

/* ==========================================================================
   4. DÉCISIONS ACTÉES (CARTES SCANNABLES À PASTILLES PLEINES)
   ========================================================================== */
.whisp-decisions-stack,
.syn-pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.whisp-decision-row,
.syn-pillar-card {
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

body.dark-mode .whisp-decision-row,
body.dark-mode .syn-pillar-card {
  background-color: #161f30;
  border-color: #2a384f;
}

.decision-num-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.decision-num-box.orange-solid {
  background-color: #ff5e3a;
  color: #ffffff;
}

.decision-num-box.slate-solid {
  background-color: #0f172a;
  color: #ffffff;
}

.decision-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.decision-head-line {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.solid-pill-slate,
.syn-pillar-pill {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  text-transform: uppercase;
}

.solid-pill-neutral {
  background-color: #e2e8f0;
  color: #0f172a;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 5px;
  flex-shrink: 0;
  text-transform: uppercase;
}

body.dark-mode .solid-pill-neutral {
  background-color: #2a384f;
  color: #f8fafc;
}

.decision-short-desc,
.syn-pillar-text {
  font-size: 13px;
  color: var(--text-secondary, #475569);
  line-height: 1.45;
  word-break: break-word;
}

body.dark-mode .decision-short-desc,
body.dark-mode .syn-pillar-text {
  color: #cbd5e1;
}

/* ==========================================================================
   5. TICKET AGENDA WHISP IT & CHECKLIST INTERACTIVE
   ========================================================================== */
.whisp-calendar-ticket,
.calendar-ticket-card {
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  width: 100%;
  box-sizing: border-box;
}

body.dark-mode .whisp-calendar-ticket,
body.dark-mode .calendar-ticket-card {
  background-color: #161f30;
  border: 1px solid #2a384f;
}

.cal-date-block,
.calendar-badge {
  width: 48px;
  height: 52px;
  background-color: #ffffff;
  border-radius: 11px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
}

.cal-month,
.calendar-badge-month {
  width: 100%;
  background-color: #ff5e3a;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
  text-align: center;
  padding: 2px 0;
  letter-spacing: 0.06em;
}

.cal-day,
.calendar-badge-day {
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.6;
  padding: 0;
}

.cal-info,
.calendar-ticket-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.cal-kicker {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ff5e3a;
}

.cal-title,
.calendar-ticket-title {
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
}

.cal-meta {
  font-size: 11.5px;
  font-weight: 500;
  color: #94a3b8;
}

.cal-add-btn,
.btn-calendar-add {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background-color: #ff5e3a;
  color: #ffffff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

/* Checklist Interactive */
.whisp-checklist-card,
.actions-cards-list {
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 16px;
  padding: 6px 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
  margin: 4px 0 8px;
}

body.dark-mode .whisp-checklist-card,
body.dark-mode .actions-cards-list {
  background-color: #161f30;
  border-color: #2a384f;
}

.whisp-task-item,
.task-card-item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--border-card, #e2e8f0);
  cursor: pointer;
}

.whisp-task-item:last-child,
.task-card-item:last-child {
  border-bottom: none;
}

.whisp-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #0f172a;
  cursor: pointer;
  flex-shrink: 0;
}

.whisp-task-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.whisp-task-name,
.task-title-text {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  line-height: 1.38;
}

.whisp-task-item.done .whisp-task-name {
  text-decoration: line-through;
  color: var(--text-muted, #64748b);
}

.whisp-task-tags,
.task-meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-solid-dark,
.task-badge-resp {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
}

.tag-plain-date,
.task-badge-due {
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  padding: 0;
}

/* Verbatim Terrain */
.whisp-verbatim-strip,
.quote-v2-card {
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
}

body.dark-mode .whisp-verbatim-strip,
body.dark-mode .quote-v2-card {
  background-color: #161f30;
  border-color: #2a384f;
}

.verbatim-quote-mark {
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
  color: #ff5e3a;
  font-weight: 700;
  flex-shrink: 0;
}

.verbatim-text,
.quote-v2-text {
  font-size: 12.5px;
  font-style: italic;
  color: var(--text-secondary, #475569);
  margin-bottom: 4px;
}

.verbatim-author,
.quote-v2-author {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
}

/* ==========================================================================
   LISTES & PARAGRAPHES COMPLÉMENTAIRES DANS DES CARTES BLANCHES PROPRES
   ========================================================================== */
.report-subsection-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text-primary, #0f172a);
  margin: 10px 0 2px;
}

.report-paragraph {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary, #475569);
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 14px;
  padding: 12px 14px;
}

body.dark-mode .report-paragraph {
  background-color: #161f30;
  border-color: #2a384f;
  color: #cbd5e1;
}

.report-list {
  list-style: none;
  padding: 12px 14px;
  margin: 0;
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.dark-mode .report-list {
  background-color: #161f30;
  border-color: #2a384f;
}

.report-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary, #475569);
}

body.dark-mode .report-list-item {
  color: #cbd5e1;
}

.report-list-item strong {
  color: var(--text-primary, #0f172a);
  font-weight: 800;
}

body.dark-mode .report-list-item strong {
  color: #ffffff;
}

.report-list-dash {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #ff5e3a;
  flex-shrink: 0;
  margin-top: 7px;
}

.report-list-content {
  flex: 1;
  min-width: 0;
}

/* ==========================================================================
   6. TIROIR TRANSCRIPTION BRUTE (.whisp-transcript-drawer)
   ========================================================================== */
.whisp-transcript-drawer,
.source-transcript-accordion {
  margin-top: 8px;
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

body.dark-mode .whisp-transcript-drawer,
body.dark-mode .source-transcript-accordion {
  background-color: #161f30;
  border-color: #2a384f;
}

.drawer-summary,
.source-transcript-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.drawer-summary::-webkit-details-marker,
.source-transcript-summary::-webkit-details-marker {
  display: none;
}

.drawer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.drawer-badge-dark {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 6px;
}

.drawer-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-primary, #0f172a);
  margin: 0;
}

.drawer-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
}

.drawer-toggle-btn {
  background-color: #e2e8f0;
  color: #0f172a;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 8px;
}

body.dark-mode .drawer-toggle-btn {
  background-color: #2a384f;
  color: #f8fafc;
}

.drawer-body,
.source-transcript-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-card, #e2e8f0);
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  background: transparent;
}

.dialogue-bubble {
  background-color: var(--bg-app, #f4f6f9);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--text-secondary, #475569);
}

body.dark-mode .dialogue-bubble {
  background-color: #0e1726;
  color: #cbd5e1;
}

/* ==========================================================================
   AUTRES COMPOSANTS : MAIL, APPEL, ÉTATS VIDES & CHARGEMENT
   ========================================================================== */
.report-inline-action-wrap {
  width: 100%;
  margin: 2px 0;
  display: flex;
  flex-direction: column;
}

.mail-thread-card {
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
}

body.dark-mode .mail-thread-card {
  background-color: #161f30;
  border-color: #2a384f;
}

.mail-thread-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mail-avatar-w {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: #0f172a;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mail-header-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.mail-header-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.mail-header-subject {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 500;
}

.mail-thread-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
  background-color: #f8fafc;
  padding: 12px 14px;
  border-radius: 12px;
}

body.dark-mode .mail-thread-body {
  background-color: #0e1726;
  color: #cbd5e1;
}

.mail-thread-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-mail-action {
  height: 34px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.btn-mail-copy {
  background-color: #e2e8f0;
  color: #0f172a;
  border: none;
}

.btn-mail-open {
  background-color: #0f172a;
  color: #ffffff;
  border: none;
}

/* Carte Appel */
.call-v2-card {
  background-color: #0f172a;
  border-radius: 16px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none;
  color: #ffffff;
}

.call-v2-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.call-v2-icon-wrap {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background-color: #ff5e3a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.call-v2-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.call-v2-phone {
  font-size: 11.5px;
  font-weight: 600;
  color: #94a3b8;
}

.call-v2-btn-pill {
  height: 32px;
  padding: 0 12px;
  border-radius: 9px;
  background-color: #ff5e3a;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Barres horizontales */
.bar-chart-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bar-row-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 0;
}

.bar-lbl {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}

.bar-val {
  flex-shrink: 0;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.bar-track {
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.bar-fill {
  height: 100%;
  border-radius: 4px;
}

/* États Vides & Chargement */
.transcript-empty-state,
.transcript-loading-box {
  background-color: var(--bg-card, #ffffff);
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 18px;
  gap: 14px;
}

.transcript-empty-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background-color: #0f172a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.transcript-empty-title,
.transcript-loading-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-primary);
}

.transcript-empty-desc,
.transcript-loading-desc {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 340px;
  line-height: 1.5;
}

.btn-start-transcribe-turbo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #0f172a;
  color: #ffffff;
  border: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}

.transcript-spinner {
  width: 38px;
  height: 38px;
  border: 3px solid #e2e8f0;
  border-top-color: #ff5e3a;
  border-radius: 50%;
  animation: transcript-spin 0.8s linear infinite;
}

@keyframes transcript-spin {
  to { transform: rotate(360deg); }
}

.transcript-only-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.transcript-callout-banner {
  background-color: #0f172a;
  color: #ffffff;
  border-radius: 18px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.callout-banner-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: #ff5e3a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.callout-banner-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}

.callout-banner-desc {
  margin: 0;
  font-size: 12.5px;
  color: #cbd5e1;
  line-height: 1.45;
}

.source-transcript-full-card {
  border: 1px solid var(--border-card, #e2e8f0);
  border-radius: 16px;
  padding: 16px;
  background-color: var(--bg-card, #ffffff);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Bandeau des séances sources d'un Compte-Rendu Consolidé */
.merged-sources-strip {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 12px;
  background-color: var(--bg-card, #ffffff);
  border: 1.5px solid var(--border-card, #e2e8f0);
  border-radius: 12px;
  width: 100%;
  box-sizing: border-box;
}

.merged-sources-kicker {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.source-chip-solid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background-color: var(--bg-input, #f8fafc);
  border: 1px solid var(--border-card, #e2e8f0);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary, #0f172a);
  max-width: 100%;
}

.source-chip-num {
  background-color: #0f172a;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

body.dark-mode .source-chip-num {
  background-color: #ff5e3a;
  color: #ffffff;
}

.source-chip-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

