/* ============================================================
   v5/mobile.css — le CRM sur le téléphone (07/10/2026, maquette Claude Design)
   Tout est sous body.m-mobile (posé par v5/mobile.js sous 768 px) : l'ordinateur
   n'est jamais touché. Cinq onglets en bas, les écrans en pleine largeur,
   l'accueil en vue rapide, l'agenda en liste, les contacts en lignes avec
   appeler et écrire.
   Jetons v2 partout ; graisses et rayons sur l'échelle (echelles.test.js).
   ============================================================ */
/* --m-haut : la zone sous la barre d'état de l'iPhone. Annoncée par le système ; quand elle vaut zéro alors que l'écran passe
   dessous (téléphone de Thomas, 12/10/2026), v5/mobile.js la remplace par 54 px. */
body.m-mobile { margin: 0; overflow-x: hidden; -webkit-tap-highlight-color: transparent; --m-haut: env(safe-area-inset-top, 0px); }
/* Maniabilité (12/10/2026) : pas de bulle de sélection quand on garde le doigt, et chaque touche se sent. */
body.m-mobile .m-barre, body.m-mobile .m-row, body.m-mobile .m-ev, body.m-mobile .m-tk, body.m-mobile .m-ct, body.m-mobile .m-hero, body.m-mobile .m-jr, body.m-mobile .m-acc-zt, body.m-mobile .m-acc-btns, body.m-mobile .m-tete-btns { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
body.m-mobile .m-row:active, body.m-mobile .m-ev:active, body.m-mobile .m-tk:active, body.m-mobile .m-ct:active, body.m-mobile .m-hero:active, body.m-mobile .m-acc-zt:active { transform: scale(.985); opacity: .85; transition: transform .08s, opacity .08s; }
body.m-mobile .m-ic:active, body.m-mobile .m-acc-av:active, body.m-mobile .m-onglet:active i, body.m-mobile .m-jr:active b { transform: scale(.92); transition: transform .08s; }
body.m-mobile.m-clavier .m-barre { display: none; }
.m-tirer { position: fixed; top: calc(10px + var(--m-haut)); left: 50%; transform: translateX(-50%); z-index: 97; height: 32px; padding: 0 14px; border-radius: 99px; background: var(--v2-text, #16171a); color: var(--panel-solid, #fff); font-size: 12.5px; font-weight: 640; display: inline-flex; align-items: center; box-shadow: 0 6px 16px rgba(20, 20, 25, .18); }
body.m-mobile .topbar, body.m-mobile .sidebar, body.m-mobile .sidebar-backdrop, body.m-mobile .main > .header, body.m-mobile #filters { display: none !important; }
body.m-mobile .app { height: auto; min-height: 100vh; overflow: visible; }
body.m-mobile .main { padding: 0; min-height: 100vh; }
body.m-mobile .kanban-container { padding: 0 14px calc(90px + env(safe-area-inset-bottom)); }
body.m-mobile .simulateur-container { padding-bottom: calc(90px + env(safe-area-inset-bottom)); }

/* ── La barre du bas ── */
.m-barre { touch-action: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; display: flex; justify-content: space-around; align-items: flex-start; padding: 6px 6px calc(8px + env(safe-area-inset-bottom)); background: var(--panel-solid, #fff); border-top: 1px solid var(--stroke, rgba(20, 20, 25, .08)); }
.m-onglet { display: flex; flex-direction: column; align-items: center; gap: 3px; width: 72px; min-height: 52px; padding: 4px 0; border: 0; background: none; font-family: inherit; font-size: 10.5px; font-weight: 640; color: var(--v2-text-3, #6b6f76); cursor: pointer; letter-spacing: inherit; }
.m-onglet i { position: relative; display: grid; place-items: center; width: 48px; height: 30px; border-radius: 99px; color: var(--v2-text-2, #55595f); font-style: normal; }
.m-onglet.est-actif { color: var(--v2-text, #16171a); }
.m-onglet.est-actif i { background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); }
.m-pastille { position: absolute; top: -3px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--neg-fg, #b3261e); color: #fff; font-size: 9.5px; font-weight: 680; line-height: 16px; text-decoration: none; text-align: center; border: 2px solid var(--panel-solid, #fff); box-sizing: content-box; }

/* ── Les têtes d'écran ── */
.m-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(16px + var(--m-haut)) 4px 8px; }
.m-tete[hidden] { display: none; }
.m-tete.est-fixe { padding: calc(16px + var(--m-haut)) 18px 6px; }
.m-tete h1, .m-h1 { display: block; margin: 0; font-size: 26px; font-weight: 680; letter-spacing: -.04em; line-height: 1.05; color: var(--v2-text, #16171a); }
.m-k { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.m-tete-btns { display: flex; gap: 5px; flex: none; }
.m-titre-btn { min-width: 0; padding: 0; border: 0; background: none; text-align: left; font-family: inherit; letter-spacing: inherit; cursor: pointer; }
.m-titre-btn .m-h1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-tete .m-ic { width: 42px; height: 42px; }
.m-ic { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); color: var(--v2-text, #16171a); flex: none; cursor: pointer; padding: 0; text-decoration: none; }
.m-ic.est-plein { background: var(--accent-bright, #f5d547); border-color: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); }
.m-cloche.est-actif { background: var(--pos, rgba(19, 109, 69, .11)); border-color: var(--pos-fg, #136d45); color: var(--pos-fg, #136d45); }
.m-cloche[data-etat="ecran-accueil"], .m-cloche[data-etat="refuse"], .m-cloche[data-etat="impossible"] { color: var(--v2-text-3, #6b6f76); }
.m-zt { display: flex; align-items: baseline; gap: 8px; margin: 10px 4px 2px; font-size: 10.5px; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.m-zt i { font-style: normal; font-weight: 550; opacity: .8; }
.m-liste { display: flex; flex-direction: column; gap: 8px; }
/* v2-motifs.css habille un autre « .m-liste » (le motif d'ordinateur) d'un panneau : sur le téléphone, les lignes sont les cartes. */
body.m-mobile [data-v2] .m-liste { background: none; border: 0; border-radius: 0; backdrop-filter: none; overflow: visible; }
.m-vide { display: flex; flex-direction: column; gap: 4px; padding: 26px 16px; border-radius: var(--r-sm, 12px); border: 1px dashed var(--stroke, rgba(20, 20, 25, .16)); text-align: center; }
.m-vide b { font-size: 14px; font-weight: 640; }
.m-vide span { font-size: 12.5px; color: var(--v2-text-3, #6b6f76); }
.m-suite { margin: 4px 4px 0; font-size: 12px; color: var(--v2-text-3, #6b6f76); }
.m-rien { padding: 14px 18px; border-radius: var(--r-sm, 12px); border: 1px dashed var(--stroke, rgba(20, 20, 25, .16)); font-size: 13px; color: var(--v2-text-3, #6b6f76); }
.m-conseil { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r-sm, 12px); background: var(--accent-soft, rgba(245, 213, 71, .3)); border: 1px solid rgba(125, 100, 13, .22); }
.m-conseil b { font-size: 13.5px; font-weight: 680; }
.m-conseil span { font-size: 12.5px; line-height: 1.45; color: var(--v2-text-2, #55595f); }
.m-conseil-ok { align-self: flex-start; height: 36px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--v2-text, #16171a); color: var(--panel-solid, #fff); font-family: inherit; font-size: 12.5px; font-weight: 640; cursor: pointer; letter-spacing: inherit; }

/* ── L'agenda : la bande de la semaine, la journée en liste ── */
/* Le jour qui arrive glisse dans le sens du doigt (12/10/2026). */
.m-agenda.est-glisse-gauche .m-liste, .m-agenda.est-glisse-gauche .m-semaine { animation: m-glisse-g .22s ease-out; }
.m-agenda.est-glisse-droite .m-liste, .m-agenda.est-glisse-droite .m-semaine { animation: m-glisse-d .22s ease-out; }
@keyframes m-glisse-g { from { transform: translateX(36px); opacity: .35; } to { transform: none; opacity: 1; } }
@keyframes m-glisse-d { from { transform: translateX(-36px); opacity: .35; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .m-agenda .m-liste, .m-agenda .m-semaine { animation: none !important; } }
.m-semaine { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; padding: 4px 0 10px; }
.m-jr { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 64px; padding: 6px 0; border: 0; border-radius: var(--r-sm, 12px); background: none; font-family: inherit; font-size: 10.5px; font-weight: 640; color: var(--v2-text-3, #6b6f76); cursor: pointer; letter-spacing: inherit; }
.m-jr b { width: 32px; height: 32px; border-radius: 99px; display: grid; place-items: center; font-size: 14px; font-weight: 680; color: var(--v2-text, #16171a); }
.m-jr.est-auj b { box-shadow: inset 0 0 0 1.5px var(--v2-text-3, #9a9ea6); }
.m-jr.est-actif b { background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); box-shadow: none; }
.m-jr i { width: 5px; height: 5px; border-radius: 99px; background: transparent; }
.m-jr i.est-pos { background: var(--pos-fg, #136d45); } .m-jr i.est-info { background: var(--info-fg, #285aa0); } .m-jr i.est-warn { background: var(--corail-fg, #b4532a); } .m-jr i.est-neg { background: var(--neg-fg, #b3261e); } .m-jr i.est-relance { background: var(--v2-accent, #7d640d); } .m-jr i.est-neutre { background: var(--v2-text-3, #9a9ea6); }
.m-ev { display: grid; grid-template-columns: 54px 4px minmax(0, 1fr); gap: 0 12px; align-items: stretch; width: 100%; min-height: 56px; padding: 12px 14px; border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-sm, 12px); background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); font-family: inherit; text-align: left; cursor: pointer; letter-spacing: inherit; box-sizing: border-box; }
.m-ev-h { font-size: 13px; font-weight: 680; line-height: 1.3; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-ev-h span { display: block; font-size: 11px; font-weight: 550; color: var(--v2-text-3, #6b6f76); }
.m-ev-l { border-radius: 99px; background: var(--v2-text-3, #c4c7cc); }
.m-ev.est-pos .m-ev-l { background: var(--pos-fg, #136d45); } .m-ev.est-info .m-ev-l { background: var(--info-fg, #285aa0); } .m-ev.est-warn .m-ev-l { background: var(--corail-fg, #b4532a); } .m-ev.est-teal .m-ev-l { background: #1f8a8a; } .m-ev.est-autre .m-ev-l { background: var(--ardoise-fg, #4f5d78); }
.m-ev-c { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.m-ev-t { font-size: 14px; font-weight: 640; letter-spacing: -.01em; line-height: 1.25; }
.m-ev-s { font-size: 12px; color: var(--v2-text-2, #55595f); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-ev-s em { font-style: normal; font-weight: 640; color: var(--pos-fg, #136d45); }
.m-ev.est-info .m-ev-s em { color: var(--info-fg, #285aa0); } .m-ev.est-warn .m-ev-s em { color: var(--corail-fg, #b4532a); } .m-ev.est-autre .m-ev-s em { color: var(--ardoise-fg, #4f5d78); } .m-ev.est-teal .m-ev-s em { color: #1f8a8a; }
.m-tk { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-sm, 12px); background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); font-family: inherit; text-align: left; cursor: pointer; letter-spacing: inherit; box-sizing: border-box; }
.m-tk b { font-size: 13.5px; font-weight: 620; }
.m-ck { width: 20px; height: 20px; border-radius: 99px; border: 1.6px solid var(--v2-text-3, #c4c7cc); background: var(--panel-solid, #fff); box-sizing: border-box; }
.m-ck.est-r { border-color: var(--neg-fg, #b3261e); border-width: 2.4px; } .m-ck.est-j { border-color: var(--warn-fg, #8a5510); border-width: 2.4px; }
.m-pt { width: 10px; height: 10px; margin: 0 5px; border-radius: 99px; background: var(--v2-accent, #7d640d); } .m-pt.est-neg { background: var(--neg-fg, #b3261e); }
.m-d { height: 20px; padding: 0 8px; border-radius: 99px; font-size: 10.5px; font-weight: 640; display: inline-flex; align-items: center; background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text-2, #55595f); white-space: nowrap; }
.m-d.est-r { background: var(--neg-soft, rgba(179, 38, 30, .1)); color: var(--neg-fg, #b3261e); }

/* ── Contacts ── */
.m-cherche { display: flex; align-items: center; gap: 10px; height: 48px; margin: 2px 0 8px; padding: 0 14px; border-radius: 99px; background: var(--panel-solid, #fff); border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); box-sizing: border-box; color: var(--v2-text-3, #6b6f76); }
.m-cherche:focus-within { border-color: var(--accent-bright, #f5d547); box-shadow: 0 0 0 3px var(--accent-soft, rgba(245, 213, 71, .26)); }
.m-cherche input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 16px; font-weight: 620; color: var(--v2-text, #16171a); letter-spacing: inherit; }
.m-cherche input::placeholder { font-weight: 550; color: var(--v2-text-3, #8a8e95); }
.m-filtres { display: flex; gap: 6px; padding: 0 0 6px; overflow-x: auto; scrollbar-width: none; }
.m-filtres::-webkit-scrollbar { display: none; }
.m-ft { height: 34px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 12.5px; font-weight: 640; color: var(--v2-text-2, #55595f); white-space: nowrap; flex: none; cursor: pointer; letter-spacing: inherit; }
.m-ft.est-actif { background: var(--v2-text, #16171a); border-color: var(--v2-text, #16171a); color: var(--panel-solid, #fff); }
.m-cts { background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); border-radius: var(--r-md, 18px); overflow: hidden; }
.m-ct { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 64px; padding: 10px 12px 10px 14px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); cursor: pointer; }
.m-ct:first-child { border-top: 0; }
.m-ct .av, .m-av { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; font-size: 13px; font-weight: 680; color: #fff; flex: none; }
.m-ct-c { min-width: 0; }
.m-ct-n { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: 15px; font-weight: 640; }
.m-ct-n > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ct-n mark, .m-ct-s mark { background: var(--accent-soft, rgba(245, 213, 71, .4)); color: inherit; border-radius: 3px; padding: 0 1px; }
.m-ct-s { display: block; font-size: 12px; color: var(--v2-text-2, #55595f); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.m-ct-s b { font-weight: 640; color: var(--v2-text, #16171a); }
.m-ct-n em { font-style: normal; font-size: 9.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; padding: 1px 6px; border-radius: 99px; flex: none; background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text-2, #55595f); }
.m-ct-n em.est-client { background: var(--pos, rgba(19, 109, 69, .11)); color: var(--pos-fg, #136d45); } .m-ct-n em.est-prospect { background: var(--info-soft, rgba(40, 90, 160, .1)); color: var(--info-fg, #285aa0); } .m-ct-n em.est-collegue { background: var(--accent-soft, rgba(245, 213, 71, .3)); color: var(--v2-accent, #7d640d); }
.m-ct-a { display: flex; gap: 6px; }
.m-act { width: 42px; height: 42px; border-radius: 99px; display: grid; place-items: center; background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text, #16171a); text-decoration: none; }
.m-act.est-tel { background: var(--pos, rgba(19, 109, 69, .11)); color: var(--pos-fg, #136d45); }

/* ── Messages : la messagerie de l'équipe en plein écran dans l'onglet ── */
/* styles.css met la bulle du chat (#chat-equipe.msg-w.ouvert) en plein écran sous 768 px, au-dessus de tout : sur le
   téléphone elle couvrait la barre des onglets, et « Fermer » était caché — on restait enfermé dans la messagerie
   (Joris, 07/10/2026). La fenêtre s'arrête au-dessus des onglets, et la barre passe devant. */
body.m-mobile #chat-equipe.msg-w { z-index: 80 !important; }
body.m-mobile #chat-equipe.msg-w.ouvert { top: 0 !important; left: 0 !important; right: 0 !important; bottom: calc(64px + env(safe-area-inset-bottom)) !important; }
body.m-mobile #chat-equipe .msg-bulle { display: none !important; }
body.m-mobile.m-messages #chat-equipe .chat-eq-panneau { position: fixed !important; top: 0 !important; right: 0 !important; bottom: calc(64px + env(safe-area-inset-bottom)) !important; left: 0 !important; width: auto !important; height: auto !important; max-width: none !important; max-height: none !important; margin: 0 !important; border-radius: 0 !important; border: 0 !important; box-shadow: none !important; z-index: 80; display: flex !important; flex-direction: column; padding-top: var(--m-haut); background: var(--panel-solid, #fff) !important; backdrop-filter: none !important; }
body.m-mobile.m-messages #chat-equipe [data-chat-eq-taille] { display: none !important; }
body.m-mobile.m-messages #chat-equipe .chat-eq-corps { flex: 1 1 auto; min-height: 0; }
body.m-mobile.m-messages #chat-equipe .chat-eq-cadre { width: 100%; height: 100%; }

/* ── Tâches et projets : les écrans d'ordinateur, en colonne ── */
/* styles.css impose 44 px à tout bouton de l'écran sous 768 px : les petites commandes rondes (coche, criticité,
   croix) ne sont pas des boutons de 44 px — la ligne entière est la cible. Les vrais boutons gardent leur taille. */
body.m-mobile #kanban-container button:not(.card-comm-btn):not([class*="mini"]):not(.d3-todo-check):not(.td-check) { min-height: 0; }
body.m-mobile .x4-todo-ajouter, body.m-mobile .x4-mur-plus { min-height: 40px; }
/* Les projets (16/11/2026) : la liste, la fiche et le formulaire se rangent seuls sur un écran étroit (v4/projets.css). Ici,
   seulement ce qui tient au téléphone : des champs à 16 px (sinon l'écran zoome au premier appui) et des cibles assez hautes. */
body.m-mobile .x4-projets input[type="text"], body.m-mobile .x4-projets input[type="date"], body.m-mobile .x4-projets select, body.m-mobile .x4-projets textarea { font-size: 16px; min-height: 42px; }
body.m-mobile .x4-projets .x4-projets-date-libre input[type="date"] { min-height: 0; }
body.m-mobile .x4-projets-btn { height: 42px; }
body.m-mobile .x4-projets-btn.est-petit, body.m-mobile .x4-projets-seg button, body.m-mobile .x4-projets-choix, body.m-mobile .x4-projets-bascule button { height: 38px; }
body.m-mobile .x4-projets-lien, body.m-mobile .x4-projets-retour { height: 38px; }
body.m-mobile .x4-projets-case { width: 26px; height: 26px; }
body.m-mobile .x4-projets-etape .x4-projets-x { opacity: .6; }
body.m-mobile .x4-todo-filtre { height: 36px; }
body.m-mobile .x4-todo { padding: 0 0 8px; gap: 10px; }
body.m-mobile .x4-todo-tete { flex-direction: column; align-items: stretch; gap: 10px; }
body.m-mobile .x4-todo-tete .x4-todo-saisie { flex: none; }
body.m-mobile .x4-todo-champ { font-size: 16px; }
body.m-mobile .x4-todo-l { flex-wrap: wrap; row-gap: 6px; padding: 10px 12px 10px 14px; }
body.m-mobile .x4-todo-corps { flex: 1 1 200px; min-width: 0; }
body.m-mobile .x4-todo-texte { white-space: normal; line-height: 1.3; }
body.m-mobile .x4-todo-infos { flex: 1 1 100%; justify-content: flex-start; flex-wrap: wrap; padding-left: 32px; gap: 8px; }
body.m-mobile .x4-todo-puce.est-rappel { min-width: 0; }
body.m-mobile .x4-todo-puce.est-rappel.est-vide { opacity: 1; }
body.m-mobile .x4-todo-puce.est-doc.est-vide, body.m-mobile .x4-todo-puce.est-avancement:not(.est-25):not(.est-50):not(.est-75), body.m-mobile .x4-todo-l > .x4-crit { display: none; }
body.m-mobile .x4-todo-suppr { position: absolute; top: 8px; right: 6px; opacity: .55; }
body.m-mobile .x4-todo-case { width: 24px; height: 24px; }
body.m-mobile .x4-todo-menu { right: 10px; left: 10px; min-width: 0; }
body.m-mobile .x4-mur-colonnes { grid-template-columns: minmax(0, 1fr) !important; }
body.m-mobile .x4-mur-papier-outils { opacity: 1; position: static; box-shadow: none; padding: 0; grid-column: 2; justify-content: flex-end; }
body.m-mobile .x4-mur-papier { grid-template-columns: 18px minmax(0, 1fr); row-gap: 6px; padding-right: 10px; }

/* ── La feuille qui monte du bas (22/10/2026) : rendez-vous, tâche, saisie ── */
.m-voile { position: fixed; inset: 0; z-index: var(--z-modale, 200); background: rgba(20, 20, 25, .42); opacity: 0; transition: opacity .22s; touch-action: none; }
.m-voile.est-la { opacity: 1; }
.m-feuille { position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-modale, 200); max-height: calc(100vh - 36px - var(--m-haut)); max-height: calc(100dvh - 36px - var(--m-haut)); display: flex; flex-direction: column; border-radius: var(--r-lg, 26px) var(--r-lg, 26px) 0 0; background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); box-shadow: 0 -12px 40px rgba(20, 20, 25, .18); transform: translateY(100%); transition: transform .26s cubic-bezier(.2, .8, .3, 1); will-change: transform; }
.m-feuille.est-la { transform: translateY(0); }
.m-feuille-poignee { flex: none; display: grid; place-items: center; height: 24px; padding-top: 6px; }
.m-feuille-poignee i { width: 40px; height: 5px; border-radius: 99px; background: var(--v2-text-3, #c4c7cc); opacity: .6; }
.m-feuille-corps { overflow: auto; -webkit-overflow-scrolling: touch; padding: 4px 20px calc(22px + env(safe-area-inset-bottom)); }
body.m-feuille-ouverte { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .m-feuille, .m-voile { transition: none; } }
.m-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 15px; font-weight: 640; color: var(--v2-text, #16171a); letter-spacing: inherit; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.m-btn.est-plein { background: var(--accent-bright, #f5d547); border-color: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); font-weight: 680; box-shadow: 0 8px 18px rgba(125, 100, 13, .2); }
.m-btn.est-vert { background: var(--pos, rgba(19, 109, 69, .11)); border-color: transparent; color: var(--pos-fg, #136d45); }
.m-btn.est-danger { color: var(--neg-fg, #a74137); }
.m-btn.est-texte { min-height: 44px; border-color: transparent; background: none; color: var(--v2-text-2, #55595f); font-weight: 620; }
.m-btn:active { transform: scale(.985); opacity: .85; }
.m-deux { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Le rendez-vous, en lecture */
.m-rdv { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.m-rdv-type { display: flex; align-items: center; gap: 7px; margin: 0; }
.m-rdv-type i { width: 8px; height: 8px; border-radius: 99px; background: var(--v2-text-3, #c4c7cc); }
.m-rdv.est-pos .m-rdv-type { color: var(--pos-fg, #136d45); } .m-rdv.est-pos .m-rdv-type i { background: var(--pos-fg, #136d45); }
.m-rdv.est-info .m-rdv-type { color: var(--info-fg, #285aa0); } .m-rdv.est-info .m-rdv-type i { background: var(--info-fg, #285aa0); }
.m-rdv.est-warn .m-rdv-type { color: var(--corail-fg, #b4532a); } .m-rdv.est-warn .m-rdv-type i { background: var(--corail-fg, #b4532a); }
.m-rdv.est-teal .m-rdv-type { color: #1f8a8a; } .m-rdv.est-teal .m-rdv-type i { background: #1f8a8a; }
.m-rdv.est-autre .m-rdv-type { color: var(--ardoise-fg, #4f5d78); } .m-rdv.est-autre .m-rdv-type i { background: var(--ardoise-fg, #4f5d78); }
.m-rdv-t { margin: -6px 0 0; font-size: 22px; font-weight: 680; letter-spacing: -.03em; line-height: 1.15; }
.m-rdv-quand { display: flex; align-items: center; gap: 12px; color: var(--v2-text-2, #55595f); }
.m-rdv-quand span { display: flex; flex-direction: column; gap: 2px; }
.m-rdv-quand b { font-size: 16px; font-weight: 680; color: var(--v2-text, #16171a); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.m-rdv-quand small { font-size: 12.5px; font-weight: 620; color: var(--v2-text-3, #6b6f76); }
.m-rdv-lignes { display: flex; flex-direction: column; border-radius: var(--r-md, 18px); border: 1px solid var(--stroke, rgba(20, 20, 25, .08)); overflow: hidden; }
.m-rdv-ligne { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 56px; padding: 10px 14px; border: 0; background: none; font-family: inherit; letter-spacing: inherit; text-align: left; color: var(--v2-text, #16171a); text-decoration: none; cursor: pointer; }
.m-rdv-ligne + .m-rdv-ligne { border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); }
.m-rdv-ligne > svg:first-child { color: var(--v2-text-3, #6b6f76); }
.m-rdv-ligne > svg:last-child { color: var(--v2-text-3, #9a9ea6); }
.m-rdv-ligne > span { display: flex; flex-direction: column; gap: 1px; min-width: 0; font-size: 14px; line-height: 1.35; }
.m-rdv-ligne b { font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-rdv-ligne small { font-size: 12px; font-weight: 620; color: var(--v2-text-3, #6b6f76); }
.m-rdv-ligne.est-note { grid-template-columns: 20px minmax(0, 1fr); cursor: default; align-items: flex-start; }
.m-rdv-ligne.est-note > svg { margin-top: 2px; }
.m-rdv-ligne.est-note > span { font-size: 13.5px; color: var(--v2-text-2, #55595f); line-height: 1.45; }
.m-rdv-actes { display: flex; flex-direction: column; gap: 10px; }

/* Les feuilles de saisie : rendez-vous, tâche */
.m-form { display: flex; flex-direction: column; gap: 10px; padding-top: 2px; }
.m-form-t { margin: 0 0 4px; font-size: 20px; font-weight: 680; letter-spacing: -.03em; }
.m-form-k { margin: 8px 2px -2px; font-size: 10.5px; font-weight: 640; letter-spacing: .08em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.m-form-note { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--v2-text-2, #55595f); }
.m-form-note b { font-weight: 640; color: var(--v2-text, #16171a); }
.m-champ { width: 100%; min-height: 50px; padding: 10px 14px; border-radius: var(--r-sm, 12px); border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 16px; font-weight: 620; color: var(--v2-text, #16171a); letter-spacing: inherit; box-sizing: border-box; -webkit-appearance: none; appearance: none; }
textarea.m-champ { min-height: 72px; resize: none; line-height: 1.4; }
select.m-champ { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236b6f76' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
.m-champ::placeholder { font-weight: 550; color: var(--v2-text-3, #8a8e95); }
.m-champ:focus { outline: 0; border-color: var(--accent-bright, #f5d547); box-shadow: 0 0 0 3px var(--accent-soft, rgba(245, 213, 71, .26)); }
.m-champ-l { display: flex; align-items: center; min-height: 50px; border-radius: var(--r-sm, 12px); border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); box-sizing: border-box; overflow: hidden; }
.m-champ-l > span { flex: none; padding: 0 4px 0 14px; font-size: 12.5px; font-weight: 640; color: var(--v2-text-3, #6b6f76); }
.m-champ-l .m-champ { min-height: 0; flex: 1; border: 0; padding-left: 6px; border-radius: 0; }
.m-champ-l .m-champ:focus { box-shadow: none; }
.m-champ-l:focus-within { border-color: var(--accent-bright, #f5d547); box-shadow: 0 0 0 3px var(--accent-soft, rgba(245, 213, 71, .26)); }
.m-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 99px; border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 13px; font-weight: 640; color: var(--v2-text-2, #55595f); white-space: nowrap; cursor: pointer; letter-spacing: inherit; }
.m-chip.est-actif { background: var(--v2-text, #16171a); border-color: var(--v2-text, #16171a); color: var(--panel-solid, #fff); }
.m-chip.est-grande { height: 50px; border-radius: var(--r-sm, 12px); justify-content: center; }
.m-chip.est-qui { padding-left: 6px; } .m-chip.est-qui .av { flex: none; } .m-chip.est-qui.est-actif .av { box-shadow: 0 0 0 2px var(--panel-solid, #fff); }
.m-chip.est-qui:not(:has(.av)) { padding-left: 13px; }
.m-chip.est-crit i { width: 9px; height: 9px; border-radius: 99px; background: var(--pos-fg, #136d45); }
.m-chip.est-crit.est-jaune i { background: var(--warn-fg, #8a5510); } .m-chip.est-crit.est-rouge i { background: var(--neg-fg, #b3261e); }
.m-chip.est-crit.est-actif.est-vert { background: var(--pos-fg, #136d45); border-color: var(--pos-fg, #136d45); } .m-chip.est-crit.est-actif.est-jaune { background: var(--warn-fg, #8a5510); border-color: var(--warn-fg, #8a5510); } .m-chip.est-crit.est-actif.est-rouge { background: var(--neg-fg, #b3261e); border-color: var(--neg-fg, #b3261e); }
.m-chip.est-crit.est-actif i { background: var(--panel-solid, #fff); }
.m-form .m-btn.est-plein { margin-top: 10px; }
.m-form .m-btn.est-texte { margin-top: -4px; }

/* La feuille d'une personne (contacts, 22/10/2026) */
.m-pers { display: flex; flex-direction: column; gap: 14px; padding-top: 4px; }
.m-pers-tete { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: center; }
.m-pers-tete .av { width: 56px; height: 56px; border-radius: 99px; font-size: 17px; }
.m-pers-tete .av img { width: 100%; height: 100%; border-radius: 99px; object-fit: cover; display: block; }
.m-pers-tete > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m-pers-tete b { font-size: 20px; font-weight: 680; letter-spacing: -.03em; line-height: 1.15; }
.m-pers-tete span { font-size: 13px; font-weight: 620; color: var(--v2-text-2, #55595f); }
.m-pers-tete em { align-self: flex-start; font-style: normal; font-size: 9.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text-2, #55595f); }
.m-pers-tete em.est-client { background: var(--pos, rgba(19, 109, 69, .11)); color: var(--pos-fg, #136d45); } .m-pers-tete em.est-prospect { background: var(--info-soft, rgba(40, 90, 160, .1)); color: var(--info-fg, #285aa0); } .m-pers-tete em.est-collegue { background: var(--accent-soft, rgba(245, 213, 71, .3)); color: var(--v2-accent, #7d640d); }
.m-pers-actes { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; }
.m-pers-acte { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 68px; border-radius: var(--r-md, 18px); background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text, #16171a); text-decoration: none; font-size: 12.5px; font-weight: 640; }
.m-pers-acte.est-tel { background: var(--pos-fg, #136d45); color: #fff; }
.m-pers-acte.est-vide { color: var(--v2-text-3, #9a9ea6); }
.m-pers-acte:active { transform: scale(.97); opacity: .85; }
.m-pers-fil { display: flex; flex-direction: column; gap: 10px; padding: 2px 2px 0; }
.m-pers-ev { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.m-pers-ev span { font-size: 11.5px; font-weight: 640; color: var(--v2-text-3, #6b6f76); white-space: nowrap; }
.m-pers-ev p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--v2-text-2, #55595f); }

/* Les tâches du téléphone */
.m-segments { display: flex; gap: 4px; padding: 4px; margin: 0 0 10px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .05)); }
.m-segment { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; border: 0; border-radius: 99px; background: none; font-family: inherit; font-size: 13.5px; font-weight: 640; color: var(--v2-text-2, #55595f); cursor: pointer; letter-spacing: inherit; }
.m-segment.est-actif { background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); box-shadow: 0 1px 2px rgba(20, 20, 25, .08); }
.m-segment i { font-style: normal; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .06)); font-size: 11px; font-weight: 680; display: inline-grid; place-items: center; box-sizing: border-box; }
.m-segment i.est-v { background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); }
.m-zt.est-retard { color: var(--neg-fg, #a74137); } .m-zt.est-jour { color: var(--v2-accent, #7d640d); }
.m-tls { display: flex; flex-direction: column; }
.m-tl { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: center; min-height: 58px; padding: 11px 16px 11px 14px; position: relative; cursor: pointer; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; transition: opacity .2s, transform .2s; }
.m-tl + .m-tl::before { content: ''; position: absolute; left: 52px; right: 0; top: 0; height: 1px; background: var(--stroke-2, rgba(20, 20, 25, .06)); }
.m-tl:active { background: var(--inset, rgba(0, 0, 0, .035)); }
.m-tl.part { opacity: .25; transform: translateX(12px); }
.m-tl .m-ck { width: 24px; height: 24px; border-width: 1.8px; padding: 0; display: grid; place-items: center; cursor: pointer; color: var(--panel-solid, #fff); }
.m-tl .m-ck.est-faite { background: var(--pos-fg, #136d45); border-color: var(--pos-fg, #136d45); }
.m-tl-c { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.m-tl-c b { font-size: 15px; font-weight: 620; letter-spacing: -.01em; line-height: 1.3; }
.m-tl-c small { font-size: 12px; font-weight: 620; color: var(--v2-text-3, #6b6f76); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Le prénom de la personne dans la couleur de son avatar (22/10/2026). */
.m-qui { display: inline-block; vertical-align: 1px; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 680; letter-spacing: .01em; line-height: 16px; }
.m-tl.est-retard .m-tl-c small { color: var(--neg-fg, #a74137); } .m-tl.est-jour .m-tl-c small { color: var(--v2-accent, #7d640d); }
.m-tl.est-faite .m-tl-c b { color: var(--v2-text-3, #9a9ea6); text-decoration: line-through; }
.m-suite.est-btn { align-self: flex-start; margin: 6px 4px; padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 640; color: var(--v2-accent, #7d640d); cursor: pointer; letter-spacing: inherit; }
body.m-mobile .m-taches .x4-projets { padding: 0; }

/* ── Les notifications sur le téléphone (22/10/2026) : en bandeau en haut, sans croix, balayées du doigt ── */
body.m-mobile .x4-rappel-zone { top: calc(8px + var(--m-haut)); bottom: auto; left: 10px; right: 10px; width: auto; max-width: none; z-index: 97; }
body.m-mobile .x4-bob { top: calc(8px + var(--m-haut)); bottom: auto; left: 10px; right: 10px; width: auto; max-width: none; }
body.m-mobile .x4-mot { left: 10px; right: 10px; bottom: calc(78px + env(safe-area-inset-bottom)); width: auto; max-width: none; }
body.m-mobile .x4-rappel, body.m-mobile .x4-mot, body.m-mobile .x4-bob { animation: m-tombe .28s cubic-bezier(.2, .8, .3, 1); box-shadow: 0 10px 30px rgba(20, 20, 25, .18); touch-action: pan-y; }
@keyframes m-tombe { from { transform: translateY(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
body.m-mobile .x4-rappel-x, body.m-mobile .x4-mot-x, body.m-mobile .x4-bob-x { display: none; }
body.m-mobile .x4-rappel-gestes button, body.m-mobile .x4-bob-btn { min-height: 42px; }
body.m-mobile .toast { left: 14px; right: 14px; bottom: calc(80px + env(safe-area-inset-bottom)); width: auto; max-width: none; justify-content: center; text-align: center; border-radius: 99px; padding: 12px 18px; font-size: 13.5px; }

/* ── Les fenêtres et le panneau d'une fiche ── */
body.m-mobile .modal { width: calc(100vw - 16px); max-width: none; max-height: calc(100vh - 24px - var(--m-haut)); overflow: auto; border-radius: var(--r-lg, 26px); padding: 20px 18px; }
body.m-mobile .modal input, body.m-mobile .modal select, body.m-mobile .modal textarea { font-size: 16px; }
body.m-mobile .panel { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
body.m-mobile .x4-todo-avancer, body.m-mobile .x4-crit-menu { max-width: calc(100vw - 16px); }

/* ── Accueil : la vue rapide (12/10/2026, maquette Claude Design « 0 · Accueil ») ── */
/* Le fond chaud de la planche est déjà celui du CRM (les halos de styles.css) : rien à ajouter. */
.m-acc { display: flex; flex-direction: column; gap: 12px; padding: 0 6px 8px; }
.m-acc-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + var(--m-haut)) 2px 6px; }
.m-acc-logo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.m-acc-logo img { width: 26px; height: 33px; display: block; }
.m-acc-logo b { display: block; font-size: 21px; font-weight: 680; letter-spacing: -.035em; line-height: 1; color: var(--v2-text, #16171a); }
.m-acc-logo .m-k { margin: 4px 0 0; }
.m-acc-btns { display: flex; align-items: center; gap: 10px; flex: none; }
.m-acc-btns .m-ic { border: 0; box-shadow: 0 1px 2px rgba(20, 20, 25, .04), 0 6px 16px rgba(20, 20, 25, .08); }
.m-acc-av { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 99px; background: none; box-shadow: 0 0 0 3px var(--panel-solid, #fff), 0 6px 16px rgba(20, 20, 25, .12); cursor: pointer; }
.m-acc-av .av, .m-acc-av .m-av { width: 44px; height: 44px; border-radius: 99px; display: grid; place-items: center; font-size: 13.5px; font-weight: 680; color: #fff; }
.m-acc-av .av img { width: 100%; height: 100%; border-radius: 99px; object-fit: cover; display: block; }
.m-hero { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 14px; align-items: center; width: 100%; padding: 16px 16px 16px 20px; border: 0; border-radius: var(--r-lg, 26px); background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); font-family: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; box-sizing: border-box; box-shadow: 0 1px 2px rgba(20, 20, 25, .04), 0 14px 34px rgba(20, 20, 25, .09); }
.m-hero > span:first-child { min-width: 0; }
.m-hero .m-k { color: var(--v2-accent, #7d640d); margin: 0 0 8px; }
.m-hero-h { display: block; font-size: 36px; font-weight: 680; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.m-hero-t { display: block; margin-top: 7px; font-size: 16px; font-weight: 640; letter-spacing: -.015em; line-height: 1.25; }
.m-hero-s { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 620; color: var(--v2-text-3, #6b6f76); }
.m-hero-go { width: 48px; height: 48px; border-radius: 99px; display: grid; place-items: center; background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); box-shadow: 0 6px 14px rgba(125, 100, 13, .22); }
.m-acc-zt { display: flex; align-items: baseline; gap: 8px; width: 100%; margin: 4px 2px -2px; padding: 0; border: 0; background: none; font-family: inherit; letter-spacing: inherit; color: var(--v2-text, #16171a); text-align: left; cursor: pointer; }
.m-acc-zt b { font-size: 17px; font-weight: 680; letter-spacing: -.025em; }
.m-acc-zt i { font-style: normal; font-size: 13px; font-weight: 640; color: var(--v2-text-3, #8a8e95); }
.m-acc-zt span { margin-left: auto; display: inline-flex; align-items: center; gap: 1px; font-size: 13px; font-weight: 640; color: var(--v2-accent, #7d640d); }
.m-carte { background: var(--panel-solid, #fff); border-radius: var(--r-md, 18px); overflow: hidden; box-shadow: 0 1px 2px rgba(20, 20, 25, .04), 0 10px 28px rgba(20, 20, 25, .06); }
.m-carte .m-rien { border: 0; }
.m-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; min-height: 58px; padding: 11px 18px; border: 0; background: none; color: var(--v2-text, #16171a); font-family: inherit; letter-spacing: inherit; text-align: left; cursor: pointer; box-sizing: border-box; position: relative; }
.m-row + .m-row::before { content: ''; position: absolute; left: 18px; right: 0; top: 0; height: 1px; background: var(--stroke-2, rgba(20, 20, 25, .06)); }
.m-row-h { font-size: 13.5px; font-weight: 680; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.m-row-h i { width: 6px; height: 6px; border-radius: 99px; background: var(--v2-text-3, #c4c7cc); flex: none; }
.m-row.est-pos .m-row-h i { background: var(--pos-fg, #136d45); } .m-row.est-info .m-row-h i { background: var(--info-fg, #285aa0); } .m-row.est-warn .m-row-h i { background: var(--corail-fg, #b4532a); } .m-row.est-autre .m-row-h i { background: var(--ardoise-fg, #4f5d78); } .m-row.est-teal .m-row-h i { background: #1f8a8a; } .m-row.est-relance .m-row-h i { background: var(--v2-accent, #7d640d); } .m-row.est-neg .m-row-h i { background: var(--neg-fg, #b3261e); }
.m-row-t { font-size: 15px; font-weight: 620; letter-spacing: -.01em; line-height: 1.25; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-row-t small { display: block; font-size: 12px; font-weight: 620; color: var(--v2-text-3, #6b6f76); margin-top: 2px; letter-spacing: 0; }
.m-row-q { font-size: 12px; font-weight: 640; color: var(--v2-text-3, #8a8e95); white-space: nowrap; }
.m-row-q.est-r { color: var(--neg-fg, #a74137); } .m-row-q.est-a { color: var(--v2-accent, #7d640d); }
.m-row.est-passe .m-row-h, .m-row.est-passe .m-row-t { color: #9a9ea6; } .m-row.est-passe .m-row-t small { color: #b0b3b9; }
.m-row.est-tk { grid-template-columns: 22px minmax(0, 1fr) auto; gap: 14px; }
.m-row.est-tk .m-ck { width: 22px; height: 22px; border-width: 1.8px; }
.m-row.est-msg { grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; }
.m-row-ic { width: 36px; height: 36px; border-radius: 99px; display: grid; place-items: center; background: var(--accent-soft, #fbf0c4); color: var(--v2-accent, #7d640d); }
.m-row-n { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--v2-text, #1b1a12); color: var(--panel-solid, #fff); font-size: 11.5px; font-weight: 680; display: inline-grid; place-items: center; box-sizing: border-box; }
.m-row-ic.est-scan { background: var(--pos, rgba(19, 109, 69, .11)); color: var(--pos-fg, #136d45); }

/* Le stock des habits en tête de l'accueil (16/11/2026) : quatre gestes, un appui chacun. */
.m-stock { display: flex; flex-direction: column; gap: 8px; }
.m-stock > .m-k { margin: 0 4px; }
.m-stock-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.m-stock-b { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; min-height: 74px; padding: 10px 2px; border: 0; border-radius: var(--r-md, 18px); background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); font-family: inherit; font-size: 12.5px; font-weight: 640; letter-spacing: inherit; cursor: pointer; box-shadow: 0 1px 2px rgba(20, 20, 25, .04), 0 10px 28px rgba(20, 20, 25, .06); -webkit-tap-highlight-color: transparent; }
.m-stock-b.est-plein { background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); }
.m-stock-b:active { transform: scale(.97); opacity: .85; }
/* Recevoir un colis (18/11/2026) : un grand bouton jaune, le geste du dépôt. */
.m-colis { display: flex; align-items: center; gap: 14px; min-height: 74px; padding: 12px 18px; border: 0; border-radius: var(--r-md, 18px); background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); font-family: inherit; text-align: left; cursor: pointer; letter-spacing: inherit; }
.m-colis span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.m-colis b { font-size: 16px; font-weight: 680; }
.m-colis small { font-size: 12.5px; font-weight: 550; opacity: .8; }
.m-colis:active { transform: scale(.98); opacity: .88; }
