/* appels-v77.css — écran « Vos appels » V77
 *
 * Sections étanches (règle d'or anti-conflit du PLAN-ARCHI.md §3) :
 *   /* ══ V77-A ══ *\/  -> Dev A seul (vue, file, bottom sheet, swipe…)
 *   /* ===== DEV B ===== *\/ -> Dev B seul (recherche, pastilles, cycle de vie…)
 * Aucun sélecteur global non préfixé. Palette = custom properties de styles.css.
 */

/* QA-REPORT §6 (blocage visuel) : var(--card) n'existe pas dans styles.css
   (7 usages Dev B sans fallback → fonds transparents). On l'aligne sur le fond
   de carte du thème actif (sombre #1c1d21 / clair #FFFFFF via --bg-elevated).
   Seule exception sanctionnée au préfixe .v77- : ne style rien, ne fait que
   définir le token manquant. */
:root { --card: var(--bg-elevated); }

/* ══ V77-A ══ */
/* Dev A : vue « À vous de jouer », file, bottom sheet, swipe, historique.
   100 % sélecteurs .v77- (jamais .v77-b- : section Dev B).
   Palette/typos : custom properties de styles.css (Encre & Champagne).
   Cibles ≥ 48 px, texte ≥ 16 px, 1 tap = 1 action, pas d'emoji. */

.v77-root {
  padding: 12px 16px calc(110px + env(safe-area-inset-bottom));
  max-width: 720px;
  margin: 0 auto;
}

.v77-muted { color: var(--ink-2); font-size: 16px; }

/* ── Bandeau démo ───────────────────────────────────────────────────────── */
.v77-demo-banner {
  background: var(--gold-weak);
  border: 1px solid var(--gold-line);
  color: var(--ink);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 15px;
  margin-bottom: 12px;
}

/* ── Urgences épinglées (sticky) ─────────────────────────────────────────── */
.v77-urgband {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg-app);
  padding: 8px 16px 10px;
  border-bottom: 1px solid var(--line-faint);
  margin: 0 -16px;
}
.v77-urgband-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--danger);
  margin-bottom: 8px;
}
.v77-urgband-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.v77-urgchip {
  flex: 0 0 auto;
  min-height: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 2px;
  background: var(--danger-weak);
  border: 1px solid var(--danger-line);
  border-radius: 12px;
  padding: 8px 14px;
  color: var(--ink);
}
.v77-urgchip-name { font-size: 16px; font-weight: 700; }
.v77-urgchip-when { font-size: 14px; color: var(--ink-2); }

/* ── Héros « À vous de jouer » ───────────────────────────────────────────── */
.v77-hero { padding: 10px 0 4px; }
.v77-hero-kicker {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.02em;
}
.v77-hero-count {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 3.4rem);
  line-height: 1.1;
  color: var(--ink);
  margin: 2px 0 6px;
}
.v77-hero-count strong { font-weight: 600; }
.v77-week { font-size: 16px; color: var(--ink-2); margin: 0 0 4px; }

/* ── Pendant votre absence ──────────────────────────────────────────────── */
.v77-absence {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 14px 16px;
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.v77-absence p { font-size: 16px; margin: 0; flex: 1 1 200px; }

/* ── Boutons ────────────────────────────────────────────────────────────── */
.v77-btn {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid var(--gold-line);
  background: var(--gold-weak);
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
}
.v77-btn-small {
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-2);
  font-size: 16px;
}
.v77-btn-ghost {
  min-height: 48px;
  width: 100%;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
}
.v77-btn-champagne {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  margin: 16px 0;
}
.v77-btn-champagne[disabled] { opacity: 0.55; }
.v77-btn-rappeler {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  width: 100%;
  background: var(--gold);
  color: var(--gold-ink);
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  text-decoration: none;
  margin: 14px 0;
}
.v77-btn-rappeler[disabled] { opacity: 0.55; }

/* ── File : cartes + swipe ──────────────────────────────────────────────── */
.v77-queue { margin-top: 6px; }
.v77-queue-empty p { color: var(--ink-2); font-size: 16px; }

.v77-swipe {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-card);
  margin: 10px 0;
  touch-action: pan-y;
  /* Le bandeau sticky « Urgences du jour » ne doit jamais recouvrir les
     boutons d'une carte : marge de scroll pour les ancrages. */
  scroll-margin-top: 150px;
}
.v77-swipe-under {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
}
.v77-swipe-under-left { justify-content: flex-start; }
.v77-swipe-under-right { justify-content: flex-end; }
.v77-swipe-btn {
  border: none;
  min-width: 110px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  padding: 0 18px;
}
.v77-swipe-under-left .v77-swipe-btn { background: var(--gold-weak); color: var(--gold-bright); }
.v77-swipe-under-right .v77-swipe-btn { background: var(--ok-weak); color: var(--ok); }

.v77-card {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 16px;
  will-change: transform;
  cursor: pointer;
}
.v77-card-name { font-size: 19px; font-weight: 700; color: var(--ink); }
.v77-card-tel {
  display: inline-block;
  color: var(--gold);
  font-size: 17px;
  padding: 12px 12px 12px 0;
  text-decoration: none;
}
.v77-card-motif { font-size: 16px; color: var(--ink); margin-top: 2px; }
.v77-card-ctx { font-size: 15px; color: var(--ink-2); margin-top: 4px; }
.v77-card-meta { font-size: 16px; color: var(--ink-2); margin-top: 6px; }
.v77-card-actions { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }

.v77-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.v77-badge {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-badge);
  border: 1px solid transparent;
  line-height: 1.5;
}
.v77-badge-urgent { background: var(--danger-weak); border-color: var(--danger-line); color: var(--danger); }
.v77-badge-raccroche { background: var(--warn-weak); border-color: var(--warn-line); color: var(--warn); }
.v77-badge-new { background: var(--gold-weak); border-color: var(--gold-line); color: var(--gold-bright); }
.v77-badge-done { background: var(--ok-weak); border-color: var(--ok-line); color: var(--ok); }
.v77-badge-insiste { background: var(--danger-weak); border-color: var(--danger-line); color: var(--danger); }
.v77-badge-recall { background: var(--gold-weak); border-color: var(--gold-line); color: var(--gold-bright); }

/* ── Fil « Il insiste » ─────────────────────────────────────────────────── */
.v77-thread-head {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: none;
  border: none;
  color: var(--ink);
  padding: 4px 0;
  text-align: left;
}
.v77-thread-title { font-size: 18px; font-weight: 700; }
.v77-thread-members { border-top: 1px solid var(--line-faint); margin-top: 8px; }
.v77-thread-member { padding: 12px 0; border-bottom: 1px solid var(--line-faint); }
.v77-thread-member:last-child { border-bottom: none; }

/* ── Historique ─────────────────────────────────────────────────────────── */
.v77-history { margin-top: 18px; }
.v77-sec-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 600;
}
.v77-day-title { font-size: 17px; color: var(--ink-2); margin: 14px 0 2px; font-weight: 600; }

.v77-month { margin: 8px 0; }
.v77-month-head {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  padding: 8px 16px;
}
.v77-month-body { padding: 6px 0; }
.v77-line {
  width: 100%;
  min-height: 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-content: center;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--line-faint);
  color: var(--ink);
  padding: 10px 4px;
}
.v77-line-name { font-size: 16px; font-weight: 600; grid-column: 1; }
.v77-line-motif { font-size: 16px; color: var(--ink-2); grid-column: 1; }
.v77-line-when { font-size: 16px; color: var(--ink-2); grid-column: 2; grid-row: 1 / 3; align-self: center; }

/* ── « Léa a géré » ─────────────────────────────────────────────────────── */
.v77-gele { margin: 14px 0 0; }
.v77-gele-note { font-size: 15px; color: var(--ink-2); margin: 8px 2px; }
.v77-gele-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-faint);
}
.v77-gele-info { display: flex; flex-direction: column; gap: 2px; }

/* ── État vide « Faites sonner Léa » ────────────────────────────────────── */
.v77-empty { text-align: center; padding: 36px 20px; }
.v77-empty p { font-size: 17px; color: var(--ink); }
.v77-empty p strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

/* ── Bottom sheet « Ce que Léa en dit » ─────────────────────────────────── */
.v77-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 60;
}
.v77-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 61;
  background: var(--bg-elevated);
  border-top: 1px solid var(--line);
  border-radius: 20px 20px 0 0;
  max-height: 62vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 6px 20px calc(26px + env(safe-area-inset-bottom));
}
.v77-sheet.v77-sheet-full { max-height: 92vh; }
.v77-sheet-handle {
  width: 44px;
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  margin: 8px auto 4px;
}
.v77-sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  min-height: 48px;
  min-width: 64px;
  background: none;
  border: none;
  color: var(--ink-2);
  font-size: 16px;
}
.v77-sheet-head { padding-right: 70px; }
.v77-sheet-name {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 600;
  color: var(--ink);
}
.v77-sheet-phone {
  display: inline-block;
  font-size: 20px;
  color: var(--gold);
  text-decoration: none;
  padding: 12px 12px 12px 0;
}
.v77-sheet-phone-none { color: var(--ink-2); }
.v77-sheet-facts { margin: 6px 0; }
.v77-sheet-facts-title { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-bottom: 6px; }
.v77-sheet-facts p { font-size: 17px; color: var(--ink); margin: 0 0 8px; }
.v77-sheet-meta { font-size: 15px; color: var(--ink-2); margin: 10px 0 4px; }
.v77-sheet-addr { font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.v77-collapse-head {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  background: none;
  border: none;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  padding: 6px 0;
}
.v77-collapse-body { padding: 4px 0 12px; }
.v77-tr { font-size: 16px; color: var(--ink); padding: 7px 0; border-bottom: 1px solid var(--line-faint); }
.v77-tr:last-child { border-bottom: none; }
.v77-tr-who { color: var(--gold-bright); font-weight: 600; }
.v77-audio { width: 100%; margin: 8px 0; }

/* ── Toast « Annuler » ──────────────────────────────────────────────────── */
.v77-toast-undo {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  min-height: 60px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}
.v77-toast-undo-msg { font-size: 16px; color: var(--ink); }
.v77-toast-undo-btn {
  min-height: 48px;
  padding: 0 20px;
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 16px;
  font-weight: 700;
}

/* ── Squelettes (jamais de spinner générique) ───────────────────────────── */
.v77-skel-wrap { padding: 8px 0; }
.v77-skel {
  background: var(--bg-panel);
  border: 1px solid var(--line-faint);
  border-radius: var(--r-card);
  padding: 16px;
  margin: 10px 0;
}
.v77-skel-line {
  border-radius: 6px;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.v77-skel-l1 { height: 20px; width: 55%; margin-bottom: 10px; }
.v77-skel-l2 { height: 15px; width: 85%; }
.v77-skel-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  animation: v77-shimmer 1.4s infinite;
}
@keyframes v77-shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

/* ── Erreur ─────────────────────────────────────────────────────────────── */
.v77-error {
  background: var(--bg-panel);
  border: 1px solid var(--danger-line);
  border-radius: var(--r-card);
  padding: 20px;
  margin: 16px 0;
}
.v77-error p { font-size: 16px; color: var(--ink); }
.v77-error-detail { font-size: 14px; color: var(--ink-2); }

/* ── Divers ─────────────────────────────────────────────────────────────── */
.v77-no-scroll { overflow: hidden; }

.v77-root button:focus-visible,
.v77-sheet button:focus-visible,
.v77-toast-undo button:focus-visible,
.v77-sheet a:focus-visible,
.v77-root a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .v77-skel-line::after { animation: none; }
  .v77-card,
  .v77-sheet,
  .v77-toast-undo { transition: none !important; }
  .v77-peek { animation: none; }
}

/* ── C4 : indice du swipe — discret, affiché une seule fois ─────────────── */
.v77-swipe-hint {
  font-size: 16px;
  color: var(--ink-soft, #9aa0a6);
  text-align: center;
  margin: 2px 8px 12px;
}
/* « peek » : la première carte jette un œil à gauche puis à droite, une fois. */
.v77-peek { animation: v77-peek 900ms ease 400ms 1; }
@keyframes v77-peek {
  0%, 100% { transform: translateX(0); }
  35% { transform: translateX(-30px); }
  70% { transform: translateX(18px); }
}


/* ===== DEV B ===== */
/* Recherche / filtrage / cycle de vie — préfixe .v77-b- uniquement.
   Règles : cibles 48 px min, texte 16 px min, 1 tap = 1 action,
   français d'artisan, zéro emoji, bottom sheets, prefers-reduced-motion. */

.v77-b-searchslot { padding: 12px 16px 4px; }
.v77-b-searchbtn {
  display: block; width: 100%; min-height: 56px;
  font-family: var(--font-ui); font-size: 18px; font-weight: 600;
  color: #1c1b17; background: var(--champagne);
  border: none; border-radius: 14px; cursor: pointer;
}
.v77-b-searchhint {
  margin: 8px 2px 0; font-size: 16px; color: var(--ink-soft, #9aa0a6);
}

/* Pastilles empilables */
.v77-b-filters {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  padding: 8px 16px;
}
.v77-b-chip {
  min-height: 48px; padding: 0 18px;
  font-family: var(--font-ui); font-size: 16px;
  color: var(--ink); background: transparent;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.v77-b-chip.on { background: var(--champagne); color: #1c1b17; border-color: transparent; font-weight: 600; }
.v77-b-chipx {
  margin-left: 8px; font-size: 20px; line-height: 1;
  background: none; border: none; color: inherit; cursor: pointer;
  min-width: 44px; min-height: 44px;
}
.v77-b-count { margin-left: auto; font-size: 15px; color: var(--ink-soft, #9aa0a6); }

/* Boutons d'action (cartes + sheets) */
.v77-b-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.v77-b-btn {
  min-height: 48px; padding: 0 22px;
  font-family: var(--font-ui); font-size: 17px; font-weight: 600;
  color: #1c1b17; background: var(--champagne);
  border: none; border-radius: 12px; cursor: pointer;
}
.v77-b-btn-soft { background: transparent; color: var(--ink); border: 1px solid var(--line); font-weight: 500; }
.v77-b-btn-big { width: 100%; min-height: 60px; font-size: 19px; margin: 12px 0 4px; }
.v77-b-linkbtn {
  display: block; width: 100%; min-height: 48px; margin-top: 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); font-size: 16px; color: var(--ink-soft, #9aa0a6);
  text-decoration: underline;
}

/* Pastilles d'état sur les cartes */
.v77-b-badge {
  display: inline-block; padding: 6px 12px; margin: 4px 6px 0 0;
  font-size: 14px; font-weight: 600; border-radius: 999px;
  background: var(--gold-weak, rgba(201,169,98,.15)); color: var(--gold, #c9a962);
  border: 1px solid var(--gold-line, rgba(201,169,98,.4));
}
.v77-b-badge-attn { background: var(--danger-weak, rgba(224,86,106,.12)); color: var(--danger); border-color: var(--danger-line, rgba(224,86,106,.4)); }
.v77-b-badge-warn { background: var(--gold-weak, rgba(201,169,98,.15)); color: var(--gold, #c9a962); border-color: var(--gold-line, rgba(201,169,98,.4)); }

/* Écran de recherche */
.v77-b-screen { padding: 0 16px 120px; }
.v77-b-topbar { display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.v77-b-back {
  min-height: 48px; min-width: 48px; padding: 0 16px;
  font-size: 17px; background: none; border: 1px solid var(--line);
  border-radius: 12px; color: var(--ink); cursor: pointer;
}
.v77-b-title { font-family: var(--font-display); font-size: 24px; margin: 0; color: var(--ink); }
.v77-b-h { font-size: 17px; font-weight: 600; color: var(--ink); margin: 22px 0 10px; }

.v77-b-voice { text-align: center; padding: 18px 0 6px; }
.v77-b-mic {
  position: relative; width: 128px; height: 128px; border-radius: 50%;
  background: var(--champagne); border: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.v77-b-mic-label { font-size: 19px; font-weight: 700; color: #1c1b17; font-family: var(--font-ui); }
.v77-b-mic-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid var(--gold, #c9a962); opacity: 0; pointer-events: none;
}
.v77-b-mic.listening .v77-b-mic-ring { opacity: 1; animation: v77-b-pulse 1.2s ease-out infinite; }
@keyframes v77-b-pulse {
  0% { transform: scale(1); opacity: .9; }
  100% { transform: scale(1.35); opacity: 0; }
}
.v77-b-voicehint { font-size: 16px; color: var(--ink-soft, #9aa0a6); margin-top: 12px; line-height: 1.5; }
.v77-b-novoice {
  font-size: 16px; color: var(--ink); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; line-height: 1.5;
}

.v77-b-field { display: flex; gap: 8px; margin: 14px 0 4px; }
.v77-b-field input {
  flex: 1; min-height: 52px; font-size: 17px; font-family: var(--font-ui);
  color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 0 16px;
}

/* Confirmation « J'ai compris » */
.v77-b-confirm {
  margin: 14px 0; padding: 18px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--gold-line, rgba(201,169,98,.4));
}
.v77-b-confirm-q { font-size: 19px; color: var(--ink); margin: 0 0 14px; line-height: 1.45; }
.v77-b-confirm-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.v77-b-confirm-voice { font-size: 15px; color: var(--ink-soft, #9aa0a6); margin: 10px 0 0; }

/* Résultats */
.v77-b-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.v77-b-sort { font-size: 15px; color: var(--ink-soft, #9aa0a6); margin: 14px 0 8px; }
.v77-b-results { display: flex; flex-direction: column; gap: 10px; }
.v77-b-result {
  display: block; width: 100%; text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 16px; font-family: var(--font-ui);
}
.v77-b-result-top { display: flex; align-items: center; gap: 8px; }
.v77-b-result-name { font-size: 18px; font-weight: 600; color: var(--ink); }
.v77-b-result-tel { display: block; font-size: 15px; color: var(--ink-soft, #9aa0a6); margin-top: 2px; }
.v77-b-snippet { display: block; font-size: 16px; color: var(--ink); margin-top: 8px; line-height: 1.5; }
.v77-b-snippet mark { background: var(--gold-weak, rgba(201,169,98,.25)); color: inherit; border-radius: 3px; padding: 0 2px; }
.v77-b-why { display: block; font-size: 15px; font-style: italic; color: var(--ink-soft, #9aa0a6); margin-top: 6px; line-height: 1.45; }
.v77-b-empty { font-size: 17px; color: var(--ink); line-height: 1.6; padding: 18px 4px; }
.v77-b-more { font-size: 15px; color: var(--ink-soft, #9aa0a6); text-align: center; }

/* Zéro frappe + Léa devine + historique */
.v77-b-suggests, .v77-b-history { display: flex; flex-wrap: wrap; gap: 8px; }
.v77-b-suggest {
  min-height: 48px; padding: 0 18px; font-size: 16px; font-family: var(--font-ui);
  background: var(--card); color: var(--ink); border: 1px solid var(--line);
  border-radius: 999px; cursor: pointer;
}
.v77-b-guesses { display: flex; flex-direction: column; gap: 10px; }
.v77-b-guess {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 6px;
}
.v77-b-guess-main {
  display: block; width: 100%; text-align: left; background: none; border: none;
  cursor: pointer; padding: 10px; font-family: var(--font-ui); min-height: 48px;
}
.v77-b-guess-title { display: block; font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.v77-b-guess-sub { display: block; font-size: 14px; color: var(--ink-soft, #9aa0a6); margin-top: 4px; }
.v77-b-paspertinent {
  min-height: 48px; padding: 0 12px; background: none; border: none; cursor: pointer;
  font-size: 16px; color: var(--ink-soft, #9aa0a6); text-decoration: underline;
}

/* Bottom sheets Dev B (jamais de modale) */
/* V91 : z-index 65 > fiche Dev A (#v77-sheet, 61) pour que la feuille
   « Me le rappeler » reste cliquable quand on l'ouvre depuis la fiche ;
   < toasts (70). */
.v77-b-sheetwrap { position: fixed; inset: 0; z-index: 65; }
.v77-b-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.v77-b-sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg-elevated, var(--card)); color: var(--ink);
  border-radius: 20px 20px 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 85vh; overflow-y: auto;
}
.v77-b-sheet-title { font-family: var(--font-display); font-size: 22px; margin: 0 0 6px; }
.v77-b-sheet-sub { font-size: 17px; color: var(--ink-soft, #9aa0a6); margin: 0 0 8px; line-height: 1.45; }
.v77-b-sheet-note { font-size: 16px; color: var(--ink-soft, #9aa0a6); margin: 12px 0 0; line-height: 1.5; }

/* Toast local + toast Annuler du stub */
.v77-b-toast {
  position: fixed; left: 16px; right: 16px; bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 70; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink); color: var(--bg-app);
  font-size: 16px; padding: 14px 18px; border-radius: 12px;
}
.v77-b-undobtn {
  min-height: 44px; padding: 0 14px; font-size: 16px; font-weight: 700;
  background: none; border: none; color: var(--gold, #c9a962); cursor: pointer;
  text-decoration: underline;
}
.v77-b-demotag { font-size: 13px; opacity: .7; }

/* Stub standalone (jeté à l'intégration avec le stub JS) */
.v77-b-demobanner {
  font-size: 14px; color: var(--ink-soft, #9aa0a6); text-align: center;
  padding: 8px; border-bottom: 1px solid var(--line);
}
.v77-b-stuberror { font-size: 16px; color: var(--danger); padding: 16px; }
.v77-b-stubcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; margin: 10px 16px;
}

/* Motion : grammaire 120/180/240 ms + respect de prefers-reduced-motion */
.v77-b-btn, .v77-b-chip, .v77-b-suggest, .v77-b-result { transition: transform 120ms var(--ease), opacity 120ms var(--ease); }
.v77-b-sheet { transition: transform 240ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .v77-b-mic.listening .v77-b-mic-ring { animation: none; opacity: 1; }
  .v77-b-btn, .v77-b-chip, .v77-b-suggest, .v77-b-result, .v77-b-sheet { transition: none; }
}
