:root {
  --fond: #f6f7fb; --panneau: #ffffff; --barre: #292f4c; --barre-texte: #d5d8e8; --barre-actif: #3a4170;
  --texte: #323338; --texte-doux: #676879; --ligne: #e6e9ef; --survol: #f0f3ff; --accent: #6c5ce7; --accent-texte: #fff;
  --ombre: 0 6px 24px rgba(30, 35, 70, .12); --rayon: 10px;
  --st-a_faire: #c4c4c4; --st-en_cours: #fdab3d; --st-bloque: #e2445c; --st-fait: #00c875;
  --pr-basse: #7aa7e8; --pr-normale: #5559df; --pr-haute: #401694; --pr-urgente: #e2445c;
  --retard: #e2445c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fond: #181b34; --panneau: #20243f; --barre: #12152b; --barre-texte: #c5c9e0; --barre-actif: #2d3260;
    --texte: #e8e9f3; --texte-doux: #9a9db8; --ligne: #33385e; --survol: #2a2f55; --accent: #8b7cf6;
    --ombre: 0 6px 24px rgba(0, 0, 0, .4); --st-a_faire: #6b6f8a; --pr-haute: #7c4ddb;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 14px/1.45 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; background: var(--fond); color: var(--texte); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

/* ------------ structure ------------ */
.appli { display: grid; grid-template-columns: 240px 1fr; height: 100vh; height: 100dvh; }
.barre { background: var(--barre); color: var(--barre-texte); display: flex; flex-direction: column; padding: 14px 10px; gap: 4px; overflow-y: auto; }
.logo { font-weight: 700; font-size: 20px; color: #fff; padding: 4px 10px 14px; letter-spacing: .3px; }
.logo b { color: #a29bfe; }
.nav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; border: 0; background: none; color: inherit; text-align: left; width: 100%; }
.nav:hover { background: rgba(255,255,255,.07); }
.nav.actif { background: var(--barre-actif); color: #fff; }
.nav .ico { width: 20px; text-align: center; }
.nav .compte { margin-left: auto; font-size: 12px; opacity: .7; }
.titre-section { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .55; padding: 14px 10px 4px; display: flex; justify-content: space-between; align-items: center; }
.titre-section button { background: none; border: 0; color: inherit; font-size: 18px; line-height: 1; padding: 0 4px; }
.pastille { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.bas-barre { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 12px; }
.voyant { font-size: 12px; padding: 6px 10px; opacity: .8; display: flex; gap: 6px; align-items: center; }
.voyant i { width: 8px; height: 8px; border-radius: 50%; background: #999; display: inline-block; }
.voyant i.ok { background: #00c875; } .voyant i.ko { background: #e2445c; }

.principal { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.entete { display: flex; align-items: center; gap: 12px; padding: 14px 24px; background: var(--panneau); border-bottom: 1px solid var(--ligne); flex-wrap: wrap; }
.entete h1 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 8px; }
.entete h1 [contenteditable] { outline: none; border-radius: 6px; padding: 0 4px; }
.entete h1 [contenteditable]:focus { box-shadow: 0 0 0 2px var(--accent); }
.entete .espace { flex: 1; }
.onglets { display: flex; gap: 2px; background: var(--fond); border-radius: 8px; padding: 3px; }
.onglets button { border: 0; background: none; padding: 5px 12px; border-radius: 6px; color: var(--texte-doux); }
.onglets button.actif { background: var(--panneau); color: var(--texte); box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.recherche { border: 1px solid var(--ligne); border-radius: 8px; padding: 7px 10px; background: var(--fond); min-width: 180px; }
.menu-mobile { display: none; background: none; border: 0; font-size: 22px; padding: 0 4px; }
.contenu { flex: 1; overflow: auto; padding: 20px 24px 120px; }

.btn { border: 1px solid var(--ligne); background: var(--panneau); border-radius: 8px; padding: 7px 14px; }
.btn:hover { background: var(--survol); }
.btn.primaire { background: var(--accent); color: var(--accent-texte); border-color: var(--accent); }
.btn.primaire:hover { filter: brightness(1.08); }
.btn.danger { color: var(--st-bloque); }
.btn.petit { padding: 4px 10px; font-size: 13px; }
.lien { background: none; border: 0; color: var(--accent); padding: 0; }

/* ------------ tableau (vue liste façon Monday) ------------ */
.groupe { margin-bottom: 28px; }
.groupe-tete { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.groupe-tete .replier { border: 0; background: none; color: var(--gc); font-size: 13px; width: 22px; transition: transform .15s; }
.groupe.replie .replier { transform: rotate(-90deg); }
.groupe-tete h2 { font-size: 17px; margin: 0; color: var(--gc); font-weight: 600; outline: none; border-radius: 4px; padding: 0 4px; }
.groupe-tete h2:focus { box-shadow: 0 0 0 2px var(--gc); }
.groupe-tete .nb { color: var(--texte-doux); font-size: 13px; }
.groupe-tete .actions-groupe { margin-left: auto; opacity: 0; transition: opacity .15s; }
.groupe-tete:hover .actions-groupe { opacity: 1; }
.grille { background: var(--panneau); border-radius: 8px; border-left: 6px solid var(--gc); box-shadow: 0 1px 2px rgba(0,0,0,.05); overflow: hidden; }
.groupe.replie .grille { display: none; }
.ligne { display: grid; grid-template-columns: minmax(220px, 1fr) 130px 120px 130px 74px 34px; align-items: stretch; border-bottom: 1px solid var(--ligne); min-height: 38px; }
.ligne.en-tete { font-size: 12px; color: var(--texte-doux); min-height: 32px; }
.ligne.en-tete > div { display: flex; align-items: center; justify-content: center; }
.ligne.en-tete > div:first-child { justify-content: flex-start; padding-left: 14px; }
.ligne > .cel { border-left: 1px solid var(--ligne); display: flex; align-items: center; justify-content: center; position: relative; }
.ligne:not(.en-tete):hover { background: var(--survol); }
.ligne.glisse { opacity: .4; }
.ligne.cible { box-shadow: inset 0 2px 0 var(--accent); }
.titre-tache { display: flex; align-items: center; gap: 8px; padding: 0 8px 0 10px; min-width: 0; }
.poignee { cursor: grab; color: var(--texte-doux); opacity: 0; user-select: none; }
.ligne:hover .poignee { opacity: .6; }
.titre-tache input { border: 0; background: transparent; flex: 1; min-width: 0; padding: 6px 4px; border-radius: 4px; text-overflow: ellipsis; }
.titre-tache input:focus { outline: none; box-shadow: 0 0 0 1px var(--accent); background: var(--panneau); }
.fait .titre-tache input { text-decoration: line-through; color: var(--texte-doux); }
.ouvrir { border: 0; background: none; color: var(--texte-doux); opacity: 0; font-size: 13px; padding: 2px 6px; border-radius: 4px; white-space: nowrap; }
.ligne:hover .ouvrir { opacity: 1; }
.ouvrir:hover { background: var(--ligne); }
.source { font-size: 12px; opacity: .7; }
.note-ind { font-size: 12px; opacity: .6; }
.pill { width: 100%; height: 100%; border: 0; color: #fff; font-weight: 500; font-size: 13px; display: flex; align-items: center; justify-content: center; min-height: 37px; padding: 0 6px; }
.pill:hover { filter: brightness(.95); }
.st-a_faire { background: var(--st-a_faire); } .st-en_cours { background: var(--st-en_cours); }
.st-bloque { background: var(--st-bloque); } .st-fait { background: var(--st-fait); }
.pr-basse { background: var(--pr-basse); } .pr-normale { background: var(--pr-normale); }
.pr-haute { background: var(--pr-haute); } .pr-urgente { background: var(--pr-urgente); }
.cel input[type=date], .cel input[type=time] { border: 0; background: transparent; width: 100%; height: 100%; text-align: center; padding: 0 4px; font-size: 13px; }
.cel input[type=date]:focus, .cel input[type=time]:focus { outline: 2px solid var(--accent); }
.cel.retard input { color: var(--retard); font-weight: 600; }
.suppr { border: 0; background: none; color: var(--texte-doux); opacity: 0; font-size: 15px; }
.ligne:hover .suppr { opacity: .7; }
.suppr:hover { color: var(--st-bloque); opacity: 1 !important; }
.ajout-ligne { display: flex; padding: 0 10px 0 34px; min-height: 38px; align-items: center; }
.ajout-ligne input { border: 0; background: transparent; flex: 1; padding: 8px 4px; }
.ajout-ligne input:focus { outline: none; }
.ajout-groupe { margin-top: 4px; }

/* menu déroulant des pastilles */
.menu-choix { position: fixed; z-index: 60; background: var(--panneau); border-radius: 10px; box-shadow: var(--ombre); padding: 8px; display: grid; gap: 6px; min-width: 160px; }
.menu-choix button { border: 0; color: #fff; border-radius: 6px; padding: 7px 10px; font-weight: 500; }
.menu-choix button:hover { filter: brightness(1.08); transform: translateY(-1px); }
.menu-choix.texte button { color: var(--texte); background: none; text-align: left; }
.menu-choix.texte button:hover { background: var(--survol); }

/* ------------ kanban ------------ */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 14px; align-items: start; }
.colonne { background: var(--panneau); border-radius: var(--rayon); overflow: hidden; min-height: 120px; }
.colonne h3 { margin: 0; padding: 10px 14px; color: #fff; font-size: 14px; display: flex; justify-content: space-between; }
.colonne .cartes { padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 80px; }
.colonne.cible .cartes { background: var(--survol); }
.carte { background: var(--fond); border-radius: 8px; padding: 10px 12px; border-left: 4px solid var(--pc, transparent); cursor: grab; }
.carte:hover { box-shadow: var(--ombre); }
.carte .t { font-weight: 500; }
.carte .m { font-size: 12px; color: var(--texte-doux); margin-top: 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.carte .m .retard { color: var(--retard); font-weight: 600; }

/* ------------ aujourd'hui ------------ */
.focus { max-width: 820px; }
.salut { font-size: 15px; color: var(--texte-doux); margin: 0 0 18px; }
.bloc-focus { background: var(--panneau); border-radius: var(--rayon); padding: 6px 0; margin-bottom: 16px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.bloc-focus h3 { margin: 0; padding: 10px 16px 6px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.bloc-focus h3 .nb { color: var(--texte-doux); font-weight: 400; }
.item { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--ligne); }
.item:hover { background: var(--survol); }
.coche { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--texte-doux); background: none; flex: none; display: grid; place-items: center; font-size: 12px; color: transparent; padding: 0; }
.coche:hover { border-color: var(--st-fait); color: var(--st-fait); }
.item.fait .coche { background: var(--st-fait); border-color: var(--st-fait); color: #fff; }
.item .corps { flex: 1; min-width: 0; cursor: pointer; }
.item .corps .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.fait .t { text-decoration: line-through; color: var(--texte-doux); }
.item .m { font-size: 12px; color: var(--texte-doux); display: flex; gap: 10px; flex-wrap: wrap; }
.etiquette { font-size: 11px; color: #fff; border-radius: 4px; padding: 1px 6px; }
.tag-tableau { display: inline-flex; align-items: center; gap: 4px; }
.vide { color: var(--texte-doux); padding: 14px 16px; font-size: 13px; }

/* ------------ calendrier ------------ */
.cal-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.cal-nav h2 { margin: 0; font-size: 18px; min-width: 180px; text-transform: capitalize; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--ligne); border-radius: var(--rayon); overflow: hidden; }
.cal .jn { background: var(--panneau); text-align: center; font-size: 12px; color: var(--texte-doux); padding: 6px; }
.cal .j { background: var(--panneau); min-height: 108px; padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; }
.cal .j:hover { background: var(--survol); }
.cal .j.autre { opacity: .45; }
.cal .j .n { font-size: 12px; color: var(--texte-doux); }
.cal .j.auj .n { background: var(--accent); color: #fff; border-radius: 10px; padding: 0 7px; align-self: flex-start; }
.cal .ev { font-size: 12px; color: #fff; border-radius: 4px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal .ev.fait { opacity: .5; text-decoration: line-through; }
.cal .plus { font-size: 11px; color: var(--texte-doux); }

/* ------------ mails ------------ */
.mails { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 16px; height: calc(100% - 10px); }
.liste-mails { background: var(--panneau); border-radius: var(--rayon); overflow-y: auto; }
.mail { padding: 10px 14px; border-bottom: 1px solid var(--ligne); cursor: pointer; }
.mail:hover, .mail.actif { background: var(--survol); }
.mail .de { font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.mail .de small { font-weight: 400; color: var(--texte-doux); white-space: nowrap; }
.mail.non-lu .de::before { content: "●"; color: var(--accent); margin-right: 6px; }
.mail .s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .x { font-size: 12px; color: var(--texte-doux); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail .ok-tache { font-size: 11px; color: var(--st-fait); }
.lecture { background: var(--panneau); border-radius: var(--rayon); padding: 18px 22px; overflow-y: auto; }
.lecture h2 { margin: 0 0 6px; font-size: 18px; }
.lecture .meta { color: var(--texte-doux); font-size: 13px; margin-bottom: 14px; }
.lecture pre { white-space: pre-wrap; font: inherit; margin: 0; }
.barre-mail { display: flex; gap: 8px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }

/* ------------ discussion ------------ */
.discussion { display: flex; flex-direction: column; height: 100%; max-width: 860px; margin: 0 auto; }
.fil { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding-bottom: 10px; }
.bulle { max-width: 82%; padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; }
.bulle.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bulle.assistant { align-self: flex-start; background: var(--panneau); border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.bulle.erreur { background: #fde8eb; color: #a01b31; }
.bulle .canal { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.saisie { display: flex; gap: 8px; align-items: flex-end; background: var(--panneau); border-radius: 14px; padding: 8px; box-shadow: var(--ombre); }
.saisie textarea { flex: 1; border: 0; background: transparent; resize: none; max-height: 160px; padding: 8px; outline: none; }
.saisie .rond { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--fond); font-size: 17px; flex: none; }
.saisie .rond.envoyer { background: var(--accent); color: #fff; }
.saisie .rond.ecoute { background: var(--st-bloque); color: #fff; animation: pulse 1.2s infinite; }
.outils-discussion { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--texte-doux); margin-bottom: 10px; }
.accueil-discussion { color: var(--texte-doux); text-align: center; margin: auto; max-width: 460px; }
.accueil-discussion .sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; }

/* ------------ panneau tâche ------------ */
.voile { position: fixed; inset: 0; background: rgba(20, 22, 45, .35); z-index: 40; }
.tiroir { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--panneau); z-index: 50; box-shadow: var(--ombre); display: flex; flex-direction: column; animation: glisser .18s ease-out; }
@keyframes glisser { from { transform: translateX(40px); opacity: 0; } }
.tiroir header { display: flex; align-items: flex-start; gap: 10px; padding: 18px 20px 10px; }
.tiroir header textarea { flex: 1; font-size: 19px; font-weight: 600; border: 0; background: none; resize: none; outline: none; border-radius: 6px; padding: 2px 4px; }
.tiroir header textarea:focus { box-shadow: 0 0 0 2px var(--accent); }
.fermer { border: 0; background: none; font-size: 22px; color: var(--texte-doux); line-height: 1; }
.tiroir .champs { padding: 0 20px; display: grid; grid-template-columns: 110px 1fr; gap: 10px 12px; align-items: center; }
.tiroir .champs label { color: var(--texte-doux); font-size: 13px; }
.tiroir .champs .pill { border-radius: 6px; min-height: 32px; }
.tiroir .champs input, .tiroir .champs select { border: 1px solid var(--ligne); border-radius: 6px; padding: 6px 8px; background: var(--fond); width: 100%; }
.tiroir .notes { padding: 16px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.tiroir .notes textarea { flex: 1; min-height: 160px; border: 1px solid var(--ligne); border-radius: 8px; padding: 10px; background: var(--fond); resize: vertical; }
.tiroir footer { padding: 12px 20px; border-top: 1px solid var(--ligne); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--texte-doux); gap: 10px; }

/* ------------ fenêtres ------------ */
.modale { position: fixed; inset: 0; display: grid; place-items: center; z-index: 70; background: rgba(20,22,45,.4); padding: 16px; }
.modale .boite { background: var(--panneau); border-radius: 14px; padding: 22px; width: min(440px, 100%); box-shadow: var(--ombre); }
.modale h3 { margin: 0 0 14px; }
.modale label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--texte-doux); }
.modale input, .modale select { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--ligne); border-radius: 8px; padding: 8px 10px; background: var(--fond); }
.modale .pied { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.couleurs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.couleurs button { width: 26px; height: 26px; border-radius: 6px; border: 2px solid transparent; }
.couleurs button.choisi { border-color: var(--texte); }

/* ------------ réglages ------------ */
.reglages { max-width: 760px; }
.reglages section { background: var(--panneau); border-radius: var(--rayon); padding: 18px 22px; margin-bottom: 16px; }
.reglages h2 { margin: 0 0 4px; font-size: 17px; }
.reglages .aide { color: var(--texte-doux); font-size: 13px; margin: 0 0 14px; }
.reglages .rang { display: grid; grid-template-columns: 200px 1fr; gap: 10px; align-items: center; margin-bottom: 10px; }
.reglages .rang label { font-size: 13px; color: var(--texte-doux); }
.reglages input, .reglages select { border: 1px solid var(--ligne); border-radius: 8px; padding: 7px 10px; background: var(--fond); width: 100%; }
.reglages .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.reglages .etat-ok { color: var(--st-fait); font-size: 13px; }
.reglages .etat-ko { color: var(--st-bloque); font-size: 13px; }
.reglages ol { padding-left: 20px; margin: 6px 0 14px; }
.reglages ol li { margin-bottom: 6px; }
.code { font-family: Consolas, monospace; background: var(--fond); padding: 2px 8px; border-radius: 6px; font-size: 15px; letter-spacing: 1px; user-select: all; }
.url-cal { display: flex; gap: 8px; }
.url-cal input { font-family: Consolas, monospace; font-size: 12px; }

/* ------------ micro ------------ */
.micro { position: fixed; right: 24px; bottom: 24px; width: 62px; height: 62px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 26px; box-shadow: 0 6px 20px rgba(108, 92, 231, .5); z-index: 30; }
.micro:hover { transform: scale(1.05); }
.micro.ecoute { background: var(--st-bloque); animation: pulse 1.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 68, 92, .55); } 70% { box-shadow: 0 0 0 18px rgba(226, 68, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 68, 92, 0); } }
.ecoute-panneau { position: fixed; right: 24px; bottom: 100px; width: min(380px, calc(100vw - 32px)); background: var(--panneau); border-radius: 14px; box-shadow: var(--ombre); padding: 14px 16px; z-index: 30; }
.ecoute-panneau .ent { font-size: 12px; color: var(--texte-doux); margin-bottom: 6px; }
.ecoute-panneau .transcrit { font-size: 16px; min-height: 24px; }
.ecoute-panneau .transcrit .provisoire { color: var(--texte-doux); }
.ecoute-panneau .rep { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--ligne); }
.ecoute-panneau .ex { font-size: 12px; color: var(--texte-doux); margin-top: 8px; }
.ecoute-panneau form { display: flex; gap: 6px; margin-top: 10px; }
.ecoute-panneau form input { flex: 1; border: 1px solid var(--ligne); border-radius: 8px; padding: 7px 10px; background: var(--fond); }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: #323338; color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 90; box-shadow: var(--ombre); max-width: calc(100vw - 120px); }
.toast.erreur { background: #b3263c; }

/* ------------ accès ------------ */
body.acces { display: grid; place-items: center; min-height: 100vh; background: linear-gradient(135deg, #292f4c, #6c5ce7); padding: 16px; }
.carte-acces { background: var(--panneau); padding: 30px; border-radius: 16px; width: min(380px, 100%); box-shadow: var(--ombre); }
.carte-acces .logo-acces { font-weight: 700; color: var(--accent); font-size: 22px; }
.carte-acces h1 { font-size: 20px; margin: 6px 0 18px; }
.carte-acces label { display: block; font-size: 13px; color: var(--texte-doux); margin-bottom: 12px; }
.carte-acces input { display: block; width: 100%; margin-top: 4px; border: 1px solid var(--ligne); border-radius: 8px; padding: 10px; background: var(--fond); }
.carte-acces .btn { width: 100%; padding: 10px; margin-top: 6px; }
.carte-acces .err { color: var(--st-bloque); }

/* ------------ téléphone ------------ */
@media (max-width: 820px) {
  .appli { grid-template-columns: 1fr; }
  .barre { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 45; transform: translateX(-100%); transition: transform .2s; }
  .appli.menu-ouvert .barre { transform: none; box-shadow: var(--ombre); }
  .appli.menu-ouvert::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 44; }
  .menu-mobile { display: block; }
  .entete { padding: 10px 14px; gap: 8px; }
  .entete h1 { font-size: 18px; }
  .recherche { display: none; }
  .contenu { padding: 14px 12px 120px; }
  .ligne { grid-template-columns: minmax(0, 1fr) 78px 100px; }
  .poignee, .titre-tache .source, .titre-tache .note-ind { display: none; }
  .titre-tache { padding-left: 4px; gap: 2px; }
  .ouvrir { font-size: 0; padding: 4px 8px; }
  .ouvrir::after { content: "›"; font-size: 20px; line-height: 1; }
  .pill { font-size: 12px; padding: 0 2px; }
  .ajout-ligne { padding-left: 10px; }
  .ligne > .c-prio, .ligne > .c-heure, .ligne > .c-suppr { display: none !important; }
  .ligne > .c-date input { font-size: 11px; padding: 0 1px; }
  .ouvrir { opacity: 1; }
  .kanban { grid-template-columns: repeat(4, 82vw); overflow-x: auto; scroll-snap-type: x mandatory; }
  .colonne { scroll-snap-align: start; }
  .cal .j { min-height: 64px; padding: 3px; }
  .cal .ev { font-size: 10px; padding: 0 3px; }
  .mails { grid-template-columns: 1fr; }
  .mails.lecture-ouverte .liste-mails { display: none; }
  .mails:not(.lecture-ouverte) .lecture { display: none; }
  .reglages .rang { grid-template-columns: 1fr; gap: 4px; }
  .micro { right: 16px; bottom: 18px; width: 66px; height: 66px; }
  .ecoute-panneau { right: 16px; bottom: 96px; }
  .bulle { max-width: 90%; }
}
