/* ===================================================================
   LE SÉLECTEUR DE PLANNINGS, À LA NOUVELLE CHARTE (03/12/2026)
   ===================================================================
   Maquette : artefact « Popotam · le menu « Mon planning actuel » refait » (claude.ai, 3gDCMcaF…), sources dans
   maquette-menu-planning/gen.py. Écrite À LA MAIN, chargée APRÈS styles.css et entete-appli.css : elle ne touche qu'à
   l'habillage. Les mécanismes (le bloc qui s'élargit puis se déroule, les tiroirs, la cascade, la hauteur qui glisse,
   la caméra) restent ceux de styles.css (« LE SÉLECTEUR D'ESPACES ») et d'app.js (espCorpsHTML, espOuvre).
   Tout est sous #espSel : l'identifiant passe devant les règles de html.hda (header de l'ordinateur), sans !important.
   La charte est celle de « Tes chiffres » : crème, cartes blanches de 22 px, Bricolage 800 pour les titres, Caveat pour
   les petits mots, action orange cernée d'encre avec son ombre pleine, cibles de 44 px. */

#espSel {
  --sp-ink: #20231C; --sp-cream: #FFFCF3; --sp-line: #F0E7CE; --sp-line2: #E6D3AE; --sp-soft: #5B6150;
  --sp-or: #F26B33; --sp-or-h: #E85E25; --sp-or-d: #C2410C; --sp-or-bg: #FDE3D3; --sp-sun: #FFF4D6; --sp-bulle: #FFF1C9;
  --sp-brun: #8A5A00; --sp-green: #2E7D4F; --sp-green-bg: #E3F1E6; --sp-blue: #2F5F8F; --sp-blue-bg: #E2ECF6;
  --sp-red: #B42318; --sp-red-bg: #FDE8E4; --sp-red-l: #F6C9C0;
  --sp-fd: "Bricolage Grotesque", system-ui, sans-serif; --sp-fh: "Caveat", cursive; --sp-fb: "Hanken Grotesk", system-ui, sans-serif;
  --sp-ombre: 0 2px 4px rgba(80, 50, 20, .04), 0 10px 24px -18px rgba(120, 70, 30, .28);
  font-family: var(--sp-fb); color: var(--sp-ink);
}

/* ---------- fermé : une carte blanche qu'on a envie d'ouvrir ---------- */
#espSel:not(.is-open) { background: #fff; border: 1.5px solid var(--sp-line2); border-radius: 20px; box-shadow: 0 2px 0 var(--sp-line2); }
#espSel:not(.is-open) .esp-trig:hover { background: var(--sp-cream); border-radius: 18px; }
/* Sur l'ordinateur, la pastille du header porte déjà le fond : le bloc fermé reste transparent, comme avant. */
html.hda #espSel:not(.is-open) { background: transparent; border-color: transparent; box-shadow: none; }

#espSel .esp-ey {
  font: 700 16px/1 var(--sp-fh); letter-spacing: 0; text-transform: none; color: var(--sp-or-d);
  transform: rotate(-1.5deg); transform-origin: 0 50%; overflow: visible; padding-bottom: 1px;
}
#espSel .esp-nm { font-family: var(--sp-fd); font-weight: 800; letter-spacing: -.01em; color: var(--sp-ink); }
#espSel .esp-subs > .esp-s1 { color: var(--sp-or-d); font-weight: 800; }
#espSel .esp-cv { color: var(--sp-or-d); }
#espSel .esp-cv svg { width: 14px; height: 14px; }

/* La frimousse : un rond pêche cerné d'encre (le médaillon de la charte). */
#espSel .esp-av { border-radius: 50%; background: var(--sp-or-bg); border: 2px solid var(--sp-ink); color: var(--sp-ink); }
html.hda #espSel .esp-av { border-radius: 50%; }

/* ---------- ouvert : un grand panneau crème, l'en-tête en blanc ---------- */
#espSel.is-open {
  background: var(--sp-cream); border: 1px solid var(--sp-line); border-radius: 28px;
  box-shadow: 0 30px 70px -24px rgba(40, 25, 10, .55), 0 4px 10px rgba(40, 25, 10, .08);
}
#espSel.is-open .esp-sel-h { background: #fff; border-bottom: 1px solid var(--sp-line); padding: 6px 10px 6px 2px; gap: 8px; }
#espSel.is-open .esp-trig { gap: 12px; }
#espSel.is-open .esp-av { width: 52px; height: 52px; }
#espSel.is-open .esp-av svg { width: 44px; height: 44px; }
#espSel.is-open .esp-ey { font-size: 18px; }
#espSel.is-open .esp-nm { font-size: 20px; line-height: 1.15; }
#espSel .esp-subs > .esp-s2 { color: var(--sp-green); font-size: 13px; }
#espSel .esp-s2 svg { width: 14px; height: 14px; }

/* Le « ··· » et la croix : deux ronds de 44 px, à l'ouverture seulement (fermés, ils ne prennent rien). */
#espSel.is-open .esp-x, #espSel.is-open .esp-xm {
  width: 44px; height: 44px; margin: 0; border: 1.5px solid var(--sp-line); border-radius: 50%;
  background: #fff; color: var(--sp-ink); box-sizing: border-box;
}
#espSel.is-open .esp-x:hover, #espSel.is-open .esp-xm:hover { border-color: var(--sp-line2); background: #fff; }
#espSel .esp-x svg { width: 17px; height: 17px; }
#espSel .esp-xm svg { width: 20px; height: 20px; }
#espSel:has(.esp-row.is-actif.is-tiroir) .esp-xm { background: var(--sp-ink); border-color: var(--sp-ink); color: #fff; }

/* ---------- la liste ---------- */
#espSel .esp-list { display: flex; flex-direction: column; gap: 10px; padding: 16px 14px 4px; }
#espSel .esp-row + .esp-row { margin-top: 0; }
#espSel .esp-lab {
  display: block; padding: 0 4px; font: 800 11.5px var(--sp-fb); letter-spacing: .09em; text-transform: uppercase; color: var(--sp-soft);
}
/* La ligne du planning ouvert n'a rien à montrer tant que son tiroir est fermé : elle ne prend pas d'écart. */
#espSel .esp-row.is-actif:not(.is-tiroir):not(:has(.esp-sp.is-edit)) { margin-bottom: -10px; }
#espSel .esp-row.is-actif:not(.is-tiroir):not(:has(.esp-sp.is-edit)) + .esp-lab { margin-top: 0; }

#espSel .esp-row { border-radius: 22px; }
#espSel .esp-row:not(.is-actif),
#espSel .esp-row.is-actif.is-tiroir,
#espSel .esp-row.is-actif:has(.esp-sp.is-edit) {
  background: #fff; border: 1.5px solid var(--sp-line); box-shadow: 0 2px 4px rgba(80, 50, 20, .04);
}
#espSel .esp-row.is-tiroir { border-color: var(--sp-ink); box-shadow: 0 3px 0 var(--sp-ink); }

#espSel .esp-sp { gap: 12px; min-height: 64px; padding: 10px 10px 10px 12px; border-radius: 20px; }
#espSel .esp-sp:hover, #espSel .esp-row.is-actif .esp-sp { background: transparent; }
#espSel .esp-row:not(.is-actif) .esp-sp:hover { background: var(--sp-cream); }
#espSel .esp-sp:focus-visible { outline: 2px solid var(--sp-or); outline-offset: 2px; }

/* La tuile : une toque sur la couleur de son rang. */
#espSel .esp-mk { width: 42px; height: 42px; border: 0; border-radius: 14px; background: var(--sp-sun); color: var(--sp-brun); }
#espSel .esp-mk svg { width: 21px; height: 21px; }
#espSel .esp-row:nth-of-type(3n+2) .esp-mk { background: var(--sp-green-bg); color: var(--sp-green); }
#espSel .esp-row:nth-of-type(3n) .esp-mk { background: var(--sp-blue-bg); color: var(--sp-blue); }
#espSel .esp-row.is-actif .esp-mk { background: var(--sp-or-bg); border: 0; color: var(--sp-or-d); }
#espSel .esp-row.is-occupe .esp-mk { background: var(--sp-cream); color: var(--sp-soft); }

#espSel .esp-nom b { font-family: var(--sp-fd); font-size: 16px; line-height: 1.2; color: var(--sp-ink); }
#espSel .esp-nom span { margin-top: 2px; font-size: 13px; color: var(--sp-soft); }
#espSel .esp-row.is-actif .esp-nom span { color: var(--sp-green); }

#espSel .esp-more {
  width: 44px; height: 44px; border: 1.5px solid var(--sp-line); background: #fff; color: var(--sp-ink); box-sizing: border-box;
}
#espSel .esp-more svg { width: 20px; height: 20px; }
#espSel .esp-more:hover { border-color: var(--sp-line2); background: #fff; box-shadow: none; }
#espSel .esp-row.is-tiroir .esp-more { background: var(--sp-ink); border-color: var(--sp-ink); color: #fff; }

/* Renommer, sur place : le champ orange, la coche orange cernée d'encre. */
#espSel .esp-ed { gap: 8px; }
#espSel .esp-ed input {
  min-height: 50px; box-sizing: border-box; padding: 0 14px; border: 2px solid var(--sp-or); border-radius: 16px;
  font: 700 16px var(--sp-fb); color: var(--sp-ink); background: #fff; box-shadow: 0 0 0 4px rgba(242, 107, 51, .18);
}
#espSel .esp-ed button { width: 50px; height: 50px; border-radius: 50%; }
#espSel .esp-ed button svg { width: 20px; height: 20px; }
#espSel .esp-ed .esp-ok { background: var(--sp-or); color: #fff; border: 2px solid var(--sp-ink); box-shadow: 0 2px 0 var(--sp-ink); }
#espSel .esp-ed .esp-non { background: #fff; color: var(--sp-ink); border: 1.5px solid var(--sp-line); }

/* ---------- le tiroir d'actions : une grille de deux, Délier en jaune, Supprimer en rouge ---------- */
#espSel .esp-dr-in {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px;
  margin: 0 12px; padding: 12px 0 14px; border-top: 1px solid var(--sp-line);
}
#espSel .esp-row.is-actif.is-tiroir:not(:has(.esp-sp.is-edit)) .esp-dr-in { border-top: 0; padding-top: 12px; }
#espSel .esp-act {
  display: flex; align-items: center; gap: 9px; min-height: 46px; box-sizing: border-box; padding: 6px 12px;
  border-radius: 14px; border: 1.5px solid var(--sp-line); background: #fff; color: var(--sp-ink);
  font: 700 14px/1.15 var(--sp-fb); text-align: left;
}
#espSel .esp-act svg { flex: none; width: 18px; height: 18px; color: var(--sp-or-d); }
#espSel .esp-act:hover { border-color: var(--sp-line2); color: var(--sp-ink); }
#espSel .esp-act:hover svg { color: var(--sp-or-d); }
#espSel .esp-act.esp-dl { background: var(--sp-sun); border-color: var(--sp-sun); }
#espSel .esp-act.esp-dl svg { color: var(--sp-brun); }
#espSel .esp-act.esp-dl:hover { border-color: #EBD9A6; }
#espSel .esp-act.esp-dg { background: var(--sp-red-bg); border-color: var(--sp-red-bg); color: var(--sp-red); }
#espSel .esp-act.esp-dg svg { color: var(--sp-red); }
#espSel .esp-act.esp-dg:hover { background: var(--sp-red-bg); border-color: var(--sp-red-l); }

/* Les confirmations sur place : Retirer est doux (jaune), Supprimer est rouge. */
#espSel .esp-cf {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding: 14px; border-radius: 18px;
  background: var(--sp-red-bg); border: 1.5px solid var(--sp-red-l);
}
#espSel .esp-cf p { flex: 1 1 100%; min-width: 0; margin: 0 0 4px; font-size: 14.5px; line-height: 1.45; color: var(--sp-ink); }
#espSel .esp-cf .esp-no2, #espSel .esp-cf .esp-act {
  flex: 1; justify-content: center; min-height: 48px; padding: 0 14px; border-radius: 16px; border: 1.5px solid var(--sp-line2);
  background: #fff; color: var(--sp-ink); font: 700 15px var(--sp-fb);
}
#espSel .esp-cf .esp-act { flex: 1.4; gap: 7px; padding: 0 10px; white-space: nowrap; font-size: 14.5px; }
#espSel .esp-cf .esp-no2 { white-space: nowrap; }
#espSel .esp-cf .esp-no2:hover, #espSel .esp-cf .esp-act:hover { border-color: var(--sp-ink); }
#espSel .esp-cf .esp-oui {
  flex: 1.4; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px;
  border-radius: 16px; border: 2px solid var(--sp-red); background: var(--sp-red); color: #fff;
  font: 800 15px var(--sp-fd); box-shadow: 0 3px 0 #7A1A12; white-space: nowrap;
}
#espSel .esp-cf .esp-oui svg { width: 17px; height: 17px; }
#espSel .esp-cf.esp-cf-doux { background: var(--sp-sun); border-color: var(--sp-sun); }
#espSel .esp-cf.esp-cf-doux p { color: var(--sp-ink); }
#espSel .esp-cf .esp-oui.esp-oui-doux { flex: 1 1 100%; background: var(--sp-or); border-color: var(--sp-ink); box-shadow: 0 3px 0 var(--sp-ink); }
#espSel .esp-cf .esp-oui.esp-oui-doux:hover { background: var(--sp-or-h); }

/* ---------- le pied : « Ajouter un planning » en pointillés, puis la bulle de Popotam ---------- */
#espSel .esp-pf { padding: 10px 14px 18px; border-top: 0; background: none; }
#espSel .esp-add {
  gap: 12px; min-height: 70px; padding: 10px 12px; border: 2px dashed var(--sp-line2); border-radius: 22px;
  background: rgba(255, 255, 255, .55); color: var(--sp-ink);
}
#espSel .esp-add:hover { border-color: var(--sp-or); background: #fff; }
#espSel .esp-add .esp-ic {
  width: 42px; height: 42px; border-radius: 14px; background: var(--sp-or); color: #fff;
  border: 2px solid var(--sp-ink); box-shadow: 0 2px 0 var(--sp-ink); box-sizing: border-box;
}
#espSel .esp-add .esp-ic svg { width: 20px; height: 20px; }
#espSel .esp-add .esp-tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#espSel .esp-add .esp-tt b { font: 800 16px/1.2 var(--sp-fd); color: var(--sp-ink); }
#espSel .esp-add .esp-tt span { font-size: 13px; line-height: 1.35; color: var(--sp-soft); }
#espSel .esp-add .esp-cv2 svg { width: 17px; height: 17px; }

#espSel .esp-bulle { display: flex; gap: 10px; align-items: flex-end; margin-top: 14px; padding: 0 4px 0 2px; }
#espSel .esp-bf { flex: none; width: 50px; height: 50px; transform: rotate(-4deg); }
#espSel .esp-bf svg { width: 100%; height: 100%; display: block; }
#espSel .esp-bulle p {
  flex: 1; margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: var(--sp-bulle);
  font: 700 19px/1.15 var(--sp-fh); color: #3D2E12; text-align: left;
}

/* ---------- les sous-vues ---------- */
#espSel .esp-ph { gap: 10px; padding: 10px 12px; background: #fff; border-bottom: 1px solid var(--sp-line); }
#espSel .esp-bk { width: 44px; height: 44px; border: 1.5px solid var(--sp-line); background: #fff; color: var(--sp-ink); box-shadow: none; box-sizing: border-box; }
#espSel .esp-bk svg { width: 18px; height: 18px; }
#espSel .esp-bk:hover { border-color: var(--sp-line2); background: #fff; color: var(--sp-ink); }
#espSel .esp-pht { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
#espSel .esp-ph b { font: 800 20px/1.15 var(--sp-fd); letter-spacing: -.02em; color: var(--sp-ink); }
#espSel .esp-kk {
  display: inline-block; font: 700 18px/1 var(--sp-fh); color: var(--sp-or-d); transform: rotate(-1.5deg); transform-origin: 0 50%;
}

#espSel .esp-body { padding: 16px 14px; }

/* Les quatre façons d'ajouter un planning : des cartes, chacune sa couleur. */
#espSel .esp-ch {
  align-items: center; gap: 14px; min-height: 78px; padding: 12px 12px 12px 14px; border-radius: 22px;
  border: 1.5px solid var(--sp-line); background: #fff; box-shadow: var(--sp-ombre); color: var(--sp-ink);
}
#espSel .esp-ch + .esp-ch { margin-top: 10px; }
#espSel .esp-ch:hover { border-color: var(--sp-line2); transform: none; }
#espSel .esp-ch .esp-ic { width: 48px; height: 48px; border-radius: 16px; }
#espSel .esp-ch .esp-ic svg { width: 23px; height: 23px; }
#espSel .esp-ch.esp-qr .esp-ic { background: var(--sp-or-bg); color: var(--sp-or-d); }
#espSel .esp-ch.esp-lk .esp-ic { background: var(--sp-bulle); color: var(--sp-brun); }
#espSel .esp-ch.esp-ml .esp-ic { background: var(--sp-green-bg); color: var(--sp-green); }
#espSel .esp-ch.esp-nv .esp-ic { background: var(--sp-or); color: #fff; border: 2px solid var(--sp-ink); box-shadow: 0 2px 0 var(--sp-ink); box-sizing: border-box; }
#espSel .esp-ch .esp-tt { display: flex; flex-direction: column; gap: 3px; }
#espSel .esp-ch .esp-tt b { font: 800 16.5px/1.2 var(--sp-fd); letter-spacing: -.01em; color: var(--sp-ink); }
#espSel .esp-ch .esp-tt span { font-size: 13.5px; line-height: 1.4; color: var(--sp-soft); }
#espSel .esp-ch .esp-go { margin-top: 0; color: var(--sp-soft); }
#espSel .esp-ch .esp-go svg { width: 17px; height: 17px; }
#espSel .esp-ou { margin: 14px 6px 12px; gap: 12px; font: 700 20px/1 var(--sp-fh); letter-spacing: 0; text-transform: none; color: var(--sp-or-d); }
#espSel .esp-ou::before, #espSel .esp-ou::after { height: 1.5px; background: var(--sp-line2); }

/* Un planning tout neuf : le médaillon, le petit mot, deux pastilles. */
#espSel .esp-neuf { display: flex; align-items: center; gap: 14px; }
#espSel .esp-med { position: relative; flex: none; width: 96px; height: 96px; border-radius: 50%; background: var(--sp-sun); display: grid; place-items: center; }
#espSel .esp-med > svg { width: 72px; height: 72px; margin-top: 6px; transform: rotate(-5deg); }
#espSel .esp-medb {
  position: absolute; right: -2px; bottom: 4px; width: 34px; height: 34px; border-radius: 50%; box-sizing: border-box;
  background: var(--sp-or); border: 2px solid var(--sp-ink); color: #fff; display: grid; place-items: center;
}
#espSel .esp-medb svg { width: 16px; height: 16px; }
#espSel .esp-neuft { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
#espSel .esp-txt { margin: 0; font-size: 15px; line-height: 1.45; color: var(--sp-soft); }
#espSel .esp-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 16px; }
#espSel .esp-pills.esp-pills-l { flex-direction: row; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
#espSel .esp-pil {
  display: inline-flex; align-items: flex-start; gap: 6px; padding: 6px 11px; border-radius: 16px;
  background: var(--sp-sun); font: 700 12.5px/1.35 var(--sp-fb); color: #3D2E12; text-align: left;
}
#espSel .esp-pil svg { flex: none; width: 14px; height: 14px; margin-top: 1px; }
#espSel .esp-pil.esp-pil-ok { background: var(--sp-green-bg); color: var(--sp-green); }
#espSel .esp-pil b { color: inherit; }

/* Le bouton d'action : orange, cerné d'encre, son ombre pleine. Puis le bouton secondaire. */
#espSel .esp-cta { padding: 4px 14px 18px; }
#espSel .esp-cta.esp-cta-col { flex-direction: column; }
#espSel .esp-cta .btn-primary {
  min-height: 54px; border-radius: 18px; border: 2px solid var(--sp-ink); background: var(--sp-or); color: #fff;
  font: 800 16.5px var(--sp-fd); box-shadow: 0 3px 0 var(--sp-ink); gap: 9px;
}
#espSel .esp-cta .btn-primary:hover { background: var(--sp-or-h); color: #fff; }
#espSel .esp-cta .btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--sp-ink); }
#espSel .esp-cta .btn-primary svg { width: 18px; height: 18px; }
#espSel .esp-sec, #espSel .esp-alt button {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 16px;
  border: 1.5px solid var(--sp-line2); background: #fff; color: var(--sp-ink); font: 700 15px var(--sp-fb); cursor: pointer;
}
#espSel .esp-sec:hover, #espSel .esp-alt button:hover { border-color: var(--sp-ink); color: var(--sp-ink); }
#espSel .esp-alt { padding: 0 14px 18px; }
#espSel .esp-alt button svg { width: 18px; height: 18px; color: var(--sp-ink); }

/* Le scanner : la caméra arrondie, les coins orange, la consigne sur une pastille crème. */
#espSel .esp-cam { margin: 14px 14px 0; border-radius: 24px; aspect-ratio: auto; height: 290px; background: radial-gradient(circle at 50% 40%, #3A3F33, #171A13); }
#espSel .esp-cam .esp-frame { top: 40%; width: 160px; }
#espSel .esp-cam .esp-frame i { width: 40px; height: 40px; border: 5px solid var(--sp-or); border-radius: 0; }
#espSel .esp-cam .esp-frame i:nth-child(1) { border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
#espSel .esp-cam .esp-frame i:nth-child(2) { border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
#espSel .esp-cam .esp-frame i:nth-child(3) { border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
#espSel .esp-cam .esp-frame i:nth-child(4) { border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
#espSel .esp-cam .esp-scan { height: 3px; background: var(--sp-or); box-shadow: 0 0 18px 4px rgba(242, 107, 51, .55); }
#espSel .esp-cam .esp-camlbl {
  left: 12px; right: 12px; bottom: 12px; padding: 10px 14px; border-radius: 16px; background: rgba(255, 252, 243, .95);
  color: var(--sp-ink); font-size: 13px; line-height: 1.4;
}
#espSel .esp-cam .esp-camlbl b { font: 800 15px/1.25 var(--sp-fd); margin-bottom: 1px; }
#espSel .esp-ou-qr { padding-bottom: 14px; }
#espSel .esp-etapes { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: #fff; border: 1.5px solid var(--sp-line); }
#espSel .esp-etapes ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
#espSel .esp-etapes li, .fe .esp-fe-et li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.35; }
#espSel .esp-en, .fe .esp-fe-et .esp-en {
  flex: none; width: 26px; height: 26px; border-radius: 50%; background: #FFF1C9; display: grid; place-items: center;
  font: 800 13px "Bricolage Grotesque", system-ui, sans-serif; color: #20231C;
}

/* Coller un lien, retrouver par email : le champ, l'étiquette au-dessus. */
#espSel .esp-body label { display: flex; flex-direction: column; gap: 8px; }
#espSel .esp-lb { padding: 0 4px; margin: 0; font: 800 11.5px var(--sp-fb); letter-spacing: .09em; text-transform: uppercase; color: var(--sp-soft); }
#espSel .esp-fld {
  min-height: 56px; box-sizing: border-box; margin: 0; padding: 0 16px; border-radius: 16px; border: 2px solid var(--sp-line2);
  background: #fff; font: 500 16px var(--sp-fb); color: var(--sp-ink);
}
#espSel .esp-fld:focus { border-color: var(--sp-or); background: #fff; box-shadow: 0 0 0 4px rgba(242, 107, 51, .18); }
#espSel .esp-fld.esp-mono { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 15px; }
#espSel .esp-carte {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1.5px solid var(--sp-line);
  font-size: 14px; line-height: 1.45; color: var(--sp-soft);
}
#espSel .esp-carte b { color: var(--sp-ink); }

/* Au téléphone, le bloc fermé reste dans ses 58 px : le petit mot rétrécit d'un cran. */
@media (max-width: 600px) {
  #espSel:not(.is-open) .esp-ey { font-size: 15px; }
  #espSel:not(.is-open) .esp-subs > .esp-s1 { font-size: 11.5px; }
}
@media (max-width: 374px) {
  #espSel:not(.is-open) .esp-ey { font-size: 14px; }
  #espSel .esp-dr-in { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- les deux feuilles ouvertes depuis le menu (delierFeuille, espQrFeuille dans app.js) ---------- */
.fe.esp-fe .fe-dots, .fe.esp-fe [data-fe-hs] { display: none; }
.fe .esp-fe-qr { display: flex; justify-content: center; margin-top: 16px; }
.fe .esp-fe-qri {
  display: block; width: 216px; height: 216px; box-sizing: border-box; padding: 14px; border-radius: 26px;
  background: #fff; border: 2px solid #20231C; box-shadow: 0 4px 0 #20231C;
}
.fe .esp-fe-qri svg { width: 100%; height: 100%; display: block; }
.fe .esp-fe-et {
  list-style: none; margin: 16px 0 0; padding: 12px 14px; border-radius: 18px; background: #fff; border: 1.5px solid #F0E7CE;
  display: flex; flex-direction: column; gap: 8px; text-align: left; color: #20231C;
}
