
  /* ─── Mes espaces ────────────────────────────────────────────────── */
  #esp-soustitre {
    font-size: var(--t-note); line-height: 1.55; color: var(--muted); margin-bottom: 14px;
  }
  .esp-bloc { margin-bottom: 22px; }
  .esp-bloc:last-of-type { margin-bottom: 14px; }
  /* Une carte par espace. Elle porte le NOM, jamais le slug : celui-ci
     est un identifiant opaque destiné aux URL, pas aux yeux. */
  .esp-carte {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2);
    background: var(--panel2); margin-bottom: 8px;
  }
  .esp-carte .esp-nom { font-size: var(--t-corps); }
  .esp-carte .esp-quoi { font-size: var(--t-note); color: var(--muted); margin-top: 2px; }
  .esp-carte .esp-actions { margin-left: auto; display: flex; gap: 6px; }
  .esp-btn {
    padding: 7px 12px; border-radius: var(--r-objet); border: 1px solid var(--line2);
    background: var(--glass-btn); color: var(--text); font-size: var(--t-corps);
    cursor: pointer; font-family: inherit; white-space: nowrap;
    min-height: var(--cible);
  }
  .esp-btn:hover { border-color: var(--accent); }
  .esp-btn.fort {
    background: var(--accent); color: var(--on-accent); border-color: transparent;
    font-weight: 600;
  }
  /* Le retrait d'un membre demande sa confirmation SUR LE BOUTON : une
     modale de plus ferait cliquer sans lire, et un geste irréversible
     doit changer d'aspect avant de partir. */
  .esp-btn.danger { color: var(--danger); border-color: var(--danger); }
  .esp-ligne {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding: 9px 0; border-bottom: 1px solid var(--line);
  }
  .esp-ligne:last-child { border-bottom: 0; }
  .esp-ligne.sans-trait { border-bottom: 0; }
  .esp-ligne .esp-qui { font-size: var(--t-corps); }
  .esp-ligne .esp-detail { font-size: var(--t-note); color: var(--muted); }
  .esp-ligne .esp-actions { margin-left: auto; display: flex; gap: 6px; }

  #espaces #esp-gerer[hidden], #espaces #esp-liste[hidden],
  #espaces #esp-fonder[hidden], #espaces #esp-fon-nom[hidden] { display: none; }
