/* Réunions enregistrées (recordings-ui.js) : le bouton et le widget du dock, Smappy en bas à
   droite, et le panneau « Comptes rendus » (cartes comme l'Agenda). L'état ne passe jamais par la
   couleur seule : le minuteur, le point qui bat et le bouton d'arrêt le disent aussi. */

/* --- Dock : « Enregistrer », puis le widget de l'enregistrement : le point qui bat et le
   minuteur, « Arrêter » au milieu, et Smappy dans son médaillon au bout, qui épouse l'arrondi de
   la pilule (même centre, 4 px tout autour). Une pilule, comme micro et caméra. --- */
.dock {
  --rec-bg: rgba(255, 59, 48, 0.13);
  --rec-hover: rgba(255, 59, 48, 0.22);
}
:root[data-theme="dark"] .dock {
  --rec-bg: rgba(255, 69, 58, 0.2);
  --rec-hover: rgba(255, 69, 58, 0.3);
}
.dock-rec[hidden] {
  display: none;
}
.dock-group.dock-rec {
  --btn-bg: var(--rec-bg);
  --btn-hover: var(--rec-hover);
}
.dock-rec-time {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 10px 0 15px;
  border-radius: 23px 0 0 23px;
  background: var(--rec-bg);
  font-size: var(--fs-sub);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  /* Un bouton (le menu de l'enregistrement, recMenu) qui garde l'allure du minuteur. */
  border: 0;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out);
}
.dock-rec-time:hover,
.dock-rec-time[aria-expanded="true"] {
  background: var(--rec-hover);
}
.dock-rec-time:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
/* Le menu du minuteur : qui l'a lancé, qui est enregistré, puis ses réglages. */
.rec-menu {
  min-width: 250px;
  max-width: 320px;
}
.rec-menu-head {
  display: grid;
  gap: 2px;
  padding: 6px 10px 8px;
  font-size: var(--fs-footnote);
  color: var(--text-2);
}
.rec-menu-head b {
  font-size: var(--fs-sub);
  color: var(--text);
}
.dock .dock-group .dock-rec-stop {
  width: 42px;
  border-radius: 0;
  color: var(--red);
}
.dock-rec-stop svg {
  width: 17px;
  height: 17px;
}
/* Le fin trait entre le minuteur et l'arrêt, comme entre le micro et son chevron. */
.dock-rec-stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  bottom: 13px;
  width: 1px;
  background: currentColor;
  opacity: 0.2;
}
/* Le bout de la pilule : le médaillon de 38 px, centré sur le centre de l'arrondi (23 px du bord). */
.dock .dock-group .dock-rec-smappy {
  width: 46px;
  justify-content: flex-end;
  padding: 0 4px 0 0;
  border-radius: 0 23px 23px 0;
}
.dock-rec-smappy .smappy-face {
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.dock-rec-smappy:hover .smappy-face {
  transform: scale(1.05);
}
/* Sa conversation ouverte : un anneau autour du médaillon. */
.dock-rec-smappy[aria-expanded="true"] .smappy-face {
  box-shadow:
    inset 0 0 0 1px var(--glass-rim),
    0 0 0 2px rgba(121, 68, 192, 0.8);
}
/* (Sur un téléphone, le dock a des boutons de 42 px : dock.css. Le médaillon passe à 34 px.) */
@media (max-width: 479.98px) {
  .dock-rec-time {
    height: 42px;
    border-radius: 21px 0 0 21px;
    padding-left: 13px;
  }
  .dock .dock-group .dock-rec-stop {
    width: 40px;
  }
  .dock .dock-group .dock-rec-smappy {
    width: 42px;
    padding-right: 2px;
    border-radius: 0 21px 21px 0;
  }
  .dock-rec-smappy .smappy-face {
    transform: scale(0.895);
  }
  .dock-rec-smappy:hover .smappy-face {
    transform: scale(0.94);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rec-dot {
    animation: none;
  }
}

/* Le point de l'enregistrement : il bat doucement. */
.rec-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 0 rgba(223, 84, 96, 0.55);
  animation: rec-beat 1.6s ease-out infinite;
}
.rec-dot.small {
  width: 7px;
  height: 7px;
}
@keyframes rec-beat {
  0% {
    box-shadow: 0 0 0 0 rgba(223, 84, 96, 0.55);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(223, 84, 96, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(223, 84, 96, 0);
  }
}
body.editing #smappy-chat {
  display: none;
}

/* --- Smappy, en bas à droite (à gauche du panneau quand il est ouvert) --- */
.smappy-chat {
  position: absolute;
  right: calc(var(--edge) + var(--side-space, 0px));
  bottom: calc(var(--edge) + var(--dock-h) + var(--gap));
  z-index: 8;
  width: min(384px, calc(100vw - 2 * var(--edge)));
  height: min(560px, calc(100vh - var(--dock-h) - 150px));
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transform-origin: bottom right;
  transition:
    opacity var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-sheet),
    right var(--dur-base) var(--ease-sheet);
}
.smappy-chat.open {
  opacity: 1;
  transform: none;
}
.smappy-chat.leaving {
  opacity: 0;
  transform: translateY(10px) scale(0.98);
}
.smappy-face {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #ffffff 0%, var(--haze) 70%);
  box-shadow: inset 0 0 0 1px var(--glass-rim);
}
.smappy-face canvas {
  display: block;
}
.smappy-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px 12px 14px;
  border-bottom: 1px solid var(--hairline);
}
.smappy-title {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.smappy-title b {
  font-size: var(--fs-callout);
}
.smappy-title small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-footnote);
  color: var(--text-2);
  white-space: nowrap;
}
.smappy-sub {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.smappy-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 14px;
  scroll-behavior: smooth;
}
/* Avant la première question : Smappy se présente et propose des idées. */
.smappy-hello {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 4px 6px;
  animation: smappy-rise var(--dur-base) var(--ease-out);
}
.smappy-hello h3 {
  margin: 6px 0 0;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.smappy-hello p {
  margin: 0 0 6px;
  font-size: var(--fs-sub);
  line-height: 1.45;
  color: var(--text-2);
}
.smappy-ideas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
}
.smappy-idea {
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--glass-hi);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-sub);
  padding: 7px 12px;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.smappy-idea:hover {
  background: color-mix(in srgb, var(--accent) 12%, var(--glass-hi));
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.smappy-idea:active {
  transform: scale(0.97);
}
/* Les messages : les siens à droite, ceux de Smappy à gauche, avec son visage. */
.smappy-msg {
  display: flex;
  gap: 8px;
  max-width: 100%;
  animation: smappy-rise var(--dur-base) var(--ease-out);
}
.smappy-msg.user {
  justify-content: flex-end;
}
.smappy-msg.user .smappy-bubble {
  max-width: 84%;
  padding: 9px 13px;
  border-radius: 18px 18px 6px 18px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: var(--fs-body);
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.smappy-msg.bot {
  align-items: flex-start;
}
.smappy-msg.bot .smappy-bubble {
  min-width: 0;
  max-width: calc(100% - 34px);
  padding: 9px 13px;
  border-radius: 6px 18px 18px 18px;
  background: var(--glass-hi);
  box-shadow: inset 0 0 0 1px var(--hairline);
  font-size: var(--fs-body);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.smappy-msg.failed .smappy-bubble {
  color: var(--red);
}
.rec-rich p {
  margin: 0 0 6px;
}
.rec-rich p:last-child,
.rec-rich ul:last-child {
  margin-bottom: 0;
}
.rec-rich ul {
  margin: 0 0 6px;
  padding-left: 18px;
}
.rec-rich li {
  margin: 3px 0;
}
/* Smappy écrit : trois points qui sautillent. */
.smappy-typing {
  display: flex;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 6px 18px 18px 18px;
  background: var(--glass-hi);
  box-shadow: inset 0 0 0 1px var(--hairline);
}
.smappy-typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-3);
  animation: smappy-dot 1.2s ease-in-out infinite;
}
.smappy-typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.smappy-typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes smappy-dot {
  0%,
  60%,
  100% {
    transform: none;
    opacity: 0.45;
  }
  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}
@keyframes smappy-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.smappy-note {
  margin: 0 14px 8px;
  font-size: var(--fs-footnote);
  line-height: 1.4;
  color: var(--text-2);
}
.smappy-composer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin: 0 12px 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 22px;
  background: var(--glass-hi);
  box-shadow: inset 0 0 0 1px var(--hairline);
  transition: box-shadow var(--dur-fast) var(--ease-out);
}
.smappy-composer:focus-within {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent),
    0 0 0 3px var(--accent-ring);
}
.smappy-field {
  flex: 1;
  min-width: 0;
  min-height: 22px;
  max-height: 120px;
  margin: 0;
  padding: 6px 0;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: var(--fs-body);
  line-height: 1.4;
}
.smappy-field::placeholder {
  color: var(--text-3);
}
.smappy-send {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
.smappy-send svg {
  width: 16px;
  height: 16px;
}
.smappy-send:disabled {
  opacity: 0.32;
  cursor: default;
}
.smappy-send:not(:disabled):active {
  transform: scale(0.92);
}
.smappy-foot {
  margin: 0 14px 10px;
  text-align: center;
  font-size: var(--fs-caption);
  color: var(--text-3);
}
@media (prefers-reduced-motion: reduce) {
  .rec-dot,
  .smappy-typing i,
  .smappy-msg,
  .smappy-hello {
    animation: none;
  }
}

/* --- Visages --- */
.rec-face {
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  overflow: hidden;
  background: var(--fill-2);
}
.rec-face canvas {
  display: block;
}
.rec-initial {
  background: var(--haze);
  color: var(--accent);
  font-weight: 700;
}
.rec-faces {
  display: flex;
  flex: none;
}
.rec-faces > * {
  box-shadow: 0 0 0 2px var(--glass-rim);
}
.rec-faces > * + * {
  margin-left: -7px;
}
.rec-more {
  padding: 0 6px;
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--text-2);
}

/* --- Le panneau : des cartes comme l'Agenda --- */
.rec-card {
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
.rec-card:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 var(--glass-rim),
    0 6px 18px -10px rgba(31, 23, 53, 0.35);
}
.rec-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.rec-card.rec-event {
  cursor: default;
}
.rec-card.rec-event:hover {
  transform: none;
  box-shadow: inset 0 1px 0 var(--glass-rim);
}
/* En cours d'enregistrement : le filet et le fond rouges, et le mot « Enregistrement ». */
.rec-card.live:not(.rec-event) {
  background: color-mix(in srgb, var(--red) 10%, var(--glass-hi));
}
.rec-card.live:not(.rec-event)::before {
  background: var(--red);
}
.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.rec-badge .ic svg {
  width: 11px;
  height: 11px;
  display: block;
}
.rec-badge.live {
  background: var(--red);
  color: #ffffff;
}
.rec-badge.live .rec-dot {
  background: #ffffff;
  animation: none;
}
.rec-badge.done {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  color: var(--accent);
}
.rec-badge.failed {
  background: color-mix(in srgb, var(--red) 18%, transparent);
  color: var(--red);
}
.rec-card-overview {
  margin: 0;
  font-size: var(--fs-sub);
  line-height: 1.45;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rec-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 2px;
}
.rec-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fs-footnote);
  font-weight: 600;
  color: var(--text-2);
}
.rec-stat .ic svg {
  width: 13px;
  height: 13px;
  display: block;
}
.rec-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: var(--fs-footnote);
  color: var(--text-3);
}
.rec-hint .ic svg {
  width: 12px;
  height: 12px;
  display: block;
}
.rec-empty p {
  margin: 0;
  font-size: var(--fs-sub);
  line-height: 1.45;
  color: var(--text-2);
}
/* En attendant : des cartes vides qui scintillent. */
.rec-skeleton {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.rec-skeleton i {
  height: 84px;
  border-radius: 18px;
  background: linear-gradient(100deg, var(--fill) 30%, var(--glass-hi) 50%, var(--fill) 70%) 0 0 / 300% 100%;
  animation: rec-shimmer 1.4s ease-in-out infinite;
}
.rec-skeleton i:nth-child(2) {
  height: 64px;
  opacity: 0.8;
}
.rec-skeleton i:nth-child(3) {
  height: 48px;
  opacity: 0.6;
}
@keyframes rec-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: 0 0;
  }
}

/* --- Un compte rendu --- */
.rec-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-hero {
  padding: 10px 2px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rec-title {
  margin: 0;
  font-size: var(--fs-title);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.rec-people {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  font-size: var(--fs-sub);
  color: var(--text-2);
}
.rec-ask-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 16px;
}
.rec-ask-btn .ic svg {
  width: 16px;
  height: 16px;
  display: block;
}
.rec-state {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--glass-hi);
  box-shadow: inset 0 1px 0 var(--glass-rim);
}
.rec-state > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rec-state small {
  font-size: var(--fs-sub);
  color: var(--text-2);
}
.rec-state .ic svg {
  width: 16px;
  height: 16px;
  display: block;
  margin-top: 1px;
  color: var(--accent);
}
.rec-state .rec-dot {
  margin-top: 5px;
}
.rec-state.live {
  background: color-mix(in srgb, var(--red) 10%, var(--glass-hi));
}
.rec-state.failed .ic svg {
  color: var(--red);
}
/* Le lecteur : lecture, la barre d'avancée (la partie écoutée en couleur), le temps, la vitesse. */
.rec-player {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 18px;
  background: var(--glass-hi);
  box-shadow: inset 0 1px 0 var(--glass-rim);
}
.rec-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out);
}
.rec-play:active {
  transform: scale(0.93);
}
.rec-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.rec-player-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rec-range {
  --p: 0%;
  width: 100%;
  height: 18px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.rec-range::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--fill-2) var(--p));
}
.rec-range::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--accent) var(--p), var(--fill-2) var(--p));
}
.rec-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(31, 23, 53, 0.35);
}
.rec-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 4px rgba(31, 23, 53, 0.35);
}
.rec-time {
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.rec-speed {
  flex: none;
  min-width: 40px;
  padding: 4px 8px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--fill);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-footnote);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
/* Les blocs du compte rendu : l'essentiel, les décisions, les actions, les sujets, les questions. */
.rec-block {
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--glass-hi);
  box-shadow: inset 0 1px 0 var(--glass-rim);
}
.rec-block-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  font-size: var(--fs-footnote);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-3);
}
.rec-block-title .ic svg {
  width: 14px;
  height: 14px;
  display: block;
  color: var(--accent);
}
.rec-overview {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.5;
}
.rec-checks,
.rec-actions {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rec-checks li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: var(--fs-body);
  line-height: 1.45;
}
.rec-checks .ic svg {
  width: 15px;
  height: 15px;
  display: block;
  margin-top: 2px;
  color: var(--green-text);
}
.rec-questions .ic svg {
  color: var(--accent);
}
/* Une action : le visage, puis qui et pour quand sur une ligne, et ce qu'il faut faire dessous,
   sur toute la largeur (l'échéance ne mange plus la place du texte). */
.rec-actions li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rec-actions li + li {
  padding-top: 9px;
  border-top: 1px solid var(--hairline);
}
.rec-action {
  flex: 1;
  min-width: 0;
}
.rec-action-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px 8px;
  min-height: 26px;
}
.rec-action-head b {
  font-size: var(--fs-sub);
}
.rec-action-what {
  margin: 1px 0 0;
  font-size: var(--fs-body);
  line-height: 1.4;
}
.rec-when {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px 2px 6px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--orange) 22%, transparent);
  font-size: var(--fs-caption);
  font-weight: 700;
}
.rec-when .ic svg {
  width: 11px;
  height: 11px;
  display: block;
}
.rec-topic summary,
.rec-transcript summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-size: var(--fs-callout);
  font-weight: 600;
}
.rec-topic summary::-webkit-details-marker,
.rec-transcript summary::-webkit-details-marker {
  display: none;
}
.rec-transcript summary .rec-block-title {
  margin: 0;
}
.rec-topic[open] .agenda-chevron,
.rec-transcript[open] .agenda-chevron {
  transform: none;
}
.rec-topic ul {
  margin: 8px 0 0;
  padding-left: 18px;
  font-size: var(--fs-body);
  line-height: 1.45;
  animation: agenda-unfold var(--dur-base) var(--ease-out);
}
.rec-topic li {
  margin: 4px 0;
}
.rec-lines {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: agenda-unfold var(--dur-base) var(--ease-out);
}
.rec-line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 6px;
  border-radius: 12px;
  font-size: var(--fs-sub);
  line-height: 1.45;
}
.rec-line.playable {
  cursor: pointer;
}
.rec-line.playable:hover {
  background: var(--fill);
}
.rec-line-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.rec-line-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rec-line-time {
  font-size: var(--fs-caption);
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.rec-keep {
  margin: 4px 4px 8px;
  font-size: var(--fs-caption);
  line-height: 1.45;
  color: var(--text-3);
}

/* Smappy vivant, au bout du dock (shared/smappy-life.js) : une image par pose, une seule montrée ; il
   respire d'un pixel, en pas entiers (le pixel reste net). */
.smappy-live {
  position: relative;
}
.smappy-live .smappy-body {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  animation: smappy-breathe 3.2s steps(1) infinite;
}
.smappy-live .smappy-pose {
  position: absolute;
  inset: 0;
  display: none;
}
.smappy-live[data-pose="rest"] .smappy-pose[data-pose="rest"],
.smappy-live[data-pose="blink"] .smappy-pose[data-pose="blink"],
.smappy-live[data-pose="look-left"] .smappy-pose[data-pose="look-left"],
.smappy-live[data-pose="look-right"] .smappy-pose[data-pose="look-right"],
.smappy-live[data-pose="note-a"] .smappy-pose[data-pose="note-a"],
.smappy-live[data-pose="note-b"] .smappy-pose[data-pose="note-b"] {
  display: block;
}
@keyframes smappy-breathe {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1px);
  }
}
/* À l'arrêt, seul au bout du dock : un rond entier, le temps de rédiger. */
.dock .dock-group .dock-rec-smappy.alone {
  width: 46px;
  justify-content: center;
  padding: 0;
  border-radius: 23px;
}

/* Ce qu'il dit : une bulle au-dessus du médaillon, courte ; un clic la ferme. */
.dock-group.dock-rec {
  position: relative;
}
.smappy-say {
  --say-bg: color-mix(in srgb, var(--bg) 93%, var(--accent) 7%);
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 2;
  width: max-content;
  max-width: 240px;
  padding: 8px 12px;
  border: 0;
  border-radius: 16px 16px 5px 16px;
  /* Opaque : rien de la vue réunion ne transparaît dessous. */
  background: var(--say-bg);
  box-shadow:
    0 0 0 1px var(--glass-rim),
    0 6px 20px rgba(20, 16, 40, 0.22);
  color: var(--text);
  font: inherit;
  font-size: var(--fs-footnote);
  font-weight: 600;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  animation: smappy-say-in 220ms var(--ease-out) both;
}
/* La pointe, vers le médaillon. */
.smappy-say::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -7px;
  border: 7px solid transparent;
  border-bottom: 0;
  border-top-color: var(--say-bg);
}
@keyframes smappy-say-in {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.96);
  }
}
@media (prefers-reduced-motion: reduce) {
  .smappy-live .smappy-body,
  .smappy-say {
    animation: none;
  }
}
