/* (30/11/2026) Identite CRM, Assistant SubScale IA (vue Assistant : public/app.html, public/app.js).
   Charge apres crm-scripts.css, avant telephone.css. Regles a 12 identifiants (:is(#gs,*):not(#h1)..:not(#h10)) pour passer devant les feuilles plus anciennes.
   Source : l'accent (--ds-accent) pour le seul bouton principal (Envoyer) et le focus de la saisie ; aucune ombre, aucun halo ;
   surfaces et filets des jetons de public/of.css ; memes tailles de texte qu'avant (12,5 px colonne, 13,5 px suggestions, 14,5 px saisie et messages).
   Ce qui donnait l'impression de « violet » : le halo d'accent pose deux fois (cadre + champ, of.css section 10), le champ encadre
   dans le cadre, Envoyer desactive en accent a 50 % et le bouton Nouvelle conversation plein d'accent. */

/* ---------- 1. Colonne de gauche : comme le menu principal (survol s2, element ouvert s3 en texte fort) ---------- */
html body :is(#gs, .app) #view-chat .as-rail:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-canvas) !important; border-right: 1px solid var(--ds-line) !important; box-shadow: none !important; padding: 12px 8px !important; gap: 12px !important; font-family: var(--ds-font) !important; }
/* « Nouvelle conversation » : bouton secondaire net (le bouton principal de l'ecran est Envoyer) ; le + a l'accent */
html body :is(#gs, .app) #view-chat .as-rail > .as-new:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { justify-content: flex-start !important; gap: 8px !important; height: 32px !important; min-height: 32px !important; padding: 0 10px !important; background: var(--ds-s1) !important; color: var(--ds-text) !important; border: 1px solid var(--ds-line-2) !important; border-radius: 8px !important; box-shadow: none !important; filter: none !important; font-size: 12.5px !important; font-weight: 600 !important; letter-spacing: -.005em !important; text-transform: none !important; transition: background-color .12s ease, border-color .12s ease !important; }
html body :is(#gs, .app) #view-chat .as-rail > .as-new:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s2) !important; border-color: var(--ds-line-2) !important; color: var(--of-hi) !important; filter: none !important; }
html body :is(#gs, .app) #view-chat .as-rail > .as-new > .i:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { width: 15px !important; height: 15px !important; margin: 0 !important; color: var(--of-ac-tx) !important; }
html body :is(#gs, .app) #view-chat .as-rail > .as-new:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { outline: 2px solid var(--ds-accent) !important; outline-offset: 1px !important; }
/* titres de section : petits, discrets, casse normale */
html body :is(#gs, .app) #view-chat .as-rsec > small:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding: 0 8px 4px !important; font-size: 11.5px !important; font-weight: 600 !important; letter-spacing: 0 !important; text-transform: none !important; color: var(--ds-faint) !important; }
html body :is(#gs, .app) #view-chat .as-rail > .as-tools:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { gap: 1px !important; padding: 0 0 12px !important; border-bottom: 1px solid var(--ds-line) !important; }
html body :is(#gs, .app) #view-chat .as-tools button:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { display: flex !important; align-items: center !important; gap: 10px !important; height: 34px !important; padding: 0 8px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--ds-text-2) !important; font-size: 12.5px !important; font-weight: 500 !important; box-shadow: none !important; transition: background-color .12s ease, color .12s ease !important; }
/* les icones des outils : comme celles du menu (sans cadre), grises, plus nettes au survol */
html body :is(#gs, .app) #view-chat .as-tools button > .i:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { box-sizing: border-box !important; width: 16px !important; height: 16px !important; padding: 0 !important; margin: 0 4px !important; border: 0 !important; border-radius: 0 !important; background: none !important; color: var(--ds-muted) !important; }
html body :is(#gs, .app) #view-chat .as-tools button:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s2) !important; color: var(--ds-text) !important; }
html body :is(#gs, .app) #view-chat .as-tools button:hover > .i:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--ds-text-2) !important; }
html body :is(#gs, .app) #view-chat .as-tools button:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10), html body :is(#gs, .app) #view-chat .as-conv:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { outline: 2px solid var(--ds-accent) !important; outline-offset: -2px !important; }
/* conversations : groupe du jour, titre sur une ligne ; ouverte = fond s3, texte fort (pas de trait d'accent : le menu n'en a pas) */
html body :is(#gs, .app) #view-chat .as-convs:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { gap: 1px !important; }
html body :is(#gs, .app) #view-chat .as-convs li.as-cg:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding: 12px 8px 4px !important; font-size: 11.5px !important; font-weight: 500 !important; color: var(--ds-muted) !important; text-transform: none !important; letter-spacing: 0 !important; }
html body :is(#gs, .app) #view-chat .as-convs li.as-cg:first-child:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding-top: 4px !important; }
html body :is(#gs, .app) #view-chat .as-conv:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { height: 32px !important; padding: 0 28px 0 8px !important; border: 0 !important; border-radius: 8px !important; background: transparent !important; color: var(--ds-text-2) !important; font-size: 12.5px !important; font-weight: 400 !important; box-shadow: none !important; transition: background-color .12s ease, color .12s ease !important; }
html body :is(#gs, .app) #view-chat .as-conv:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s2) !important; color: var(--ds-text) !important; }
html body :is(#gs, .app) #view-chat .as-conv.on:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s3) !important; color: var(--of-hi) !important; font-weight: 600 !important; box-shadow: none !important; }
html body :is(#gs, .app) #view-chat .as-cdel:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { top: 6px !important; right: 4px !important; width: 20px !important; height: 20px !important; padding: 0 !important; border: 0 !important; border-radius: 6px !important; background: none !important; color: var(--ds-muted) !important; box-shadow: none !important; }
html body :is(#gs, .app) #view-chat .as-cdel:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s3) !important; color: var(--ds-bad) !important; }
html body :is(#gs, .app) #view-chat .as-cempty:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding: 4px 8px !important; color: var(--ds-faint) !important; font-size: 12.5px !important; }

/* ---------- 2. Ecran vide : symbole, titre, sous-titre, quatre suggestions sur la grille de la saisie ---------- */
html body :is(#gs, .app) #view-chat #thread:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10), html body :is(#gs, .app) #view-chat .composer-zone > .wrap:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { max-width: 752px !important; }
html body :is(#gs, .app) #view-chat #thread:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding: 24px 16px 32px !important; gap: 28px !important; }
html body :is(#gs, .app) #view-chat .as-welcome:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { gap: 8px !important; padding: 32px 0 8px !important; }
html body :is(#gs, .app) #view-chat .as-wav:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin: 0 0 12px !important; }
html body :is(#gs, .app) #view-chat .as-welcome h2:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin: 0 !important; font-family: var(--ds-font) !important; font-size: 22px !important; font-weight: 600 !important; letter-spacing: -.02em !important; line-height: 1.3 !important; color: var(--of-hi) !important; text-transform: none !important; }
html body :is(#gs, .app) #view-chat .as-welcome p:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { max-width: 460px !important; margin: 0 !important; font-size: 13.5px !important; line-height: 1.55 !important; color: var(--ds-muted) !important; }
/* suggestions : deux colonnes alignees sur la largeur de la saisie, cartes s1 a filet, 10 px */
html body :is(#gs, .app) #view-chat .as-sugg:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; width: 100% !important; max-width: none !important; margin: 24px 0 0 !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; background: none !important; overflow: visible !important; }
html body :is(#gs, .app) #view-chat .as-sugg button:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { display: flex !important; align-items: flex-start !important; gap: 12px !important; min-height: 64px !important; padding: 12px 12px 12px 12px !important; border: 1px solid var(--ds-line) !important; border-radius: 10px !important; background: var(--ds-s1) !important; color: var(--ds-text-2) !important; font-size: 13.5px !important; font-weight: 400 !important; line-height: 1.4 !important; text-align: left !important; box-shadow: none !important; transform: none !important; transition: background-color .12s ease, border-color .12s ease, color .12s ease !important; }
html body :is(#gs, .app) #view-chat .as-sugg button > span:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { flex: 1 1 auto !important; min-width: 0 !important; padding-top: 4px !important; }
/* l'icone dans une pastille carree discrete (meme glyphe de 16 px qu'avant) */
html body :is(#gs, .app) #view-chat .as-sugg button > .i:first-child:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { box-sizing: content-box !important; flex: none !important; width: 16px !important; height: 16px !important; margin: 0 !important; padding: 5px !important; border: 1px solid var(--ds-line) !important; border-radius: 8px !important; background: var(--ds-s2) !important; color: var(--ds-text-2) !important; }
html body :is(#gs, .app) #view-chat .as-sugg button > .as-go:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { flex: none !important; width: 14px !important; height: 14px !important; margin: 7px 0 0 !important; color: var(--ds-faint) !important; opacity: 0 !important; transform: translateX(-2px) !important; transition: opacity .12s ease, transform .12s ease, color .12s ease !important; }
html body :is(#gs, .app) #view-chat .as-sugg button:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10), html body :is(#gs, .app) #view-chat .as-sugg button:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s2) !important; border-color: var(--ds-line-2) !important; color: var(--of-hi) !important; }
html body :is(#gs, .app) #view-chat .as-sugg button:hover > .i:first-child:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10), html body :is(#gs, .app) #view-chat .as-sugg button:focus-visible > .i:first-child:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s3) !important; color: var(--of-ac-tx) !important; }
html body :is(#gs, .app) #view-chat .as-sugg button:hover > .as-go:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10), html body :is(#gs, .app) #view-chat .as-sugg button:focus-visible > .as-go:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { opacity: 1 !important; transform: none !important; color: var(--ds-muted) !important; }
html body :is(#gs, .app) #view-chat .as-sugg button:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { outline: 2px solid var(--ds-accent) !important; outline-offset: 1px !important; }
:root[data-theme="light"] body :is(#gs, .app) #view-chat .as-sugg button > .i:first-child:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s2) !important; }
:root[data-theme="light"] body :is(#gs, .app) #view-chat .as-sugg button:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s1) !important; border-color: var(--ds-line-2) !important; }
:root[data-theme="light"] body :is(#gs, .app) #view-chat .as-sugg button:hover > .i:first-child:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s3) !important; }

/* ---------- 3. Zone de saisie : une carte s1 a filet, focus a l'accent sans halo, Envoyer a l'accent ---------- */
html body :is(#gs, .app) #view-chat .composer-zone:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-page) !important; border-top: 0 !important; box-shadow: none !important; padding: 8px 16px 12px !important; }
html body :is(#gs, .app) #view-chat .composer.cbox:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { gap: 8px !important; padding: 12px 10px 10px 14px !important; background: var(--ds-s1) !important; border: 1px solid var(--ds-line-2) !important; border-radius: 12px !important; box-shadow: none !important; transition: border-color .12s ease !important; }
html body :is(#gs, .app) #view-chat .composer.cbox:focus-within:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { border-color: var(--ds-accent) !important; box-shadow: none !important; }
/* le champ n'a pas de cadre a lui : le cadre, c'est la carte */
html body :is(#gs, .app) #view-chat .composer.cbox textarea:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10), html body :is(#gs, .app) #view-chat .composer.cbox textarea:focus:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { min-height: 44px !important; padding: 2px 0 !important; margin: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; outline: none !important; font-family: var(--ds-font) !important; font-size: 14.5px !important; line-height: 1.5 !important; color: var(--ds-text) !important; }
html body :is(#gs, .app) #view-chat .composer.cbox textarea:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10)::placeholder { color: var(--ds-faint) !important; opacity: 1 !important; }
html body :is(#gs, .app) #view-chat .cbox-bar:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { gap: 8px !important; align-items: center !important; }
/* Detaillee / Rapide : le controle segmente de l'appli (bloc s2 a filet, le choix sureleve) */
html body :is(#gs, .app) #view-chat .cbox .seg:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { height: auto !important; padding: 2px !important; gap: 2px !important; background: var(--ds-s2) !important; border: 1px solid var(--ds-line) !important; border-radius: 8px !important; box-shadow: none !important; }
html body :is(#gs, .app) #view-chat .cbox .seg > button:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { height: 24px !important; min-height: 24px !important; padding: 0 10px !important; border: 0 !important; border-radius: 6px !important; background: transparent !important; color: var(--ds-muted) !important; font-size: 12.5px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; box-shadow: none !important; transition: background-color .12s ease, color .12s ease !important; }
html body :is(#gs, .app) #view-chat .cbox .seg > button:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--ds-text) !important; }
html body :is(#gs, .app) #view-chat .cbox .seg > button[aria-checked="true"]:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s3) !important; color: var(--of-hi) !important; font-weight: 600 !important; }
:root[data-theme="light"] body :is(#gs, .app) #view-chat .cbox .seg > button[aria-checked="true"]:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: #FFFFFF !important; }
html body :is(#gs, .app) #view-chat .cbox .seg > button:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { outline: 2px solid var(--ds-accent) !important; outline-offset: -2px !important; }
/* « Recherche web activee » : une etiquette discrete */
html body :is(#gs, .app) #view-chat .cbox #web-pill:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { height: 22px !important; padding: 0 8px !important; background: none !important; border: 1px solid var(--ds-line) !important; border-radius: 6px !important; color: var(--ds-muted) !important; font-size: 11.5px !important; font-weight: 500 !important; box-shadow: none !important; }
/* micro : icone seule, sans cadre ; survol s2 */
html body :is(#gs, .app) #view-chat .cbox #mic:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { width: 32px !important; height: 32px !important; min-height: 32px !important; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 8px !important; color: var(--ds-muted) !important; box-shadow: none !important; }
html body :is(#gs, .app) #view-chat .cbox #mic:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s2) !important; color: var(--ds-text) !important; }
/* Envoyer : le bouton principal, a l'accent ; desactive (champ vide) = gris plein, pas d'accent pali */
html body :is(#gs, .app) #view-chat .cbox .as-send:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { height: 32px !important; min-height: 32px !important; padding: 0 14px !important; gap: 6px !important; background: var(--ds-accent) !important; color: var(--ds-accent-ink) !important; border: 1px solid var(--ds-accent) !important; border-radius: 8px !important; box-shadow: none !important; filter: none !important; opacity: 1 !important; font-size: 13px !important; font-weight: 600 !important; text-transform: none !important; letter-spacing: -.005em !important; transition: filter .12s ease, background-color .12s ease !important; }
html body :is(#gs, .app) #view-chat .cbox .as-send > .i:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin: 0 !important; color: currentColor !important; }
html body :is(#gs, .app) #view-chat .cbox .as-send:hover:not(:disabled):is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { filter: brightness(1.08) !important; }
html body :is(#gs, .app) #view-chat .cbox .as-send:disabled:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s3) !important; border-color: var(--ds-s3) !important; color: var(--ds-muted) !important; opacity: 1 !important; filter: none !important; cursor: default !important; }
html body :is(#gs, .app) #view-chat .cbox .as-send:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { outline: 2px solid var(--ds-accent) !important; outline-offset: 2px !important; }
html body :is(#gs, .app) #view-chat .composer-zone .hint:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin: 8px 0 0 !important; text-align: center !important; color: var(--ds-faint) !important; font-size: 11.5px !important; }

/* ---------- 4. La conversation : colonne de lecture de 720 px, la question en bulle, la reponse en texte ---------- */
html body :is(#gs, .app) #view-chat #thread .msg:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin: 0 !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { gap: 12px !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai > .vav:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { flex: none !important; margin-top: 2px !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai > .bubble:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { min-width: 0 !important; padding: 2px 0 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; }
html body :is(#gs, .app) #view-chat #thread .msg.user .bubble:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { max-width: 80% !important; padding: 8px 14px !important; background: var(--ds-s2) !important; border: 1px solid var(--ds-line) !important; border-radius: 12px 12px 8px 12px !important; box-shadow: none !important; color: var(--ds-text) !important; font-size: 14.5px !important; line-height: 1.55 !important; white-space: pre-wrap !important; overflow-wrap: anywhere !important; }
:root[data-theme="light"] body :is(#gs, .app) #view-chat #thread .msg.user .bubble:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s3) !important; border-color: transparent !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai .body:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--ds-text-2) !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai .body :is(h1, h2, h3, h4):is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--of-hi) !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai .body a:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--of-ac-tx) !important; text-decoration: underline !important; text-underline-offset: 2px !important; }
/* en cours : trois points discrets et le libelle en gris */
html body :is(#gs, .app) #view-chat #thread .msg.ai .status:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--ds-muted) !important; font-size: 13px !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai .dots i:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-muted) !important; box-shadow: none !important; }
/* erreur : un encadre sobre (fond rouge tres leger, texte lisible), puis Reessayer */
html body :is(#gs, .app) #view-chat #thread .msg.ai .note:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { display: flex !important; align-items: flex-start !important; gap: 8px !important; margin: 0 !important; padding: 8px 12px !important; background: var(--ds-bad-soft) !important; border: 1px solid color-mix(in srgb, var(--ds-bad) 28%, transparent) !important; border-radius: 8px !important; color: var(--ds-text) !important; font-size: 12.5px !important; line-height: 1.5 !important; box-shadow: none !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai .note:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10)::before { content: "" !important; flex: none !important; width: 6px !important; height: 6px !important; margin-top: 7px !important; border-radius: 50% !important; background: var(--ds-bad) !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai .body:empty + .note:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin-top: 0 !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai .body:not(:empty) + .note:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin-top: 10px !important; }
html body :is(#gs, .app) #view-chat #thread .msg.ai .ia-retry:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin-top: 8px !important; }
/* actions sous une reponse (PDF, Notion, Copier, Envoyer a...) : en gris, sans cadre, nettes au survol de la reponse */
html body :is(#gs, .app) #view-chat #thread .msg .dl:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { display: flex !important; flex-wrap: wrap !important; gap: 2px !important; margin: 10px 0 0 -8px !important; padding: 0 !important; border: 0 !important; background: none !important; opacity: .7 !important; transition: opacity .12s ease !important; }
html body :is(#gs, .app) #view-chat #thread .msg:hover .dl:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10), html body :is(#gs, .app) #view-chat #thread .msg .dl:focus-within:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { opacity: 1 !important; }
html body :is(#gs, .app) #view-chat #thread .msg .dl > button:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { display: inline-flex !important; align-items: center !important; gap: 6px !important; height: 28px !important; min-height: 28px !important; padding: 0 8px !important; border: 0 !important; border-radius: 8px !important; background: none !important; color: var(--ds-muted) !important; font-size: 12.5px !important; font-weight: 500 !important; text-transform: none !important; box-shadow: none !important; transition: background-color .12s ease, color .12s ease !important; }
html body :is(#gs, .app) #view-chat #thread .msg .dl > button:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s2) !important; color: var(--ds-text) !important; }
html body :is(#gs, .app) #view-chat #thread .msg .dl > button:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { outline: 2px solid var(--ds-accent) !important; outline-offset: -2px !important; }
html body :is(#gs, .app) #view-chat #thread .msg .dl > button .i:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { width: 14px !important; height: 14px !important; margin: 0 !important; }
/* questions de relance (public/ia.js) : etiquettes sobres a filet, 8 px */
html body :is(#gs, .app) #view-chat #thread .ia-suite:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { gap: 6px !important; margin-top: 14px !important; }
html body :is(#gs, .app) #view-chat #thread .ia-suite-t:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--ds-muted) !important; font-size: 12px !important; font-weight: 500 !important; }
html body :is(#gs, .app) #view-chat #thread .ia-suite-q:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { min-height: 30px !important; padding: 5px 12px !important; border: 1px solid var(--ds-line-2) !important; border-radius: 8px !important; background: var(--ds-s1) !important; color: var(--ds-text-2) !important; font-size: 12.5px !important; font-weight: 500 !important; box-shadow: none !important; transform: none !important; transition: background-color .12s ease, color .12s ease !important; }
html body :is(#gs, .app) #view-chat #thread .ia-suite-q:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { background: var(--ds-s2) !important; border-color: var(--ds-line-2) !important; color: var(--of-hi) !important; }
html body :is(#gs, .app) #view-chat #thread .ia-suite-q:focus-visible:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { outline: 2px solid var(--ds-accent) !important; outline-offset: 1px !important; }
/* sources et notes de memoire : sous un filet, en gris */
html body :is(#gs, .app) #view-chat #thread .msg .sources:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin-top: 12px !important; padding-top: 10px !important; border-top: 1px solid var(--ds-line) !important; color: var(--ds-muted) !important; font-size: 12.5px !important; }
html body :is(#gs, .app) #view-chat #thread .msg .sources a:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--ds-text-2) !important; text-decoration: underline !important; text-decoration-color: var(--ds-line-2) !important; text-underline-offset: 2px !important; }
html body :is(#gs, .app) #view-chat #thread .msg .sources a:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--of-ac-tx) !important; text-decoration-color: currentColor !important; }
html body :is(#gs, .app) #view-chat #thread .msg .memo-note:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin-top: 10px !important; padding: 8px 0 0 !important; border: 0 !important; border-top: 1px solid var(--ds-line) !important; border-radius: 0 !important; background: none !important; color: var(--ds-muted) !important; font-size: 12.5px !important; text-align: left !important; box-shadow: none !important; }
html body :is(#gs, .app) #view-chat #thread .msg button.memo-note:hover:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { color: var(--of-ac-tx) !important; }

/* ---------- 5. Telephone et fenetre etroite ---------- */
@media (max-width: 860px) {
  /* la colonne s'ouvre par-dessus : un filet suffit, pas d'ombre */
  html body :is(#gs, .app) #view-chat .as-rail:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { box-shadow: none !important; border-right: 1px solid var(--ds-line-2) !important; }
}
@media (max-width: 640px) {
  html body :is(#gs, .app) #view-chat .as-sugg:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { grid-template-columns: minmax(0, 1fr) !important; margin-top: 16px !important; }
  html body :is(#gs, .app) #view-chat .as-sugg button:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { min-height: 0 !important; align-items: center !important; }
  html body :is(#gs, .app) #view-chat .as-sugg button > span:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding-top: 0 !important; }
  html body :is(#gs, .app) #view-chat .as-sugg button > .as-go:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { margin-top: 0 !important; opacity: 1 !important; transform: none !important; }
  html body :is(#gs, .app) #view-chat .as-welcome:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding-top: 12px !important; }
  html body :is(#gs, .app) #view-chat #thread:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding: 16px 12px 24px !important; gap: 20px !important; }
  html body :is(#gs, .app) #view-chat .composer-zone:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding: 8px 12px 10px !important; }
  html body :is(#gs, .app) #view-chat .composer-zone > .wrap:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { padding: 0 !important; }
  html body :is(#gs, .app) #view-chat #thread .msg.user .bubble:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { max-width: 88% !important; }
}
/* ecran tactile : cibles de 32 px au moins, champ en 16 px (sinon l'iPhone zoome) */
@media (max-width: 760px), (pointer: coarse) {
  html body :is(#gs, .app) #view-chat .cbox .seg > button:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { height: 36px !important; min-height: 36px !important; }
  html body :is(#gs, .app) #view-chat .composer.cbox textarea:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10), html body :is(#gs, .app) #view-chat .composer.cbox textarea:focus:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { font-size: 16px !important; }
  html body :is(#gs, .app) #view-chat .cbox #mic:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { width: 36px !important; height: 36px !important; }
  html body :is(#gs, .app) #view-chat .cbox .as-send:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { height: 36px !important; min-height: 36px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body :is(#gs, .app) #view-chat .as-sugg button > .as-go:is(#gs,*):not(#h1):not(#h2):not(#h3):not(#h4):not(#h5):not(#h6):not(#h7):not(#h8):not(#h9):not(#h10) { transition: none !important; }
}
