/* =====================================================================
   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-ground:#F4EFE3;
    --gs-panel:#FFFFFF;
    --gs-panel-2:#F7F1E6;
    --gs-line:rgba(40,34,24,.10);
    --gs-line-strong:rgba(168,134,63,.32);
    --gs-accent:#A8863F;
    --gs-accent-soft:rgba(168,134,63,.12);
    --gs-ink:#282828;
    --gs-ink-dim:rgba(40,38,34,.66);
    --gs-ink-faint:rgba(40,38,34,.44);
    --gs-ok:#6E8A63;
    --gs-warn:#BC7E29;
    --gs-crit:#B85443;
    --gs-gold-a:#C2A868;
    --gs-gold-b:#a1823f;
}
body.shell-on[data-gtheme="dark"]{
    --gs-ground:#201d19;
    --gs-panel:#2b2823;
    --gs-panel-2:#332f28;
    --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)}
@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)}

/* les boutons retour deviennent inutiles : le rail est la navigation */
body.shell-on .chat-back,
body.shell-on .tasks-back,
body.shell-on .mytickets-back,
body.shell-on .actu-back{display:none}

/* =====================================================================
   RAIL (desktop)
   ===================================================================== */
.gshell-rail{
    position:fixed;top:0;left:0;bottom:0;width:var(--gs-rail-w);
    background:var(--gs-panel-2);
    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-panel);
    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)}
    .gshell-topbar .tbell{position:relative;font-size:18px;padding:4px}
    .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}
    .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:#F4EFE3}
/* Logo Groupe Chanv — tuile parchemin héritée de l'ancien header */
.today-logo-wrap{background:#F4EFE3;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}
.today-weather.hidden{display:none}
.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}
}
.today-head .today-date{color:rgba(244,239,227,.60)}
.today-head .today-quote{color:rgba(244,239,227,.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);
  background:linear-gradient(100deg,rgba(233,169,61,.17),rgba(221,203,164,.09));
  border:1px solid rgba(233,169,61,.34);animation:tbPop .45s ease}
.today-birthday.hidden{display:none}
.today-birthday .tb-line{display:flex;align-items:center;gap:11px}
.today-birthday .tb-cake{font-size:1.3rem;flex:0 0 auto;line-height:1}
.today-birthday .tb-text{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 rgba(255,255,255,.9);background:#E9A93D}
.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:#fff;font-weight:800;font-size:.72rem;background:#A8863F}
@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,rgba(109,76,219,.16),rgba(233,169,61,.10));
  border:1px solid rgba(109,76,219,.32);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-gold-a),var(--gs-gold-b));color:#241f16;
    box-shadow:0 3px 9px rgba(168,134,63,.3)}
.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}
.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-accent,#A8863F);background:color-mix(in srgb,var(--gs-accent,#A8863F) 8%,var(--gs-panel))}
.trm-unread .trm-name{color:var(--gs-accent,#A8863F)}
.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,#E9E2D0);color:var(--gs-ink)}
.trm-av-room{background:var(--gs-accent,#A8863F);color:#fff}
.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 .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-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{display:flex;align-items:flex-end;gap:4px;padding:6px 10px 0;
    background:var(--gs-ground);border-bottom:1px solid var(--gs-line);
    overflow-x:auto;scrollbar-width:none;flex-shrink:0}
.gshell-apptabs::-webkit-scrollbar{display:none}
.gshell-apptabs.hidden{display:none}
.gshell-apptab{display:inline-flex;align-items:center;gap:7px;max-width:200px;
    border:1px solid transparent;border-bottom:none;border-radius:9px 9px 0 0;
    background:none;color:var(--gs-ink-2,var(--gs-ink));cursor:pointer;
    padding:7px 10px 8px;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);
    box-shadow:0 1px 0 var(--gs-panel-2)} /* fond raccordé au bandeau dessous */
.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 .tn{overflow:hidden;text-overflow:ellipsis;max-width:130px}
.gshell-apptab .tx{margin-left:2px;padding:1px 4px;border-radius:5px;font-size:11px;
    opacity:0;transition:opacity .15s;flex-shrink:0}
.gshell-apptab:hover .tx,.gshell-apptab.on .tx{opacity:.6}
.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){
    .gshell-apptabs{padding:6px 8px 0}
    .gshell-apptab{padding:6px 8px 7px}
    .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 */
}

/* 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-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}
.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}
.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.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)}

/* =====================================================================
   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{display:flex;align-items:center;justify-content:space-between;
    font-family:ui-monospace,'SF Mono',monospace;font-size:10px;letter-spacing:.16em;
    text-transform:uppercase;color:var(--gs-ink-faint);padding:6px 6px 6px}
.gshell-drawer-readall{background:none;border:1px solid var(--gs-line);border-radius:7px;
    font-family:inherit;font-size:10px;color:var(--gs-ink-dim);cursor:pointer;padding:3px 8px;
    letter-spacing:.04em}
.gshell-drawer-readall:hover{border-color:var(--gs-line-strong);color:var(--gs-ink)}

.gshell-notifs{display:flex;flex-direction:column;gap:6px;min-height:60px;max-height:42vh;
    overflow-y:auto;padding:2px}
.gshell-notif{display:flex;gap:10px;align-items:flex-start;background:var(--gs-panel-2);
    border:1px solid var(--gs-line);border-radius:12px;padding:10px 12px;cursor:pointer;
    transition:border-color .15s}
.gshell-notif:hover{border-color:var(--gs-line-strong)}
.gshell-notif .ni{font-size:16px;flex:0 0 auto;line-height:1.3}
.gshell-notif .nt{flex:1;min-width:0}
.gshell-notif .nt1{font-size:12.5px;font-weight:650;color:var(--gs-ink);line-height:1.3}
.gshell-notif .nt2{font-size:11px;color:var(--gs-ink-dim);line-height:1.35;margin-top:2px;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.gshell-notif .nw{font-family:ui-monospace,monospace;font-size:9px;color:var(--gs-ink-faint);
    flex:0 0 auto;margin-top:2px}
.gshell-notif-empty{padding:18px 10px;text-align:center;color:var(--gs-ink-faint);font-size:12.5px}

.gshell-drawer-sep{height:1px;background:var(--gs-line);margin:10px 4px}

.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)}

.gshell-drawer-inline{display:flex;align-items:center;justify-content:space-between;
    padding:8px 12px;gap:10px}
.gshell-drawer-inline .lbl{font-size:13px;color:var(--gs-ink-dim)}
.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-pushhint{font-size:11px;color:var(--gs-ink-faint);padding:0 12px 8px;line-height:1.4}
.gshell-drawer-pushhint.gpt-warn{color:#c9772f}
.gshell-drawer-pushtest{margin:0 12px 10px;padding:7px 10px;font-size:12px;border-radius:8px;
    background:none;border:1px solid var(--gs-border);color:var(--gs-ink-dim);cursor:pointer;text-align:left}
.gshell-drawer-pushtest:hover{background:var(--gs-hover);color:var(--gs-ink)}

.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)}
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}

@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)}

/* Outils des notifications : épingle + croix (visibles au survol) */
.gshell-notif{position:relative}
.gshell-notif-tools{position:absolute;top:6px;right:8px;display:flex;gap:4px;opacity:0;transition:opacity .12s}
.gshell-notif:hover .gshell-notif-tools{opacity:1}
.gshell-notif-tools button{border:none;background:var(--gs-panel);border:1px solid var(--gs-line);
    border-radius:7px;cursor:pointer;font-size:11px;line-height:1;padding:4px 6px;color:var(--gs-ink-dim)}
.gshell-notif-tools button:hover{color:var(--gs-ink);border-color:var(--gs-line-strong)}
.gshell-notif-tools .gnotif-pin.on{opacity:1;background:var(--gs-accent-soft);border-color:var(--gs-line-strong)}
.gshell-notif-pinned{border-left:3px solid var(--gs-accent)}
.gshell-notif-pinned .gshell-notif-tools{opacity:1}

/* 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) .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) .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}
}

/* =====================================================================
   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}}
