/* =====================================================================
   COQUILLE UNIFIÉE (dev-bc) — rail gauche + tabbar mobile + Aujourd'hui
   =====================================================================
   Design system de la vision : 5 sections (Aujourd'hui, Messages, Tâches,
   Apps, Gandalf), recherche en tête du rail, secondaires (Actu, Plan,
   Gestion), profil en bas. Thème clair (défaut, signature Chanv) + sombre
   via body[data-gtheme="dark"]. Les tokens --gs-* ne s'appliquent qu'aux
   composants de la coquille et à la vue Aujourd'hui — les vues existantes
   gardent leur style pour l'instant.
   ===================================================================== */

body.shell-on{
    /* thème clair (défaut) */
    --gs-rail-w: 232px;
    --gs-tabbar-h: 62px;
    --gs-app-tabs-h: 0px;
    /* Palette officielle de main : le blanc est le fond de travail, la fibre
       sert aux surfaces secondaires et le beige à l'accent. */
    --gs-ground:#FFFFFF;
    --gs-panel:#FFFFFF;
    --gs-panel-2:#F1EADA;
    /* Dosage « rail ivoire » (choix Dany, 2026-09-04) — la chaleur du GANDALF
       actuel revient par le rail et la barre de recherche, sans toucher au
       fond de travail qui reste blanc. Aucune couleur nouvelle : ce sont des
       nuances de la fibre #F1EADA. Le sombre reprend ses valeurs d'origine
       plus bas, il est donc strictement inchangé. */
    --gs-rail-bg:#F4EEE0;       /* fond du rail : ivoire doux */
    --gs-rail-panel-2:#EAE1CC;  /* surfaces secondaires DANS le rail, un ton plus soutenu */
    --gs-search-bg:#FBF8F1;     /* pastille de recherche : ivoire très pâle */
    --gs-line:rgba(40,34,24,.10);
    --gs-line-strong:rgba(168,134,63,.34);
    --gs-accent:#A8863F;
    --gs-accent-soft:rgba(168,134,63,.12);
    --gs-brand-beige:#DDCBA4;
    --gs-brand-fibre:#F1EADA;
    --gs-brand-earth:#282828;
    --gs-ink:#282828;
    --gs-ink-dim:var(--g-ink-dim,rgba(40,38,34,.78));
    --gs-ink-faint:var(--g-ink-faint,rgba(40,38,34,.70));
    --gs-ok:#6E8A63;
    --gs-warn:#BC7E29;
    --gs-crit:#B85443;
    --gs-gold-a:#C2A868;
    --gs-gold-b:#a1823f;
    --gs-radius-control:8px;
    --gs-radius-card:10px;
    --gs-radius-panel:14px;
}
body.shell-on[data-gtheme="dark"]{
    --gs-ground:#201d19;
    --gs-panel:#2b2823;
    --gs-panel-2:#332f28;
    /* Sombre : on reprend exactement --gs-panel / --gs-panel-2 d'avant, donc
       le dosage ivoire ne se voit QUE en thème clair. */
    --gs-rail-bg:#2b2823;
    --gs-rail-panel-2:#332f28;
    --gs-search-bg:#2b2823;
    --gs-line:rgba(221,203,164,.14);
    --gs-line-strong:rgba(221,203,164,.28);
    --gs-accent:#DDCBA4;
    --gs-accent-soft:rgba(221,203,164,.13);
    --gs-ink:rgba(255,255,255,.94);
    --gs-ink-dim:rgba(255,255,255,.74);
    --gs-ink-faint:rgba(255,255,255,.56);
    --gs-ok:#8FA986;
    --gs-warn:#E0A458;
    --gs-crit:#CC6B5A;
    --gs-gold-a:#DDCBA4;
    --gs-gold-b:#c2ac7c;
}
body.shell-on[data-gtheme="dark"]{background:var(--gs-ground)}
body.shell-on[data-gtheme="dark"] #app-content{background:var(--gs-ground)}

/* ---- l'ancien header disparaît, le contenu se décale ---- */
body.shell-on .main-header{display:none}
body.shell-on #app-content{padding-left:var(--gs-rail-w)}

/* les vues plein-écran fixed respectent le rail */
body.shell-on .chat-view,
body.shell-on .tasks-view{left:var(--gs-rail-w)}

/* Le shell affiche déjà « Projets » dans sa barre supérieure et son rail.
   L'en-tête du module ne porte plus aucune action propre (Duplications est
   déplacé dans la rangée de navigation à chaque rendu) : le garder doublait
   le titre et consommait 58 px sans information. Étendu de la seule vue
   Gestion à TOUTE la vue tâches sous le shell (02/09, demande Mathieu) ;
   hors shell (accès direct legacy), l'en-tête reste. */
body.shell-on .tasks-view > .tasks-header{display:none}
@media (min-width:861px){body.shell-on #ai-chat-view{height:calc(100dvh - 16px)}}
body.shell-on .ai-sidebar-toggle{left:calc(280px + var(--gs-rail-w))}
body.shell-on #ai-chat-view.sidebar-collapsed ~ .ai-sidebar-toggle{left:var(--gs-rail-w)}

/* Sur grand écran navigateur, le rail est la navigation. Tâches récupère son
   bouton dans les contextes compacts/installés plus bas : une PWA autonome
   peut être utilisée comme une fenêtre mobile même si sa largeur dépasse le
   breakpoint du rail (ticket Thierry, viewport signalé 1075 px). */
body.shell-on .chat-back,
body.shell-on .tasks-back,
body.shell-on .mytickets-back,
body.shell-on .actu-back{display:none}

@media (max-width:860px), (display-mode:standalone){
    body.shell-on .tasks-back{
        display:inline-flex;align-items:center;justify-content:center;
        min-width:44px;min-height:44px;padding:8px 12px;
        color:var(--gs-ink-dim);background:var(--gs-panel);
        border:1px solid var(--gs-line-strong);border-radius:10px;
        flex:0 0 auto;
    }
    body.shell-on .tasks-back:hover{color:var(--gs-ink);background:var(--gs-accent-soft)}
    body.shell-on .tasks-back:focus-visible{outline:2px solid var(--gs-accent);outline-offset:2px}
}

/* =====================================================================
   RAIL (desktop)
   ===================================================================== */
.gshell-rail{
    position:fixed;top:0;left:0;bottom:0;width:var(--gs-rail-w);
    background:var(--gs-rail-bg);
    border-right:1px solid var(--gs-line);
    display:flex;flex-direction:column;gap:2px;
    padding:16px 12px 12px;
    z-index:90;
    font-family:inherit;
    /* Petite fenêtre : le rail DÉFILE, sans barre visible (le style prime) */
    overflow-y:auto;
    scrollbar-width:none;         /* Firefox */
    -ms-overflow-style:none;      /* vieux Edge */
}
.gshell-rail::-webkit-scrollbar{display:none} /* Chrome/Safari */
.gshell-rail>*{flex-shrink:0} /* les entrées ne s'écrasent pas, elles défilent */
body:not(.shell-on) .gshell-rail{display:none}

.gshell-brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:15px;
    letter-spacing:-.01em;color:var(--gs-ink);padding:2px 8px 12px;cursor:pointer;user-select:none}
.gshell-brand .mark{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;
    background:linear-gradient(150deg,var(--gs-gold-a),var(--gs-gold-b));color:#241f16;font-size:15px;
    box-shadow:0 3px 10px rgba(168,134,63,.3)}

/* Marque GANDALF : médaillon coiffé (image officielle gandalf-hat.png).
   L'illustration contient le chapeau : on l'affiche plus grande que la tuile
   de 28px, décalée pour aligner le médaillon — le chapeau déborde en haut. */
.mark.mark-gandalf{position:relative;overflow:visible;background:none;box-shadow:none;width:28px;height:28px}
.mark-gandalf img{width:42px;height:42px;display:block;margin:-12px 0 0 -8px;filter:drop-shadow(0 2px 5px rgba(40,34,24,.35))}
/* Avatar du briefing (Aujourd'hui) : même identité */
.today-brief .bava.bava-gandalf{position:relative;overflow:visible;background:none;box-shadow:none;width:28px;height:28px}
.bava-gandalf img{width:42px;height:42px;display:block;margin:-12px 0 0 -8px;filter:drop-shadow(0 2px 5px rgba(40,34,24,.35))}
/* Icône du rail / tabbar Gandalf */
.ic-gandalf{width:28px;height:28px;margin:-6px -2px -6px -6px;vertical-align:middle;display:inline-block}

.gshell-search{display:flex;align-items:center;gap:8px;background:var(--gs-search-bg);
    border:1px solid var(--gs-line);border-radius:10px;padding:8px 11px;margin:0 2px 12px;
    font-size:12px;color:var(--gs-ink-faint);cursor:pointer;transition:border-color .15s}
.gshell-search:hover{border-color:var(--gs-line-strong)}
.gshell-search .k{margin-left:auto;font-family:ui-monospace,'SF Mono',monospace;font-size:9.5px;
    color:var(--gs-accent);border:1px solid var(--gs-line-strong);border-radius:5px;padding:1px 5px}

.gshell-item{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:10px;
    font-size:13.5px;color:var(--gs-ink-dim);font-weight:500;cursor:pointer;user-select:none;
    text-decoration:none;border:1px solid transparent;transition:background .12s,color .12s}
.gshell-item:hover{background:var(--gs-accent-soft);color:var(--gs-ink)}
.gshell-item .ic{width:20px;text-align:center;font-size:15px;filter:grayscale(1) opacity(.7)}
.gshell-item.on{background:var(--gs-accent-soft);color:var(--gs-ink);font-weight:700;
    border-color:var(--gs-line-strong)}
.gshell-item.on .ic{filter:none}
.gshell-badge{margin-left:auto;min-width:18px;height:18px;border-radius:9px;background:var(--gs-crit);
    color:#fff;font-size:10px;font-weight:800;display:grid;place-items:center;padding:0 5px;
    font-family:ui-monospace,'SF Mono',monospace}
.gshell-badge.hidden{display:none}

.gshell-sep{height:1px;background:var(--gs-line);margin:10px 8px}
.gshell-spacer{flex:1}

/* Séparateurs de section du rail : fine ligne en dégradé + losange accent,
   construits sur les tokens --gs-* (thèmes clair ET sombre) */
.gshell-sec{position:relative;height:1px;margin:13px 14px;user-select:none;pointer-events:none;
    background:linear-gradient(90deg,transparent,var(--gs-line-strong) 28%,var(--gs-line-strong) 72%,transparent)}
.gshell-sec::after{content:'';position:absolute;left:50%;top:50%;width:5px;height:5px;
    transform:translate(-50%,-50%) rotate(45deg);background:var(--gs-accent);
    border-radius:1px;opacity:.75;box-shadow:0 0 0 3px var(--gs-ground)}

/* Flèche + accordéon « Apps favorites » */
.gshell-caret{margin-left:auto;border:none;background:none;color:var(--gs-ink-faint);
    font-size:11px;line-height:1;padding:3px 6px;border-radius:6px;cursor:pointer;
    transition:transform .15s,background .12s,color .12s}
.gshell-caret:hover{background:var(--gs-accent-soft);color:var(--gs-ink)}
.gshell-caret.open{transform:rotate(180deg)}
.gshell-sub{display:flex;flex-direction:column;gap:1px;margin:2px 0 4px;padding-left:26px}
.gshell-sub.hidden{display:none}
.gshell-sub-item{display:flex;align-items:center;gap:9px;padding:6px 10px;border-radius:9px;
    font-size:12.5px;color:var(--gs-ink-dim);font-weight:500;cursor:pointer;user-select:none;
    border:none;background:none;text-align:left;text-decoration:none;width:100%;box-sizing:border-box;
    transition:background .12s,color .12s;font-family:inherit}
.gshell-sub-item:hover{background:var(--gs-accent-soft);color:var(--gs-ink)}
.gshell-sub-item .ic{width:18px;text-align:center;font-size:13px}
.gshell-sub-item .nm{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gshell-sub-item .ext{margin-left:auto;font-size:10px;opacity:.5}
.gshell-sub-img{width:18px;height:18px;border-radius:5px;object-fit:cover;flex:none}
.gshell-sub-empty{font-size:11.5px;color:var(--gs-ink-faint);padding:6px 10px;font-style:italic}

.gshell-theme{display:flex;align-items:center;gap:4px;background:var(--gs-panel);
    border:1px solid var(--gs-line);border-radius:999px;padding:4px;margin:0 2px 8px;
    font-size:11px;color:var(--gs-ink-dim)}
.gshell-theme .opt{flex:1;text-align:center;padding:4px 0;border-radius:999px;cursor:pointer;
    transition:background .15s,color .15s}
.gshell-theme .opt.on{background:var(--gs-accent);color:#fff;font-weight:700}
body.shell-on[data-gtheme="dark"] .gshell-theme .opt.on{color:#241f16}

.gshell-user{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:11px;
    background:var(--gs-panel);border:1px solid var(--gs-line);cursor:pointer;
    transition:border-color .15s}
.gshell-user:hover{border-color:var(--gs-line-strong)}
.gshell-user img{width:28px;height:28px;border-radius:50%;object-fit:cover}
.gshell-user .ua{width:28px;height:28px;border-radius:50%;background:var(--gs-panel-2);
    border:1px solid var(--gs-line-strong);display:grid;place-items:center;font-size:11px;
    font-weight:800;color:var(--gs-accent)}
.gshell-user .un{font-size:12px;font-weight:650;color:var(--gs-ink);line-height:1.2;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:120px}
.gshell-user .ur{font-size:9px;color:var(--gs-ink-faint);font-family:ui-monospace,'SF Mono',monospace;
    letter-spacing:.08em;text-transform:uppercase}
.gshell-user .ubell{margin-left:auto;position:relative;font-size:15px;opacity:.7}
.gshell-user .ubell .dot{position:absolute;top:-3px;right:-4px;width:9px;height:9px;border-radius:50%;
    background:var(--gs-crit);border:2px solid var(--gs-panel)}
.gshell-user .ubell .dot.hidden{display:none}

/* =====================================================================
   TOPBAR + TABBAR (mobile)
   ===================================================================== */
.gshell-topbar{display:none}
.gshell-tabbar{display:none}

@media (max-width: 860px){
    body.shell-on #app-content{padding-left:0;padding-bottom:calc(var(--gs-tabbar-h) + env(safe-area-inset-bottom))}
    .gshell-rail{display:none!important}

    .gshell-topbar{position:sticky;top:0;z-index:80;
        display:flex;align-items:center;gap:10px;
        background:var(--gs-panel-2);border-bottom:1px solid var(--gs-line);
        padding:calc(10px + env(safe-area-inset-top)) 16px 10px}
    body:not(.shell-on) .gshell-topbar{display:none}
    .gshell-topbar-burger{font-size:19px;line-height:1;color:var(--gs-ink-faint);margin-right:2px;display:inline-flex}
    .gshell-topbar .mark{width:26px;height:26px;border-radius:8px;display:grid;place-items:center;
        background:linear-gradient(150deg,var(--gs-gold-a),var(--gs-gold-b));color:#241f16;font-size:14px}
    /* Le médaillon a son propre fond : pas de tuile dorée derrière (forme beige) */
    .gshell-topbar .mark.mark-gandalf{background:none;box-shadow:none;overflow:visible}
    .gshell-topbar .mark.mark-gandalf img{width:38px;height:38px;margin:-10px 0 0 -7px;display:block;filter:drop-shadow(0 2px 5px rgba(40,34,24,.35))}
    .gshell-topbar .tt{font-weight:800;font-size:14.5px;color:var(--gs-ink);letter-spacing:-.01em}
    .gshell-topbar .tsearch{margin-left:auto;display:flex;align-items:center;gap:6px;
        background:var(--gs-panel);border:1px solid var(--gs-line);border-radius:999px;
        padding:6px 12px;font-size:12px;color:var(--gs-ink-faint)}
    /* Encre EXPLICITE, comme le burger et la loupe juste au-dessus. Sans elle,
       la cloche tombait sur le `color:inherit` d'ux-refresh.css, qui remonte au
       <body> — dont l'encre --text-main (#282828) n'est PAS redéfinie en sombre.
       Cloche #282828 sur une topbar #2a2723 : 1,01:1, strictement invisible
       (signalé le 14/09, capture de l'écran Aujourd'hui). Le repli
       :where(body[data-gtheme="dark"] button){color:inherit} de style.css ne
       pouvait rien ici : il hérite du même noir. Une couleur héritée ne vaut
       que si quelqu'un, plus haut, en pose une qui suit le thème. */
    .gshell-topbar .tbell{position:relative;font-size:18px;padding:4px;color:var(--gs-ink-faint)}
    .gshell-topbar .tbell .dot{position:absolute;top:2px;right:0;width:9px;height:9px;border-radius:50%;
        background:var(--gs-crit);border:2px solid var(--gs-panel-2)}
    .gshell-topbar .tbell .dot.hidden{display:none}

    .gshell-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:95;
        display:flex;justify-content:space-around;align-items:stretch;
        background:var(--gs-panel);border-top:1px solid var(--gs-line);
        padding:6px 4px calc(6px + env(safe-area-inset-bottom));
        backdrop-filter:blur(12px)}
    body:not(.shell-on) .gshell-tabbar{display:none}

    /* Dosage ivoire, version mobile : la barre du haut et celle du bas
       s'alignent sur le rail, sinon la barre du bas reste blanche à côté
       d'un bandeau chaud. Scopé au thème CLAIR — le sombre est inchangé. */
    body.shell-on:not([data-gtheme="dark"]) .gshell-topbar{background:var(--gs-rail-bg)}
    body.shell-on:not([data-gtheme="dark"]) .gshell-topbar .tsearch{background:var(--gs-search-bg)}
    body.shell-on:not([data-gtheme="dark"]) .gshell-topbar .tbell .dot{border-color:var(--gs-rail-bg)}
    body.shell-on:not([data-gtheme="dark"]) .gshell-tabbar{background:var(--gs-rail-bg)}
    .gshell-tab{flex:1;display:flex;flex-direction:column;align-items:center;gap:2px;
        font-size:9px;color:var(--gs-ink-faint);padding:4px 0;cursor:pointer;position:relative;
        border:none;background:none;font-family:inherit}
    .gshell-tab .ic{font-size:19px;filter:grayscale(1) opacity(.6)}
    .gshell-tab.on{color:var(--gs-accent);font-weight:700}
    .gshell-tab.on .ic{filter:none}
    .gshell-tab .tbadge{position:absolute;top:0;right:calc(50% - 20px);min-width:16px;height:16px;
        border-radius:8px;background:var(--gs-crit);color:#fff;font-size:9px;font-weight:800;
        display:grid;place-items:center;padding:0 4px;font-family:ui-monospace,monospace}
    .gshell-tab .tbadge.hidden{display:none}

    /* vues fixed : plein écran mais au-dessus de la tabbar */
    body.shell-on .chat-view,
    body.shell-on .tasks-view{left:0;bottom:calc(var(--gs-tabbar-h) + env(safe-area-inset-bottom))}
    body.shell-on .ai-sidebar-toggle{left:0}
}

/* =====================================================================
   VUE AUJOURD'HUI
   ===================================================================== */
.today-view{max-width:none;margin:0;padding:0 0 60px}
/* Le bandeau court bord à bord ; le reste du contenu garde sa colonne centrée. */
.today-view > *:not(.today-head){max-width:1060px;margin-left:auto;margin-right:auto;padding-left:24px;padding-right:24px}
.today-view.hidden{display:none}
/* Bandeau « ligne courbe » — signature visuelle reprise de l'ancienne UI :
   bande sombre pleine largeur avec arête diagonale (skewY) vers le fond. */
.today-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;
  position:relative;background:var(--gs-curve-bg,#282828);
  margin:0 0 32px;padding:42px max(28px,calc((100% - 1012px)/2)) 84px;
  /* arête diagonale découpée dans le bandeau : le vrai fond (motif, dark mode)
     transparaît — pas de bande peinte qui jure avec le fond. */
  clip-path:polygon(0 0,100% 0,100% calc(100% - 46px),0 100%)}
.today-head>*{position:relative;z-index:1}
.today-head .today-hi{color:#fff}
/* Logo Groupe Chanv — tuile parchemin héritée de l'ancien header */
.today-logo-wrap{background:var(--gs-brand-fibre);border-radius:16px;padding:10px 18px;display:flex;align-items:center;align-self:flex-start;flex:0 0 auto}
.today-logo-wrap img{height:42px;width:auto;display:block}
@media (max-width:640px){.today-logo-wrap{display:none}}
/* Météo locale — tuile discrète sur le bandeau sombre, entre le bloc de
   gauche et le logo Chanv. L'icône suit currentColor + accent doré. */
.today-weather{display:flex;align-items:center;gap:12px;align-self:flex-start;
  margin-left:auto;color:#F4EFE3;--wx-accent:#E9A93D;
  background:rgba(244,239,227,.07);border:1px solid rgba(244,239,227,.14);
  border-radius:16px;padding:9px 16px;font:inherit;text-align:left}
.today-weather.hidden{display:none}
.today-weather:disabled{opacity:1}
.today-weather:not(:disabled){cursor:pointer;transition:background .15s ease,border-color .15s ease,transform .15s ease}
.today-weather:not(:disabled):hover{background:rgba(244,239,227,.13);border-color:rgba(233,169,61,.55);transform:translateY(-1px)}
.today-weather:not(:disabled):focus-visible{outline:2px solid #E9A93D;outline-offset:3px}
.today-weather .wx-txt{display:flex;align-items:center;gap:10px}
.today-weather .wx-temp{font-size:24px;font-weight:800;letter-spacing:-.02em;line-height:1}
.today-weather .wx-meta{display:flex;flex-direction:column;gap:3px}
.today-weather .wx-label{font-size:12px;font-weight:650;line-height:1}
.today-weather .wx-city{font-family:ui-monospace,'SF Mono',monospace;font-size:9.5px;
  letter-spacing:.05em;text-transform:uppercase;opacity:.6;line-height:1}
/* Mobile : version simplifiée en haut à droite, face au « Bonjour » —
   icône + température seulement, sans tuile. */
@media (max-width:860px){
  .today-weather{background:none;border:none;padding:0;gap:7px;margin-right:2px}
  .today-weather .wx-meta{display:none}
  .today-weather .wx-icon{width:30px;height:30px}
  .today-weather .wx-temp{font-size:19px}
}
/* Colonne droite du bandeau : rangée « météo + logo », puis l'entrée LECLAUDE
   sous les deux. Le logo était un frère de cette colonne, déclaré APRÈS elle :
   la vignette ne pouvait pas l'atteindre et s'arrêtait ~15 px avant, laissant
   un bord droit en escalier et un vide en L sous la tuile parchemin. */
/* Largeur DÉFINIE (pas seulement max-width) : la vignette est en width:100%,
   qui n'a de sens que si la colonne, elle, a une largeur résolue. Sans ça la
   colonne se cale sur la tuile météo (~55 px en mode compact) et la marque se
   retrouve tronquée en « LECLAU… » alors que la place ne manque pas.
   470 px = tuile météo (248) + gouttière (16) + tuile logo (157), plus la
   marge de manœuvre.
   `min-width:min-content` est le garde-fou : entre 861 et ~910 px (rail de
   232 px déduit), 58 % ne valent plus que ~355 px alors que la météo pleine
   taille + le logo en réclament 363 — la tuile parchemin ressortait de la
   vignette et le bandeau poussait la page de 2 px hors de l'écran (mesuré au
   navigateur). Le plancher min-content laisse la colonne prendre ce qu'il lui
   faut, et c'est le « Bonjour » (flex:1 1 auto, min-width:0) qui cède, comme
   avant que le logo n'entre dans la colonne. */
.today-head-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;
  margin-left:auto;min-width:min-content;flex:0 0 auto;width:auto}
/* Météo à gauche, logo collé à droite — `margin-left:auto` sur le LOGO et non
   un `justify-content`, pour que le logo reste à droite même quand la météo
   est absente (`.hidden` : /api/weather en panne, position refusée). */
.today-head-toprow{display:flex;align-items:center;gap:16px;width:100%}
.today-head-toprow .today-weather{margin-left:0;align-self:center}
.today-head-toprow .today-logo-wrap{margin-left:auto;align-self:center}
/* C'est le bloc de gauche — un texte qui se replie tout seul — qui encaisse le
   manque de place : `min-width:0` lève la largeur min-content imposée par
   défaut aux items flex, et `flex:1 1 auto` le désigne comme la variable
   d'ajustement. Sans ça, la colonne de droite se faisait rogner et la marque
   partait en « LECLAU… » sur un bandeau pourtant à moitié vide. */
.today-head>div:first-child{min-width:0;flex:1 1 auto}

/* Entrée LECLAUDE — accès direct au bulletin depuis l'accueil (ticket
   DPaXBVpAKbDhL5qWQLWD). Reprend le noir et le « + » rouge de la barre du
   magazine (.lc-topbar) : c'est la même marque, pas une tuile de plus. */
.today-leclaude{display:flex;align-items:center;gap:11px;width:100%;
  position:relative;text-align:left;cursor:pointer;
  background:#1a1a1a;color:#fff;border:1px solid rgba(244,239,227,.16);
  border-radius:14px;padding:9px 13px;font:inherit;
  transition:transform .15s ease,border-color .2s ease,box-shadow .2s ease}
.today-leclaude:hover{border-color:rgba(244,239,227,.4);transform:translateY(-1px);
  box-shadow:0 6px 18px rgba(0,0,0,.28)}
.today-leclaude:focus-visible{outline:2px solid var(--gs-brand-beige);outline-offset:2px}
/* Texte centré : la maquette de Dany montrait la marque au MILIEU du bandeau,
   pas plaquée à gauche (capture du ticket, rectangle rouge sous la météo). */
.today-leclaude .tlc-txt{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1 1 auto;
  align-items:center;text-align:center}
/* … et centré sur la CARTE, pas sur l'espace laissé à droite de l'imagette :
   le décalage compense la couverture et sa gouttière. Conditionné à
   `:not(:empty)` parce que la couverture s'efface quand l'aperçu n'a pas
   d'image — et aussi quand elle tombe en erreur (le `onerror` de today.js vide
   le conteneur) : sans cette condition le texte pencherait à gauche ces
   jours-là. */
.today-leclaude .tlc-cover:not(:empty) ~ .tlc-txt{padding-right:55px}
/* Plancher : la marque ne se coupe pas (white-space:nowrap), donc le bloc de
   texte ne doit jamais descendre sous ce qu'elle mesure — sinon elle bave
   par-dessus la bordure de la vignette. Le `min-width:0` du bloc (nécessaire
   à l'ellipse mobile) l'y autorisait : on le relève au-dessus de 640 px, là
   où l'ellipse n'a pas lieu d'être. Le plancher se règle tout seul sur la
   police et la langue au lieu d'un nombre écrit en dur. */
@media (min-width:641px){.today-leclaude .tlc-txt{min-width:min-content}}
.today-leclaude .tlc-brand{font-size:12.5px;font-weight:800;letter-spacing:2.4px;
  text-transform:uppercase;white-space:nowrap;line-height:1.1}
.today-leclaude .tlc-plus{color:#E3000B;font-weight:900}
/* Titre et date n'existent qu'une fois l'aperçu chargé : vides, ils ne
   laissent aucun trou (pas de :empty{display:none} — le gap suffirait à
   creuser une marge fantôme sur un bouton nu). */
.today-leclaude .tlc-title:empty,
.today-leclaude .tlc-meta:empty,
.today-leclaude .tlc-cover:empty{display:none}
.today-leclaude .tlc-title{font-size:12.5px;font-weight:600;line-height:1.3;
  color:rgba(255,255,255,.9);
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.today-leclaude .tlc-meta{font-family:ui-monospace,'SF Mono',monospace;font-size:9px;
  letter-spacing:.08em;text-transform:uppercase;color:rgba(255,255,255,.5);line-height:1.2}
.today-leclaude .tlc-cover{flex:0 0 auto;width:44px;height:44px;border-radius:9px;
  overflow:hidden;background:rgba(255,255,255,.08)}
.today-leclaude .tlc-cover img{width:100%;height:100%;object-fit:cover;display:block}
/* Pastille « nouvelle édition » : alimentée par Shell.applyBadge('actu', n)
   via data-gs-badge, comme l'entrée du rail. */
.today-leclaude .tlc-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;
  display:flex;align-items:center;justify-content:center;padding:0 5px;border-radius:9px;
  background:#E3000B;color:#fff;font-size:10px;font-weight:800;line-height:1;
  box-shadow:0 0 0 2px var(--gs-curve-bg,#282828)}
.today-leclaude .tlc-badge.hidden{display:none}
/* ≤860px : la météo se réduit à l'icône + la température (règle plus haut), la
   vignette se contente de sa marque — un titre sur deux lignes écraserait le
   « Bonjour ». */
@media (max-width:860px){
  .today-head-side{width:auto;gap:8px}
  .today-head-toprow{gap:12px}
  .today-leclaude{padding:7px 11px;gap:9px}
  .today-leclaude .tlc-brand{font-size:10.5px;letter-spacing:1.6px}
  .today-leclaude .tlc-cover{width:34px;height:34px}
  .today-leclaude .tlc-cover:not(:empty) ~ .tlc-txt{padding-right:43px}
}
/* ≤640px : plus de titre ni de date — la vignette prend sa largeur naturelle
   (celle de sa marque) au lieu d'une colonne fixe. */
@media (max-width:640px){
  .today-head-side{width:auto;max-width:60%;flex:0 0 auto}
  /* Le logo disparaît ici : la rangée reprend sa largeur naturelle (la météo
     seule) au lieu de tirer une colonne vide sous le « Bonjour ». */
  .today-head-toprow{width:auto}
  .today-leclaude{width:auto;max-width:100%}
  /* L'imagette est masquée juste en dessous : plus rien à compenser, et le
     décalage laisserait la marque décentrée dans une vignette qui ne contient
     plus qu'elle. */
  .today-leclaude .tlc-cover:not(:empty) ~ .tlc-txt{padding-right:0}
  .today-leclaude .tlc-brand{overflow:hidden;text-overflow:ellipsis}
  .today-leclaude .tlc-title,
  .today-leclaude .tlc-meta,
  .today-leclaude .tlc-cover{display:none}
}
/* Écrans étroits : la vignette se réduit à son nom. « + ACTUALITÉS » ne se
   coupe pas (white-space:nowrap) et poussait le bandeau hors de l'écran —
   débordement horizontal constaté à 380 px de large. */
@media (max-width:520px){
  .today-leclaude .tlc-plus,
  .today-leclaude .tlc-news{display:none}
  .today-leclaude .tlc-brand{letter-spacing:1.4px}
}
@media (prefers-reduced-motion:reduce){
  .today-leclaude{transition:none}
  .today-leclaude:hover{transform:none}
}

.today-head .today-date{color:rgba(255,255,255,.60)}
.today-head .today-quote{color:rgba(255,255,255,.72)}
.today-hi{font-size:clamp(22px,3vw,30px);font-weight:800;letter-spacing:-.03em;color:var(--gs-ink);margin:0}
.today-date{font-family:ui-monospace,'SF Mono',monospace;font-size:11px;color:var(--gs-ink-faint);
    letter-spacing:.1em;text-transform:uppercase;margin-top:4px}

.today-grid{display:grid;grid-template-columns:1.5fr 1fr;gap:16px;align-items:start}
@media (max-width:860px){.today-grid{grid-template-columns:1fr}}
.today-col{display:flex;flex-direction:column;gap:10px;min-width:0}

/* Bandeau anniversaire — dans la colonne de gauche, juste au-dessus du briefing
   (même largeur). Festif mais discret ; couleur via tokens (lisible clair + dark). */
.today-birthday{display:flex;flex-direction:column;gap:7px;padding:11px 15px;border-radius:14px;
  color:var(--gs-ink);
  /* Accent chaud des icônes du bandeau — repris de la pluie de confettis
     (public/js/birthday.js) pour que la fête ait UNE couleur dans tout le hub. */
  --bday-accent:#E89F71;
  background:linear-gradient(100deg,var(--gs-accent-soft),var(--gs-panel));
  border:1px solid var(--gs-line-strong);animation:tbPop .45s ease}
.today-birthday.hidden{display:none}
/* `flex-wrap` à TOUTES les largeurs : la ligne porte désormais une action, et
   c'est elle qui doit basculer quand la place manque — pas le texte qui se
   fait écraser. */
.today-birthday .tb-line{display:flex;align-items:center;gap:11px;flex-wrap:wrap}
/* Icône dessinée (birthday-icons.js) et non plus emoji : plus de `font-size`,
   et `line-height:0` pour supprimer le talon de ligne sous un SVG inline. */
.today-birthday .tb-cake{flex:0 0 auto;display:inline-flex;line-height:0;color:var(--gs-ink-dim)}
.today-birthday .tb-cake .bd-icon{display:block}
/* `min-width:0` : sans lui, un prénom long empêche la ligne de rétrécir et
   pousse le bouton hors de la carte au lieu de le faire passer dessous. */
.today-birthday .tb-text{flex:1 1 auto;min-width:0;font-size:.9rem;line-height:1.4}
.today-birthday .tb-avs{display:inline-flex;flex:0 0 auto}
.today-birthday .tb-av{width:26px;height:26px;border-radius:50%;overflow:hidden;flex:0 0 auto;
  display:inline-flex;align-items:center;justify-content:center;margin-left:-8px;
  border:2px solid var(--gs-panel);background:var(--gs-brand-beige)}
.today-birthday .tb-avs .tb-av:first-child{margin-left:0}
.today-birthday .tb-av img{width:100%;height:100%;object-fit:cover}
.today-birthday .tb-av-l{color:var(--gs-brand-earth);font-weight:800;font-size:.72rem;background:var(--gs-brand-beige)}
/* Bouton « Souhaiter Bon Anniversaire ».
   Le rayon vient du TOKEN de contrôle du système (8 px), comme tout bouton du
   hub : la pilule `999px` d'une première version jurait avec ses voisins — la
   tuile météo, le champ de recherche et les cartes s'arrêtent tous à 8-14 px.
   Sobre au repos (fond nu, filet doré), il se remplit d'accent au survol. */
.today-birthday .tb-hq{flex:0 0 auto;margin-left:auto;cursor:pointer;
  display:inline-flex;align-items:center;gap:7px;
  font:inherit;font-size:.82rem;font-weight:600;line-height:1;
  padding:8px 13px;border-radius:var(--gs-radius-control,8px);
  color:var(--gs-ink);background:transparent;border:1px solid var(--gs-line-strong);
  transition:background .15s ease,border-color .15s ease}
.today-birthday .tb-hq .bd-icon{flex:0 0 auto;color:var(--gs-accent)}
.today-birthday .tb-hq-lbl{white-space:nowrap}
.today-birthday .tb-hq:hover{background:var(--gs-accent-soft);border-color:var(--gs-accent)}
.today-birthday .tb-hq:focus-visible{outline:2px solid var(--gs-accent);outline-offset:2px}
/* Étroit : le bouton passe sur sa propre ligne, ancré à DROITE de la carte.
   La version précédente le décalait de 38 px — un nombre choisi pour tomber
   sous le texte, qui ne tombait sous rien dès que l'icône ou les vignettes
   changeaient de taille. Il y gagne aussi une cible au doigt de ~40 px. */
@media (max-width:640px){
  .today-birthday .tb-hq{padding:10px 14px}
}
@keyframes tbPop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}

/* Bandeau « première journée » — accueil proactif de Gandalf (jour d'intégration
   seulement). Même gabarit que le bandeau anniversaire, teinte accent premium. */
.today-firstday{display:flex;align-items:flex-start;gap:13px;padding:13px 16px;border-radius:14px;
  color:var(--gs-ink);
  background:linear-gradient(115deg,var(--gs-accent-soft),var(--gs-panel));
  border:1px solid var(--gs-line-strong);animation:tbPop .45s ease}
.today-firstday.hidden{display:none}
.today-firstday .tfd-hat{flex:0 0 auto;width:38px;height:38px;display:flex;align-items:center;justify-content:center}
.today-firstday .tfd-hat img{width:34px;height:34px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(0,0,0,.18))}
.today-firstday .tfd-txt{flex:1;min-width:0}
.today-firstday .tfd-title{font-weight:800;font-size:.96rem;margin-bottom:3px}
.today-firstday .tfd-body{font-size:.88rem;line-height:1.45;opacity:.92}
.today-firstday .tfd-tour{flex:0 0 auto;align-self:center;white-space:nowrap}
@media (max-width:640px){.today-firstday{flex-wrap:wrap}.today-firstday .tfd-tour{align-self:flex-start;margin-left:51px}}

.today-brief{background:linear-gradient(155deg,var(--gs-accent-soft),transparent);
    border:1px solid var(--gs-line-strong);border-radius:16px;padding:16px;
    display:flex;flex-direction:column;gap:10px}
.today-brief .bh{display:flex;align-items:center;gap:9px}
.today-brief .bava{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;font-size:15px;
    background:linear-gradient(150deg,var(--gs-brand-beige),var(--gs-brand-fibre));color:var(--gs-brand-earth);
    box-shadow:0 3px 9px rgba(40,40,40,.12)}
.today-brief .bname{font-size:13px;font-weight:750;color:var(--gs-ink)}
.today-brief .btag{font-family:ui-monospace,monospace;font-size:9px;letter-spacing:.12em;
    color:var(--gs-accent);text-transform:uppercase;border:1px solid var(--gs-line-strong);
    padding:1px 6px;border-radius:5px;margin-left:6px}
.today-brief .btext{font-size:13.5px;line-height:1.55;color:var(--gs-ink-dim)}
.today-brief .btext b{color:var(--gs-ink)}

.today-lbl{font-family:ui-monospace,'SF Mono',monospace;font-size:10px;letter-spacing:.18em;
    text-transform:uppercase;color:var(--gs-ink-faint);padding:8px 2px 2px}

.today-row{display:flex;align-items:center;gap:11px;background:var(--gs-panel);
    border:1px solid var(--gs-line);border-radius:13px;padding:11px 13px;cursor:pointer;
    transition:border-color .15s,transform .12s;text-decoration:none}
.today-row:hover{border-color:var(--gs-line-strong);transform:translateY(-1px)}
.today-row .sv{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.today-row .sv.crit{background:var(--gs-crit);box-shadow:0 0 0 3px rgba(184,84,67,.15)}
.today-row .sv.warn{background:var(--gs-warn);box-shadow:0 0 0 3px rgba(188,126,41,.15)}
.today-row .sv.ok{background:var(--gs-ok);box-shadow:0 0 0 3px rgba(110,138,99,.15)}
.today-row .tx{flex:1;min-width:0}
.today-row .t1{font-size:13px;font-weight:600;color:var(--gs-ink);white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis}
.today-row .t2{font-size:10.5px;color:var(--gs-ink-faint);font-family:ui-monospace,monospace;margin-top:1px}
.today-row .wh{font-family:ui-monospace,monospace;font-size:10px;color:var(--gs-ink-faint);flex:0 0 auto}
/* Retirer une ligne de « Ça presse ». Discrète au repos, jamais absente :
   sur tactile il n'y a pas de survol, un bouton en display:none serait
   introuvable au doigt — d'où l'opacité plutôt que l'escamotage. */
.today-row .tur-hide{flex:0 0 auto;width:22px;height:22px;padding:0;border:0;border-radius:50%;
    background:transparent;color:var(--gs-ink-faint);font-size:12px;line-height:1;cursor:pointer;
    opacity:.35;transition:opacity .15s,background .15s}
.today-row:hover .tur-hide,.today-row .tur-hide:focus-visible{opacity:1}
.today-row .tur-hide:hover{background:var(--gs-line);color:var(--gs-ink)}
@media (hover:none){.today-row .tur-hide{opacity:.6}}
.today-urgent-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;
    padding:2px 4px;font-size:10.5px;color:var(--gs-ink-faint);font-family:ui-monospace,monospace}
.today-urgent-foot .tuf-restore{border:0;background:transparent;padding:0;cursor:pointer;
    font:inherit;color:var(--gs-ink-faint);text-decoration:underline}
.today-urgent-foot .tuf-restore:hover{color:var(--gs-ink)}
.today-empty{padding:18px 14px;text-align:center;color:var(--gs-ink-faint);font-size:13px;
    background:var(--gs-panel);border:1px dashed var(--gs-line-strong);border-radius:13px}

.today-stats{display:flex;gap:8px}
.today-stat{flex:1;background:var(--gs-panel);border:1px solid var(--gs-line);border-radius:13px;
    padding:11px 12px;cursor:pointer;transition:border-color .15s}
.today-stat:hover{border-color:var(--gs-line-strong)}
.today-stat .n{font-size:22px;font-weight:800;color:var(--gs-ink);
    font-family:ui-monospace,'SF Mono',monospace;letter-spacing:-.02em}
.today-stat .l{font-size:9.5px;color:var(--gs-ink-faint);letter-spacing:.07em;text-transform:uppercase}

/* Panneau « Messages récents » — colonne de droite d'Aujourd'hui */
.today-recent-msgs{display:flex;flex-direction:column;gap:4px}
.today-recent-empty{font-size:12px;color:var(--gs-ink-faint);padding:6px 2px}
.today-recent-item{display:flex;align-items:center;gap:10px;width:100%;text-align:left;
    background:var(--gs-panel);border:1px solid var(--gs-line);border-radius:12px;
    padding:9px 12px;cursor:pointer;font-family:inherit;transition:border-color .15s,background .15s;position:relative}
.today-recent-item:hover{border-color:var(--gs-line-strong)}
.today-recent-item.trm-unread{border-color:var(--gs-line-strong);
    background:color-mix(in srgb,var(--gs-accent) 7%,var(--gs-panel));
    box-shadow:inset 3px 0 var(--gs-accent)}
.trm-unread .trm-name{color:var(--gs-ink)}
.trm-av{width:34px;height:34px;border-radius:50%;object-fit:cover;flex-shrink:0;
    display:flex;align-items:center;justify-content:center;font-weight:700;font-size:14px;
    background:var(--gs-panel-2,#F1EADA);color:var(--gs-ink)}
.trm-av-room{background:var(--gs-brand-earth);color:#fff}
body.shell-on[data-gtheme="dark"] .trm-av-room{background:var(--gs-brand-beige);color:var(--gs-brand-earth)}
.trm-body{flex:1;min-width:0}
.trm-top{display:flex;align-items:baseline;justify-content:space-between;gap:8px}
.trm-name{font-size:13.5px;font-weight:700;color:var(--gs-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.trm-time{font-size:10.5px;color:var(--gs-ink-faint);flex-shrink:0;font-family:ui-monospace,'SF Mono',monospace}
.trm-preview{font-size:12px;color:var(--gs-ink-dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:1px}
.trm-unread .trm-preview{color:var(--gs-ink);font-weight:700}
.trm-dot{width:8px;height:8px;border-radius:50%;background:var(--gs-accent,#A8863F);flex-shrink:0}

.today-favs{display:grid;grid-template-columns:repeat(auto-fill,minmax(86px,1fr));gap:9px}
.today-fav{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;
    background:var(--gs-panel);border:1px solid var(--gs-line);border-radius:13px;
    padding:13px 6px 11px;cursor:pointer;text-decoration:none;
    transition:border-color .15s,transform .12s}
.today-fav:hover{border-color:var(--gs-line-strong);transform:translateY(-2px)}
.today-fav .fe{font-size:24px}
.today-fav .fimg{width:34px;height:34px;border-radius:9px;object-fit:cover}
.today-fav .fn{font-size:10px;color:var(--gs-ink-dim);text-align:center;line-height:1.2;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.today-fav .nb{position:absolute;top:-5px;right:6px;min-width:17px;height:17px;border-radius:9px;
    background:var(--gs-crit);color:#fff;font-size:9.5px;font-weight:800;display:grid;
    place-items:center;padding:0 4px;font-family:ui-monospace,monospace;
    box-shadow:0 0 0 2px var(--gs-panel)}

/* =====================================================================
   SECTION APPS (en mode coquille) — grille seule, restylée
   ===================================================================== */
/* l'accueil legacy (bonjour + citation) et les pills disparaissent :
   la citation vit dans Aujourd'hui, les filtres vivent dans le rail */
body.shell-on .welcome-section{display:none}
body.shell-on .view-toggle{display:none}

.today-quote{font-size:13px;font-style:italic;color:var(--gs-ink-faint);margin-top:8px;max-width:52ch}

/* la grille respire dans le panneau */
body.shell-on main.container-dashboard{padding-top:26px}
body.shell-on .category-header{
    font-size:11px;letter-spacing:.18em;color:var(--gs-ink-faint);
    border-bottom:1px solid var(--gs-line);padding-bottom:6px;
}

/* --- LE LOOK "FAVORIS" PARTOUT : tuiles compactes icône + nom --- */
body.shell-on .dashboard-grid{
    grid-template-columns:repeat(auto-fill,minmax(148px,1fr));
    gap:12px;
}
body.shell-on .app-tile{
    background:var(--gs-panel);
    border:1px solid var(--gs-line);
    border-radius:14px;
    box-shadow:none;
    padding:18px 10px 15px;
    gap:9px;
    justify-content:flex-start;
}
body.shell-on .app-tile:hover{
    transform:translateY(-2px);
    border-color:var(--gs-line-strong);
    box-shadow:0 8px 20px -14px rgba(40,30,10,.25);
}
body.shell-on .app-tile.has-image{padding:18px 10px 15px}
body.shell-on .app-tile.emoji-only{padding:18px 10px 15px}
body.shell-on .app-icon{font-size:34px;margin-bottom:0;line-height:1}
body.shell-on .app-icon-image{
    width:58px;height:58px;aspect-ratio:1/1;
    border-radius:14px;
    background:var(--gs-panel-2);
    border:1px solid var(--gs-line);
    flex:0 0 auto;
}
body.shell-on .app-icon-image::after{display:none}
body.shell-on .app-icon-image img{border-radius:13px}
body.shell-on .app-tile.site-tile .app-icon-image img{padding:7px}
body.shell-on .app-tile-text{padding:0 4px}
body.shell-on .app-name{
    font-size:13px;font-weight:650;color:var(--gs-ink);letter-spacing:0;
    line-height:1.3;margin-bottom:0;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
body.shell-on .app-desc{display:none}  /* le nom suffit — la description vit dans la palette ⌘K */
body.shell-on .fav-btn{transform:scale(.82);top:4px;right:4px}
body.shell-on .restricted-notice{background:var(--gs-panel-2);border-color:var(--gs-line-strong)}
body.shell-on .restricted-notice h3{color:var(--gs-ink)}
body.shell-on .restricted-notice p{color:var(--gs-ink-dim)}

/* =====================================================================
   TYPOGRAPHIE UNIFIÉE (mode coquille)
   ===================================================================== */
body.shell-on{font-family:'Inter',-apple-system,system-ui,sans-serif}
body.shell-on .gshell-brand,
body.shell-on .today-hi,
body.shell-on .gshell-apphead .an,
body.shell-on .chat-title,
body.shell-on .tasks-title,
body.shell-on .mytickets-title,
body.shell-on .gshell-pal-input input{
    font-family:'Outfit','Inter',sans-serif;
}
body.shell-on .gshell-item,
body.shell-on .gshell-user .un,
body.shell-on .today-row .t1,
body.shell-on .today-fav .fn,
body.shell-on .app-name{
    font-family:'Inter',-apple-system,system-ui,sans-serif;
}

/* =====================================================================
   WIDGETS FLOTTANTS RETIRÉS (la coquille les remplace)
   ===================================================================== */
/* chatbot bas-droite → remplacé par 🧙 Gandalf + la palette ⌘K */
body.shell-on #chatbot-toggle,
body.shell-on #chatbot-panel{display:none!important}
/* bouton Signaler flottant → lien 📣 Signaler dans le rail */
body.shell-on #gfb-root #gfb-open,
body.shell-on #bug-report-btn{display:none!important}

/* =====================================================================
   APP EMBARQUÉE (iframe dans le panneau, rail conservé)
   ===================================================================== */
.gshell-appframe{position:fixed;top:0;right:0;bottom:0;left:var(--gs-rail-w);
    display:flex;flex-direction:column;background:var(--gs-ground);z-index:60}
.gshell-appframe.hidden{display:none}
.gshell-apphead{display:flex;align-items:center;gap:12px;padding:10px 16px;
    background:var(--gs-panel-2);border-bottom:1px solid var(--gs-line)}
.gshell-apphead .ai{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;
    font-size:17px;background:var(--gs-panel);border:1px solid var(--gs-line);overflow:hidden}
.gshell-apphead .ai img{width:100%;height:100%;object-fit:cover}
.gshell-apphead .ai .gli-connected-icon{width:20px;height:20px;color:var(--gs-accent)}
/* Icône d'en-tête servie par le sprite plutôt que par un caractère : le CRM a
   basculé le premier (updateModuleHead accepte les deux formes). Même taille
   que l'icône d'app connectée juste au-dessus, pour que les deux régimes
   cohabitent sans que la tuile change d'allure d'un module à l'autre. */
.gshell-apphead .ai>.gicon{width:20px;height:20px;color:var(--gs-accent)}
.gshell-apphead .at{flex:1;min-width:0}
.gshell-apphead .an{font-size:14.5px;font-weight:750;color:var(--gs-ink);letter-spacing:-.01em;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gshell-apphead .crumb{font-family:ui-monospace,'SF Mono',monospace;font-size:9.5px;
    color:var(--gs-ink-faint);letter-spacing:.06em;text-transform:uppercase;margin-top:1px}
.gshell-appbtn{display:inline-flex;align-items:center;gap:6px;background:var(--gs-panel);
    border:1px solid var(--gs-line);border-radius:9px;padding:7px 12px;font-size:12px;
    font-weight:600;color:var(--gs-ink-dim);cursor:pointer;text-decoration:none;
    font-family:inherit;transition:border-color .15s,color .15s;white-space:nowrap}
.gshell-appbtn:hover{border-color:var(--gs-line-strong);color:var(--gs-ink)}
.gshell-appswitch{border-color:var(--gs-line-strong);color:var(--gs-accent)}
.gshell-appbody{position:relative;flex:1;display:flex;min-height:0}
.gshell-appframe iframe{border:none;width:100%;background:#fff}
/* Une iframe PAR app ouverte : seules l'active est visible, les autres
   restent vivantes (état conservé, bascule instantanée) */
.gshell-app-iframe{display:none;flex:1}
.gshell-app-iframe-active{display:block}

/* ── Onglets d'apps ouvertes ── */
.gshell-apptabs{position:fixed;z-index:88;top:72px;left:var(--gs-rail-w);right:0;
    height:var(--gs-app-tabs-h);box-sizing:border-box;
    display:flex;align-items:center;gap:4px;padding:0 10px;
    background:var(--gs-ground);border-bottom:1px solid var(--gs-line);
    overflow-x:auto;scrollbar-width:none;flex-shrink:0}
body.shell-on.gs-has-app-tabs{--gs-app-tabs-h:40px}
body:not(.shell-on) .gshell-apptabs,
body.gs-popup-mode .gshell-apptabs,
body.ai-popup-mode .gshell-apptabs{display:none!important}
body.shell-on:is(.gs-popup-mode,.ai-popup-mode){--gs-app-tabs-h:0px}
.gshell-apptabs::-webkit-scrollbar{display:none}
.gshell-apptabs.hidden{display:none}
.gshell-apptab{display:inline-flex;align-items:center;gap:0;max-width:240px;height:32px;
    border:1px solid transparent;border-radius:8px;
    background:none;color:var(--gs-ink-2,var(--gs-ink));cursor:pointer;
    padding:0;font-family:inherit;font-size:12.5px;font-weight:600;
    white-space:nowrap;flex-shrink:0;opacity:.72;transition:background .15s,opacity .15s}
.gshell-apptab:hover{opacity:1;background:var(--gs-panel-2)}
.gshell-apptab.on{opacity:1;background:var(--gs-panel-2);border-color:var(--gs-line);
    color:var(--gs-ink)}
.gshell-apptab-select{display:flex;align-items:center;gap:7px;height:100%;min-width:0;
    padding:0 8px;border:0;border-radius:7px;background:none;color:inherit;font:inherit;cursor:pointer}
.gshell-apptab-home{gap:7px;padding:0 10px}
.gshell-apptabs button:focus-visible{outline:2px solid var(--gs-accent);outline-offset:-2px}
.gshell-apptab .ti{width:17px;height:17px;display:grid;place-items:center;
    border-radius:5px;overflow:hidden;font-size:12px;flex-shrink:0}
.gshell-apptab .ti img{width:100%;height:100%;object-fit:cover}
.gshell-apptab .ti .gli-connected-icon{width:15px;height:15px;color:var(--gs-accent)}
.gshell-apptab .tn{overflow:hidden;text-overflow:ellipsis;max-width:165px}
.gshell-apptab .tx{display:grid;place-items:center;width:28px;height:28px;margin-right:2px;
    padding:0;border:0;background:none;color:inherit;border-radius:5px;font:inherit;font-size:17px;cursor:pointer;
    opacity:.65;transition:opacity .15s;flex-shrink:0}
.gshell-apptab:hover .tx,.gshell-apptab.on .tx{opacity:.8}
.gshell-apptab .tx:hover{opacity:1;background:rgba(200,60,50,.18)}
.gshell-apptab-home .tx{display:none}

/* Rôle de l'utilisateur dans l'app (bandeau, à droite) */
.gshell-approle{font-family:ui-monospace,'SF Mono',monospace;font-size:9.5px;
    text-transform:uppercase;letter-spacing:.08em;color:var(--gs-ink-2,var(--gs-ink));
    opacity:.65;border:1px solid var(--gs-line);border-radius:99px;
    padding:4px 10px;white-space:nowrap;flex-shrink:0}
.gshell-approle.hidden{display:none}

@media (max-width: 860px){
    body.shell-on.gs-has-app-tabs{--gs-app-tabs-h:44px}
    .gshell-apptabs{left:0;top:calc(var(--gs-viewport-top, 0px) + max(var(--gs-mobile-top, 63px), env(safe-area-inset-top)));
        padding:0 max(4px, env(safe-area-inset-right)) 0 max(4px, env(safe-area-inset-left))}
    .gshell-apptab{height:44px}
    .gshell-apptab-select{padding:0 8px}
    .gshell-apptab .tx{width:44px;height:42px;margin:0}
    .gshell-apptab-home{min-width:44px;justify-content:center}
    .gshell-apptab .tn{max-width:84px}
    .gshell-apptab-home .tn{display:none} /* pastille icône seule */
    .gshell-approle{display:none} /* bandeau étroit : le rôle passe son tour */
    .gshell-appswitch span{display:none}
    .gshell-appswitch{width:36px;padding:7px;justify-content:center;font-size:17px}
}

/* Voile de chargement de l'app embarquée : médaillon de l'app qui pulse
   sous un anneau or, sur le fond du shell (thème clair/sombre via tokens). */
.gshell-frameload{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;
    align-items:center;justify-content:center;gap:18px;background:var(--gs-ground)}
.gshell-frameload.hidden{display:none}
.gfl-badge{position:relative;width:84px;height:84px;display:grid;place-items:center}
.gfl-icon{width:58px;height:58px;border-radius:16px;display:grid;place-items:center;font-size:28px;
    background:var(--gs-panel);border:1px solid var(--gs-line);overflow:hidden;
    animation:gflPulse 1.6s ease-in-out infinite}
.gfl-icon img{width:100%;height:100%;object-fit:cover}
.gfl-icon .gli-connected-icon{width:32px;height:32px;color:var(--gs-accent)}
.gfl-ring{position:absolute;inset:0;border-radius:50%;border:2px solid transparent;
    border-top-color:#A8863F;animation:gflSpin .9s linear infinite}
.gfl-text{font-size:12.5px;font-weight:600;color:var(--gs-ink-dim);letter-spacing:.02em}
@keyframes gflSpin{to{transform:rotate(360deg)}}
@keyframes gflPulse{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(.94);opacity:.8}}
@media (prefers-reduced-motion:reduce){
    .gfl-ring{animation:none;border-color:var(--gs-line-strong)}
    .gfl-icon{animation:none}
}

@media (max-width:860px){
    /* La vue app commence SOUS la topbar sticky (même règle que chat/tasks) —
       sinon la topbar (z-index 80 > 60) avale la barre d'onglets et rogne le
       bandeau de l'app. */
    .gshell-appframe{left:0;top:calc(47px + env(safe-area-inset-top));
        bottom:calc(var(--gs-tabbar-h) + env(safe-area-inset-bottom))}
    .gshell-apphead .crumb{display:none}
}

/* =====================================================================
   HEADERS DE MODULES UNIFORMISÉS (mode coquille)
   =====================================================================
   Deux familles, chacune cohérente :
   1. Modules applicatifs (Chat, Tâches, apps embarquées) → bandeau fin
      clair identique à .gshell-apphead (fini les barres noires).
   2. Pages de contenu (Aujourd'hui, L'Actu, Mes demandes) → grand titre
      identique à .today-hi.
   ===================================================================== */

/* --- 1. Modules applicatifs : bandeau fin --- */
body.shell-on .chat-header,
body.shell-on .tasks-header{
    background:var(--gs-panel-2);
    color:var(--gs-ink);
    border-bottom:1px solid var(--gs-line);
    padding:10px 18px;
}
body.shell-on .chat-title,
body.shell-on .tasks-title{
    font-size:14.5px;font-weight:750;color:var(--gs-ink);letter-spacing:-.01em;
}
body.shell-on .tasks-new-btn{
    background:var(--gs-accent);color:#fff;border:none;border-radius:9px;
    padding:8px 14px;font-size:12.5px;font-weight:700;box-shadow:none;
}
body.shell-on[data-gtheme="dark"] .tasks-new-btn{color:#241f16}

/* surfaces des modules → tokens (cohérent clair/sombre) */
body.shell-on .chat-view{background:var(--gs-ground)}
body.shell-on .chat-sidebar{background:var(--gs-panel);border-right:1px solid var(--gs-line)}
body.shell-on .chat-sidebar-actions{border-bottom:1px solid var(--gs-line)}
body.shell-on .chat-pane{background:var(--gs-panel)}
body.shell-on .chat-messages{background:var(--gs-panel-2)}
body.shell-on .chat-conv-item{border-bottom:1px solid var(--gs-line)}
body.shell-on .tasks-view{background:var(--gs-ground)}
body.shell-on .tasks-toolbar{background:var(--gs-panel-2);border-bottom:1px solid var(--gs-line)}

/* --- 2. Header de module partagé (Apps, Sites, Réseaux, Outils, Plan, Actu…) --- */
.gshell-modulehead{display:none}
body.shell-on .gshell-modulehead{
    display:flex;
    position:sticky;top:0;z-index:70;
}
body.shell-on .gshell-modulehead.hidden{display:none}
/* le gros titre legacy de l'Actu est remplacé par le header de module */
body.shell-on .actu-header{display:none}
body.shell-on .actu-view{margin-top:18px}

/* Mes demandes (hors rail) : garde un titre aligné sur Aujourd'hui */
body.shell-on .mytickets-view{margin-top:26px}
body.shell-on .mytickets-title{
    font-size:clamp(22px,3vw,30px);
    font-weight:800;
    color:var(--gs-ink);
    letter-spacing:-.03em;
}
body.shell-on .mytickets-subtitle{
    font-family:ui-monospace,'SF Mono',monospace;
    font-size:11px;color:var(--gs-ink-faint);
    letter-spacing:.1em;text-transform:uppercase;
}

@media (max-width:860px){
    body.shell-on .gshell-modulehead{position:static}
}

/* --- Plan : la carte suit les tokens --- */
body.shell-on .plan-view{
    background:var(--gs-panel);
    border:1px solid var(--gs-line);
    border-radius:16px;
    box-shadow:none;
}
body.shell-on .plan-toolbar,
body.shell-on .plan-tabs{background:var(--gs-panel-2);border-color:var(--gs-line)}
body.shell-on .plan-status{border-color:var(--gs-line)}

/* =====================================================================
   PALETTE DE RECHERCHE (v1)
   ===================================================================== */
.gshell-pal-overlay{position:fixed;inset:0;z-index:120;background:rgba(20,17,12,.45);
    backdrop-filter:blur(3px);display:flex;align-items:flex-start;justify-content:center;
    padding:12vh 16px 16px}
.gshell-pal-overlay.hidden{display:none}
.gshell-pal{width:100%;max-width:560px;background:var(--gs-panel);border:1px solid var(--gs-line-strong);
    border-radius:16px;overflow:hidden;box-shadow:0 40px 90px -20px rgba(0,0,0,.5)}
.gshell-pal-input{display:flex;align-items:center;gap:11px;padding:14px 16px;
    border-bottom:1px solid var(--gs-line)}
.gshell-pal-input input{flex:1;border:none;outline:none;background:transparent;
    font-size:15px;font-family:inherit;color:var(--gs-ink)}
.gshell-pal-input input::placeholder{color:var(--gs-ink-faint)}
.gshell-pal-body{max-height:min(420px,55vh);overflow-y:auto;padding:6px}
.gshell-pal-lbl{font-family:ui-monospace,monospace;font-size:9px;letter-spacing:.16em;
    text-transform:uppercase;color:var(--gs-ink-faint);padding:8px 11px 3px}
.gshell-pal-item{display:flex;align-items:center;gap:11px;padding:9px 11px;border-radius:10px;
    cursor:pointer;border:1px solid transparent}
.gshell-pal-item.sel{background:var(--gs-accent-soft);border-color:var(--gs-line-strong)}
.gshell-pal-item .pi{width:28px;height:28px;border-radius:8px;flex:0 0 auto;display:grid;
    place-items:center;font-size:14px;background:var(--gs-panel-2);border:1px solid var(--gs-line)}
.gshell-pal-item .pi img{width:20px;height:20px;border-radius:5px;object-fit:cover}
/* Les espaces natifs (Diffusions, CRM…) arrivent avec l'icône vectorielle du
   lanceur : on la cale sur la taille des emojis voisins pour que la colonne
   d'icônes de la palette reste alignée. */
.gshell-pal-item .pi .gicon{width:17px;height:17px;color:var(--gs-accent)}
.gshell-pal-item .pt1{font-size:13px;font-weight:600;color:var(--gs-ink);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gshell-pal-item .pt2{font-size:10px;color:var(--gs-ink-faint);font-family:ui-monospace,monospace}
.gshell-pal-item .pt{flex:1;min-width:0}
/* Bannière « Recherche en cours… » : l'attente doit se voir dans la liste, pas
   seulement par le ⏳ du champ de saisie (ticket TPKHxita5elmnm1mTgVH). */
.gshell-pal-wait{display:flex;align-items:center;gap:9px;margin:4px 5px 2px;padding:8px 11px;
    border-radius:10px;background:var(--gs-panel-2);border:1px solid var(--gs-line)}
.gshell-pal-wait.hidden{display:none}
.gshell-pal-wait .pwt{font-size:11.5px;color:var(--gs-ink-dim);font-family:ui-monospace,monospace}
.gshell-pal-wait .pw{width:13px;height:13px;flex:0 0 auto;border-radius:50%;
    border:2px solid var(--gs-line-strong);border-top-color:var(--gs-accent);
    animation:gsPalSpin .7s linear infinite}
@keyframes gsPalSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
    .gshell-pal-wait .pw{animation:gsPalPulse 1.1s ease-in-out infinite}
}
@keyframes gsPalPulse{0%,100%{opacity:.35}50%{opacity:1}}
.gshell-pal-ai{margin:6px 5px 5px;display:flex;align-items:center;gap:11px;padding:11px 12px;
    border-radius:12px;background:linear-gradient(155deg,var(--gs-accent-soft),transparent);
    border:1px solid var(--gs-line-strong);cursor:pointer}
.gshell-pal-ai.hidden{display:none}
.gshell-pal-ai.sel{outline:2px solid var(--gs-accent)}
.gshell-pal-ai .pa{width:30px;height:30px;border-radius:9px;flex:0 0 auto;display:grid;
    place-items:center;font-size:15px;background:linear-gradient(150deg,var(--gs-gold-a),var(--gs-gold-b));
    color:#241f16}
.gshell-pal-ai .pt1{font-size:13px;font-weight:650;color:var(--gs-ink)}
.gshell-pal-ai .pt2{font-size:10.5px;color:var(--gs-ink-dim)}
.gshell-pal-foot{display:flex;gap:14px;justify-content:center;padding:9px;
    border-top:1px solid var(--gs-line);font-family:ui-monospace,monospace;font-size:10px;
    color:var(--gs-ink-faint)}

/* =====================================================================
   LANCEUR D'APPLICATIONS — choix instantané, sans quitter la vue courante
   ===================================================================== */
body.gshell-launcher-open [data-gs-route="apps"]{background:var(--gs-accent-soft);
    color:var(--gs-ink);font-weight:700;border-color:var(--gs-line-strong)}
body.gshell-launcher-open [data-gs-route="apps"] .ic{filter:none}
.gshell-launcher-overlay{position:fixed;inset:0;z-index:121;background:rgba(20,17,12,.42);
    backdrop-filter:blur(4px);padding:52px 32px 32px calc(var(--gs-rail-w) + 32px);
    display:flex;align-items:flex-start;justify-content:center}
.gshell-launcher-overlay.hidden{display:none}
.gshell-launcher{width:min(900px,100%);max-height:calc(100dvh - 84px);display:flex;
    flex-direction:column;background:var(--gs-panel);border:1px solid var(--gs-line-strong);
    border-radius:8px;overflow:hidden;box-shadow:0 34px 90px -24px rgba(0,0,0,.52)}
.gshell-launcher-head{display:flex;align-items:center;gap:12px;padding:16px 18px;
    border-bottom:1px solid var(--gs-line);background:var(--gs-panel)}
.gshell-launcher-symbol{width:42px;height:42px;display:grid;place-items:center;flex:none;
    border-radius:8px;background:var(--gs-accent-soft);border:1px solid var(--gs-line-strong);
    color:var(--gs-accent);font-size:24px;font-weight:700}
.gshell-launcher-symbol .gicon{width:23px;height:23px}
.gshell-launcher-heading{flex:1;min-width:0}
.gshell-launcher-heading h2{margin:0;font-family:'Outfit','Inter',sans-serif;font-size:21px;
    line-height:1.1;color:var(--gs-ink);letter-spacing:0}
.gshell-launcher-heading p{margin:4px 0 0;font-size:12px;color:var(--gs-ink-faint);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gshell-launcher-close,.gshell-launcher-manage{height:36px;border:1px solid var(--gs-line);
    border-radius:8px;background:var(--gs-panel-2);color:var(--gs-ink-dim);cursor:pointer;
    font-family:inherit;display:inline-flex;align-items:center;justify-content:center}
.gshell-launcher-close{width:36px;padding:0;font-size:23px;line-height:1}
.gshell-launcher-manage{gap:6px;padding:0 12px;font-size:12px;font-weight:650}
.gshell-launcher-manage .gicon{width:16px;height:16px}
.gshell-launcher-close:hover,.gshell-launcher-manage:hover{border-color:var(--gs-line-strong);
    color:var(--gs-ink);background:var(--gs-accent-soft)}
.gshell-launcher-manage.hidden{display:none}
.gshell-launcher-search{margin:14px 18px 2px;height:42px;display:flex;align-items:center;gap:10px;
    padding:0 13px;border:1px solid var(--gs-line-strong);border-radius:8px;background:var(--gs-panel-2);
    color:var(--gs-ink-faint)}
.gshell-launcher-search:focus-within{border-color:var(--gs-accent);
    box-shadow:0 0 0 3px var(--gs-accent-soft)}
.gshell-launcher-search>span{width:20px;height:20px;display:grid;place-items:center}
.gshell-launcher-search>span .gicon{width:17px;height:17px}
.gshell-launcher-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;
    color:var(--gs-ink);font:500 13.5px 'Inter',system-ui,sans-serif}
.gshell-launcher-search input::placeholder{color:var(--gs-ink-faint)}
.gshell-launcher-search input::-webkit-search-cancel-button{filter:grayscale(1);opacity:.55}
.gshell-launcher-body{min-height:0;overflow-y:auto;padding:13px 18px 20px;overscroll-behavior:contain}
.gshell-launcher-section+.gshell-launcher-section{margin-top:20px}
.gshell-launcher-section.hidden{display:none}
.gshell-launcher-section-head{height:24px;display:flex;align-items:center;gap:8px;margin-bottom:8px}
.gshell-launcher-section-head h3{margin:0;font:750 10px ui-monospace,'SF Mono',monospace;
    letter-spacing:.12em;text-transform:uppercase;color:var(--gs-ink-faint)}
.gshell-launcher-section-head span{min-width:18px;height:18px;padding:0 5px;border-radius:9px;
    display:grid;place-items:center;background:var(--gs-panel-2);color:var(--gs-ink-faint);
    font:700 9.5px ui-monospace,'SF Mono',monospace}
.gshell-launcher-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:8px}
.gshell-launcher-card{position:relative;min-width:0;background:var(--gs-panel);
    border:1px solid var(--gs-line);border-radius:8px;overflow:hidden;
    transition:border-color .15s,background .15s,transform .12s}
.gshell-launcher-card:hover{border-color:var(--gs-line-strong);background:var(--gs-panel-2);
    transform:translateY(-1px)}
.gshell-launcher-card.is-open{border-color:var(--gs-line-strong)}
.gli-main{width:100%;min-height:84px;display:flex;align-items:center;gap:12px;padding:12px 42px 12px 12px;
    border:0;background:transparent;text-align:left;cursor:pointer;font-family:inherit;color:inherit}
.gli-icon{position:relative;width:50px;height:50px;display:grid;place-items:center;flex:none;
    border-radius:8px;background:var(--gs-panel-2);border:1px solid var(--gs-line);overflow:visible}
.gli-icon .gli-emoji{font-size:25px;line-height:1}
.gli-icon .gli-connected-icon{width:27px;height:27px;color:var(--gs-accent)}
.gli-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:7px}
.gli-badge{position:absolute;z-index:2;top:-7px;right:-7px;min-width:20px;height:20px;padding:0 5px;
    display:grid;place-items:center;border-radius:10px;background:var(--gs-crit);color:#fff;
    font:800 9.5px ui-monospace,'SF Mono',monospace;box-shadow:0 0 0 2px var(--gs-panel)}
.gli-badge.overdue{background:var(--gs-crit)}
.gli-badge.hidden{display:none} /* pastilles remplies par applyBadge (data-gs-badge) */
.gli-copy{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.gli-copy strong{font-size:13.5px;line-height:1.25;color:var(--gs-ink);font-weight:700;
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gli-copy small{font-size:10.5px;line-height:1.3;color:var(--gs-ink-faint);
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gli-open{display:flex;align-items:center;gap:5px;margin-top:2px;color:var(--gs-ok);
    font:700 9.5px ui-monospace,'SF Mono',monospace;text-transform:uppercase;letter-spacing:.05em}
.gli-open i{width:6px;height:6px;border-radius:50%;background:var(--gs-ok)}
.gli-fav{position:absolute;top:8px;right:8px;width:30px;height:30px;border:0;border-radius:8px;
    display:grid;place-items:center;background:transparent;color:var(--gs-ink-faint);cursor:pointer;
    font-size:19px;line-height:1;transition:background .15s,color .15s}
.gli-fav:hover{background:var(--gs-accent-soft);color:var(--gs-accent)}
.gli-fav.on{color:var(--gs-accent)}
.gshell-launcher-empty{padding:56px 20px;text-align:center;color:var(--gs-ink-faint)}
.gshell-launcher-empty.hidden{display:none}
.gshell-launcher-empty>span{display:block;font-size:34px;margin-bottom:8px}
.gshell-launcher-empty strong{display:block;color:var(--gs-ink);font-size:14px}
.gshell-launcher-empty p{font-size:12px;margin:5px 0 0}

@media (max-width:860px){
    .gshell-launcher-overlay{top:0;right:0;left:0;
        bottom:calc(var(--gs-tabbar-h) + env(safe-area-inset-bottom));padding:0;background:var(--gs-panel)}
    .gshell-launcher{width:100%;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none}
    .gshell-launcher-head{padding:calc(11px + env(safe-area-inset-top)) 12px 11px}
    .gshell-launcher-symbol{width:36px;height:36px;font-size:21px}
    .gshell-launcher-heading h2{font-size:18px}
    .gshell-launcher-heading p{display:none}
    .gshell-launcher-manage{width:36px;padding:0}
    .gshell-launcher-manage span{display:none}
    .gshell-launcher-search{margin:11px 12px 2px}
    .gshell-launcher-body{padding:11px 12px 20px}
    .gshell-launcher-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
    .gshell-launcher-card{overflow:visible}
    .gli-main{min-height:112px;flex-direction:column;justify-content:flex-start;gap:7px;
        padding:11px 5px 8px;text-align:center}
    .gli-icon{width:52px;height:52px}
    .gli-copy{width:100%;align-items:center}
    .gli-copy strong{width:100%;font-size:11.5px;line-height:1.2;white-space:normal;
        display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
    .gli-copy small,.gli-open{display:none}
    .gli-fav{top:3px;right:3px;width:26px;height:26px;font-size:16px;background:var(--gs-panel)}
    .gli-badge{top:-5px;right:-5px}
}

/* =====================================================================
   DRAWER PROFIL & NOTIFICATIONS (glisse par-dessus le rail, à gauche)
   ===================================================================== */
.gshell-drawer-overlay{position:fixed;inset:0;z-index:117;background:rgba(20,17,12,.4);
    backdrop-filter:blur(2px);opacity:1;transition:opacity .25s ease}
.gshell-drawer-overlay.hidden{display:none}
.gshell-drawer{position:fixed;top:0;left:0;bottom:0;z-index:118;
    width:min(330px,88vw);
    background:var(--gs-panel);
    border-right:1px solid var(--gs-line-strong);
    box-shadow:24px 0 60px -30px rgba(0,0,0,.35);
    display:flex;flex-direction:column;
    transform:translateX(0);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.gshell-drawer.hidden{transform:translateX(-105%);visibility:hidden;transition:transform .3s,visibility 0s .3s}
/* Ouvert depuis la cloche (mobile) : glisse depuis la DROITE */
.gshell-drawer.from-right{left:auto;right:0;
    border-right:none;border-left:1px solid var(--gs-line-strong);
    box-shadow:-24px 0 60px -30px rgba(0,0,0,.35)}
.gshell-drawer.from-right.hidden{transform:translateX(105%)}

.gshell-drawer-head{display:flex;align-items:center;gap:11px;padding:18px 16px 14px;
    border-bottom:1px solid var(--gs-line);flex-shrink:0}
.gshell-drawer-head .gda img{width:40px;height:40px;border-radius:50%;object-fit:cover}
.gshell-drawer-head .gda .ua{width:40px;height:40px;border-radius:50%;background:var(--gs-panel-2);
    border:1px solid var(--gs-line-strong);display:grid;place-items:center;font-size:15px;
    font-weight:800;color:var(--gs-accent)}
.gdh-txt{flex:1;min-width:0}
.gdh-name{font-family:'Outfit','Inter',sans-serif;font-size:15px;font-weight:750;color:var(--gs-ink);
    white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gdh-role{font-family:ui-monospace,'SF Mono',monospace;font-size:9px;color:var(--gs-ink-faint);
    letter-spacing:.1em;text-transform:uppercase;margin-top:2px}
.gshell-drawer-x{background:none;border:none;font-size:22px;color:var(--gs-ink-faint);
    cursor:pointer;padding:4px 8px;line-height:1}
.gshell-drawer-x:hover{color:var(--gs-ink)}

.gshell-drawer-scroll{flex:1;overflow-y:auto;padding:12px 12px 8px;display:flex;
    flex-direction:column;gap:3px}
/* (.gshell-drawer-lbl / -readall / .gshell-notif* ont été retirés avec la liste
   de notifications du drawer profil — lot 1. Le tiroir dédié vit plus bas,
   sous le préfixe `gnotif-`. Les réglages — langue, thème, Gmail, Basecamp,
   notifications, verrou — sont partis le 30/09/2026 dans le panneau
   Paramètres (.gset-*, plus bas) avec leurs styles .gshell-drawer-inline /
   -pushhint / -sectitre / -sep.) */

.gshell-drawer-row{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:11px;
    font-size:13.5px;font-weight:550;color:var(--gs-ink-dim);cursor:pointer;text-decoration:none;
    transition:background .12s,color .12s}
.gshell-drawer-row:hover{background:var(--gs-accent-soft);color:var(--gs-ink)}
.gshell-drawer-row .ic{width:20px;text-align:center}
.gshell-drawer-row .arr{margin-left:auto;font-size:12px;color:var(--gs-ink-faint)}
/* ⚙️ Paramètres : la seule ligne de la colonne qui mène à des réglages. Elle
   dit ce qu'elle contient et se détache des raccourcis qui l'entourent. */
.gshell-drawer-settings{width:100%;border:1px solid var(--gs-line-strong);background:var(--gs-accent-soft);
    color:var(--gs-ink);font-family:inherit;text-align:left;margin:2px 0}
.gshell-drawer-settings:hover{border-color:var(--gs-accent)}
.gshell-drawer-settings .gdr-txt{display:flex;flex-direction:column;min-width:0;font-weight:650}
.gshell-drawer-settings .gdr-txt small{margin-top:1px;font-size:11px;font-weight:500;color:var(--gs-ink-faint)}
.gshell-drawer-settings .arr{font-size:18px}

.gshell-seg{display:inline-flex;gap:3px;background:var(--gs-panel-2);border:1px solid var(--gs-line);
    border-radius:999px;padding:3px}
.gshell-seg .opt{font-size:11px;font-weight:600;color:var(--gs-ink-dim);padding:4px 11px;
    border-radius:999px;cursor:pointer;transition:background .15s,color .15s}
.gshell-seg .opt.on{background:var(--gs-accent);color:#fff}
body.shell-on[data-gtheme="dark"] .gshell-seg .opt.on{color:#241f16}

/* Interrupteur « Notifications appareil » (push) */
.gshell-push-toggle{position:relative;width:42px;height:24px;border-radius:999px;border:none;
    background:var(--gs-panel-2);cursor:pointer;padding:0;flex-shrink:0;transition:background .2s;
    box-shadow:inset 0 0 0 1px var(--gs-line)}
.gshell-push-toggle .gpt-knob{position:absolute;top:2px;left:2px;width:20px;height:20px;border-radius:50%;
    background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .2s}
.gshell-push-toggle.on{background:var(--gs-accent)}
.gshell-push-toggle.on .gpt-knob{transform:translateX(18px)}

.gshell-drawer-logout{margin:10px 12px calc(14px + env(safe-area-inset-bottom));flex-shrink:0;
    background:none;border:1px solid rgba(184,84,67,.4);color:var(--gs-crit);
    border-radius:11px;padding:11px;font-family:inherit;font-size:13px;font-weight:650;
    cursor:pointer;transition:background .15s}
.gshell-drawer-logout:hover{background:rgba(184,84,67,.08)}

/* =====================================================================
   PASSE MODE SOMBRE — les modules internes suivent les tokens
   ===================================================================== */
/* --- Génériques : modals + champs de formulaire --- */
body.shell-on[data-gtheme="dark"] .modal-content{
    background:var(--gs-panel);color:var(--gs-ink);border:1px solid var(--gs-line-strong)}
body.shell-on[data-gtheme="dark"] .modal-content h3{color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .modal-content label{color:var(--gs-ink-dim)}
body.shell-on[data-gtheme="dark"] .modal-content input,
body.shell-on[data-gtheme="dark"] .modal-content textarea,
body.shell-on[data-gtheme="dark"] .modal-content select{
    background:var(--gs-panel-2);color:var(--gs-ink);border-color:var(--gs-line-strong)}
body.shell-on[data-gtheme="dark"] .form-hint{color:var(--gs-ink-faint)}

/* --- Chat --- */
body.shell-on[data-gtheme="dark"] .chat-conv-name,
body.shell-on[data-gtheme="dark"] .chat-pane-name{color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .chat-conv-preview,
body.shell-on[data-gtheme="dark"] .chat-pane-subtitle{color:var(--gs-ink-dim)}
body.shell-on[data-gtheme="dark"] .chat-conv-item:hover{background:var(--gs-panel-2)}
body.shell-on[data-gtheme="dark"] .chat-conv-active,
body.shell-on[data-gtheme="dark"] .chat-conv-active:hover{background:var(--gs-accent-soft)}
/* Même encre héritée que style.css pose sur .chat-msg-bubble, mais au jeton du
   shell : la bulle d'appel et la transcription d'un vocal se lisent alors
   exactement comme le texte des messages, et non un cran plus pâle. */
body.shell-on[data-gtheme="dark"] .chat-msg-bubble{color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .chat-msg-content{
    background:var(--gs-panel);border-color:var(--gs-line-strong);color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .chat-msg-author{color:var(--gs-accent)}
body.shell-on[data-gtheme="dark"] .chat-msg-time,
body.shell-on[data-gtheme="dark"] .chat-conv-time{color:var(--gs-ink-faint)}
body.shell-on[data-gtheme="dark"] .chat-day-sep{color:var(--gs-ink-faint)}
body.shell-on[data-gtheme="dark"] .chat-day-sep::before,
body.shell-on[data-gtheme="dark"] .chat-day-sep::after{background:var(--gs-line)}
body.shell-on[data-gtheme="dark"] .chat-composer{background:var(--gs-panel);border-top-color:var(--gs-line)}
body.shell-on[data-gtheme="dark"] .chat-composer textarea{
    background:var(--gs-panel-2);color:var(--gs-ink);border-color:var(--gs-line-strong)}
body.shell-on[data-gtheme="dark"] .chat-pane-header{border-bottom-color:var(--gs-line)}
body.shell-on[data-gtheme="dark"] .chat-empty,
body.shell-on[data-gtheme="dark"] .chat-empty-list,
body.shell-on[data-gtheme="dark"] .chat-loading{color:var(--gs-ink-faint)}
body.shell-on[data-gtheme="dark"] .chat-user-item:hover{background:var(--gs-panel-2)}
body.shell-on[data-gtheme="dark"] .chat-user-name{color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .chat-tool-btn{
    background:var(--gs-panel-2);border-color:var(--gs-line-strong);color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .chat-tool-btn:hover{
    background:var(--gs-accent-soft);border-color:var(--gs-accent)}
body.shell-on[data-gtheme="dark"] .chat-attach-preview{
    background:var(--gs-panel-2);border-color:var(--gs-line-strong);color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .chat-att-file{
    background:var(--gs-panel);border-color:var(--gs-line-strong);color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .chat-att-file:hover{
    background:var(--gs-panel-2);border-color:var(--gs-accent)}
body.shell-on[data-gtheme="dark"] .chat-att-img{background:var(--gs-panel-2)}
body.shell-on[data-gtheme="dark"] .chat-pane.chat-dropping::after{
    background:rgba(32,29,25,.92);border-color:var(--gs-accent);color:var(--gs-accent)}
body.shell-on[data-gtheme="dark"] .chat-rec-time{color:var(--gs-ink)}

/* --- Tâches --- */
body.shell-on[data-gtheme="dark"] .tasks-card{
    background:var(--gs-panel);border-color:var(--gs-line);color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .tasks-card:hover{border-color:var(--gs-line-strong)}
body.shell-on[data-gtheme="dark"] .tasks-filter{
    background:var(--gs-panel);border-color:var(--gs-line);color:var(--gs-ink-dim)}
body.shell-on[data-gtheme="dark"] .tasks-filter.active{
    background:var(--gs-accent);color:#241f16;border-color:var(--gs-accent)}
body.shell-on[data-gtheme="dark"] .tasks-comment{background:var(--gs-panel-2)}
body.shell-on[data-gtheme="dark"] .tasks-comment-content,
body.shell-on[data-gtheme="dark"] .tasks-detail{color:var(--gs-ink)}

/* --- L'Actu / Mes demandes --- */
body.shell-on[data-gtheme="dark"] .changelog-card,
body.shell-on[data-gtheme="dark"] .mt-card{
    background:var(--gs-panel);border-color:var(--gs-line);color:var(--gs-ink)}
body.shell-on[data-gtheme="dark"] .changelog-card:hover,
body.shell-on[data-gtheme="dark"] .mt-card:hover{border-color:var(--gs-line-strong)}
body.shell-on[data-gtheme="dark"] .mt-card-message{color:var(--gs-ink-dim)}

/* --- Aujourd'hui : déjà tokens ✓ ; divers restes clairs --- */
body.shell-on[data-gtheme="dark"] .toggle-btn,
body.shell-on[data-gtheme="dark"] .view-toggle{background:var(--gs-panel-2)}
body.shell-on[data-gtheme="dark"] #toast{background:var(--gs-panel-2)!important;color:var(--gs-ink)}

/* =====================================================================
   BRIEFING IA (Aujourd'hui)
   ===================================================================== */
.tb-spacer{flex:1}
.tb-time{font-family:ui-monospace,'SF Mono',monospace;font-size:9px;color:var(--gs-ink-faint);
    letter-spacing:.05em;white-space:nowrap}
.tb-refresh{background:none;border:1px solid var(--gs-line);border-radius:8px;
    font-size:12px;padding:4px 8px;cursor:pointer;line-height:1;
    filter:grayscale(1) opacity(.6);transition:filter .15s,border-color .15s}
.tb-refresh:hover{filter:none;border-color:var(--gs-line-strong)}
.tb-refresh.spin{animation:tbSpin 1s linear infinite;filter:none}
@keyframes tbSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.tb-refresh.spin{animation:none}}

.tb-skel{display:block;height:11px;border-radius:6px;margin:7px 0;
    background:linear-gradient(90deg,var(--gs-accent-soft) 25%,rgba(168,134,63,.22) 50%,var(--gs-accent-soft) 75%);
    background-size:200% 100%;animation:tbShimmer 1.4s ease infinite}
.tb-skel.short{width:62%}
@keyframes tbShimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.tb-skel{animation:none}}

/* =====================================================================
   NOTES PERSONNELLES
   ===================================================================== */
.notes-view{max-width:1060px;margin:0 auto;padding:22px 24px 60px}
.notes-view.hidden{display:none}
.notes-new-btn{display:flex;align-items:center;gap:10px;width:100%;margin-bottom:18px;
    background:var(--gs-panel);border:1px dashed var(--gs-line-strong);border-radius:14px;
    padding:15px 16px;cursor:pointer;font-family:inherit;font-size:14px;font-weight:600;
    color:var(--gs-ink-dim);text-align:left;transition:border-color .15s,color .15s,background .15s}
.notes-new-btn:hover{border-color:var(--gs-accent);color:var(--gs-ink);background:var(--gs-accent-soft)}
.notes-new-plus{font-size:20px;font-weight:700;line-height:1;color:var(--gs-accent)}

.notes-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px}
.note-card{position:relative;background:var(--gs-panel);border:1px solid var(--gs-line);
    border-radius:14px;padding:15px 16px;cursor:pointer;display:flex;flex-direction:column;gap:7px;
    transition:border-color .15s,transform .12s;min-height:90px}
.note-card:hover{border-color:var(--gs-line-strong);transform:translateY(-2px)}
.note-card.pinned{border-color:var(--gs-line-strong);background:linear-gradient(155deg,var(--gs-accent-soft),var(--gs-panel))}
.note-pin{position:absolute;top:10px;right:12px;font-size:13px}
.note-title{font-family:'Outfit','Inter',sans-serif;font-size:14px;font-weight:700;
    color:var(--gs-ink);letter-spacing:-.01em;line-height:1.3;padding-right:20px}
.note-body{font-size:12.5px;color:var(--gs-ink-dim);line-height:1.45;white-space:pre-line;
    display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.note-card-foot{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:8px}
.note-date{font-family:ui-monospace,'SF Mono',monospace;font-size:9.5px;
    color:var(--gs-ink-faint);letter-spacing:.06em;text-transform:uppercase}
.note-att-badge{font-size:10px;font-weight:700;color:var(--gs-ink-dim);
    background:var(--gs-accent-soft);border-radius:999px;padding:2px 8px;white-space:nowrap}
.notes-empty{grid-column:1/-1;padding:32px 20px;text-align:center;color:var(--gs-ink-faint);
    font-size:13.5px;background:var(--gs-panel);border:1px dashed var(--gs-line-strong);border-radius:14px}

/* =====================================================================
   CHAT MOBILE — liste d'abord, conversation plein écran avec retour
   ===================================================================== */
.chat-pane-back{display:none}

/* La rangée « Communications » disparaît partout sous le shell (02/09,
   demande Mathieu) : la topbar porte déjà la cloche (elle y était DEUX fois),
   l'onglet actif du bas nomme déjà la destination, et le crayon ✏️ est
   remplacé par le rond flottant .chat-fab. Hors shell (accès legacy), la
   rangée reste — elle y est la seule navigation. */
body.shell-on .chat-header{display:none}

/* Nouveau message — rond flottant bas droite, au-dessus de la tabbar.
   Desktop : masqué (la sidebar a son bouton « ➕ Nouvelle conversation »).
   Conversation ouverte (.show-pane) : masqué, il couvrirait le composeur. */
.chat-fab{display:none}
@media (max-width:860px){
    body.shell-on .chat-view:not(.show-pane) .chat-fab{
        display:flex;align-items:center;justify-content:center;
        position:absolute;right:16px;bottom:calc(24px + env(safe-area-inset-bottom));
        width:54px;height:54px;border-radius:50%;border:1px solid var(--gs-line-strong);
        background:linear-gradient(135deg,var(--gs-gold-a),var(--gs-gold-b));
        color:#241f16;font-size:21px;line-height:1;cursor:pointer;z-index:60;
        box-shadow:0 8px 22px rgba(30,25,15,.28)}
    body.shell-on .chat-view .chat-fab:active{transform:scale(.94)}
}

@media (max-width:860px){
    body.shell-on .chat-body{grid-template-columns:1fr}
    body.shell-on .chat-view .chat-sidebar{display:flex!important;border-right:none}
    body.shell-on .chat-view .chat-pane{display:none!important}
    body.shell-on .chat-view.show-pane .chat-sidebar{display:none!important}
    body.shell-on .chat-view.show-pane .chat-pane{display:flex!important}

    .chat-pane-back{display:inline-flex;align-items:center;justify-content:center;
        width:34px;height:34px;border-radius:10px;flex:0 0 auto;
        background:var(--gs-panel);border:1px solid var(--gs-line);
        font-size:17px;color:var(--gs-ink);cursor:pointer;font-family:inherit}
}

/* =====================================================================
   MENU DE NAVIGATION PAR LA MARQUE (mobile : le rail devient un drawer)
   ===================================================================== */
.gshell-nav-overlay{position:fixed;inset:0;z-index:113;background:rgba(20,17,12,.45);
    backdrop-filter:blur(2px)}
.gshell-nav-overlay.hidden{display:none}
.gshell-topbar-brand{display:flex;align-items:center;gap:10px;background:none;border:none;
    padding:0;font-family:inherit;cursor:pointer}

@media (max-width:860px){
    body.shell-on.gshell-nav-open .gshell-rail{
        display:flex!important;
        position:fixed;top:0;left:0;bottom:0;
        width:min(300px,85vw);
        z-index:114;
        padding-top:calc(16px + env(safe-area-inset-top));
        padding-bottom:calc(12px + env(safe-area-inset-bottom));
        box-shadow:24px 0 60px -28px rgba(0,0,0,.45);
        overflow-y:auto;
    }
}

/* =====================================================================
   RANGÉE ⚡ ACTION (commande en langage naturel dans la palette)
   ===================================================================== */
.gshell-pal-item.gshell-pal-cmd{
    background:linear-gradient(155deg,var(--gs-accent-soft),transparent);
    border:1px solid var(--gs-accent);
}
.gshell-pal-item.gshell-pal-cmd .pi{
    background:linear-gradient(150deg,var(--gs-gold-a),var(--gs-gold-b));
    border:none;color:#241f16;
}
.gshell-pal-item.gshell-pal-cmd .pt1{font-weight:750}
.gshell-pal-item.gshell-pal-cmd.sel{outline:2px solid var(--gs-accent);outline-offset:-1px}

/* =====================================================================
   FIXES MOBILE — chat sous la topbar + largeurs contraintes
   ===================================================================== */
@media (max-width:860px){
    /* les vues fixed commencent SOUS la topbar sticky (sinon elle couvre
       leur bandeau) */
    body.shell-on .chat-view,
    body.shell-on .tasks-view{top:calc(47px + env(safe-area-inset-top))}

    /* rien ne déborde de l'écran */
    body.shell-on .chat-view{left:0;right:0;width:auto}
    body.shell-on .chat-sidebar{width:100%;min-width:0;max-width:100%;box-sizing:border-box}
    body.shell-on .chat-sidebar-actions{box-sizing:border-box}
    body.shell-on .chat-new-btn{width:100%;box-sizing:border-box}
    body.shell-on .chat-conv-item{max-width:100%;box-sizing:border-box}
    body.shell-on .chat-pane{min-width:0}
    body.shell-on .chat-composer{box-sizing:border-box}

    /* le drawer profil garde son safe-area en haut */
    .gshell-drawer{padding-top:env(safe-area-inset-top)}
}

/* Fil d'Ariane du cadre d'app : « Apps » ramène à la grille */
.gshell-apphead .crumb-apps{cursor:pointer;text-decoration:underline dotted;text-underline-offset:2px}
.gshell-apphead .crumb-apps:hover{color:var(--gs-accent)}

/* (Les outils épingle/croix au survol sont partis avec la liste du drawer
   profil : dans le tiroir dédié, les actions sont visibles en permanence —
   au doigt, un survol n'existe pas.) */

/* Accordéon Outils Admin : entrées du groupe légèrement en retrait */
#gshellAdminSub{padding-left:14px}
#gshellAdminSub .gshell-item{font-size:12.8px;padding:8px 10px}


/* ── Mobile : conversation ouverte = plein écran ──
   On retire la topbar GANDALF et le bandeau « Chat employés » : il ne reste
   que la bande des conversations, le bandeau retour/nom, puis les messages. */
@media (max-width:860px){
    body.shell-on:has(.chat-view.show-pane:not(.hidden)) .gshell-topbar{display:none}
    /* …et la barre d'onglets du bas (façon Messenger) : conversation immersive,
       le composeur descend au ras du bas, le clavier ne se bat plus avec la barre. */
    body.shell-on:has(.chat-view.show-pane:not(.hidden)) .gshell-tabbar{display:none}
    /* La vue colle TOUJOURS au bas (bottom:0). L'inset bas y creusait un espace
       ou l'on voyait le fond du <body> — blanc a POINTILLES BEIGE (#F1EADA,
       style.css:28) — sous le composeur, clavier ouvert.
       La protection de la barre gestuelle n'est pas perdue : elle passe sur le
       COMPOSEUR juste en dessous, dont le fond est blanc PLEIN. Un seul niveau
       la porte donc a la fois — jamais les deux (l'addition des deux avait
       cause ~60px morts sur Android, ticket Lh7zXAFyXperO3frUKNJ).
       Aucune detection de clavier ici : elle s'est revelee non fiable en PWA
       iOS, ou innerHeight retrecit en meme temps que le viewport visuel. */
    body.shell-on .chat-view.show-pane{top:env(safe-area-inset-top);bottom:0}
    /* Le conteneur ci-dessus porte DÉJÀ l'inset bas : le repli safe-area du
       composeur (style.css, 0bc3454) s'y ADDITIONNAIT — max() ne déduit rien —
       → ~60px morts sous l'input sur Android 15 edge-to-edge (suite du
       ticket Lh7zXAFyXperO3frUKNJ, même doctrine que .ai-chat-input). */
    /* Le composeur porte desormais l'inset : son fond blanc PLEIN recouvre la
       zone de la barre gestuelle, sans laisser voir le pointille du body.
       Clavier ouvert, la classe kb-open le retire (barre recouverte) ; si la
       detection echoue, on garde au pire un peu de blanc — jamais de pointille. */
    body.shell-on .chat-view.show-pane .chat-composer{padding-bottom:calc(var(--chat-composer-pb, 12px) + env(safe-area-inset-bottom))}
    body.shell-on.kb-open .chat-view.show-pane .chat-composer{padding-bottom:var(--chat-composer-pb, 12px)}
    body.shell-on .chat-view.show-pane .chat-header{display:none}
    /* La bande des conversations passe AU-DESSUS du bandeau retour/nom */
    body.shell-on .chat-view.show-pane .chat-pane{display:flex;flex-direction:column}
    body.shell-on .chat-view.show-pane .chat-conv-strip{order:-1}
}

/* ── Mobile : fiche de tâche ouverte = plein écran ──
   Même doctrine que la conversation ci-dessus, pour la même raison.

   La fiche ne s'empilait pas SOUS la liste — celle-ci est bien remplacée —
   mais tout le chrome au-dessus restait : barre GANDALF (47px), en-tête du
   module, onglets des tâches ouvertes, rangée des projets, bandeau « Activité
   récente », barre d'onglets du bas (62px). Sur un 360×740, ~250px avant le
   titre de la tâche. Clavier ouvert, il ne restait plus de quoi lire ce qu'on
   écrivait (ticket Dany).

   Breakpoint 860px — celui de .gshell-topbar/.gshell-tabbar, PAS le 640px de
   la passe cosmétique des tâches : ces règles pilotent le chrome du shell.

   :not(.hidden) — la vue garde ses classes une fois masquée. Sans cette
   garde, quitter Tâches fiche ouverte escamotait la barre du bas dans TOUTE
   l'app. TasksView.close() retire aussi show-pane ; les deux se couvrent. */
@media (max-width:860px){
    body.shell-on:has(.tasks-view.show-pane:not(.hidden)) .gshell-topbar{display:none}
    body.shell-on:has(.tasks-view.show-pane:not(.hidden)) .gshell-tabbar{display:none}
    /* Sinon les décalages qui esquivaient ces deux barres (top:47px+inset,
       bottom:62px+inset) laisseraient deux bandes mortes à leur place. */
    body.shell-on .tasks-view.show-pane{top:env(safe-area-inset-top);bottom:0}
    body.shell-on .tasks-view.show-pane .tasks-header,
    body.shell-on .tasks-view.show-pane .tasks-tabs,
    body.shell-on .tasks-view.show-pane .tasks-projects-row,
    body.shell-on .tasks-view.show-pane .tasks-toolbar{display:none}
    /* Les 90px réservés à la barre du bas n'ont plus lieu d'être ; l'inset
       protège la barre gestuelle. Le fil de commentaires récupère la place. */
    body.shell-on .tasks-view.show-pane .tasks-list{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
    /* PANNE — 152 px de vide en bas de CHAQUE liste, fiche fermée.
       Cette correction existait, mais uniquement `.show-pane` : la liste
       seule, celle qu'on regarde 90 % du temps, gardait les deux réserves
       pour la même barre d'onglets. `.tasks-view` s'arrête DÉJÀ au-dessus
       d'elle (l.230, `bottom:62px+inset`) et `.tasks-list` en rajoutait 90
       par-dessus (style.css, passe ≤640). 62 + 90 = 152 px morts, soit près
       de deux cartes de tâche sur un écran de 844.
       L'inset n'est PAS répété ici, contrairement à la règle du dessus :
       fiche fermée la barre d'onglets est visible, et le `bottom` de la vue
       l'a déjà consommé. Le répéter recréerait le défaut en plus petit. */
    body.shell-on .tasks-view:not(.show-pane) .tasks-list{padding-bottom:12px}
}

/* =====================================================================
   MODE FENÊTRE DÉTACHÉE (?popup=1) — ticket 8dkCYgGsHgnD0YoJzKe8
   =====================================================================
   « Être dans les tâches et en conversation en même temps. » La fenêtre EST
   la section : on masque TOUTE la coquille du hub (rail, topbar/tabbar
   mobiles, header, dashboard, footer, widgets flottants).

   Ce gabarit existait déjà, mais réservé à l'assistant (body.ai-popup-mode,
   ai-chat.css). Il est ici GÉNÉRIQUE ; ai-popup-mode reste posée en plus sur
   la section Gandalf, car l'assistant a ses propres réglages détaillés
   (sidebar fixe, bouton de repli recalé) qu'on ne rejoue pas.

   On ne touche qu'au LAYOUT (display/tailles) — aucune couleur : les deux
   thèmes restent corrects via les variables existantes. */
body.gs-popup-mode .gshell-rail,
body.gs-popup-mode .gshell-topbar,
body.gs-popup-mode .gshell-tabbar,
body.gs-popup-mode .main-header,
body.gs-popup-mode main.container-dashboard,
body.gs-popup-mode .app-footer,
body.gs-popup-mode #chatbot-toggle,
body.gs-popup-mode #bug-report-btn{display:none!important}

/* La coquille décale #app-content pour le rail (padding-left) et la tabbar
   (padding-bottom) : en fenêtre détachée on repart de zéro. */
body.gs-popup-mode #app-content{padding-left:0!important;padding-bottom:0!important}

/* Les vues plein-écran occupent 100 % de la fenêtre : le rail et la tabbar
   qui les rognaient n'existent plus ici. */
body.gs-popup-mode .chat-view,
body.gs-popup-mode .tasks-view{
    left:0!important;right:0!important;top:0!important;bottom:0!important;
    height:100vh!important;height:100dvh!important;
}

/* Une fenêtre déjà détachée ne propose pas de se détacher elle-même : elle se
   ferme par la croix système. (Idem côté assistant, voir ai-chat.css.) */
body.gs-popup-mode .gs-detach-btn{display:none!important}

/* --- Fenêtre d'UNE entité (?conv=…, ?task=…) : la liste latérale n'a plus
   de raison d'être — la fenêtre EST la conversation. Sans ça, une popup de
   560 px de large donnait 320 px de liste et 240 px de conversation. --- */
body.gs-popup-mode.gs-popup-solo .chat-sidebar{display:none!important}
body.gs-popup-mode.gs-popup-solo .chat-body{grid-template-columns:1fr!important}
/* Le bandeau mobile liste↔conversation ne veut plus rien dire non plus. */
body.gs-popup-mode.gs-popup-solo .chat-conv-strip{display:none!important}
/* L'en-tête de la vue porte le titre de la section, redondant avec le nom de
   la conversation juste en dessous (et avec le titre de la fenêtre). */
body.gs-popup-mode.gs-popup-solo .chat-header{display:none!important}

/* --- Bouton « détacher » (en-tête de conversation) -----------------------
   Même gabarit que 📞/🎥 juste à côté : ce n'est pas une action à part, c'est
   une action de plus sur la conversation. Discret par défaut, il s'allume au
   survol — on ne détache pas une conversation vingt fois par jour. */
.chat-pane-detach{
    background:none;border:none;cursor:pointer;
    font-size:16px;line-height:1;padding:4px 6px;border-radius:8px;
    opacity:.55;transition:opacity .15s,background .15s;
}
.chat-pane-detach:hover{opacity:1;background:rgba(120,100,70,.12)}
body[data-gtheme="dark"] .chat-pane-detach:hover{background:rgba(221,203,164,.13)}
/* Sur téléphone, une « fenêtre détachée » ne veut rien dire : le bouton
   n'existe pas plutôt que d'exister sans rien faire. */
@media (max-width:860px){.chat-pane-detach{display:none!important}}

/* =====================================================================
   TIROIR DES NOTIFICATIONS (glisse depuis la DROITE, par-dessus tout)
   =====================================================================
   Repris de la maquette validée. Toutes les couleurs viennent des jetons
   --gs-* : le tiroir suit donc les thèmes clair ET sombre sans une seule
   couleur en dur, sauf le blanc du texte sur la pastille rouge.
   Préfixe `gnotif-` et non `gshell-notif` : l'ancienne liste du drawer
   profil portait ce nom-là, et deux composants qui se disputent un préfixe
   finissent par se voler leurs règles. */

/* Le doré PLEIN (segment actif) a besoin d'une encre foncée en thème sombre,
   où --gs-accent devient clair : sinon texte clair sur fond clair. */
body.shell-on{--gs-on-accent:#FFFFFF}
body.shell-on[data-gtheme="dark"]{--gs-on-accent:#241f16}

/* --- deux pastilles côte à côte (rail + tabbar) --- */
.gshell-badges{margin-left:auto;display:flex;align-items:center;gap:4px;flex:none}
.gshell-badges .gshell-badge{margin-left:0}
/* Rouge = on te vise. Aplat plein, c'est le seul signal qui a le droit de crier. */
.gshell-badge.gsb-red{background:var(--gs-crit);color:#fff}
/* Doré = il y a du nouveau, sans urgence : contour plutôt qu'aplat — deux
   aplats pleins côte à côte se disputeraient l'attention. */
.gshell-badge.gsb-gold{background:var(--gs-accent-soft);color:var(--gs-accent);
    border:1px solid var(--gs-accent)}

.gnotif-scrim{position:fixed;inset:0;z-index:119;background:rgba(20,17,12,.34);
    backdrop-filter:blur(2px)}
.gnotif-scrim.hidden{display:none}

.gnotif-drawer{position:fixed;top:0;right:0;bottom:0;z-index:120;
    width:min(432px,92vw);
    background:var(--gs-panel);
    border-left:1px solid var(--gs-line-strong);
    box-shadow:-24px 0 60px -30px rgba(0,0,0,.4);
    display:flex;flex-direction:column;
    transform:translateX(0);transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.gnotif-drawer.hidden{transform:translateX(105%);visibility:hidden;
    transition:transform .3s,visibility 0s .3s}
@media (prefers-reduced-motion:reduce){.gnotif-drawer{transition:none}}

/* --- en-tête --- */
/* La réserve d'encoche est portée ICI, pas sur .gnotif-drawer (top:0) : le
   tiroir doit continuer de PEINDRE sous la barre d'état — le descendre
   laisserait voir la page au travers — c'est son CONTENU qui doit descendre.
   Sans ça, en PWA plein écran (≤860px), le titre « Notifications » et le ✕
   (seule sortie du tiroir) passent sous l'horloge et la batterie.
   Hors PWA l'inset vaut 0 : aucun décalage sur bureau, donc pas de media
   query — une déclinaison qui l'oublierait rouvrirait la faille. */
.gnotif-head{padding:calc(18px + env(safe-area-inset-top)) 18px 0;flex-shrink:0}
.gnotif-head-row{display:flex;align-items:flex-start;gap:10px}
.gnotif-head h2{margin:0;flex:1;line-height:1.1;font-family:'Outfit','Inter',sans-serif;
    font-size:25px;font-weight:800;letter-spacing:-.015em;color:var(--gs-ink)}
.gnotif-hbtn{border:1px solid var(--gs-line-strong);background:var(--gs-panel-2);border-radius:11px;
    color:var(--gs-ink-dim);cursor:pointer;display:grid;place-items:center;
    width:42px;height:42px;padding:0;flex:none}
.gnotif-hbtn svg{width:17px;height:17px}
.gnotif-hbtn:hover{color:var(--gs-ink);border-color:var(--gs-ink-faint)}
.gnotif-sub{margin:8px 0 0;font-size:12.5px;color:var(--gs-ink-faint);
    font-variant-numeric:tabular-nums}
.gnotif-head-actions{display:flex;justify-content:flex-end;margin-top:5px}
.gnotif-head-actions button{display:inline-flex;align-items:center;justify-content:center;gap:7px;
    min-height:44px;padding:8px 2px;border:0;background:transparent;cursor:pointer;
    color:var(--gs-accent);font-family:inherit;font-size:12.5px;font-weight:750;line-height:1.2}
.gnotif-head-actions button svg{width:17px;height:17px;flex:none}
.gnotif-head-actions button:hover{color:var(--gs-ink)}
.gnotif-head-actions button:focus-visible{outline:2px solid var(--gs-accent);outline-offset:2px;
    border-radius:8px}

/* --- recherche (ticket ZVMrJy0KPtU4KVkDa4PJ) --- */
/* La loupe est DANS le champ, en position absolue, et le texte lui laisse la
   place par son padding : un flex à trois enfants aurait donné une boîte dont
   seule la partie centrale est cliquable — sur téléphone on vise le cadre, pas
   le texte. La hauteur de 44px est la cible tactile minimale du hub (même
   valeur que .gnotif-head-actions button). */
.gnotif-search{position:relative;margin:12px 18px 0;flex-shrink:0}
.gnotif-search-ic{position:absolute;left:11px;top:50%;transform:translateY(-50%);
    width:16px;height:16px;color:var(--gs-ink-faint);pointer-events:none}
.gnotif-search input{width:100%;height:44px;box-sizing:border-box;
    padding:0 40px 0 34px;border:1px solid var(--gs-line-strong);border-radius:12px;
    background:var(--gs-panel-2);color:var(--gs-ink);font-family:inherit;font-size:13.5px}
.gnotif-search input::placeholder{color:var(--gs-ink-faint)}
.gnotif-search input:focus{outline:2px solid var(--gs-accent);outline-offset:-1px;
    border-color:var(--gs-accent)}
/* La croix native de `type=search` (WebKit/Blink) doublerait la nôtre — et elle
   n'existe ni sur Firefox ni sur iOS, donc c'est la nôtre qui reste : une seule
   croix, au même endroit pour tout le monde. */
.gnotif-search input::-webkit-search-cancel-button{display:none}
.gnotif-search-x{position:absolute;right:4px;top:50%;transform:translateY(-50%);
    width:36px;height:36px;display:grid;place-items:center;padding:0;
    border:0;background:transparent;border-radius:9px;cursor:pointer;color:var(--gs-ink-dim)}
.gnotif-search-x svg{width:15px;height:15px}
.gnotif-search-x:hover{color:var(--gs-ink);background:var(--gs-accent-soft)}
.gnotif-search-x:focus-visible{outline:2px solid var(--gs-accent);outline-offset:1px}
/* Ce que la recherche avoue : sa fenêtre, ou son échec. Discret par défaut —
   c'est une note de bas de liste, pas un avertissement — et coloré seulement
   quand quelque chose a réellement raté. */
.gnotif-note{margin:14px 2px 4px;font-size:11.5px;line-height:1.45;
    color:var(--gs-ink-faint);text-align:center}
.gnotif-note.warn{color:var(--gs-accent)}

/* --- segments (actif en doré PLEIN) --- */
/* Cinq onglets depuis le 26/08. Le tiroir offre ~394px (432 moins les marges
   et les bords), 339 sur un téléphone de 375.
   Premier essai : icône + libellé + compteur, et défilement horizontal pour le
   trop-plein. Raté sur écran de bureau — le cinquième onglet tombait hors du
   bord, et la barre de défilement étant masquée (elle traverserait la pilule
   dorée), RIEN ne disait qu'il existait. « Sur desktop je vois pas tout ! »
   Corrigé en retirant les icônes des segments : 105px récupérés (15px de
   glyphe + 6px de gouttière, cinq fois) pour un besoin d'environ 371px. Tout
   tient, et `flex:1 0 auto` répartit le reste.
   Le défilement RESTE pour le téléphone, où 371 > 339 : là, l'onglet coupé au
   bord est le seul indice possible, et c'est notif-drawer.js qui ramène dans
   le champ celui qu'on vient de choisir. */
.gnotif-segs{display:flex;margin:14px 18px 4px;border:1px solid var(--gs-line-strong);
    border-radius:12px;overflow-x:auto;overflow-y:hidden;background:var(--gs-panel-2);
    flex-shrink:0;scrollbar-width:none;-ms-overflow-style:none;
    /* Sans ça, arrivé au bout de la rangée le geste continue dans la page
       derrière le tiroir (rebond iOS). */
    overscroll-behavior-x:contain;scroll-behavior:smooth}
.gnotif-segs::-webkit-scrollbar{display:none}
@media (prefers-reduced-motion:reduce){.gnotif-segs{scroll-behavior:auto}}
/* `flex:1 0 auto` et non `flex:1` : ils s'étirent toujours pour remplir la
   rangée quand la place existe, mais ne s'écrasent JAMAIS sous leur texte —
   un onglet au libellé tronqué ne se lit plus, et `white-space:nowrap`
   ci-dessous le ferait déborder sous le voisin plutôt que de le raccourcir. */
.gnotif-seg{flex:1 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px;
    padding:10px 6px;cursor:pointer;font-size:12.5px;font-weight:700;color:var(--gs-ink-dim);
    border:0;border-right:1px solid var(--gs-line);background:transparent;white-space:nowrap;
    font-family:inherit}
.gnotif-seg:last-child{border-right:0}
.gnotif-seg .n{font-variant-numeric:tabular-nums;opacity:.75}
.gnotif-seg:hover{background:var(--gs-accent-soft);color:var(--gs-ink)}
.gnotif-seg.on,.gnotif-seg.on:hover{background:var(--gs-accent);color:var(--gs-on-accent)}

.gnotif-scroll{flex:1;overflow-y:auto;padding:4px 18px 14px;-webkit-overflow-scrolling:touch}

/* --- en-tête de section : icône + libellé --- */
.gnotif-sec{display:flex;align-items:center;gap:9px;margin:18px 2px 8px}
.gnotif-sec .ic{width:19px;height:19px;flex:none;display:grid;place-items:center;
    color:var(--gs-accent)}
.gnotif-sec .ic svg{width:19px;height:19px}
.gnotif-sec.at .ic{color:var(--gs-ok)}
.gnotif-sec.hash .ic{font-weight:900;font-size:17px;line-height:1}
.gnotif-sec.past .ic{color:var(--gs-ink-faint)}
.gnotif-sec .lbl{font-size:10px;text-transform:uppercase;letter-spacing:.13em;
    color:var(--gs-ink-dim);font-weight:750;font-family:ui-monospace,'SF Mono',monospace}

/* --- carte groupant des items, filets entre eux --- */
.gnotif-card{background:var(--gs-panel-2);border:1px solid var(--gs-line);border-radius:15px;
    overflow:hidden}
.gnotif-card.prio{border-color:var(--gs-line-strong)}

.gnotif-item{display:flex;align-items:flex-start;gap:12px;padding:13px 13px 13px 26px;
    position:relative;cursor:pointer;border-bottom:1px solid var(--gs-line)}
.gnotif-item:last-child{border-bottom:0}
.gnotif-item:hover{background:var(--gs-accent-soft)}
.gnotif-item:focus-visible{outline:2px solid var(--gs-accent);outline-offset:-2px}
/* Liseré de gauche : la couleur du signal, lisible même en diagonale. */
.gnotif-item::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px}
.gnotif-item.rail-red::before{background:var(--gs-crit)}
.gnotif-item.rail-gold::before{background:var(--gs-accent)}
.gnotif-item .udot{position:absolute;left:11px;top:22px;width:8px;height:8px;border-radius:50%;
    background:var(--gs-crit)}
.gnotif-item.rail-gold .udot{background:var(--gs-accent)}
/* Lue : présente, mais elle ne demande plus rien. */
.gnotif-item.read{opacity:.55}

.gnotif-av{width:42px;height:42px;border-radius:13px;flex:none;display:grid;place-items:center;
    font-size:19px;background:var(--gs-panel);border:1px solid var(--gs-line)}
.gnotif-body{flex:1;min-width:0}
.gnotif-body .top{display:flex;align-items:baseline;gap:9px}
.gnotif-body .who{font-weight:700;font-size:13.5px;color:var(--gs-ink);white-space:nowrap;
    overflow:hidden;text-overflow:ellipsis}
.gnotif-body .when{margin-left:auto;font-size:10.5px;color:var(--gs-ink-faint);flex:none;
    font-family:ui-monospace,'SF Mono',monospace}
.gnotif-body .txt{font-size:12.5px;color:var(--gs-ink-dim);margin-top:2px;line-height:1.35;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* Actions TOUJOURS visibles (encadrées) : au survol seulement, elles
   n'existaient pas au doigt — la moitié des gens sont sur téléphone. */
.gnotif-acts{display:flex;flex-direction:column;gap:7px;align-self:flex-start;flex:none}
.gnotif-mini{width:36px;height:36px;border-radius:10px;border:1px solid var(--gs-line-strong);
    background:var(--gs-panel);color:var(--gs-ink-faint);cursor:pointer;display:grid;
    place-items:center;padding:0}
.gnotif-mini:hover{color:var(--gs-ink);border-color:var(--gs-ink-faint)}
.gnotif-mini svg{width:16px;height:16px}
.gnotif-mini.pinned{background:var(--gs-accent-soft);color:var(--gs-accent);
    border-color:var(--gs-accent)}

/* --- états vide / chargement --- */
.gnotif-empty{padding:56px 18px;text-align:center;color:var(--gs-ink-faint)}
.gnotif-empty .e{font-size:34px;display:block;margin-bottom:10px;opacity:.8}
.gnotif-empty p{margin:0 auto;max-width:30ch;font-size:13px;line-height:1.45}
.gnotif-skel{display:flex;flex-direction:column;gap:10px;padding:18px 0}
.gnotif-skel .sk{display:flex;gap:12px;align-items:center}
.gnotif-skel .sk-av{width:42px;height:42px;border-radius:13px;background:var(--gs-panel-2);flex:none}
.gnotif-skel .sk-l{flex:1;display:flex;flex-direction:column;gap:7px}
.gnotif-skel .sk-l i{height:11px;width:45%;border-radius:6px;background:var(--gs-panel-2)}
.gnotif-skel .sk-l b{height:9px;width:78%;border-radius:5px;background:var(--gs-panel-2)}
.gnotif-skel .sk{animation:gnotifPulse 1.4s ease-in-out infinite}
@keyframes gnotifPulse{0%,100%{opacity:.55}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.gnotif-skel .sk{animation:none}}

/* --- barre du bas --- */
/* « Voir plus » : bordure pointillée, comme la version du drawer profil dont
   cette pagination est reprise. Elle dit « il y a une suite » sans prétendre
   à l'importance d'un vrai bouton d'action. */
.gnotif-plus{width:100%;background:none;border:1px dashed var(--gs-line);
    border-radius:10px;color:var(--gs-ink-dim);cursor:pointer;font-family:inherit;
    font-size:12px;padding:9px;margin-top:8px;transition:border-color .15s,color .15s}
.gnotif-plus:hover{border-color:var(--gs-line-strong);color:var(--gs-ink)}
.gnotif-plus:disabled{cursor:default;opacity:.6}
@media (max-width:860px){
    /* Plein écran au téléphone : un tiroir de 432 px sur 375 px de large, ce
       n'est plus un tiroir. La tabbar reste accessible en dessous. */
    /* Capture Mathieu 02/09 : les réglages (🔔 + courriel) mangeaient plus de
       la moitié de l'écran, la liste n'avait plus que ~3 lignes. On avait alors
       fait DÉFILER le tiroir entier pour pousser les réglages sous le pli
       (plancher de 62vh sur la liste). Ça déplaçait la gêne sans la lever : les
       réglages étaient toujours là, en travers du chemin, et l'en-tête et les
       onglets partaient vers le haut dès qu'on descendait dans la liste.
       Ticket YPSPsqQjUL3l6sjtHwKw : les réglages ont quitté ce tiroir pour le
       compte, il ne reste qu'un bouton « Gérer mes notifications ». Le tiroir
       redevient donc une colonne franche — en-tête, recherche et onglets
       épinglés en haut, le bouton épinglé en bas, et SEULE la liste défile
       (.gnotif-scroll garde son flex:1;overflow-y:auto par défaut). */
    .gnotif-drawer{width:100%;border-left:0;
        bottom:calc(var(--gs-tabbar-h) + env(safe-area-inset-bottom))}
    .gnotif-segs{flex-shrink:0}
    /* …et le VOILE s'arrête là aussi. En `inset:0` il recouvrait la tabbar
       (z-index 119 contre 95) : les six onglets restaient parfaitement
       visibles et paraissaient actifs, mais le tap n'atteignait que le voile —
       « Messages » refermait le tiroir sans naviguer, il fallait taper deux
       fois. On ne remonte PAS la tabbar au-dessus (elle passerait aussi
       au-dessus de la palette ⌘K, en z-index 120) : on découvre la bande. */
    .gnotif-scrim{bottom:calc(var(--gs-tabbar-h) + env(safe-area-inset-bottom))}
    .gnotif-head h2{font-size:21px}
    /* Les libellés de la tabbar sont à l'étroit à six onglets. */
    .gshell-tab{min-width:0}
    .gshell-tab>span:not(.ic):not(.gshell-badges){max-width:100%;overflow:hidden;
        text-overflow:ellipsis;white-space:nowrap}
    .gshell-tab .gshell-badges{position:absolute;top:0;right:calc(50% - 26px)}
    .gshell-tab .gshell-badges .tbadge{position:static}
    /* .tbadge naît rouge (règle du rail mobile) : la dorée doit se redire ici,
       sinon les deux pastilles seraient rouges — et le modèle tomberait. */
    .gshell-tab .tbadge.gsb-red{background:var(--gs-crit);color:#fff}
    .gshell-tab .tbadge.gsb-gold{background:var(--gs-accent-soft);color:var(--gs-accent);
        border:1px solid var(--gs-accent)}
}

/* ===== Pied du tiroir de notifications : la porte, pas les réglages =====
   Épinglé sous la liste (flex-shrink:0 — sans ça il se laisse écraser par une
   liste longue et disparaît). Un bouton, pas quatre interrupteurs : le tiroir
   sert à LIRE, le réglage se fait dans le compte. */
/* Pas de réserve d'encoche ici : le tiroir la porte déjà (`bottom:calc(
   --gs-tabbar-h + env(safe-area-inset-bottom))` dans la tranche mobile), et
   sur bureau `bottom:0` avec un env() nul. L'ajouter une seconde fois creusait
   une bande vide de ~34 px sous le bouton sur les iPhone à barre d'accueil. */
.gnotif-pied{flex-shrink:0;border-top:1px solid var(--gs-line);padding:8px 12px}
.gnotif-options{display:flex;align-items:center;gap:10px;width:100%;
    background:none;border:none;border-radius:11px;padding:10px 10px;
    font-family:inherit;font-size:13px;font-weight:600;color:var(--gs-ink-dim);
    cursor:pointer;text-align:left;transition:background .12s,color .12s}
.gnotif-options:hover{background:var(--gs-accent-soft);color:var(--gs-ink)}
.gnotif-options .ic{width:18px;text-align:center;font-size:14px}
.gnotif-options .arr{margin-left:auto;font-size:12px;color:var(--gs-ink-faint)}

/* Réglages de notification — ils vivent dans Paramètres › Notifications
   (#gsetOverlay, 30/09/2026), après un passage dans la colonne du compte. Les
   classes `gnotif-reg-*` sont conservées telles quelles : le JS et des tests
   s'y appuient, et le déménagement n'avait pas à devenir un renommage. Les
   cartes, titres et filets sont ceux du panneau (.gset-*). */
.gnotif-reg-ligne{display:flex;align-items:center;justify-content:space-between;gap:12px}
.gnotif-reg-ligne .lbl{font-size:13.5px;font-weight:650;color:var(--gs-ink)}
.gnotif-reg-aide{margin:7px 0 0;font-size:11.5px;line-height:1.4;color:var(--gs-ink-faint)}
/* Posé par updateBellUI : cet appareil ne sait pas recevoir de push. */
.gnotif-reg-aide.gpt-warn{color:var(--gs-warn)}
/* Le bouton de test n'existe QUE si les notifications sont actives : c'est
   updateBellUI() qui ajoute .on au bloc parent (#gnotifReglages).
   Notifications par courriel : aucune règle `.gnotif-reglages.on …` sur leur
   carte — ce réglage doit rester atteignable même quand la push est éteinte
   ou impossible (iPhone hors écran d'accueil), et c'est là qu'il compte. */
.gnotif-reg-ligne + .gnotif-reg-aide + .gnotif-reg-ligne{margin-top:13px}
/* « Ce que je veux recevoir » (ticket 42bQFdHmYMxZN8xanvbS) — une grille, pas
   une pile de `.gnotif-reg-ligne`. Avec `justify-content:space-between`, les
   deux interrupteurs se seraient collés à la fin d'un libellé de longueur
   variable : « Appels » et « Alertes et demandes à traiter » n'auraient pas
   aligné leurs colonnes, et on ne lit plus une grille dont les colonnes
   serpentent. `grid-template-columns` les fige. Les deux pistes sont assez
   larges pour nommer leur colonne (« Ordinateur », « Téléphone ») au lieu du
   seul pictogramme ; l'en-tête réutilise les mêmes pistes. */
.gnotif-fam{display:grid;grid-template-columns:1fr 78px 78px;gap:10px 6px;align-items:center}
.gnotif-fam-tete{display:contents}
.gnotif-fam-tete .gnotif-fam-col{grid-column:auto;text-align:center;font-size:13px;line-height:1}
.gnotif-fam-tete .gnotif-fam-col small{display:block;margin-top:4px;font-size:11px;font-weight:650;
    color:var(--gs-ink-faint)}
/* L'en-tête n'occupe que les deux dernières pistes : la première reste vide. */
.gnotif-fam-tete .gnotif-fam-col:first-child{grid-column:2}
.gnotif-fam-ligne{display:contents}
.gnotif-fam-ligne .lbl{font-size:13px;font-weight:600;color:var(--gs-ink);
    /* Les libellés longs se replient plutôt que d'élargir le tiroir : la
       première piste est en `1fr`, donc élastique, et un mot insécable la
       ferait déborder sur téléphone. */
    min-width:0;overflow-wrap:anywhere}
.gnotif-fam-sw{justify-self:center}
.gnotif-reg-test{display:none}
.gnotif-reglages.on .gnotif-reg-test{display:block;width:100%;margin-top:11px;
    background:none;border:1px dashed var(--gs-line);border-radius:10px;
    color:var(--gs-ink-dim);cursor:pointer;font-family:inherit;font-size:12px;padding:9px;
    transition:border-color .15s,color .15s}
.gnotif-reglages.on .gnotif-reg-test:hover{border-color:var(--gs-line-strong);color:var(--gs-ink)}

/* =====================================================================
   PARAMÈTRES — panneau central (demande de Thierry, 30/09/2026)
   La colonne de profil était devenue une page de réglages : 1,9 écran sur
   ordinateur, 2,8 sur iPhone, 21 interrupteurs. Les réglages vivent ici, sur
   une largeur de page lisible : 980 px (le lanceur va jusqu'à 1 292 px — des
   réglages se lisent mieux sur une largeur de page que d'un bord à l'autre).
   Navigation à gauche, une section à la fois ; plein écran sur téléphone, où
   la liste des sections et une section se relaient.
   Maquettes : plans-chanv, 2026-09-30-gandalf-parametres-maquettes.
   ===================================================================== */
.gset-overlay{position:fixed;inset:0;z-index:124;display:flex;align-items:center;justify-content:center;
    padding:28px;background:rgba(20,17,12,.42);backdrop-filter:blur(3px)}
.gset-overlay.hidden{display:none}
.gset{width:min(980px,100%);height:min(760px,calc(100dvh - 56px));display:grid;
    grid-template-columns:238px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);overflow:hidden;
    background:var(--gs-panel);border:1px solid var(--gs-line-strong);border-radius:var(--gs-radius-panel);
    box-shadow:0 40px 90px -30px rgba(0,0,0,.5);color:var(--gs-ink);font-family:'Inter',system-ui,sans-serif}
.gset-head{grid-column:1/-1;display:flex;align-items:center;gap:13px;padding:15px 16px 15px 20px;
    border-bottom:1px solid var(--gs-line)}
.gset-back{display:none;align-items:center;gap:4px;padding:6px 4px;border:0;background:none;cursor:pointer;
    color:var(--gs-accent);font:600 15px 'Inter',system-ui,sans-serif}
.gset-back>span:first-child{font-size:24px;line-height:1;margin-top:-3px}
.gset-hic{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:10px;
    background:var(--gs-accent-soft);border:1px solid var(--gs-line-strong);font-size:18px}
.gset-heading{min-width:0}
.gset-heading h2{margin:0;font:700 20px/1.1 'Outfit','Inter',sans-serif;letter-spacing:-.01em;color:var(--gs-ink)}
.gset-heading p{margin:2px 0 0;font-size:12px;color:var(--gs-ink-faint)}
.gset-search{margin-left:auto;width:300px;height:38px;display:flex;align-items:center;gap:8px;
    padding:0 10px 0 13px;border:1px solid var(--gs-line);border-radius:999px;background:var(--gs-search-bg);
    color:var(--gs-ink-faint)}
.gset-search:focus-within{border-color:var(--gs-accent);box-shadow:0 0 0 3px var(--gs-accent-soft)}
.gset-search>span{display:grid;place-items:center}
.gset-search .gicon{width:15px;height:15px}
.gset-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--gs-ink);
    font:500 13px 'Inter',system-ui,sans-serif}
.gset-search input::placeholder{color:var(--gs-ink-faint)}
/* Même exception que la recherche du lanceur (css/ux-refresh.css) : le cadre
   porte déjà le repère de focus, le contour d'encre générique s'y ajoutait. */
body.shell-on .gset-search input:focus-visible{outline:0;outline-offset:0}
.gset-search input::-webkit-search-cancel-button{filter:grayscale(1);opacity:.55}
.gset-search kbd{padding:1px 6px;border:1px solid var(--gs-line);border-radius:5px;background:var(--gs-panel);
    color:var(--gs-ink-faint);font:10px ui-monospace,'SF Mono',monospace}
.gset-search:focus-within kbd{visibility:hidden}
.gset-x{width:36px;height:36px;flex:none;padding:0;border:0;border-radius:var(--gs-radius-control);
    background:none;color:var(--gs-ink-faint);font-size:25px;line-height:1;cursor:pointer}
.gset-x:hover{background:var(--gs-panel-2);color:var(--gs-ink)}

/* Navigation : quatre sections, chacune avec son état en une ligne. */
.gset-nav{min-height:0;overflow-y:auto;display:flex;flex-direction:column;padding:14px 12px 16px;
    background:var(--gs-rail-bg);border-right:1px solid var(--gs-line)}
.gset-tabs{display:flex;flex-direction:column;gap:3px}
.gset-tab{width:100%;display:flex;align-items:flex-start;gap:11px;padding:10px 11px;border:1px solid transparent;
    border-radius:var(--gs-radius-control);background:none;color:var(--gs-ink-dim);text-align:left;
    font-family:inherit;cursor:pointer;transition:background .12s,color .12s,opacity .12s}
.gset-tab:hover{background:var(--gs-accent-soft);color:var(--gs-ink)}
.gset-tab .e{width:20px;flex:none;text-align:center;font-size:15px;line-height:20px}
.gset-tab-txt{flex:1;min-width:0}
.gset-tab b{display:block;font-size:13.5px;font-weight:650;line-height:20px}
.gset-tab small{display:block;margin-top:1px;font-size:11px;font-weight:500;line-height:1.35;color:var(--gs-ink-faint)}
.gset-tab .chev{display:none}
.gset-tab.on{background:var(--gs-panel);border-color:var(--gs-line-strong);color:var(--gs-ink);
    box-shadow:0 1px 2px rgba(40,34,24,.06)}
.gset-tab.gset-tab-miss{opacity:.45}
.gset.searching .gset-tab.on{background:none;border-color:transparent;box-shadow:none}
.gset-pied{display:flex;gap:7px;margin:auto 0 0;padding:10px 11px 0;font-size:11px;line-height:1.45;color:var(--gs-ink-faint)}
.gset-pied i{font-style:normal;font-weight:800;color:var(--gs-ok)}

/* Corps : une section à la fois ; pendant une recherche, toutes celles qui
   répondent, réduites à leurs cartes qui répondent. */
.gset-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 30px 30px}
.gset-sec{display:none}
.gset-sec.on,.gset.searching .gset-sec{display:block}
.gset.searching .gset-sec.gset-sec-miss{display:none}
.gset.searching .gset-sec:not(.gset-sec-miss)~.gset-sec:not(.gset-sec-miss){margin-top:28px}
.gset-sec-head h3{margin:0;font:700 19px/1.2 'Outfit','Inter',sans-serif;color:var(--gs-ink)}
.gset-sec-head p{margin:4px 0 18px;font-size:13px;line-height:1.45;color:var(--gs-ink-faint)}
.gset-card{padding:16px 18px;border:1px solid var(--gs-line);border-radius:var(--gs-radius-card);background:var(--gs-panel)}
.gset-card+.gset-card,.gset-notif-grille+.gset-card{margin-top:14px}
.gset-card.hidden,.gset-card.gset-miss{display:none}
.gset-card-nu{padding:0;border:0;background:none}
.gset-titre{margin:0 0 12px;font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--gs-ink-faint)}
.gset-ligne{display:flex;align-items:center;justify-content:space-between;gap:14px}
.gset-ligne .lbl{font-size:13.5px;font-weight:650;color:var(--gs-ink)}
.gset-aide{margin:6px 0 0;font-size:11.5px;line-height:1.45;color:var(--gs-ink-faint)}
.gset-sep{height:1px;margin:14px -18px 13px;background:var(--gs-line)}
.gset-chip{display:inline-block;padding:2px 8px;border:1px solid var(--gs-line);border-radius:999px;
    background:var(--gs-panel-2);color:var(--gs-ink-dim);font-size:10.5px;font-weight:650;white-space:nowrap;vertical-align:1px}
.gset-chip.or{border-color:var(--gs-line-strong);background:var(--gs-accent-soft);color:var(--gs-accent)}
.gset-chip.hidden{display:none}
.gset-btn{flex:none;display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:1px solid var(--gs-line-strong);
    border-radius:999px;background:var(--gs-panel-2);color:var(--gs-ink);font:650 12.5px 'Inter',system-ui,sans-serif;
    white-space:nowrap;cursor:pointer;transition:border-color .12s,background .12s}
.gset-btn:hover{border-color:var(--gs-accent);background:var(--gs-accent-soft)}
/* `hidden` posé par le JS (bouton Gmail) : une règle d'auteur en display
   l'emporterait sur celle du navigateur. */
.gset-btn[hidden]{display:none}
.gset-lien{padding:2px 0;border:0;background:none;color:var(--gs-ink-dim);font:600 12.5px 'Inter',system-ui,sans-serif;
    text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.gset-lien:hover{color:var(--gs-ink)}
.gset-lien.hidden{display:none}
.gset-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.gset-noresult{padding:48px 20px;text-align:center;color:var(--gs-ink-faint)}
.gset-noresult.hidden{display:none}
.gset-noresult strong{display:block;font-size:14px;color:var(--gs-ink)}
.gset-noresult p{margin:6px 0 0;font-size:12.5px}

/* Général : la langue en trois cartes, le thème avec un aperçu de chaque rendu. */
.gset-langues{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.gset-themes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gset-choix{position:relative;width:100%;display:block;padding:12px 14px;border:1px solid var(--gs-line);
    border-radius:var(--gs-radius-card);background:var(--gs-panel);color:var(--gs-ink);text-align:left;
    font-family:inherit;cursor:pointer;transition:border-color .12s,background .12s}
.gset-choix:hover{border-color:var(--gs-line-strong)}
.gset-choix b{display:block;font-size:14px;font-weight:650}
.gset-choix small{display:block;margin-top:2px;font-size:11.5px;color:var(--gs-ink-faint)}
.gset-choix.on{border-color:var(--gs-accent);box-shadow:inset 0 0 0 1px var(--gs-accent);background:var(--gs-accent-soft)}
.gset-choix.on::after{content:'✓';position:absolute;top:9px;right:11px;width:18px;height:18px;display:grid;place-items:center;
    border-radius:50%;background:var(--gs-accent);color:#fff;font-size:11px;font-weight:800}
body.shell-on[data-gtheme="dark"] .gset-choix.on::after{color:#241f16}
.gset-theme{padding:10px}
.gset-mini{height:96px;display:grid;grid-template-columns:30% 1fr;margin-bottom:9px;overflow:hidden;
    border:1px solid var(--gs-line);border-radius:8px}
.gset-mini .r{display:flex;flex-direction:column;gap:6px;padding:9px 7px}
.gset-mini .c{display:flex;flex-direction:column;gap:7px;padding:10px}
.gset-mini i{display:block;height:6px;border-radius:3px}
.gset-mini .c i{height:8px;border-radius:4px}
.gset-mini.clair .r{background:#F4EEE0}
.gset-mini.clair .r i{background:rgba(40,34,24,.14)}
.gset-mini.clair .r i:first-child{width:70%;background:#A8863F}
.gset-mini.clair .c{background:#fff}
.gset-mini.clair .c i{background:#F1EADA}
.gset-mini.clair .c i:first-child{width:55%;height:10px;background:#282828}
.gset-mini.sombre .r{background:#2b2823}
.gset-mini.sombre .r i{background:rgba(255,255,255,.14)}
.gset-mini.sombre .r i:first-child{width:70%;background:#DDCBA4}
.gset-mini.sombre .c{background:#201d19}
.gset-mini.sombre .c i{background:#332f28}
.gset-mini.sombre .c i:first-child{width:55%;height:10px;background:rgba(255,255,255,.9)}

/* Espaces favoris : la liste à réordonner, l'aperçu du rail à droite. */
.gset-fav{display:grid;grid-template-columns:minmax(0,1fr) 206px;gap:26px;align-items:start}
.gset-seg .opt{border:0;background:none;font-family:inherit;font-size:12px;padding:5px 13px;white-space:nowrap}
.gset-seg .opt:not(.on):hover{color:var(--gs-ink)}
.gset-fav-list{position:relative;margin-top:12px;border:1px solid var(--gs-line);border-radius:var(--gs-radius-card);background:var(--gs-panel)}
.gset-fav-list.vide{border-style:dashed}
.gset-fav-row{position:relative;height:38px;display:flex;align-items:center;gap:10px;padding:0 8px 0 4px;
    border-top:1px solid var(--gs-line);background:var(--gs-panel);color:var(--gs-ink);font-size:13px;font-weight:600}
.gset-fav-row:first-child{border-top:0;border-radius:var(--gs-radius-card) var(--gs-radius-card) 0 0}
.gset-fav-row:last-child{border-radius:0 0 var(--gs-radius-card) var(--gs-radius-card)}
.gset-fav-row:only-child{border-radius:var(--gs-radius-card)}
.gset-fav-row:hover,.gset-fav-row:focus-within{background:var(--gs-accent-soft)}
.gset-fav-row.neuf{box-shadow:inset 3px 0 var(--gs-accent)}
.gset-fav-grip{width:26px;height:30px;flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:6px;
    background:none;color:var(--gs-ink-faint);cursor:grab;touch-action:none}
.gset-fav-grip:hover,.gset-fav-grip:focus-visible{color:var(--gs-accent)}
.gset-fav-grip svg{width:14px;height:14px}
.gset-fav-grip .g-lignes{display:none}
.gset-fav-row .ic,.gset-apercu .ic,.gset-pick .ic{width:22px;height:22px;flex:none;display:grid;place-items:center}
.gset-fav-row .gli-native-icon,.gset-apercu .gli-native-icon,.gset-pick .gli-native-icon{width:17px;height:17px;color:var(--gs-ink-dim)}
.gset-fav-row .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gset-fav-row .ty{width:60px;flex:none;font-size:10.5px;font-weight:600;color:var(--gs-ink-faint)}
/* ▲ ▼ paraissent au survol et au clavier. Transparents plutôt que
   `visibility:hidden` : un bouton caché ne peut pas recevoir le focus, et
   après un déplacement le focus doit suivre la ligne sur son ▲. */
.gset-fav-row .mv{display:flex;gap:3px;opacity:0;transition:opacity .12s}
.gset-fav-row:hover .mv,.gset-fav-row:focus-within .mv{opacity:1}
.gset-fav-row .mv button{width:24px;height:24px;display:grid;place-items:center;padding:0;border:1px solid var(--gs-line);
    border-radius:6px;background:var(--gs-panel);color:var(--gs-ink-dim);font-size:10px;cursor:pointer}
.gset-fav-row .mv button:hover:not([disabled]){border-color:var(--gs-accent);color:var(--gs-accent)}
.gset-fav-row .mv button[disabled]{opacity:.35;cursor:default}
.gset-fav-star{width:28px;height:28px;flex:none;display:grid;place-items:center;padding:0;border:0;border-radius:6px;
    background:none;color:var(--gs-accent);font-size:15px;cursor:pointer}
.gset-fav-star:hover{background:var(--gs-panel-2)}
/* Pendant le geste : la ligne tenue flotte, les voisines s'écartent. */
.gset-fav-list.glisse{user-select:none;-webkit-user-select:none}
.gset-fav-list.glisse .gset-fav-row:not(.leve){transition:transform .15s ease}
.gset-fav-row.leve{z-index:3;border-radius:9px;cursor:grabbing;
    box-shadow:0 0 0 1px var(--gs-line-strong),0 16px 30px -12px rgba(40,34,24,.5)}
.gset-fav-row.leve .gset-fav-grip{color:var(--gs-accent);cursor:grabbing}
.gset-fav-vide{margin:0;padding:18px 16px;font-size:12.5px;line-height:1.45;color:var(--gs-ink-faint)}
.gset-fav-actions{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:14px}
.gset-picker{margin-top:12px;padding:12px;border:1px solid var(--gs-line);border-radius:var(--gs-radius-card);background:var(--gs-panel-2)}
.gset-picker.hidden{display:none}
.gset-picker-search{width:auto;margin:0 0 8px;background:var(--gs-panel)}
.gset-picker-list{max-height:260px;overflow-y:auto;display:flex;flex-direction:column;gap:2px}
.gset-pick{width:100%;min-height:38px;display:flex;align-items:center;gap:10px;padding:6px 8px;border:0;border-radius:8px;
    background:none;color:var(--gs-ink);font:600 13px 'Inter',system-ui,sans-serif;text-align:left;cursor:pointer}
.gset-pick:hover{background:var(--gs-panel)}
.gset-pick[disabled]{opacity:.5}
.gset-pick .nm{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gset-pick .ty{font-size:10.5px;color:var(--gs-ink-faint)}
.gset-pick .add{font-size:12px;color:var(--gs-accent);white-space:nowrap}
.gset-apercu{position:sticky;top:0;padding:12px 9px 9px;border:1px solid var(--gs-line);border-radius:var(--gs-radius-card);
    background:var(--gs-rail-bg)}
.gset-apercu .t{margin:0 5px 9px;font-size:11px;font-weight:600;color:var(--gs-ink-faint)}
.gset-apercu .lab{margin:2px 6px 5px;font-size:9.5px;font-weight:750;text-transform:uppercase;color:var(--gs-ink-faint)}
.gset-apercu .it{display:flex;align-items:center;gap:9px;padding:6px 7px;border:1px solid transparent;border-radius:7px;
    font-size:12px;font-weight:600;color:var(--gs-ink-dim)}
.gset-apercu .it>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.gset-apercu .it.neuf{border-color:var(--gs-line-strong);background:var(--gs-panel);color:var(--gs-ink)}

/* Notifications : l'appareil à gauche, les familles à droite, le courriel dessous. */
.gset-notif-grille{display:grid;grid-template-columns:268px minmax(0,1fr);gap:16px;align-items:start}
.gset-notif-grille>.gset-card{margin:0}
.gset-courriel{display:grid;grid-template-columns:1fr 1fr;gap:22px}

/* Comptes branchés : une boîte Gmail par ligne, l'adresse entière. */
.gshell-mailboxes{margin-top:12px;border:1px solid var(--gs-line);border-radius:var(--gs-radius-card)}
.gshell-mailboxes[hidden]{display:none}
.gmb-row{display:grid;grid-template-columns:22px minmax(0,1fr) auto auto;gap:12px;align-items:center;
    padding:11px 14px;border-top:1px solid var(--gs-line)}
.gmb-row:first-child{border-top:0}
.gmb-etat{text-align:center;color:var(--gs-accent)}
.gmb-mort{color:var(--gs-crit)}
.gmb-id{min-width:0;display:flex;flex-direction:column}
.gmb-adr{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:650}
.gmb-sur{font-size:11.5px;color:var(--gs-ink-faint)}
.gmb-row.mort .gmb-adr{opacity:.6}
.gmb-acts{display:flex;align-items:center;justify-content:flex-end;gap:14px}
.gmb-lien{padding:2px 0;border:0;background:none;color:var(--gs-ink-dim);font:600 12.5px 'Inter',system-ui,sans-serif;
    text-decoration:underline;text-underline-offset:3px;white-space:nowrap;cursor:pointer}
.gmb-lien:hover{color:var(--gs-ink)}
.gmb-lien.or{color:var(--gs-accent)}
.gmb-lien.rouge{color:var(--gs-crit)}
.gmb-attente{opacity:.55}
/* Compte que Google refusera : l'explication prend la place du bouton. */
#gshellGmailWhy{flex:1 1 55%;text-align:right}

/* Mon profil (07/10/2026) : la carte d'identité avec sa photo, puis des champs
   qui s'enregistrent en quittant le champ (js/mon-profil.js). Les mêmes
   champs servent à la fenêtre « Tes informations sont-elles à jour ? ». */
.gprof-attente .gset-card{opacity:.55;pointer-events:none}
.gprof-erreur{margin:0 0 14px;padding:10px 14px;border:1px solid var(--gs-crit);border-radius:var(--gs-radius-card);
    color:var(--gs-crit);font-size:13px}
.gprof-erreur.hidden,.gprof-sansfiche.hidden{display:none}
.gprof-sansfiche{margin:10px 2px 0}
.gprof-id{display:flex;align-items:center;gap:16px}
.gprof-av{width:64px;height:64px;flex:none;display:grid;place-items:center;overflow:hidden;border-radius:50%;
    border:1px solid var(--gs-line-strong);background:var(--gs-accent-soft);color:var(--gs-accent);font:700 22px 'Outfit','Inter',sans-serif}
.gprof-av img{width:100%;height:100%;object-fit:cover}
.gprof-id-txt{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.gprof-id-txt b{font:700 16px/1.25 'Outfit','Inter',sans-serif;color:var(--gs-ink)}
.gprof-id-txt small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--gs-ink-faint)}
.gprof-id-txt small:empty{display:none}
/* Les champs sont des <label> : la règle globale `label` de style.css (capitales,
   gris, marge) ne doit rien leur imposer ; seul le libellé (>span) est en capitales. */
.gprof-id label.gset-btn,.gprof-champ,.gpv-case{margin:0;text-transform:none;font-size:inherit;font-weight:inherit;color:inherit}
.gprof-id label.gset-btn{display:inline-flex;margin:0;font-size:12.5px;font-weight:650;color:var(--gs-ink);cursor:pointer}
.gprof-fiche{margin-top:14px}
.gprof-grille{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px}
.gprof-grille.hidden{display:none}
.gprof-aide-haut{margin:-6px 0 12px}
.gprof-vac-dates{margin-top:12px}
.gprof-champ{min-width:0;display:flex;flex-direction:column;gap:5px}
.gprof-large{grid-column:1/-1}
.gprof-note{margin-top:12px}
.gprof-champ>span{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gs-ink-faint)}
.gprof-champ input,.gprof-champ select,.gprof-champ textarea{width:100%;min-height:38px;box-sizing:border-box;padding:8px 11px;
    border:1px solid var(--gs-line-strong);border-radius:var(--gs-radius-control);background:var(--gs-panel);color:var(--gs-ink);
    font:500 14px 'Inter',system-ui,sans-serif;color-scheme:light dark}
.gprof-champ textarea{resize:vertical;line-height:1.4}
.gprof-champ input:focus,.gprof-champ select:focus,.gprof-champ textarea:focus{outline:0;border-color:var(--gs-accent);
    box-shadow:0 0 0 3px var(--gs-accent-soft)}
.gprof-champ [aria-invalid="true"]{border-color:var(--gs-crit)}
.gprof-champ>small{font-size:11.5px;line-height:1.4;color:var(--gs-ink-faint)}
.gprof-msg{min-height:0;font-size:11.5px;font-style:normal;font-weight:600;line-height:1.35}
.gprof-msg:empty{display:none}
.gprof-msg.ok{color:var(--gs-ok)}
.gprof-msg.err{color:var(--gs-crit)}
.gprof-admin{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:0}
.gprof-admin dt{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--gs-ink-faint)}
.gprof-admin dd{margin:4px 0 0;overflow-wrap:anywhere;font-size:14px;color:var(--gs-ink-dim)}

/* La fenêtre « Tes informations sont-elles à jour ? » : au-dessus de tout
   sauf des toasts ; plein écran sur téléphone, comme Paramètres. */
.gpv-overlay{position:fixed;inset:0;z-index:130;display:flex;align-items:center;justify-content:center;padding:28px;
    background:rgba(20,17,12,.42);backdrop-filter:blur(3px)}
body.gpv-open{overflow:hidden}
.gpv{width:min(600px,100%);max-height:calc(100dvh - 56px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;margin:0;
    overflow:hidden;background:var(--gs-panel);border:1px solid var(--gs-line-strong);border-radius:var(--gs-radius-panel);
    box-shadow:0 40px 90px -30px rgba(0,0,0,.5);color:var(--gs-ink);font-family:'Inter',system-ui,sans-serif}
.gpv-tete{display:flex;align-items:flex-start;gap:14px;padding:20px 22px 16px;border-bottom:1px solid var(--gs-line)}
.gpv-ic{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:11px;
    background:var(--gs-accent-soft);border:1px solid var(--gs-line-strong);font-size:20px}
.gpv-tete h2{margin:0;font:700 20px/1.2 'Outfit','Inter',sans-serif;letter-spacing:-.01em;color:var(--gs-ink)}
.gpv-tete p{margin:5px 0 0;font-size:13px;line-height:1.45;color:var(--gs-ink-dim)}
.gpv-corps{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:18px 22px 20px}
.gpv-case{display:flex;align-items:flex-start;gap:8px;margin:14px 0 0;padding:0;cursor:pointer;
    font-size:12px;line-height:1.4;color:var(--gs-ink-faint)}
.gpv-case input{width:14px;height:14px;flex:none;margin:1px 0 0;accent-color:var(--gs-accent)}
.gpv-sous{margin:20px 0 4px}
.gpv-aide-tailles{margin:0 0 12px}
.gpv-corps .gprof-note,.gpv-corps .gprof-large{margin-top:12px}
.gpv-erreur{margin:14px 0 0;padding:10px 12px;border:1px solid var(--gs-crit);border-radius:var(--gs-radius-control);
    color:var(--gs-crit);font-size:13px;font-weight:600}
.gpv-erreur.hidden{display:none}
.gpv-pied{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:14px 22px;border-top:1px solid var(--gs-line)}
.gpv-ok{display:inline-flex;align-items:center;gap:6px;padding:9px 20px;border:1px solid var(--gs-accent);border-radius:999px;
    background:var(--gs-accent);color:#fff;font:700 13.5px 'Inter',system-ui,sans-serif;cursor:pointer}
body.shell-on[data-gtheme="dark"] .gpv-ok{color:#241f16}
.gpv-ok:hover{filter:brightness(1.06)}
.gpv-ok[disabled]{opacity:.6;cursor:default}

/* Les deux raccourcis vers Paramètres › Espaces favoris : ⇅ au survol du
   titre du rail (toujours visible sans survol possible), « Réorganiser »
   dans la section Favoris du lanceur. */
.gshell-rail-favlabel{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:20px}
.gshell-rail-reorder{width:24px;height:20px;flex:none;display:grid;place-items:center;padding:0;
    border:1px solid var(--gs-line-strong);border-radius:999px;background:var(--gs-panel);color:var(--gs-accent);
    font-size:12px;font-weight:700;line-height:1;cursor:pointer;opacity:0;transition:opacity .12s,background .12s}
.gshell-rail-favlabel:hover .gshell-rail-reorder,.gshell-rail-reorder:focus-visible{opacity:1}
.gshell-rail-reorder:hover{border-color:var(--gs-accent);background:var(--gs-accent-soft)}
@media (hover:none){.gshell-rail-reorder{opacity:1}}
.gshell-launcher-reorder{margin-left:auto;padding:2px 4px;border:0;background:none;color:var(--gs-accent);
    font:650 11.5px 'Inter',system-ui,sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.gshell-launcher-reorder:hover{color:var(--gs-ink)}

@media (max-width:860px){
    .gset-overlay{padding:0;align-items:stretch;background:var(--gs-panel);backdrop-filter:none}
    .gset{width:100%;height:100%;border:0;border-radius:0;box-shadow:none;
        grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
    .gset-head{flex-wrap:wrap;gap:10px;min-height:58px;padding:calc(10px + env(safe-area-inset-top)) 10px 12px 16px}
    .gset-hic,.gset-heading p{display:none}
    .gset-heading h2{font-size:18px}
    .gset-search{order:5;flex:1 1 100%;width:auto;height:42px;margin:0 6px 0 0;border-radius:12px}
    /* 16 px : en dessous, iOS agrandit la page au focus du champ. */
    .gset-search input{font-size:16px}
    .gset-search kbd{display:none}
    .gset-x{margin-left:auto}
    /* La liste des sections, en cartes empilées. */
    .gset-nav{padding:4px 16px calc(18px + env(safe-area-inset-bottom));border-right:0;background:var(--gs-panel)}
    .gset-tabs{gap:0}
    .gset-tab{align-items:center;gap:12px;margin-top:-1px;padding:13px 14px;border:1px solid var(--gs-line);
        border-radius:0;background:var(--gs-panel)}
    .gset-tab:first-of-type{margin-top:0;border-radius:14px 14px 0 0}
    .gset-tab:last-of-type{border-radius:0 0 14px 14px}
    .gset-tab,.gset-tab.on{color:var(--gs-ink)}
    .gset-tab.on{border-color:var(--gs-line);box-shadow:none;background:var(--gs-panel)}
    .gset-tab .e{width:34px;height:34px;display:grid;place-items:center;border-radius:10px;background:var(--gs-panel-2);
        font-size:17px;line-height:1}
    .gset-tab b{font-size:15px;line-height:1.3}
    .gset-tab small{font-size:12px}
    .gset-tab .chev{display:block;font-size:22px;line-height:1;color:var(--gs-ink-faint)}
    .gset-pied{margin:14px 4px 0;padding:0;font-size:12px}
    .gset-body{padding:16px 16px calc(28px + env(safe-area-inset-bottom))}
    /* La liste OU une section (ou les résultats d'une recherche). */
    .gset:not(.gset-in-section):not(.searching) .gset-body{display:none}
    .gset.gset-in-section .gset-nav,.gset.searching .gset-nav{display:none}
    .gset.gset-in-section:not(.searching) .gset-back{display:inline-flex}
    .gset.gset-in-section:not(.searching) .gset-heading,
    .gset.gset-in-section:not(.searching) .gset-search{display:none}
    .gset-sec-head h3{font-size:21px}
    .gset-sec-head p{margin-bottom:14px}
    .gset-card{padding:14px}
    .gset-card-nu{padding:0}
    .gset-sep{margin:13px -14px 12px}
    .gset-langues{gap:8px}
    .gset-choix{padding:11px 10px}
    .gset-mini{height:78px}
    /* Favoris : la poignée ≡ passe à droite, sous le pouce ; l'aperçu du rail
       n'a pas lieu d'être (sur téléphone, le rail est un tiroir). */
    .gset-fav{grid-template-columns:minmax(0,1fr)}
    .gset-apercu{display:none}
    .gset-fav-main>.gset-ligne{flex-wrap:wrap;gap:10px}
    .gset-fav-main>.gset-ligne .gset-seg{flex:1 1 100%;display:grid;grid-template-columns:1fr 1fr}
    .gset-seg .opt{padding:7px;font-size:13px;text-align:center}
    .gset-fav-row{height:48px;gap:11px;padding:0 2px 0 12px;font-size:14.5px}
    .gset-fav-row:hover{background:var(--gs-panel)}
    .gset-fav-row .ty,.gset-fav-row .mv{display:none}
    .gset-fav-grip{order:10;width:44px;height:44px}
    .gset-fav-grip .g-points{display:none}
    .gset-fav-grip .g-lignes{display:block;width:20px;height:20px}
    .gset-fav-star{width:36px;height:36px;font-size:16px}
    .gset-notif-grille{grid-template-columns:minmax(0,1fr);gap:14px}
    /* Mon profil et la fenêtre de validation : une colonne, des champs de 16 px
       (en dessous, iOS agrandit la page au focus). */
    .gprof-id{flex-wrap:wrap}
    .gprof-id label.gset-btn{flex:1 1 100%;justify-content:center}
    .gprof-grille,.gprof-admin{grid-template-columns:minmax(0,1fr)}
    .gprof-champ input,.gprof-champ select,.gprof-champ textarea{min-height:44px;font-size:16px}
    .gpv-overlay{padding:0;align-items:stretch;background:var(--gs-panel);backdrop-filter:none}
    .gpv{width:100%;max-height:none;height:100%;border:0;border-radius:0;box-shadow:none}
    .gpv-tete{padding:calc(16px + env(safe-area-inset-top)) 16px 14px}
    .gpv-corps{padding:16px}
    .gpv-pied{padding:12px 16px calc(12px + env(safe-area-inset-bottom))}
    .gpv-pied>button{flex:1;justify-content:center;min-height:44px}
    .gnotif-fam{grid-template-columns:minmax(0,1fr) 66px 66px}
    .gset-courriel{grid-template-columns:minmax(0,1fr);gap:14px}
    .gmb-row{grid-template-columns:22px minmax(0,1fr);row-gap:6px;padding:11px 12px}
    .gmb-def,.gmb-acts{grid-column:2}
    .gmb-acts{justify-content:flex-start}
}

/* Liens cliquables dans les messages et les tâches (linkifyUrls). Le point qui
   compte n'est pas la couleur mais le DÉBORDEMENT : une URL Amazon de 700
   caractères sans espace sortait de la bulle par la droite. `anywhere` autorise
   la coupure n'importe où — c'est laid sur un mot normal, mais une URL n'en est
   pas un, et la portée est limitée aux liens. */
.gc-link{color:var(--gs-accent);text-decoration:underline;text-underline-offset:2px;
    overflow-wrap:anywhere;word-break:break-word}
.gc-link:hover{color:var(--gs-ink)}

/* =====================================================================
   GANDALF NEXT — coquille validée (dev)
   Navigation courte, header universel et densité homogène. Cette passe est
   volontairement en surcharge : les vues métier gardent leur DOM et leurs
   contrats, le design peut donc être testé sans migration destructive.
   ===================================================================== */
@media (min-width:861px){
    /* Hauteur réservée sous l'en-tête, partagée par toutes les vues fixes. */
    body.shell-on{--gs-rail-w:248px;--gs-universal-h:calc(72px + var(--gs-app-tabs-h));
        --gs-chrome-h:var(--gs-universal-h)}
    body.shell-on #app-content{padding-left:var(--gs-rail-w);padding-top:var(--gs-universal-h);min-height:100dvh}
    body.shell-on .chat-view,
    body.shell-on .tasks-view{left:var(--gs-rail-w);top:var(--gs-universal-h)}
    /* (La rangée « Communications » est désormais masquée PARTOUT sous le
       shell — voir la règle globale plus bas. Celle-ci reste par ceinture
       et bretelles dans le bloc desktop historique.) */
    body.shell-on .chat-header{display:none}
    body.shell-on .gshell-appframe{left:var(--gs-rail-w);top:var(--gs-universal-h)}
    body.shell-on #ai-chat-view{top:var(--gs-universal-h);height:calc(100dvh - var(--gs-universal-h))}
    /* Apport de dev-mon : la barre latérale de l'IA descend elle aussi sous
       l'en-tête global. ai-chat.css lui donne `left` et `z-index`, jamais
       `top` — sans cette ligne elle chevauche les 72 px de l'en-tête. Le
       garde-fou `:not(.ai-popup-mode)` laisse le mode fenêtré à son `top:0`. */
    body.shell-on:not(.ai-popup-mode) .ai-sidebar{top:var(--gs-universal-h)}
    body.shell-on .gshell-modulehead{display:none!important}
}

body.shell-on{
    background-color:var(--gs-ground);
    background-image:radial-gradient(var(--gs-brand-fibre) 1px,transparent 1px);
    background-size:40px 40px;
    background-attachment:fixed;
    font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif
}
body.shell-on[data-gtheme="dark"]{
    background-color:var(--gs-ground);
    background-image:radial-gradient(rgba(221,203,164,.12) 1px,transparent 1px)
}
/* Le rail porte l'ivoire (voir --gs-rail-bg en tête de fichier). Les surfaces
   secondaires INTERNES au rail (carte profil, pastille avatar…) passent au ton
   du dessous pour rester lisibles sur ce fond — l'override est local au rail,
   le reste de la coquille garde --gs-panel-2. */
/* `overflow` est volontairement ABSENT de cette règle : elle ne sert qu'au fond
   et à la densité. Elle portait `overflow:hidden`, qui écrasait le
   `overflow-y:auto` de la règle de base (l.117-130) — spécificité (0,2,1)
   contre (0,1,0), et plus bas dans le fichier. Résultat : sur une fenêtre plus
   courte que le rail, le bas de la colonne (favoris, carte profil) était coupé
   sans aucun moyen d'y accéder. Le drawer mobile, lui, défilait déjà : ses
   règles (l.~1364 et l.~2184) sont en (0,3,1) et repassaient devant.
   Ne pas réintroduire de raccourci `overflow` ici. */
body.shell-on .gshell-rail{background:var(--gs-rail-bg);--gs-panel-2:var(--gs-rail-panel-2);padding:17px 14px 14px;gap:3px;
    /* le rail défile sans barre visible — masquage assuré l.127/128/130 */
    overflow-y:auto;overflow-x:hidden;
    /* arrivé en bout de course, la molette ne contamine pas la page dessous */
    overscroll-behavior:contain}
.gshell-brand{height:43px;margin:0 0 11px;padding:0 8px;font-family:'Outfit','Inter',sans-serif;font-size:18px;letter-spacing:0}
.gshell-brand>span:last-child{display:flex;flex-direction:column;line-height:1.05}
.gshell-brand small{margin-top:3px;font:600 9.5px 'Inter',sans-serif;color:var(--gs-ink-faint);letter-spacing:0}
.gshell-brand .mark{width:34px;height:34px}
.gshell-brand .mark-gandalf img{width:46px;height:46px;margin:-12px 0 0 -7px}
.gshell-rail-label{margin:13px 10px 6px;color:var(--gs-ink-faint);font-size:9.5px;font-weight:750;text-transform:uppercase;letter-spacing:0}
.gshell-item{min-height:41px;padding:8px 10px;border-radius:var(--gs-radius-control);font-size:13px;font-weight:600;letter-spacing:0}
.gshell-item .ic{width:21px;font-size:16px;filter:grayscale(1) opacity(.62)}
.gicon{width:1.25em;height:1.25em;display:block;overflow:visible;color:currentColor}
.gshell-item .ic:has(.gicon),.gshell-tab .ic:has(.gicon){display:grid;place-items:center;filter:none;opacity:.72}
.gshell-item.on .ic:has(.gicon),.gshell-tab.on .ic:has(.gicon){opacity:1}
.gshell-item.on{border-color:var(--gs-line-strong);color:var(--gs-accent);box-shadow:inset 3px 0 var(--gs-accent)}
.gshell-gandalf-item{margin-top:3px}
.gshell-gandalf-item .ic{overflow:visible}
.gshell-route-registry{display:none!important}
.gshell-rail-favorites{display:flex;flex-direction:column;gap:2px;min-height:0}
.gshell-rail-favorites.hidden,.gshell-rail-label.hidden{display:none}
.gshell-rail-favorite{width:100%;border:0;background:transparent;text-align:left;font-family:inherit}
.gshell-fav-app-icon{position:relative;display:grid;place-items:center;overflow:hidden;border-radius:6px;filter:none!important}
.gshell-fav-app-icon img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gshell-fav-app-icon .gli-emoji{font-size:13px}
.gshell-fav-app-icon .gli-connected-icon{width:17px;height:17px;color:var(--gs-accent)}
.gshell-rail-utilities{border-top:1px solid var(--gs-line);padding-top:9px}
.gshell-user{border-radius:var(--gs-radius-control);padding:8px;margin-top:6px;background:var(--gs-panel-2)}
.gshell-user .ubell{display:none}

/* En-tête global, stable dans toutes les destinations. */
.gshell-universal-head{position:fixed;z-index:89;top:0;right:0;left:var(--gs-rail-w);height:72px;
    display:grid;grid-template-columns:minmax(170px,.7fr) minmax(340px,1.4fr) minmax(290px,.9fr);
    align-items:center;gap:20px;padding:0 24px;background:color-mix(in srgb,var(--gs-rail-bg) 94%,transparent);
    border-bottom:1px solid var(--gs-line);backdrop-filter:blur(16px)}
body:not(.shell-on) .gshell-universal-head{display:none}
.gshell-page-id{min-width:0;display:flex;flex-direction:column;gap:2px}
.gshell-page-id>span{font-size:9.5px;font-weight:700;text-transform:uppercase;color:var(--gs-ink-faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gshell-page-id>strong{font:700 20px/1.1 'Outfit','Inter',sans-serif;color:var(--gs-ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gshell-universal-search{height:44px;min-width:0;display:flex;align-items:center;gap:10px;padding:0 9px 0 12px;
    border:1px solid var(--gs-line-strong);border-radius:var(--gs-radius-control);background:var(--gs-search-bg);color:var(--gs-ink-dim);
    cursor:pointer;box-shadow:0 3px 14px rgba(35,31,24,.05);font-family:inherit;text-align:left}
.gshell-universal-search:hover{border-color:var(--gs-accent)}
.gshell-universal-search img{width:29px;height:29px;object-fit:contain;filter:drop-shadow(0 2px 4px rgba(40,34,24,.18))}
.gshell-universal-search>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12.5px}
.gshell-universal-search kbd{border:1px solid var(--gs-line);border-bottom-color:var(--gs-line-strong);border-radius:5px;
    background:var(--gs-panel-2);color:var(--gs-ink-faint);padding:3px 6px;font:700 9.5px ui-monospace,'SF Mono',monospace}
.gshell-universal-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.gshell-leclaude{position:relative;height:40px;min-width:126px;max-width:174px;display:flex;align-items:center;gap:8px;
    padding:4px 10px 4px 5px;border:1px solid #292a27;border-radius:var(--gs-radius-control);background:#1d1e1b;color:#fff;
    font:inherit;text-align:left;cursor:pointer;box-shadow:0 3px 12px rgba(30,27,22,.1);transition:transform .15s ease,box-shadow .15s ease}
.gshell-leclaude:hover{transform:translateY(-1px);box-shadow:0 6px 18px rgba(30,27,22,.18)}
.gshell-leclaude:focus-visible{outline:2px solid var(--gs-accent);outline-offset:2px}
.gshell-leclaude .tlc-cover{width:30px;height:30px;flex:0 0 30px;display:grid;place-items:center;overflow:hidden;
    border-radius:50%;background:linear-gradient(145deg,#373832,#111);color:#f4efe3}
.gshell-leclaude .tlc-cover:empty::before{content:"L+";font:800 10px 'Outfit','Inter',sans-serif;letter-spacing:-.03em}
.gshell-leclaude .tlc-cover img{width:100%;height:100%;object-fit:cover;display:block}
.gshell-leclaude .tlc-txt{min-width:0;display:flex;flex-direction:column;gap:1px}
.gshell-leclaude .tlc-brand{font:800 10.5px/1 'Outfit','Inter',sans-serif;letter-spacing:.09em;white-space:nowrap}
.gshell-leclaude .tlc-plus{color:#ff3b42}
.gshell-leclaude .tlc-title{max-width:112px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:9px;line-height:1.2;color:rgba(255,255,255,.67)}
.gshell-leclaude .tlc-meta{display:none}
.gshell-leclaude .tlc-badge{position:absolute;top:-3px;right:-2px;min-width:16px;height:16px;display:grid;place-items:center;
    padding:0 4px;border:2px solid var(--gs-panel);border-radius:999px;background:#e3000b;color:#fff;font-size:8px;font-weight:800}
.gshell-leclaude .tlc-badge.hidden{display:none}
.gshell-create-btn{height:40px;display:flex;align-items:center;gap:7px;padding:0 14px;border:1px solid #292a27;
    border-radius:var(--gs-radius-control);background:#292a27;color:#fff;font-family:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.gshell-create-btn:hover{background:#171815}
body.shell-on[data-gtheme="dark"] .gshell-create-btn{border-color:var(--gs-accent);background:var(--gs-accent);color:#252117}
.gshell-head-btn,.gshell-head-avatar{position:relative;width:40px;height:40px;display:grid;place-items:center;
    border:1px solid var(--gs-line);border-radius:var(--gs-radius-control);background:var(--gs-panel);color:var(--gs-ink-dim);cursor:pointer}
.gshell-head-btn:hover,.gshell-head-avatar:hover{border-color:var(--gs-line-strong);background:var(--gs-panel-2)}
.gshell-universal-bell>.gicon{width:20px;height:20px}
.gshell-universal-bell .dot{position:absolute;top:7px;right:7px;width:8px;height:8px;border:2px solid var(--gs-panel);border-radius:50%;background:var(--gs-crit)}
.gshell-universal-bell .dot.hidden{display:none}
.gshell-head-avatar{overflow:hidden;padding:2px;border-radius:50%;font-weight:800;color:var(--gs-accent)}
.gshell-head-avatar>span{width:100%;height:100%;display:grid;place-items:center;border-radius:50%;overflow:hidden}
.gshell-head-avatar img{width:100%;height:100%;display:block;border-radius:50%;object-fit:cover}

/* Aujourd'hui prolonge sa bande identitaire jusque dans l'en-tête universel.
   Le sélecteur de contexte est volontairement strict : aucune autre route ne
   doit hériter de ce traitement. En clair, terre + contrôles translucides ;
   en sombre, la surface native du thème fusionne avec le bandeau sans
   réinjecter les couleurs du thème clair. */
@media (min-width:861px){
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-universal-head{
        background:var(--gs-brand-earth);border-bottom-color:transparent;backdrop-filter:none
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-page-id>span{
        color:rgba(255,255,255,.58)
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-page-id>strong{color:#fff}
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-universal-search{
        color:rgba(255,255,255,.76);background:rgba(255,255,255,.07);
        border-color:rgba(255,255,255,.17);box-shadow:none
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-universal-search:hover{
        color:#fff;background:rgba(255,255,255,.11);border-color:rgba(221,203,164,.62)
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-universal-search kbd{
        color:rgba(255,255,255,.7);background:rgba(255,255,255,.07);
        border-color:rgba(255,255,255,.16);border-bottom-color:rgba(255,255,255,.28)
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-create-btn{
        color:var(--gs-brand-earth);background:var(--gs-brand-beige);border-color:var(--gs-brand-beige)
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-create-btn:hover{
        background:var(--gs-brand-fibre);border-color:var(--gs-brand-fibre)
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-head-btn,
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-head-avatar{
        color:rgba(255,255,255,.8);background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.17)
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-head-btn:hover,
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-head-avatar:hover{
        color:#fff;background:rgba(255,255,255,.12);border-color:rgba(221,203,164,.55)
    }
    body.shell-on:not([data-gtheme="dark"]):has(#today-view:not(.hidden)) .gshell-universal-bell .dot{
        border-color:var(--gs-brand-earth)
    }
    body.shell-on[data-gtheme="dark"]:has(#today-view:not(.hidden)) .gshell-universal-head{
        background:var(--gs-panel);border-bottom-color:transparent;backdrop-filter:none
    }
    body.shell-on[data-gtheme="dark"]:has(#today-view:not(.hidden)) .today-view>.today-head{background:var(--gs-panel)}
}

/* Menu de création globale */
.gshell-create-menu{position:fixed;z-index:125;top:62px;right:73px;width:310px;padding:7px;
    border:1px solid var(--gs-line-strong);border-radius:8px;background:var(--gs-panel);box-shadow:0 22px 55px rgba(25,21,16,.24)}
.gshell-create-menu.hidden{display:none}
.gshell-create-menu-head{padding:9px 10px 11px;border-bottom:1px solid var(--gs-line);margin-bottom:5px}
.gshell-create-menu-head strong,.gshell-create-menu-head small{display:block}
.gshell-create-menu-head strong{font:700 14px 'Outfit','Inter',sans-serif;color:var(--gs-ink)}
.gshell-create-menu-head small{margin-top:3px;color:var(--gs-ink-faint);font-size:10px}
.gshell-create-menu>button{width:100%;min-height:52px;display:grid;grid-template-columns:34px 1fr;align-items:center;gap:10px;
    padding:7px 9px;border:0;border-radius:7px;background:transparent;color:var(--gs-ink);text-align:left;cursor:pointer;font-family:inherit}
.gshell-create-menu>button:hover{background:var(--gs-panel-2)}
.gshell-create-menu .ci{width:32px;height:32px;display:grid;place-items:center;border:1px solid var(--gs-line);border-radius:7px;background:var(--gs-panel-2);font-weight:800;color:var(--gs-accent)}
.gshell-create-menu .ci .gicon{width:18px;height:18px}
.gshell-create-menu b,.gshell-create-menu small{display:block}
.gshell-create-menu b{font-size:12px}
.gshell-create-menu small{margin-top:3px;color:var(--gs-ink-faint);font-size:9.5px}
.gshell-create-menu .with-gandalf{margin-top:5px;border:1px solid var(--gs-line-strong);background:var(--gs-accent-soft)}
.gshell-create-menu .with-gandalf .ci{overflow:visible;background:transparent;border:0}
.gshell-create-menu .with-gandalf img{width:38px;height:38px;object-fit:contain}
.gshell-appswitch .gicon{width:17px;height:17px}

/* Lanceur unifié : les groupes natifs partagent les cartes des apps. */
.gshell-launcher-overlay{padding-top:94px}
.gshell-native-group{margin-top:20px}
.gshell-native-card .gli-icon{overflow:hidden}
.gshell-native-card .gli-icon{color:var(--gs-ink-dim);background:linear-gradient(145deg,var(--gs-panel-2),var(--gs-accent-soft))}
.gshell-native-card:hover .gli-icon{color:var(--gs-accent);border-color:var(--gs-accent)}
.gshell-native-card .gli-native-icon{width:26px;height:26px;transition:color .15s,transform .15s}
.gshell-native-card:hover .gli-native-icon{transform:scale(1.04)}
.gshell-rail-favorite .gli-native-icon{width:17px;height:17px}

/* Bande transversale GANDALF : la signature sombre de main revient dans une
   version plus basse. L'arête oblique est assez présente pour identifier la
   marque, sans repousser le contenu utile sous la ligne de flottaison. */
.today-view{background:var(--gs-ground);padding-bottom:70px}
.today-view>.today-head{max-width:none;margin:0 0 18px;padding:25px max(30px,calc((100% - 1160px)/2)) 45px;
    min-height:132px;background:var(--gs-brand-earth);clip-path:polygon(0 0,100% 0,100% calc(100% - 22px),0 100%)}
.today-head .today-hi{color:#fff;font:700 28px/1.15 'Outfit','Inter',sans-serif;letter-spacing:0}
.today-head .today-date{color:rgba(255,255,255,.66);font-family:'Inter',sans-serif;letter-spacing:0;text-transform:none;margin-top:5px}
.today-head .today-quote{color:rgba(255,255,255,.72);font-size:11.5px;margin-top:7px}
.today-logo-wrap{display:none}
.today-weather{color:#fff;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.14);border-radius:var(--gs-radius-control);padding:7px 10px}
.today-view>*:not(.today-head){max-width:1220px;padding-left:30px;padding-right:30px}
.today-grid{grid-template-columns:minmax(0,1.35fr) minmax(290px,.8fr);gap:28px}
.today-col{gap:9px}
.today-brief{border-radius:var(--gs-radius-card);background:var(--gs-panel);padding:20px 21px;box-shadow:none}
.today-brief .btag{letter-spacing:0}
.today-brief-actions{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin-top:17px;padding-top:14px;border-top:1px solid var(--gs-line)}
.today-brief-actions button{min-height:36px;display:flex;align-items:center;gap:7px;padding:0 11px;border:1px solid var(--gs-line-strong);border-radius:var(--gs-radius-control);background:var(--gs-panel);color:var(--gs-ink-dim);font:650 11px 'Inter',sans-serif;cursor:pointer}
.today-brief-actions button:hover{border-color:var(--gs-accent);color:var(--gs-ink)}
.today-brief-actions button.primary{border-color:#292a27;background:#292a27;color:#fff}
body.shell-on[data-gtheme="dark"] .today-brief-actions button.primary{border-color:var(--gs-accent);background:var(--gs-accent);color:#252117}
.today-lbl{font-family:'Inter',sans-serif;font-weight:750;letter-spacing:0;border-bottom:1px solid var(--gs-line);padding:18px 2px 8px}
.today-row,.today-empty,.today-stat,.today-recent-item,.today-fav{border-radius:var(--gs-radius-card);box-shadow:none}
.today-row{min-height:60px;padding:11px 13px}
.today-favs{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:9px}
.today-fav{align-items:flex-start;min-height:92px;padding:12px}
.today-fav .fimg{width:38px;height:38px;border-radius:7px}
.today-fav .fn{text-align:left;font-size:10.5px;font-weight:650}
.today-stat .n{font-family:'Outfit','Inter',sans-serif}

/* Un même chrome pour les modules de travail. */
body.shell-on .chat-header,body.shell-on .tasks-header,body.shell-on .gshell-apphead{
    min-height:58px;padding:9px 18px;background:var(--gs-panel);border-bottom:1px solid var(--gs-line)}
body.shell-on .chat-title,body.shell-on .tasks-title{font-family:'Outfit','Inter',sans-serif;font-size:18px;letter-spacing:0}
body.shell-on .tasks-title{display:flex;align-items:center;gap:8px}
body.shell-on .tasks-title .gicon{width:20px;height:20px;color:var(--gs-accent)}
body.shell-on .tasks-dupmgr-btn .gicon{width:16px;height:16px}
body.shell-on .chat-sidebar,body.shell-on .chat-pane,body.shell-on .tasks-toolbar{background:var(--gs-panel)}
body.shell-on .chat-messages,body.shell-on .tasks-list{background:var(--gs-ground)}
body.shell-on .chat-conv-item{border-radius:7px;margin:2px 7px;border-bottom:0}
body.shell-on .chat-conv-item:hover{background:var(--gs-panel-2)}
/* Conversation pas encore ouverte : fond teinté + filet d'accent, en plus de la
   pastille et du gras qui existaient déjà (ticket J6U7z72o9lkT9ZpQq9rX). C'est
   la coquille que voient les employés — sans cette règle, le correctif de
   style.css resterait invisible ici, la liste y étant entièrement re-stylée.
   Mêmes ingrédients que `.trm-unread` (l. 605) pour que les deux listes de
   conversations du produit se lisent pareil. Les tokens --gs-* basculent seuls
   en thème sombre : une seule paire de règles couvre les deux thèmes.
   Trois classes dans le sélecteur pour passer devant `:hover` ET devant
   `.chat-conv-active` du thème sombre. */
body.shell-on .chat-conv-item.chat-conv-unread{
    background:color-mix(in srgb,var(--gs-accent) 14%,var(--gs-panel));
    box-shadow:inset 4px 0 var(--gs-accent)}
body.shell-on .chat-conv-item.chat-conv-unread:hover{
    background:color-mix(in srgb,var(--gs-accent) 21%,var(--gs-panel))}
.chat-inbox-notifs{min-height:36px;display:flex;align-items:center;gap:7px;padding:0 10px;border:1px solid var(--gs-line);border-radius:var(--gs-radius-control);background:var(--gs-panel);color:var(--gs-ink-dim);font:650 11px 'Inter',sans-serif;cursor:pointer}
/* Vraie cloche du sprite : l'ancien dôme dessiné en CSS (border-bottom:0)
   se lisait comme une cloche coupée en bas (capture Mathieu 02/09). */
.chat-inbox-notifs .gicon{width:15px;height:15px}
.chat-inbox-notifs .dot{width:7px;height:7px;border-radius:50%;background:var(--gs-crit)}
.chat-inbox-notifs .dot.hidden{display:none}

@media (max-width:1360px) and (min-width:861px){
    .gshell-leclaude{width:40px;min-width:40px;padding:4px}
    .gshell-leclaude .tlc-txt{display:none}
}

@media (max-width:1120px) and (min-width:861px){
    .gshell-universal-head{grid-template-columns:150px minmax(300px,1fr) 180px;padding:0 18px;gap:14px}
    .gshell-create-btn>span:last-child{display:none}
    .gshell-create-btn{width:40px;padding:0;justify-content:center}
    .today-grid{grid-template-columns:minmax(0,1.2fr) minmax(270px,.8fr)}
}

@media (max-width:860px){
    .gshell-universal-head{display:none}
    .gshell-create-menu{top:calc(52px + env(safe-area-inset-top));right:10px;left:10px;width:auto}
    .gshell-topbar{background:color-mix(in srgb,var(--gs-panel) 95%,transparent);padding:calc(9px + env(safe-area-inset-top)) 12px 9px;backdrop-filter:blur(16px)}
    .gshell-topbar .tsearch{height:35px;border-radius:8px;padding:0 10px}
    .gshell-topbar .tbell{cursor:pointer}
    .gshell-tabbar{display:grid;grid-template-columns:repeat(5,1fr);padding:5px 3px calc(5px + env(safe-area-inset-bottom))}
    .gshell-tab{gap:2px;font-size:9px}
    .gshell-tab-gandalf{transform:translateY(-11px)}
    .gshell-tab-gandalf .ic{width:43px;height:43px;display:grid;place-items:center;border:1px solid var(--gs-line-strong);border-radius:8px;background:var(--gs-accent-soft);box-shadow:0 7px 18px rgba(30,27,22,.14)}
    /* Icône CENTRÉE : les marges négatives « artistiques » (-7px/-5px) la
       faisaient déborder en haut à gauche du carré (capture Mathieu, 02/09). */
    .gshell-tab-gandalf .ic-gandalf{width:34px;height:34px;margin:0}
    /* Le launcher (z 121) passait PAR-DESSUS le bouton Gandalf surélevé de la
       barre (z 95) : quand « Espaces et applications » est ouvert, la barre
       remonte au-dessus du panneau. */
    body.gshell-launcher-open .gshell-tabbar{z-index:122}
    /* La bande « Aujourd'hui » fusionne avec le bandeau Bonjour (02/09) :
       même terre sombre, plus de trait de séparation. */
    body.shell-on .gshell-modulehead[data-gs-section="aujourdhui"]{
        background:var(--gs-brand-earth);border-bottom:0}
    body.shell-on .gshell-modulehead[data-gs-section="aujourdhui"] .an{color:#fff}
    body.shell-on .gshell-modulehead[data-gs-section="aujourdhui"] .crumb{color:rgba(255,255,255,.55)}
    body.shell-on .gshell-modulehead[data-gs-section="aujourdhui"] .ai{
        background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.18);color:#fff}
    /* En sombre, le bandeau Bonjour est en surface native (--gs-panel) : la
       bande suit, sans réinjecter la terre du thème clair. */
    body.shell-on[data-gtheme="dark"] .gshell-modulehead[data-gs-section="aujourdhui"]{background:var(--gs-panel)}
    /* LECLAUDE, déplacé ici par shell.js placeLeclaudeChip : compact, à droite. */
    body.shell-on .gshell-modulehead .gshell-leclaude{margin-left:auto;max-width:190px;padding:3px 10px 3px 3px;gap:8px}
    body.shell-on .gshell-modulehead .gshell-leclaude .tlc-cover{width:30px;height:30px}
    body.shell-on .gshell-modulehead .gshell-leclaude .tlc-title,
    body.shell-on .gshell-modulehead .gshell-leclaude .tlc-meta{display:none}
    body.shell-on.gshell-nav-open .gshell-rail{overflow-y:auto;gap:3px}
    .gshell-route-registry{display:none!important}
    .today-view>.today-head{min-height:112px;margin-bottom:12px;padding:18px 14px 34px;clip-path:polygon(0 0,100% 0,100% calc(100% - 14px),0 100%)}
    .today-head .today-hi{font-size:23px}
    .today-head .today-quote{display:none}
    .today-view>*:not(.today-head){padding-left:14px;padding-right:14px}
    .today-grid{display:block}
    .today-col+.today-col{margin-top:22px}
    .today-brief{padding:16px}
    .today-brief-actions{display:grid;grid-template-columns:1fr 1fr}
    .today-brief-actions button{justify-content:center}
    .today-brief-actions button:first-child{grid-column:1/-1}
    .today-favs{grid-template-columns:repeat(3,minmax(0,1fr))}
    .today-fav:nth-child(n+7){display:none}
    .gshell-launcher-overlay{padding-top:0}
    .gshell-launcher-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .chat-inbox-notifs>span:nth-child(2){display:none}
}

@media (max-width:520px){
    .gshell-create-menu{bottom:calc(var(--gs-tabbar-h) + env(safe-area-inset-bottom) + 8px);top:auto;max-height:calc(100dvh - 150px);overflow-y:auto}
    .gshell-launcher-heading h2{font-size:17px}
    .gshell-launcher-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* ===== Bandeau « notifications coupées sur ce téléphone » =====
   Ticket O1aVsRNEsEB1HP8Gadub (E. Correa, 07/10/2026). Posé par
   public/js/notifications.js, seulement sur téléphone, au-dessus de la barre
   d'onglets du bas. La décision vit dans public/js/notif-coupees.js. */
.gnotif-coupees{position:fixed;left:8px;right:8px;z-index:96;
    bottom:calc(var(--gs-tabbar-h, 64px) + env(safe-area-inset-bottom) + 8px);
    display:flex;gap:10px;align-items:center;justify-content:space-between;
    padding:10px 12px;border-radius:12px;font-size:13px;line-height:1.35;
    background:var(--gs-panel, #fff);color:var(--gs-ink, #282828);
    border:1px solid var(--gs-crit, #c94855);box-shadow:0 6px 24px rgba(0,0,0,.18)}
.gnotif-coupees .gnc-txt{display:flex;flex-direction:column;gap:3px;min-width:0}
.gnotif-coupees .gnc-actions{display:flex;flex-direction:column;gap:6px;flex-shrink:0}
.gnotif-coupees button{border:none;border-radius:8px;padding:7px 12px;font:inherit;font-weight:700;cursor:pointer}
.gnotif-coupees .gnc-activer{background:var(--gs-crit, #c94855);color:#fff}
.gnotif-coupees .gnc-activer:disabled{opacity:.6}
.gnotif-coupees .gnc-plustard{background:transparent;color:var(--gs-ink-faint, #8a8175);font-weight:600}
