/* ============================================================
   v4/todo.css — Tâches : les tâches rapides (17/09/2026)

   Joris : « des tâches rapides, des petits trucs avec des petits
   rappels. Un truc super simple d'utilisation. » L'écran tient en
   trois choses : deux onglets (Tâches · Projets), UNE ligne de
   saisie qui comprend la phrase, la liste groupée par moment.
   La bande de chiffres, la priorité à trois crans et les listes
   déroulantes de l'ancien écran sont parties : personne ne s'en
   servait.

   Jetons v2 partout (clair et sombre suivent seuls) ; graisses et
   rayons sur l'échelle (echelles.test.js).
   ============================================================ */

.x4-todo {
  /* #kanban-container (v2-coque) apporte déjà `20px 30px`. */
  padding: 0 0 66px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 1060px;
  font-family: var(--font, 'Manrope', -apple-system, BlinkMacSystemFont, system-ui, sans-serif);
  color: var(--v2-text, #16171a);
  font-size: 13.5px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.x4-todo [hidden] { display: none !important; }
.x4-todo button, .x4-todo input, .x4-todo select, .x4-todo textarea { letter-spacing: inherit; font-family: inherit; }

/* ── Les deux onglets ─────────────────────────────────────────── */
.x4-todo-onglets { display: flex; gap: 4px; padding: 4px; align-self: flex-start; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .035)); }
.x4-todo-onglet { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 18px; border-radius: 99px; border: 0; background: none; font-size: 13.5px; font-weight: 550; color: var(--v2-text-2, #55595f); cursor: pointer; white-space: nowrap; }
.x4-todo-onglet:hover { color: var(--v2-text, #16171a); }
.x4-todo-onglet.est-actif { background: var(--panel-solid, #fff); color: var(--v2-text, #16171a); font-weight: 640; box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .05)); }
.x4-todo-compte { min-width: 20px; padding: 1px 7px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .05)); font-size: 11.5px; font-weight: 620; color: var(--v2-text-2, #55595f); text-align: center; font-variant-numeric: tabular-nums; }
.x4-todo-compte.est-vif { background: var(--neg-fg, #b3261e); color: #fff; }

/* ── La ligne de saisie : le cœur de l'écran ──────────────────── */
.x4-todo-saisie { position: relative; display: flex; flex-direction: column; border-radius: var(--r-md, 18px); background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); box-shadow: var(--shadow-sm, 0 1px 2px rgba(0, 0, 0, .05)); transition: border-color .12s, box-shadow .12s; }
.x4-todo-saisie:focus-within { border-color: var(--accent-bright, #f5d547); box-shadow: 0 0 0 3px var(--accent-soft, rgba(245, 213, 71, .26)); }
.x4-todo-saisie-ligne { display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 16px; color: var(--v2-text-3, #6b6f76); }
.x4-todo-champ { flex: 1 1 auto; min-width: 0; height: 44px; border: 0; outline: 0; background: none; font-size: 15.5px; font-weight: 550; color: var(--v2-text, #16171a); }
/* L'anneau de focus est porté par le cadre de la saisie (:focus-within ci-dessus) : pas de second cadre à l'intérieur. */
.x4-todo .x4-todo-saisie .x4-todo-champ:focus-visible { outline: none; }
.x4-todo-champ::placeholder { font-weight: 400; color: var(--v2-text-3, #6b6f76); }
.x4-todo-ajouter { height: 36px; padding: 0 18px; border-radius: 99px; border: 0; background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); font-size: 13px; font-weight: 640; cursor: pointer; white-space: nowrap; }
.x4-todo-ajouter:disabled { background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text-3, #6b6f76); cursor: default; }
.x4-todo-saisie-pied { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 40px; padding: 0 12px 9px 16px; }
.x4-todo-puces, .x4-todo-racs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.x4-todo-racs:not(:empty)::before { content: 'Me le rappeler'; margin-right: 2px; font-size: 12px; color: var(--v2-text-3, #6b6f76); }
.x4-todo-rac { position: relative; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 99px; border: 1px dashed var(--stroke, rgba(20, 20, 25, .18)); background: none; font-size: 12px; font-weight: 550; color: var(--v2-text-2, #55595f); cursor: pointer; white-space: nowrap; }
.x4-todo-rac:hover { border-style: solid; border-color: var(--v2-text-3, #6b6f76); color: var(--v2-text, #16171a); }
.x4-todo-rac.est-date input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

/* ── POUR et QUAND : des choix qui se voient ───────────────────── */
.x4-todo-rangée { display: flex; align-items: center; gap: 10px; padding: 0 12px 0 16px; min-height: 40px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); }
.x4-todo-rangée-lbl { flex: none; width: 44px; font-size: 11px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.x4-todo-pours, .x4-todo-quands { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 6px 0; }
.x4-todo-pour { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px 0 4px; border-radius: 99px; border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-size: 12.5px; font-weight: 550; color: var(--v2-text-2, #55595f); cursor: pointer; }
.x4-todo-pour .av { flex: none; }
.x4-todo-pour:hover { border-color: var(--v2-text-3, #6b6f76); color: var(--v2-text, #16171a); }
.x4-todo-pour.est-actif { border-color: var(--v2-text, #16171a); background: var(--v2-text, #16171a); color: var(--panel-solid, #fff); font-weight: 640; }
.x4-todo-pour.est-actif svg { color: var(--accent-bright, #f5d547); }
.x4-todo-quand { display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px; border-radius: 99px; border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); font-size: 12.5px; font-weight: 550; color: var(--v2-text-2, #55595f); cursor: pointer; white-space: nowrap; }
.x4-todo-quand:hover { border-color: var(--v2-text-3, #6b6f76); color: var(--v2-text, #16171a); }
.x4-todo-quand.est-actif { border-color: transparent; background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); font-weight: 640; }
.x4-todo-quand.est-urgent.est-actif { background: var(--neg-fg, #b3261e); color: #fff; }
.x4-todo-date { display: inline-flex; align-items: center; height: 30px; padding: 0 8px; border-radius: 99px; border: 1.5px solid var(--stroke, rgba(20, 20, 25, .12)); background: var(--panel-solid, #fff); }
.x4-todo-date input { border: 0; background: none; font-family: inherit; font-size: 12.5px; color: var(--v2-text, #16171a); outline: 0; }
.x4-todo-saisie-pied { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; min-height: 34px; padding: 4px 16px 10px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); }
.x4-todo-resume { font-size: 12.5px; color: var(--v2-text-3, #6b6f76); }
.x4-todo-resume b { font-weight: 640; color: var(--v2-text, #16171a); }
.x4-todo-puces { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.x4-todo-aide { align-self: center; font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }
.x4-todo-legende { margin-left: auto; font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }
.x4-todo-legende i { display: inline-block; width: 10px; height: 10px; margin: 0 2px 0 8px; border-radius: 3px; vertical-align: -1px; }
.x4-todo-legende i.est-retard { background: var(--neg-fg, #b3261e); } .x4-todo-legende i.est-jour { background: var(--accent-bright, #f5d547); } .x4-todo-legende i.est-avenir { background: var(--info-fg, #285aa0); } .x4-todo-legende i.est-unjour { background: var(--v2-text-3, #9a9ea6); } .x4-todo-legende i.est-faite { background: var(--pos-fg, #136d45); }

/* ── Les puces : le rappel, pour qui, la fiche ────────────────── */
.x4-todo-puce { display: inline-flex; align-items: center; gap: 5px; max-width: 220px; height: 24px; padding: 0 9px; border-radius: 99px; border: 0; background: var(--inset, rgba(0, 0, 0, .045)); font-size: 12px; font-weight: 550; color: var(--v2-text-2, #55595f); white-space: nowrap; }
.x4-todo-puce span { overflow: hidden; text-overflow: ellipsis; }
.x4-todo-puce svg, .x4-todo-puce .av { flex: none; }
.x4-todo-puce i { margin-left: 1px; font-style: normal; font-size: 13px; line-height: 1; opacity: .55; }
button.x4-todo-puce { cursor: pointer; }
button.x4-todo-puce:hover { background: var(--stroke, rgba(20, 20, 25, .1)); color: var(--v2-text, #16171a); }
.x4-todo-puce.est-rappel { background: var(--accent-soft, rgba(245, 213, 71, .26)); color: var(--v2-accent, #7d640d); font-weight: 620; }
.x4-todo-puce.est-rappel.est-jour { background: var(--pos, rgba(19, 109, 69, .11)); color: var(--pos-fg, #136d45); }
.x4-todo-puce.est-rappel.est-retard { background: var(--neg-soft, rgba(179, 38, 30, .1)); color: var(--neg-fg, #b3261e); }
.x4-todo-puce.est-rappel.est-vide { background: none; border: 1px dashed var(--stroke, rgba(20, 20, 25, .18)); color: var(--v2-text-3, #6b6f76); font-weight: 400; opacity: 0; }
.x4-todo-l:hover .x4-todo-puce.est-vide, .x4-todo-puce.est-vide:focus-visible { opacity: 1; }
.x4-todo-puce.est-pour { background: var(--info-soft, rgba(40, 90, 160, .1)); color: var(--info-fg, #285aa0); }
.x4-todo-puce.est-proposition { border: 1px dashed var(--info-fg, #285aa0); background: none; color: var(--info-fg, #285aa0); font-weight: 620; }
.x4-todo-puce.est-proposition:hover { background: var(--info-soft, rgba(40, 90, 160, .1)); }

/* ── Les filtres, les astuces ─────────────────────────────────── */
.x4-todo-filtres { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.x4-todo-filtre { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 99px; border: 0; background: none; font-size: 12.5px; font-weight: 550; color: var(--v2-text-3, #6b6f76); cursor: pointer; }
.x4-todo-filtre span { font-size: 11.5px; font-variant-numeric: tabular-nums; opacity: .8; }
.x4-todo-filtre:hover { color: var(--v2-text, #16171a); }
.x4-todo-filtre.est-actif { background: var(--inset, rgba(0, 0, 0, .05)); color: var(--v2-text, #16171a); font-weight: 640; }
.x4-todo-astuce { margin-left: auto; font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }
.x4-todo-astuce code { margin-left: 3px; padding: 1px 6px; border-radius: var(--r-xs, 9px); background: var(--inset, rgba(0, 0, 0, .045)); font-family: inherit; font-size: 11.5px; color: var(--v2-text-2, #55595f); }

/* ── Les groupes et les lignes ────────────────────────────────── */
.x4-todo-groupes { display: flex; flex-direction: column; gap: 16px; }
.x4-todo-g { display: flex; flex-direction: column; gap: 7px; }
.x4-todo-g-tete { display: flex; align-items: baseline; gap: 8px; margin: 0; padding: 0 4px; font-size: 11.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.x4-todo-g-tete span { font-weight: 550; letter-spacing: 0; opacity: .8; }
.x4-todo-g-tete.est-retard { color: var(--neg-fg, #b3261e); }
.x4-todo-g-tete.est-jour { color: var(--v2-accent, #7d640d); }
.x4-todo-g-tete.est-avenir { color: var(--info-fg, #285aa0); }
.x4-todo-carte { border-radius: var(--r-md, 18px); background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .075)); }
.x4-todo-l { position: relative; display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 6px 10px 6px 14px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); transition: opacity .2s, transform .2s; }
.x4-todo-l:first-child { border-top: 0; }
.x4-todo-l { box-shadow: inset 4px 0 0 var(--liseret, transparent); }
.x4-todo-l.est-retard { --liseret: var(--neg-fg, #b3261e); background: var(--neg-soft, rgba(179, 38, 30, .06)); } .x4-todo-l.est-jour { --liseret: var(--accent-bright, #f5d547); background: var(--accent-soft, rgba(245, 213, 71, .14)); } .x4-todo-l.est-avenir { --liseret: var(--info-fg, #285aa0); } .x4-todo-l.est-unjour { --liseret: var(--v2-text-3, #9a9ea6); } .x4-todo-l.est-faite { --liseret: var(--pos-fg, #136d45); }
.x4-todo.est-large { max-width: none; }
.x4-todo-l.part { opacity: .25; transform: translateX(6px); }
.x4-todo-case { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0; border-radius: 99px; border: 1.5px solid var(--v2-text-3, #9a9ea6); background: none; color: var(--sur-accent, #1b1a12); cursor: pointer; transition: border-color .12s, background .12s; }
.x4-todo-case:hover { border-color: var(--pos-fg, #136d45); background: var(--pos, rgba(19, 109, 69, .11)); }
.x4-todo-case.est-cochee { border-color: transparent; background: var(--pos-fg, #136d45); color: #fff; }
.x4-todo-corps { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.x4-todo-texte { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 0; border: 0; background: none; font-size: 14px; font-weight: 550; color: var(--v2-text, #16171a); text-align: left; cursor: text; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x4-todo-urgent { flex: none; display: inline-flex; color: var(--neg-fg, #b3261e); }
.x4-todo-edit { width: 100%; height: 30px; padding: 0 8px; margin-left: -8px; border-radius: var(--r-xs, 9px); border: 1px solid var(--accent-bright, #f5d547); outline: 0; background: var(--panel-solid, #fff); font-size: 14px; font-weight: 550; color: var(--v2-text, #16171a); }
.x4-todo-rep { font-size: 12px; color: var(--v2-text-3, #6b6f76); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x4-todo-infos { flex: none; display: flex; align-items: center; gap: 6px; max-width: 58%; }
.x4-todo-suivi { font-size: 11.5px; color: var(--v2-text-3, #6b6f76); white-space: nowrap; }
.x4-todo-suivi[data-etat="faite"] { color: var(--pos-fg, #136d45); }
.x4-todo-suivi[data-etat="supprimee"] { color: var(--neg-fg, #b3261e); }
.x4-todo-suppr { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 99px; border: 0; background: none; color: var(--v2-text-3, #6b6f76); cursor: pointer; opacity: 0; }
.x4-todo-l:hover .x4-todo-suppr, .x4-todo-suppr:focus-visible { opacity: 1; }
.x4-todo-suppr:hover { background: var(--neg-soft, rgba(179, 38, 30, .1)); color: var(--neg-fg, #b3261e); }
.x4-todo-l.est-faite .x4-todo-texte { font-weight: 400; color: var(--v2-text-3, #6b6f76); text-decoration: line-through; }
.x4-todo-ajouter svg { margin-right: 5px; vertical-align: -2px; }
.x4-todo-l.est-ecartee .x4-todo-texte { color: var(--v2-text-3, #6b6f76); }
.x4-todo-suite { margin: 0; padding: 0 4px; font-size: 12px; color: var(--v2-text-3, #6b6f76); }

/* ── Le menu « reporter » ─────────────────────────────────────── */
.x4-todo-menu { position: absolute; z-index: 30; top: calc(100% - 4px); right: 44px; display: flex; flex-direction: column; min-width: 232px; padding: 6px; border-radius: var(--r-sm, 12px); background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .3); }
.x4-todo-menu button { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 8px 10px; border-radius: var(--r-xs, 9px); border: 0; background: none; font-size: 13px; color: var(--v2-text, #16171a); cursor: pointer; text-align: left; }
.x4-todo-menu button:hover { background: var(--inset, rgba(0, 0, 0, .045)); }
.x4-todo-menu button b { font-weight: 620; }
.x4-todo-menu button span { font-size: 12px; color: var(--v2-text-3, #6b6f76); }
.x4-todo-menu button.est-doux { color: var(--v2-text-3, #6b6f76); font-size: 12.5px; }
.x4-todo-menu-date { display: flex; gap: 6px; margin: 4px 0; padding: 8px 6px 4px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); }
.x4-todo-menu-date input { flex: 1 1 0; min-width: 0; height: 30px; padding: 0 8px; border-radius: var(--r-xs, 9px); border: 1px solid var(--stroke, rgba(20, 20, 25, .16)); background: var(--panel-solid, #fff); font-size: 12.5px; color: var(--v2-text, #16171a); }

/* ── Vide, annuler ────────────────────────────────────────────── */
.x4-todo-vide { display: flex; flex-direction: column; gap: 4px; padding: 34px 20px; border-radius: var(--r-md, 18px); border: 1px dashed var(--stroke, rgba(20, 20, 25, .14)); text-align: center; }
.x4-todo-vide b { font-size: 14.5px; font-weight: 640; }
.x4-todo-vide span { font-size: 12.5px; color: var(--v2-text-3, #6b6f76); }
.x4-todo-annuler { position: sticky; bottom: 18px; align-self: center; display: inline-flex; align-items: center; gap: 14px; padding: 9px 10px 9px 18px; border-radius: 99px; background: var(--v2-text, #16171a); color: var(--panel-solid, #fff); font-size: 13px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .4); }
.x4-todo-annuler button { height: 28px; padding: 0 14px; border-radius: 99px; border: 0; background: var(--accent-bright, #f5d547); color: var(--sur-accent, #1b1a12); font-size: 12.5px; font-weight: 640; cursor: pointer; }

@media (max-width: 1180px) { .x4-todo-astuce { display: none; } .x4-todo-infos { max-width: 50%; } }

/* ── Les documents d'une tâche (18/09) ── */
.x4-todo-puce.est-doc.est-vide { background: none; border: 1px dashed var(--stroke, rgba(20, 20, 25, .18)); color: var(--v2-text-3, #6b6f76); opacity: 0; }
.x4-todo-l:hover .x4-todo-puce.est-doc.est-vide, .x4-todo-puce.est-doc.est-vide:focus-visible { opacity: 1; }
.x4-todo-puce.est-doc.est-actif { background: var(--v2-text, #16171a); color: var(--panel-solid, #fff); }
.x4-todo-quand.est-doc.est-actif { background: var(--v2-text, #16171a); color: var(--panel-solid, #fff); }
.x4-todo-docs { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; width: 100%; margin-top: 4px; padding: 8px 0 2px 32px; border-top: 1px dashed var(--stroke-2, rgba(20, 20, 25, .08)); }
.x4-todo-l { flex-wrap: wrap; }
.x4-todo-doc { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 4px 0 10px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .045)); font-size: 12px; }
.x4-todo-doc a { display: inline-flex; align-items: center; gap: 5px; color: var(--v2-text, #16171a); text-decoration: none; font-weight: 550; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x4-todo-doc a:hover { text-decoration: underline; }
.x4-todo-doc small { color: var(--v2-text-3, #6b6f76); }
.x4-todo-doc button { width: 20px; height: 20px; border-radius: 99px; border: 0; background: none; font-size: 14px; line-height: 1; color: var(--v2-text-3, #6b6f76); cursor: pointer; }
.x4-todo-doc button:hover { background: var(--neg-soft, rgba(179, 38, 30, .1)); color: var(--neg-fg, #b3261e); }
.x4-todo-doc.est-rien { background: none; color: var(--v2-text-3, #6b6f76); padding-left: 0; }
.x4-todo-doc-plus { height: 26px; padding: 0 10px; border-radius: 99px; border: 1px dashed var(--stroke, rgba(20, 20, 25, .2)); background: none; font: inherit; font-size: 12px; font-weight: 620; color: var(--v2-text-2, #55595f); cursor: pointer; letter-spacing: inherit; display: inline-flex; align-items: center; gap: 4px; }
.x4-todo-doc-plus:hover { border-style: solid; color: var(--v2-text, #16171a); }

/* ── L'avancement (22/09) : la jauge sur la ligne, la fenêtre « Où en es-tu ? » ── */
.x4-todo-puce.est-avancement { cursor: pointer; font-family: inherit; letter-spacing: inherit; }
.x4-todo-puce.est-avancement:hover { background: var(--stroke, rgba(20, 20, 25, .1)); color: var(--v2-text, #16171a); }
.x4-todo-puce.est-avancement.est-25, .x4-todo-puce.est-avancement.est-50, .x4-todo-puce.est-avancement.est-75 { background: var(--info-soft, rgba(40, 90, 160, .1)); color: var(--info-fg, #285aa0); font-weight: 620; }
.x4-todo-jauge { display: inline-flex; gap: 2px; }
.x4-todo-jauge i { display: block; width: 7px; height: 9px; border-radius: 2px; background: currentColor; opacity: .18; }
.x4-todo-jauge i.est-plein { opacity: 1; }
.x4-todo-suivi[data-etat="encours"] { color: var(--info-fg, #285aa0); }
.x4-todo-avancer { position: fixed; z-index: 101; width: 292px; padding: 10px; border-radius: var(--r-sm, 12px); background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .35); color: var(--v2-text, #16171a); }
.x4-todo-avancer-titre { padding: 2px 4px 8px; font-size: 13px; font-weight: 640; }
.x4-todo-avancer-niveaux { display: flex; flex-direction: column; }
.x4-todo-avancer-niveaux button { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 10px; border-radius: var(--r-xs, 9px); border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--v2-text, #16171a); cursor: pointer; text-align: left; letter-spacing: inherit; }
.x4-todo-avancer-niveaux button:hover { background: var(--inset, rgba(0, 0, 0, .045)); }
.x4-todo-avancer-niveaux button.est-actif { background: var(--info-soft, rgba(40, 90, 160, .1)); color: var(--info-fg, #285aa0); }
.x4-todo-avancer-niveaux button b { font-weight: 620; }
.x4-todo-avancer-niveaux button span { display: inline-flex; font-size: 12px; color: var(--v2-text-3, #6b6f76); font-variant-numeric: tabular-nums; }
.x4-todo-avancer-niveaux button[data-niveau="100"] { color: var(--pos-fg, #136d45); } .x4-todo-avancer-niveaux button[data-niveau="100"] span { color: inherit; }
.x4-todo-avancer-mot { display: flex; gap: 6px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .05)); }
.x4-todo-avancer-mot input { flex: 1 1 0; min-width: 0; height: 32px; padding: 0 10px; border-radius: 99px; border: 1px solid var(--stroke, rgba(20, 20, 25, .16)); background: var(--panel-solid, #fff); font-family: inherit; font-size: 12.5px; color: var(--v2-text, #16171a); letter-spacing: inherit; }
.x4-todo-avancer-mot input:focus { outline: 0; border-color: var(--accent-bright, #f5d547); box-shadow: 0 0 0 3px var(--accent-soft, rgba(245, 213, 71, .3)); }
.x4-todo-avancer-mot button { height: 32px; padding: 0 12px; border-radius: 99px; border: 0; background: var(--v2-text, #16171a); color: var(--panel-solid, #fff); font-family: inherit; font-size: 12.5px; font-weight: 620; cursor: pointer; letter-spacing: inherit; }

/* ── La criticité (23/09/2026) : une pastille vert · jaune · rouge, partagée par les tâches, le mur et les projets ── */
.x4-crit { display: inline-block; flex: none; width: 11px; height: 11px; padding: 0; border: 0; border-radius: 99px; background: var(--pos-fg, #136d45); vertical-align: 1px; }
.x4-crit.est-jaune { background: var(--accent-bright, #f5d547); }
.x4-crit.est-rouge { background: var(--neg-fg, #b3261e); }
button.x4-crit, .x4-crit[role="button"] { cursor: pointer; transition: transform .1s; }
button.x4-crit:hover, .x4-crit[role="button"]:hover { transform: scale(1.3); }
.x4-crit.est-actif { box-shadow: 0 0 0 2px var(--panel-solid, #fff), 0 0 0 4px var(--v2-text-3, #6b6f76); }
.x4-crit-choix { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--v2-text-2, #55595f); }
.x4-todo-quand.est-crit { gap: 8px; cursor: default; padding-right: 14px; }
.x4-todo-quand.est-crit > span { font-weight: 550; }
.x4-crit-menu { position: fixed; z-index: 101; display: flex; flex-direction: column; min-width: 180px; padding: 6px; border-radius: var(--r-sm, 12px); background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .35); }
.x4-crit-menu button { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-xs, 9px); border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--v2-text, #16171a); cursor: pointer; text-align: left; letter-spacing: inherit; }
.x4-crit-menu button:hover { background: var(--inset, rgba(0, 0, 0, .045)); }
.x4-crit-menu button.est-actif { background: var(--info-soft, rgba(40, 90, 160, .1)); }
.x4-crit-menu button b { font-weight: 620; }
.x4-crit-menu button span { margin-left: auto; font-size: 11.5px; color: var(--v2-text-3, #6b6f76); }

/* ── « @ » dans la saisie : la liste des prospects, clients et collègues (23/09/2026) ── */
.x4-todo-mention { position: absolute; z-index: 40; top: 56px; left: 40px; display: flex; flex-direction: column; min-width: 320px; max-width: 480px; padding: 6px; border-radius: var(--r-sm, 12px); background: var(--panel-solid, #fff); border: 1px solid var(--stroke, rgba(20, 20, 25, .1)); box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .35); }
.x4-todo-mention-item { display: flex; align-items: baseline; gap: 8px; padding: 7px 10px; border-radius: var(--r-xs, 9px); border: 0; background: none; font-family: inherit; font-size: 13px; color: var(--v2-text, #16171a); cursor: pointer; text-align: left; letter-spacing: inherit; }
.x4-todo-mention-item:hover, .x4-todo-mention-item.est-actif { background: var(--inset, rgba(0, 0, 0, .045)); }
.x4-todo-mention-item b { font-weight: 620; white-space: nowrap; }
.x4-todo-mention-item span { flex: 1 1 auto; min-width: 0; font-size: 12px; color: var(--v2-text-3, #6b6f76); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x4-todo-mention-item em { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 640; letter-spacing: .06em; text-transform: uppercase; color: var(--v2-text-3, #6b6f76); }
.x4-todo-mention-item.est-client em { color: var(--pos-fg, #136d45); } .x4-todo-mention-item.est-prospect em { color: var(--info-fg, #285aa0); } .x4-todo-mention-item.est-collegue em { color: var(--v2-accent, #7d640d); }
/* La pilule de criticité sur une ligne : trois points, le niveau actuel entouré, le libellé (23/09/2026).
   Joris : « je dois être hyper précis » — chaque point se clique sur 22 px, le point visible fait 10 px. */
.x4-crit-chip { display: inline-flex; align-items: center; gap: 0; height: 26px; padding: 0 9px 0 3px; border-radius: 99px; background: var(--inset, rgba(0, 0, 0, .045)); font-size: 12px; font-weight: 550; color: var(--v2-text-2, #55595f); white-space: nowrap; }
.x4-crit-chip > span { margin-left: 4px; }
.x4-crit-chip .x4-crit, .x4-crit-chip .x4-crit.est-jaune, .x4-crit-chip .x4-crit.est-rouge { position: relative; width: 22px; height: 22px; margin: 0; opacity: 1; background: transparent; box-shadow: none; transform: none; }
.x4-crit-chip .x4-crit.est-vert { --pastille: var(--pos-fg, #136d45); } .x4-crit-chip .x4-crit.est-jaune { --pastille: var(--accent-bright, #f5d547); } .x4-crit-chip .x4-crit.est-rouge { --pastille: var(--neg-fg, #b3261e); }
.x4-crit-chip .x4-crit::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 99px; background: var(--pastille); opacity: .45; transition: transform .1s, opacity .1s; }
.x4-crit-chip .x4-crit:hover { transform: none; background: rgba(0, 0, 0, .07); }
.x4-crit-chip .x4-crit:hover::after { opacity: 1; transform: scale(1.3); }
.x4-crit-chip .x4-crit.est-actif::after { opacity: 1; box-shadow: 0 0 0 2px var(--panel-solid, #fff), 0 0 0 3.5px var(--v2-text-3, #6b6f76); }
.x4-crit-chip.est-jaune { background: var(--accent-soft, rgba(245, 213, 71, .3)); color: var(--v2-accent, #7d640d); font-weight: 620; }
.x4-crit-chip.est-rouge { background: var(--neg-soft, rgba(179, 38, 30, .1)); color: var(--neg-fg, #b3261e); font-weight: 620; }

/* ── Maquettes du 25/09/2026 (« revois le design des tâches et projets ») : moins, pas plus ──
   La saisie ne déplie Pour / Quand que quand on écrit ; plus de légende ; une seule carte avec les moments
   en titres ; une ligne = la coche, un point d'urgence (rouge ou jaune seulement), le texte, la fiche en gris,
   qui s'en occupe, la date à droite. Plus de fonds ni de liserés colorés. */
.x4-todo-saisie:not(:focus-within):not(.est-ouverte) [data-todo-barres] { display: none; }
.x4-todo-saisie:not(:focus-within):not(.est-ouverte) .x4-todo-saisie-pied { border-top: 0; min-height: 0; padding-top: 0; padding-bottom: 8px; }
.x4-todo-legende { display: none; }
.x4-todo-filtre.est-actif { background: var(--v2-text, #16171a); color: var(--panel-solid, #fff); }
.x4-todo-groupes { gap: 0; }
.x4-todo-carte .x4-todo-g-tete { padding: 13px 18px 6px; }
.x4-todo-g-tete.est-jour { color: var(--v2-text, #16171a); }
.x4-todo-g-tete.est-avenir, .x4-todo-g-tete.est-unjour { color: var(--v2-text-2, #55595f); }
.x4-todo-l { --liseret: transparent; box-shadow: none; gap: 12px; padding: 5px 12px 5px 16px; border-top: 1px solid var(--stroke-2, rgba(20, 20, 25, .06)); }
.x4-todo-l.est-retard, .x4-todo-l.est-jour, .x4-todo-l.est-avenir, .x4-todo-l.est-unjour, .x4-todo-l.est-faite, .x4-todo-l.est-ecartee { background: none; }
.x4-todo-l.est-retard .x4-todo-case { border-color: var(--neg-fg, #b3261e); }
.x4-todo-l > .x4-crit { width: 6px; height: 6px; margin: 0 -4px 0 -2px; vertical-align: 0; }
.x4-todo-l > .x4-crit.est-vert { opacity: 0; }
.x4-todo-l:hover > .x4-crit.est-vert { opacity: .35; }
.x4-todo-l > .x4-crit:hover { transform: scale(1.6); }
.x4-todo-texte { font-weight: 620; }
.x4-todo-infos { gap: 10px; }
.x4-todo-puce.est-fiche { background: none; padding: 0; color: var(--v2-text-3, #6b6f76); font-weight: 550; max-width: 180px; }
.x4-todo-puce.est-fiche svg { display: none; }
.x4-todo-puce.est-fiche:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.x4-todo-qui { display: inline-flex; flex: none; }
.x4-todo-puce.est-rappel { background: none; padding: 0; min-width: 88px; justify-content: flex-end; font-size: 12.5px; font-weight: 640; color: var(--v2-text-2, #55595f); }
.x4-todo-puce.est-rappel svg { display: none; }
.x4-todo-puce.est-rappel:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.x4-todo-puce.est-rappel.est-retard { color: var(--neg-fg, #b3261e); }
.x4-todo-puce.est-rappel.est-jour { color: var(--v2-text, #16171a); }
.x4-todo-puce.est-rappel.est-avenir, .x4-todo-puce.est-rappel.est-unjour { color: var(--v2-text-3, #6b6f76); font-weight: 550; }
.x4-todo-puce.est-rappel.est-vide { border: 0; min-width: 0; }
.x4-todo-puce.est-avancement:not(.est-25):not(.est-50):not(.est-75) { opacity: 0; }
.x4-todo-l:hover .x4-todo-puce.est-avancement, .x4-todo-puce.est-avancement:focus-visible { opacity: 1; }
.x4-todo-l.est-faite .x4-todo-puce.est-rappel { display: none; }
.x4-todo-puce.est-rappel.est-retard, .x4-todo-puce.est-rappel.est-jour, .x4-todo-puce.est-rappel.est-avenir, .x4-todo-puce.est-rappel.est-unjour { background: none; }
.x4-todo-l { flex-wrap: nowrap; }
.x4-todo-l:has(.x4-todo-docs), .x4-todo-l:has(.x4-todo-menu) { flex-wrap: wrap; }
.x4-todo-corps { flex: 1 1 0; min-width: 200px; }
.x4-todo-texte { white-space: nowrap; }
.x4-todo-infos { flex: none; max-width: none; }
