/* ---------- Récap d'une tâche ---------- */
.modal.detail{ max-width:560px; }
.d-meta{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.d-meta dt{ font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); margin-bottom:3px; }
.d-meta dd{ margin:0; font-size:14px; color:var(--title); }
.d-desc{ white-space:pre-wrap; overflow-wrap:anywhere; font-size:14px; line-height:1.6; color:var(--text); margin:0; }
.d-sec{ display:grid; gap:12px; }
.d-who{ display:inline-flex; align-items:center; gap:8px; }
.d-who i{ width:20px; height:20px; border-radius:50%; }
.tcount{ display:inline-block; min-width:18px; padding:0 6px; margin-left:4px; border-radius:999px; background:var(--chip); color:var(--muted); font-size:11px; }
.tabs button.on .tcount{ background:var(--accent-color); color:#fff; }
.note{ background:#fef9c3; border:1px solid #fde68a; color:#713f12; border-radius:10px; padding:10px 12px; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.dark .note{ background:#3b3414; border-color:#5b4c14; color:#fde68a; }
.note small{ display:block; margin-top:6px; font-size:11px; opacity:.7; }
#dNotes{ display:grid; gap:10px; }
.deps-list{ display:flex; flex-direction:column; gap:4px; max-height:150px; overflow:auto; border:1px solid var(--border); border-radius:10px; padding:6px 10px; background:var(--surface-2); }
.deps-list label{ display:flex; align-items:center; gap:8px; margin:0; font-size:13px; font-weight:500; cursor:pointer; }
.deps-list input{ width:auto; margin:0; }
.range-row{ display:flex; align-items:center; gap:10px; }
.range-row input{ flex:1; }

/* ---------- Tags dans le formulaire ---------- */
.tagpick, .tagsug{ display:flex; flex-wrap:wrap; gap:6px; }
.tagpick:empty{ display:none; }
.tagpick button{ border:2px solid transparent; background:var(--chip); color:var(--muted); font-size:12px; font-weight:600; padding:3px 11px; border-radius:999px; opacity:.75; }
.tagpick button.on{ color:#fff; opacity:1; }
.tagnew{ display:flex; gap:8px; margin-top:8px; }
.tagnew input{ flex:1; min-width:0; }
.tagsug{ margin-top:6px; }
.tagsug button{ border:1px dashed var(--border); background:none; color:var(--muted); font-size:11px; padding:2px 9px; border-radius:999px; }
.tagsug button:hover{ color:var(--accent-text); border-color:var(--accent-color); }

.note small b{ font-weight:700; }


/* Pastilles (priorité, tags) */
.badge{ padding:2px 8px; border-radius:6px; font-weight:600; font-size:12px; }
.badge.low{ background:var(--green-bg); color:var(--green-fg); }
.badge.medium{ background:var(--amber-bg); color:var(--amber-fg); }
.badge.high{ background:var(--red-bg); color:var(--red-fg); }
.badge.urgent{ background:var(--red-fg); color:#fff; }
.tags{ display:flex; flex-wrap:wrap; gap:4px; margin-bottom:10px; }
.tag{ font-size:11px; font-weight:600; padding:1px 8px; border-radius:999px; color:#fff; }

#tmForm{ display:flex; flex-direction:column; gap:14px; }
#tmForm .actions{ margin-top:0; }

/* Récap et Notes superposés : la fenêtre garde la même taille d'un onglet à l'autre */
.tm-panes{ display:grid; }
.tm-panes > *{ grid-area:1 / 1; min-width:0; }
.tm-panes > .off{ visibility:hidden; pointer-events:none; }
