/* =====================================================================
   Bulle — Navigation en trois espaces (M13) et accueil « Cercle »
   Jetons : ecume.css. Tout est préfixé body.shell-e (classe posée par
   v5-shell.js) : sans le module, l'ancienne navigation reste intacte.
   Les sélecteurs reprennent les identifiants des boutons pour primer
   proprement sur les anciennes règles (bulle.css, mobile.css).
   ===================================================================== */

/* ---------------------------------------------------------------
   Libellés des espaces : masqués sauf dans la nouvelle navigation
   --------------------------------------------------------------- */
.sp-label, .rail-brand { display: none; }

/* =================================================================
   ORDINATEUR : une colonne d'espaces nommés
   ================================================================= */
@media (min-width: 761px) {
  body.shell-e .app { grid-template-columns: 88px var(--side-w, 260px) minmax(0, 1fr) auto; }
  html[data-sidepos="right"] body.shell-e .app { grid-template-columns: 88px minmax(0, 1fr) var(--side-w, 260px) auto; }

  body.shell-e .app .rail { padding: 14px 0 12px; gap: 6px; background: var(--rail); background-image: var(--nacre); }
  body.shell-e .app .rail .rail-brand { display: grid; place-items: center; order: 0; width: 100%; height: 52px; margin-bottom: 8px; }
  body.shell-e .app .rail .rail-orb {
    /* Logo Bulle aux couleurs du thème choisi (--violet = couleur principale du thème) */
    position: relative; display: block; width: 38px; height: 38px; border-radius: 50%;
    box-shadow: 0 6px 16px -6px var(--violet);
    animation: e-wobble 6s ease-in-out infinite;
  }
  body.shell-e .app .rail .rail-orb svg { display: block; width: 100%; height: 100%; }
  body.shell-e .app .rail .rail-orb .ro-bg { fill: var(--violet, #5B43F0); transition: fill .3s; }
  body.shell-e .app .rail .rail-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: radial-gradient(circle at 30% 22%, rgba(255,255,255,.28), transparent 52%); box-shadow: inset 0 -4px 8px rgba(var(--shadow-rgb, 27, 16, 51), .18); }
  :root[data-motion="off"] body.shell-e .app .rail .rail-orb { animation: none; }

  /* Les trois espaces */
  body.shell-e .app .rail #btn-home,
  body.shell-e .app .rail #btn-social,
  body.shell-e .app .rail #btn-mobile-me {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 68px; height: 62px; border-radius: 22px; background: transparent; box-shadow: none; color: var(--texte-2);
  }
  body.shell-e .app .rail #btn-home { order: 1; }
  body.shell-e .app .rail #btn-social { order: 2; }
  body.shell-e .app .rail #btn-mobile-me { order: 3; }
  body.shell-e .app .rail #btn-home .sp-label,
  body.shell-e .app .rail #btn-social .sp-label,
  body.shell-e .app .rail #btn-mobile-me .sp-label { display: block; font: 650 11.5px/1 var(--font-ui); letter-spacing: .01em; }
  body.shell-e .app .rail #btn-social .bubble-text,
  body.shell-e .app .rail #btn-social .bubble-halo { display: none; }
  body.shell-e .app .rail #btn-social .bubble-ic { display: contents; }
  body.shell-e .app .rail #btn-home:hover,
  body.shell-e .app .rail #btn-social:hover,
  body.shell-e .app .rail #btn-mobile-me:hover { background: var(--surface-hover); color: var(--texte); }
  body.shell-e .app .rail #btn-home.active,
  body.shell-e .app .rail #btn-social.active {
    background: var(--panneau); color: var(--accent-ink); box-shadow: var(--rim), var(--e-2);
  }
  body.shell-e .app .rail #btn-home::before,
  body.shell-e .app .rail #btn-social::before { content: none; }
  body.shell-e .app .rail #btn-home .badge-dot { top: 4px; right: 10px; left: auto; }
  body.shell-e .app .rail #btn-mobile-me .avatar { width: 26px; height: 26px; font-size: 11px; }
  body.shell-e .app .rail #btn-mobile-me.has-avatar > svg { display: none; }

  /* Créer : la bulle irisée */
  body.shell-e .app .rail #btn-m-create {
    display: grid; place-items: center; order: 4; width: 50px; height: 50px; margin: 8px 0 4px; border-radius: 50%;
    background: var(--sheen), var(--iris); color: #fff; box-shadow: inset 0 -5px 12px rgba(var(--shadow-rgb, 27, 16, 51), .22), 0 10px 22px -10px var(--accent-2);
  }
  body.shell-e .app .rail #btn-m-create:hover { box-shadow: inset 0 -5px 12px rgba(var(--shadow-rgb, 27, 16, 51), .22), 0 12px 26px -8px var(--accent-2); }
  body.shell-e .app .rail #btn-m-create .sp-label { display: none; }

  /* Bas de colonne : notifications, Bulle+, administration */
  body.shell-e .app .rail #btn-notifs { order: 8; margin-top: auto; border-radius: 50%; background: transparent; box-shadow: none; }
  body.shell-e .app .rail #btn-notifs:hover { background: var(--surface-hover); }
  body.shell-e .app .rail #btn-premium { order: 9; border-radius: 50%; }
  body.shell-e .app .rail #btn-admin { order: 10; border-radius: 50%; }
  body.shell-e .app .rail .rail-sep,
  body.shell-e .app .rail #btn-m-discover,
  body.shell-e .app .rail #btn-mobile-menu { display: none; }

  /* Communautés : une bande de bulles en haut du panneau (fini la colonne d'icônes) */
  body.shell-e .side-comm { display: grid; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--hairline); }
  body.shell-e .side-comm-head { font: 700 var(--fs-xs)/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
  body.shell-e .side-comm .server-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; overflow: visible; }
  body.shell-e .side-comm { display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; }
  body.shell-e .side-comm-head { flex: 1 0 100%; }
  body.shell-e .side-comm .bubble {
    position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none;
    color: #1D1B24; font: 700 15px/1 var(--font-titre); box-shadow: inset 0 -4px 9px rgba(var(--shadow-rgb, 27, 16, 51), .16);
    transition: transform var(--d-pop) var(--ease-pop);
  }
  body.shell-e .side-comm .bubble::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sheen); pointer-events: none; }
  body.shell-e .side-comm .bubble::before { content: none; }
  body.shell-e .side-comm .bubble:hover { transform: translateY(-2px); }
  body.shell-e .side-comm .bubble.active { box-shadow: 0 0 0 2px var(--panneau), 0 0 0 4px var(--violet); }
  body.shell-e .side-comm .bubble img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  body.shell-e .side-comm .bubble .badge-dot { position: absolute; top: -3px; right: -3px; min-width: 17px; height: 17px; font-size: 10px; border: 2px solid var(--panneau); }
  body.shell-e .side-comm #btn-add-server { background: transparent; color: var(--texte-2); box-shadow: inset 0 0 0 1.5px var(--hairline-strong); }
  body.shell-e .side-comm #btn-add-server:hover { color: var(--violet); box-shadow: inset 0 0 0 1.5px var(--violet); }
  body.shell-e .side-comm #btn-add-server svg { width: 18px; height: 18px; }
}
@media (max-width: 760px) { .side-comm { display: none !important; } }
body:not(.shell-e) .side-comm { display: none !important; }

body.shell-e .app .rail .sp-label { order: 2; }

/* =================================================================
   TÉLÉPHONE : un dock flottant Cercle · Ciel · + · Moi
   ================================================================= */
@media (max-width: 760px) {
  body.shell-e .app { --tabbar-h: 78px; }
  body.shell-e .app .rail {
    left: 12px; right: 12px; bottom: calc(10px + var(--sab, 0px)); height: 62px; padding: 0 8px;
    border-radius: 31px; border: 0; justify-content: space-around; align-items: center;
    background: color-mix(in srgb, var(--texte) 94%, var(--violet)); color: var(--fond);
    box-shadow: 0 14px 34px -12px rgba(var(--shadow-rgb, 27, 16, 51), .55), inset 0 1px 0 rgba(255, 255, 255, .12);
  }
  body.shell-e .app[data-mtab="chats"]:not(.menu-open) .rail { transform: translateY(140%); }
  body.shell-e .app .rail .bubble { color: color-mix(in srgb, var(--fond) 62%, transparent); }
  body.shell-e .app .rail #btn-home,
  body.shell-e .app .rail #btn-social,
  body.shell-e .app .rail #btn-mobile-me {
    display: flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    flex: 1 1 0; max-width: 84px; height: 50px; min-height: 50px; border-radius: 25px; background: transparent;
  }
  body.shell-e .app .rail #btn-home { order: 1; }
  body.shell-e .app .rail #btn-social { order: 2; }
  body.shell-e .app .rail #btn-m-create { order: 3; display: grid !important; }
  body.shell-e .app .rail #btn-mobile-me { order: 4; }
  body.shell-e .app .rail #btn-home svg,
  body.shell-e .app .rail #btn-social svg,
  body.shell-e .app .rail #btn-mobile-me svg { width: 22px !important; height: 22px !important; }
  body.shell-e .app .rail .sp-label { display: block; font: 650 10.5px/1 var(--font-ui); letter-spacing: .01em; }
  body.shell-e .app .rail #btn-m-create .sp-label { display: none; }
  body.shell-e .app .rail #btn-social .bubble-text,
  body.shell-e .app .rail #btn-social .bubble-halo { display: none; }
  body.shell-e .app .rail #btn-social .bubble-ic { display: contents; }
  body.shell-e .app .rail #btn-social .bubble-ic svg { display: block; }
  body.shell-e .app .rail #btn-social .bubble-ic::before { content: none; }
  body.shell-e .app .rail .bubble.m-active,
  body.shell-e .app .rail .bubble.social.m-active { color: var(--fond); background: color-mix(in srgb, var(--fond) 14%, transparent); }
  body.shell-e .app .rail .bubble.m-active::before { content: none; }
  body.shell-e .app .rail .bubble.m-active svg { stroke-width: 2.3; }
  body.shell-e .app .rail #btn-m-create {
    flex: none; width: 50px; height: 50px; min-height: 50px; border-radius: 50%; place-items: center;
    background: var(--sheen), var(--iris); color: #fff;
    box-shadow: inset 0 -5px 12px rgba(var(--shadow-rgb, 27, 16, 51), .25), 0 8px 18px -8px var(--accent-2);
  }
  body.shell-e .app .rail #btn-m-create svg { width: 24px !important; height: 24px !important; stroke-width: 2.4; }
  body.shell-e .app .rail #btn-mobile-me .avatar { width: 24px; height: 24px; font-size: 10px; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--fond) 40%, transparent); }
  body.shell-e .app .rail #btn-mobile-me.has-avatar > svg { display: none; }
  body.shell-e .app .rail #btn-notifs,
  body.shell-e .app .rail #btn-m-discover,
  body.shell-e .app .rail #btn-mobile-menu,
  body.shell-e .app .rail #btn-premium,
  body.shell-e .app .rail .rail-sep { display: none !important; }
  body.shell-e .app .rail .bubble .badge-dot { top: 2px; left: calc(50% + 6px); border-color: color-mix(in srgb, var(--texte) 94%, var(--violet)); }
}

/* =================================================================
   VUE CERCLE
   ================================================================= */
#main[data-view="cercle"] { background: var(--fond); background-image: var(--nacre); }
.ce-page { height: 100%; overflow-y: auto; padding: 28px clamp(18px, 3.4vw, 44px) 40px; display: grid; gap: 22px; align-content: start; }
.ce-page > *, .ce-cols > *, .ce-col > * { min-width: 0; }

.ce-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ce-head-txt { display: grid; gap: 8px; }
.ce-title { font: 700 clamp(26px, 3.2vw, 38px)/1.02 var(--font-titre); letter-spacing: -.045em; margin: 0; color: var(--texte); }
.ce-head-act { display: flex; gap: 8px; align-items: center; }
.ce-hbtn { position: relative; background: var(--panneau); box-shadow: var(--rim), var(--e-1); color: var(--texte-2); }
.ce-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; display: grid; place-items: center;
  background: var(--iris); color: #fff; font: 700 10.5px/1 var(--font-ui); border: 2px solid var(--fond); }
.ce-ic { display: inline-grid; place-items: center; }
.ce-only-m { display: none !important; }

/* Orbite */
.ce-hero { display: grid; gap: 10px; }
.ce-orbit {
  position: relative; width: 100%; max-width: 900px; margin: 0 auto; aspect-ratio: 1.9 / 1;
  border-radius: var(--r-xl); background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--violet) 8%, transparent), transparent 70%);
}
.ce-ring { position: absolute; left: 50%; top: 50%; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none;
  border: 1.5px dashed color-mix(in srgb, var(--violet) 26%, transparent); }
.ce-ring.r1 { width: var(--r1w, 50%); height: var(--r1h, 58%); }
.ce-ring.r2 { width: var(--r2w, 82%); height: var(--r2h, 74%); border-style: dotted; border-color: color-mix(in srgb, var(--accent-3) 30%, transparent); }
.ce-me, .ce-person {
  position: absolute; display: grid; justify-items: center; gap: 6px; border: 0; background: none; padding: 0; cursor: pointer; color: var(--texte);
  translate: -50% calc(var(--sz, 96px) / -2); /* le centre de la bulle (pas du libellé) est sur l'anneau ; « translate » se combine avec l'animation d'entrée */
}
.ce-me { left: 50%; top: 50%; --sz: 96px; }
.ce-person { left: var(--x); top: var(--y); animation: e-rise var(--d-3) var(--ease-out) both; animation-delay: var(--d, 0ms); }
.ce-me-orb, .ce-person-orb { position: relative; display: grid; place-items: center; border-radius: 50%; transition: transform var(--d-pop) var(--ease-pop); }
.ce-me-orb { width: var(--sz); height: var(--sz); padding: 4px; background: var(--iris-ring); animation: e-wobble 6s ease-in-out infinite;
  box-shadow: 0 14px 36px -14px var(--violet); }
.ce-me-orb .avatar { width: 100% !important; height: 100% !important; font-size: 30px !important; border: 3px solid var(--fond); }
.ce-person-orb { width: var(--sz); height: var(--sz); }
.ce-person-orb .avatar { width: 100% !important; height: 100% !important; font-size: calc(var(--sz) * .36) !important; box-shadow: 0 8px 20px -10px rgba(var(--shadow-rgb, 27, 16, 51), .5); }
.ce-person.is-on .ce-person-orb::before { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--vert) 70%, transparent); }
.ce-person:hover .ce-person-orb, .ce-me:hover .ce-me-orb { transform: scale(1.07); }
.ce-person:active .ce-person-orb { transform: scale(.93); transition-duration: 90ms; }
.ce-person-name { font: 600 12px/1.1 var(--font-ui); max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--texte-2);
  background: color-mix(in srgb, var(--panneau) 80%, transparent); padding: 3px 8px; border-radius: 99px; }
.ce-me .ce-person-name { font-weight: 750; color: var(--texte); }
.ce-badge { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center;
  background: var(--iris); color: #fff; font: 750 11px/1 var(--font-ui); border: 2px solid var(--fond); }
.ce-orbit.is-compact { aspect-ratio: 1 / 1; max-width: 400px; }
.ce-legend { margin: 0; text-align: center; font-size: var(--fs-sm); color: var(--texte-3); }
.ce-orbit.is-empty + .ce-legend, .ce-orbit.is-empty ~ .ce-hint { display: none; }
.ce-hint { margin-top: -4px; font-size: 12px; opacity: .85; }
:root[data-motion="off"] .ce-me-orb, :root[data-motion="off"] .ce-person { animation: none; }
@media (prefers-reduced-motion: reduce) { .ce-me-orb, .ce-person { animation: none; } }

/* Colonnes */
.ce-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.ce-col { display: grid; gap: 22px; }
.ce-sec { display: grid; gap: 10px; }
.ce-h2 { margin: 0; font: 700 var(--fs-xs)/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-3); }
.ce-notes .v5-notes { margin: 0; }

/* Conversations */
.ce-convs { display: grid; gap: 4px; padding: 6px; border-radius: var(--r-lg); background: var(--panneau); box-shadow: var(--rim), var(--e-1); }
.ce-conv { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 8px 10px; border: 0; border-radius: var(--r-md);
  background: transparent; color: var(--texte); text-align: left; cursor: pointer; transition: background-color var(--d-1) var(--ease-out); }
.ce-conv:hover { background: var(--surface-hover); }
.ce-conv-av { flex: none; display: grid; }
.ce-conv-av .avatar { width: 44px !important; height: 44px !important; }
.ce-group { width: 44px; height: 44px; border-radius: 50%; place-items: center; background: var(--sheen), var(--g); color: #1D1B24; font: 700 16px/1 var(--font-titre); }
.ce-conv-txt { flex: 1; min-width: 0; display: grid; gap: 3px; }
.ce-conv-txt b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: 4px; }
.ce-conv-txt small, .ce-conv-txt .dm-prev { color: var(--texte-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-sm); display: block; }
.ce-conv.is-unread .ce-conv-txt b { font-weight: 800; }
.ce-conv.is-unread .dm-prev { color: var(--texte); font-weight: 600; }
.ce-conv-meta { flex: none; display: grid; justify-items: end; gap: 5px; font-size: 12px; color: var(--texte-3); }
.ce-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--iris); color: #fff; font: 750 11px/1 var(--font-ui); }
.ce-more { justify-self: center; margin: 4px 0 2px; }
.ce-convs .e-empty { padding: 26px 12px; }

/* Bulles dans le Cercle : la rangée existante, cadrée */
.ce-moments .mo-feedpill, .ce-moments .mo-strip { margin: 0; }

/* Communautés (téléphone) */
.ce-comm-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; }
.ce-comm { position: relative; flex: none; width: 112px; display: grid; justify-items: center; gap: 8px; padding: 14px 8px 12px; border: 0; border-radius: var(--r-lg);
  background: var(--panneau); box-shadow: var(--rim), var(--e-1); color: var(--texte); cursor: pointer; scroll-snap-align: start; }
.ce-comm b { font: 650 12.5px/1.2 var(--font-ui); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ce-comm-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--sheen), var(--g, var(--accent-soft-2));
  color: #1D1B24; font: 700 18px/1 var(--font-titre); box-shadow: inset 0 -4px 9px rgba(var(--shadow-rgb, 27, 16, 51), .16); }
.ce-comm-ic img { width: 100%; height: 100%; object-fit: cover; }
.ce-comm .ce-count { position: absolute; top: 8px; right: 8px; }
.ce-comm-add .ce-comm-ic { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--hairline-strong); }

@media (max-width: 1100px) and (min-width: 761px) {
  .ce-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  /* La page défile d'elle-même : #main est en overflow: hidden sur téléphone (sinon le Cercle ne défilait pas au doigt). */
  .ce-page { height: 100%; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; padding: calc(16px + var(--sat, 0px)) 16px calc(var(--tabbar-h, 78px) + var(--sab, 0px) + 18px); gap: 18px; }
  .ce-only-m { display: flex !important; }
  section.ce-only-m { display: grid !important; }
  .ce-only-d { display: none !important; }
  .ce-me { --sz: 72px; }
  .ce-me-orb .avatar { font-size: 24px !important; }
  .ce-person-name { font-size: 11px; max-width: 76px; }
  .ce-cols { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ce-col { gap: 18px; }
}

/* Carte ouverte : tout ce qui est derrière est invisible → on suspend les
   animations en boucle (sinon elles concurrencent le rendu de la carte). */
body.bm-open .app *, body.bm-open .app *::before, body.bm-open .app *::after { animation-play-state: paused !important; }

/* =================================================================
   TÉLÉPHONE, deuxième passe : dock, feuilles, gestes
   ================================================================= */
@media (max-width: 760px) {
  /* Le dock ne dépasse plus de l'écran (style.css lui imposait width: 100 %) et reste centré sur les grands téléphones */
  body.shell-e { --tabbar-h: 84px; }
  body.shell-e .app .rail { width: auto; left: max(12px, calc(50% - 230px)); right: max(12px, calc(50% - 230px));
    transition: transform var(--d-2, .2s) var(--ease-out, ease-out), translate .32s var(--ease-out, ease-out); }
  body.shell-e .app .rail .bubble { transition: background-color .2s var(--ease-out, ease-out), color .2s; }
  /* Le dock s'efface quand on descend dans une liste et revient dès qu'on remonte */
  body.shell-e.dock-tuck .app .rail { translate: 0 calc(100% + 24px + var(--sab, 0px)); }

  /* Profil (onglet Moi) : la feuille s'arrête au-dessus du dock flottant */
  body.shell-e.m-profile .modal-back { bottom: calc(var(--tabbar-h) + var(--sab, 0px)); }
  body.shell-e.m-profile .modal-back .modal.profile-modal { border-radius: 26px; max-height: calc(100dvh - var(--tabbar-h) - var(--sab, 0px) - var(--sat, 0px) - 12px); }
  /* Statut, activité, note : une seule ligne qui défile, l'avatar ne les recouvre plus */
  .profile-card .v5-pmeta { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px; margin: 4px 0 2px; }
  .profile-card .v5-pmeta::-webkit-scrollbar { display: none; }
  .profile-card .v5-pchip { flex: none; }

  /* Feuilles : la poignée se saisit (geste « glisser pour fermer ») */
  .modal-back .modal.is-dragging { transition: none !important; animation: none; }
  .modal-back .modal.is-settling { transition: transform .26s cubic-bezier(.2, .9, .25, 1); }
  .modal-back .modal::before { width: 44px; }

  /* Cercle : cartes alignées sur la grille, bandeau compact quand on descend */
  .ce-moments > .mo-feedpill { width: 100%; margin: 0; }
  .ce-mini { position: fixed; z-index: 45; top: 0; left: 0; right: 0; display: flex !important; align-items: center; gap: 8px;
    padding: calc(8px + var(--sat, 0px)) 12px 8px 18px; background: color-mix(in srgb, var(--fond) 86%, transparent);
    -webkit-backdrop-filter: saturate(1.5) blur(14px); backdrop-filter: saturate(1.5) blur(14px); border-bottom: 1px solid var(--hairline);
    translate: 0 -105%; opacity: 0; pointer-events: none; transition: translate .24s var(--ease-out, ease-out), opacity .2s; }
  .ce-mini.on { translate: 0 0; opacity: 1; pointer-events: auto; }
  .ce-mini b { flex: 1; font: 700 19px/1 var(--font-titre); letter-spacing: -.04em; color: var(--texte); }
  .ce-mini .ce-hbtn { width: 38px; height: 38px; min-height: 38px; }
  #main:not([data-view="cercle"]) .ce-mini { display: none !important; }

  /* Fil Ciel : la carte « Tu es à jour » respire */
  .calm-card { margin: 10px 12px 18px; }
}
/* Appui long sur un proche : pas de loupe ni de sélection de texte */
.ce-person, .ce-me { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.ce-person.is-pressing .ce-person-orb { transform: scale(.9); transition-duration: .35s; }
.ce-mini { display: none; }

/* Actions rapides sur un proche */
.ce-quick { display: grid; gap: 14px; }
.ce-quick-who { display: flex; align-items: center; gap: 12px; padding-top: 6px; }
.ce-quick-who .avatar { width: 52px !important; height: 52px !important; font-size: 19px !important; }
.ce-quick-who b { display: block; font: 700 1.15rem/1.15 var(--font-titre); letter-spacing: -.02em; }
.ce-quick-who small { color: var(--texte-3); font-size: var(--fs-sm); }
.ce-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ce-qa { display: grid; justify-items: start; gap: 8px; min-height: 84px; padding: 14px; border: 0; border-radius: var(--r-lg, 20px); text-align: left; cursor: pointer;
  background: var(--panneau-2, var(--surface-hover)); color: var(--texte); font: 650 .92rem/1.2 var(--font-ui); box-shadow: var(--rim, none); }
.ce-qa .ce-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft, rgba(110, 88, 255, .12)); color: var(--accent-ink, var(--violet)); }
.ce-qa:active { transform: scale(.97); }
.ce-qa.is-main { background: var(--sheen, none), var(--iris); color: #fff; }
.ce-qa.is-main .ce-ic { background: rgba(255, 255, 255, .22); color: #fff; }

/* Rendez-vous : le message vide ne colle plus à la carte */
.rv-cta + .mo-empty { margin-top: 18px; text-align: center; }

/* Petits téléphones (≤ 400 px) : la barre d'appel passe sur deux lignes au lieu de cacher
   des boutons hors de l'écran ; les boutons gardent une cible tactile de 44 px. */
@media (max-width: 400px) {
  .app .voice-actions { flex-wrap: wrap; justify-content: center; overflow-x: visible; row-gap: 8px; column-gap: 8px; }
  .app .voice-actions > :first-child, .app .voice-actions > :last-child { margin-left: 0; margin-right: 0; }
  .app .voice-actions .call-ctrl { width: 44px; height: 44px; min-width: 44px; }
}
