
/* Hanken Grotesk droit, hébergé chez nous (latin, latin étendu, vietnamien) : texte courant à 400 ; boutons, menus et titres un cran plus épais que l'étiquette (500→550, 600→650, 700→750),
   comme dans l'application Android native (15/11/2026, demande du propriétaire : menus trop fins). Les italiques viennent de Google Fonts (lien plus haut). */
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 400; font-display: swap; src: url("/media/hanken-grotesk-400-v1.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 500; font-display: swap; src: url("/media/hanken-grotesk-550-v1.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("/media/hanken-grotesk-650-v1.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("/media/hanken-grotesk-750-v1.woff2") format("woff2"); }
/* Les réponses de l'IA gardent les épaisseurs d'origine (400/500/600/700) : seules les interfaces de l'application sont épaissies (demande du propriétaire, 15/11/2026). */
@font-face { font-family: "Hanken Grotesk Texte"; font-style: normal; font-weight: 400; font-display: swap; src: url("/media/hanken-grotesk-400-v1.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk Texte"; font-style: normal; font-weight: 500; font-display: swap; src: url("/media/hanken-grotesk-500-v1.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk Texte"; font-style: normal; font-weight: 600; font-display: swap; src: url("/media/hanken-grotesk-600-v1.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk Texte"; font-style: normal; font-weight: 700; font-display: swap; src: url("/media/hanken-grotesk-700-v1.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk Texte"; font-style: italic; font-weight: 400; font-display: swap; src: url("/media/hanken-grotesk-italique-400-v1.woff2") format("woff2"); }
@font-face { font-family: "Hanken Grotesk Texte"; font-style: italic; font-weight: 600; font-display: swap; src: url("/media/hanken-grotesk-italique-600-v1.woff2") format("woff2"); }
:root {
  --font-script: "Google Sans";   /* police de l'écriture de la langue (grec par défaut) ; remplacée par :lang() juste après les variables */
  --font-display: "Hanken Grotesk", "SN Pro", var(--font-script), "Google Sans", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", "SN Pro", var(--font-script), "Google Sans", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --bg: #F4F6F8; --surface: oklch(1 0 0); --surface-hover: #EDEFF2;   /* palette « Ardoise » (21/11/2026, étude de fond) : un blanc très légèrement bleuté, accordé au bleu d'Astra ; étages relief #FFFFFF › lecture #FAFBFD › barre latérale #F4F6F8 › cadre #EDEFF2 */
  --fond-lecture: #FAFBFD;   /* fond des zones de lecture (Ardoise) : texte 16,9:1, texte discret #656B72 à 5,2:1, le blanc pur du relief s'en détache encore */
  --lien: #006DB8;           /* liens dans le texte : 5,36:1 sur le fond de lecture (le bleu d'accent seul fait 3,6:1) */
  --fg: #161A1F; --muted: #565B63; --border: #DDE0E4;
  /* 04/09/2026 : bleu par défaut remis à l'original (0.62) à la demande de
     l'utilisateur — le bleu assombri (0.545, conforme WCAG AA) reste
     disponible comme option « Bleu foncé » dans Réglages > couleur.
     --accent-ink reste la couleur du texte posé sur --accent (jamais #fff en
     dur) : utile pour les autres teintes de la palette et pour le mode
     sombre, où --accent reste volontairement clair et vif. */
  --accent: oklch(0.62 0.16 245); --accent-hover: oklch(0.55 0.16 245);
  /* Couleur du texte posé SUR --accent (boutons, badges) — jamais #fff en
     dur : en mode sombre, --accent reste volontairement clair et vif contre
     le fond noir (voir .dark plus bas), donc c'est le TEXTE qui doit foncer,
     pas l'inverse. */
  --accent-ink: #fff;
  --success: oklch(0.62 0.18 155); --warn: oklch(0.7 0.16 85); --danger: oklch(0.55 0.2 25);
  --shadow-sm:0 1px 2px -.5px rgba(0,0,0,.05),0 .5px 1.5px rgba(0,0,0,.03),0 1px 3px rgba(0,0,0,.05);
  --shadow-md:0 6px 12px -2px rgba(0,0,0,.075),0 4px 8px -2px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.1);
  --shadow-lg:0 16px 48px -6px rgba(0,0,0,.07),0 6px 12px -2px rgba(0,0,0,.04),0 1px 2.5px rgba(0,0,0,.04);
  --anneau:0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent);   /* « bordure en ombre » : nette, sans ajouter de pixel */
  --ease-out:cubic-bezier(.23,1,.32,1);   /* courbe d'Open Design : démarre vite, se pose doucement */
  --dur-fast:.12s; --dur-med:.15s; --dur-base:.18s; --dur-lent:.28s;
  --inactif:.5;   /* opacité unique des boutons et commandes désactivés */   /* durées (od/craft/animation-discipline.md : 100–150 ms retour, ~200 ms entrée) */
  /* Échelle d'espacement et de texte (od/design-systems/_schema/defaults.css) : à utiliser plutôt que des valeurs écrites en dur. */
  --space-1:4px; --space-2:8px; --space-3:12px; --space-4:16px; --space-5:20px; --space-6:24px; --space-8:32px; --space-12:48px; --space-20:80px;
  --text-xs:12px; --text-sm:13px; --text-base:14px; --text-md:16px; --text-lg:20px; --text-xl:24px; --text-2xl:32px;
  --focus-ring:0 0 0 3px color-mix(in srgb,var(--accent) 30%,transparent);
  --radius-pill:var(--radius-full); --accent-on:var(--accent-ink);
  --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-full: 9999px;
  --sidebar-w: 260px; --header-h: 52px;
  --font-sans: var(--font-body);   /* lue par les annotations et le sélecteur de planche, jusque-là sans valeur (repli system-ui) */
  color-scheme: light;
}
/* Une police par écriture (étude du 15/11/2026). Le latin passe toujours par Hanken Grotesk, le reste par la police de l'écriture. */
:root:lang(ar) { --font-script: "IBM Plex Sans Arabic"; }
:root:lang(hi) { --font-script: "Anek Devanagari"; }
:root:lang(bn) { --font-script: "Anek Bangla"; }
:root:lang(th) { --font-script: "IBM Plex Sans Thai"; }
:root:lang(ja) { --font-script: "Zen Kaku Gothic New"; }
:root:lang(ko) { --font-script: "IBM Plex Sans KR"; }
:root:lang(zh) { --font-script: "Noto Sans SC"; }
:root:lang(zh-TW) { --font-script: "Noto Sans TC"; }
html { font-size-adjust: 0.52; }
.msg-content { --font-body: "Hanken Grotesk Texte", "SN Pro", var(--font-script), "Google Sans", "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif; font-family: var(--font-body); }
/* Boutons du menu latéral un cran plus épais (500 → 550 avec les polices ci-dessus), comme dans l'application Android native (15/11/2026). */
:root .nav-item, :root .nav-item *, :root .sb-ligne-projets, :root .sb-ligne-projets *, :root .sb-copy { font-weight: 500; }   /* Hanken Grotesk a des petites lettres (0,495) : on garde la taille perçue de l'ancienne police (0,54), à peine atténuée */
.dark {
  /* Thème sombre « Ardoise adoucie » (21/11/2026, étude de fond) : même bleu nuit que le clair, un peu plus lumineux que le noir (moins
     d'éblouissement en lecture longue, comme Claude et ChatGPT) : fond #191D21, barre latérale plus sombre #13161A, menus et fenêtres #23262B,
     barre de saisie #282B30, traits #34383D, texte #E3E5E7 (13,4:1), texte estompé #B1B4B9. */
  --bg: #191D21; --surface: #23262B; --surface-hover: #2D3136; --fond-lecture: #191D21; --lien: var(--accent);
  --fg: #E3E5E7; --muted: #B1B4B9; --border: #34383D;
  color-scheme: dark;
  --accent: oklch(0.72 0.16 245); --accent-hover: oklch(0.78 0.16 245);
  /* Blanc sur cet accent clair ne passait qu'à 2.46:1 (pire que le mode clair) —
     le texte devient sombre plutôt que d'assombrir l'accent lui-même, qui
     doit rester vif sur fond noir. */
  --accent-ink: oklch(0.12 0 0);
  --shadow-sm:0 1px 2px rgba(0,0,0,.3),0 1px 3px rgba(0,0,0,.2);
  --shadow-md:0 6px 12px -2px rgba(0,0,0,.4),0 4px 8px -2px rgba(0,0,0,.35),0 1px 2px rgba(0,0,0,.4);
  --shadow-lg:0 16px 48px -6px rgba(0,0,0,.6),0 6px 12px -2px rgba(0,0,0,.4),0 1px 2.5px rgba(0,0,0,.4);
  --anneau:0 0 0 1px color-mix(in srgb,#fff 10%,transparent);
  /* Mesuré : le rouge d'erreur faisait 3,5:1 sur fond sombre ; on l'éclaircit (le texte discret et les bordures sont relevés plus haut). */
  --danger:oklch(.7 .18 25);
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html{height:100%}
html,body,#root{height:100%;font-family:var(--font-body);font-size:14px;line-height:1.55;color:var(--fg);background:var(--bg);-webkit-font-smoothing:antialiased;transition:background var(--dur-lent),color var(--dur-lent)}
/* Deux mécanismes distincts laissaient un halo collé à un bouton après un
   clic — aucun des deux n'était neutralisé avant ce correctif :
   1. Sur PC (souris/clavier), le contour de FOCUS par défaut du navigateur.
      :focus-visible ne le retire QUE pour un clic pointeur : la navigation
      au clavier (Tab) garde un contour visible, condition d'accessibilité.
   2. Sur mobile (tactile), le TAP HIGHLIGHT de Chrome/Safari — un rectangle
      grisé/bleuté que le navigateur applique lui-même au toucher, sans
      rapport avec :focus ni outline. C'est lui qui restait visible sur
      téléphone même après le correctif du point 1. Neutralisé ci-dessus via
      -webkit-tap-highlight-color, sur TOUS les éléments (pas seulement les
      boutons : un lien ou une carte cliquable au clavier tactile l'affiche
      aussi).
*/
button{font-family:inherit;cursor:pointer;border:none;background:none;font-size:inherit;color:inherit}
button:focus{outline:none}
button:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
input,textarea,select{font-family:inherit;font-size:inherit;color:inherit;outline:none;border:none;background:none}
@media(pointer:coarse){input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select{font-size:max(16px,1em)}}
.category-picker{display:flex;align-items:center;min-width:0}
.category-trigger{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--border);border-radius:var(--radius-full);color:var(--muted);background:var(--surface);flex-shrink:0}
.category-trigger svg{width:16px;height:16px}
.category-trigger[aria-expanded="true"]{color:var(--fg);background:var(--surface-hover)}
@media(hover:hover){.category-trigger:hover{color:var(--fg);background:var(--surface-hover)}}
.category-menu{position:absolute;right:0;bottom:calc(100% + 12px);width:min(340px,calc(100vw - 48px));max-height:min(440px,60dvh);overflow-y:auto;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:8px;box-shadow:var(--shadow-lg);z-index:120}
.category-menu-title{padding:8px 10px 12px;font-size:12px;font-weight:600;color:var(--muted)}
.category-option{position:relative;display:flex;align-items:flex-start;gap:10px;padding:10px;border:1px solid transparent;border-radius:10px;background:var(--surface);cursor:pointer;transition:border-color var(--dur-med),background var(--dur-med)}
@media(hover:hover){.category-option:hover{background:var(--surface-hover)}}
.category-option:has(input:checked){border-color:var(--accent);background:color-mix(in oklch,var(--accent) 6%,var(--surface))}
.category-option:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:3px}
.category-option:has(input:disabled){cursor:wait;opacity:.65}
.category-option input{position:absolute;opacity:0;width:1px;height:1px}
.category-option-icon{width:34px;height:34px;flex-shrink:0;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);background:var(--bg);color:var(--muted)}
.category-option:has(input:checked) .category-option-icon{color:var(--accent)}
.category-option-copy{flex:1;min-width:0}
.category-option-title{display:block;font-weight:600;font-size:13px;margin-bottom:4px}
.category-option-desc{display:block;font-size:12px;line-height:1.6;color:var(--muted)}
.category-option-dot{flex-shrink:0;width:16px;height:16px;margin-top:3px;border:1px solid var(--border);border-radius:50%}
.category-option:has(input:checked) .category-option-dot{border:5px solid var(--accent)}
.category-sync{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin:8px 10px 2px;padding-top:10px;border-top:1px solid var(--border);font-size:11px;line-height:1.5;color:var(--muted)}
/* Le sélecteur reste sur la MÊME rangée que la zone de texte, jamais une
   deuxième en dessous : sans étiquette (voir ChatCategoryPicker), il pèse à
   peine plus qu'un bouton icône et n'a donc jamais besoin de passer à la
   ligne, quelle que soit la largeur. */
.chat-composer-tools{position:relative;flex-shrink:0}
.chat-composer-tools>.chat-composer-actions{flex-shrink:0}
.app{display:flex;height:100%;overflow:hidden}
/* Sélection de texte désactivée sur le CHROME de l'appli (sidebar, barre du
   haut, onglets, boutons) — un appui long sur « CONTENU » ou un libellé de nav
   ouvrait le menu natif « Copier / Tout sélectionner », ce qui fait site web
   plutôt qu'appli. Volontairement PAS posé plus haut (sur .app ou body) : la
   sélection doit rester intacte dans les messages, où copier du texte a un
   sens. Chaque règle cible son propre conteneur, jamais un ancêtre commun
   avec la zone de contenu. */
.sidebar,.top-bar,.tab,button{user-select:none;-webkit-user-select:none}
.sidebar{width:var(--sidebar-w);min-width:var(--sidebar-w);height:100%;background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;transition:transform var(--dur-lent),width var(--dur-lent),min-width var(--dur-lent);z-index:100}
/* Ordinateur : « fermée » = rail d'icônes (voir le bloc « Barre latérale repliable » plus bas), plus jamais largeur 0. */
.sidebar-logo,.sidebar-logo a{font-family:var(--font-display);font-size:18px;font-weight:600;letter-spacing:-.02em;padding:14px 16px 10px;display:flex;align-items:center;gap:0;color:var(--fg);text-decoration:none}
.sidebar-logo span{color:var(--accent)}
.sidebar-nav{flex:1;overflow-y:auto;padding:4px 8px;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.dist-historique>summary{cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;user-select:none}.dist-historique>summary::-webkit-details-marker{display:none}.dist-historique>summary::before{content:'';width:0;height:0;border-left:5px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent;transition:transform var(--dur-med)}.dist-historique[open]>summary::before{transform:rotate(90deg)}
.chrome-task{margin:8px 0 4px;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);max-width:560px}.chrome-task-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}.chrome-task-icon{display:flex;color:var(--accent)}.chrome-task-device{flex:1;min-width:0;font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chrome-task-approval{margin-top:4px;padding:8px 10px;border-radius:var(--radius-sm);background:var(--surface-hover)}
.nav-item{display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:var(--radius-sm);font-size:13px;font-weight:500;letter-spacing:.01em;color:var(--muted);transition:background var(--dur-fast),color var(--dur-fast);width:100%;text-align:left;margin-bottom:1px}
/* Le libellé (traduit, parfois long) se tronque au lieu de déborder la barre. */
.nav-item>span:not(.badge){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(hover:hover){.nav-item:hover{background:var(--surface-hover);color:var(--fg)}}
.nav-item.active{background:var(--surface-hover);color:var(--fg)}
/* Compteur, pas notification. Ces pastilles indiquent COMBIEN d'éléments
   existent (projets, documents) : elles ne disparaissent jamais, puisqu'il n'y
   a rien à « consulter » pour les faire partir. Peintes en accent plein sur
   fond blanc, elles se lisaient comme des alertes non lues et laissaient
   croire à un badge qui devait se vider. Discrètes, elles informent sans
   réclamer d'action. La variante .alert reste disponible pour ce qui exige
   vraiment l'attention. */
.nav-item .badge{font-size:10px;font-weight:600;letter-spacing:.04em;padding:1px 6px;border-radius:var(--radius-full);background:var(--surface-hover);color:var(--muted);border:1px solid var(--border);margin-left:auto;font-variant-numeric:tabular-nums}
.nav-item.active .badge{color:var(--fg)}
@media(hover:hover){.nav-item:hover .badge{color:var(--fg)}}
.nav-item .badge.alert{background:var(--accent);color:var(--accent-ink);border-color:transparent}
/* Icône de navigation : elle avance vers le libellé au survol, et fait un
   court ressort quand sa section devient active — un accusé de sélection, pas
   une décoration permanente. Neutralisé par « Animations » et par
   prefers-reduced-motion via les règles plus bas. */
.nav-item svg{flex-shrink:0;transition:transform var(--dur-base) cubic-bezier(.34,1.4,.64,1)}
@media(hover:hover){.nav-item:hover svg{transform:translateX(2px)}}
.nav-item.active svg{color:var(--accent);animation:navPick .22s cubic-bezier(.2,.8,.2,1)}
@media(hover:hover){.nav-item.active:hover svg{transform:translateX(2px)}}
@keyframes navPick{0%{transform:scale(.8)}55%{transform:scale(1.08)}100%{transform:scale(1)}}
.nav-section{margin-top:8px;padding:4px 12px 2px;font-size:10px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
/* ── Listing de code : une rangée par ligne ─────────────────────────────
   Une seule mécanique pour les DEUX endroits où du code s'affiche : les blocs
   des messages et l'onglet Code du panneau d'artefacts. Le numéro et son code
   vivent dans la même rangée — ils ne peuvent donc pas se désaligner, y
   compris quand le retour à la ligne est actif, ce qu'une gouttière posée à
   côté du listing ne sait pas faire.
   Le numéro est `sticky` : il reste lisible quand on pousse une ligne longue
   vers la gauche. */
.cl{--cl-bg:var(--surface);font-family:var(--font-mono);font-size:13px;line-height:1.6;tab-size:2}
/* min-height : une ligne vide n'a aucun contenu, donc aucune hauteur — sa
   rangée s'effondrerait et les numéros sauteraient un cran. */
.cl-l{display:flex;width:max-content;min-width:100%;min-height:1.6em}
.cl-n{position:sticky;left:0;z-index:1;flex:none;width:var(--cl-gout,4ch);padding-right:14px;text-align:right;color:var(--muted);opacity:.5;user-select:none;background:var(--cl-bg);font-variant-numeric:tabular-nums}
.cl-c{white-space:pre;flex:1}
/* Retour à la ligne : la rangée ne peut plus prendre la largeur de son
   contenu, sinon rien ne se replierait jamais. */
.cl--retour .cl-l{width:auto}
.cl--retour .cl-c{white-space:pre-wrap;word-break:break-word}
/* Au-delà de LISTING_MAX_LIGNES, une rangée par ligne coûte trop cher en
   nœuds DOM : on retombe sur un bloc simple, sans numéros. */
.cl-brut{margin:0;padding:0 12px;font-family:var(--font-mono);font-size:13px;line-height:1.6;tab-size:2;white-space:pre}
/* ── Blocs de code dans les messages (Chat et espace Code) ──────────────
   Les couleurs sortent des variables de thème : un jeu figé serait illisible
   dans l'un des deux modes. Le bloc défile horizontalement TOUT SEUL — sans
   ça, une longue ligne élargit la page entière et casse la mise en page. */
.code-block{border:1px solid var(--border);border-radius:var(--radius-md);margin:12px 0;overflow:hidden;background:var(--surface)}
.code-head{display:flex;align-items:center;gap:8px;padding:5px 8px 5px 12px;border-bottom:1px solid var(--border);font-size:11px;color:var(--muted);min-height:32px}
.code-lang{font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.code-info{font-variant-numeric:tabular-nums;opacity:.7}
.code-info::before{content:"·";margin-right:6px}
/* Les actions n'apparaissent qu'au survol. Affichées en permanence, elles
   pesaient visuellement autant que le code dans une réponse qui en contient
   dix — et dans l'espace Code, toute la réponse est du code.
   `focus-within` les garde accessibles au clavier ; `hover:none` les rend
   permanentes au doigt, où il n'y a pas de survol. */
.code-actions{display:flex;gap:4px;margin-left:auto;opacity:0;transition:opacity var(--dur-med)}
.code-block:focus-within .code-actions{opacity:1}
@media(hover:hover){.code-block:hover .code-actions{opacity:1}}
@media(hover:none){.code-actions{opacity:1}}
.code-btn{font-size:11px;padding:3px 9px;border-radius:var(--radius-full);border:1px solid transparent;background:transparent;color:var(--muted);cursor:pointer;transition:color var(--dur-fast),border-color var(--dur-fast),background var(--dur-fast)}
@media(hover:hover){.code-btn:hover{color:var(--fg);background:var(--surface-hover);border-color:var(--border)}}
.code-copy.ok{color:var(--success);border-color:var(--success)}
.code-copy.ok::before{content:"✓";display:inline-block;margin-right:4px;animation:copiePop .2s cubic-bezier(.2,.8,.2,1)}
@keyframes copiePop{0%{transform:scale(.6);opacity:0}100%{transform:scale(1);opacity:1}}
.code-corps{overflow:auto;padding:8px 0}
/* Un long extrait ne doit pas noyer la conversation : au-delà de
   CODE_REPLI_LIGNES le bloc est plafonné — il défile toujours — et
   « Déplier » retire le plafond. */
.code-block--long .code-corps{max-height:26em}
.code-block--long.ouvert .code-corps{max-height:none}
/* Dans l'espace Code, la réponse garde son texte mais regroupe ses blocs de
   code derrière un bilan compact. Le code complet s'ouvre dans une fenêtre. */
.code-output-pill{display:inline-flex;align-items:center;gap:clamp(10px,2vw,24px);max-width:100%;min-height:44px;margin:10px 0 4px;padding:9px 16px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--surface);box-shadow:0 2px 10px rgba(0,0,0,.05);color:var(--muted);font-size:13px;line-height:1.3;cursor:pointer;transition:background var(--dur-med),border-color var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.code-output-pill:hover{background:var(--surface-hover);border-color:var(--accent);box-shadow:0 3px 14px rgba(0,0,0,.08)}}
.code-output-pill:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:3px}
.code-output-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.code-output-stat{flex:none;font-variant-numeric:tabular-nums;font-weight:600}
.code-output-stat.added{color:var(--success)}
.code-output-stat.removed{color:var(--danger)}
.code-output-modal .modal{max-width:min(900px,94vw)}
.code-output-modal .code-block--long .code-corps{max-height:none}
.code-output-modal .code-plier{display:none}
.code-output-modal .code-block{margin:0 0 14px}
/* ── Compatibilité avec l'historique déjà enregistré ────────────────────
   Les messages sont persistés avec leur `content` DÉJÀ RENDU EN HTML
   (Conv.save, plus haut) : une conversation d'hier contient le balisage de
   l'ancien rendu — un <pre><code> enfant direct de .code-block, et des boutons
   sans la classe .code-btn — et ne repassera JAMAIS par renderRichText.
   Sans ces règles, tout le code des historiques perdrait sa mise en forme :
   plus de rembourrage, plus de police à chasse fixe, et surtout plus de
   défilement horizontal — une ligne longue élargirait alors la page entière.
   Les sélecteurs visent l'ancienne STRUCTURE (enfant direct), pour ne pas
   attraper le nouveau listing, qui vit dans .code-corps. */
.code-block > pre{margin:0;padding:10px 12px;overflow-x:auto;font-size:13px;line-height:1.55}
.code-block > pre code{font-family:var(--font-mono);white-space:pre;tab-size:2}
.code-head > .code-copy,.code-head > .code-download{font-size:11px;padding:3px 9px;border-radius:var(--radius-full);border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;transition:color var(--dur-fast),border-color var(--dur-fast)}
@media(hover:hover){.code-head > .code-copy:hover,.code-head > .code-download:hover{color:var(--fg);border-color:var(--fg)}}
/* L'ancien en-tête n'avait pas de conteneur .code-actions pour pousser les
   boutons à droite : c'est le premier des deux qui s'en charge. */
.code-head > .code-download{margin-left:auto}
.inline-code{font-family:var(--font-mono);font-size:.92em;padding:1px 5px;border-radius:4px;background:var(--surface-hover);border:1px solid var(--border)}
.hl-kw{color:#c2337a;font-weight:600}
.hl-str{color:#16a34a}
.hl-com{color:var(--muted);font-style:italic}
.hl-num{color:#ea580c}
.hl-fn{color:#2563eb}
/* Balises et attributs. Sans ces deux classes, HTML et CSS étaient coloriés
   par la même liste de mots-clés que JavaScript : `class`, `id` ou `div`
   se teintaient PARTOUT, y compris en pleine prose à l'intérieur d'une page. */
.hl-tag{color:#e11d48;font-weight:600}
.hl-attr{color:#0d9488}
/* En thème sombre, ces teintes manquent de contraste sur fond foncé : on les
   relève plutôt que de garder une palette unique difficile à lire. */
.dark .hl-kw{color:#c084fc}
.dark .hl-str{color:#4ade80}
.dark .hl-num{color:#fb923c}
.dark .hl-fn{color:#60a5fa}
.dark .hl-tag{color:#fb7185}
.dark .hl-attr{color:#2dd4bf}
.sidebar-footer{padding:10px 16px;border-top:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.sidebar-footer span{font-size:11px;letter-spacing:.02em;color:var(--muted)}
.sidebar-overlay{display:none}
.main-content{flex:1;display:flex;flex-direction:column;height:100%;min-width:0;position:relative;overflow:hidden}
/* Espace Code (07/10/2026, demande de l'utilisateur) : l'interface ne se sélectionne pas, ni à la souris ni par appui
   long sur téléphone (pas de menu « Copier / Tout sélectionner ») — sauf les champs de saisie et le contenu de la
   conversation (règle suivante). */
.espace-code-fixe,.espace-code-fixe *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}
.espace-code-fixe input,.espace-code-fixe textarea,.espace-code-fixe select,.espace-code-fixe [contenteditable="true"],.espace-code-fixe [contenteditable=""]{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
/* Le CONTENU de la conversation reste sélectionnable (correction de l'utilisateur, 07/10/2026) : réponses d'Astra, vos
   messages, blocs de code, sorties de commandes et modifications de fichiers. Seule l'interface (boutons, titres,
   menus, étapes) ne se sélectionne pas. */
.espace-code-fixe :is(.msg-content,.cl-md,.cl-msg-user,.cl-question-texte,pre,code,.cl-sortie,.cl-diff),
.espace-code-fixe :is(.msg-content,.cl-md,.cl-msg-user,.cl-question-texte,pre,code,.cl-sortie,.cl-diff) *{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}
.espace-code-fixe :is(.msg-content,.cl-md,.cl-msg-user) :is(button,[role="button"],.code-head,.code-head *,.cl-n){-webkit-user-select:none;user-select:none}
/* Même trait que la liste des conversations (sa bordure haute), sans contenu. */
.sb-recents-vide{padding:0}
/* .top-bar : robuste aux libellés longs (les traductions font ±40 % de
   largeur). S'il ne tient pas sur une ligne il passe sur deux — jamais de
   contenu rogné ni de bouton poussé hors écran. Le titre, lui, se tronque. */
.top-bar{display:flex;align-items:center;min-height:var(--header-h);padding:7px 16px;border-bottom:1px solid var(--border);background:var(--surface);gap:6px 10px;flex-shrink:0;flex-wrap:wrap}
.top-bar-title{font-size:15px;font-weight:600;letter-spacing:-.01em;flex:1 1 6ch;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top-bar .btn,.top-bar .btn-icon{flex-shrink:0}
.top-bar .btn{white-space:nowrap}
.top-bar .flex-row{flex-wrap:wrap}
/* Reste au-dessus du panneau d'artefact (z-index 60) même s'il passe sur
   deux lignes. */
.top-bar{position:relative;z-index:70}
.top-bar .hamburger{display:none}
.view-container{flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--border) transparent}
.btn{padding:7px 14px;border-radius:var(--radius-sm);font-size:13px;font-weight:500;letter-spacing:.02em;transition:background var(--dur-med),transform var(--dur-fast);display:inline-flex;align-items:center;gap:6px}
.btn:active{transform:scale(.97)}
.btn:disabled{opacity:var(--inactif);cursor:not-allowed;transform:none}
.btn-primary{background:var(--accent);color:var(--accent-ink)}@media(hover:hover){.btn-primary:hover{background:var(--accent-hover)}}
.btn-secondary{background:var(--surface-hover);color:var(--fg);border:1px solid var(--border)}@media(hover:hover){.btn-secondary:hover{background:var(--border)}}
.btn-ghost{color:var(--muted)}@media(hover:hover){.btn-ghost:hover{background:var(--surface-hover);color:var(--fg)}}
.btn-sm{padding:5px 10px;font-size:12px;border-radius:6px}
.btn-icon{width:32px;height:32px;border-radius:var(--radius-sm);display:flex;align-items:center;justify-content:center;color:var(--muted);transition:background var(--dur-med),color var(--dur-med)}
@media(hover:hover){.btn-icon:hover{background:var(--surface-hover);color:var(--fg)}}
.sidebar-logout{color:var(--muted)}
@media(hover:hover){.sidebar-logout:hover{background:var(--surface-hover);color:var(--fg)}}
.top-bar .hamburger{width:40px;height:40px;min-width:40px;border:1px solid var(--border);border-radius:50%;background:var(--surface);color:var(--fg);box-shadow:var(--shadow-sm);transition:background var(--dur-med),border-color var(--dur-med),color var(--dur-med),transform var(--dur-med)}
@media(hover:hover){.top-bar .hamburger:hover{background:var(--surface-hover);border-color:color-mix(in srgb,var(--accent) 45%,var(--border));color:var(--accent)}}
.top-bar .hamburger:active{transform:scale(.96)}
.top-bar .hamburger svg{width:19px;height:19px}
.top-bar .hamburger svg line:nth-child(2){stroke-dasharray:13 5}
@media(hover:hover){.btn-icon.api-key-revoke:hover{background:var(--surface-hover);color:var(--danger)}}
.btn-danger{background:var(--danger);color:#fff}@media(hover:hover){.btn-danger:hover{opacity:.85}}
.input{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);font-size:13px;background:var(--surface);transition:border-color var(--dur-base)}
.input:focus{border-color:var(--fg)}
select.input{appearance:none;padding-right:28px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}
.tag{display:inline-flex;align-items:center;gap:4px;padding:3px 10px;border-radius:var(--radius-full);font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;background:var(--surface-hover);border:1px solid var(--border);user-select:none;-webkit-user-select:none}
/* Les triangles de repli (menu par conversation, FAQ, "Signaler un bug"…)
   sont un contrôle, pas du texte à lire — même logique que la sidebar. */
summary{user-select:none;-webkit-user-select:none}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);padding:16px;transition:box-shadow var(--dur-med)}
@media(hover:hover){.card:hover{box-shadow:var(--shadow-md)}}
.grid-2{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
/* Sans ça, une colonne "1fr" garde comme largeur minimale celle de son
   contenu (min-width:auto) : une carte de plan un peu chargée (prix, texte de
   type, liste de fonctionnalités) peut alors forcer la grille — et donc toute
   la page en colonne unique sur mobile — plus large que l'écran, d'où une
   ligne qui dépasse à droite. `min-width:0` autorise la carte à rétrécir et
   son texte à passer à la ligne dans l'espace réellement disponible. */
.grid-2>*,.grid-3>*,.grid-4>*{min-width:0}
.flex-row{display:flex;align-items:center;gap:8px}
.flex-col{display:flex;flex-direction:column;gap:8px}
.flex-between{display:flex;align-items:center;justify-content:space-between}
.flex-wrap{flex-wrap:wrap}
.p-16{padding:16px}.p-24{padding:24px}.gap-8{gap:8px}.gap-12{gap:12px}.gap-16{gap:16px}.gap-24{gap:24px}
.mt-4{margin-top:4px}.mt-8{margin-top:8px}.mt-12{margin-top:12px}.mt-16{margin-top:16px}.mt-24{margin-top:24px}.mb-8{margin-bottom:8px}.mb-16{margin-bottom:16px}
.text-sm{font-size:12px}.text-xs{font-size:11px}.text-muted{color:var(--muted)}
.text-accent{color:var(--accent)}.text-mono{font-family:var(--font-mono);font-size:12px}
.fw-500{font-weight:500}.fw-600{font-weight:600}
.truncate{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Sur souris les actions n'apparaissent qu'au survol ; sur tactile il n'y a pas
   de survol, elles doivent rester visibles. */
@media(hover:hover){.conv-row .conv-actions{opacity:0;transition:opacity var(--dur-med)}.conv-row:hover .conv-actions{opacity:1}}
.chat-view{display:flex;flex-direction:column;height:100%}
.chat-messages{flex:1;overflow-y:auto;padding:24px 0;scrollbar-width:thin;scrollbar-color:var(--border) transparent}.chat-msg-container{max-width:760px;margin:0 auto;padding:0 24px}
.msg{padding:14px 0;animation:fadeIn .3s cubic-bezier(.2,.7,.2,1) both;transition:opacity var(--dur-lent) ease}
@keyframes fadeIn{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
.msg-role{font-size:12px;font-weight:600;letter-spacing:.02em;margin-bottom:4px;display:flex;align-items:center;gap:8px}
.msg-content{font-size:14px;line-height:1.6;max-width:65ch;overflow-wrap:break-word;word-break:break-word}
/* Réponse en cours de streaming : un <div> par bloc Markdown (seul le dernier
   se re-rend), avec l'espacement inter-paragraphes rétabli — sinon
   `p:last-child{margin-bottom:0}` colle les blocs les uns aux autres. */
.msg-flux>div+div{margin-top:10px}
/* Transition entre pages (voir window.transitionDePage) : l'ancienne page s'efface vite, la nouvelle monte de 8 px en 0,22 s. */
.vue-principale{background:var(--surface)}
::view-transition-old(root),::view-transition-new(root){animation:none;mix-blend-mode:normal}
::view-transition-group(vue){animation:none}
::view-transition-group(pastille-rail){animation-duration:.26s;animation-timing-function:cubic-bezier(.23,1,.32,1)}
::view-transition-old(pastille-rail),::view-transition-new(pastille-rail){mix-blend-mode:normal;height:100%}
::view-transition-old(vue),::view-transition-new(vue){mix-blend-mode:normal}
::view-transition-old(vue){animation:vtSort .12s ease-out both}
::view-transition-new(vue){animation:vtEntre .22s cubic-bezier(.23,1,.32,1) both}
@keyframes vtSort{to{opacity:0}}
@keyframes vtEntre{from{opacity:0;transform:translateY(8px)}}
/* Téléphone : entrée dans une sous-page = l'écran arrive de la droite ; retour = il repart vers la droite (courbe de tiroir, 0,3 s). */
html:active-view-transition-type(avant)::view-transition-old(vue){animation:vtAvantSort .3s cubic-bezier(.32,.72,0,1) both}
html:active-view-transition-type(avant)::view-transition-new(vue){animation:vtAvantEntre .3s cubic-bezier(.32,.72,0,1) both}
html:active-view-transition-type(arriere)::view-transition-old(vue){z-index:2;animation:vtRetourSort .3s cubic-bezier(.32,.72,0,1) both}
html:active-view-transition-type(arriere)::view-transition-new(vue){animation:vtRetourEntre .3s cubic-bezier(.32,.72,0,1) both}
@keyframes vtAvantSort{to{transform:translateX(-28%);opacity:.35}}
@keyframes vtAvantEntre{from{transform:translateX(100%)}}
@keyframes vtRetourSort{to{transform:translateX(100%)}}
@keyframes vtRetourEntre{from{transform:translateX(-28%);opacity:.35}}
@media (prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}
.msg-flux>div>*:last-child{margin-bottom:0}
.msg-content p{margin-bottom:10px}.msg-content p:last-child{margin-bottom:0}
.msg-content ul,.msg-content ol{padding-left:20px;margin-bottom:10px}
.msg-content li{margin-bottom:3px}
/* Titres des réponses (12/11/2026) : « # » rend un h3, « ## » un h4, « ### » un h5, « #### » un h6. Seul le h3 avait un style : les autres
   niveaux — les plus courants — avaient la taille du texte, sans espace au-dessus. La marge basse (10 px) est celle qui sépare deux blocs
   pendant l'écriture (.msg-flux>div+div) : rien ne bouge quand la réponse se termine. */
.msg-content :is(h3,h4,h5,h6){font-family:var(--font-display);font-weight:600;letter-spacing:-.012em;line-height:1.3;margin:24px 0 10px;text-wrap:balance}
.msg-content h3{font-size:1.4em}.msg-content h4{font-size:1.2em}
.msg-content h5{font-size:1.07em;margin-top:20px}.msg-content h6{font-size:1em;margin-top:20px}
.msg-content>:is(h3,h4,h5,h6):first-child,.msg-flux>div:first-child>:is(h3,h4,h5,h6):first-child{margin-top:0}
.msg-content hr{border:0;border-top:1px solid var(--border);margin:20px 0}
.msg-content del{color:var(--muted)}
.msg-content a.md-lien{color:var(--lien);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:color-mix(in srgb,currentColor 40%,transparent);border-radius:3px;transition:text-decoration-color var(--dur-fast)}
.dark .msg-content a.md-lien{color:var(--accent)}
@media(hover:hover){.msg-content a.md-lien:hover{text-decoration-color:currentColor}}
.msg-content li>:is(ul,ol){margin:3px 0 0}
.msg-content strong{font-weight:600}
.msg-content code{font-family:var(--font-mono);font-size:12px;background:var(--surface);padding:2px 5px;border-radius:4px;border:1px solid var(--border)}
.msg-content pre{font-family:var(--font-mono);font-size:12px;background:var(--surface);padding:12px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);overflow-x:auto;margin-bottom:10px;line-height:1.5}
.msg-content blockquote{border-left:3px solid var(--border);padding-left:14px;margin:0 0 10px;color:var(--muted)}
.msg-content blockquote>:last-child{margin-bottom:0}
.msg-content table{width:100%;border-collapse:collapse;margin:10px 0;font-size:13px}
.msg-content td,.msg-content th{border:1px solid var(--border);padding:6px 10px;text-align:left}
.msg-content th{background:var(--surface);font-weight:600}
/* Tableaux Markdown des réponses : défilement horizontal DANS la bulle (jamais la page), bouton de copie discret dessous. */
.md-tableau{margin:10px 0}
.md-tableau-defil{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:var(--radius-sm)}
.msg-content .md-tableau table,.chat-view .msg-content .md-tableau table{display:table;width:auto;min-width:100%;margin:0}
.msg-content .md-tableau td,.msg-content .md-tableau th{white-space:normal;vertical-align:top}
.md-tableau .table-copy{margin-top:6px;font-size:12px;padding:4px 10px;min-height:28px;border-radius:var(--radius-full);border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;transition:color var(--dur-fast),border-color var(--dur-fast)}
@media(hover:hover){.md-tableau .table-copy:hover{color:var(--fg);border-color:var(--fg)}}
/* Encadré « capacité épuisée / plan requis » — même bloc dans le Chat et
   l'espace Code. Historique : fond teinté, puis bordure gauche colorée,
   puis plus de carte du tout (façon ChatGPT) — retenu : bordure unie sans
   icône, l'icône éclair lisait comme un cliché plus qu'un vrai repère. */
.msg-limite{max-width:420px;padding:14px 16px;border-radius:var(--radius-sm);
  background:var(--surface);border:1px solid var(--border)}
.msg-limite-top{margin-bottom:6px}
.msg-limite-titre{font-weight:600;font-size:14px;color:var(--fg)}
.msg-limite-jauge{display:none}
.msg-limite-barre{height:3px;border-radius:2px;background:var(--border);overflow:hidden;margin:8px 0;max-width:160px}
.msg-limite-barre>i{display:block;height:100%;background:var(--muted);border-radius:2px;transition:width .4s}
.msg-limite-txt{font-size:13px;line-height:1.55;color:var(--muted);margin-bottom:8px}
.msg-limite-txt:last-child{margin-bottom:0}
.msg-limite-liens{display:flex;flex-wrap:wrap;gap:4px 18px}
.msg-limite-cta{display:inline-flex;align-items:center;gap:4px;background:none;padding:0;border:none;color:var(--accent);font-size:13px;font-weight:600;text-decoration:none}
@media(hover:hover){.msg-limite-cta:hover{text-decoration:underline}}
.msg-limite-cta:disabled{opacity:var(--inactif);cursor:default;pointer-events:none}
.msg-limite-cta>svg{width:12px;height:12px}
/* Encart d'échec d'envoi : bouton « Réessayer » principal, lien secondaire ; liseré orange tant qu'on est hors ligne. */
.encart-echec{margin-top:4px;animation:fadeIn .2s ease}
.encart-echec.hors-ligne{border-color:color-mix(in srgb,var(--warn) 55%,var(--border))}
.encart-echec .msg-limite-liens{align-items:center;gap:8px 16px;margin-top:4px}
.encart-echec-retry{display:inline-flex;align-items:center;gap:6px}
.encart-echec-retry svg{width:13px;height:13px}
.msg-actions{display:flex;gap:4px;margin-top:4px;opacity:0;transition:opacity var(--dur-med)}
@media(hover:hover){.msg:hover .msg-actions{opacity:1}}
/* Sans survol (telephone, tablette), opacity:0 rendait ces boutons
   definitivement invisibles : le bouton qui rouvre le code genere etait
   inatteignable des qu'on avait ferme le panneau. */
@media(hover:none){.msg-actions{opacity:1}}
.msg-actions button{width:28px;height:28px;border-radius:4px;color:var(--muted);font-size:14px;display:flex;align-items:center;justify-content:center;transition:background var(--dur-fast)}
@media(hover:hover){.msg-actions button:hover{background:var(--surface-hover);color:var(--fg)}}
.chat-input-wrap{padding:0 24px 20px;flex-shrink:0}
.chat-input-inner{max-width:760px;margin:0 auto}
.chat-input{display:flex;align-items:flex-end;gap:8px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:6px 6px 6px 14px;box-shadow:var(--shadow-sm);transition:border-color var(--dur-base),box-shadow var(--dur-base)}
.chat-input:focus-within{border-color:var(--fg);box-shadow:var(--shadow-md)}
.chat-input textarea{flex:1;resize:none;padding:8px 0;font-size:14px;line-height:1.5;max-height:120px;min-height:22px}
.chat-input textarea::placeholder{color:var(--muted)}
/* Pièces jointes en attente d'envoi — juste au-dessus de la zone de saisie,
   pas dans le fil des messages (où elles flottaient au milieu du vide). */
/* Pièces jointes (16/10/2026, « version 5 » validée) : cartes pleines dans les messages, petites cartes à croix en coin dans la
   zone de saisie. Dès qu'il y a plusieurs fichiers, la rangée se fait glisser (défilement horizontal, aimanté). */
.pj-msg{display:flex;flex-direction:column;align-items:flex-end;gap:8px;margin:0 0 6px;width:100%}
.pj-defile{display:flex;gap:8px;max-width:min(82%,620px);padding:2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.pj-defile>*{flex-shrink:0;scroll-snap-align:start}
@media(hover:hover) and (pointer:fine){.pj-defile,.pj-liste{scrollbar-width:thin}}
@media(max-width:600px){.pj-defile{max-width:92%}}
.pj-photo{width:128px;height:128px;border-radius:18px;object-fit:cover;box-shadow:0 0 0 1px var(--border),var(--shadow-sm)}
.pj-seule .pj-photo{width:auto;height:auto;max-width:min(240px,100%);max-height:240px}
.pj-photo-attente{background:color-mix(in srgb,var(--fg) 6%,var(--bg));animation:pj-attente 1.2s ease-in-out infinite alternate}
@keyframes pj-attente{from{opacity:.55}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.pj-photo-attente{animation:none}}
/* Zone de saisie : une rangée qui se fait glisser. Le haut et la droite laissent la place à la croix posée sur le coin des cartes. */
.pj-liste{display:flex;gap:12px;padding:10px 10px 8px 2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.pj-liste::-webkit-scrollbar{display:none}
.pj-liste>*{scroll-snap-align:start}
.pj{position:relative;flex-shrink:0;display:flex;flex-direction:column;gap:7px;box-sizing:border-box;width:132px;min-height:112px;padding:10px 12px;border:1px solid var(--border);border-radius:14px;background:var(--surface)}
.pj-info{min-width:0;line-height:1.35}
.pj-nom{font-size:12px;font-weight:500;line-height:1.3;word-break:break-word;overflow:hidden}
.pj-doc>.pj-nom{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pj-lignes{display:flex;flex-direction:column;gap:4px;padding-top:1px}
.pj-lignes i{display:block;height:4px;border-radius:2px;background:color-mix(in srgb,var(--fg) 10%,transparent)}
.pj-lignes i:last-child{width:70%}
.pj-pied{margin-top:auto;display:flex;align-items:center;flex-wrap:wrap;gap:3px 6px}
.pj-badge{padding:2px 7px;border-radius:6px;font-size:10px;font-weight:700;letter-spacing:.05em;color:#fff;line-height:1.3}
.pj-taille{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.pj-image{width:112px;height:112px;min-height:0;padding:0;border:0;background:none}
.pj-image .pj-vignette{width:100%;height:100%;border-radius:14px}
.pj-vignette{flex-shrink:0;object-fit:cover;display:flex;align-items:center;justify-content:center;padding:0;border:none;overflow:hidden;cursor:zoom-in;
  background:color-mix(in oklch,var(--accent) 8%,var(--surface));color:var(--accent);box-shadow:0 0 0 1px var(--border)}
.pj-vignette img{width:100%;height:100%;object-fit:cover;display:block}
.pj-suppr{position:absolute;top:-7px;right:-7px;z-index:1;width:22px;height:22px;padding:0;border-radius:50%;display:flex;
  align-items:center;justify-content:center;background:var(--fg);border:2px solid var(--surface);color:var(--bg);cursor:pointer;transition:opacity var(--dur-med)}
@media(hover:hover){.pj-suppr:hover{opacity:.82}}
.pj-suppr svg{width:10px;height:10px}
/* Zone tactile du × portée à 34 px sans grossir le rond visible (audit UX 05/10). */
.pj-suppr::after{content:"";position:absolute;inset:-6px}
.pj-partiel .pj-taille{color:var(--warn)}
.pj-lecture{opacity:.85}
.pj-anneau{width:16px;height:16px;border-radius:50%;border:2px solid color-mix(in srgb,var(--accent) 25%,transparent);border-top-color:var(--accent);animation:sa-tour .8s linear infinite}
.pj-refus{width:176px;border-color:color-mix(in srgb,var(--danger) 45%,var(--border));background:color-mix(in srgb,var(--danger) 6%,var(--surface))}
.pj-refus .pj-pied{align-items:flex-start;flex-wrap:nowrap;color:var(--danger)}
.pj-refus .pj-pied svg{width:14px;height:14px;flex-shrink:0;margin-top:1px}
.pj-refus .pj-taille{color:var(--danger);white-space:normal;line-height:1.3}
/* Message envoyé : carte horizontale, pastille de type en couleur pleine. */
.pj-envoyee{flex-direction:row;align-items:center;gap:12px;width:250px;min-height:0;padding:8px 16px 8px 8px;border-radius:var(--radius-lg)}
.pj-ext{width:48px;height:48px;border-radius:var(--radius-md);flex-shrink:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:#fff}
.pj-ext svg{width:20px;height:20px}
.pj-ext span{font-size:9.5px;font-weight:700;letter-spacing:.05em;line-height:1}
.pj-envoyee .pj-nom{font-size:14px;font-weight:500;line-height:1.35;white-space:nowrap;text-overflow:ellipsis}
.pj-envoyee .pj-taille{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pj-apercu-modal .modal{max-width:min(92vw,900px)}
.pj-photo-bouton{padding:0;border:0;background:none;cursor:zoom-in;display:block;flex:none;border-radius:var(--radius-md)}
.pj-photo-bouton:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
.pj-telecharger svg{width:15px;height:15px;margin-right:6px;vertical-align:-2px}
.pj-apercu-image{display:block;max-width:100%;max-height:70vh;margin:0 auto;border-radius:var(--radius-sm);object-fit:contain}
@media(max-width:640px){
  .pj-apercu-modal .modal{max-width:none;width:100%;max-height:96dvh;padding-top:6px}
  .pj-apercu-modal .modal-poignee{margin-bottom:0}
  .pj-apercu-modal .modal-actions{flex-direction:row-reverse;margin-top:12px;gap:10px}
  .pj-apercu-modal .modal-actions .btn{flex:1;width:auto;height:46px}
  .pj-apercu-image{width:calc(100% + 40px);max-width:none;margin:0 -20px;max-height:calc(96dvh - 170px);border-radius:0}
}
/* Voile de dépôt de fichiers : tout l'espace de conversation devient la cible. */
.chat-view{position:relative}
.depot-voile{position:absolute;inset:8px;z-index:150;display:flex;align-items:center;justify-content:center;border:2px dashed var(--accent);border-radius:var(--radius-lg);
  background:color-mix(in srgb,var(--bg) 82%,transparent);backdrop-filter:blur(2px);pointer-events:none;animation:fadeIn var(--dur-fast)}
.depot-voile-carte{display:flex;align-items:center;gap:10px;padding:14px 20px;border-radius:var(--radius-md);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-sm);font-weight:600;color:var(--fg)}
.depot-voile-carte svg{color:var(--accent)}
/* Feuille de sélection, glissée depuis le bas — le geste attendu sur mobile.
   Sur écran large elle se recentre en boîte de dialogue. */
.sheet-overlay{position:fixed;inset:0;background:rgba(0,0,0,.35);z-index:200;display:flex;align-items:flex-end;justify-content:center;animation:sa-fondu var(--dur-fast) ease-out}
.sheet{width:100%;max-width:520px;box-sizing:border-box;background:var(--surface);border-radius:24px 24px 0 0;padding:8px 12px calc(24px + env(safe-area-inset-bottom));box-shadow:var(--shadow-lg);animation:sheetUp .22s cubic-bezier(.2,.8,.2,1)}
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
/* touch-action:none UNIQUEMENT sur la zone de glissement (poignée + en-tête) :
   sur toute la feuille, un navigateur mobile classait chaque contact comme un
   geste de glissement et n'émettait PLUS l'événement click sur les boutons —
   Caméra / Photos / Fichiers ne s'ouvraient pas. */
.sheet-poignee{touch-action:none}
.sheet-handle{width:40px;height:4px;border-radius:2px;background:var(--border);margin:6px auto 14px;cursor:grab}
/* Champ fichier masqué mais RENDU (pas display:none) : certains navigateurs
   mobiles refusent d'ouvrir le sélecteur sur un input display:none. */
.champ-fichier-cache{position:absolute;width:1px;height:1px;padding:0;margin:-1px;border:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.sheet-head{display:flex;align-items:center;gap:8px;margin-bottom:14px;padding:0 4px}
.sheet-title{flex:1;text-align:left;font-family:var(--font-display);font-size:17px;font-weight:600;letter-spacing:-.01em}
.sheet-fermer{width:36px;height:36px;flex-shrink:0;border:none;border-radius:50%;background:var(--surface-hover);color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
@media(hover:hover){.sheet-fermer:hover{color:var(--fg)}}
.sheet-lignes{display:flex;flex-direction:column;margin-top:8px}
.sheet-ligne{display:flex;align-items:center;gap:14px;min-height:52px;padding:0 12px;border:none;border-radius:var(--radius-md);background:none;color:var(--fg);font:inherit;font-size:15px;text-align:left;cursor:pointer}
@media(hover:hover){.sheet-ligne:hover{background:var(--surface-hover)}}
.sheet-ligne>span{flex:1}
.sheet-ligne svg{width:20px;height:20px;color:var(--muted);flex-shrink:0}
.sheet-ligne svg:last-child{width:16px;height:16px;opacity:.7}
.sheet-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 4px}
.cam-plein{position:fixed;inset:0;z-index:2000;background:rgba(0,0,0,.18);display:flex;align-items:flex-end;padding:0 10px max(10px,env(safe-area-inset-bottom))}
.cam-cadre{position:relative;flex:1;height:58vh;max-height:calc(100% - 90px);border-radius:32px;overflow:hidden;background:#111}
.cam-video{width:100%;height:100%;object-fit:cover;display:block}
.cam-miroir{transform:scaleX(-1)}
.cam-barre{position:absolute;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:space-between;padding:22px 24px calc(22px + env(safe-area-inset-bottom))}
.cam-rond{width:52px;height:52px;border-radius:50%;border:none;background:rgba(40,40,40,.72);color:#fff;display:flex;align-items:center;justify-content:center;backdrop-filter:blur(8px)}
.cam-declencheur{width:76px;height:76px;border-radius:50%;border:4px solid rgba(255,255,255,.55);background:transparent;padding:4px;display:flex}
.cam-declencheur span{flex:1;border-radius:50%;background:#fff;transition:transform .12s}
.cam-declencheur:active span{transform:scale(.88)}
.cam-declencheur:disabled{opacity:.4}
.cam-plus{position:relative}
.cam-pile{position:absolute;right:0;bottom:64px;display:flex;flex-direction:column;gap:12px}
.cam-actif{background:#fff;color:#111}
.sheet-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;height:92px;padding:0 6px;border:none;border-radius:var(--radius-lg);background:var(--surface-hover);color:var(--fg);font-size:14px;font-weight:500;transition:background var(--dur-med),transform var(--dur-fast)}
@media(hover:hover){.sheet-card:hover{background:color-mix(in srgb,var(--fg) 8%,var(--surface))}}
.sheet-card:active{transform:scale(.97)}
.sheet-card svg{width:24px;height:24px}
@media(min-width:769px){
  .sheet-overlay{align-items:center}
  .sheet{border-radius:var(--radius-lg);animation:fadeIn var(--dur-med)}
  .sheet-handle{display:none}
}
@media(max-width:360px){.sheet-card{padding:18px 4px;font-size:13px}}

.chat-input .send-btn{width:36px;height:36px;border-radius:50%;background:var(--accent);color:var(--accent-ink);display:flex;align-items:center;justify-content:center;flex-shrink:0;transition:background var(--dur-med),transform var(--dur-med),opacity var(--dur-med),border-color var(--dur-med)}
@media(hover:hover){.chat-input .send-btn:hover{background:var(--accent-hover)}}
.chat-input .send-btn:active{transform:scale(.94)}
.chat-input .send-btn:disabled{opacity:var(--inactif);cursor:not-allowed}
:is(.chat-input,.cl-saisie) .send-btn.voice-btn{background:var(--surface-hover);color:var(--fg);border:0;box-shadow:none}
@media(hover:hover){:is(.chat-input,.cl-saisie) .send-btn.voice-btn:hover{background:var(--surface)}}
:is(.chat-input,.cl-saisie) .send-btn.voice-btn.recording{background:#171717;color:#fff;border:0}
:is(.chat-input,.cl-saisie) .send-btn.voice-btn.transcribing{opacity:.6;cursor:progress}
.cl-saisie .send-btn.voice-btn{width:40px;height:40px}
.voice-status{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:12px;padding:0 2px 6px}
.voice-status.recording{color:var(--fg)}
.voice-status.recording::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;animation:dotPulse 1s infinite}
.project-card{cursor:pointer;transition:border-color var(--dur-med);user-select:none;-webkit-user-select:none}@media(hover:hover){.project-card:hover{border-color:var(--accent)}}
.project-name{font-size:15px;font-weight:600;letter-spacing:-.01em;margin-bottom:4px}
.project-meta{font-size:12px;color:var(--muted)}
.project-stats{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:8px;font-size:11px;color:var(--muted)}
/* Liste horizontale : une ligne par élément, pas une grille de petites
   cartes carrées — plus lisible dès qu'un titre ou un aperçu dépasse
   quelques mots, et l'espace des boutons reste prévisible. */
.lib-list{display:flex;flex-direction:column;gap:10px}
.lib-row{padding:12px 14px;display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap}
/* Boîte à icône et pastille de type teintées accent au lieu du gris plat
   d'origine — même carte, mais qui ne se fond plus dans le décor. */
.lib-row-icon{width:40px;height:40px;border-radius:var(--radius-md);background:color-mix(in oklch,var(--accent) 9%,transparent);display:flex;align-items:center;justify-content:center;color:var(--accent);flex-shrink:0;overflow:hidden}
.lib-row-body{flex:1;min-width:180px}
.lib-row-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600;letter-spacing:-.01em;margin-bottom:2px}
.lib-row-title .tag{background:color-mix(in oklch,var(--accent) 7%,var(--surface));border-color:color-mix(in oklch,var(--accent) 18%,var(--border));color:var(--accent)}
.lib-row-meta{font-size:12px;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
.lib-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;flex-shrink:0}
/* Sur mobile, "flex-end" empilait tout à droite en laissant un grand vide à
   gauche de la ligne (le bouton "Utiliser" a une largeur fixe, minuscule).
   Les boutons texte (Utiliser, Espace Code) se partagent maintenant toute la
   largeur disponible ; les boutons icône (copier/modifier/supprimer) restent
   à taille fixe, groupés à la fin — plus de zone morte. */
@media(max-width:560px){
  .lib-row-actions{flex-basis:100%}
  .lib-row-actions>.btn{flex:1 1 auto}
}
/* Rangée de filtres (Tout/Prompt/Document/...) : sur mobile elle retombait
   sur deux lignes inégales. Un ruban qui défile horizontalement tient en une
   seule ligne, comme les onglets de filtre habituels en appli mobile. */
.lib-filtres{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.lib-filtres::-webkit-scrollbar{display:none}
.lib-filtres>.btn{flex-shrink:0}
.memory-section{margin-bottom:24px}
.memory-section-title{font-size:13px;font-weight:600;letter-spacing:.02em;margin-bottom:10px;display:flex;align-items:center;gap:8px}
/* Icônes de section teintées accent (au lieu de la couleur du texte hérité)
   et pastille « kind » (préférence, etc.) alignée sur le même traitement
   que la Bibliothèque — cohérence, effort minimal. */
.memory-section-title svg{color:var(--accent);flex-shrink:0}
.memory-item-label .tag{background:color-mix(in oklch,var(--accent) 7%,var(--surface));border-color:color-mix(in oklch,var(--accent) 18%,var(--border));color:var(--accent);padding:2px 8px;font-size:10px}
.memory-item{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:12px 0;border-bottom:1px solid var(--border)}
.memory-item:last-child{border-bottom:none}
.memory-item-content{flex:1;min-width:0}
/* Le sujet et la pastille « kind » se disputaient une seule ligne : un sujet
   un peu long (ou traduit dans une langue plus verbeuse) poussait la pastille
   hors de la carte sur mobile au lieu de passer proprement à la ligne. */
.memory-item-label{display:flex;align-items:center;flex-wrap:wrap;gap:6px;font-size:13px;font-weight:600;color:var(--fg);margin-bottom:4px}
.memory-actions{display:flex;gap:4px;flex-shrink:0}
/* ── Panneau d'artefacts ────────────────────────────────────────────────
   Plus large que le Canvas : on y regarde une PAGE, pas un extrait. */
.project-card-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px}
/* Discret au repos, visible au survol : une corbeille en permanence sur chaque
   carte attire le clic autant qu'elle le sert. Sur mobile, où le survol
   n'existe pas, elle reste visible en permanence — sinon elle serait
   inatteignable. */
.project-del{opacity:0;color:var(--muted);transition:opacity var(--dur-med),color var(--dur-med)}
@media(hover:hover){.project-card:hover .project-del{opacity:1}}
@media(hover:hover){.project-del:hover{color:var(--danger)}}
@media(hover:none){.project-del{opacity:.55}}
/* ── Panneau d'artefacts ────────────────────────────────────────────────
   La largeur par défaut reste `min(560px,52vw)` ; dès que l'utilisateur tire
   la poignée, une largeur en pixels est posée en style EN LIGNE et prend le
   dessus. Les deux `!important` plus bas (plein écran, mobile) sont là pour
   cette raison précise : ils doivent battre ce style en ligne. */
/* `max-width` plafonne la largeur MÉMORISÉE : une valeur enregistrée sur un
   grand écran ne doit pas déborder après un redimensionnement de la fenêtre —
   le style en ligne, lui, ne se recalcule pas tout seul. */
.art-panel{position:absolute;right:0;top:var(--header-h);bottom:0;width:clamp(560px,calc(100vw - 760px),700px);max-width:calc(100vw - 240px);background:var(--surface);border-left:1px solid var(--border);transform:translateX(100%);transition:transform var(--dur-lent);z-index:60;display:flex;flex-direction:column}
.art-panel.open{transform:translateX(0)}
/* Navigateur intégré (T-064) : même emplacement et même largeur que le panneau des artéfacts. */
.nav-panneau{z-index:62;min-width:0}
@media(min-width:769px){.cl-session-page .nav-panneau{top:0}}
.nav-onglets{display:flex;align-items:center;gap:2px;padding:6px 8px 0;border-bottom:1px solid var(--border);flex-shrink:0;overflow-x:auto}
.nav-onglet{display:flex;align-items:center;min-width:0;max-width:170px;border-radius:8px 8px 0 0;border:1px solid transparent;border-bottom:none;color:var(--muted)}
.nav-onglet.actif{background:var(--bg);border-color:var(--border);color:var(--text)}
.nav-onglet-titre{flex:1;min-width:0;padding:6px 4px 6px 10px;font-size:12.5px;text-align:start;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.nav-onglet-x{display:flex;align-items:center;justify-content:center;width:22px;height:22px;margin-inline-end:4px;border-radius:6px;color:var(--muted);flex-shrink:0}
.nav-onglet-x svg{width:12px;height:12px}
.nav-espace{flex:1}
.nav-btn{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:8px;color:var(--muted);flex-shrink:0;transition:background var(--dur-med),color var(--dur-med)}
.nav-btn:disabled{opacity:.35;cursor:default}
.nav-btn.actif{background:var(--surface-hover);color:var(--text)}
@media(hover:hover){.nav-btn:hover:not(:disabled),.nav-onglet-x:hover{background:var(--surface-hover);color:var(--text)}}
.nav-barre{display:flex;align-items:center;gap:4px;padding:8px;border-bottom:1px solid var(--border);flex-shrink:0}
.nav-adresse{flex:1;min-width:0;height:32px;padding:0 12px;border-radius:16px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:13px}
.nav-adresse:focus-visible{outline:2px solid var(--accent);outline-offset:-1px}
.nav-corps{flex:1;min-height:0;display:flex;flex-direction:column;position:relative}
.nav-cadre{flex:1;width:100%;border:0;background:#fff}
.nav-vide{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:24px;text-align:center;color:var(--muted)}
.nav-vide svg{width:28px;height:28px}
.nav-vide h3{font-size:15px;font-weight:600;color:var(--text);margin:0}
.nav-vide p{font-size:13px;margin:0;max-width:300px}
.nav-bandeau{padding:8px 12px;font-size:12.5px;background:var(--surface-hover);color:var(--muted);border-bottom:1px solid var(--border)}
.nav-bandeau.nav-erreur,.nav-erreur{color:var(--danger,#c0392b)}
.nav-lecture{flex:1;overflow:auto;padding:12px 16px}
.nav-lecture h2{font-size:17px;margin:8px 0}
.nav-lecture h4{font-size:13px;margin:16px 0 6px}
.nav-texte{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13.5px;line-height:1.55;color:var(--text)}
.nav-pied{display:flex;gap:16px;justify-content:flex-end;padding:6px 12px;border-top:1px solid var(--border);flex-shrink:0}
.nav-lien{font-size:12.5px;color:var(--accent);background:none;border:none;padding:0;cursor:pointer;text-decoration:none}
.nav-lien:hover{text-decoration:underline}
.nav-vue{flex:1;overflow:auto;padding:12px 16px}
.nav-vue-tete{display:flex;align-items:center;justify-content:space-between;margin:10px 0 6px;font-size:13.5px}
.nav-aide{font-size:12.5px;color:var(--muted);margin:4px 0 8px;line-height:1.5}
.nav-liste{list-style:none;margin:0;padding:0}
.nav-liste li>button{display:flex;flex-direction:column;align-items:flex-start;width:100%;padding:8px;border-radius:8px;text-align:start}
.nav-liste li>button:hover{background:var(--surface-hover)}
.nav-liste-titre{font-size:13px;color:var(--text);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-liste-url{font-size:11.5px;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-sites li{display:flex;justify-content:space-between;align-items:center;padding:6px 8px;border-bottom:1px solid var(--border)}
.nav-niveaux{display:flex;flex-direction:column;gap:6px}
.nav-niveau{display:flex;gap:10px;align-items:flex-start;padding:10px;border:1px solid var(--border);border-radius:10px;cursor:pointer}
.nav-niveau.actif{border-color:var(--accent);background:var(--surface-hover)}
.nav-niveau span{display:flex;flex-direction:column;gap:2px;font-size:13px}
.nav-niveau small{color:var(--muted);font-size:12px;line-height:1.45}
.nav-site-ajout{display:flex;gap:8px}
.nav-site-ajout input{flex:1;min-width:0;height:34px;padding:0 10px;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-size:13px}
@media(max-width:768px){.nav-panneau{top:0;width:100%!important;max-width:none;z-index:85}.nav-barre .nav-btn:nth-child(2),.nav-barre .nav-btn:last-child{display:none}.nav-adresse{font-size:16px}}
html[dir="rtl"] .nav-barre .ico-dir{transform:scaleX(-1)}

@media(min-width:769px){.chat-view.avec-art>*:not(.art-panel){margin-right:var(--art-w,0px);transition:margin-right var(--dur-lent)}}
/* Poignée de redimensionnement : une bande de 7 px à cheval sur la bordure,
   invisible tant qu'on ne la vise pas. */
.art-poignee{position:absolute;left:-3px;top:0;bottom:0;width:7px;cursor:col-resize;z-index:3;background:transparent;border:none;padding:0}
.art-poignee::after{content:"";position:absolute;left:2px;top:0;bottom:0;width:3px;background:var(--accent);opacity:0;transition:opacity var(--dur-med)}
.art-poignee:focus-visible::after{opacity:.55}
@media(hover:hover){.art-poignee:hover::after{opacity:.55}}
.art-panel--glisse .art-poignee::after{opacity:.75}
/* Pendant le glissement, la souris balaie le texte des deux côtés du panneau :
   sans ça, tout se sélectionne en bleu au premier mouvement. */
body.art-glisse-actif{user-select:none;cursor:col-resize}

.art-head{padding:8px 8px 0 12px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:2px}
.art-head-haut{display:flex;align-items:center;gap:8px;min-width:0}
.art-ico{flex:none;display:flex;color:var(--muted)}
.art-title{font-weight:600;font-size:14px;letter-spacing:-.01em;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.art-actions{display:flex;align-items:center;gap:2px;flex:none}
/* Actions en icônes plutôt qu'en boutons libellés : elles remontent du pied
   vers l'en-tête, où on les cherche, et le pied devient une barre d'état.
   Le `title` porte le libellé, `aria-label` le rend au lecteur d'écran. */
.art-act{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border-radius:var(--radius-sm);color:var(--muted);transition:background var(--dur-fast),color var(--dur-fast)}
@media(hover:hover){.art-act:hover{background:var(--surface-hover);color:var(--fg)}}
.art-act.on{color:var(--accent);background:var(--surface-hover)}
.art-act:disabled{opacity:var(--inactif);cursor:default}
@media(hover:hover){.art-act:disabled:hover{background:transparent;color:var(--muted)}}
.art-sep{width:1px;height:16px;background:var(--border);margin:0 4px;flex:none}
.art-head-bas{display:flex;align-items:center;gap:4px}
.art-tabs{display:flex;gap:2px}
/* Onglets soulignés plutôt que pilules : à 11 px et 3 px de rembourrage, les
   pilules d'origine passaient sous la taille de cible utilisable au doigt. */
.art-tab{font-size:13px;font-weight:500;padding:7px 10px 8px;border:none;background:transparent;color:var(--muted);cursor:pointer;border-bottom:2px solid transparent;margin-bottom:-1px;transition:color var(--dur-fast),border-color var(--dur-fast)}
@media(hover:hover){.art-tab:hover{color:var(--fg)}}
.art-tab.on{color:var(--fg);border-bottom-color:var(--accent)}
.art-outils{margin-left:auto;display:flex;gap:2px;padding-bottom:4px}

/* Recherche dans le listing. Elle marque les LIGNES qui contiennent le motif,
   elle ne recoud pas de balises au milieu du HTML déjà colorié : manipuler des
   spans générés est exactement le genre de couture qui finit par laisser
   passer du contenu non échappé. */
.art-recherche{display:flex;align-items:center;gap:6px;padding:6px 12px;border-bottom:1px solid var(--border);background:var(--surface)}
.art-recherche input{flex:1;min-width:0;font-size:13px;padding:5px 9px;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--bg);color:var(--fg)}
.art-recherche input:focus{border-color:var(--fg)}
.art-compte{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums;flex:none;min-width:56px;text-align:right}

.art-corps{flex:1;min-height:0;display:flex}
/* Colonne des artefacts, au-delà de ART_NAV_SEUIL. La bande de pastilles à
   défilement horizontal ne disait ni combien il y en avait, ni lequel était
   lequel ; en colonne, les deux se lisent d'un coup d'œil. */
.art-nav{flex:none;width:184px;border-right:1px solid var(--border);overflow-y:auto;padding:6px;display:flex;flex-direction:column;gap:2px;background:var(--surface);transition:width var(--dur-base)}
.art-nav--replie{width:46px}
.art-nav-item{display:flex;align-items:center;gap:8px;padding:7px 8px;border-radius:var(--radius-sm);font-size:12px;color:var(--muted);text-align:left;width:100%;min-width:0;transition:background var(--dur-fast),color var(--dur-fast)}
@media(hover:hover){.art-nav-item:hover{background:var(--surface-hover);color:var(--fg)}}
.art-nav-item.on{background:var(--surface-hover);color:var(--fg);font-weight:500}
.art-nav-item svg{flex:none}
.art-nav-nom{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.art-nav--replie .art-nav-nom{display:none}
.art-nav-bascule{margin-top:auto;justify-content:center;color:var(--muted)}

.art-body{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--bg)}
/* Fond blanc explicite : l'artefact est une page indépendante, elle ne doit pas
   hériter du thème sombre du site et se retrouver illisible. */
.art-frame{flex:1;width:100%;border:0;background:#fff}
.art-code{flex:1;overflow:auto;padding:0;background:var(--od-bg-panel)}
/* ── viewer/code.css ── */
.od-viewer .code-viewer {
  background: var(--od-bg-panel);
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  font-family: var(--od-mono);
  font-size: 12px;
  line-height: 1.6;
  min-height: 100%;
}

.od-viewer .code-viewer .gutter {
  background: var(--od-bg);
  color: var(--od-text-faint);
  text-align: right;
  padding: 16px 12px 16px 16px;
  user-select: none;
  border-right: 1px solid var(--od-border-soft);
  white-space: pre;
  font-variant-numeric: tabular-nums;
}

.od-viewer .code-viewer .lines {
  padding: 16px 16px 16px 18px;
  white-space: pre;
  overflow-x: auto;
  color: var(--od-text);
}

.od-viewer .viewer-empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--od-text-muted);
  font-size: 13px;
}

.od-viewer .viewer-empty.viewer-empty-dismissible {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: left;
}



.od-viewer{--od-mono:ui-monospace,'SF Mono',SFMono-Regular,Menlo,Consolas,monospace}
.od-viewer .code-viewer.retour .lines{white-space:pre-wrap;overflow-x:visible;word-break:break-word}
.od-viewer .code-viewer .cl-l--trouve{background:color-mix(in srgb,#ffd54a 32%,transparent);box-shadow:0 0 0 2px color-mix(in srgb,#ffd54a 32%,transparent);border-radius:2px}
.od-viewer .code-viewer .cl-l--actuelle{background:color-mix(in srgb,#ffb300 55%,transparent);box-shadow:0 0 0 2px color-mix(in srgb,#ffb300 55%,transparent)}

.art-code .cl{--cl-bg:var(--bg)}
/* Lignes trouvées par la recherche, et celle sur laquelle on se trouve. */
.cl-l--trouve{background:color-mix(in oklch,var(--warn) 20%,transparent)}
.cl-l--actuelle{background:color-mix(in oklch,var(--accent) 26%,transparent)}
/* Canvas document éditable : un simple textarea, pas un éditeur enrichi — le
   document est du Markdown brut, et c'est ce que l'utilisateur doit pouvoir
   modifier directement, sans qu'une mise en forme invisible s'en mêle. */
.art-edit{flex:1;overflow:auto;margin:0;padding:14px 16px;border:0;resize:none;background:var(--bg);color:var(--fg);font-family:var(--font-mono);font-size:13px;line-height:1.65;outline:none}
/* Le pied est devenu une barre d'état : le type, le nombre de lignes, le
   poids. Les trois boutons qui l'occupaient sont remontés dans l'en-tête. */
.art-foot{padding:7px 12px;border-top:1px solid var(--border);display:flex;gap:10px;align-items:center;font-size:11px;color:var(--muted)}
.art-meta{display:flex;gap:8px;align-items:center;font-variant-numeric:tabular-nums}
.art-meta b{font-weight:600;color:var(--fg);letter-spacing:.05em;text-transform:uppercase;font-size:10px}
.art-list{display:flex;gap:6px;overflow-x:auto;padding:7px 12px;border-bottom:1px solid var(--border);scrollbar-width:none}
.art-list::-webkit-scrollbar{display:none}
.art-chip{display:flex;align-items:center;gap:6px;font-size:12px;padding:4px 10px;border-radius:var(--radius-full);border:1px solid var(--border);background:transparent;color:var(--muted);cursor:pointer;white-space:nowrap;transition:border-color var(--dur-fast),color var(--dur-fast),background var(--dur-fast)}
@media(hover:hover){.art-chip:hover{color:var(--fg);background:var(--surface-hover)}}
.art-chip.on{border-color:var(--accent);color:var(--fg);background:var(--surface-hover)}
/* ── Carte d'artefact, sous une réponse ─────────────────────────────────
   Elle remplace l'ancien bouton « Voir le code », qui posait deux problèmes :
   un seul bouton pour toute une réponse ne disait pas LEQUEL des artefacts il
   allait ouvrir, et son libellé promettait du code alors qu'il ouvrait
   l'aperçu. Une carte par artefact, nommée, typée, et « Ouvrir » ne ment sur
   rien. */
.art-carte{display:flex;align-items:center;gap:16px;width:100%;max-width:560px;margin:12px 0 4px;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);text-align:left;overflow:hidden;transition:border-color var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.art-carte:hover{border-color:var(--muted);box-shadow:var(--shadow-sm)}}
/* Vignette : deux feuilles superposées, celle du fond à peine inclinée, et
   l'ensemble PLUS HAUT que la carte ne l'accepte. La marge négative du bas
   réduit la boîte de mise en page sans réduire le dessin ; `overflow:hidden`
   sur la carte vient trancher ce qui dépasse. C'est ce débordement rogné qui
   fait lire « une page » plutôt que « une icône dans un cadre ».
   Les deux feuilles sont des pseudo-éléments — du pur décor n'a pas à peser
   une balise. L'icône repasse au-dessus avec z-index:1, jamais avec un
   z-index négatif : celui-ci l'enverrait DERRIÈRE le fond de la carte. */
.art-carte-vignette{position:relative;flex:none;width:52px;height:76px;margin-bottom:-26px;display:flex;align-items:center;justify-content:center;color:var(--muted)}
.art-carte-vignette::before,.art-carte-vignette::after{content:"";position:absolute;inset:0;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}
.art-carte-vignette::before{transform:rotate(-8deg) translateX(-4px)}
.art-carte-vignette::after{background:var(--bg)}
/* L'icône se centre sur la partie VISIBLE de la feuille, pas sur sa hauteur
   totale : la moitié basse est coupée, un centrage naïf la ferait plonger. */
.art-carte-vignette svg{position:relative;z-index:1;width:22px;height:22px;margin-bottom:26px}
.art-carte-miniature{position:relative;flex:none;width:84px;height:62px;border-radius:var(--radius-sm);overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.09)}
.vignette-vive{position:absolute;inset:0;overflow:hidden;background:#fff}
.vignette-vive iframe{position:absolute;top:0;left:0;border:0;transform-origin:0 0;pointer-events:none;background:#fff}
.galerie{width:100%;max-width:560px;margin:12px 0 4px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);overflow:hidden}
.g-tete{display:flex;align-items:center;justify-content:space-between;padding:11px 14px 8px}
.g-titre{font-size:14px;font-weight:600}
.g-tout{border:0;background:none;font:inherit;font-size:13px;font-weight:500;color:var(--muted);cursor:pointer;padding:2px 4px;border-radius:6px}
@media(hover:hover){.g-tout:hover{color:var(--fg);background:var(--surface-hover)}}
.g-corps{padding:0 10px 10px;display:grid;gap:8px}
.g-2,.g-4{grid-template-columns:1fr 1fr}
.g-3{grid-template-columns:1.25fr 1fr;grid-template-rows:1fr 1fr}
.g-3 .g-tuile:first-child{grid-row:1 / span 2}
.g-tuile{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer;transition:border-color var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.g-tuile:hover{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}}
.g-vue{position:relative;display:block;height:104px;flex:none;background:var(--bg);overflow:hidden}
.g-4 .g-vue{height:84px}
.g-3 .g-tuile:first-child .g-vue{height:auto;flex:1}
.g-3 .g-tuile:not(:first-child) .g-vue{height:58px}
.g-icone{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;color:var(--muted)}.g-icone svg{width:26px;height:26px}
.g-plus{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(0,0,0,.55);color:#fff;font-size:20px;font-weight:600}
.g-legende{display:flex;align-items:center;gap:7px;padding:7px 10px;border-top:1px solid var(--border);min-width:0}
.g-legende svg{width:14px;height:14px;color:var(--muted);flex-shrink:0}
.g-nom{font-size:13px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.g-type{margin-left:auto;font-size:12px;color:var(--muted);flex-shrink:0}
.g-points{display:none}
@media(max-width:768px){
  .g-corps{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px}
  .g-corps::-webkit-scrollbar{display:none}
  .g-corps .g-tuile{flex:0 0 232px;scroll-snap-align:start}
  .g-corps .g-vue,.g-4 .g-vue,.g-3 .g-tuile .g-vue{height:132px!important;flex:none!important}
  .g-points{display:flex;justify-content:center;gap:6px;padding:2px 0 11px}
  .g-points u{width:6px;height:6px;border-radius:50%;background:var(--border);text-decoration:none;transition:width var(--dur-med)}
  .g-points u.on{width:18px;border-radius:3px;background:var(--fg)}
}
.art-carte-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.art-carte-titre{font-size:16px;font-weight:500;letter-spacing:-.01em;color:var(--fg);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.art-carte-type{font-size:14px;color:var(--muted)}
.art-carte-ouvrir{flex:none;font-size:14px;padding:8px 18px;border:1px solid var(--border);border-radius:var(--radius-full);color:var(--fg);background:var(--surface);transition:background var(--dur-fast),border-color var(--dur-fast)}
@media(hover:hover){.art-carte:hover .art-carte-ouvrir{background:var(--surface-hover);border-color:var(--muted)}}
@media(max-width:480px){
  .art-carte{gap:12px;padding:12px}
  .art-carte-vignette{width:44px;height:64px;margin-bottom:-22px}
  .art-carte-miniature{width:68px;height:52px}
  .art-carte-miniature iframe{width:680px;height:520px}
  .art-carte-vignette svg{width:19px;height:19px;margin-bottom:22px}
  .art-carte-titre{font-size:15px}
  .art-carte-type{font-size:13px}
  .art-carte-ouvrir{padding:7px 14px;font-size:13px}
}
/* Plein écran (ordinateur uniquement — voir la media query plus bas). Le
   panneau passe en `fixed inset:0` : il recouvre la barre du haut et la barre
   latérale. `transform:none` annule le glissement d'ouverture. */
.art-panel.art-panel--plein{position:fixed;inset:0;width:auto!important;max-width:none;border-left:none;z-index:150;transform:none}
.art-panel--plein .art-poignee{display:none}
.art-plein-btn{flex-shrink:0}

/* ── Panneau des artéfacts (21/10/2026) : le nôtre, disposition du panneau Design ──
   Carte blanche arrondie · en-tête (titre ⌄, historique ⌄, Partager noir, agrandir, fermer) · canevas gris · deux pilules flottantes ·
   l'artéfact posé comme une planche (titre, agrandir, télécharger) · menus très arrondis avec raccourcis à droite. */
.pa-panneau{--pa-canvas:#ededeb;--pa-trait:#d9d9d6;--pa-selection:#cbdffa;--pa-selection-ink:#1d5fb4;--pa-doux:#8a8a86;background:var(--surface);overflow:visible;border:1.5px solid var(--pa-trait);border-radius:20px;margin:0 8px 8px 0;top:8px;bottom:0;z-index:80;box-shadow:0 8px 30px -12px rgba(0,0,0,.18)}
:root[data-theme="dark"] .pa-panneau,.dark .pa-panneau{--pa-canvas:#191D21;--pa-trait:#34383D;--pa-selection:rgba(90,150,255,.28);--pa-selection-ink:#8ab8ff;--pa-doux:#9a9aa3}
/* (le thème sombre du panneau suit la classe .dark de l'application, jamais le réglage de l'ordinateur : une règle « prefers-color-scheme » le rendait sombre dans une application claire) */
.pa-panneau.art-panel--plein{margin:0;border-radius:0}
.pa-tete{display:flex;align-items:center;gap:10px;height:56px;flex:none;padding:0 16px 0 20px;background:var(--surface);border-radius:20px 20px 0 0;position:relative;z-index:6}
.pa-titre-zone{position:relative;flex:1;min-width:0;display:flex}
.pa-titre{display:flex;align-items:center;gap:6px;max-width:100%;height:40px;padding:0;border:0;border-radius:10px;background:none;color:var(--fg);font-size:18px;font-weight:400;letter-spacing:-.01em;cursor:pointer;min-width:0}
.pa-titre-ico{display:none;flex:none;color:var(--muted)}
.pa-titre-texte{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pa-titre-chev{flex:none;color:var(--pa-doux)}
.pa-titre-chev,.pa-pilule-chev{width:16px;height:16px;color:var(--pa-doux)}
.pa-titre-ico{display:none}.pa-titre-ico svg{width:18px;height:18px}
.pa-icone{flex:none;width:40px;height:40px;display:grid;place-items:center;border:0;border-radius:var(--radius-md);background:none;color:var(--fg);cursor:pointer}
@media(hover:hover){.pa-icone:hover{background:var(--surface-hover)}}
.pa-icone svg{width:22px;height:22px}
.pa-pilule{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 10px 0 11px;border:1px solid var(--pa-trait);border-radius:11px;background:var(--surface);color:var(--fg);box-shadow:0 1px 4px rgba(0,0,0,.06);cursor:pointer}
.pa-pilule svg{width:18px;height:18px}
.pa-pilule-sep{width:1px;height:16px;background:var(--pa-trait)}
.pa-pilule-chev{color:var(--pa-doux)}
.pa-partager{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 15px 0 13px;border:0;border-radius:11px;background:#0b0b0b;color:#fff;font-size:16px;font-weight:600;letter-spacing:-.01em;cursor:pointer;flex:none}
.pa-partager svg{width:16px;height:16px}
@media(hover:hover){.pa-partager:hover{background:#262626}}
:root[data-theme="dark"] .pa-partager,.dark .pa-partager{background:#f4f4f4;color:#0b0b0b}
.pa-partager-mobile,.pa-fermer-mobile{display:none}
.pa-barre{position:absolute;top:68px;left:18px;right:18px;z-index:5;display:flex;justify-content:space-between;flex-wrap:wrap;row-gap:8px;gap:12px;pointer-events:none}
.pa-capsule{display:flex;align-items:center;gap:2px;height:52px;padding:0 8px;border:1px solid var(--pa-trait);border-radius:20px;background:var(--surface);box-shadow:0 6px 18px -8px rgba(0,0,0,.18);pointer-events:auto;min-width:0}
.pa-mode{display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 10px 0 12px;border:0;border-radius:var(--radius-md);background:none;color:var(--fg);font-size:18px;font-weight:400;letter-spacing:-.01em;cursor:pointer;white-space:nowrap}
.pa-mode:disabled{cursor:default}
.pa-mode--zoom{padding-left:14px;min-width:84px;justify-content:space-between;font-variant-numeric:tabular-nums}
.pa-seg{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:40px;min-width:38px;padding:0;border:0;border-radius:11px;background:none;color:var(--fg);cursor:pointer;white-space:nowrap}
.pa-seg svg{width:22px;height:22px;flex:none}
@media(hover:hover){.pa-seg:hover:not(:disabled){background:var(--surface-hover)}}
.pa-seg.on{background:var(--pa-selection);color:var(--pa-selection-ink)}
.pa-seg:disabled{opacity:var(--inactif);cursor:default}
.pa-sep-v{width:1px;height:26px;margin:0 6px;background:var(--pa-trait)}
.pa-relatif{position:relative;display:inline-flex;align-items:center}
.pa-menu{position:absolute;top:calc(100% + 8px);z-index:30;min-width:260px;max-width:min(380px,86vw);max-height:60vh;overflow:auto;padding:8px;border:1.5px solid var(--pa-trait);border-radius:22px;background:var(--surface);box-shadow:0 18px 50px -14px rgba(0,0,0,.28);animation:fadeIn var(--dur-fast)}
.pa-menu--droite{right:0}.pa-menu--gauche{left:0;min-width:330px}.pa-menu--etroit{min-width:270px}
.pa-menu-titre{padding:8px 12px 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.pa-item{display:flex;align-items:center;gap:14px;width:100%;min-height:46px;padding:6px 14px;border:0;border-radius:13px;background:none;color:var(--fg);font-size:17px;text-align:left;cursor:pointer}
.pa-item[aria-checked="true"]{background:#f2f2f0}
@media(hover:hover){.pa-item:hover:not(:disabled){background:#f2f2f0}}
:root[data-theme="dark"] .pa-item[aria-checked="true"]{background:rgba(255,255,255,.07)}
@media(hover:hover){:root[data-theme="dark"] .pa-item:hover:not(:disabled),.dark .pa-item:hover:not(:disabled){background:rgba(255,255,255,.07)}}
.pa-item.on{font-weight:500}
.pa-item:disabled{opacity:var(--inactif);cursor:default}
.pa-item--vide{color:var(--muted);cursor:default;font-size:var(--text-base)}
.pa-item svg{flex:none;width:20px;height:20px}
.pa-item>span{white-space:nowrap}
.pa-item-texte{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pa-item small{flex:none;font-size:15px;color:var(--pa-doux)}
.pa-sep{height:1px;margin:6px 14px;background:var(--pa-trait)}
.pa-feuille{display:flex;flex-direction:column;padding:6px 8px max(16px,env(safe-area-inset-bottom))}
.pa-feuille .pa-item{min-height:54px;font-size:17px;padding:8px 14px}
.pa-puce-cours{width:8px;height:8px;flex:none;border-radius:50%;background:var(--accent);animation:pt-grossit 1.2s ease-in-out infinite}
.pa-zone{flex:1;min-height:0;position:relative;background:var(--pa-canvas);display:flex;flex-direction:column;overflow:hidden}
.pa-scene{flex:1;min-height:0;position:relative;padding:84px 28px 20px;display:flex;justify-content:center;align-items:flex-start;overflow:auto}
.pa-planche{display:flex;flex-direction:column;gap:10px;flex:none}
.pa-planche-tete{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:34px;color:#555}
:root[data-theme="dark"] .pa-planche-tete,.dark .pa-planche-tete{color:#b4b4bb}
.pa-planche-titre{font-size:18px;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pa-planche-actions{gap:2px}
.pa-planche-actions .pa-icone{width:34px;height:34px;color:inherit}
.pa-planche-actions .pa-icone svg{width:20px;height:20px}
.pa-cadre{position:relative;background:#fff;overflow:hidden;flex:none;border:1px solid var(--pa-trait);box-shadow:0 2px 10px -4px rgba(0,0,0,.12)}
.pa-iframe{display:block;border:0;background:#fff}
.pa-scene--mobile{padding:62px 0 0;align-items:stretch}
.pa-scene--mobile .pa-planche{width:100%;flex:1;min-height:0;gap:0}
.pa-scene--mobile .pa-cadre{flex:1;min-height:0;border:0;box-shadow:none}
.pa-scene--mobile .pa-iframe{width:100%;height:100%}
.pa-maquette-chargement{position:absolute;inset:0;background:#fff;overflow:hidden}
.pa-mq-fil{position:absolute;left:0;right:0;top:0;height:3px;background:#e8eefb;overflow:hidden}
.pa-mq-fil i{display:block;width:40%;height:3px;background:#3b82e0;animation:pa-mq-barre 1.6s ease-in-out infinite}
.pa-mq-corps{padding:28px;display:flex;flex-direction:column;gap:16px}
.pa-mq-e{opacity:0;animation:pa-mq-monte 5.6s ease-out infinite}
.pa-mq-e1{animation-delay:0s}.pa-mq-e2{animation-delay:.5s}.pa-mq-e3{animation-delay:1s}.pa-mq-e4{animation-delay:1.5s}.pa-mq-e5{animation-delay:2s}.pa-mq-e6{animation-delay:2.5s}
.pa-mq-haut{display:flex;justify-content:space-between;align-items:center}
.pa-mq-haut b{display:block;width:84px;height:12px;border-radius:6px;background:#dfe6f3}
.pa-mq-haut span{display:flex;gap:10px}.pa-mq-haut i{display:block;width:36px;height:10px;border-radius:5px;background:#e8e8ec}
.pa-mq-titre{height:20px;width:74%;border-radius:8px;background:#d5dae6;margin-top:18px}
.pa-mq-ligne{height:12px;width:52%;border-radius:6px;background:#e8e8ec}
.pa-mq-bouton{width:112px;height:34px;border-radius:9px;background:#cfe0f8}
.pa-mq-cartes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.pa-mq-cartes i{display:block;height:96px;border-radius:12px;background:#f0f0f3}
.pa-mq-pied{height:10px;width:30%;border-radius:5px;background:#e8e8ec}
.pa-maquette-etiquette{position:absolute;left:0;right:0;bottom:20px;text-align:center;font-size:13px;color:#5c5c66}
@keyframes pa-mq-monte{0%{opacity:0;transform:translateY(10px)}12%{opacity:1;transform:none}86%{opacity:1;transform:none}100%{opacity:0;transform:translateY(-4px)}}
@keyframes pa-mq-barre{0%{transform:translateX(-100%)}100%{transform:translateX(250%)}}
@media(prefers-reduced-motion:reduce){.pa-mq-e{animation:none;opacity:1}.pa-mq-fil i{animation:none}}
.pa-chargement{position:absolute;inset:76px 0 0;display:grid;place-items:center;z-index:2;background:var(--pa-canvas);pointer-events:none}
.pa-code{flex:1;min-height:0;margin:84px 28px 20px;border:1px solid var(--pa-trait);border-radius:4px;background:var(--surface);font-family:var(--font-mono);font-size:13px;line-height:1.55;color:var(--fg);overflow:auto}
.pa-code--edition{width:calc(100% - 56px);padding:12px 14px;resize:none;outline:none;tab-size:2;white-space:pre}
.pa-code--edition:focus{border-color:var(--fg)}
.pa-code--lecture{display:flex}
.pa-num,.pa-src{margin:0;padding:12px 0;font:inherit;white-space:pre}
.pa-num{position:sticky;left:0;flex:none;padding:12px 10px 12px 14px;text-align:right;color:var(--muted);background:var(--surface);user-select:none;border-right:1px solid var(--border)}
.pa-src{padding:12px 14px;flex:1}
.pa-pied{flex:none;display:flex;gap:14px;align-items:center;padding:8px 18px;border-top:1px solid var(--pa-trait);background:var(--surface);border-radius:0 0 20px 20px;font-size:13px;color:var(--muted)}
.pa-pied-bouton{margin-left:auto;display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border:0;border-radius:9px;background:var(--surface-hover);color:var(--fg);font-size:13px;cursor:pointer}
.pa-puce-texte{margin-left:auto;color:var(--accent);font-weight:600}
.pa-fichiers{flex:1;min-height:0;overflow:auto;background:var(--surface)}
/* Canevas des artéfacts (même disposition que le panneau Design) */
.pa-zone--toile{background:var(--pa-canvas)}
.pa-toile{position:absolute;inset:0;overflow:hidden;touch-action:none;user-select:none;cursor:default}
.pa-toile.pa-outil-main{cursor:grab}.pa-toile.pa-outil-main:active{cursor:grabbing}
.pa-toile.pa-outil-texte,.pa-toile.pa-outil-note{cursor:text}.pa-toile.pa-outil-crayon,.pa-toile.pa-outil-forme{cursor:crosshair}
.pa-monde{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform}
.pa-planche-corps{position:relative;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 1px var(--pa-trait)}
.pa-planche-corps .pa-iframe{display:block}
.pa-annots{position:absolute;left:0;top:0;pointer-events:none}.pa-annots g,.pa-annots line,.pa-annots path,.pa-annots rect,.pa-annots ellipse{pointer-events:auto}
.pa-annot-texte{position:absolute;min-width:24px;min-height:1.4em;padding:10px 12px;font:15px/1.4 var(--font-sans,system-ui);color:#1a1a1a;white-space:pre-wrap;outline:none;border-radius:2px;cursor:default}
.pa-annot-note{box-shadow:0 1px 2px rgba(0,0,0,.18);border:1px solid #a9c4ee;font-size:13px}
.pa-annot-texte.sel{outline:2px solid #2b6fd6;outline-offset:2px}
.pa-annot-texte[contenteditable="true"]{cursor:text;user-select:text}
.pa-planche-titre-ligne{position:absolute;display:flex;align-items:center;justify-content:space-between;gap:10px;height:34px;color:#555;pointer-events:none}
.pa-planche-titre-ligne>*{pointer-events:auto}
.pa-planche-titre-ligne.sel{color:#2b6fd6}
.pa-planche-titre-ligne .pa-planche-titre{pointer-events:none}
:root[data-theme="dark"] .pa-planche-titre-ligne:not(.sel),.dark .pa-planche-titre-ligne:not(.sel){color:#b4b4bb}
.pa-planche-actions{display:flex;align-items:center;gap:2px;color:#555}
:root[data-theme="dark"] .pa-planche-actions,.dark .pa-planche-actions{color:#b4b4bb}
.pa-toile.pa-panne,.pa-toile.pa-panne *{cursor:grabbing!important}
.pa-marquee{position:absolute;border:1px solid #2b6fd6;background:rgba(43,111,214,.13);pointer-events:none;z-index:4}
.pa-el-survol{position:absolute;border:1px solid rgba(43,111,214,.75);pointer-events:none;z-index:3}
.pa-el-sel{position:absolute;border:1.5px solid #2b6fd6;pointer-events:none;z-index:4}
.pa-el-nom{position:absolute;left:-1.5px;bottom:100%;margin-bottom:3px;background:#2b6fd6;color:#fff;font-size:11px;line-height:1;padding:3px 7px;border-radius:5px;white-space:nowrap}
.pa-el-poignee{position:absolute;width:10px;height:10px;background:#fff;border:1.5px solid #2b6fd6;border-radius:2px;box-sizing:border-box}
.pa-el-poignee.actif{pointer-events:auto;width:12px;height:12px}
@media(pointer:coarse){.pa-el-poignee.actif{width:22px;height:22px}.pa-el-nw.actif{left:-12px;top:-12px}.pa-el-ne.actif{right:-12px;top:-12px}.pa-el-sw.actif{left:-12px;bottom:-12px}.pa-el-se.actif{right:-12px;bottom:-12px}.pa-bs-btn{width:42px;height:42px}}
.pa-el-poignee.actif.pa-el-nw,.pa-el-poignee.actif.pa-el-se{cursor:nwse-resize}.pa-el-poignee.actif.pa-el-ne,.pa-el-poignee.actif.pa-el-sw{cursor:nesw-resize}
.pa-barre-style{position:absolute;transform:translateX(-50%);z-index:7;display:flex;align-items:center;gap:2px;padding:6px 8px;background:var(--surface);color:var(--fg);border:1px solid var(--pa-trait);border-radius:var(--radius-lg);box-shadow:0 8px 28px -6px rgba(0,0,0,.22);white-space:nowrap;max-width:calc(100% - 16px)}
.pa-barre-style.maj{pointer-events:none;opacity:.35}
.pa-bs-type{padding:0 12px 0 8px;margin-right:4px;font-size:14px;font-weight:600;border-right:1px solid var(--pa-trait);line-height:34px}
.pa-bs-btn{width:36px;height:36px;border-radius:10px;border:0;background:transparent;color:inherit;display:grid;place-items:center;cursor:pointer;font-size:16px}
@media(hover:hover){.pa-bs-btn:hover{background:var(--surface-hover)}}.pa-bs-btn[aria-pressed="true"]{background:var(--pa-selection);color:var(--pa-selection-ink)}
.pa-bs-pastille{width:22px;height:22px;border-radius:7px;border:1px solid rgba(128,128,128,.45);display:block}
.pa-bs-popo{position:absolute;top:100%;left:0;margin-top:10px;z-index:8;display:flex;flex-wrap:wrap;gap:8px;padding:12px;width:196px;background:var(--surface);border:1px solid var(--pa-trait);border-radius:14px;box-shadow:0 8px 28px -6px rgba(0,0,0,.25)}
.pa-bs-couleur{width:26px;height:26px;border-radius:50%;border:1px solid rgba(128,128,128,.45);cursor:pointer;padding:0}
.pa-bs-lien{width:280px;flex-wrap:nowrap;align-items:center}.pa-bs-lien .input{flex:1;min-width:0}
.pa-bs-menu{width:210px;flex-direction:column;gap:2px;padding:6px}
.pa-el-nw{left:-6px;top:-6px}.pa-el-ne{right:-6px;top:-6px}.pa-el-sw{left:-6px;bottom:-6px}.pa-el-se{right:-6px;bottom:-6px}
.pa-selection{position:absolute;border:1.5px solid #2b6fd6;pointer-events:none}
.pa-selection-ligne{position:absolute;left:0;right:0;height:1.5px;background:#2b6fd6}
.pa-poignee-coin{position:absolute;width:11px;height:11px;background:#fff;border:1.5px solid #2b6fd6;pointer-events:auto;cursor:nwse-resize}
.pa-poignee-nw{left:-6px;top:-6px}.pa-poignee-ne{right:-6px;top:-6px;cursor:nesw-resize}.pa-poignee-sw{left:-6px;bottom:-6px;cursor:nesw-resize}.pa-poignee-se{right:-6px;bottom:-6px}
.pa-duo{gap:0}.pa-duo .pa-seg--ico{min-width:38px}
.pa-seg--chev{width:22px;min-width:22px;padding:0;margin-left:-6px;color:var(--pa-doux)}.pa-seg--chev svg{width:16px;height:16px}
.pa-raccourci{margin-left:auto;font:inherit;font-size:16px;color:var(--pa-doux)}
.pa-signe{display:grid;place-items:center;width:20px;font-size:20px;line-height:1;color:var(--muted)}
.pa-vue{background:var(--pa-canvas);display:flex;flex-direction:column;min-height:0}
.pa-vue-tete{display:flex;align-items:center;gap:8px;height:52px;flex:none;padding:0 14px 0 12px;background:var(--surface);border-bottom:1px solid var(--pa-trait)}
.pa-vue-titre{flex:1;min-width:0;font-size:17px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pa-bascule{display:inline-flex;padding:2px;border:1px solid var(--pa-trait);border-radius:10px;background:var(--surface)}
.pa-bascule button{height:30px;padding:0 12px;border:0;border-radius:var(--radius-sm);background:none;color:var(--muted);font:500 14px var(--font-sans,system-ui);cursor:pointer}
.pa-bascule button.on{background:var(--surface-hover);color:var(--fg)}
.pa-vue-zone{flex:1;min-height:0;display:flex;padding:28px 48px;justify-content:center;align-items:flex-start}
.pa-vue-carte{flex:none;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.14),0 0 0 1px var(--pa-trait);overflow:hidden;margin:auto 0}
.pa-vue-carte .pa-iframe{display:block}

/* ── Appareils : habillage réaliste (09/11/2026, T-059). Pur décor CSS sur la planche (canevas et vue agrandie) : écran aux vraies dimensions,
   cadre, île / trou de caméra, barre d'état et indicateur d'accueil. Aperçu visuel : le moteur reste celui de ce navigateur. */
.pa-habillage{position:relative;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.14),0 0 0 1px var(--pa-trait)}
:is(.pa-planche-corps,.pa-habillage)[data-genre]{--b:14px;border-radius:var(--r);box-shadow:0 0 0 var(--b) #0c0c0e,0 0 0 calc(var(--b) + 2px) #4a4a52,0 40px 70px -26px rgba(0,0,0,.5)}
:is(.pa-planche-corps,.pa-habillage)[data-genre] .pa-iframe{border-radius:var(--r)}
:is(.pa-planche-corps,.pa-habillage)[data-genre]::before,:is(.pa-planche-corps,.pa-habillage)[data-genre]::after{content:"";position:absolute;pointer-events:none}
:is(.pa-planche-corps,.pa-habillage)[data-genre="iphone"]{--r:56px}
:is(.pa-planche-corps,.pa-habillage)[data-genre="iphone"]::before{z-index:4;top:12px;left:50%;width:120px;height:35px;margin-left:-60px;border-radius:20px;background:#000}
:is(.pa-planche-corps,.pa-habillage)[data-genre="iphone"]::after{z-index:3;inset:0;border-radius:var(--r);content:"9:41";padding:21px 0 0 54px;font:600 17px/1 -apple-system,"SF Pro Text",system-ui,sans-serif;color:#fff;mix-blend-mode:difference;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='14' viewBox='0 0 70 14' fill='%23fff'%3E%3Crect y='9' width='3' height='5' rx='1'/%3E%3Crect x='5' y='6' width='3' height='8' rx='1'/%3E%3Crect x='10' y='3' width='3' height='11' rx='1'/%3E%3Crect x='15' width='3' height='14' rx='1'/%3E%3Cpath d='M26 5.5a9 9 0 0 1 12 0l-1.6 1.7a6.6 6.6 0 0 0-8.8 0zM29 9a5 5 0 0 1 6 0l-3 3.2z'/%3E%3Crect x='44' y='1' width='22' height='12' rx='3.5' fill='none' stroke='%23fff' stroke-opacity='.5'/%3E%3Crect x='46' y='3' width='18' height='8' rx='2'/%3E%3Crect x='67' y='5' width='2' height='4' rx='1' fill-opacity='.5'/%3E%3C/svg%3E") no-repeat right 40px top 21px / 70px 14px,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='138' height='5'%3E%3Crect width='138' height='5' rx='2.5' fill='%23fff'/%3E%3C/svg%3E") no-repeat center bottom 9px / 138px 5px}
:is(.pa-planche-corps,.pa-habillage)[data-genre="android"]{--r:42px;--b:12px}
:is(.pa-planche-corps,.pa-habillage)[data-genre="android"]::before{z-index:4;top:14px;left:50%;width:22px;height:22px;margin-left:-11px;border-radius:50%;background:#000;box-shadow:0 0 0 2px #1c1c20}
:is(.pa-planche-corps,.pa-habillage)[data-genre="android"]::after{z-index:3;inset:0;border-radius:var(--r);content:"12:30";padding:17px 0 0 34px;font:500 15px/1 Roboto,system-ui,sans-serif;color:#fff;mix-blend-mode:difference;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='14' viewBox='0 0 70 14' fill='%23fff'%3E%3Crect y='9' width='3' height='5' rx='1'/%3E%3Crect x='5' y='6' width='3' height='8' rx='1'/%3E%3Crect x='10' y='3' width='3' height='11' rx='1'/%3E%3Crect x='15' width='3' height='14' rx='1'/%3E%3Cpath d='M26 5.5a9 9 0 0 1 12 0l-1.6 1.7a6.6 6.6 0 0 0-8.8 0zM29 9a5 5 0 0 1 6 0l-3 3.2z'/%3E%3Crect x='44' y='1' width='22' height='12' rx='3.5' fill='none' stroke='%23fff' stroke-opacity='.5'/%3E%3Crect x='46' y='3' width='18' height='8' rx='2'/%3E%3Crect x='67' y='5' width='2' height='4' rx='1' fill-opacity='.5'/%3E%3C/svg%3E") no-repeat right 30px top 18px / 60px 12px,url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='108' height='4'%3E%3Crect width='108' height='4' rx='2' fill='%23fff'/%3E%3C/svg%3E") no-repeat center bottom 8px / 108px 4px}
:is(.pa-planche-corps,.pa-habillage)[data-genre="iphone-se"]{--r:8px;--b:14px;box-shadow:0 -54px 0 14px #0c0c0e,0 54px 0 14px #0c0c0e,0 -54px 0 16px #4a4a52,0 54px 0 16px #4a4a52,0 0 0 14px #0c0c0e,0 0 0 16px #4a4a52,0 40px 70px -26px rgba(0,0,0,.5)}
:is(.pa-planche-corps,.pa-habillage)[data-genre="iphone-se"]::before{top:-36px;left:50%;width:58px;height:7px;margin-left:-29px;border-radius:4px;background:#2c2c32}
:is(.pa-planche-corps,.pa-habillage)[data-genre="iphone-se"]::after{bottom:-50px;left:50%;width:38px;height:38px;margin-left:-19px;border:2px solid #4a4a52;border-radius:50%}
:is(.pa-planche-corps,.pa-habillage)[data-genre="tablette"]{--r:30px;--b:20px}
:is(.pa-planche-corps,.pa-habillage)[data-genre="tablette"]::before{top:-12px;left:50%;width:7px;height:7px;margin-left:-3px;border-radius:50%;background:#26262c}
:is(.pa-planche-corps,.pa-habillage)[data-genre="tablette"]::after{z-index:3;inset:0;border-radius:var(--r);mix-blend-mode:difference;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='150' height='5'%3E%3Crect width='150' height='5' rx='2.5' fill='%23fff'/%3E%3C/svg%3E") no-repeat center bottom 8px / 150px 5px}
:is(.pa-planche-corps,.pa-habillage)[data-genre="portable"]{--r:14px;--b:12px}
:is(.pa-planche-corps,.pa-habillage)[data-genre="portable"]::before{top:-8px;left:50%;width:6px;height:6px;margin-left:-3px;border-radius:50%;background:#26262c}
:is(.pa-planche-corps,.pa-habillage)[data-genre="portable"]::after{top:calc(100% + 14px);left:-70px;right:-70px;height:20px;border-radius:2px 2px 22px 22px;background:linear-gradient(#dcdce0,#a8a8ae);box-shadow:inset 0 -2px 0 rgba(0,0,0,.18)}
:is(.pa-planche-corps,.pa-habillage)[data-orient="paysage"][data-genre="iphone"]::before,:is(.pa-planche-corps,.pa-habillage)[data-orient="paysage"][data-genre="android"]::before,
:is(.pa-planche-corps,.pa-habillage)[data-orient="paysage"][data-genre="iphone"]::after,:is(.pa-planche-corps,.pa-habillage)[data-orient="paysage"][data-genre="android"]::after,
:is(.pa-planche-corps,.pa-habillage)[data-orient="paysage"][data-genre="iphone-se"]::before,:is(.pa-planche-corps,.pa-habillage)[data-orient="paysage"][data-genre="iphone-se"]::after{display:none}
:is(.pa-planche-corps,.pa-habillage)[data-orient="paysage"][data-genre="iphone-se"]{box-shadow:0 0 0 14px #0c0c0e,0 0 0 16px #4a4a52,0 40px 70px -26px rgba(0,0,0,.5)}
/* Vue agrandie : barre de test (appareil, pivoter, cadre, doigt, comparer, vérifier), pastille « Aperçu visuel », panneau de vérifications */
.pa-vue{position:relative}
.pa-vue-outils{display:flex;align-items:center;gap:4px;flex:none;padding:6px 12px;background:var(--surface);border-bottom:1px solid var(--pa-trait);overflow-x:auto}
.pa-vue-outils>.pa-relatif{flex:none}
.pa-vue-outils .pa-mode{font-size:15px;height:34px}
.pa-vue-outils .pa-seg{height:34px}
.pa-vue-dim{color:var(--pa-doux);font-size:13px;font-variant-numeric:tabular-nums}
.pa-vue-espace{flex:1}
.pa-mode--banc.on{background:var(--surface-hover)}
.pa-mode--banc>span{display:inline!important}
.pa-puce-visuel{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 5px 0 10px;border:1px solid var(--pa-trait);border-radius:999px;background:var(--surface);color:var(--fg);font:500 13px var(--font-sans,system-ui);cursor:pointer;white-space:nowrap}
.pa-puce-visuel>i{width:8px;height:8px;border-radius:50%;background:#e0a100}
.pa-puce-visuel>b{display:grid;place-items:center;width:18px;height:18px;border-radius:50%;background:var(--surface-hover);font-size:11px;font-weight:600;color:var(--muted)}
.pa-info{padding:12px 14px;width:min(340px,80vw);font-size:14px;line-height:1.5;color:var(--fg)}
.pa-info p{margin:8px 0 0;color:var(--muted)}
.pa-vue-zone{gap:24px}
.pa-vue-appareil{margin:auto 0;flex:none;display:flex;flex-direction:column;align-items:center;gap:20px;padding:24px}
.pa-vue-appareil figcaption{font-size:13px;color:var(--muted)}
.pa-vue-boitier{position:relative;flex:none}
.pa-banc{position:absolute;right:16px;bottom:16px;z-index:20;width:min(340px,calc(100% - 32px));max-height:60%;overflow:auto;padding:12px 14px;border:1.5px solid var(--pa-trait);border-radius:18px;background:var(--surface);color:var(--fg);box-shadow:0 18px 50px -14px rgba(0,0,0,.28);animation:fadeIn var(--dur-fast)}
.pa-banc>header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.pa-banc>header b{flex:1;font-size:15px}
.pa-banc ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:7px}
.pa-banc li{display:flex;gap:9px;align-items:flex-start;font-size:13.5px;line-height:1.4}
.pa-banc li>i{flex:none;display:grid;place-items:center;width:18px;height:18px;margin-top:1px;border-radius:50%;font-style:normal;font-size:11px;font-weight:700;color:#fff;background:#1f9d55}
.pa-banc li.ko>i{background:#d9822b}
.pa-banc-erreurs{margin:10px 0 0;padding:8px;max-height:110px;overflow:auto;border-radius:10px;background:var(--surface-hover);font:12px/1.4 ui-monospace,Menlo,monospace;white-space:pre-wrap;word-break:break-word}
.pa-banc-note{margin:10px 0 0;font-size:12px;color:var(--muted)}
@container (max-width:640px){.pa-barre{left:10px;right:10px}.pa-mode:not(.pa-mode--zoom)>span{display:none}.pa-seg[aria-label="Présenter"]{display:none}.pa-capsule{padding:0 5px}.pa-seg{min-width:34px}.pa-seg svg{width:20px;height:20px}.pa-mode{font-size:16px;padding:0 6px 0 8px}.pa-mode--zoom{min-width:70px;padding-left:8px}.pa-sep-v{margin:0 3px}.pa-duo .pa-seg--ico{min-width:34px}}
@media(max-width:768px){
  .pa-panneau{top:10px;margin:0;border-radius:24px 24px 0 0;border-width:0;box-shadow:0 -10px 40px rgba(0,0,0,.25)}
  .pa-tete{padding:0 10px;border-radius:24px 24px 0 0}
  .pa-titre-zone{justify-content:center}
  .pa-titre{font-size:18px;font-weight:500}
  .pa-titre-ico{display:block}
  .pa-partager,.pa-fermer,.art-plein-btn{display:none}
  .pa-partager-mobile,.pa-fermer-mobile{display:grid}
  .pa-barre{top:62px;left:12px;right:12px}
  .pa-capsule{height:46px;padding:0 6px;border-radius:18px}
  .pa-seg{height:36px;min-width:36px}
  /* Bande des boutons Android : l'application déclare gérer le plein écran (viewport-fit=cover, Chrome 135+) ; la barre du bas descend dans cette zone et porte la couleur du thème d'Astra (zone sûre = 0 si le système n'étend pas la page). */
  .pa-pied{border-radius:0;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .pa-code{margin:70px 12px 12px}
  .pa-code--edition{width:calc(100% - 24px)}
  .pa-chargement{inset:60px 0 0}
  /* Visionneuse de document (tout artéfact sauf les maquettes design) : en-tête épuré, page pleine, bouton « Télécharger » flottant. */
  .pa-simple .pa-barre,.pa-simple .pa-pied,.pa-simple .pa-pilule,.pa-simple .pa-titre-ico,.pa-simple .pa-titre-chev{display:none}
  .pa-simple .pa-tete{height:64px}
  .pa-simple .pa-titre{font-size:19px;font-weight:600}
  .pa-simple .pa-zone{background:var(--surface)}
  .pa-simple .pa-scene--mobile{padding:0}
  .pa-simple .pa-chargement{inset:0}
  .pa-simple .pa-code{margin:0;border:0;border-radius:0;padding-bottom:84px}
  .pa-simple .pa-code--edition{width:100%}
  .pa-flottant{position:absolute;left:50%;transform:translateX(-50%);bottom:max(22px,env(safe-area-inset-bottom));z-index:6;display:inline-flex;align-items:center;gap:12px;height:56px;padding:0 28px;border:0;border-radius:22px;background:var(--surface-hover);color:var(--fg);font-size:19px;font-weight:500;box-shadow:0 6px 24px rgba(0,0,0,.18);cursor:pointer}
}
@media(prefers-reduced-motion:reduce){.pa-puce-cours{animation:none}}
@media(max-width:768px){
  /* La barre principale peut prendre plus que --header-h quand ses actions
     passent sur deux lignes. Le panneau doit la recouvrir entièrement : sinon
     elle masque le titre, Copier, Télécharger et Fermer sur téléphone. */
  .art-panel{top:0;width:100%!important;max-width:none;z-index:80}
  .art-head{padding:8px 10px 0}
  .art-head-haut{min-height:44px}
  .art-head-haut .art-act{width:40px;height:40px}
  /* Sur mobile le panneau est déjà pleine largeur : ni plein écran, ni poignée
     de redimensionnement — il n'y a rien à redimensionner. */
  .art-plein-btn,.art-poignee{display:none}
  /* La colonne d'artefacts garde ses icônes, mais pas ses libellés : 184 px
     sur un écran de 360 px mangeraient la moitié du panneau. */
  .art-nav{width:46px}
  .art-nav .art-nav-nom{display:none}
}
/* Fenêtres (refonte du 10/10/2026, maquette validée) : PC = fenêtre centrée sur voile flouté ; téléphone = monte du bas. */
.modal-overlay{position:fixed;inset:0;background:rgba(12,12,14,.42);z-index:280;transition:background-color var(--dur-med);display:flex;align-items:center;justify-content:center;padding:16px;animation:sa-fondu var(--dur-fast) ease-out}
.modal{position:relative;box-sizing:border-box;background:var(--surface);border:none;border-radius:20px;padding:22px 24px 24px;max-width:460px;width:100%;max-height:min(84vh,760px);overflow-y:auto;box-shadow:0 24px 64px -16px rgba(0,0,0,.32),0 0 0 1px color-mix(in srgb,var(--fg) 6%,transparent);animation:modalEntre .2s cubic-bezier(.2,.8,.2,1)}
@keyframes modalEntre{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:none}}
.modal-poignee{display:none}
.modal-tete{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.modal-icone{width:38px;height:38px;flex-shrink:0;border-radius:10px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
.modal-icone svg{width:18px;height:18px}
.modal-danger .modal-icone{background:color-mix(in srgb,var(--danger) 12%,transparent);color:var(--danger)}
.modal-title{flex:1;min-width:0;padding-top:7px;font-size:17px;font-weight:600;letter-spacing:-.01em;line-height:1.35}
.modal:not(.modal-avec-icone) .modal-title{padding-top:5px}
.modal-espace{flex:1}
.modal-fermer{width:32px;height:32px;flex-shrink:0;margin:2px -8px 0 0;border:none;border-radius:var(--radius-sm);background:none;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
@media(hover:hover){.modal-fermer:hover{background:var(--surface-hover);color:var(--fg)}}
.modal-corps{font-size:14px;line-height:1.55;color:var(--fg)}
.modal-avec-icone .modal-corps{padding-left:50px}
.modal-corps .text-sm{font-size:14px;line-height:1.55}
.modal-corps .text-muted,.modal-corps .text-xs{color:var(--muted)}
.modal-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:22px}
.modal-actions .btn{height:40px;padding:0 16px;border-radius:10px;font-size:14px;font-weight:500}
.modal-actions .btn-primary,.modal-actions .btn-danger{font-weight:600}
.modal-actions .btn-secondary{background:var(--surface);border:1px solid var(--border)}
/* Fenêtre d'installation (10/10/2026). */
.modal-installer{max-width:420px;padding:28px 28px 22px;display:flex;flex-direction:column;align-items:center;text-align:center}
.installer-fermer{position:absolute;top:14px;right:14px;margin:0}
.installer-icone{width:64px;height:64px;border-radius:var(--radius-lg);box-shadow:0 8px 20px -8px rgba(0,0,0,.35)}
.installer-icone.petite{width:52px;height:52px;border-radius:13px;box-shadow:none}
.installer-titre{margin:16px 0 6px;font-size:20px;font-weight:600;letter-spacing:-.015em}
.installer-texte{margin:0;max-width:32ch;font-size:14px;line-height:1.5;color:var(--muted)}
.installer-avantages{width:100%;margin:20px 0 22px;display:flex;flex-direction:column;text-align:left;border:1px solid var(--border);border-radius:14px;padding:4px 6px}
.installer-avantage{display:flex;align-items:center;gap:12px;padding:10px 8px}
.installer-avantage+.installer-avantage{border-top:1px solid color-mix(in srgb,var(--border) 70%,transparent)}
.installer-avantage>span:last-child{display:flex;flex-direction:column;font-size:13px;color:var(--muted)}
.installer-avantage b{font-size:14px;font-weight:600;color:var(--fg)}
.installer-avantage-icone{width:32px;height:32px;flex-shrink:0;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent);display:flex;align-items:center;justify-content:center}
.installer-avantage-icone svg{width:16px;height:16px}
.installer-principal{width:100%;height:46px;border:none;border-radius:var(--radius-md);background:var(--accent);color:var(--accent-ink,#fff);font:inherit;font-size:15px;font-weight:600;display:flex;align-items:center;justify-content:center;gap:8px;cursor:pointer}
.installer-principal.sombre{background:var(--fg);color:var(--bg)}
.installer-principal svg{width:17px;height:17px}
.installer-plus-tard{width:100%;height:42px;margin-top:6px;border:none;border-radius:var(--radius-md);background:none;color:var(--muted);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
@media(hover:hover){.installer-plus-tard:hover{color:var(--fg);background:var(--surface-hover)}}
.modal-installer.ios{align-items:stretch;text-align:left}
.installer-tete-ios{display:flex;align-items:center;gap:14px}
.installer-tete-ios .installer-titre{margin:0}
.installer-sous{font-size:14px;color:var(--muted)}
.installer-etapes{margin:20px 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:10px}
.installer-etapes li{display:flex;align-items:center;gap:14px;padding:14px;border:1px solid var(--border);border-radius:14px}
.installer-num{width:26px;height:26px;flex-shrink:0;border-radius:50%;background:var(--fg);color:var(--bg);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.installer-etape-texte{flex:1;font-size:14px;line-height:1.4}
.installer-etape-texte b{font-weight:600}
.installer-etape-icone{width:34px;height:34px;flex-shrink:0;border-radius:var(--radius-sm);background:var(--surface-hover);color:var(--fg);display:flex;align-items:center;justify-content:center}
.installer-etape-icone.partager{color:var(--accent)}
.installer-etape-icone svg{width:17px;height:17px}
@media(max-width:640px){
  .modal-installer{padding:10px 20px calc(24px + env(safe-area-inset-bottom))}
  .modal-installer .installer-fermer{display:none}
  .installer-principal{height:50px;border-radius:14px;font-size:16px}
  .installer-plus-tard{height:46px;font-size:15px}
}
@media(max-width:640px){
  .modal-overlay{align-items:flex-end;padding:0}
  .modal{max-width:none;border-radius:24px 24px 0 0;padding:10px 20px calc(24px + env(safe-area-inset-bottom));max-height:88vh;animation:modalMonte .24s cubic-bezier(.2,.8,.2,1)}
  @keyframes modalMonte{from{transform:translateY(40px);opacity:.6}to{transform:none;opacity:1}}
  .modal-poignee{display:block;position:relative;height:22px;margin:-10px -20px 6px;touch-action:none}
  .modal-poignee::after{content:'';position:absolute;left:50%;top:10px;width:40px;height:5px;margin-left:-20px;border-radius:3px;background:var(--border)}
  .modal{overscroll-behavior:contain}
  .modal-avec-icone .modal-corps{padding-left:0}
  .modal-actions{flex-direction:column-reverse;gap:8px;margin-top:22px}
  .modal-actions .btn{width:100%;height:50px;border-radius:14px;font-size:16px;justify-content:center}
}
.search-bar{position:relative}
.search-bar input{width:100%;padding:10px 14px 10px 38px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:14px;background:var(--surface);transition:border-color var(--dur-base)}
.search-bar input:focus{border-color:var(--fg)}
/* Recherche (10/10/2026) : champ plus grand, contour gris comme partout, pastilles par type. */
.recherche-champ input{height:48px;border-radius:14px;font-size:16px;background:var(--surface-hover)}
.recherche-champ input:focus{border-color:color-mix(in srgb,var(--fg) 25%,var(--border));outline:none}
.recherche-types{margin-top:12px;flex:none;flex-wrap:wrap!important;overflow:visible!important}
.sb-vide-carte{margin:6px 8px 0;padding:16px;border:1px solid var(--border);border-radius:var(--radius-md);display:flex;flex-direction:column;gap:4px;font-size:14px;line-height:1.5;color:var(--muted)}
.sb-vide-carte b{font-size:14px;font-weight:600;color:var(--fg)}
/* Aide (10/10/2026). */
.aide-page{display:flex;flex-direction:column;gap:14px}
.aide-bloc{border:1px solid var(--border);border-radius:var(--radius-lg);padding:4px 0;background:var(--surface)}
.aide-titre{margin:0;padding:12px 18px 6px;font-size:13px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.aide-question+.aide-question{border-top:1px solid color-mix(in srgb,var(--border) 70%,transparent);margin:0 18px;padding:0}
.aide-question:first-of-type{margin:0 18px}
.aide-question button{width:100%;min-height:48px;display:flex;align-items:center;gap:10px;padding:0;border:none;background:none;color:var(--fg);font:inherit;font-size:15px;font-weight:500;text-align:left;cursor:pointer}
.aide-question button span{flex:1}
.aide-question button svg{width:14px;height:14px;color:var(--muted);transition:transform var(--dur-med)}
.aide-question.ouverte button svg{transform:rotate(90deg)}
.aide-question p{margin:0;padding:0 0 14px;font-size:14px;line-height:1.55;color:var(--muted)}
.aide-lien{display:flex;align-items:center;gap:14px;width:100%;padding:14px 18px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
@media(hover:hover){.aide-lien:hover{background:var(--surface-hover)}}
.aide-lien>svg{width:14px;height:14px;color:var(--muted)}
.aide-lien-icone{width:40px;height:40px;flex-shrink:0;border-radius:10px;background:var(--surface-hover);color:var(--fg);display:flex;align-items:center;justify-content:center}
.aide-lien-icone.accent{background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
.aide-lien-icone svg{width:19px;height:19px}
.aide-lien-texte{flex:1;display:flex;flex-direction:column;font-size:13px;color:var(--muted)}
.aide-lien-texte b{font-size:15px;font-weight:600;color:var(--fg)}
.aide-raccourcis{padding-bottom:10px}
.aide-raccourci{display:flex;align-items:center;gap:10px;padding:7px 18px;font-size:14px}
.aide-raccourci>span:first-child{flex:1}
.aide-touches{display:flex;gap:4px}
.aide-touches kbd{padding:2px 7px;border:1px solid var(--border);border-bottom-width:2px;border-radius:6px;background:var(--bg);font-family:inherit;font-size:12px;color:var(--fg)}
.search-bar-icon{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:14px}
.search-results{margin-top:12px}
.search-result{padding:10px 12px;border-radius:var(--radius-sm);cursor:pointer;transition:background var(--dur-fast)}
@media(hover:hover){.search-result:hover{background:var(--surface-hover)}}
.search-result-type{font-size:10px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--accent);margin-bottom:2px}
.search-result-title{font-size:13px;font-weight:500}
.search-result-preview{font-size:12px;color:var(--muted);margin-top:2px}
/* Deuxième refonte (13/09/2026) : la première passe (liseré coloré, lueur
   sous la barre de temps, carte pleine largeur) restait un habillage —
   même charpente qu'un toast Bootstrap, juste repeint. Repris depuis zéro
   sur un principe plus sobre : la pastille épouse son texte au lieu
   d'étirer une carte à largeur fixe, l'anneau de couleur (pas un aplat)
   porte tout le sens sémantique, rien ne clignote ni ne s'illumine. Centré
   en haut — jamais au-dessus du clavier ni du composeur sur mobile,
   contrairement à un angle bas-droite. Pas de barre de décompte : elle
   n'apporte rien qu'un mouvement de plus à l'écran. */
/* Notifications (refonte du 12/10/2026, maquette validée). PC : pile en haut à droite. Téléphone : cartes en haut sur
   toute la largeur, messages courts en bas au-dessus de la saisie. Deux formes : « court » (une ligne, icône, au plus
   une action comme Annuler) et « carte » (titre, texte, boutons ; reste tant qu'on ne la ferme pas si persistante). */
.notif-toast{position:fixed;z-index:300;display:flex;flex-direction:column;gap:10px;pointer-events:none}
.notif-zone-haut{top:max(76px,env(safe-area-inset-top));right:20px;width:380px;max-width:calc(100vw - 24px);align-items:flex-end}
.notif-zone-bas{display:none}
.notif-item{pointer-events:auto;position:relative;overflow:hidden;display:flex;align-items:center;gap:10px;box-sizing:border-box;
  max-width:100%;min-width:0;touch-action:pan-y;background:var(--surface);color:var(--fg);
  box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 7%,transparent),0 14px 34px -12px rgba(0,0,0,.28);
  font-size:14px;line-height:1.4;animation:notifIn .26s cubic-bezier(.2,.8,.2,1)}
.notif-item.court{border-radius:14px;padding:8px 12px 8px 9px;width:max-content}
.notif-item.court:has(.notif-action){padding-right:6px}
.notif-item.carte{width:100%;border-radius:var(--radius-lg);align-items:flex-start;gap:12px;padding:13px 10px 13px 14px}
.notif-item.carte.error{box-shadow:0 0 0 1px color-mix(in srgb,var(--danger) 25%,transparent),0 14px 34px -12px rgba(0,0,0,.28)}
.notif-item.leaving{animation:notifOut .2s cubic-bezier(.4,0,1,1) forwards}
.notif-item.leaving.swiped{animation:none;transition:transform var(--dur-base) ease-out,opacity var(--dur-base) ease-out}
.notif-item.dragging{animation:none;transition:none;cursor:grabbing}
.notif-item.rebounding{animation:none;transition:transform var(--dur-base) ease-out,opacity var(--dur-base) ease-out}
.notif-item.clickable{cursor:pointer}
@media(hover:hover){.notif-item.clickable:hover{background:color-mix(in srgb,var(--fg) 3%,var(--surface))}}
.notif-item.clickable:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
@keyframes notifIn{0%{opacity:0;transform:translateY(-8px) scale(.97)}100%{opacity:1;transform:none}}
@keyframes notifOut{to{opacity:0;transform:translateY(-6px) scale(.98)}}
.notif-ic{flex-shrink:0;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--fg) 7%,transparent);color:var(--fg)}
.notif-ic svg{width:14px;height:14px}
.notif-item.carte .notif-ic{width:34px;height:34px;border-radius:10px}
.notif-item.carte .notif-ic svg{width:17px;height:17px}
.notif-item.success .notif-ic{background:color-mix(in srgb,var(--success) 15%,transparent);color:var(--success)}
.notif-item.info .notif-ic{background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent)}
.notif-item.warn .notif-ic{background:color-mix(in srgb,var(--warn) 15%,transparent);color:var(--warn)}
.notif-item.error .notif-ic{background:color-mix(in srgb,var(--danger) 13%,transparent);color:var(--danger)}
.notif-item .notif-ic.neutre{background:color-mix(in srgb,var(--fg) 7%,transparent);color:var(--fg)}
.notif-ic .notif-rond{width:15px;height:15px;box-sizing:border-box;border-radius:50%;border:2px solid color-mix(in srgb,var(--fg) 15%,transparent);border-top-color:var(--accent);animation:cl-tourne .8s linear infinite}
.notif-msg{min-width:0;font-weight:500;overflow-wrap:anywhere;text-wrap:pretty}
.notif-item.court .notif-msg{max-width:300px}
.notif-corps{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;padding-top:1px}
.notif-titre{display:flex;align-items:baseline;gap:8px;min-width:0}
.notif-titre .notif-msg{font-weight:600;font-size:14px}
.notif-heure{flex-shrink:0;font-size:12px;color:var(--muted)}
.notif-texte{font-size:14px;line-height:1.45;color:var(--muted);overflow-wrap:anywhere}
.notif-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.notif-actions button{height:32px;padding:0 12px;border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);color:var(--fg);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.notif-actions button.principal{border:none;background:var(--fg);color:var(--bg);font-weight:600}
.notif-actions button.accent{border:none;background:var(--accent);color:var(--accent-ink,#fff);font-weight:600}
.notif-sep{width:1px;height:20px;flex-shrink:0;background:var(--border)}
.notif-action{flex-shrink:0;height:32px;padding:0 12px;border:none;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent);font:inherit;font-size:14px;font-weight:600;cursor:pointer}
@media(hover:hover){.notif-action:hover{background:color-mix(in srgb,var(--accent) 16%,transparent)}}
.notif-close{flex-shrink:0;width:28px;height:28px;border-radius:var(--radius-sm);background:none;border:0;padding:0;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.75}
.notif-item.court .notif-close{width:22px;height:22px;opacity:0;transition:opacity var(--dur-med)}
.notif-close:focus-visible{opacity:.7}
@media(hover:hover){.notif-item.court:hover .notif-close{opacity:.7}}
.notif-close svg{width:12px;height:12px;stroke-width:2.4}
@media(hover:hover){.notif-close:hover{opacity:1!important;color:var(--fg);background:color-mix(in srgb,var(--fg) 6%,transparent)}}
.notif-barre{position:absolute;left:0;bottom:0;height:3px;background:var(--accent);border-radius:0 3px 3px 0;transition:width var(--dur-lent)}
.notif-barre.indefinie{width:35%!important;animation:notifBarre 1.3s ease-in-out infinite}
@keyframes notifBarre{0%{left:-35%}100%{left:100%}}
@media(hover:none){.notif-item.court .notif-close{display:none}}
@media(prefers-reduced-motion:reduce){.notif-item,.notif-item.leaving{animation:none}}
@media(max-width:768px){
  .notif-zone-haut{top:max(10px,env(safe-area-inset-top));left:10px;right:10px;width:auto;max-width:none;align-items:stretch}
  .notif-zone-bas{display:flex;left:12px;right:12px;bottom:calc(132px + env(safe-area-inset-bottom));align-items:center}
  .notif-item.carte{border-radius:18px;padding:14px 10px 14px 14px}
  .notif-item.carte .notif-actions button{height:44px;flex:1;border-radius:var(--radius-md);font-size:15px}
  .notif-zone-bas .notif-item.court{border-radius:var(--radius-full);background:#1c1c1e;color:#fff;padding:9px 14px;box-shadow:0 12px 28px -10px rgba(0,0,0,.45)}
  .notif-zone-bas .notif-item.court:has(.notif-action){padding:6px 6px 6px 14px}
  .notif-zone-bas .notif-ic{display:none}
  .notif-zone-bas .notif-action{border-radius:var(--radius-full);background:rgba(255,255,255,.14);color:#8cc4ff}
  .notif-zone-bas .notif-sep{display:none}
}

/* Notifications (refonte du 29/10/2026, maquette validée). PC : pile en bas à droite, pastille sombre pour les confirmations courtes,
   carte à icône pour le reste, fine ligne de temps restant. iOS : bandeau flouté sous l'encoche, confirmation en pastille centrée.
   Android garde la disposition précédente. */
.notif-zone-haut.notif-pc{top:auto;bottom:24px;right:24px;width:372px;align-items:stretch}
/* Ordinateur, conversation ouverte (12/11/2026) : une notification en bas à droite recouvrait le bouton d'envoi pendant 4 s. Elle se pose au-dessus de la barre de saisie. */
@media(min-width:769px){html:has(.chat-view .chat-body:not(.chat-body-empty) .chat-input.pb) .notif-zone-haut.notif-pc{bottom:172px}}
/* Le texte de la conversation s'efface en douceur sous la barre de saisie au lieu d'être coupé net. */
.chat-view .chat-body:not(.chat-body-empty)>.chat-input-wrap{position:relative}
.chat-view .chat-body:not(.chat-body-empty)>.chat-input-wrap::before{content:'';position:absolute;left:0;right:14px;bottom:100%;height:28px;pointer-events:none;
  background:inherit;-webkit-mask-image:linear-gradient(to bottom,transparent,#000);mask-image:linear-gradient(to bottom,transparent,#000)}   /* même fond que la zone de saisie, clair comme sombre */
.notif-pc .notif-item{animation-name:notifInBas}
.notif-pc .notif-item.carte{border-radius:16px;padding:14px;gap:12px;box-shadow:0 0 0 1px var(--border),0 1px 2px rgba(20,20,30,.05),0 12px 32px -10px rgba(20,20,30,.22)}
.notif-pc .notif-item.carte.error{box-shadow:0 0 0 1px color-mix(in srgb,var(--danger) 30%,var(--border)),0 12px 32px -10px color-mix(in srgb,var(--danger) 30%,transparent)}
.notif-pc .notif-item.carte .notif-ic{width:36px;height:36px;border-radius:11px}
.notif-pc .notif-item.carte .notif-ic svg{width:18px;height:18px}
.notif-pc .notif-item.court{align-self:flex-end;border-radius:999px;background:var(--fg);color:var(--bg);padding:9px 16px 9px 10px;box-shadow:0 12px 28px -10px rgba(20,20,30,.4)}
.notif-pc .notif-item.court:has(.notif-action){padding-right:8px}
.notif-pc .notif-item.court .notif-ic{width:22px;height:22px;background:var(--success);color:#fff}
.notif-pc .notif-item.court.error .notif-ic{background:var(--danger)}
.notif-pc .notif-item.court.warn .notif-ic{background:var(--warn);color:#17171c}
.notif-pc .notif-item.court.info .notif-ic{background:var(--accent);color:var(--accent-ink,#fff)}
.notif-pc .notif-item.court .notif-ic svg{width:12px;height:12px}
.notif-pc .notif-item.court .notif-msg{font-size:13px}
.notif-pc .notif-item.court .notif-action{background:color-mix(in srgb,var(--bg) 16%,transparent);color:var(--bg)}
.notif-pc .notif-item.court .notif-sep{background:color-mix(in srgb,var(--bg) 25%,transparent)}
.notif-pc .notif-item.court .notif-close{color:var(--bg)}
.notif-minuteur{position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--success);opacity:.55;transform-origin:left;animation:notifMinuteur linear forwards}
.notif-item.error .notif-minuteur{background:var(--danger)}
.notif-item.warn .notif-minuteur{background:var(--warn)}
.notif-item.info .notif-minuteur{background:var(--accent)}
.notif-item:hover .notif-minuteur{animation-play-state:paused}
@keyframes notifMinuteur{from{transform:scaleX(1)}to{transform:scaleX(0)}}
@keyframes notifInBas{0%{opacity:0;transform:translateY(14px) scale(.97)}100%{opacity:1;transform:none}}
@keyframes notifInIos{0%{opacity:0;transform:translateY(-60%) scale(.96)}100%{opacity:1;transform:none}}
@keyframes notifInCapsule{0%{opacity:0;transform:translateY(-40%) scale(.8)}100%{opacity:1;transform:none}}
@media(max-width:768px){
  .notif-zone-haut.notif-ios{top:calc(env(safe-area-inset-top) + 6px);left:10px;right:10px;width:auto;max-width:none;align-items:stretch}
  .notif-ios .notif-item{animation-name:notifInIos;animation-duration:.34s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}
  .notif-ios .notif-item.carte{border-radius:26px;padding:14px 14px 18px;gap:12px;background:color-mix(in srgb,var(--surface) 88%,transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 8%,transparent),0 18px 40px -14px rgba(20,20,30,.35)}
  .notif-ios .notif-item.carte .notif-ic{width:40px;height:40px;border-radius:12px}
  .notif-ios .notif-item.carte .notif-titre .notif-msg{font-size:15px}
  .notif-ios .notif-item.carte .notif-texte{font-size:14px}
  .notif-ios .notif-item.carte .notif-actions button{height:44px;flex:1;border-radius:14px;font-size:15px}
  .notif-ios .notif-item.carte::after{content:"";position:absolute;left:50%;bottom:6px;width:36px;height:4px;margin-left:-18px;border-radius:2px;background:color-mix(in srgb,var(--fg) 22%,transparent)}
  .notif-ios .notif-item.court{align-self:center;width:max-content;max-width:calc(100% - 24px);height:48px;border-radius:24px;background:#17171c;color:#fff;padding:0 18px 0 12px;animation-name:notifInCapsule;box-shadow:0 14px 30px -10px rgba(20,20,30,.5)}
  .notif-ios .notif-item.court:has(.notif-action){padding-right:6px}
  .notif-ios .notif-item.court .notif-ic{width:26px;height:26px;background:#2a9d68;color:#fff}
  .notif-ios .notif-item.court.error .notif-ic{background:var(--danger)}
  .notif-ios .notif-item.court.warn .notif-ic{background:var(--warn);color:#17171c}
  .notif-ios .notif-item.court.info .notif-ic{background:var(--accent);color:var(--accent-ink,#fff)}
  .notif-ios .notif-item.court .notif-msg{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .notif-ios .notif-item.court .notif-action{border-radius:var(--radius-full);background:rgba(255,255,255,.14);color:#8cc4ff}
  .notif-ios .notif-item.court .notif-sep{display:none}
}
@media(prefers-reduced-motion:reduce){.notif-minuteur{animation:none;transform:none}.notif-pc .notif-item,.notif-ios .notif-item{animation:none}}
/* La rangée d'onglets débordait sans aucun moyen de défiler : sur téléphone,
   les derniers onglets des paramètres — dont « Abonnement » — étaient
   inatteignables, pas seulement coupés. Elle glisse désormais à l'horizontale. */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--border);margin-bottom:16px;flex-shrink:0;
  overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;
  scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain}
.tabs::-webkit-scrollbar{display:none}
/* Fondu du côté où du contenu reste caché. Les classes sont posées par
   useScrollFade d'après la position réelle du défilement : sans ce repère, rien
   n'indique qu'il y a d'autres onglets et le geste ne vient pas à l'esprit. */
.tabs.fade-r{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent 100%);mask-image:linear-gradient(to right,#000 calc(100% - 36px),transparent 100%)}
.tabs.fade-l{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 36px);mask-image:linear-gradient(to right,transparent 0,#000 36px)}
.tabs.fade-lr{-webkit-mask-image:linear-gradient(to right,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%);mask-image:linear-gradient(to right,transparent 0,#000 36px,#000 calc(100% - 36px),transparent 100%)}
/* Sans flex:0 0 auto, flex comprime les onglets pour les faire tenir : on
   obtient six libellés illisibles au lieu d'une rangée qui défile. */
.tab{flex:0 0 auto;white-space:nowrap;padding:8px 14px;font-size:13px;font-weight:500;letter-spacing:.01em;color:var(--muted);border-bottom:2px solid transparent;transition:color var(--dur-med),border-color var(--dur-med);cursor:pointer}
@media(hover:hover){.tab:hover{color:var(--fg)}}
.tab.active{color:var(--fg);border-bottom-color:var(--fg)}
.upload-zone{border:2px dashed var(--border);border-radius:var(--radius-md);padding:32px;text-align:center;cursor:pointer;transition:border-color var(--dur-med),background var(--dur-med)}
@media(hover:hover){.upload-zone:hover{border-color:var(--accent);background:var(--surface-hover)}}
.upload-zone-icon{font-size:32px;margin-bottom:8px;color:var(--muted)}
.upload-zone-text{font-size:13px;color:var(--muted)}
.upload-zone-types{font-size:11px;color:var(--muted);margin-top:4px}
/* Colonne de page centree : sans margin auto, Parametres, Compte, Aide,
   Outils et Recherche restaient collees a gauche avec un grand vide a droite
   sur ecran large. 760px = la largeur deja utilisee par la colonne de chat. */
.page-col{width:100%;max-width:760px;margin-left:auto;margin-right:auto}
/* 792 = 760 + 2x16 de padding : les onglets s'alignent pile sur le bord
   gauche des cartes de la colonne. */
@media(min-width:769px){.tabs.page-col{max-width:792px}}
.settings-section{margin-bottom:20px}
.settings-section-title{font-size:14px;font-weight:600;letter-spacing:-.01em;margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--border)}
.settings-row{display:flex;align-items:center;justify-content:space-between;padding:8px 0;min-height:40px}
.settings-row-label{font-size:13px;font-weight:500}
.settings-row-desc{font-size:11px;color:var(--muted);margin-top:2px}
.accent-row{display:flex;flex-wrap:wrap;gap:8px}
.accent-dot{width:26px;height:26px;border-radius:50%;flex-shrink:0;box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);outline:2px solid transparent;outline-offset:2px;transition:outline-color var(--dur-med),transform var(--dur-fast)}
@media(hover:hover){.accent-dot:hover{transform:scale(1.08)}}
.accent-dot.selected{outline-color:var(--fg)}
@media(max-width:520px){.settings-row{flex-direction:column;align-items:flex-start;gap:8px}}
/* Recharge de capacité : sélection façon relevé — un point plein plutôt
   qu'un dégradé ou une pastille lumineuse (voir brand-spec.md, « zéro
   cliché IA »). Même technique que .category-option-dot : une bordure
   épaisse simule le remplissage sans nouvel élément. */
.recharge-option{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border);cursor:pointer}
.recharge-option:last-child{border-bottom:none}
.recharge-option-left{display:flex;align-items:center;gap:10px;min-width:0}
.recharge-dot{flex-shrink:0;width:16px;height:16px;border-radius:50%;border:1.5px solid var(--border);transition:border-color var(--dur-fast)}
.recharge-option.selected .recharge-dot{border:5px solid var(--accent)}
.recharge-option-name{font-size:13px;font-weight:500}
.recharge-option-detail{font-size:11px;color:var(--muted);margin-top:1px}
.recharge-option-price{font-family:var(--font-mono);font-size:13px;font-weight:600;flex-shrink:0;font-variant-numeric:tabular-nums}
.recharge-total{display:flex;align-items:baseline;justify-content:space-between;padding:12px 0;border-top:1px solid var(--border);margin-top:2px}
.recharge-total-value{font-family:var(--font-mono);font-size:16px;font-weight:700}
.settings-row select{padding:5px 24px 5px 10px;border:1px solid var(--border);border-radius:6px;font-size:12px;background:var(--surface);appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 8px center}
/* Deux lignes, pas une seule : le libellé et la justification se disputaient la
   largeur, et sur mobile la chaîne de scores écrasait tout. */
.model-row{display:flex;flex-direction:column;gap:3px;padding:10px 0;font-size:12px}
.model-row:not(:last-child){border-bottom:1px solid var(--border)}
.model-row-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.model-row-name{font-weight:500;min-width:0}
.model-row-state{font-weight:500;flex-shrink:0}
/* overflow-wrap : « spécialisation=0.88 » est un seul mot pour le navigateur et
   débordait de la carte sur écran étroit. */
.model-row-reason{font-size:11px;color:var(--muted);line-height:1.45;overflow-wrap:anywhere}
/* Sélecteur manuel par fournisseur (remplace le <select> plat) : une rangée
   de fournisseurs, celui qu'on ouvre déplie sa liste de modèles juste en
   dessous. Reste dans la carte des réglages, pas de fenêtre par-dessus. */
.provider-grid{display:flex;flex-wrap:wrap;gap:7px;max-width:100%}
.provider-chip{display:flex;align-items:center;gap:7px;padding:5px 10px 5px 5px;border-radius:var(--radius-full);border:1px solid var(--border);background:var(--surface);cursor:pointer;font-size:12px;font-weight:500;color:var(--fg);font-family:inherit;white-space:nowrap;max-width:100%;transition:border-color var(--dur-fast),background var(--dur-fast)}
@media(hover:hover){.provider-chip:hover{background:var(--surface-hover)}}
.provider-chip.on{border-color:var(--fg)}
.provider-chip.chosen{border-color:var(--accent);background:color-mix(in oklch,var(--accent) 10%,var(--surface))}
.provider-chip-auto{padding:5px 12px;border-radius:var(--radius-full);border:1px dashed var(--border);background:transparent;cursor:pointer;font-size:12px;font-weight:500;color:var(--muted);font-family:inherit;white-space:nowrap;transition:border-color var(--dur-fast),color var(--dur-fast)}
/* Sous ~380px (petits téléphones), même un libellé fournisseur seul —
   "Flux (Black Forest Labs)" — peut dépasser la largeur utile de la carte.
   Le `white-space:nowrap` reste la règle par défaut (jolies pilules sur
   desktop et mobile normal) ; ce point de rupture le lève juste assez tôt
   pour qu'un mot long passe à la ligne DANS la pastille plutôt que de faire
   déborder toute la page horizontalement — .view-container n'a pas de
   `overflow-x:hidden`, un débordement ici serait un scroll latéral visible. */
@media(max-width:380px){
  .provider-chip{white-space:normal;text-align:left}
}
@media(hover:hover){.provider-chip-auto:hover{color:var(--fg);border-color:var(--muted)}}
.provider-chip-auto.chosen{border-style:solid;border-color:var(--accent);color:var(--fg)}
.provider-avatar{width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px;font-weight:700;color:#fff;flex-shrink:0}
.provider-check{color:var(--accent);font-weight:700}
/* Chevron indépendant de la couleur « choisi » : sans lui, rouvrir le
   fournisseur déjà épinglé (bordure accent dans les deux états) ne montrait
   plus lequel des deux — déplié ou juste sélectionné — était actif. */
.provider-caret{width:9px;height:9px;stroke:var(--muted);flex-shrink:0;transition:transform var(--dur-med)}
.provider-chip.on .provider-caret{transform:rotate(180deg);stroke:var(--fg)}
.provider-models{display:flex;flex-direction:column;gap:2px;margin-top:8px;padding:6px;background:var(--surface-hover);border-radius:var(--radius-sm);animation:fadeIn var(--dur-med)}
.provider-model-row{display:flex;align-items:center;justify-content:center;gap:12px;padding:8px 9px;border-radius:6px;cursor:pointer;font-size:13px;background:transparent;border:none;text-align:left;color:var(--fg);font-family:inherit;width:100%}
.provider-model-row.avec-meta{justify-content:space-between}
@media(hover:hover){.provider-model-row:hover{background:var(--surface)}}
.provider-model-row.chosen{background:var(--surface);box-shadow:inset 0 0 0 1px var(--accent)}
.provider-model-name{font-weight:500;min-width:0;overflow-wrap:anywhere}
.provider-model-meta{font-size:11px;color:var(--muted);flex-shrink:0;white-space:nowrap}
/* Carte « Modèles premium » : même pastille fournisseur que le sélecteur
   manuel, mais rien n'y est cliquable — la vente attend le paiement. */
.premium-card{border-color:color-mix(in oklch,var(--accent) 30%,var(--border))}
.premium-row{display:flex;align-items:center;gap:12px;padding:9px 0}
.premium-row:not(:last-child){border-bottom:1px solid var(--border)}
/* Sélecteur manuel verrouillé (Free/Plus) : la fonctionnalité reste visible
   et compréhensible — verrou, avantage court, bouton — sans dupliquer tout
   l'attirail (fournisseurs, catégories) qu'un compte qui ne peut pas s'en
   servir n'a pas besoin de voir. Discret plutôt qu'un plein écran de vente :
   une carte parmi d'autres, pas une interruption.
   Retravaillée (18/09/2026) pour être plus engageante pour un compte
   gratuit : fond légèrement teinté accent (pas juste une carte grise comme
   les autres), verrou coloré au lieu de terne, bouton avec flèche. Reste
   sobre — un dégradé discret, pas une bannière criarde. */
.model-picker-locked{background:linear-gradient(160deg,color-mix(in oklch,var(--accent) 5%,var(--surface)),var(--surface) 65%);border-color:color-mix(in oklch,var(--accent) 22%,var(--border))}
.model-picker-locked .settings-section-title{display:flex;align-items:center;gap:8px;font-size:15px}
.model-picker-locked .settings-section-title::before{content:'';width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0}
.model-picker-locked-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
/* Carte fusionnée Free/Plus (04/09/2026) : une rangée par chose débloquée,
   même gabarit que .premium-row pour que sélecteur manuel et modèles premium
   se lisent comme deux entrées d'une même liste, pas deux blocs disparates. */
.unlock-row{display:flex;align-items:center;gap:12px;padding:11px 0;flex-wrap:wrap}
.unlock-row:not(:last-of-type){border-bottom:1px solid color-mix(in oklch,var(--accent) 8%,var(--border))}
.unlock-row-icon{width:34px;height:34px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--surface-hover);color:var(--muted)}
.unlock-row-icon svg{width:15px;height:15px}
/* Seule la rangée « fonctionnalité » (pas les modèles premium en dessous,
   qui gardent leur pastille fournisseur) porte le verrou accent — c'est
   elle, pas la liste de modèles, qui vend concrètement l'abonnement. */
.model-picker-locked>.unlock-row:first-of-type .unlock-row-icon{background:color-mix(in oklch,var(--accent) 14%,transparent);color:var(--accent)}
.model-picker-locked .btn-primary{gap:6px}
.model-picker-locked .btn-primary svg{width:14px;height:14px}
@media(max-width:480px){.unlock-row .btn{width:100%;justify-content:center}}
/* Réglage « Animations » : il était enregistré et lu par lui-même, sans
   qu'aucune règle ne s'y rattache — le désactiver ne changeait rien. La classe
   est posée par theme-accent.js avant le premier rendu.
   La media query fait le même travail pour qui a demandé moins d'animations au
   niveau du système : ce choix-là n'a pas à être répété dans l'application. */
.sans-anim *, .sans-anim *::before, .sans-anim *::after,
.sans-anim { animation-duration:.001ms !important; animation-iteration-count:1 !important;
  transition-duration:.001ms !important; scroll-behavior:auto !important }
@media(prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms !important;animation-iteration-count:1 !important;
    transition-duration:.001ms !important;scroll-behavior:auto !important}
}
@media(min-width:769px){.top-bar .hamburger{display:flex}}
@media(max-width:768px){
  .sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform var(--dur-lent) var(--ease-out);touch-action:pan-y}
  .sidebar.open{transform:translateX(0);will-change:transform}
  .sidebar-logo{justify-content:space-between}
  .sidebar-overlay{display:block;position:fixed;inset:0;background:rgba(0,0,0,.3);z-index:99;opacity:0;pointer-events:none;transition:opacity var(--dur-lent) ease-out;touch-action:pan-y}
  .sidebar-overlay.visible{opacity:1;pointer-events:auto}
  .top-bar .hamburger{display:flex}
  .grid-2{grid-template-columns:1fr}.grid-3{grid-template-columns:1fr}.grid-4{grid-template-columns:repeat(2,1fr)}
  .chat-msg-container{padding:0 16px}.chat-input-wrap{padding:0 12px 16px}
}

/* Refonte visuelle du 17/09/2026. Sauvegarde : sauvegardes/design-20260917. */
:root{--sidebar-w:248px;--header-h:64px}
.sidebar{background:var(--bg)}
.sidebar-logo,.sidebar-logo a{padding:20px 18px 16px;font-size:22px}
.sidebar-logo a{padding:0}
.sidebar-nav{display:flex;flex-direction:column;padding:4px 12px 12px}
.nav-section{padding:20px 12px 8px;font-size:11px;letter-spacing:.06em}
.nav-section:first-child{padding-top:10px}
.nav-section-secondary{margin-top:auto;padding-top:28px}
.nav-item{min-height:44px;border-radius:10px;padding:10px 12px;font-size:14px;gap:12px}
.nav-item.active{background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--fg);font-weight:600}
.nav-item.active>svg{color:var(--accent)}
.sidebar-footer{padding:16px;gap:14px}
.top-bar{padding:10px 28px;background:var(--bg);border-bottom-color:color-mix(in srgb,var(--border) 65%,transparent)}
.top-bar-title{font-size:17px}
.btn{min-height:40px;padding:9px 15px;letter-spacing:0;font-size:14px;border-radius:10px}
.btn-sm{min-height:36px;padding:7px 12px;font-size:13px}
.btn-icon{width:38px;height:38px;flex-shrink:0;border-radius:10px}
.card{border-radius:var(--radius-lg);padding:22px;box-shadow:none}
@media(hover:hover){.card:hover{box-shadow:none}}
.text-sm{font-size:14px}.text-xs{font-size:13px;line-height:1.6}
.input{padding:11px 13px;font-size:14px;border-radius:10px;min-height:44px}
.input:focus{border-color:var(--fg)}
.page-col{max-width:900px}
.view-container.p-24{padding:32px}
.projects-page,.library-page,.conversations-page{padding-inline:max(28px,calc((100% - 1040px)/2))!important}
.memory-page{padding-inline:max(28px,calc((100% - 860px)/2))!important}
.account-page .page-col{max-width:860px}
.account-page .card>.fw-600{font-size:18px;margin-bottom:20px}
.account-page .card .flex-row{gap:14px;flex-wrap:wrap}
.account-page .card .flex-row>span{overflow-wrap:anywhere;min-width:0}
.account-page .card .flex-col>.flex-row{padding:8px 0}
.account-page .card .flex-col>.btn{align-self:flex-start}
.empty-state{max-width:580px;margin:clamp(32px,8vh,90px) auto;padding:36px 24px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:18px}
.empty-state-icon{width:64px;height:64px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--border);border-radius:20px;color:var(--accent)}
.empty-state-icon svg{width:28px;height:28px}
.empty-state h2{font-size:var(--text-xl);letter-spacing:-.02em;font-weight:600;line-height:1.2}
.empty-state p{font-size:var(--text-base);color:var(--muted);line-height:1.6;max-width:42ch}
.memory-empty{display:flex;align-items:center;gap:16px;color:var(--muted);padding:8px 0;font-size:14px}
.memory-empty svg{flex-shrink:0;color:var(--accent);width:24px;height:24px}
.memory-section{margin-bottom:32px}
.memory-section-title{font-size:18px;margin-bottom:12px}
.lib-filtres{flex-wrap:wrap!important;overflow:visible!important;mask-image:none!important;-webkit-mask-image:none!important;padding:4px 0 12px;gap:8px}
.lib-filtres .btn-secondary{background:transparent;border-color:transparent;color:var(--muted)}
.lib-filtres .btn-primary{background:var(--surface);color:var(--fg);border:1px solid var(--border)}
.project-card{padding:24px;cursor:pointer}
@media(hover:hover){.project-card:hover,.lib-row:hover{border-color:color-mix(in srgb,var(--accent) 35%,var(--border))}}
.projects-page>.card>.flex-row{flex-wrap:wrap}
.projects-page>.card>.flex-row>.input{min-width:180px}
/* Un titre lisible, un seul point d'entrée pour les actions secondaires. */
.conv-row{position:relative;align-items:flex-start;margin-bottom:4px}
.conv-open{flex:1;min-width:0;text-align:left;padding:6px 0;align-self:stretch}
.conv-open>.flex-row{align-items:flex-start;flex-wrap:wrap}
.conv-open .truncate{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.5;font-size:15px!important}
.conv-menu{position:relative;flex-shrink:0}
.conv-menu>summary{list-style:none;cursor:pointer;width:40px;height:40px;display:grid;place-items:center;letter-spacing:2px;border-radius:10px;color:var(--muted)}
.conv-menu>summary::-webkit-details-marker{display:none}
.conv-menu[open]>summary{background:var(--surface-hover);color:var(--fg)}
@media(hover:hover){.conv-menu>summary:hover{background:var(--surface-hover);color:var(--fg)}}
.conv-menu>summary:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
.conv-row .conv-actions{opacity:1;position:absolute;right:0;top:46px;z-index:80;width:208px;padding:6px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-md);box-shadow:var(--shadow-lg);display:flex;flex-direction:column;gap:2px}
.conv-actions .btn-icon{width:100%;min-height:42px;height:auto;justify-content:flex-start;gap:12px;padding:10px;font-size:14px;border-radius:var(--radius-sm)}
.conv-actions .btn-icon svg{width:17px;height:17px;flex-shrink:0}
.conv-actions .btn-icon[aria-pressed=true]{background:var(--surface-hover);color:var(--accent)}
.conv-actions .conv-delete{color:var(--danger)}
.conversations-page:has(.conv-menu[open]){padding-bottom:290px}
/* Lecture et saisie : même composition dans Chat et Code. */
.chat-messages{padding:32px 0}
.chat-msg-container,.chat-input-inner{max-width:800px}
.msg{padding:18px 0}
.msg-role{font-size:13px;margin-bottom:10px}
.msg-content{font-size:15px;line-height:1.8}
.chat-input-wrap{padding:12px 28px 24px}
.chat-input{flex-wrap:wrap;padding:14px 16px 10px;gap:8px;border-radius:22px;box-shadow:0 4px 24px rgba(0,0,0,.035)}
.chat-input textarea{flex:1 0 100%;width:100%;min-width:0;font-size:16px;padding:4px 0;min-height:40px;max-height:180px}
.chat-composer-tools{width:100%;justify-content:flex-end;gap:8px}
.chat-composer-actions{gap:8px}
.category-trigger{width:38px;height:38px;border-radius:var(--radius-md)}
.send-btn{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink);flex-shrink:0}
.send-btn:disabled{opacity:var(--inactif);cursor:default}
.welcome-block{text-align:center;padding:24px 0 8px}
.welcome-block>div:first-child{font-size:40px!important;line-height:1.15;margin-bottom:16px!important}
.welcome-suggestions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:600px;margin:0 auto}
.welcome-suggestions .tag{padding:11px 15px;font-size:13px!important;font-weight:400;background:var(--surface);border-radius:var(--radius-md);min-height:42px}
@media(hover:hover){.welcome-suggestions .tag:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 4%,var(--surface))}}
.chat-view-empty{overflow-y:auto}
.chat-view-empty>.chat-messages{flex:0 0 auto;overflow:visible;padding-top:clamp(32px,12vh,130px);padding-bottom:16px}
.chat-view-empty>.chat-input-wrap{padding-top:10px}
.chat-view-empty .chat-input-inner{max-width:720px}
.chat-view-empty .code-mode-wrap>div{max-width:720px!important}
/* Alignée avec le texte du champ juste en dessous (.chat-input-wrap a 24px
   de marge + .chat-input 14px de padding interne = 38px) — sinon « Mode
   performance » flotte plus à gauche que le champ de saisie, sur PC comme
   sur mobile (voir la même correction dans le bloc @media 768px). */
.code-mode-wrap{padding:8px 24px 0!important}
.code-mode-wrap>div{max-width:760px!important}
/* Paramètres : navigation de section, puis contenu, sans ruban tronqué. */
.settings-view{height:100%;min-height:0;display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
.settings-view>.top-bar{grid-column:1/-1}
.settings-nav{padding:24px 16px;overflow-y:auto;border-right:1px solid var(--border)}
.settings-nav-group+.settings-nav-group{margin-top:26px}
.settings-nav-label{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:0 12px 8px;font-weight:600}
.settings-nav button{display:flex;align-items:center;justify-content:space-between;width:100%;text-align:left;padding:11px 12px;border-radius:10px;font-size:14px;min-height:44px;margin:2px 0;gap:8px}
.settings-nav button>span{color:var(--muted)}
@media(hover:hover){.settings-nav button:hover{background:var(--surface-hover)}}
.settings-nav button.selected{background:color-mix(in srgb,var(--accent) 9%,var(--surface));font-weight:600;color:var(--fg)}
.settings-mobile-select{display:none}
.settings-view .page-col{max-width:820px;width:100%}
.settings-section-title{font-size:18px;line-height:1.4;padding-bottom:16px;margin-bottom:8px;border-bottom:none}
.settings-row{padding:18px 0;gap:24px;border-bottom:1px solid color-mix(in srgb,var(--border) 65%,transparent)}
.settings-row:last-child{border-bottom:none;padding-bottom:4px}
.settings-row-label{font-size:14px;font-weight:500}
.settings-row-desc{font-size:13px;line-height:1.6;max-width:44ch;margin-top:4px}
.settings-row>div:first-child{min-width:0;flex:1}
.settings-row select{font-size:14px;min-height:40px;max-width:100%;padding:9px 32px 9px 12px;border-radius:var(--radius-sm)}
.settings-row input[type=checkbox]{width:20px;height:20px;accent-color:var(--accent);flex-shrink:0}
.accent-row{max-width:260px;gap:12px}
.accent-dot{width:30px;height:30px}
.settings-view .card .card{padding:16px;border-radius:var(--radius-md)}
.settings-view .card .card .flex-row{flex-wrap:wrap}
@media(max-width:1100px){.settings-view{grid-template-columns:180px minmax(0,1fr)}.settings-view>.view-container{padding:24px}.settings-row{flex-wrap:wrap}.settings-row>div:first-child{flex-basis:100%}}
@media(max-width:768px){
  :root{--header-h:60px}
  .sidebar{width:min(296px,86vw);min-width:0}
  .top-bar{padding:9px 16px;gap:8px}
  .top-bar-title{font-size:16px}
  .view-container.p-24{padding:22px 18px}
  .projects-page,.library-page,.conversations-page,.memory-page{padding-inline:18px!important}
  .card{padding:20px;border-radius:var(--radius-lg)}
  .empty-state{margin:30px auto;padding:24px 8px}
  .empty-state h2{font-size:24px}
  .lib-filtres{gap:6px}
  .lib-filtres .btn{min-height:38px}
  .chat-msg-container{padding:0 20px}
  .chat-input-wrap{padding:10px 12px max(14px,env(safe-area-inset-bottom))}
  .chat-input{border-radius:18px;padding:12px 14px 10px}
  .chat-input textarea{font-size:16px;min-height:42px}
  .chat-composer-tools .btn-icon,.category-trigger,.send-btn{width:40px;height:40px}
  .welcome-block>div:first-child{font-size:32px!important}
  .welcome-block>div:nth-child(2){font-size:15px!important;margin-bottom:24px!important}
  .welcome-suggestions{gap:8px}
  .welcome-suggestions .tag{font-size:13px!important;padding:10px 12px}
  .chat-view-empty>.chat-messages{padding-top:clamp(20px,6vh,60px);padding-bottom:8px}
  /* Alignée avec le texte du champ juste en dessous : le composeur a 12px
     de marge + 14px de padding interne (voir .chat-input), donc « Mode
     performance » doit démarrer à 26px pour tomber au même endroit — sinon
     le chip flotte visiblement plus à gauche que le champ de saisie. */
  .code-mode-wrap{padding:8px 12px 0!important}
  .code-mode-wrap .provider-chip{padding-left:14px!important}
  .settings-view{display:flex;flex-direction:column}
  .settings-nav{display:none}
  .settings-mobile-select{display:block;padding:16px 18px 0}
  .settings-mobile-select label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
  .settings-mobile-select select{background-color:var(--surface);font-size:16px;font-weight:500}
  .settings-view>.view-container{padding:20px 18px}
  .settings-row{gap:12px;padding:16px 0;align-items:flex-start;flex-direction:column}
  .settings-row>div:first-child{flex-basis:auto}
  .settings-row select{width:100%;font-size:16px}
  .settings-section-title{font-size:18px}
  .account-page .card .flex-col>.flex-row{align-items:flex-start}
  .account-page .card .flex-col>.flex-row>span:last-child{margin-left:auto;text-align:right}
  .msg-content{font-size:15px}
}
@media(max-height:600px){.chat-view-empty>.chat-messages{padding-top:8px}.welcome-block{padding-top:12px}.chat-view-empty .welcome-suggestions{gap:6px}}


/* Finitions de composition : contenus d'abord, surfaces calmes et repères communs. */
.main-content{background:var(--surface)}
.top-bar{background:var(--surface)}
.sidebar-logo a{gap:0}
.sidebar-logo img{margin-right:10px;border-radius:var(--radius-sm);object-fit:contain}
.sidebar .nav-item.active{background:color-mix(in srgb,var(--accent) 9%,transparent)}
/* ── Barre latérale repliable — composant « Sidebar Nav » de beautifului.dev (licence MIT, voir LICENSES-TIERS.md),
   adapté : ordinateur seulement. Ouverte : les mêmes boutons qu'avant. Repliée : un rail de 4 icônes (Nouvelle
   conversation, Conversations, Code, Paramètres). La surbrillance glisse d'un bouton à l'autre au survol. ── */
:root{--rail-w:44px;--sb-ease:cubic-bezier(.16,1,.3,1)}
.sidebar-inner{width:100%;height:100%;min-height:0;display:flex;flex-direction:column}
.sidebar-head{position:relative;flex:none;display:flex;align-items:center}
.sidebar-head .sidebar-logo{transition:opacity var(--dur-base) ease-out}
.sb-toggle{display:none}
.sidebar-new{padding:0 12px 12px}
.sidebar-new .btn{width:100%;justify-content:center;padding:9px}
.sidebar-glide{position:relative}
.sidebar-glide-highlight{display:none}
.sidebar-upgrade{display:none;flex:none;padding:0 16px 12px}
.sidebar-upgrade button{width:100%;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;gap:6px;background:var(--surface-hover);color:var(--fg);font-size:13px;font-weight:600;transition:background var(--dur-med),transform var(--dur-med)}
@media(hover:hover){.sidebar-upgrade button:hover{background:var(--border)}}
.sidebar-upgrade button:active{transform:scale(.98)}
@media(min-width:769px){
  .sidebar{overflow:hidden;transition:width var(--dur-lent) var(--sb-ease),min-width var(--dur-lent) var(--sb-ease)}
  .sidebar.closed{width:var(--rail-w);min-width:var(--rail-w)}
  .sidebar.settings-sidebar.closed{width:var(--sidebar-w);min-width:var(--sidebar-w)}
  .sidebar-inner{width:var(--sidebar-w);min-width:var(--sidebar-w)}
  .sidebar-upgrade{display:block}
  .sidebar-head{height:60px}
  .sb-toggle{position:absolute;top:50%;margin-top:-18px;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:var(--muted);transition:opacity var(--dur-base) ease-out,background var(--dur-med),color var(--dur-med)}
  .sb-toggle:hover{background:var(--surface-hover);color:var(--fg)}
  .sb-toggle:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
  /* La flèche du bouton de la barre latérale n'apparaît qu'au survol (souris) ; sans souris (tactile), elle reste visible. */
  .sb-toggle .sbg-fleche{opacity:0;transition:opacity var(--dur-med)}
  .sb-toggle:hover .sbg-fleche,.sb-toggle:focus-visible .sbg-fleche{opacity:1}
  @media(hover:none){.sb-toggle .sbg-fleche{opacity:1}}
  .sb-collapse{right:12px}
  .sb-expand{left:15px;opacity:0;pointer-events:none}
  .sidebar.closed .sb-expand{opacity:1;pointer-events:auto}
  .sidebar.closed .sb-collapse,.sidebar.closed .sidebar-head .sidebar-logo{opacity:0;pointer-events:none}
  .sidebar-nav{overflow-x:hidden}
  .nav-item,.nav-section,.sidebar-footer,.sidebar-upgrade{transition:background var(--dur-fast),color var(--dur-fast),width var(--dur-lent) var(--sb-ease),max-height var(--dur-lent) var(--sb-ease),min-height var(--dur-lent) var(--sb-ease),padding var(--dur-lent) var(--sb-ease),margin var(--dur-lent) var(--sb-ease),opacity var(--dur-base) ease-out,visibility 0s linear 0s}
  .nav-item{max-height:48px}
  .nav-section{max-height:70px}
  .sidebar-footer,.sidebar-upgrade{max-height:200px}
  .nav-item>span,.nav-item .badge,.sb-copy{transition:opacity var(--dur-base) ease-out,transform var(--dur-lent) var(--sb-ease),width var(--dur-lent) var(--sb-ease)}
  .sidebar-new .btn{transition:width var(--dur-lent) var(--sb-ease),padding var(--dur-lent) var(--sb-ease),gap var(--dur-lent) var(--sb-ease),background var(--dur-med)}
  /* rail */
  .sidebar.closed .nav-item{width:42px}
  .sidebar.closed .nav-item>span,.sidebar.closed .nav-item .badge,.sidebar.closed .sb-copy{opacity:0;transform:translateX(-8px);pointer-events:none}
  .sidebar.closed .nav-item:not(.rail),.sidebar.closed .nav-section,.sidebar.closed .sidebar-footer,.sidebar.closed .sidebar-upgrade{max-height:0;min-height:0;padding-top:0;padding-bottom:0;margin-top:0;margin-bottom:0;opacity:0;overflow:hidden;pointer-events:none;visibility:hidden;border-width:0;transition-property:background,color,width,max-height,min-height,padding,margin,opacity,visibility;transition-duration:var(--dur-fast),var(--dur-fast),.28s,.28s,.28s,.28s,.28s,.18s,0s;transition-delay:0s,0s,0s,0s,0s,0s,0s,0s,.28s}
  .sidebar.closed .nav-item.rail{padding-inline:12px}
  .sidebar.closed .sidebar-new .btn{width:42px;padding-inline:0;gap:0}
  .sidebar.closed .sidebar-new .btn .sb-copy{width:0;overflow:hidden;white-space:nowrap}
  .sidebar.closed .nav-section-secondary{margin-top:auto}
  .sidebar.closed .nav-section.nav-section-secondary{max-height:0}
  /* surbrillance qui glisse (souris seulement) */
  .sidebar-glide-highlight{display:block;position:absolute;left:12px;right:12px;z-index:0;pointer-events:none;border-radius:10px;background:var(--surface-hover);opacity:0;transition:top var(--dur-base) var(--ease-out),height var(--dur-base) var(--ease-out),opacity var(--dur-med) ease}
  .sidebar.closed .sidebar-glide-highlight{right:auto;width:42px}
  .sidebar-glide .nav-item{position:relative;z-index:1}
  /* Rail à la façon de la maquette : même fond que la page, trait fin à droite, petites icônes au trait fin,
     libellé dans une infobulle sombre au survol. Aucun bouton plein. */
  .sidebar.closed:not(.settings-sidebar){background:var(--surface)}
  .sidebar.closed .sidebar-head{height:46px}
  .sidebar.closed .sb-expand{left:5px;width:34px;height:34px;margin-top:-17px;border-radius:var(--radius-sm)}
  .sidebar.closed .sb-expand svg,.sidebar.closed .nav-item svg,.sidebar.closed .sidebar-new .btn svg{width:19px;height:19px;stroke-width:1.9}
  .sidebar.closed .sidebar-new{padding:3px 5px 3px}
  .sidebar.closed .sidebar-new .btn{width:34px;height:34px;min-height:34px;padding:0;border-radius:var(--radius-sm);background:transparent;border:0;box-shadow:none;color:var(--fg)}
  .sidebar.closed .sidebar-new .btn:hover{background:var(--surface-hover);color:var(--fg)}
  .sidebar.closed .nav-item{width:34px}
  .sidebar.closed .nav-item.rail{height:34px;min-height:34px;padding:0;justify-content:center;margin:0 0 2px 5px;color:var(--fg)}
  .sidebar.closed .nav-item.rail:hover,.sidebar.closed .nav-item.rail.active,.sidebar.closed .sb-expand:hover{color:var(--fg)}
  .sidebar.closed .sb-expand{color:var(--fg)}
  .sidebar.closed .nav-item.rail.active{background:transparent}
  .sidebar.closed .sidebar-glide-highlight{left:5px;width:34px;border-radius:var(--radius-sm)}
  .sidebar.closed .sidebar-footer{padding-inline:5px}
  .sidebar.closed .nav-item.rail>span,.sidebar.closed .nav-item.rail .badge{flex:0 0 0;width:0;min-width:0;margin:0;padding:0;border:0;overflow:hidden}
  .sidebar.closed .nav-item.rail{gap:0}
  .sidebar.closed .sidebar-nav{padding-inline:0}
  .top-bar .hamburger{display:none!important}
  /* Chat sur PC : « Nouvelle conversation » existe déjà à gauche (barre latérale ouverte ou repliée). On ne garde que le thème. */
  .chat-view:not(.code-view) .chat-header-new{display:none}
  /* Le thème est dans le menu de profil : sur PC, le Chat n'a plus de commandes en haut à droite. */
  .chat-view:not(.code-view) .chat-header-controls{display:none}
}
@media(min-width:769px) and (hover:hover){
  .sidebar-glide .nav-item:hover{background:transparent}
  .sidebar-glide .nav-item.active:hover{background:color-mix(in srgb,var(--accent) 10%,var(--surface))}
}
@media(prefers-reduced-motion:reduce){
  .sidebar,.nav-item,.nav-section,.sidebar-footer,.sidebar-upgrade,.sidebar-new .btn,.sb-toggle,.sidebar-glide-highlight,.sidebar-head .sidebar-logo,.nav-item>span,.nav-item .badge,.sb-copy{transition:none!important}
}
.chat-view-empty>.chat-messages{padding-top:clamp(28px,9vh,100px);padding-bottom:0}
.welcome-block{padding:16px 0 22px;max-width:620px;margin:0 auto}
.welcome-block .welcome-emblem{width:48px;height:48px;display:grid;place-items:center;background:color-mix(in srgb,var(--accent) 9%,transparent);color:var(--accent);border-radius:var(--radius-lg);margin:0 auto 22px!important}
.welcome-emblem svg{width:24px;height:24px}
.welcome-block h1{font-size:38px;line-height:1.2;letter-spacing:-.045em;font-weight:600;text-wrap:balance;max-width:580px;margin:0 auto 16px}
.welcome-block .welcome-subtitle{color:var(--muted);font-size:15px;line-height:1.7;margin:0;text-wrap:balance}
.chat-view-empty .chat-input-inner{max-width:680px}
.chat-view-empty .chat-input{min-height:128px;box-shadow:0 8px 32px rgba(0,0,0,.035)}
.starter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;width:calc(100% - 56px);max-width:680px;margin:0 auto 36px;flex-shrink:0}
.starter-card{position:relative;display:flex;flex-direction:column;gap:9px;align-items:flex-start;text-align:left;padding:18px 14px;border:1px solid var(--border);border-radius:14px;background:var(--surface);transition:border-color var(--dur-med),background var(--dur-med)}
@media(hover:hover){.starter-card:hover{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 3%,var(--surface))}}
.starter-icon{display:flex;color:var(--muted);margin-bottom:5px}
.starter-icon svg{width:19px;height:19px}
.starter-card strong{font-size:14px;font-weight:500}
.starter-prompt{font-size:12px;line-height:1.5;color:var(--muted)}
.starter-arrow{position:absolute;right:13px;top:15px;color:var(--muted);opacity:.65}
.code-starters{grid-template-columns:repeat(3,minmax(0,1fr))}
.code-mode-wrap .provider-chip{font-size:13px;min-height:36px;border:none;background:transparent;padding-left:14px}
.chat-view-empty .code-mode-wrap>div{max-width:680px!important}
.code-view.chat-view-empty .welcome-block{padding-bottom:12px}
.theme-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;width:300px;max-width:100%}
.theme-choice{text-align:center;font-size:13px;display:flex;flex-direction:column;gap:8px;align-items:stretch;color:var(--muted);min-width:0}
.theme-preview{height:62px;border:1px solid var(--border);border-radius:10px;display:flex;overflow:hidden;padding:7px;background:#fff;gap:6px;outline:2px solid transparent;outline-offset:3px}
.theme-preview>i{width:24%;background:#eceef1;border-radius:3px}
.theme-preview>span{flex:1;padding:5px 0;display:flex;flex-direction:column;gap:6px}
.theme-preview b{height:4px;background:#e3e6eb;border-radius:2px;width:80%}
.theme-preview b:nth-child(2){width:95%}.theme-preview b:nth-child(3){width:60%}
/* Classe « choix-… » et non « dark » : .dark active le thème sombre de toute l'application et donnait au bouton « Sombre » des couleurs de mode sombre. */
.theme-choice.choix-dark .theme-preview{background:#202126}
.theme-choice.choix-dark .theme-preview>i,.theme-choice.choix-dark .theme-preview b{background:#40434b}
.theme-choice.choix-system .theme-preview{background:linear-gradient(90deg,#fff 50%,#202126 50%)}
.theme-choice.chosen{color:var(--fg);font-weight:600}
.theme-choice.chosen .theme-preview{outline-color:var(--accent)}
.settings-nav{background:var(--surface)}
.settings-view>.view-container{background:var(--bg)}
.feedback-card{margin-top:8px}
.feedback-card>summary{cursor:pointer;font-size:14px;font-weight:500;line-height:1.6}
.feedback-card[open]>summary{margin-bottom:20px}
.feedback-card>summary:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:4px}
.conversation-toolbar{display:flex;flex-direction:column;gap:18px;margin-bottom:24px}
.conversation-toolbar .search-bar{max-width:440px;width:100%;min-height:44px;border-radius:var(--radius-md);background:var(--bg)}
.conversation-filters{display:flex;flex-wrap:wrap;gap:6px}
.conversation-filters .btn{border:1px solid transparent;background:transparent;color:var(--muted)}
.conversation-filters .btn-primary{background:var(--bg);border-color:var(--border);color:var(--fg)}
.conv-row{border-color:color-mix(in srgb,var(--border) 75%,transparent)}
@media(hover:hover){.conv-row:hover{border-color:var(--border);background:var(--bg)}}
/* Ordinateur : liste des conversations en lignes compactes (52 px) dans une colonne centrée de 900 px, comme Mémoire, Recherche et Aide. Sur téléphone, les cartes à deux lignes restent telles quelles. */
@media(min-width:769px){
  .conversations-page{padding-inline:max(28px,calc((100% - 900px)/2))!important}
  .conversations-page .flex-col.gap-8{gap:0}
  .conv-row{height:52px;margin-bottom:0;padding:0 8px 0 12px!important;gap:12px!important;align-items:center;background:transparent;border-width:0 0 1px 0;border-radius:10px;box-shadow:none}
  @media(hover:hover){.conv-row:hover{background:var(--surface-hover)}}
  .conv-open{align-self:center;padding:0;display:flex;align-items:center;gap:16px;height:100%}
  .conv-open>.flex-row{flex:1;min-width:0;flex-wrap:nowrap;align-items:center}
  .conv-open .truncate{display:block;white-space:nowrap;-webkit-line-clamp:unset;font-size:14px!important;min-width:0}
  .conv-open>.text-xs{flex:none;width:96px;margin:0;text-align:right}
}
.field-label{font-size:13px;font-weight:500;margin-top:10px}
.account-intro{display:flex;align-items:center;gap:20px;margin:0 0 14px;padding:4px 0 12px}
.account-avatar{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:color-mix(in srgb,var(--accent) 9%,transparent);color:var(--accent);flex-shrink:0}
.account-avatar svg{width:28px;height:28px}
.account-intro h1{font-size:28px;font-weight:600;letter-spacing:-.03em;line-height:1.3;overflow-wrap:anywhere}
.account-intro p{font-size:14px;line-height:1.7;color:var(--muted);margin-top:6px}
.empty-state-icon{background:color-mix(in srgb,var(--accent) 6%,var(--surface));border-color:color-mix(in srgb,var(--accent) 12%,var(--border))}
@media(max-width:1100px){.theme-choices{width:320px}.starter-grid{gap:10px}.starter-card{padding:16px 12px}}
@media(max-width:768px){
 .welcome-block{padding:16px 4px 20px}
 .welcome-block h1{font-size:29px;max-width:340px;letter-spacing:-.035em;margin-bottom:12px}
 .welcome-block .welcome-subtitle{font-size:14px!important;max-width:320px;margin:auto}
 .welcome-block .welcome-emblem{margin-bottom:18px!important;width:44px;height:44px}
 .chat-view-empty>.chat-messages{padding-top:22px}
 .chat-view-empty .chat-input{min-height:122px}
 .starter-grid{width:calc(100% - 32px);grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:24px}
 .starter-card{padding:14px;gap:6px}
 .starter-icon{margin-bottom:3px}
 .starter-prompt{font-size:12px}
 .code-starters .starter-card:last-child{grid-column:1/-1;flex-direction:row;align-items:center;gap:10px}
 .code-starters .starter-card:last-child .starter-icon{margin-bottom:0}
 .theme-choices{width:100%;gap:12px;padding:4px}
 .theme-preview{height:64px}
 .account-intro{gap:14px;align-items:flex-start}
 .account-avatar{width:48px;height:48px;border-radius:var(--radius-lg)}
 .account-intro h1{font-size:23px}
 .account-intro p{font-size:13px}
 .conversation-toolbar{gap:14px;margin-bottom:20px}
 .conversation-filters{gap:4px}
 .conversation-filters .btn{padding:8px 10px}
}
@media(max-height:600px){.chat-view-empty>.chat-messages{padding-top:8px}.welcome-block .welcome-emblem{display:none}.welcome-block{padding:12px 0}.welcome-block h1{font-size:26px}.starter-grid{margin-bottom:20px}}
/* Chat ET Code : remis à l'habillage d'avant le redesign du 16/09/2026, à
   la demande de l'utilisateur — chrome plus dense, pas de fond distinct
   pour la barre du haut, entrée compacte sur une seule ligne. */
.chat-view .top-bar{padding:7px 16px;background:var(--surface);border-bottom-color:var(--border)}
.chat-view .chat-messages{padding:24px 0}
.chat-view .chat-msg-container,.chat-view .chat-input-inner{max-width:760px}
.chat-view .chat-input-wrap{padding:0 24px 20px}
.chat-view .chat-input{flex-wrap:nowrap;gap:8px;padding:6px 6px 6px 14px;border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}
.chat-view .chat-input textarea{flex:1;width:auto;padding:8px 0;min-height:22px;max-height:120px}
/* La rangée d'outils passait à width:100% pour le layout deux-lignes du
   redesign (textarea seule sur la ligne 1, boutons alignés à droite sur la
   ligne 2). Revenue à une seule ligne (flex-wrap:nowrap ci-dessus), cette
   largeur forcée écrasait le textarea à 0px — plus moyen d'écrire. */
.chat-view .chat-composer-tools{width:auto}
.code-view .composer-add{margin-right:auto}
@media(max-width:768px){
  .chat-view .chat-msg-container{padding:0 16px}
  .chat-view .chat-input-wrap{padding:0 12px 16px}
}
/* Composeur centré au milieu de l'écran tant qu'aucun message n'a été
   envoyé (comme ChatGPT) : le groupe { texte de bienvenue + composeur }
   partage l'espace restant sous la barre du haut et se centre dedans ;
   dès le premier message, retour au comportement normal (composeur fixé
   en bas, messages défilants au-dessus). PC uniquement (min-width:769px) —
   sur mobile, gardé collé en bas comme avant. Légèrement remonté par
   rapport au centre exact (padding-bottom), comme chez ChatGPT. */
.chat-view .chat-body{display:flex;flex-direction:column;flex:1;min-height:0}
@media(min-width:769px){
  .chat-view .chat-body-empty{justify-content:center;padding-bottom:8vh}
  .chat-view .chat-body-empty .chat-messages{flex:0 0 auto;overflow:visible;padding-bottom:0}
  .chat-view .chat-body-empty .chat-input-wrap{padding-top:8px}
}
/* Sur mobile, le logo/texte d'accueil restait collé tout en haut de l'écran
   (juste sous la barre du haut) — poussé plus bas au repos, comme demandé.
   Deux essais précédents ratés :
   1) flex + justify-content:center sur .chat-messages — sans effet visible
      sur un téléphone réel malgré un CSS correct et bien déployé.
   2) marge en dvh + :has(textarea:focus) pour revenir en haut au clavier —
      ÇA, c'était le vrai bug : le champ est auto-focus au chargement (voir
      plus haut, useEffect « ouvre directement le champ ») AVANT même que le
      clavier ne s'affiche, donc :focus était déjà vrai au premier rendu —
      la marge repassait à 0 immédiatement, d'où l'« animation qui remonte »
      alors que le clavier n'était pas encore ouvert.
   Repris avec le bon signal : la hauteur RÉELLE de l'écran, qui ne rétrécit
   QUE quand le clavier s'affiche vraiment (grâce à
   interactive-widget=resizes-content) — indépendant du focus logique. */
@media(max-width:768px){
  .chat-view:not(.code-view) .chat-body-empty .chat-msg-container>div:first-child{margin-top:16dvh;transition:margin-top .5s var(--ease-out)}
}
@media(max-width:768px) and (max-height:550px){
  .chat-view:not(.code-view) .chat-body-empty .chat-msg-container>div:first-child{margin-top:0}
}

/* Sur ordinateur, les rubriques des paramètres remplacent la sidebar principale. */
.main-content:has(.settings-pro){background:var(--surface);padding:0}
.settings-view.settings-pro{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;background:var(--surface);overflow:hidden}
.settings-pro-header{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid var(--border)}
.settings-pro-header h1{font-size:20px;font-weight:600;letter-spacing:-.025em;flex:1}
.settings-pro-header .settings-header-action{width:44px;height:44px;min-width:44px;border-radius:50%;background:var(--surface);border:1px solid var(--border);color:var(--fg);box-shadow:0 2px 8px #0000000a;display:flex;align-items:center;justify-content:center;transition:background var(--dur-med),transform var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.settings-pro-header .settings-header-action:hover{background:var(--surface-hover);box-shadow:0 3px 12px #00000014}}
.settings-pro-header .settings-header-action:active{transform:scale(.94)}
.settings-pro-header .settings-header-action svg{width:22px;height:22px;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.settings-pro-header .settings-header-action:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:3px}
.settings-pro .settings-back{display:none}
.settings-pro>.settings-nav{display:none}
.settings-sidebar-heading{display:flex;align-items:center;gap:12px;min-height:81px;padding:12px 16px;border-bottom:1px solid var(--border);font-size:17px;font-weight:600;letter-spacing:-.02em}
.settings-sidebar-heading .settings-header-action{width:36px;height:36px;min-width:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:var(--fg);background:transparent}
@media(hover:hover){.settings-sidebar-heading .settings-header-action:hover{background:var(--border)}}
.settings-sidebar-heading .settings-header-action svg{width:20px;height:20px}
/* PC : pas de flèche de retour dans le titre de la colonne Réglages (la croix en haut à droite ferme la page). */
.settings-sidebar-heading .settings-header-action{display:none}
.sidebar .settings-sidebar-nav{display:block;flex:1;min-height:0;overflow-y:auto;padding:16px 12px 20px;border:0;background:var(--bg);scrollbar-width:thin}
.settings-sidebar-group+.settings-sidebar-group{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}
.sidebar .settings-sidebar-nav button{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:100%;height:44px;min-height:44px;padding:0 12px;margin:2px 0;border-radius:10px;text-align:left;font-size:13px;font-weight:500;color:var(--muted);transition:background var(--dur-med),color var(--dur-med)}
@media(hover:hover){.sidebar .settings-sidebar-nav button:hover{background:var(--surface-hover);color:var(--fg)}}
.sidebar .settings-sidebar-nav button.selected{background:var(--surface-hover);font-weight:600;color:var(--fg)}
.sidebar .settings-sidebar-nav button svg{width:18px;height:18px;color:currentColor;flex-shrink:0}
.sidebar .settings-sidebar-nav button span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:inherit}
.settings-pro .settings-nav{padding:16px 12px;background:var(--bg);border-right:1px solid var(--border)}
.settings-pro .settings-nav button{justify-content:flex-start;gap:12px;padding:11px 12px;min-height:44px;font-weight:400;margin:3px 0}
.settings-pro .settings-nav button>svg{width:18px;height:18px;color:var(--muted);flex-shrink:0}
.settings-pro .settings-nav button>span{color:inherit}
.settings-pro .settings-nav button.selected{background:var(--surface-hover);font-weight:500;color:var(--fg)}
.settings-pro .settings-chevron{display:none}
.settings-pro>.view-container{padding:28px clamp(24px,4vw,64px);background:var(--surface);min-width:0;flex:1;overflow-y:auto}
.settings-pro .settings-page-title{font-size:19px;font-weight:600;letter-spacing:-.02em;margin:0 0 12px}
.settings-pro .page-col{margin:0;max-width:none}
.settings-pro .page-col>.flex-col>.card,.settings-pro .page-col>.card{padding:0;background:transparent;border:none;border-radius:0}
.settings-pro .settings-section-title{font-size:14px;color:var(--muted);font-weight:500;margin:16px 0 0;padding:0 0 10px;border-bottom:1px solid var(--border)}
.settings-pro .settings-row{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:center;justify-content:space-between;gap:24px;padding:20px 0;min-height:72px}
.settings-pro .settings-row>div:first-child{flex:1 1 auto;min-width:0}
.settings-pro .settings-row-label{font-size:14px}
.settings-pro .settings-row-desc{font-size:12px;max-width:32ch;line-height:1.55}
.settings-pro .settings-row select{width:auto;max-width:190px;min-width:128px;min-height:38px;background-color:var(--surface-hover);border-color:transparent;font-size:14px;flex-shrink:0}
.settings-pro .accent-row{flex:0 0 180px;max-width:180px;gap:10px;padding:4px}
.settings-pro .accent-dot{width:24px;height:24px}
.settings-pro .settings-row input.preference-switch{appearance:none;width:38px;height:22px;border-radius:20px;background:var(--border);position:relative;cursor:pointer;transition:background var(--dur-med)}
.preference-switch:after{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:var(--surface);top:3px;left:3px;box-shadow:0 1px 3px #0002;transition:transform var(--dur-med)}
.settings-pro .settings-row input.preference-switch:checked{background:var(--accent)}
.preference-switch:checked:after{transform:translateX(16px)}
.preference-switch:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:3px}
.settings-pro .feedback-card{border-top:1px solid var(--border)!important;margin-top:20px!important;padding-top:20px!important}
.settings-pro .card .card{border:1px solid var(--border);padding:16px;background:var(--surface);border-radius:10px}
/* Revue des Paramètres (06/10/2026) : « Modèles et performance » imbriquait ses blocs dans un cadre en plus (un niveau
   de flex-col de trop) ; les titres de la Mémoire n'avaient pas le style des autres titres de section sur téléphone. */
.settings-pro .page-col>.flex-col>.flex-col>.card{padding:0;background:transparent;border:none;border-radius:0}
.modes-perf{margin-top:12px}
.settings-pro .grid-3+.text-xs{margin-top:10px}
@media(max-width:768px){.settings-pro .mem-titre{font-size:14px;font-weight:500;color:var(--muted)}}
@media(max-width:1100px){.settings-pro>.view-container{padding:24px}.settings-pro .settings-row{gap:14px}.settings-pro .settings-row>div:first-child{flex-basis:auto}}
@media(max-width:768px){
 .main-content:has(.settings-pro){padding:0}
 .settings-view.settings-pro{display:flex;flex-direction:column;height:100%;max-height:none;border:0;border-radius:0;box-shadow:none}
 .settings-pro-header{min-height:64px;padding:12px 18px;flex-shrink:0}
 .settings-pro-header h1{font-size:19px}
  .settings-pro>.settings-nav{display:block;border:0;background:var(--surface);padding:12px 18px;flex:1}
 .settings-pro .settings-nav button{padding:18px 12px;min-height:60px;border-bottom:1px solid var(--border);border-radius:0;margin:0;font-size:15px}
 .settings-pro .settings-nav button.selected{background:transparent;font-weight:400}
 .settings-pro .settings-chevron{display:block;margin-left:auto;color:var(--muted)}
 .settings-pro>.view-container{display:none;padding:24px 20px}
 .settings-pro.section-open>.view-container{display:block}
  .settings-pro.section-open>.settings-nav{display:none}
 .settings-pro.section-open .settings-back{display:flex}
 .settings-pro .settings-row{flex-wrap:wrap;gap:12px;padding:18px 0}
 .settings-pro .settings-row>div:first-child{flex:1 1 130px}
 .settings-pro .settings-row select{min-width:108px;max-width:160px;font-size:16px}
 .settings-pro .accent-row{flex-basis:100%;max-width:none;gap:12px}
 .settings-pro .accent-dot{width:26px;height:26px}
}

/* Mémoire V2 : les préférences précèdent les explications détaillées. */
.memory-explainer{order:3;border-top:1px solid var(--border);padding:20px 0;margin-top:4px;color:var(--muted);font-size:13px}
.memory-explainer summary{cursor:pointer;width:fit-content}
.memory-explainer[open]>div{margin-top:12px;max-width:65ch}
.memory-page .memory-section{margin-bottom:12px;padding-bottom:24px;border-bottom:1px solid var(--border)}
.memory-page .memory-section-title{font-size:17px}
.memory-page .memory-empty{font-size:14px;padding:4px 0}
.memory-page .memory-actions .btn-icon{width:36px;height:36px}
.memory-page select,.top-bar select.btn{font-size:14px!important;min-height:40px;border-radius:10px;padding:8px 12px;background:var(--surface-hover)}

.chat-view .code-mode-wrap .provider-chip{min-height:36px;font-size:13px}
@media(max-width:768px){
 .chat-view .chat-input-wrap{padding-bottom:max(12px,env(safe-area-inset-bottom))}
 .chat-view .chat-composer-tools .btn-icon,.chat-view .category-trigger{width:36px;height:38px}
 .chat-view .send-btn{width:38px;height:38px}
 .chat-view .chat-composer-tools,.chat-view .chat-composer-actions{gap:4px}
}

/* Une colonne commune pour les messages et la saisie, y compris sur grand écran. */
.chat-view{--chat-column-width:760px;--chat-gutter:24px;min-width:0}
.chat-view .chat-messages{padding-inline:var(--chat-gutter)}
.chat-view .chat-msg-container,.chat-view .chat-input-inner{width:100%;max-width:var(--chat-column-width);margin-inline:auto}
.chat-view .chat-msg-container{padding-inline:0}
.chat-view .chat-input-wrap{padding-inline:var(--chat-gutter)}
.chat-view .msg,.chat-view .msg-content{min-width:0;max-width:100%}
.chat-view .msg-content{overflow-wrap:anywhere}
.chat-view .msg-content img,.chat-view .msg-content video{max-width:100%;height:auto}
.chat-view .msg-content pre{max-width:100%}
.chat-view .msg-content table{display:block;max-width:100%;overflow-x:auto}
.chat-view .msg-content td,.chat-view .msg-content th{min-width:10ch;word-break:normal}
/* Les demandes restent distinctes des réponses Astra : bulle à droite,
   teintée par l'accent choisi plutôt qu'une couleur codée en dur. */
.chat-view .msg-user{display:flex;flex-direction:column;align-items:flex-end}
.chat-view .msg-user .msg-role{display:none}
.chat-view .msg-user.msg-user-pending .msg-role{display:flex;justify-content:flex-end;color:var(--muted)}
.chat-view .msg-user .msg-content{display:block;width:fit-content;max-width:min(82%,620px);padding:10px 14px;
  border-radius:18px 18px 6px 18px;background:color-mix(in srgb,var(--accent) 10%,var(--surface));color:var(--fg)}
.dark .chat-view .msg-user .msg-content{background:color-mix(in srgb,var(--accent) 14%,var(--surface))}
.chat-view .msg-user .msg-actions{align-self:flex-end;justify-content:flex-end}
.chat-view .msg-user .msg-edit{width:min(100%,620px)}
.chat-view .msg-user .msg-edit textarea{width:100%}
@media(max-width:600px){.chat-view .msg-user .msg-content{max-width:90%}}
/* Ordinateur : le texte des réponses est resserré (≈ 640 px, 16 px sur 26 px, environ 80 caractères par ligne) ; tableaux, blocs de code et barre de saisie gardent toute la colonne, au même bord gauche. */
@media(min-width:1024px){
  .chat-view .msg:not(.msg-user) .msg-content :is(p,ul,ol,h1,h2,h3,h4,h5,h6,blockquote,hr){max-width:640px}
  .chat-view .msg:not(.msg-user) .msg-content :is(p,li){font-size:16px;line-height:26px}
  .chat-view .msg:not(.msg-user) .msg-content h3{font-size:22px}.chat-view .msg:not(.msg-user) .msg-content h4{font-size:19px}
  .chat-view .msg:not(.msg-user) .msg-content h5{font-size:17px}.chat-view .msg:not(.msg-user) .msg-content h6{font-size:16px}
}
@media(min-width:1440px){.chat-view{--chat-column-width:840px}}
@media(max-width:768px){.chat-view{--chat-gutter:16px}}
/* En-tête du chat : commandes compactes et cohérentes en clair comme en sombre. */
.chat-top-bar{gap:10px;flex-wrap:nowrap}
.chat-view .chat-top-bar{border-bottom:0}
@media(max-width:768px){html .chat-top-bar .chat-header-controls{border:0!important;padding:0!important;background:none!important;box-shadow:none!important;gap:0}}
.chat-top-bar .hamburger{width:44px;height:44px;min-width:44px;border-radius:50%;background:var(--surface-hover);border:1px solid var(--border);box-shadow:none;color:var(--fg)}
@media(hover:hover){.chat-top-bar .hamburger:hover{background:color-mix(in srgb,var(--surface-hover) 75%,var(--accent) 25%);color:var(--fg)}}
@media(max-width:768px){.top-bar .hamburger,.chat-top-bar .hamburger,.chat-header-controls .btn-icon.chat-header-new{width:46px;height:46px;min-width:46px}.top-bar .hamburger svg,.chat-header-controls .btn-icon.chat-header-new svg{width:22px;height:22px}}
@media(max-width:768px){.chat-top-bar .chat-header-controls .btn-icon.chat-header-new{background:var(--surface-hover);border:1px solid var(--border);color:var(--fg)}html:not(.dark) .chat-top-bar .chat-header-controls .btn-icon.chat-header-new{background:#fff}}
/* Conversation privée (Incognito) : bouton discret à droite de l'en-tête, même taille et même fond que « Nouvelle conversation » ;
   allumé (couleur pleine) quand la conversation est privée. */
.chat-header-controls .btn-icon.chat-header-incognito{color:var(--muted)}
.chat-header-controls .btn-icon.chat-header-incognito:hover{color:var(--fg)}
.chat-header-controls .btn-icon.chat-header-incognito.actif{color:var(--fg);background:color-mix(in srgb,var(--surface-hover) 60%,var(--accent) 40%)}
.chat-view:not(.code-view) .chat-header-incognito{display:flex}
@media(max-width:768px){
  .chat-top-bar .chat-header-controls{gap:8px!important}
  .chat-header-controls .btn-icon.chat-header-incognito{width:46px;height:46px;min-width:46px;background:transparent;border:0;box-shadow:none;color:var(--fg)}
  html:not(.dark) .chat-top-bar .chat-header-controls .btn-icon.chat-header-incognito{background:transparent}
  .chat-header-controls .btn-icon.chat-header-incognito svg{width:22px;height:22px}
  /* Téléphone : pas de « Nouvelle conversation » en haut du chat (21/11/2026) ; seule la conversation privée reste. */
  .chat-view:not(.code-view) .chat-header-controls .btn-icon.chat-header-new{display:none!important}
  .chat-header-controls .btn-icon.chat-header-incognito.actif{background:var(--fg)!important;color:var(--bg)!important;border-color:var(--fg)}
}
.chat-prive-titre{display:inline-flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;font-weight:600}
.chat-prive-titre svg{width:16px;height:16px;flex:none}
.accueil-prive{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center}
.accueil-prive-icone{display:inline-flex;align-items:center;justify-content:center;width:58px;height:58px;border-radius:50%;background:var(--surface-hover);border:1px solid var(--border);color:var(--fg)}
.accueil-prive-liste{list-style:none;margin:6px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;max-width:420px;color:var(--muted);font-size:14px;line-height:1.45}
.accueil-prive-liste li{position:relative;padding-inline-start:16px;text-align:start}
.accueil-prive-liste li::before{content:"";position:absolute;inset-inline-start:0;top:.6em;width:5px;height:5px;border-radius:50%;background:var(--muted);opacity:.7}
.chat-header-context{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.chat-header-context:empty{display:none}
.chat-header-context .tag{max-width:min(38vw,240px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-header-spacer{flex:1;min-width:0}
.chat-header-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.chat-header-controls{display:flex;align-items:center;padding:2px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--surface-hover)}
.chat-header-controls .btn-icon{width:40px;height:40px;border-radius:50%;color:var(--fg)}
@media(hover:hover){.chat-header-controls .btn-icon:hover{background:color-mix(in srgb,var(--surface-hover) 70%,var(--accent) 30%);color:var(--fg)}}
.chat-header-controls .btn-icon svg{width:19px;height:19px}
html:not(.dark) .chat-top-bar .hamburger,html:not(.dark) .chat-header-controls,html:not(.dark) .chat-header-actions>.btn{background:#fff}
@media(hover:hover){html:not(.dark) .chat-top-bar .hamburger:hover,html:not(.dark) .chat-header-controls .btn-icon:hover,html:not(.dark) .chat-header-actions>.btn:hover{background:var(--surface-hover)}}
/* Sur écran tactile, :hover peut rester actif après un appui et donner l'impression d'un bouton sélectionné. */
@media(hover:none),(pointer:coarse){
  .top-bar .hamburger:hover{background:var(--surface);border-color:var(--border);color:var(--fg)}
  .chat-top-bar .hamburger:hover{background:var(--surface-hover)}
  html:not(.dark) .chat-top-bar .hamburger:hover{background:#fff}
  .chat-header-controls .btn-icon:hover{background:transparent;color:var(--fg)}
  html:not(.dark) .chat-header-controls .btn-icon:hover{background:transparent}
}
@media(max-width:768px){
  .chat-top-bar{padding:10px 18px;min-height:68px;gap:8px;border-bottom-color:transparent;flex-wrap:nowrap}
  .chat-header-context:not(:empty){flex:0 1 auto;overflow:hidden;flex-wrap:nowrap}
  .chat-header-context .tag{min-width:0;max-width:100%;flex-shrink:1}
  .chat-header-context .tag:last-child:not(:first-child){flex-shrink:0}
  .chat-header-spacer{flex:1 1 0;min-width:0}
  .chat-header-actions>.btn{min-width:40px;width:40px;height:40px;padding:0;justify-content:center;font-size:0}
.chat-header-actions>.btn svg{width:18px;height:18px}
}
/* Fichier généré : une pièce jointe lisible et compacte, indépendante des artefacts. */
.generated-file-card{display:flex;align-items:center;gap:12px;width:min(100%,430px);min-height:64px;margin:10px 0 4px;padding:10px 14px;text-align:left;color:var(--fg);background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);transition:background var(--dur-med),border-color var(--dur-med),transform var(--dur-med)}
@media(hover:hover){.generated-file-card:hover{background:var(--surface-hover);border-color:color-mix(in srgb,var(--accent) 32%,var(--border))}}
.generated-file-card:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
.generated-file-card:active{transform:scale(.99)}
.generated-file-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:40px;color:#245aaf}
.generated-file-icon svg{display:block;width:34px;height:38px}
.generated-file-icon[data-format="pdf"],.generated-file-card[data-format="pdf"] .generated-file-icon,.generated-file-detail[data-format="pdf"] .generated-file-icon{color:#bc3840}
.dark .generated-file-icon[data-format="docx"],.dark .generated-file-card[data-format="docx"] .generated-file-icon,.dark .generated-file-detail[data-format="docx"] .generated-file-icon{color:#8aafff}
.dark .generated-file-icon[data-format="pdf"],.dark .generated-file-card[data-format="pdf"] .generated-file-icon,.dark .generated-file-detail[data-format="pdf"] .generated-file-icon{color:#ff9b9f}
.generated-file-copy{display:flex;flex:1;flex-direction:column;gap:2px;min-width:0}
.generated-file-title{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:550;line-height:1.3}
.generated-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted);line-height:1.3}
.generated-file-chevron{display:flex;flex-shrink:0;color:var(--muted);opacity:.7}
.generated-file-chevron svg{width:17px;height:17px}
.generated-file-detail{display:flex;align-items:center;gap:12px;min-width:0;margin:4px 0 2px}
.generated-file-detail span:last-child{overflow-wrap:anywhere}
/* La réponse est déjà affichée : seul le résumé du contexte continue en fond. */
.context-compression-status{display:flex;align-items:center;gap:8px;padding:8px 0;color:var(--muted);font-size:12px;line-height:1.4}
.context-compression-status.failed::before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:var(--warn)}
/* Loader d'attente (composant « Loading State » de beautifului.dev, licence MIT) : grille 3×3 en orbite, libellé qui
   scintille, chronomètre après 3 s. Les pixels et le reflet suivent l'accent choisi par l'utilisateur (--accent). */
.ld-state{display:flex;align-items:center;gap:10px;width:fit-content;max-width:100%;padding:8px 0;min-width:0}
.orb-glyph{position:relative;display:block;flex-shrink:0}
.orb-morph{position:absolute;inset:0}
.orb-dot{position:absolute;left:50%;top:50%;width:4.5px;height:4.5px;margin:-2.25px 0 0 -2.25px;border-radius:50%;background:var(--accent);transform:scale(var(--orb-k)) translate(var(--m-1));animation:orbExpand 2.4s cubic-bezier(.45,0,.2,1) infinite}
.ld-label{font-size:13px;font-weight:500;line-height:1.4;color:transparent;background-image:linear-gradient(90deg,var(--muted) 35%,var(--accent) 50%,var(--muted) 65%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;animation:ldShimmer 1.4s linear infinite;overflow-wrap:anywhere}
.ld-timer{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ld-state.ld-center{justify-content:center;margin:0 auto}
@keyframes orbExpand{0%,100%{transform:scale(var(--orb-k)) translate(var(--m-1));opacity:.6}25%{transform:scale(var(--orb-k)) translate(var(--m-2));opacity:1}50%{transform:scale(var(--orb-k)) translate(var(--m-3));opacity:.6}75%{transform:scale(var(--orb-k)) translate(var(--m-4));opacity:1}}
@keyframes ldShimmer{0%{background-position:150%}100%{background-position:-50%}}
@media(prefers-reduced-motion:reduce){.orb-dot{animation:none!important;transform:scale(var(--orb-k)) translate(var(--m-2))}.ld-label{animation:none;background-image:none;color:var(--muted)}}
/* Sur mobile, le pincement pour zoomer reste possible (accessibilité) ; `manipulation` retire seulement le zoom par double
   appui et son délai, et garde les deux axes de défilement (historique, code et listes horizontales). 16px évite le zoom
   automatique de Safari quand un champ reçoit le focus. */
@media(max-width:768px){
  html,body,#root{touch-action:manipulation}
  input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px!important}
}
/* ── Barre de saisie — composant 08 de beautifului.dev (MIT), adapté ──
   Refonte du 16/10/2026 : une carte à deux étages — le texte en haut, les boutons en bas — sur ordinateur comme sur téléphone.
   « @ » (fichiers, projets) et « / » (commandes) ouvrent un menu au-dessus. */
.chat-input-wrap .chat-input.pb{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:12px;padding:16px 16px 12px;border-radius:28px;box-shadow:0 6px 24px rgba(0,0,0,.06);transition:border-color var(--dur-base),box-shadow var(--dur-base)}
.chat-input-wrap .chat-input.pb textarea{width:100%;min-width:0;flex:none;align-self:stretch;padding:2px 4px;min-height:26px;max-height:180px;font-size:16px;line-height:1.5}
.chat-input-wrap .chat-input.pb textarea::placeholder{color:var(--muted)}
/* Fichiers joints : DANS la carte de saisie, en haut (16/10/2026) — plus au-dessus de la barre. */
.chat-input-wrap .chat-input.pb>.pj-liste{order:-1;flex:0 0 auto;width:100%;max-width:100%;min-width:0;box-sizing:border-box;margin:0;padding:10px 12px 6px 4px}
.chat-input-wrap .chat-input.pb .pb-bas{display:flex;align-items:center;gap:8px;min-width:0}
.chat-input-wrap .chat-input.pb .pb-lead{display:flex;align-items:center;flex-shrink:0}
.chat-input-wrap .chat-input.pb .pb-lead .composer-add{margin:0}
.chat-input-wrap .chat-input.pb .pb-lead .composer-add{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border:0!important;background:var(--surface-hover)!important;color:var(--fg)!important}
@media(hover:hover){.chat-input-wrap .chat-input.pb .pb-lead .composer-add:hover{width:36px!important;height:36px!important;min-width:36px!important;min-height:36px!important;border:0!important;background:var(--surface-hover)!important;color:var(--fg)!important}}
@media(hover:hover){.chat-input-wrap .chat-input.pb .pb-lead .composer-add:hover{background:color-mix(in srgb,var(--fg) 9%,var(--surface))!important}}
.chat-input-wrap .chat-input.pb .pb-lead .composer-add svg{width:20px;height:20px}
.chat-input-wrap .chat-input.pb .pb-tools{display:flex;align-items:center;min-width:0}
.chat-input-wrap .chat-input.pb .pb-ressort{flex:1;min-width:0}
.chat-input-wrap .chat-input.pb .pb-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.chat-input-wrap .chat-input.pb .pb-actions .send-btn{width:36px;height:36px}
.pb-mode{display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 13px;border-radius:var(--radius-full);font-size:14px;font-weight:500;color:var(--fg);background:var(--surface-hover);border:0;white-space:nowrap;transition:background var(--dur-med),color var(--dur-med)}
@media(hover:hover){.pb-mode:hover{background:color-mix(in srgb,var(--fg) 9%,var(--surface))}}
.pb-mode[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 12%,var(--surface));color:var(--fg)}
.pb-mode svg{width:14px;height:14px;transition:transform var(--dur-base)}
.pb-mode[aria-expanded="true"] svg{transform:rotate(180deg)}
.pb-web{display:inline-flex;align-items:center;gap:6px;height:40px;padding:0 14px;border-radius:var(--radius-full);font-size:14px;font-weight:500;color:var(--fg);background:var(--surface-hover);border:0;white-space:nowrap;transition:background var(--dur-med),color var(--dur-med)}
@media(hover:hover){.pb-web:hover{background:color-mix(in srgb,var(--fg) 9%,var(--surface))}}
.pb-web svg{width:16px;height:16px}
.pb-web[aria-pressed="true"]{background:color-mix(in srgb,var(--accent) 14%,var(--surface));color:color-mix(in srgb,var(--accent) 78%,var(--fg))}
.pb-menu,.pb-mode-menu{position:absolute;z-index:40;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);padding:6px;box-shadow:var(--shadow-md);animation:pb-pop .14s ease-out}
.pb-menu{left:0;right:0;bottom:calc(100% + 10px);max-height:min(340px,50dvh);overflow-y:auto;transform-origin:bottom left;overscroll-behavior:contain}
.pb-mode-menu{right:8px;bottom:calc(100% + 10px);min-width:220px;transform-origin:bottom right}
.pb-head{padding:8px 10px 4px;font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.pb-row{position:relative;z-index:1;display:flex;align-items:center;gap:10px;width:100%;min-height:40px;padding:8px 10px;border-radius:10px;font-size:14px;text-align:left;color:var(--fg)}
.pb-row svg{width:16px;height:16px;flex-shrink:0;color:var(--muted)}
.pb-row .pb-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-row .pb-hint{font-size:12px;color:var(--muted);flex-shrink:0;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pb-row[aria-selected="true"] svg{color:var(--fg)}
.pb-row.on .pb-label{font-weight:600}
.pb-row.on::after{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent);flex-shrink:0}
.pb-row.locked{opacity:.55}
.pb-empty{padding:12px 10px;font-size:13px;color:var(--muted)}
.pb-glide{position:absolute;left:6px;right:6px;z-index:0;border-radius:10px;background:var(--surface-hover);pointer-events:none;transition:top var(--dur-med) var(--ease-out),height var(--dur-med) var(--ease-out),opacity var(--dur-fast)}
.eq{display:inline-flex;align-items:center;gap:2px;height:16px}
.eq i{display:block;width:3px;height:100%;border-radius:2px;background:currentColor;transform-origin:center;animation:pb-eq .9s ease-in-out infinite}
.eq i:nth-child(2){animation-delay:var(--dur-med)}.eq i:nth-child(3){animation-delay:.3s}
@keyframes pb-eq{0%,100%{transform:scaleY(.35)}50%{transform:scaleY(1)}}
@keyframes pb-pop{0%{opacity:0;transform:scale(.95)}100%{opacity:1;transform:scale(1)}}
/* Bulle de menu ancrée à son bouton (ordinateur, 12/11/2026) : mesures reprises de la référence (bulle 320 px, rayon 14, marge 7 ;
   lignes à deux étages 14/13 px ; survol en 60 ms ; apparition 130 ms, 4 px de course, depuis le coin du bouton). Pas de voile. */
.bulle-menu{position:fixed;z-index:270;width:320px;max-width:calc(100vw - 16px);box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:7px;border-radius:14px;background:var(--surface);box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 9%,transparent),0 3px 20px rgba(0,0,0,.15);font-size:14px;animation:bulle-pop .13s ease both}
.dark .bulle-menu{box-shadow:0 0 0 .5px rgba(255,255,255,.12),0 4px 24px rgba(0,0,0,.5)}
@keyframes bulle-pop{0%{opacity:0;transform:translateY(var(--bulle-dy,4px)) scale(.98)}100%{opacity:1;transform:none}}
.bulle-ligne{display:flex;align-items:center;gap:10px;width:100%;min-height:30px;padding:6px 12px;border:0;border-radius:8px;background:none;color:var(--fg);font:inherit;text-align:start;cursor:pointer;transition:background-color .06s linear}
@media(hover:hover){.bulle-ligne:hover{background:var(--surface-hover)}}
.bulle-ligne:focus-visible{background:var(--surface-hover);outline:none}
.bulle-ligne.locked{color:var(--muted)}
.bulle-texte{display:flex;flex-direction:column;flex:1;min-width:0}
.bulle-titre{display:flex;align-items:center;gap:8px;line-height:17px}
.bulle-desc{font-size:13px;line-height:16px;color:var(--muted)}
.bulle-ligne>svg{width:16px;height:16px;flex-shrink:0;color:var(--muted)}
.bulle-ligne[aria-checked="true"]>svg{color:var(--accent)}
.bulle-fin{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;font-size:12px;color:var(--muted)}
.bulle-fin svg{width:13px;height:13px}
.bulle-titre .pb-reco{margin:0}
.bulle-groupe{padding:8px 12px 4px;font-size:12px;color:var(--muted)}
.bulle-sep{height:1px;margin:5px -7px;background:var(--border)}
.bulle-menu.bulle-etroite{width:208px}
[data-piege-focus]:focus,[data-piege-focus]:focus-visible{outline:none!important}   /* la fenêtre elle-même reçoit le focus à l'ouverture : pas d'anneau autour de tout l'écran */
.bulle-ligne.danger,.bulle-ligne.danger>svg{color:var(--danger)}
@media(prefers-reduced-motion:reduce){.bulle-menu{animation:none}}
/* Infobulle d'Astra (12/11/2026) : remplace l'infobulle du système pour tout élément qui porte `title`. Mesures de la référence :
   12/16 px, marge 4×8, rayon 6, fondu de 100 ms, à 6 px de l'élément. Couleurs inversées (texte de la page sur fond de texte). */
.infobulle{position:fixed;top:0;left:0;z-index:400;max-width:280px;box-sizing:border-box;padding:4px 8px;border-radius:6px;background:var(--fg);color:var(--bg);font-size:12px;line-height:16px;font-weight:500;overflow-wrap:anywhere;pointer-events:none;opacity:0;visibility:hidden;transition:opacity var(--dur-fast),visibility 0s linear var(--dur-fast)}
.infobulle.on{opacity:1;visibility:visible;transition:opacity var(--dur-fast),visibility 0s}
@media(prefers-reduced-motion:reduce){.infobulle,.infobulle.on{transition:none}}
/* Menu « + » : bulle au-dessus du bouton sur ordinateur (la feuille du téléphone reçoit la même section Outils). */
.ajout-entete,.ajout-bloc{display:none}
.sheet.sheet-pop .ajout-entete{display:flex}.sheet.sheet-pop .ajout-bloc{display:flex}
/* Bulle « Ajouter » : même présentation que le menu du niveau (feuille centrée sur fond assombri, texte plus grand), 27/10/2026 */
.sheet-overlay.sheet-pop-voile{background:rgba(0,0,0,.42);align-items:center;justify-content:center;animation:sa-fondu var(--dur-fast) ease-out}
.sheet.sheet-pop{position:relative;width:520px;max-width:calc(100vw - 48px);max-height:calc(100dvh - 80px);overflow-y:auto;padding:10px 12px 14px;border:0;border-radius:20px;background:var(--bg);box-shadow:0 24px 60px -10px rgba(0,0,0,.35);transform-origin:center;display:flex;flex-direction:column}
.sheet-pop .ajout-entete{position:relative;height:56px;align-items:center;justify-content:center;font-size:18px;font-weight:500;color:var(--fg);flex-shrink:0}
.sheet-pop .ajout-fermer{position:absolute;left:10px;top:12px;width:32px;height:32px;display:grid;place-items:center;border-radius:50%;color:var(--fg);background:none;border:0;cursor:pointer}
.sheet-pop .ajout-fermer svg{width:18px;height:18px}
@media(hover:hover){.sheet-pop .ajout-fermer:hover{background:var(--surface-hover)}}
.sheet-pop .ajout-bloc{flex-direction:column;gap:2px;background:var(--surface);border-radius:16px;overflow:hidden}
.sheet-pop .ajout-ligne{border-radius:0;min-height:62px;padding:12px 24px 12px 12px;font-size:17px;background:var(--surface);gap:12px}
@media(hover:hover){.sheet-pop .ajout-ligne:hover{background:var(--surface-hover)}}
.sheet-pop .ajout-desc{font-size:14px;margin-top:3px}
.sheet-pop .ajout-ligne svg{color:var(--muted)}
.sheet-pop .ajout-ligne .ajout-coche{width:20px;height:20px;color:var(--accent)}
.sheet-pop .ajout-titre{padding:18px 12px 8px;font-size:15px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--muted)}
.ajout-titre{padding:8px 12px 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.ajout-ligne{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 12px;border-radius:var(--radius-md);font-size:14px;text-align:left;color:var(--fg);background:none;border:0;cursor:pointer}
.ajout-ligne:focus-visible{background:var(--surface-hover)}
@media(hover:hover){.ajout-ligne:hover{background:var(--surface-hover)}}
.ajout-ligne svg{width:20px;height:20px;flex-shrink:0;color:var(--muted)}
.ajout-ligne svg:last-child{width:16px;height:16px}
.ajout-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ajout-desc{font-size:13px;line-height:1.4;color:var(--muted)}
.ajout-sep{height:1px;background:var(--border);margin:6px 8px}
.interrupteur{width:38px;height:22px;border-radius:var(--radius-full);background:var(--border);position:relative;flex-shrink:0;transition:background var(--dur-med)}
.interrupteur::after{content:"";position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:left var(--dur-med)}
.interrupteur.on{background:var(--accent)}
.interrupteur.on::after{left:19px}
.sheet:not(.sheet-pop) .ajout-ligne{min-height:56px;font-size:16px}
.sheet:not(.sheet-pop) .ajout-titre{padding:12px 12px 4px}
.sheet:not(.sheet-pop) .interrupteur{width:44px;height:26px}
.sheet:not(.sheet-pop) .interrupteur::after{width:20px;height:20px}
.sheet:not(.sheet-pop) .interrupteur.on::after{left:21px}
@media(prefers-reduced-motion:reduce){.sheet.sheet-pop{animation:none}.interrupteur,.interrupteur::after{transition:none}}
/* Dictée : annuler, onde sonore et chrono, valider — à la place de la ligne de boutons pendant l'enregistrement. */
.pb-dictee{gap:12px}
.pb-rond{width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--surface-hover);color:var(--fg);border:0;padding:0;flex-shrink:0;cursor:pointer}
.pb-rond:disabled{opacity:var(--inactif);cursor:default}
.pb-rond svg{width:18px;height:18px}
.pb-onde{flex:1;min-width:0;display:flex;align-items:center;justify-content:center;gap:10px;height:40px;font-size:13px;color:var(--muted)}
.pb-onde-canvas{flex:1;min-width:0;height:40px;display:block;color:var(--fg)}
.pb-onde:has(.pb-onde-canvas){gap:12px}
.pb-apercu{order:0;font-size:inherit;line-height:1.5;color:var(--fg);padding:2px 4px;overflow-wrap:anywhere;max-height:180px;overflow-y:auto}
.pb-apercu span{color:var(--fg)}
.pb-caret{display:inline-block;width:2px;height:1.15em;margin-left:1px;vertical-align:text-bottom;background:var(--fg);animation:pb-caret 1s steps(1) infinite}
@keyframes pb-caret{50%{opacity:0}}
@media(prefers-reduced-motion:reduce){.pb-caret{animation:none}}
.pb-onde.pb-transcrit{justify-content:flex-start;color:var(--muted);font-size:17px}
.chat-view .pb-dictee .send-btn:disabled{opacity:.4!important;cursor:default}
.chat-input.pb.pb-avec-apercu textarea{display:none}
.pb-onde-barres{display:flex;align-items:center;justify-content:center;gap:3px;height:34px;min-width:0;overflow:hidden}
.pb-onde-barres i{display:block;width:3px;height:100%;border-radius:2px;background:var(--fg);transform-origin:center;animation:pb-onde .8s ease-in-out infinite alternate}
.pb-onde-barres i:nth-child(3n){height:70%}.pb-onde-barres i:nth-child(4n+1){height:48%}.pb-onde-barres i:nth-child(7n){height:85%}
@keyframes pb-onde{0%{transform:scaleY(.14)}100%{transform:scaleY(1)}}
.pb-temps{font-variant-numeric:tabular-nums;flex-shrink:0}
.pb-transcrit{gap:10px;color:var(--fg)}
@media(prefers-reduced-motion:reduce){.pb-onde-barres i{animation:none;transform:scaleY(.5)}}
/* Menu du niveau de réponse : au-dessus de la pastille sur ordinateur, feuille depuis le bas sur téléphone. */
.pb-mode-menu.pb-reglages.pb-niveau{padding:8px}
.pb-niveau-titre{padding:4px 12px 2px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.pb-niv{align-items:center;gap:12px;padding:8px 12px;min-height:52px;border-radius:var(--radius-md)}
.pb-niv.on{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.pb-niv.on::after{display:none}
.pb-radio{width:18px;height:18px;border-radius:50%;border:1.5px solid color-mix(in srgb,var(--fg) 28%,transparent);flex-shrink:0;position:relative}
.pb-niv.on .pb-radio{border-color:var(--accent);background:var(--accent)}
.pb-niv.on .pb-radio::after{content:"";position:absolute;inset:4px;border-radius:50%;background:#fff}
.pb-niv-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pb-niv .pb-label{flex:none;white-space:normal;overflow:visible;font-weight:500}
.pb-niv.on .pb-label{font-weight:600}
.pb-reco{margin-left:8px;padding:1px 8px;border-radius:var(--radius-full);font-size:11px;font-weight:600;color:color-mix(in srgb,var(--accent) 78%,var(--fg));background:color-mix(in srgb,var(--accent) 14%,transparent)}
.pb-niv-desc{font-size:13px;line-height:1.4;color:var(--muted)}
.pb-verrou{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:var(--radius-full);background:var(--surface-hover);font-size:12px;font-weight:600;flex-shrink:0}
.pb-verrou svg{width:12px;height:12px;color:inherit}
.pb-niveau-sep{height:1px;background:var(--border);margin:4px 8px}
.pb-niveau-lien{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:8px 12px;border-radius:var(--radius-md);font-size:14px;text-align:left;color:var(--fg)}
.pb-niveau-lien svg{width:20px;height:20px;color:var(--muted);flex-shrink:0}
.pb-niveau-lien span{flex:1}
.pb-niveau-lien svg:last-child{width:16px;height:16px}
@media(hover:hover){.pb-niveau-lien:hover{background:var(--surface-hover)}}
@media(min-width:769px){.pb-web{display:inline-flex}
  /* Menu du niveau sur PC : feuille centrée sur fond assombri, comme le menu des modèles de Claude (26/10/2026) */
  .pb-reglages-voile:has(+ .pb-niveau){display:block;position:fixed;inset:0;z-index:260;background:rgba(0,0,0,.42);animation:sa-fondu var(--dur-fast) ease-out}
  .pb-mode-menu.pb-reglages.pb-niveau{position:fixed;inset:0;margin:auto;height:fit-content;width:520px;max-width:calc(100vw - 48px);max-height:calc(100dvh - 80px);overflow-y:auto;z-index:261;padding:10px 12px 14px;border:0;border-radius:20px;background:var(--bg);box-shadow:0 24px 60px -10px rgba(0,0,0,.35);display:flex;flex-direction:column;gap:2px}
  .pb-niveau .pb-reglages-poignee{display:none}
  .pb-niveau .pb-niveau-titre{order:-2;height:56px;display:flex;align-items:center;justify-content:center;padding:0;font-size:18px;font-weight:500;letter-spacing:0;text-transform:none;color:var(--fg)}
  .pb-niveau .pb-niv{background:var(--surface);border-radius:0;padding:12px 24px 12px 12px;min-height:62px;gap:12px}
  .pb-niveau .pb-niv:first-of-type{border-radius:16px 16px 0 0}
  .pb-niveau .pb-niv:has(+ .pb-niveau-sep),.pb-niveau .pb-niv:last-child{border-radius:0 0 16px 16px}
  .pb-niveau .pb-niv.on{background:var(--surface)}
  .pb-niveau .pb-niv .pb-radio{display:none}
  .pb-niveau .pb-niv .pb-label{font-size:17px;font-weight:400}
  .pb-niveau .pb-niv.on .pb-label{font-weight:400}
  .pb-niveau .pb-niv-desc{font-size:14px}
  .pb-niveau .pb-niv.on::after{display:block;content:"";width:18px;height:10px;border:solid var(--accent);border-width:0 0 2px 2px;border-radius:0;background:none;transform:rotate(-45deg) translateY(-3px);margin-right:4px}
  .pb-niveau .pb-niveau-sep{display:none}
  .pb-niveau .pb-niveau-lien{margin-top:10px;background:var(--surface);border-radius:16px;min-height:56px;font-size:17px}
  @media(hover:hover){.pb-niveau .pb-niv:hover,.pb-niveau .pb-niveau-lien:hover{background:var(--surface-hover)}}
}
@media(max-width:768px){
  .pb-web{display:none}
  .chat-input-wrap .chat-input.pb{padding:14px 14px 12px}
  .chat-input-wrap .chat-input.pb .pb-lead .composer-add,.chat-input-wrap .chat-input.pb .pb-lead .composer-add:hover{width:40px!important;height:40px!important;min-width:40px!important;min-height:40px!important}
  .pb-mode{height:40px;padding:0 14px;font-size:14px}
  .chat-input-wrap .chat-input.pb .pb-actions .send-btn,.pb-rond{width:40px;height:40px}
  .pb-onde,.pb-onde-barres{height:44px}
  .pb-niveau-titre{padding:4px 8px 10px;font-size:16px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--fg)}
  .pb-niv{padding:12px;min-height:64px}
}
@media(max-width:360px){.pb-mode{padding:0 12px;font-size:14px}.chat-input-wrap .chat-input.pb .pb-bas{gap:6px}}
@media(prefers-reduced-motion:reduce){
  .chat-input-wrap .chat-input.pb,.pb-glide{transition:none!important}
  .pb-menu,.pb-mode-menu{animation:none}
  .eq i{animation:none;transform:none}
}
/* ── Actions sur la sélection — composant 20 de beautifului.dev (MIT), adapté ── */
.sa-bar{position:fixed;z-index:70;transform:translateX(-50%);display:flex;align-items:center;height:38px;padding:4px;border-radius:var(--radius-full);background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-lg);max-width:calc(100vw - 16px);animation:sa-entree .18s var(--ease-out) both;transform-origin:top center;user-select:none;-webkit-user-select:none}
.sa-contenu{display:flex;align-items:center;gap:2px;animation:sa-fondu .16s ease-out both}
.sa-btn{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 10px;border-radius:var(--radius-full);font-size:13px;color:var(--fg);white-space:nowrap;transition:background var(--dur-med),transform var(--dur-med)}
.sa-btn svg{width:14px;height:14px;flex-shrink:0;color:var(--muted)}
@media(hover:hover){.sa-btn:hover{background:var(--surface-hover)}}@media(hover:hover){.sa-btn:hover svg{color:var(--fg)}}
.sa-btn:active{transform:scale(.96)}
.sa-garder{background:var(--accent);color:var(--accent-ink)}.sa-garder svg{color:var(--accent-ink)}
@media(hover:hover){.sa-garder:hover svg{color:var(--accent-ink)}}@media(hover:hover){.sa-garder:hover{background:var(--accent-hover)}}
.sa-icone{width:30px;padding:0;justify-content:center}
.sa-sep{width:1px;height:16px;background:var(--border);margin:0 2px;flex-shrink:0}
.sa-occupe{padding:0 10px 0 4px;font-size:13px;color:var(--muted);white-space:nowrap}
/* Indicateur de chargement commun : .spinner (12 px) ; .sa-spin et .tr-spin en sont des variantes de marge. */
.spinner,.sa-spin,.tr-spin{width:12px;height:12px;border-radius:50%;border:1.5px solid var(--border);border-top-color:var(--accent);animation:sa-tour .7s linear infinite;flex-shrink:0}
.sa-spin{margin-left:10px}
@keyframes sa-tour{to{transform:rotate(360deg)}}
@keyframes sa-entree{0%{opacity:0;transform:translateX(-50%) scale(.95)}100%{opacity:1;transform:translateX(-50%) scale(1)}}
@keyframes sa-fondu{0%{opacity:0}100%{opacity:1}}
@media(prefers-reduced-motion:reduce){.sa-bar,.sa-contenu{animation:none}.sa-spin{animation-duration:1.6s}.sa-btn{transition:none}}
/* ── Trace des outils — composants 02 + 05 de beautifului.dev (MIT), fusionnés ── */
.tr-bloc{margin:2px 0 6px;max-width:65ch}
.tr-entete{display:inline-flex;align-items:center;gap:8px;margin-left:-6px;padding:4px 6px;border-radius:var(--radius-sm);font-size:13px;font-weight:500;color:var(--muted);transition:background var(--dur-fast),color var(--dur-fast)}
@media(hover:hover){.tr-entete:hover{background:var(--surface-hover);color:var(--fg)}}
.tr-chevron{transition:transform var(--dur-lent) var(--ease-out)}
.tr-bloc.ouvert .tr-chevron{transform:rotate(180deg)}
.tr-corps{display:grid;grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows .4s var(--ease-out),opacity var(--dur-lent),visibility 0s linear .4s}
.tr-bloc.ouvert .tr-corps{grid-template-rows:1fr;opacity:1;visibility:visible;transition-delay:0s}
.tr-interieur{overflow:hidden;min-height:0}
.tr-onglets{display:flex;gap:2px;margin:6px 0 2px 5px;padding:2px;width:fit-content;border-radius:var(--radius-full);background:var(--surface-hover)}
.tr-onglet{height:26px;padding:0 12px;border-radius:var(--radius-full);font-size:12px;font-weight:500;color:var(--muted);transition:background var(--dur-med),color var(--dur-med)}
@media(hover:hover){.tr-onglet:hover{color:var(--fg)}}
.tr-onglet.on{background:var(--surface);color:var(--fg);box-shadow:var(--shadow-sm)}
.tr-liste{position:relative;display:flex;flex-direction:column;gap:2px;margin:6px 0 2px 5px;padding:2px 0 2px 16px}
.tr-liste::before{content:"";position:absolute;left:3px;top:-2px;bottom:-2px;width:1px;background:var(--border)}
.tr-ligne{display:flex;align-items:center;gap:8px;min-height:28px;padding:2px 6px;border-radius:6px;font-size:13px;text-align:left;animation:tr-monte .32s var(--ease-out) both}
.tr-lien{color:inherit;text-decoration:none;transition:background var(--dur-med)}
@media(hover:hover){.tr-lien:hover{background:var(--surface-hover)}}
.tr-ico{flex-shrink:0;color:var(--muted)}
.tr-puce{flex-shrink:0;width:16px;height:16px;border-radius:5px;display:grid;place-items:center;font-size:10px;font-weight:600;color:var(--muted);background:var(--surface-hover)}
.tr-logo{flex-shrink:0;width:16px;height:16px;border-radius:4px;object-fit:contain;background:var(--surface-hover)}
.tr-principal{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;color:var(--fg)}
.tr-second{flex-shrink:0;min-width:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;color:var(--muted)}
.tr-mono{font-family:var(--font-mono)}
.tr-diff{flex-shrink:0;font-family:var(--font-mono);font-size:11px;font-variant-numeric:tabular-nums}
.tr-plus{color:var(--success)}.tr-moins{color:var(--danger)}
button.tr-ligne{width:100%}
@keyframes tr-monte{0%{opacity:0;transform:translateY(4px)}100%{opacity:1;transform:none}}
.tr-label{font-size:13px;font-weight:500;white-space:nowrap}
/* Feuille « Résumé » vivante (mesurée sur Claude) : lignes qui s'ajoutent, étapes d'outils en police sans empattement avec une icône, dernière ligne = point vif + reflet. */
.tr-live-ouvrir{background:none;border:0;padding:4px;margin-left:-2px;color:var(--muted);display:inline-flex;align-items:center;cursor:pointer}
.rs-vivante{position:relative;max-height:min(58vh,420px);overflow-y:auto;scroll-behavior:smooth;margin-top:6px;padding-top:6px;padding-bottom:4px;scrollbar-width:none;mask-image:linear-gradient(to bottom,transparent 0,#000 14px,#000 calc(100% - 10px),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 14px,#000 calc(100% - 10px),transparent 100%)}
.rs-vivante::-webkit-scrollbar{display:none}
/* un seul filet continu derrière tous les points (les lignes d'étape n'ont plus de filet propre) */
.rs-vivante::before{content:"";position:absolute;left:22.5px;top:20px;bottom:20px;width:1px;background:var(--border)}
.rs-vivante li{position:relative;padding-bottom:20px;align-items:flex-start}
.rs-vivante li::before{display:none!important}
.rs-vivante li:last-child{padding-bottom:4px}
.rs-vivante .rs-point{margin-top:7px;box-shadow:0 0 0 4px var(--bg-elevated,var(--surface))}
.rs-vivante li.rs-etape{font-family:var(--font-body);font-size:14.5px;line-height:1.45;color:var(--muted)}
.rs-vivante .rs-ico{flex:none;width:10px;height:22px;display:inline-flex;align-items:center;justify-content:center;margin-top:3px;color:var(--muted);background:var(--bg-elevated,var(--surface));box-shadow:0 0 0 3px var(--bg-elevated,var(--surface))}
.rs-vivante .rs-ico svg{width:13px;height:13px;flex:none}
.rs-point-vif{background:var(--accent)!important;position:relative}
.rs-point-vif::after{content:"";position:absolute;inset:-4px;border-radius:50%;border:1.5px solid var(--accent);opacity:0;animation:rs-halo 1.8s ease-out infinite}
@keyframes rs-halo{0%{transform:scale(.55);opacity:.55}100%{transform:scale(1.5);opacity:0}}
.rs-courante .rs-texte{font-family:var(--font-body);font-size:14.5px;font-weight:500;line-height:1.5}
.rs-apparait{animation:tr-monte .32s cubic-bezier(.2,.7,.2,1) both}
.rs-courante.rs-apparait{animation-duration:.4s}
@media(prefers-reduced-motion:reduce){.rs-point-vif::after{animation:none;opacity:0}}
@media(prefers-reduced-motion:reduce){.rs-apparait{animation:none}}
.tr-horloge{flex:none;opacity:.85;overflow:visible}
/* comme Claude : les points se resserrent en un anneau pâle, puis les aiguilles apparaissent */
.tr-horloge circle{transform-origin:12px 12px;animation:tr-anneau .34s cubic-bezier(.3,.7,.2,1) both}
.tr-horloge path{animation:tr-aiguilles .2s ease-out .16s both}
@keyframes tr-anneau{0%{opacity:.25;transform:scale(1.5);stroke-width:5}60%{opacity:.4;transform:scale(.9);stroke-width:2.6}100%{opacity:1;transform:none;stroke-width:2}}
@keyframes tr-aiguilles{from{opacity:0}to{opacity:1}}
.tr-entete .tr-label{transition:color .2s}
/* Texte en cours d'écriture : chaque nouveau bloc apparaît en fondu (comme Claude). */
.msg-flux{position:relative}
.msg-flux>div{animation:tr-apparait .25s ease-out both}
.flux-lettres{animation:tr-apparait .14s ease-out both}
@media(prefers-reduced-motion:reduce){.flux-lettres{animation:none}}
.flux-bord{position:absolute;display:none;width:34px;pointer-events:none;background:linear-gradient(90deg,transparent,color-mix(in srgb,var(--fond-lecture,var(--bg)) 78%,transparent))}
@media(prefers-reduced-motion:reduce){.tr-horloge circle,.tr-horloge path,.msg-flux>div{animation:none}}
.tr-live-tete .tr-label,.tr-entete .tr-label{min-width:0;max-width:100%;overflow:hidden;text-overflow:ellipsis}   /* les titres de réflexion sont longs : une ligne, « … » au bout (comme Claude) */
.tr-live-tete,.tr-entete{min-width:0}
/* Feuille « Résumé » (comme l'appli Claude) : titre centré, croix à gauche, ligne de temps de points gris reliés par un filet. */
.rs-feuille{min-height:38vh}
.rs-titre{text-align:center!important;font-size:17px}
.rs-cale{width:36px;flex:none}
.rs-ligne-temps{list-style:none;margin:10px 0 4px;padding:0 8px 0 18px}
.rs-ligne-temps li{position:relative;display:flex;align-items:flex-start;gap:20px;padding:0 0 22px;font-family:var(--font-display);font-size:17px;line-height:1.4;color:var(--fg)}
.rs-ligne-temps li:last-child{padding-bottom:6px}
.rs-point{flex:none;width:10px;height:10px;margin-top:8px;border-radius:50%;background:color-mix(in srgb,var(--muted) 40%,transparent)}
.rs-ligne-temps li:not(:last-child)::before{content:"";position:absolute;left:4.5px;top:22px;bottom:2px;width:1px;background:var(--border)}
.rs-sources{display:flex;flex-direction:column;gap:2px;margin:6px 4px 0;padding-top:10px;border-top:1px solid var(--border)}
@media(prefers-reduced-motion:reduce){.rs-feuille{animation:none}}
/* Reflet mesuré sur l'appli Claude : le texte est foncé et une bande CLAIRE le traverse de gauche à droite. */
.tr-shimmer{background:linear-gradient(90deg,var(--fg) 35%,color-mix(in srgb,var(--fg) 22%,var(--bg)) 50%,var(--fg) 65%);background-size:200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:ldShimmer 1.4s linear infinite}
.tr-liste{max-height:180px;overflow-y:auto;mask-image:linear-gradient(to bottom,transparent 0,#000 8px,#000 calc(100% - 16px),transparent 100%);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 8px,#000 calc(100% - 16px),transparent 100%);scrollbar-width:none}
.tr-liste::-webkit-scrollbar{display:none}
@media(prefers-reduced-motion:reduce){.tr-shimmer{animation:none;background:none;color:var(--muted)}}
/* Comme dans Claude : les points seuls d'abord, le libellé apparaît en fondu au bout de ~2 s (après .tr-shimmer pour l'emporter sur son animation). */
.tr-tete-tardive .tr-shimmer{animation:tr-apparait .3s ease-out 1.8s both,ldShimmer 1.4s linear infinite}
@keyframes tr-apparait{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.tr-tete-tardive .tr-shimmer{animation:none}}
/* Attente d'une image : une grille de points sur un carré, une onde part du centre (idée vue sur aicss.dev, dessinée ici). */
.ig-cadre[data-format="3:2"]{width:min(360px,100%)}
.ig-cadre[data-format="2:3"]{width:min(240px,100%)}
.ig-bloc{display:flex;flex-direction:column;gap:12px;padding:6px 0 2px;max-width:100%}
.ig-cadre{width:min(300px,100%);transition:aspect-ratio var(--dur-lent);border-radius:18px;background:color-mix(in srgb,var(--fg) 4%,var(--bg));border:0;padding:5%;display:grid;grid-template-columns:repeat(15,1fr);grid-template-rows:repeat(15,1fr);place-items:center;overflow:hidden}
.ig-pt{width:4px;height:4px;border-radius:50%;background:var(--fg);opacity:var(--ig-base);transform:scale(.55);animation:ig-onde 2.6s ease-in-out infinite;animation-delay:calc(var(--ig-d) * 1.5s)}
@keyframes ig-onde{0%,100%{transform:scale(.55);opacity:var(--ig-base)}35%{transform:scale(1.55);opacity:calc(var(--ig-base) + .4)}60%{transform:scale(.8);opacity:var(--ig-base)}}
.ig-titre{font-size:14px;font-weight:600;line-height:1.3}
.ig-sous{font-size:13px;color:var(--muted);line-height:1.4;max-width:300px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(prefers-reduced-motion:reduce){.ig-pt{animation:none;transform:scale(1)}}
.tr-live{display:flex;flex-direction:column}
/* La ligne d'état en direct (« Génération du code… ») touchait la première ligne du texte qui s'écrit dessous (12/11/2026). */
.msg .tr-live:not(:last-child){margin-bottom:8px}
.tr-liste-live{margin-top:0}
.tr-live-tete{display:flex;align-items:center;gap:2px}
.tr-live-tete .pt-chg{margin-right:calc(5px + .15em)}   /* les points de réflexion débordent un peu de leur boîte : au moins 10 px de libre avant le texte */
.oc-vivant-bloc{min-width:0;max-width:100%}
.oc-vivant{width:100%;max-width:100%;min-width:0;box-sizing:border-box;display:flex;align-items:center;gap:10px;margin:8px 0 2px;padding:0;border:0;background:none;color:var(--muted);font:inherit;font-size:15px;text-align:left}
button.oc-vivant:not(:disabled){cursor:pointer}
button.oc-vivant:disabled{cursor:default;opacity:1}
.oc-vivant-bloc.ouvert .oc-vivant .cl-etape-chevron svg{transform:rotate(90deg)}
.oc-vivant-cmd{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px 16px;border-bottom:1px solid var(--border)}   /* première ligne de la capsule des actions */
.oc-vivant-cmd code{font-family:var(--font-mono);font-size:13px;color:var(--fg);word-break:break-all}
.oc-vivant-cmd pre{margin:0;padding:0;max-height:150px;overflow:auto;font-family:var(--font-mono);font-size:12px;line-height:1.45;color:var(--muted);white-space:pre-wrap;word-break:break-word}
.oc-vivant-cible{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:13px;color:var(--muted);opacity:.8}
.oc-vivant-duree{flex:none;font-size:13px;font-variant-numeric:tabular-nums;color:var(--muted)}
.oc-activite-tete .pt-chg{margin-right:calc(10px + .15em)}
/* Sept animations de ronds (maquette « Animations de réflexion », validée par le propriétaire le 30/10/2026). Toujours des ronds de la couleur d'accent,
   dans la même boîte de 1,4 em × 1 em. Les dessins « 3d » sont un triangle plat vu en perspective : les ronds passent derrière (le volume vient de `perspective`). */
@keyframes pt-grossit{0%,100%{scale:.7}50%{scale:1.2}}
@property --tx{syntax:'<angle>';inherits:true;initial-value:0deg}
@property --ty{syntax:'<angle>';inherits:true;initial-value:0deg}
@property --tz{syntax:'<angle>';inherits:true;initial-value:0deg}
@property --zz{syntax:'<length>';inherits:true;initial-value:0px}
.pt-claude{display:block;width:1.4em;height:1em;overflow:visible;fill:currentColor}
.pt-chg{display:inline-block;position:relative;width:1.4em;height:1em;flex:none;color:var(--accent)}
.pt-couche{position:absolute;inset:0;display:block}
.pt-an{display:block;position:relative;width:1.4em;height:1em;color:var(--accent);perspective:2.6em}
.pt-an .o{position:absolute;left:50%;top:50%;display:block;width:var(--d,.22em);height:var(--d,.22em);margin:calc(var(--d,.22em) / -2) 0 0 calc(var(--d,.22em) / -2);border-radius:50%;background:currentColor}
.pt-3d .s{position:absolute;left:50%;top:50%;width:0;height:0;transform-style:preserve-3d;transform:translateZ(var(--zz)) rotateX(var(--tx)) rotateY(var(--ty)) rotateZ(var(--tz))}
.pt-3d .o{transform:translate3d(var(--vx),var(--vy),0) rotateZ(calc(-1 * var(--tz))) rotateY(calc(-1 * var(--ty))) rotateX(calc(-1 * var(--tx)))}
/* Transition « retour au centre » : les ronds de l'ancien dessin rejoignent le centre, puis ceux du nouveau dessin en partent (voir glisserPoints) */
.pt-fantome{opacity:0}
.pt-ov{position:absolute;left:50%;top:50%;border-radius:50%;background:currentColor;opacity:0;pointer-events:none;will-change:transform}
.pt-ov.on{opacity:1}
/* Réflexion : triangle plat, vu de haut et en biais, qui tourne lentement sur lui-même */
.pt-pense .s{--tx:68deg;animation:pt-tourne 1.44s linear infinite}   /* mesuré sur la vidéo de l'appli Claude (23/11/2026) : le motif revient toutes les 0,48 s, soit 1,44 s par tour */
@keyframes pt-tourne{to{--tz:360deg}}
/* Action : trois ronds s'échangent leurs places par des arcs, l'un par-dessus, l'autre par-dessous */
.pt-agit .x{position:absolute;left:50%;top:50%;width:0;height:0;translate:calc((var(--n) - 1) * .5em) 0;animation:pt-jongle-x 1.8s infinite;animation-delay:calc(var(--n) * -.6s)}
.pt-agit .o{left:0;top:0;animation:pt-jongle-y 1.8s infinite;animation-delay:calc(var(--n) * -.6s)}
@keyframes pt-jongle-x{0%{translate:-.5em 0;animation-timing-function:ease-in-out}33.33%{translate:0 0;animation-timing-function:ease-in-out}66.67%{translate:.5em 0;animation-timing-function:ease-in-out}100%{translate:-.5em 0}}
@keyframes pt-jongle-y{0%{translate:0 0;animation-timing-function:ease-in-out}16.67%{translate:0 -.27em;animation-timing-function:ease-in-out}33.33%{translate:0 0;animation-timing-function:ease-in-out}50%{translate:0 .27em;animation-timing-function:ease-in-out}66.67%{translate:0 0;animation-timing-function:ease-in-out}83.33%{translate:0 -.4em;animation-timing-function:ease-in-out}100%{translate:0 0}}
/* Code : quatre ronds aux coins d'un carré, qui pivote d'un quart de tour pendant que les coins respirent */
.pt-codeancien{animation:pt-carre-tourne 1.82s cubic-bezier(.65,0,.35,1) infinite}
.pt-codeancien .o{translate:calc(var(--sx) * .27em) calc(var(--sy) * .27em);animation:pt-carre-respire 1.82s ease-in-out infinite}
@keyframes pt-carre-tourne{0%,10%{rotate:0deg}48%,60%{rotate:90deg}100%{rotate:180deg}}
@keyframes pt-carre-respire{0%,10%,60%,100%{translate:calc(var(--sx) * .27em) calc(var(--sy) * .27em);scale:1}30%,80%{translate:calc(var(--sx) * .34em) calc(var(--sy) * .34em);scale:.75}}
/* Attente longue (plus de 20 s) : un rond se divise en deux, puis en quatre (carré), le carré devient un triangle qui culbute dans l'espace, puis tout se rejoint */
.pt-long .s{animation:pt-long-s 12s ease-in-out infinite}
.pt-long .o:nth-child(1){animation:pt-long-a 12s ease-in-out infinite}
.pt-long .o:nth-child(2){animation:pt-long-b 12s ease-in-out infinite}
.pt-long .o:nth-child(3){animation:pt-long-d 12s ease-in-out infinite}
.pt-long .o:nth-child(4){animation:pt-long-c 12s ease-in-out infinite}
@keyframes pt-long-s{0%,54%{--tx:0deg;--ty:0deg}86%,100%{--tx:720deg;--ty:360deg}}
@keyframes pt-long-a{0%,5%,100%{translate:0 .36em}16%,22%{translate:-.22em .36em}34%,42%{translate:-.24em .12em}54%,88%{translate:0 0}94%{translate:-.22em .36em}}
@keyframes pt-long-b{0%,5%,100%{translate:.312em -.18em}16%,22%{translate:.092em -.18em}34%,42%{translate:.072em .06em}54%,88%{translate:0 0}94%{translate:.092em -.18em}}
@keyframes pt-long-d{0%,5%,100%{translate:-.312em -.18em}16%,22%{translate:-.092em -.18em}34%,42%{translate:-.072em .06em}54%,88%{translate:0 0}94%{translate:-.092em -.18em}}
@keyframes pt-long-c{0%,5%,100%{translate:0 .36em}16%,22%{translate:.22em .36em}34%,42%{translate:.24em .12em}54%,88%{translate:0 0}94%{translate:.22em .36em}}
/* Réflexion qui dure (12 à 20 s d'attente) : l'ancienne réflexion du site, trois ronds qui suivent chacun leur orbite, changent de taille, se frôlent puis se séparent */
@keyframes pt-orbite-a{to{rotate:360deg}}
@keyframes pt-orbite-b{to{rotate:-360deg}}
.pt-orbite .d{position:absolute;top:.5em;width:0;height:0}
.pt-orbite .d b{position:absolute;left:-.12em;top:-.12em;width:.24em;height:.24em;border-radius:50%;background:currentColor;animation:pt-grossit 1.33s ease-in-out infinite}
.pt-orbite .d1{left:.2em;animation:pt-orbite-a 1.8s linear infinite}.pt-orbite .d1 b{transform:translateX(.18em)}
.pt-orbite .d2{left:.7em;animation:pt-orbite-b 2.27s linear infinite}.pt-orbite .d2 b{transform:translateX(.17em);animation-duration:1.67s;animation-delay:-.47s}
.pt-orbite .d3{left:1.2em;animation:pt-orbite-a 2s linear infinite;animation-delay:-.73s}.pt-orbite .d3 b{transform:translateX(.2em);animation-duration:1.47s;animation-delay:-.93s}
/* Vérification (Astra Code regarde ce qu'il a fabriqué) : le triangle plat se retourne d'un demi-tour, avec une pause à chaque fois */
.pt-verif .s{--tx:62deg;animation:pt-retourne 5s ease-in-out infinite}
@keyframes pt-retourne{0%,15%{--tz:0deg}50%,65%{--tz:180deg}100%{--tz:360deg}}
/* Lecture (fichiers, documents) : le triangle plat tourne en s'éloignant au fond puis en revenant */
.pt-lecture .s{--tx:62deg;animation:pt-tourne 6s linear infinite,pt-plonge 4.4s ease-in-out infinite}
@keyframes pt-plonge{0%,100%{--zz:.6em}50%{--zz:-1em}}
@media(prefers-reduced-motion:reduce){.pt-an,.pt-an *{animation:none!important}.pt-ov{display:none}}
.tr-live-plus{display:grid;place-items:center;width:24px;height:24px;border-radius:var(--radius-sm);color:var(--muted);transition:background var(--dur-fast),color var(--dur-fast)}
@media(hover:hover){.tr-live-plus:hover{background:var(--surface-hover);color:var(--fg)}}
.tr-spin{margin:0 1px}
.tr-pts,.sa-pts{display:inline-flex;align-items:center;flex:none;color:var(--accent)}
.tr-pts{margin:0 2px 0 0}
@media(prefers-reduced-motion:reduce){.tr-corps,.tr-chevron,.tr-ligne{transition:none!important;animation:none!important}.tr-spin{animation-duration:1.6s}}
/* ── Carte d'approbation — composant 04 de beautifului.dev (MIT), adapté ── */
.ap-carte{position:relative;width:100%;max-width:340px;margin:12px 0 4px;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-md);animation:tr-monte .38s var(--ease-out) both}
.ap-fermer{position:absolute;top:8px;right:8px;width:24px;height:24px;display:grid;place-items:center;border-radius:var(--radius-sm);color:var(--muted);transition:background var(--dur-fast),color var(--dur-fast)}
@media(hover:hover){.ap-fermer:hover{background:var(--surface-hover);color:var(--fg)}}
.ap-fermer svg{width:14px;height:14px}
.ap-question{padding:16px 16px 6px;animation:tr-monte .32s var(--ease-out) both}
.ap-titre{padding-right:26px;font-size:14px;font-weight:600;line-height:1.4;color:var(--fg)}
.ap-texte{margin-top:8px;font-size:13px;line-height:1.55;color:var(--muted)}
.ap-options{display:flex;flex-direction:column;gap:2px;margin-top:10px}
.ap-option{display:flex;align-items:center;gap:9px;width:100%;min-height:32px;padding:4px 8px 4px 6px;border-radius:var(--radius-sm);text-align:left;font-size:13px;color:var(--muted);transition:background var(--dur-fast),color var(--dur-fast)}
@media(hover:hover){.ap-option:hover{background:var(--surface-hover)}}
.ap-option.on{color:var(--fg)}
.ap-case{flex-shrink:0;width:16px;height:16px;display:grid;place-items:center;color:transparent;box-shadow:inset 0 0 0 1.5px var(--border);transition:background var(--dur-base),box-shadow var(--dur-base),color var(--dur-base)}
.ap-case.rond{border-radius:50%}.ap-case.carre{border-radius:5px}
.ap-option.on .ap-case{background:var(--accent);box-shadow:none;color:var(--accent-ink)}
.ap-point{width:6px;height:6px;border-radius:50%;background:var(--accent-ink);transform:scale(0);transition:transform var(--dur-base)}
.ap-option.on .ap-point{transform:scale(1)}
.ap-libre input{flex:1;min-width:0;padding-left:25px;font-size:13px;color:var(--fg)}
.ap-libre input::placeholder{color:var(--muted)}
.ap-pied{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px 12px 16px;border-top:1px solid var(--border);margin-top:8px}
.ap-pas{display:flex;align-items:center;gap:4px;font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;color:var(--muted)}
.ap-pas button{width:20px;height:20px;display:grid;place-items:center;border-radius:5px}
@media(hover:hover){.ap-pas button:hover:not(:disabled){color:var(--fg)}}.ap-pas button:disabled{opacity:var(--inactif)}
.ap-actions{display:flex;align-items:center;gap:6px}
.ap-passer{height:30px;padding:0 12px;border-radius:var(--radius-full);font-size:13px;font-weight:500;color:var(--muted);transition:background var(--dur-fast),color var(--dur-fast)}
@media(hover:hover){.ap-passer:hover:not(:disabled){background:var(--surface-hover);color:var(--fg)}}
.ap-continuer{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 6px 0 14px;border-radius:var(--radius-full);font-size:13px;font-weight:600;background:var(--accent);color:var(--accent-ink);transition:background var(--dur-fast),opacity var(--dur-fast),transform var(--dur-fast)}
@media(hover:hover){.ap-continuer:hover:not(:disabled){background:var(--accent-hover)}}.ap-continuer:active:not(:disabled){transform:scale(.97)}
.ap-continuer:disabled{opacity:var(--inactif);cursor:not-allowed}
.ap-continuer.danger{background:var(--danger);color:#fff}
.ap-continuer kbd{font:inherit;font-size:11px;min-width:20px;height:20px;display:grid;place-items:center;border-radius:var(--radius-full);background:rgba(255,255,255,.22)}
/* Carte de questions posée au-dessus de la zone de saisie (la zone reste visible dessous) ; sur petit écran, elle défile si elle est trop haute. */
.chat-input-inner>.ap-carte:not(.ap-confirm){margin:0 0 10px;max-height:min(62dvh,560px);overflow-y:auto}
/* Ligne « Réponses envoyées » dépliable : une question, sa réponse. */
.rq-liste{position:relative;display:flex;flex-direction:column;gap:6px;margin:6px 0 2px 5px;padding:2px 0 2px 16px;max-height:260px;overflow-y:auto}
.rq-liste::before{content:"";position:absolute;left:3px;top:0;bottom:0;width:1px;background:var(--border)}   /* même filet que la liste de « Réflexion » */
.rq-ligne{display:flex;align-items:flex-start;gap:8px;padding:2px 6px;font-size:13px;animation:tr-monte .32s var(--ease-out) both}
.rq-ligne .tr-ico{margin-top:3px;flex:none}
.rq-texte{min-width:0;overflow-wrap:anywhere}
.rq-q{color:var(--muted)}
.rq-r{color:var(--fg);font-weight:500}
.ap-envoye{display:inline-flex;align-items:center;gap:7px;margin:10px 0 2px;padding:3px 11px 3px 4px;border-radius:var(--radius-full);font-size:13px;font-weight:500;background:color-mix(in oklch,var(--success) 14%,var(--surface));color:var(--success);animation:tr-monte .26s var(--ease-out) both}
.ap-coche{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;background:var(--success);color:#fff}
.ap-voile{position:fixed;inset:0;z-index:300;display:grid;place-items:center;padding:16px;background:rgba(0,0,0,.35);animation:sa-fondu var(--dur-med) ease-out both}
.ap-confirm{max-width:400px;margin:0}
.ap-mot{display:flex;flex-direction:column;gap:6px;margin-top:14px;font-size:13px}
.ap-mot input{width:100%}
.ap-confirm .ap-titre+*{margin-top:10px}
.ap-confirm .ap-question>*+*:not(.ap-mot){margin-top:10px}
/* Carte de question d'Astra (20/10/2026) : plus grande et plus lisible, Chat et espace Code. Les confirmations (.ap-confirm) gardent leur forme. */
.ap-carte:not(.ap-confirm){max-width:100%;border-radius:24px;box-shadow:0 14px 40px -18px rgba(0,0,0,.22);overflow:hidden}
.ap-carte:not(.ap-confirm) .ap-fermer{display:none}
.ap-carte:not(.ap-confirm) .ap-question{padding:0}
.ap-carte:not(.ap-confirm) .ap-tete{display:flex;align-items:flex-start;gap:12px;padding:22px 22px 14px}
.ap-carte:not(.ap-confirm) .ap-tete .ap-titre{flex:1;min-width:0;padding:0;font-size:19px;font-weight:600;line-height:1.3;letter-spacing:-.01em}
.ap-carte:not(.ap-confirm) .ap-tete .ap-pas{margin-top:-2px;gap:2px;font-size:14px;color:var(--muted);white-space:nowrap}
.ap-carte:not(.ap-confirm) .ap-pas button{width:34px;height:36px;border-radius:var(--radius-sm)}
.ap-carte:not(.ap-confirm) .ap-options{margin-top:0;gap:0}
.ap-carte:not(.ap-confirm) .ap-option{min-height:64px;padding:10px 22px;gap:14px;border-radius:0;border-top:1px solid var(--border);font-size:16px;color:var(--fg)}
.ap-carte:not(.ap-confirm) .ap-option.on{background:color-mix(in srgb,var(--accent) 10%,var(--surface));font-weight:600}
.ap-num{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:10px;background:var(--surface-hover);color:var(--muted);font-size:15px;font-weight:500}
.ap-option.on .ap-num{background:var(--accent);color:var(--accent-ink);font-weight:600}
.ap-carte:not(.ap-confirm) .ap-case.carre{width:26px;height:26px;border-radius:var(--radius-sm);box-shadow:inset 0 0 0 2px var(--border)}
.ap-option-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ap-option-texte small{font-size:14px;font-weight:400;color:var(--muted)}
.ap-option-coche{flex:none;color:var(--accent)}
.ap-carte:not(.ap-confirm) .ap-libre{display:flex;align-items:center;gap:10px;margin:8px 14px 0;padding:6px 6px 6px 10px;border-radius:18px;background:var(--surface-hover)}
.ap-libre-ico{width:36px;height:36px;flex:none;display:grid;place-items:center;border-radius:11px;background:color-mix(in srgb,var(--fg) 8%,var(--surface-hover));color:var(--fg)}
.ap-carte:not(.ap-confirm) .ap-libre input{flex:1;min-width:0;height:40px;padding:0;border:0;background:transparent;font-size:16px;color:var(--fg);outline:none}
.ap-libre-envoi{width:40px;height:40px;flex:none;display:grid;place-items:center;border-radius:50%;background:var(--accent);color:var(--accent-ink)}
.ap-libre-envoi:disabled{opacity:var(--inactif);cursor:default}
.ap-carte:not(.ap-confirm) .ap-pied{border-top:0;margin-top:6px;padding:8px 14px 12px 22px}
.ap-aide-touches{display:none;font-size:13px;color:var(--muted)}
@media(hover:hover) and (pointer:fine){.ap-aide-touches{display:inline}}
.ap-carte:not(.ap-confirm) .ap-passer{height:44px;padding:0 14px;font-size:15px}
.ap-carte:not(.ap-confirm) .ap-continuer{height:44px;padding:0 22px;font-size:15px}
.cl-question-carte{margin:12px 0}
@media(prefers-reduced-motion:reduce){.ap-carte,.ap-question,.ap-envoye,.ap-voile{animation:none}}
.code-live-statut{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:14px;color:var(--muted)}
.code-live-pre{margin:0;padding:10px 14px;max-height:250px;overflow:hidden;font-family:var(--font-mono);font-size:12px;line-height:1.55;white-space:pre;color:var(--fg);mask-image:linear-gradient(to bottom,transparent 0,#000 24px);-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 24px)}
.code-live .code-head{gap:6px}
.code-live-pt{margin-left:auto;width:6px;height:6px;border-radius:50%;background:var(--accent);animation:sa-fondu .9s ease-in-out infinite alternate}
@media(prefers-reduced-motion:reduce){.code-live-pt{animation:none}}
.chat-input-inner{position:relative}
.scroll-bas{position:absolute;left:50%;top:-48px;transform:translateX(-50%);z-index:20;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-md);color:var(--fg);animation:scroll-bas-in .26s cubic-bezier(.2,.8,.2,1) both;transition:background var(--dur-med)}
@media(hover:hover){.scroll-bas:hover{background:var(--surface-hover)}}
.scroll-bas--vivant{color:var(--accent)}
@keyframes scroll-bas-in{0%{opacity:0;transform:translate(-50%,8px) scale(.85)}100%{opacity:1;transform:translate(-50%,0)}}
@media(prefers-reduced-motion:reduce){.scroll-bas{animation:none}}
.msg.msg-vivant{animation:none}
/* Mode actif (Puissant / Ultra) en haut du Chat, PC et téléphone : du texte simple, sans pastille ni fond. */
.chat-top-bar .tag.chat-mode-pill{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;height:auto;border-radius:0;color:var(--fg);font-size:15px!important;font-weight:600;letter-spacing:-.005em!important;text-transform:none;line-height:1.3}
/* ── Barre latérale v3 (audit UX 05/10/2026) : navigation compacte, conversations récentes, menu de profil ── */
.sidebar-inner>.sidebar-nav{flex:0 0 auto;overflow:visible;padding-bottom:4px}
.sidebar-inner>.sidebar-nav .nav-item{min-height:38px;padding:7px 12px}
.sb-recents{flex:1 1 auto;min-height:0;overflow-y:auto;padding:4px 12px 12px;scrollbar-width:thin;scrollbar-color:var(--border) transparent;border-top:1px solid var(--border)}
.sb-recents-groupe+.sb-recents-groupe{margin-top:6px}
.sb-recents-titre{font-size:11px;font-weight:600;color:var(--muted);padding:10px 8px 4px;letter-spacing:.02em}
.sb-recent{position:relative;display:flex;align-items:center;border-radius:var(--radius-sm)}
.sb-recent:focus-within{background:var(--surface-hover)}
@media(hover:hover){.sb-recent:hover{background:var(--surface-hover)}}
.sb-recent.actif{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.sb-recent-ouvrir{flex:1;min-width:0;display:flex;align-items:center;gap:6px;padding:7px 4px 7px 8px;min-height:34px;background:none;border:none;color:var(--fg);font-size:13px;text-align:left;cursor:pointer}
.sb-recent-ouvrir span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-recent-ouvrir svg{width:13px;height:13px;flex-shrink:0;color:var(--muted)}
.sb-recent.actif .sb-recent-ouvrir{font-weight:600}
.sb-recent-plus{flex-shrink:0;width:30px;height:30px;margin-right:2px;border-radius:6px;display:flex;align-items:center;justify-content:center;background:none;border:none;color:var(--muted);opacity:0;transition:opacity var(--dur-fast)}
.sb-recent:focus-within .sb-recent-plus,.sb-recent-plus[aria-expanded="true"]{opacity:1}
@media(hover:hover){.sb-recent:hover .sb-recent-plus{opacity:1}}
@media(hover:none){.sb-recent-plus{opacity:.7}}
@media(hover:hover){.sb-recent-plus:hover{color:var(--fg);background:var(--surface)}}
.rn-voile{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(0,0,0,.45);animation:sa-fondu var(--dur-fast) ease-out}
.rn-boite{width:min(92vw,420px);padding:24px 24px 18px;border-radius:28px;background:color-mix(in srgb,var(--fg) 9%,var(--bg));box-shadow:0 10px 40px rgba(0,0,0,.25)}
.rn-champ{position:relative;display:block;margin-top:6px}
.rn-champ input{width:100%;box-sizing:border-box;height:56px;padding:0 16px;font:inherit;font-size:18px;color:var(--fg);background:transparent;border:1.5px solid var(--fg);border-radius:10px;outline:none}
.rn-champ input:focus{border-width:2px}
.rn-champ span{position:absolute;left:12px;top:-9px;padding:0 6px;font-size:13px;line-height:18px;color:var(--fg);background:color-mix(in srgb,var(--fg) 9%,var(--bg))}
.rn-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}
.rn-actions button{min-height:44px;padding:0 14px;border:0;border-radius:var(--radius-full);background:none;color:var(--fg);font:inherit;font-size:16px;font-weight:600;cursor:pointer}
@media(hover:hover){.rn-actions button:hover:not(:disabled){background:var(--surface-hover)}}
.rn-actions button:disabled{opacity:var(--inactif);cursor:default}
.sb-recent-edition{flex:1;min-width:0;margin:2px 4px;padding:6px 8px;font-size:13px;border:1px solid var(--accent);border-radius:6px;background:var(--bg);color:var(--fg)}
.sb-recent-menu,.sb-profil-menu{position:absolute;z-index:30;min-width:180px;padding:5px;border:1px solid var(--border);border-radius:10px;background:var(--bg);box-shadow:0 8px 28px rgba(0,0,0,.14);animation:fadeIn var(--dur-fast)}
.sb-recent-menu{right:0;top:calc(100% + 2px)}
.sb-recent-menu button,.sb-profil-menu button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;min-height:36px;border:none;background:none;border-radius:6px;color:var(--fg);font-size:13px;text-align:left;cursor:pointer}
@media(hover:hover){.sb-recent-menu button:hover,.sb-profil-menu button:hover{background:var(--surface-hover)}}
.sb-recent-menu button svg,.sb-profil-menu button svg{width:20px;height:20px;flex:0 0 20px;color:var(--muted)}
.sb-recent-menu button.danger,.sb-recent-menu button.danger svg{color:var(--danger)}
.sidebar-footer{flex-direction:column;align-items:stretch}
.sb-profil{position:relative}
.sb-profil-menu{left:0;right:0;bottom:calc(100% + 6px)}
.sb-profil-sep{height:1px;margin:4px 6px;background:var(--border)}
.sb-profil-bouton{display:flex;align-items:center;gap:10px;width:100%;padding:6px 8px;min-height:44px;border:none;background:none;border-radius:10px;color:var(--fg);cursor:pointer;text-align:left}
.sb-profil-bouton[aria-expanded="true"]{background:var(--surface-hover)}
@media(hover:hover){.sb-profil-bouton:hover{background:var(--surface-hover)}}
.sb-profil-avatar{width:30px;height:30px;flex-shrink:0;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink,#fff);font-weight:600;font-size:13px}
.sb-profil-texte{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.sidebar-footer .sb-profil-nom{font-size:13px;font-weight:600;color:var(--fg);letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-footer .sb-profil-plan{font-size:11px;color:var(--muted)}
.sb-profil-bouton>svg{width:15px;height:15px;color:var(--muted);transition:transform var(--dur-med)}
.sb-profil-bouton[aria-expanded="false"]>svg{transform:rotate(180deg)}
@media(min-width:769px){.sidebar.closed .sb-recents{display:none}}
/* Accueil du Chat : salutation + raccourcis (audit UX 05/10/2026). */
.accueil-chat{text-align:center;padding:48px 16px 8px;user-select:none;-webkit-user-select:none}
.accueil-titre{font-family:var(--font-display);font-size:34px;font-weight:600;letter-spacing:-.03em;margin:0 0 8px;color:var(--fg)}
.accueil-sous-titre{font-size:16px;color:var(--muted);margin:0 0 22px}
.accueil-suggestions{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;transition:opacity var(--dur-base),transform var(--dur-base)}
.accueil-suggestions.masquees{opacity:0;transform:translateY(4px);pointer-events:none}
.accueil-suggestion{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:9px 14px;min-height:40px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg);color:var(--fg);font-size:14px;cursor:pointer;transition:background var(--dur-fast),border-color var(--dur-fast)}
@media(hover:hover){.accueil-suggestion:hover{background:var(--surface-hover);border-color:color-mix(in srgb,var(--fg) 25%,var(--border))}}
.accueil-suggestion svg{width:15px;height:15px;color:var(--accent);flex-shrink:0}
.accueil-suggestion span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:600px){.accueil-chat{padding:24px 0 8px}.accueil-titre{font-size:28px}
  .accueil-suggestions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .accueil-suggestion{min-width:0;width:100%;justify-content:flex-start;align-items:flex-start;border-radius:var(--radius-md);text-align:left;padding:10px 12px}
  .accueil-suggestion svg{margin-top:2px}
  .accueil-suggestion span{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.3}
}
/* Fil plus léger (audit UX 05/10/2026) : le libellé « Astra » au-dessus de chaque réponse n'est plus affiché (gardé pour
   les lecteurs d'écran), et la réponse se rapproche de sa question (~70 px d'écart auparavant). */
.chat-view .msg:not(.msg-user)>.msg-role{position:absolute;width:1px;height:1px;margin:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.chat-view .msg{padding:10px 0}
.chat-view .msg-user+.msg:not(.msg-user){padding-top:4px}
/* Actions sous une réponse : zone tactile 36 px, ✓ après copie, menu ⋯ (Partager, Exporter). */
.chat-view .msg:not(.msg-user) .msg-actions button{width:34px;height:34px;border-radius:var(--radius-sm)}
/* Un titre en tête de réponse ne rajoute pas sa marge haute à l'écart question → réponse. */
.chat-view .msg-content>h3:first-child,.chat-view .msg-content>h4:first-child,.chat-view .msg-flux>div:first-child>h3:first-child,.chat-view .msg-flux>div:first-child>h4:first-child{margin-top:0}
.msg-actions button.copie-ok{color:var(--success)}
.msg-actions button.copie-ok svg{animation:copiePop .2s cubic-bezier(.2,.8,.2,1)}
.msg-plus{position:relative}
.msg-plus-menu{position:absolute;left:0;top:calc(100% + 4px);z-index:40;min-width:170px;padding:5px;border:1px solid var(--border);border-radius:10px;background:var(--bg);box-shadow:0 8px 28px rgba(0,0,0,.14);animation:fadeIn var(--dur-fast)}
.msg-plus-menu.vers-haut{top:auto;bottom:calc(100% + 4px)}
.msg-actions .msg-plus-menu button{width:100%;height:auto;min-height:36px;justify-content:flex-start;gap:10px;padding:8px 10px;font-size:13px;color:var(--fg)}
.msg-actions .msg-plus-menu button svg{color:var(--muted)}
/* Écrans tactiles : zones de toucher de 44 px sous les messages, sans changer l'apparence (marges négatives : les icônes et les espacements restent aux mêmes endroits). */
@media(hover:none) and (pointer:coarse){
  .msg-actions>button,.msg-actions>.msg-plus>button{width:44px;height:44px;margin:-8px}
  .chat-view .msg:not(.msg-user) .msg-actions>button,.chat-view .msg:not(.msg-user) .msg-actions>.msg-plus>button{width:44px;height:44px;margin:-5px}
  .tr-entete{min-height:44px;margin-top:-10px;margin-bottom:-10px}
  .code-session-plus{width:44px;height:44px;top:6px;right:6px}
}
/* ── Barre latérale v4 (demande du 05/10/2026) : état actif SANS fond — simple changement de ton (texte et icône plus
   nets, graisse 600) ; le survol garde un voile très léger. Bouton de profil redessiné, intégré au pied de barre. ── */
.sidebar .nav-item{color:color-mix(in srgb,var(--fg) 60%,transparent)}
.sidebar .nav-item>svg{opacity:.75;transition:opacity var(--dur-med)}
@media(hover:hover){.sidebar .nav-item:hover{color:var(--fg)}}
.sidebar .nav-item.active{background:transparent;color:var(--fg);font-weight:600}
@media(hover:hover){.sidebar .nav-item.active:hover,.sidebar-glide .nav-item.active:hover{background:transparent;color:var(--fg);font-weight:600}}
.sidebar .nav-item.active>svg{color:var(--fg);opacity:1}
/* Lot D (12/11/2026) : la conversation ouverte porte un fond neutre (repère de la référence : `.nav.cur`), plus net que la seule graisse ;
   le survol reste plus léger (4 %) ; la ligne dont le menu est ouvert garde le fond du survol. */
.sb-recent.actif{background:color-mix(in srgb,var(--fg) 8%,transparent)}
@media(hover:hover){.sb-recent.actif:hover{background:color-mix(in srgb,var(--fg) 8%,transparent)}}
.sb-recent.menu-ouvert:not(.actif){background:color-mix(in srgb,var(--fg) 4%,transparent)}
.sb-recent{transition:background-color .06s linear}
.sb-recent-ouvrir{color:color-mix(in srgb,var(--fg) 68%,transparent)}
.sb-recent.actif .sb-recent-ouvrir{color:var(--fg)}
@media(hover:hover){.sb-recent:hover .sb-recent-ouvrir{color:var(--fg)}}
@media(hover:hover){.sb-recent:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.sidebar-footer{gap:10px;padding:12px}
.sb-profil-bouton{gap:10px;padding:7px 8px;min-height:48px;border-radius:var(--radius-md);border:1px solid transparent;transition:background var(--dur-med),border-color var(--dur-med)}
@media(hover:hover){.sb-profil-bouton:hover{background:color-mix(in srgb,var(--fg) 4%,transparent);border-color:color-mix(in srgb,var(--fg) 8%,transparent)}}
.sb-profil-bouton[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 5%,transparent);border-color:color-mix(in srgb,var(--fg) 10%,transparent)}
.sb-profil-avatar{width:32px;height:32px;border-radius:50%;font-size:13px;font-weight:600;letter-spacing:0;
  background:linear-gradient(140deg,color-mix(in srgb,var(--accent) 22%,var(--bg)),color-mix(in srgb,var(--accent) 8%,var(--bg)));
  color:var(--accent);box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--accent) 20%,transparent)}
.sidebar-footer .sb-profil-nom{font-size:13px;font-weight:600}
.sidebar-footer .sb-profil-plan{font-size:12px;color:var(--muted);letter-spacing:0}
.sb-profil-fleche{display:flex;color:var(--muted);opacity:.7}
.sb-profil-fleche svg{width:15px;height:15px}
.sb-profil-bouton>svg{display:none}
.sb-profil-menu{padding:6px;border-radius:var(--radius-md)}
.sb-profil-entete{padding:8px 10px 6px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border-bottom:1px solid var(--border);margin-bottom:4px}
/* ══ Réglages v3 (06/10/2026, références de l'utilisateur) ══ */
/* Contrôles segmentés (thème, animations) */
.segments{display:inline-flex;align-items:center;gap:2px;padding:3px;border-radius:10px;background:color-mix(in srgb,var(--fg) 6%,var(--bg));flex-shrink:0}
.segment{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:32px;padding:5px 14px;border:none;border-radius:var(--radius-sm);background:transparent;color:var(--muted);font-size:14px;cursor:pointer;transition:background var(--dur-med),color var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.segment:hover{color:var(--fg)}}
.segment.actif{background:var(--bg);color:var(--fg);box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 1px color-mix(in srgb,var(--fg) 6%,transparent)}
.segments-icones .segment{width:38px;padding:5px}
.segments-icones .segment svg{width:18px;height:18px}
.settings-pro .theme-choice{min-width:0;height:auto}
/* Menu des réglages — commun */
.reglages-ligne{display:flex;align-items:center;gap:14px;width:100%;border:none;background:none;color:var(--fg);text-align:left;cursor:pointer;font:inherit}
.reglages-ligne-icone{display:flex;flex-shrink:0;color:var(--fg)}
.reglages-ligne-texte{flex:1;min-width:0;display:flex;flex-direction:column}
.reglages-ligne-titre{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reglages-ligne-sous{color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reglages-ligne-chevron{display:flex;color:var(--muted);flex-shrink:0}
/* Menu — colonne de la fenêtre (PC) */
.reglages-menu-barre{display:flex;flex-direction:column;gap:2px}
.reglages-recherche{display:flex;align-items:center;gap:10px;height:42px;padding:0 12px;margin-bottom:14px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--muted)}
.reglages-recherche:focus-within{border-color:color-mix(in srgb,var(--fg) 30%,var(--border))}
.reglages-recherche svg{width:18px;height:18px;flex-shrink:0}
.reglages-recherche input{flex:1;min-width:0;border:none;background:none;outline:none;font-size:15px;color:var(--fg)}
.reglages-menu-titre{font-size:13px;color:var(--muted);padding:6px 12px 8px}
.reglages-menu-barre .reglages-groupe+.reglages-groupe{margin-top:10px}
.reglages-menu-barre .reglages-ligne{height:40px;padding:0 12px;border-radius:var(--radius-sm);font-size:14px;gap:12px}
@media(hover:hover){.reglages-menu-barre .reglages-ligne:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
.reglages-menu-barre .reglages-ligne.selected{background:color-mix(in srgb,var(--fg) 8%,transparent);font-weight:500}
.reglages-menu-barre .reglages-ligne-icone svg{width:18px;height:18px}
.reglages-vide{padding:12px;color:var(--muted);font-size:13px}
/* Fenêtre des réglages (PC) */
.reglages-fond{position:fixed;inset:0;z-index:250;display:flex;align-items:center;justify-content:center;padding:28px;background:rgba(0,0,0,.32);animation:sa-fondu var(--dur-fast) ease-out}
.settings-view.settings-pro.reglages-fenetre{position:relative;display:grid;grid-template-columns:280px minmax(0,1fr);grid-template-rows:minmax(0,1fr);width:min(1240px,100%);height:min(900px,100%);border-radius:var(--radius-lg);background:var(--bg);overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.28);border:1px solid var(--border)}
.reglages-fenetre>.settings-pro-header,.reglages-fenetre>.reglages-accueil{display:none}
.reglages-colonne{min-height:0;overflow-y:auto;padding:18px 16px;background:var(--surface);border-right:1px solid var(--border);scrollbar-width:thin}
.settings-pro.reglages-fenetre>.view-container{display:block;min-height:0;overflow-y:auto;padding:44px clamp(28px,4vw,56px) 48px;background:var(--bg)}
.reglages-fenetre .settings-page-title{font-size:20px;margin:0 0 6px}
.reglages-fenetre .settings-section-title{font-size:16px;font-weight:600;color:var(--fg);border-bottom:none;margin:26px 0 4px;padding:0 0 6px}
.reglages-fenetre .settings-row{border-bottom:1px solid var(--border);min-height:64px;padding:16px 0}
.reglages-fenetre .settings-row-label{font-size:15px}
.reglages-fenetre .settings-row-desc{font-size:14px;max-width:60ch}
.reglages-fermer{position:absolute;top:14px;right:14px;z-index:2;width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;border:none;background:transparent;color:var(--fg);cursor:pointer}
@media(hover:hover){.reglages-fermer:hover{background:color-mix(in srgb,var(--fg) 7%,transparent)}}
.reglages-fermer svg{width:20px;height:20px}
.main-content:has(.reglages-fenetre){background:var(--bg)}
/* Accueil des réglages (téléphone) : cartes façon référence */
.settings-pro>.reglages-accueil{display:none}
@media(max-width:768px){
  .settings-pro>.reglages-accueil{display:block;flex:1;overflow-y:auto;padding:14px 16px 28px;background:var(--bg)}
  .settings-pro.section-open>.reglages-accueil{display:none}
  .settings-pro-header h1{flex:1;text-align:center;font-family:var(--font-display);font-size:20px}
}
.reglages-menu-accueil{display:flex;flex-direction:column;gap:12px}
.reglages-carte{border-radius:18px;background:color-mix(in srgb,var(--fg) 5%,var(--bg));border:1px solid color-mix(in srgb,var(--fg) 7%,transparent);overflow:hidden}
.reglages-compte{display:flex;align-items:center;gap:12px;width:100%;padding:18px;color:var(--fg);cursor:pointer;text-align:left}
.reglages-compte-email{flex:1;min-width:0;font-size:16px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reglages-compte-plan{padding:5px 12px;border-radius:var(--radius-full);background:var(--fg);color:var(--bg);font-size:13px;font-weight:600}
.reglages-offre{padding:20px 20px 22px}
.reglages-offre-titre{font-size:17px;font-weight:600;margin-bottom:4px}
.reglages-offre-texte{font-size:15px;line-height:1.45;color:color-mix(in srgb,var(--fg) 85%,transparent);margin-bottom:16px}
.reglages-offre-bouton{padding:10px 18px;border:none;border-radius:var(--radius-full);background:var(--fg);color:var(--bg);font-size:15px;font-weight:600;cursor:pointer}
.reglages-menu-accueil .reglages-groupe{display:flex;flex-direction:column;gap:2px;background:transparent;border:none}
.reglages-menu-accueil .reglages-ligne{min-height:60px;padding:12px 18px;background:color-mix(in srgb,var(--fg) 5%,var(--bg));font-size:16px}
.reglages-menu-accueil .reglages-ligne:first-child{border-radius:18px 18px 4px 4px}
.reglages-menu-accueil .reglages-ligne:last-child{border-radius:4px 4px 18px 18px}
.reglages-menu-accueil .reglages-ligne:only-child{border-radius:18px}
.reglages-menu-accueil .reglages-ligne:active{background:color-mix(in srgb,var(--fg) 9%,var(--bg))}
.reglages-menu-accueil .reglages-ligne-icone svg{width:22px;height:22px}
.reglages-menu-accueil .reglages-ligne-sous{font-size:14px;margin-top:2px}
.reglages-menu-accueil .reglages-ligne-chevron svg{width:16px;height:16px}
.reglages-deconnexion,.reglages-deconnexion .reglages-ligne-icone{color:var(--danger)!important}
.reglages-deconnexion{justify-content:center;text-align:center}
/* Jauge de la page Utilisation */
.reglages-jauge{height:8px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 8%,transparent);overflow:hidden;margin:10px 0 4px}
.reglages-jauge{position:relative}
.reglages-jauge>i{position:relative;display:block;height:100%;border-radius:var(--radius-full);background:var(--accent);transition:width 1.1s var(--ease-out),background-color .6s ease .3s}
/* Mémoire et Aide intégrées aux réglages */
.memoire-integree-outils{display:flex;justify-content:flex-end;margin:6px 0 8px}
.memoire-integree .memory-page{padding:0}
/* ══ Bouton et menu de profil (référence PC) ══ */
.sb-profil-bouton{gap:10px;min-height:44px;padding:6px 8px;border:none;border-radius:10px}
.sb-profil-bouton[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 5%,transparent);border:none}
@media(hover:hover){.sb-profil-bouton:hover{background:color-mix(in srgb,var(--fg) 5%,transparent);border:none}}
.sb-profil-avatar{width:28px;height:28px;border-radius:50%;background:color-mix(in srgb,var(--fg) 10%,var(--bg));color:var(--fg);box-shadow:none;font-size:13px;font-weight:500}
.sb-profil-texte{flex-direction:row;align-items:baseline;gap:0;min-width:0;white-space:nowrap;overflow:hidden}
.sidebar-footer .sb-profil-nom{font-size:15px;font-weight:400;color:var(--fg);overflow:hidden;text-overflow:ellipsis}
.sidebar-footer .sb-profil-plan{font-size:14px;color:var(--muted);flex-shrink:0;white-space:pre}
.sb-profil-fleche svg{width:16px;height:16px}
@media(max-width:768px){.sb-profil-avatar{width:32px;height:32px;background:#9d8de8;color:#fff;font-size:14px}}
.sb-profil-menu{left:0;right:auto;min-width:300px;max-width:calc(100vw - 24px);padding:6px;border-radius:14px}
.sb-profil-entete{border-bottom:none;padding:8px 10px 6px;font-size:14px}
.sb-profil-menu button,.sb-profil-sous-menu a{font-size:14px;min-height:38px}
.sb-profil-raccourci{margin-left:auto;display:flex;align-items:center;color:var(--muted);font-size:13px}
.sb-profil-raccourci svg{width:15px;height:15px}
.sb-profil-sous{position:relative}
.sb-profil-sous-menu{display:flex;flex-direction:column;margin:2px 0 4px 26px;padding-left:8px;border-left:1px solid var(--border);}
.sb-profil-sous-menu a{display:flex;align-items:center;padding:7px 10px;border-radius:6px;color:var(--fg);text-decoration:none}
@media(hover:hover){.sb-profil-sous-menu a:hover{background:var(--surface-hover)}}
/* Le pied de barre (capacité + profil) reste collé en bas, même sans conversations récentes (06/10/2026). */
.sidebar-inner>.sidebar-footer{margin-top:auto}
/* ── Retouches PC du 06/10/2026 ── */
/* 2. Pas de jauge dans la barre latérale sur PC (comme la référence) : la capacité est dans Réglages › Utilisation. */
@media(min-width:769px){.sidebar-footer>.sb-capacite{display:none}}
/* 4. Tous les choix oui/non des réglages sont des interrupteurs (la Mémoire et les Fonctionnalités avaient des cases). */
.settings-pro .settings-row input[type=checkbox]{appearance:none;-webkit-appearance:none;flex-shrink:0;width:38px;height:22px;margin:0;border-radius:20px;background:var(--border);position:relative;cursor:pointer;transition:background var(--dur-med)}
.settings-pro .settings-row input[type=checkbox]::after{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:3px;left:3px;box-shadow:0 1px 3px #0003;transition:transform var(--dur-med)}
.settings-pro .settings-row input[type=checkbox]:checked{background:var(--accent)}
.settings-pro .settings-row input[type=checkbox]:checked::after{transform:translateX(16px)}
.settings-pro .settings-row input[type=checkbox]:disabled{opacity:var(--inactif);cursor:default}
.settings-pro .settings-row input[type=checkbox]:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:3px}
/* 4. Mémoire intégrée : mêmes marges et mêmes titres que les autres pages des réglages. */
.memoire-integree .memory-page{padding:0!important}
.memoire-integree .memory-section{margin:26px 0 0}
.memoire-integree .memory-section-title{font-size:16px;font-weight:600;letter-spacing:0;color:var(--fg);margin:0 0 6px}
.memoire-integree .memory-section-title svg{display:none}
.memoire-integree-outils{justify-content:flex-start;margin:22px 0 0}
.memoire-integree-outils select{min-height:36px;font-size:14px}
/* 5. Sous-menu des langues du menu de profil. */
.sb-profil-langues{display:flex;flex-direction:column;max-height:260px;overflow-y:auto;margin:2px 0 4px 26px;padding-left:8px;border-left:1px solid var(--border)}
.sb-profil-langues button{justify-content:space-between}
.sb-profil-langues button svg{width:15px;height:15px;color:var(--accent)}
.reglages-limite{padding:16px 0;border-bottom:1px solid var(--border)}
.reglages-limite-tete{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.reglages-limite-pct{font-size:14px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.reglages-limite .reglages-jauge{margin:12px 0 0}
.reglages-jauge.faible>i{background:var(--warn)}
.reglages-limite:last-of-type{border-bottom:none}
/* ══ Tiroir mobile façon référence (06/10/2026) ══ */
.sb-recherche{display:none}
.sb-nouveau-mobile{display:none}
@media(max-width:768px){
  .sidebar .sidebar-head{padding:22px 18px 14px 22px;align-items:center}
  .sidebar .sidebar-logo a{font-size:28px;letter-spacing:-.03em}
  .sb-recherche{display:flex;margin-left:auto;width:48px;height:48px;border-radius:50%;align-items:center;justify-content:center;border:none;background:var(--bg);color:var(--fg);box-shadow:0 2px 10px rgba(0,0,0,.08),0 0 0 1px color-mix(in srgb,var(--fg) 6%,transparent)}
  .sb-recherche svg{width:22px;height:22px}
  .sidebar .sidebar-new{display:none}
  .sidebar-inner>.sidebar-nav{padding:6px 12px 10px}
  .sidebar-inner>.sidebar-nav .nav-item{min-height:54px;padding:10px 12px;font-size:17px;font-weight:600;gap:16px;color:var(--fg)}
  .sidebar-inner>.sidebar-nav .nav-item>svg{width:24px;height:24px;opacity:1}
  .sidebar-inner>.sidebar-nav .nav-item .badge{display:none}
  .sb-recents{border-top:none;position:relative;padding:4px 12px 110px;margin:0 12px;border-top:1px solid var(--border)}
  .sb-recents{margin:0;border-top:none}
  .sb-recents::before{content:"";display:block;height:1px;margin:4px 12px 10px;background:var(--border)}
  .sb-recents-titre{display:none}
  .sb-recent-ouvrir{font-size:16px;min-height:50px;padding:10px 4px 10px 12px;color:var(--fg)}
  .sb-recent-plus{opacity:0!important;pointer-events:none}
  .sb-recent:hover .sb-recent-plus,.sb-recent:focus-within .sb-recent-plus,.sb-recent.actif .sb-recent-plus,.sb-recent-plus[aria-expanded="true"]{opacity:.7!important;pointer-events:auto}
  .sb-recent .sb-recent-plus:hover,.sb-recent-plus[aria-expanded="true"]{opacity:1!important;background:color-mix(in srgb,var(--fg) 8%,transparent)}
  .sidebar-inner>.sidebar-footer{position:absolute;left:0;right:0;bottom:0;flex-direction:row;align-items:center;justify-content:space-between;gap:12px;padding:18px 18px max(18px,env(safe-area-inset-bottom));border-top:none;background:linear-gradient(to bottom,transparent,var(--bg) 38%)}
  .sidebar-footer>.sb-capacite{display:none}
  .sidebar-inner{position:relative}
  .sb-nouveau-mobile{display:inline-flex;align-items:center;gap:10px;height:54px;padding:0 22px 0 20px;min-width:0;white-space:nowrap;border:none;border-radius:var(--radius-full);background:var(--accent);color:var(--accent-ink,#fff);font-size:17px;font-weight:600;box-shadow:0 6px 18px color-mix(in srgb,var(--accent) 35%,transparent)}
  .sb-nouveau-mobile svg{width:22px;height:22px}
  .sb-profil-bouton.compact{width:54px;height:54px;min-height:54px;padding:0;justify-content:center;border-radius:50%;background:var(--bg);box-shadow:0 2px 10px rgba(0,0,0,.08)}
  .sb-profil-bouton.compact .sb-profil-avatar{width:42px;height:42px;font-size:14px;letter-spacing:.02em}
}
/* Pied de barre : l'ancienne règle « .sidebar-footer span » (11 px, gris) ne doit pas toucher pastille ni avatar. */
.sidebar-footer .sb-profil-avatar{font-size:13px;color:var(--fg);letter-spacing:0}
@media(max-width:768px){
  .sidebar{width:min(340px,84vw)}
  .sidebar-footer .sb-nouveau-mobile span{font-size:17px;font-weight:600;color:inherit;letter-spacing:0}
  .sidebar-footer .sb-profil-bouton.compact .sb-profil-avatar{font-size:15px;font-weight:600;color:#fff}
  .sidebar .sidebar-head{padding-left:24px}
  .sidebar .sidebar-logo,.sidebar .sidebar-logo a{padding-left:0;margin-left:0}
}
@media(max-width:768px){.sb-nouveau-mobile svg{flex-shrink:0}.sidebar-footer .sb-nouveau-mobile span{font-size:16px}}
/* Tiroir mobile (06/10/2026, demande) : profil en bas à GAUCHE, « Nouvelle conversation » en bas à DROITE. */
@media(max-width:768px){.sidebar-footer>.sb-profil{order:1}.sidebar-footer>.sb-nouveau-mobile{order:2;margin-left:auto}}
/* En-tête et couleurs des réglages sur téléphone (06/10/2026, référence) */
@media(max-width:768px){
  .settings-pro-header .settings-header-action.settings-retour,.settings-pro-header .settings-header-action.settings-menu{display:flex;border:none;box-shadow:none;background:transparent}
  .settings-header-espace{width:44px;flex-shrink:0}
  .settings-pro-header h1{text-align:center}
  html:not(.dark) .settings-view.settings-pro,html:not(.dark) .settings-pro-header,html:not(.dark) .settings-pro>.reglages-accueil,html:not(.dark) .settings-pro>.view-container{background:#f8f7f4}
  html:not(.dark) .reglages-menu-accueil .reglages-ligne,html:not(.dark) .reglages-carte{background:#fff}
  html:not(.dark) .reglages-menu-accueil .reglages-groupe{background:transparent}
  html:not(.dark) .reglages-compte-plan{background:#141413;color:#fff}
}
/* Téléphone : ☰ et flèche = le même bouton rond que celui du chat ; le titre de la catégorie est dans l'en-tête. */
@media(max-width:768px){
  .settings-pro-header .settings-header-action.settings-retour,.settings-pro-header .settings-header-action.settings-menu{width:44px;height:44px;min-width:44px;border-radius:50%;border:1px solid var(--border);background:var(--surface-hover);color:var(--fg);box-shadow:none}
  html:not(.dark) .settings-pro-header .settings-header-action.settings-retour,html:not(.dark) .settings-pro-header .settings-header-action.settings-menu{background:#fff}
  .settings-pro-header .settings-header-action svg{width:19px;height:19px}
  .settings-pro-header{border-bottom:none}
  .settings-pro.section-open .settings-page-title{display:none}
}
.settings-pro-header .settings-menu svg line:nth-child(2){stroke-dasharray:13 5}
@media(max-width:768px){.settings-pro-header .settings-header-action.settings-menu svg,.settings-pro-header .settings-header-action.settings-retour svg{stroke-width:2}.settings-pro-header{padding-left:16px;padding-right:16px}}
/* ══ Intérieur des réglages en cartes (12/10/2026, maquette validée) : même langage que la liste des catégories ══
   Cartes arrondies sur fond crème, petit titre gris AU-DESSUS de chaque carte, lignes séparées par un trait discret. */
.settings-pro{--reglage-carte:color-mix(in srgb,var(--fg) 5%,var(--bg));--reglage-trait:color-mix(in srgb,var(--fg) 8%,transparent)}
html:not(.dark) .settings-pro{--reglage-carte:#fff}
html:not(.dark) .settings-pro.reglages-fenetre>.view-container{background:#f8f7f4}
.settings-pro .page-col .card:not(.card .card){position:relative;background:var(--reglage-carte);border:1px solid color-mix(in srgb,var(--fg) 6%,transparent);border-radius:18px;padding:4px 16px;box-shadow:none}
.settings-pro .page-col .card:not(.card .card):has(>.settings-section-title:first-child){margin-top:26px}
.settings-pro .page-col .card:not(.card .card)>.settings-section-title{font-size:13px;font-weight:600;color:var(--muted);letter-spacing:0;border:none;padding:0;margin:18px 0 6px}
.settings-pro .page-col .card:not(.card .card)>.settings-section-title:first-child{position:absolute;top:-24px;left:4px;right:4px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.settings-pro .page-col .card:not(.card .card)>.settings-section-title svg{width:14px;height:14px}
.settings-pro .page-col .card:not(.card .card)>.settings-section-title:first-child+:not(.settings-row):not(.reglages-limite){margin-top:12px}
.settings-pro .page-col .card:not(.card .card)>:last-child:not(.settings-row):not(.reglages-limite){margin-bottom:12px}
.settings-pro .page-col .card .settings-row{min-height:54px;padding:13px 0;border-bottom:1px solid var(--reglage-trait)}
.settings-pro .page-col .card .settings-row:last-child{border-bottom:none}
.settings-pro .page-col .card .reglages-limite{border-bottom:1px solid var(--reglage-trait)}
.settings-pro .page-col .card .reglages-limite:last-of-type{border-bottom:none}
.settings-pro .page-col .card .recharge-option{border-bottom-color:var(--reglage-trait)}
.settings-pro .page-col .card .recharge-total{border-top-color:var(--reglage-trait)}
.settings-pro .page-col .card .recharge-carte-bouton{margin:4px 0 14px}
/* Ligne entière cliquable : valeur grise et chevron à droite. */
.settings-row.reglage-bouton{width:100%;border:none;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;-webkit-tap-highlight-color:transparent}
.settings-pro .page-col .card .settings-row.reglage-bouton{flex-wrap:nowrap}
.reglage-valeur{display:flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;white-space:nowrap;flex-shrink:0}
.reglage-valeur>svg{width:15px;height:15px;opacity:.7;transition:transform var(--dur-med)}
.reglage-bouton[aria-expanded="true"] .reglage-valeur>svg{transform:rotate(90deg)}
.reglage-valeur-texte{max-width:52vw;overflow:hidden;text-overflow:ellipsis}
.reglage-nom-champ{width:100%;height:46px;font-size:16px;border-radius:var(--radius-md)}
.reglage-lien{border:none;background:none;padding:6px 0;color:var(--accent);font:inherit;font-size:14px;font-weight:500;cursor:pointer;white-space:nowrap}
.reglage-lien:disabled{opacity:var(--inactif);cursor:default}
/* Profil : carte d'identité, déconnexion seule en rouge. */
.settings-pro .page-col .card.reglages-identite:not(.card .card){display:flex;align-items:center;gap:14px;padding:16px}
.reglages-identite-avatar{width:52px;height:52px;border-radius:50%;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink,#fff);font-size:18px;font-weight:600}
.reglages-identite-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.reglages-identite-plan{padding:4px 11px;border-radius:var(--radius-full);background:var(--fg);color:var(--bg);font-size:13px;font-weight:600;flex-shrink:0}
.reglages-identite-texte b{font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reglages-identite-texte span{font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.settings-pro .page-col .card.reglages-sortie-carte:not(.card .card){padding:0;overflow:hidden}
.reglages-sortie{width:100%;min-height:54px;display:flex;align-items:center;justify-content:center;gap:8px;border:none;background:none;color:var(--danger);font:inherit;font-size:16px;font-weight:500;cursor:pointer}
.reglages-sortie svg{width:17px;height:17px}
.reglages-sortie:active{background:color-mix(in srgb,var(--danger) 7%,transparent)}
.reglages-texte{margin:12px 0 0;font-size:14px;line-height:1.5;color:color-mix(in srgb,var(--fg) 82%,transparent)}
.reglages-lien-copie{display:flex;gap:8px;align-items:center;margin:12px 0 4px}
.reglages-lien-copie .input{flex:1;min-width:0;font-size:14px;height:44px;border-radius:var(--radius-md)}
.reglages-lien-copie .btn{height:44px;padding:0 16px;border-radius:var(--radius-md);font-size:14px}
.reglages-note{font-size:13px;line-height:1.5;color:var(--muted)}
/* Apparence : thème avec libellés, couleur sous son titre, listes de choix sans cadre (la liste s'ouvre au toucher). */
.settings-pro .page-col .card .settings-row.reglage-colonne{flex-direction:column;align-items:stretch;flex-wrap:nowrap;gap:10px}
.settings-pro .page-col .card .settings-row.reglage-colonne>div:first-child{flex:none}
.settings-pro .reglage-colonne .accent-row{flex:none;max-width:none;display:flex;flex-wrap:wrap;gap:12px;padding:4px 2px}
@media(max-width:768px){.settings-pro .reglage-colonne .accent-row{justify-content:space-between;gap:8px 4px}}
.settings-pro .page-col .card .recharge-option+.recharge-total{border-top:none}
.settings-pro .page-col .card.feedback-card:not(.card .card){border:1px solid color-mix(in srgb,var(--fg) 6%,transparent)!important;margin-top:0!important;padding:4px 16px!important}
.settings-pro .page-col .card.feedback-card>summary{min-height:50px;display:flex;align-items:center;font-size:15px;font-weight:500;cursor:pointer}
.segments.segments-libelles{display:flex;width:100%;box-sizing:border-box}
.segments-libelles .segment{flex:1;width:auto;display:flex;align-items:center;justify-content:center;gap:6px;padding:7px 8px;font-size:14px}
.segments-libelles .segment svg{width:16px;height:16px;flex-shrink:0}
.settings-pro .settings-row select.reglage-choix{-webkit-appearance:none;appearance:none;border:none;box-shadow:none;background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E") no-repeat right center;padding:6px 20px 6px 0;min-height:36px;min-width:0;max-width:200px;color:var(--muted);font-size:15px;text-align:right;text-align-last:right;text-overflow:ellipsis;cursor:pointer}
.settings-pro .settings-row select.reglage-choix:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px;border-radius:var(--radius-sm)}
/* Fonctionnalités : petite icône de couleur devant chaque option. */
.settings-pro .page-col .card .settings-row.reglage-avec-icone{flex-wrap:nowrap;align-items:center;gap:12px}
.reglage-avec-icone>div:nth-child(2){flex:1 1 auto;min-width:0}
.reglage-pastille{width:32px;height:32px;border-radius:var(--radius-sm);flex-shrink:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent)}
.reglage-pastille.violet{background:color-mix(in srgb,#7a55c9 14%,transparent);color:#7a55c9}
.reglage-pastille svg{width:17px;height:17px}
/* Facturation : plan actuel mis en avant, autres plans en liste. */
.settings-pro .page-col .card.reglages-plan-actuel:not(.card .card){border:2px solid var(--accent);padding:16px}
.reglages-plan-tete{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.reglages-plan-tete b{font-size:20px;font-weight:600}
.reglages-actif{padding:2px 8px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent);font-size:12px;font-weight:600}
.reglages-plan-prix{margin-left:auto;font-size:15px;font-weight:600;color:var(--fg)}
.reglages-plan-prix small{font-weight:400;color:var(--muted);font-size:13px}
.reglages-plan-prix s{color:var(--muted);font-weight:400;margin-right:4px}
.reglage-valeur .reglages-plan-prix{margin-left:0}
.reglages-plan-type{font-size:14px;color:var(--muted);margin:4px 0 12px}
.reglages-atouts{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:6px;font-size:14px;color:color-mix(in srgb,var(--fg) 85%,transparent)}
.reglages-atouts li{display:flex;align-items:center;gap:8px}
.reglages-atouts svg{width:14px;height:14px;color:var(--accent);flex-shrink:0}
.reglages-plan-detail{display:flex;flex-direction:column;gap:12px;padding:2px 0 14px;border-bottom:1px solid var(--reglage-trait)}
.reglages-plan-detail:last-child{border-bottom:none}
.reglages-plan-detail .btn{align-self:flex-start}
/* Page Clés API (13/10/2026, maquette validée) */
.api-adresse{display:flex;align-items:center;gap:8px;margin:10px 0 12px;padding:0 6px 0 12px;min-height:44px;border-radius:var(--radius-md);background:color-mix(in srgb,var(--fg) 5%,transparent);font-size:14px}
.api-adresse span{font-family:ui-monospace,Menlo,Consolas,monospace;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.api-mini{height:34px;padding:0 12px;border:none;border-radius:var(--radius-sm);background:var(--reglage-carte,#fff);color:var(--fg);font:inherit;font-size:14px;font-weight:500;cursor:pointer;box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 10%,transparent)}
a.settings-row.reglage-bouton{text-decoration:none;color:inherit}
.settings-pro .page-col .card .api-presentation-lien{border-top:1px solid var(--reglage-trait)}
.api-part-desc{max-width:none!important;margin-top:10px}
.api-solde{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin-top:14px}
.api-solde b{font-size:30px;font-weight:600;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.api-solde-etiquette{font-size:13px;font-weight:500;color:var(--muted)}
.api-credits-actions{display:flex;flex-direction:column;align-items:stretch;gap:4px;margin:12px 0 14px}
.api-credits-actions .btn{justify-content:center;min-height:46px;border-radius:14px;font-size:15px}
.api-offres{align-self:center;white-space:normal;text-align:center}
.api-note{margin:-6px 4px 0}
.reglage-pastille.gris{background:color-mix(in srgb,var(--fg) 6%,transparent);color:color-mix(in srgb,var(--fg) 70%,transparent)}
.api-mono{font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px}
.api-cle-nom{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.reglage-lien.api-key-revoke{color:var(--danger);flex-shrink:0}
.mf-groupe{display:flex;flex-direction:column;gap:8px}
.mf-groupe-titre{margin:0 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.settings-pro .page-col .mf-groupe .card.mf-liste:not(.card .card){display:flex;flex-direction:column;gap:0;padding:0;overflow:hidden}
.mf-fournisseur{padding:16px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:12px}
.mf-fournisseur:last-child{border-bottom:0}
.mf-fournisseur.alerte{background:color-mix(in srgb,var(--danger) 6%,var(--surface))}
.mf-ligne{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.mf-logo{width:44px;height:44px;border-radius:var(--radius-md);background:var(--surface-hover);color:var(--fg);display:flex;align-items:center;justify-content:center;flex:none}
.mf-logo svg{width:24px;height:24px}
.mf-logo b{font-size:17px;font-weight:700}
.mf-fournisseur.alerte .mf-logo{background:color-mix(in srgb,var(--danger) 14%,var(--bg))}
.mf-nom{flex:1 1 150px;min-width:0;display:flex;flex-direction:column;gap:2px}
.mf-nom b{font-size:16px;font-weight:600}
.mf-etat{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.mf-etat i{width:8px;height:8px;border-radius:50%;background:currentColor;flex:none}
.mf-etat.ok{color:var(--success)}
.mf-etat.stop{color:var(--danger)}
.mf-actions{display:flex;gap:8px;flex-wrap:wrap}
.mf-actions .btn{min-height:40px;border-radius:var(--radius-full);padding:0 18px}
.mf-ajout{display:flex;flex-direction:column;gap:8px}
.mf-champ{font-family:var(--font-mono)}
.mf-alerte{color:var(--danger)}
.mf-avert{padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--warn) 14%,var(--bg));color:var(--fg);line-height:1.45}
.mf-choix{display:flex;gap:14px;align-items:flex-start;width:100%;text-align:left;padding:14px 0;border:0;background:none;color:var(--fg);cursor:pointer;font:inherit;min-height:44px}
.mf-choix b,.mf-exclusif b{display:block;font-weight:600;font-size:15px}
.mf-choix small,.mf-exclusif small{display:block;margin-top:2px;font-size:13px;line-height:1.4;color:var(--muted)}
.mf-rond{width:22px;height:22px;border-radius:50%;border:2px solid var(--border);flex:none;margin-top:1px;box-sizing:border-box}
.mf-choix.on .mf-rond{border-color:var(--accent);background:radial-gradient(circle,var(--accent) 45%,transparent 50%)}
.mf-exclusif{display:flex;gap:14px;align-items:flex-start;padding:14px 0 4px;border-top:1px solid var(--border);margin-top:6px;cursor:pointer}
.mf-exclusif input{margin-top:2px;width:20px;height:20px;flex:none}
.settings-row.reglage-bouton.api-ajouter{justify-content:center;gap:8px;color:var(--accent);font-weight:500;font-size:15px}
.api-ajouter svg{width:17px;height:17px}
.api-creation{display:flex;flex-direction:column;gap:8px;padding:14px 0}
.api-creation .input{height:44px;border-radius:var(--radius-md);font-size:15px}
.api-creation-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:4px}
.settings-pro .page-col .card.api-nouvelle-cle:not(.card .card){border:2px solid var(--accent);padding:14px 16px}
.api-nouvelle-tete{display:flex;align-items:center;gap:8px;font-size:16px}
.api-nouvelle-tete b{font-weight:600}
.api-coche{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent)}
.api-coche svg{width:14px;height:14px}
.api-avertissement{display:flex;gap:8px;align-items:flex-start;margin-top:12px;padding:10px 12px;border-radius:var(--radius-md);background:color-mix(in srgb,var(--warn) 13%,transparent);color:color-mix(in srgb,var(--warn) 55%,var(--fg));font-size:14px;line-height:1.45}
.api-avertissement svg{width:16px;height:16px;flex-shrink:0;margin-top:1px}
.api-cle-complete{margin-top:12px;padding:12px;border-radius:var(--radius-md);background:color-mix(in srgb,var(--fg) 5%,transparent);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:13px;line-height:1.5;word-break:break-all;cursor:text;user-select:all}
.api-nouvelle-actions{display:flex;gap:8px;margin-top:12px}
.api-nouvelle-actions .btn:first-child{flex:1;justify-content:center}
@media(min-width:769px){.reglages-fenetre .page-col .api-presentation .reglages-texte{max-width:62ch}}
/* Recharger la capacité, maquette « B ajustée » (13/10/2026) */
.recharge-choix{margin-top:14px}
.segments-libelles.recharge-choix .segment{min-height:40px;font-size:14px}
.recharge-resume{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:14px 0 2px}
.recharge-resume span{font-size:14px;color:color-mix(in srgb,var(--fg) 75%,transparent);line-height:1.4}
.recharge-resume b{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.recharge-rayures{position:absolute;top:0;bottom:0;inset-inline-end:0;background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--accent) 40%,transparent) 0 6px,color-mix(in srgb,var(--accent) 18%,transparent) 6px 12px);animation:rayuresApparait .25s ease both}
@keyframes rayuresApparait{from{opacity:0}to{opacity:1}}
.reglages-jauge>i.reflet::after{content:"";position:absolute;inset:0;border-radius:var(--radius-full);background:linear-gradient(100deg,transparent 0%,rgba(255,255,255,.6) 45%,transparent 70%);background-size:220% 100%;animation:jaugeReflet 1.1s ease-out var(--dur-med) 1 both}
@keyframes jaugeReflet{from{background-position:130% 0}to{background-position:-90% 0}}
.reglages-rechargee{display:inline-block;margin-top:8px;padding:2px 9px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent);font-size:13px;font-weight:600;animation:jaugePop .28s cubic-bezier(.2,.8,.2,1) .6s both}
@keyframes jaugePop{from{opacity:0;transform:translateY(5px) scale(.92)}to{opacity:1;transform:none}}
.reglages-limite.rechargee .reglages-limite-pct{color:var(--accent);font-weight:600}
@media(prefers-reduced-motion:reduce){.reglages-jauge>i{transition:none}.reglages-jauge>i.reflet::after,.reglages-rechargee,.recharge-rayures{animation:none}}
/* Applications et extensions (13/10/2026, maquette validée) */
.notif-r-tete{display:flex;align-items:center;gap:12px;margin-top:14px}
.notif-r-cloche{width:40px;height:40px;border-radius:var(--radius-md);flex-shrink:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
.notif-r-cloche svg{width:19px;height:19px}
.notif-r-titre{display:flex;flex-direction:column;gap:2px;min-width:0}
.notif-r-titre b{font-size:16px;font-weight:600}
.notif-r-statut{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:var(--muted)}
.notif-r-statut i{width:7px;height:7px;border-radius:50%;background:color-mix(in srgb,var(--fg) 30%,transparent)}
.notif-r-statut.on{color:#15803d}
.notif-r-statut.on i{background:#16a34a}
.dark .notif-r-statut.on{color:#4ade80}
.notif-r .reglages-texte{margin-top:10px}
.notif-r-activer{width:100%;justify-content:center;min-height:48px;border-radius:14px;margin:12px 0 14px;font-size:15px}
.notif-r-boutons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0 14px}
.notif-r-boutons .btn{justify-content:center;min-height:44px;padding:0 10px;border-radius:var(--radius-md);font-size:14px;white-space:nowrap;background:var(--reglage-carte,var(--bg));border:1px solid color-mix(in srgb,var(--fg) 12%,transparent)}
.notif-r-boutons .btn svg{width:16px;height:16px}
.notif-r-boutons .notif-r-desactiver{color:var(--danger)}
.reglage-pastille.orange{background:color-mix(in srgb,#d97706 15%,transparent);color:#b45309}
.reglage-pastille.vert{background:color-mix(in srgb,#16a34a 14%,transparent);color:#15803d}
.reglage-installee{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;font-size:14px;font-weight:500;color:#15803d;white-space:nowrap}
.reglage-installee svg{width:14px;height:14px}
.dark .reglage-installee{color:#4ade80}
@media(min-width:769px){.reglages-fenetre .page-applis{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px 22px;align-items:start}
  .reglages-fenetre .page-applis>.notif-r-sujets{grid-row:span 2;grid-column:2}
  .reglages-fenetre .page-applis>.card{margin-top:26px}}
/* Titre de catégorie long (« Applications et extensions ») : une seule ligne sur téléphone. */
@media(max-width:768px){.settings-pro-header h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0;font-size:clamp(16px,4.8vw,20px)}}
/* Modèles et performance, Espace Code (13/10/2026, maquette validée) */
.settings-row.reglage-bouton.mode-perf{flex-wrap:nowrap;align-items:center}
.mode-perf.ferme .settings-row-label,.mode-perf.ferme .settings-row-desc{opacity:.55}
.mode-reco{margin-left:8px;padding:2px 8px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent);font-size:12px;font-weight:600;vertical-align:1px}
.mode-rond{width:22px;height:22px;border-radius:50%;flex-shrink:0;box-sizing:border-box;border:1.5px solid color-mix(in srgb,var(--fg) 22%,transparent);display:flex;align-items:center;justify-content:center;color:#fff}
.mode-rond.on{background:var(--accent);border-color:var(--accent)}
.mode-rond svg{width:12px;height:12px;stroke-width:3.5}
.mode-verrou{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;padding:3px 9px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 7%,transparent);color:color-mix(in srgb,var(--fg) 75%,transparent);font-size:12px;font-weight:600;white-space:nowrap}
.mode-verrou svg{width:12px;height:12px}
.mode-note{margin:-6px 4px 0}
.settings-pro .page-col .card .settings-row.modele-ligne{flex-wrap:nowrap;align-items:center}
.modele-ligne>div:first-child{flex:1 1 auto;min-width:0}
.modele-qualite{flex-shrink:0;padding:4px 11px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 7%,transparent);font-size:13px;font-weight:600}
.modele-qualite.premium{background:var(--fg);color:var(--bg)}
.modele-vous{padding:1px 7px;border-radius:var(--radius-full);background:color-mix(in srgb,#7a55c9 14%,transparent);color:#7a55c9;font-size:12px;font-weight:600}
.modele-choix{display:flex;flex-direction:column;gap:8px;padding:6px 0 18px}
.modele-groupe{display:flex;flex-direction:column;gap:8px}
.modele-ia{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:12px 16px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:var(--fg);font:inherit;font-size:14px;font-weight:500;text-align:left;cursor:pointer;transition:background var(--dur-med),border-color var(--dur-med)}
@media(hover:hover){.modele-ia:hover{background:color-mix(in srgb,var(--fg) 4%,var(--surface))}}
.modele-ia:focus-visible,.modele-opt:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
.modele-ia .provider-avatar{width:26px;height:26px}
.modele-ia-nom{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modele-ia-choix{flex-shrink:0;max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:600;color:var(--accent)}
.modele-ia>svg{width:16px;height:16px;flex-shrink:0;opacity:.55;transition:transform var(--dur-med)}
.modele-ia[aria-expanded="true"]>svg{transform:rotate(90deg)}
.modele-ia.on{border-color:color-mix(in srgb,var(--accent) 55%,var(--border))}
.modele-groupe.ouvert .modele-ia{border-color:var(--fg-muted,var(--border))}
.modele-groupe-liste{display:flex;flex-direction:column;gap:6px;padding:0 0 6px 16px;margin-left:12px;border-left:2px solid var(--border)}
.modele-opt{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:11px 14px;border:1px solid transparent;border-radius:var(--radius-md);background:color-mix(in srgb,var(--fg) 4%,transparent);color:var(--fg);font:inherit;font-size:14px;text-align:left;cursor:pointer;transition:background var(--dur-med),border-color var(--dur-med)}
@media(hover:hover){.modele-opt:hover{background:color-mix(in srgb,var(--fg) 7%,transparent)}}
.modele-opt i{position:relative;width:18px;height:18px;border-radius:50%;flex-shrink:0;border:1.5px solid color-mix(in srgb,var(--fg) 28%,transparent);background:transparent;transition:border-color var(--dur-med),background var(--dur-med)}
.modele-opt i::after{content:'';position:absolute;inset:3.5px;border-radius:50%;background:#fff;transform:scale(0);transition:transform var(--dur-med)}
.modele-opt.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,var(--surface));font-weight:600}
.modele-opt.on i{border-color:var(--accent);background:var(--accent)}
.modele-opt.on i::after{transform:scale(1)}
.modele-opt-auto{min-height:52px;padding:12px 16px;border:1px solid var(--border);background:var(--surface)}
.modele-opt-nom{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.modele-opt-meta{flex-shrink:0;max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:400;color:var(--muted)}
.modele-opt-alerte{flex-shrink:0;padding:3px 10px;border-radius:var(--radius-full);background:color-mix(in srgb,#c77a00 14%,transparent);color:#9a5d00;font-size:12px;font-weight:600;white-space:nowrap}
.dark .modele-opt-alerte{color:#f0b35a}
@media(max-width:520px){.modele-ia{padding:12px 14px}.modele-groupe-liste{padding-left:12px;margin-left:8px}.modele-opt-alerte{padding:3px 8px}}
.modele-bientot{flex-shrink:0;padding:3px 9px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 7%,transparent);font-size:12px;font-weight:500;white-space:nowrap}
.modele-premium>.provider-avatar,.modele-premium>span:first-child{flex-shrink:0}
/* Page « Passer à Pro » de l'Espace Code (16/10/2026) — trois variantes A, C, E ; voir OffreCodePro */
.oc-colonne{width:100%;max-width:520px;margin:0 auto;padding:36px 0 40px;display:flex;flex-direction:column;gap:32px}
.oc-apercu-bloc{display:flex;flex-direction:column;gap:6px}
.oc-etiquette{align-self:flex-start;padding:0 2px 2px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.oc-carte{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden}
.oc-a-tete{display:flex;align-items:center;gap:12px;padding:16px 18px}
.oc-a-pastille{flex-shrink:0;width:32px;height:32px;border-radius:10px;display:flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--accent) 78%,var(--fg));background:color-mix(in srgb,var(--accent) 14%,transparent)}
.oc-a-titre{flex:1;min-width:0;font-size:14px;font-weight:600}
.oc-a-chevron{flex-shrink:0;color:var(--muted)}
.oc-a-fichier{display:flex;align-items:center;gap:10px;padding:12px 18px;border-top:1px solid var(--border);font-family:var(--font-mono);font-size:12px}
.oc-a-nom{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px}
.oc-a-plus{font-weight:500;color:color-mix(in srgb,var(--accent) 78%,var(--fg))}
.oc-a-moins{color:var(--muted)}
.oc-a-pied{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 18px;border-top:1px solid var(--border);background:color-mix(in srgb,var(--fg) 2.5%,var(--surface));font-size:13px;color:var(--muted)}
.oc-a-annuler{flex-shrink:0;color:var(--fg);font-weight:500;text-decoration:underline;text-underline-offset:3px;white-space:nowrap}
.oc-c-fond{background:color-mix(in srgb,var(--accent) 7%,var(--bg));border:1px solid color-mix(in srgb,var(--accent) 22%,var(--border));border-radius:22px;padding:24px 16px 16px;display:flex;flex-direction:column;gap:22px}
.oc-c-question{padding:0 8px;text-align:center;font-size:17px;font-weight:600;letter-spacing:-.015em}
.oc-c-barre{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:14px 14px 12px;display:flex;flex-direction:column;gap:22px;box-shadow:0 4px 14px rgba(0,0,0,.05)}
.oc-c-texte{font-size:15px;color:var(--muted)}
.oc-c-pied{display:flex;align-items:center;gap:8px}
.oc-pastille{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 6%,transparent);font-size:13px}
.oc-c-envoi{margin-left:auto;width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink)}
.oc-ondes{position:relative;align-self:center;width:200px;height:200px;margin:0 0 -8px;display:flex;align-items:center;justify-content:center}
.oc-onde{position:absolute;left:50%;top:50%;width:120px;height:120px;margin:-60px 0 0 -60px;border-radius:50%;background:radial-gradient(circle,transparent 52%,color-mix(in srgb,var(--accent) 26%,transparent) 62%,color-mix(in srgb,var(--accent) 8%,transparent) 72%,transparent 76%);opacity:0;animation:oc-onde 6s cubic-bezier(.22,.61,.36,1) infinite;pointer-events:none}
.oc-onde.o2{animation-delay:1.5s}.oc-onde.o3{animation-delay:3s}.oc-onde.o4{animation-delay:4.5s}
@keyframes oc-onde{0%{transform:scale(.55);opacity:0}14%{opacity:1}100%{transform:scale(2.15);opacity:0}}
.oc-ondes-coeur{position:relative;width:100px;height:100px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 14%,var(--bg))}
.oc-ondes-icone{width:64px;height:64px;border-radius:20px;display:flex;align-items:center;justify-content:center;background:var(--accent);color:var(--accent-ink);box-shadow:0 10px 30px color-mix(in srgb,var(--accent) 38%,transparent);animation:oc-respire 6s ease-in-out infinite}
@keyframes oc-respire{0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
@media(prefers-reduced-motion:reduce){.oc-onde{animation:none;opacity:.5;transform:scale(1.2)}.oc-onde.o2{transform:scale(1.55);opacity:.35}.oc-onde.o3{transform:scale(1.9);opacity:.2}.oc-onde.o4{display:none}.oc-ondes-icone{animation:none}}
.oc-texte{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;padding:0 4px}
.oc-titre{margin:0;font-family:var(--font-display);font-size:34px;line-height:1.12;font-weight:600;letter-spacing:-.03em}
.oc-sous{margin:0;max-width:40ch;font-size:16px;line-height:1.55;color:var(--muted)}
.oc-actions{display:flex;flex-direction:column;gap:10px}
.oc-btn{width:100%;min-height:54px;padding:0 20px;border-radius:14px;font-size:16px;font-weight:600;letter-spacing:0;cursor:pointer;transition:filter var(--dur-med),background var(--dur-med)}
.oc-btn-primaire{border:0;background:var(--accent);color:var(--accent-ink)}
@media(hover:hover){.oc-btn-primaire:hover{filter:brightness(.94)}}
.oc-btn-contour{border:1px solid var(--border);background:transparent;color:var(--fg);font-weight:500}
@media(hover:hover){.oc-btn-contour:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.oc-btn:focus-visible,.oc-lien:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:3px}
.oc-points{list-style:none;margin:0;padding:4px 8px 0;display:flex;flex-direction:column;gap:12px}
.oc-points li{display:flex;align-items:flex-start;gap:12px;font-size:14px;line-height:1.5;color:var(--muted)}
.oc-points svg{flex-shrink:0;margin-top:2px;color:color-mix(in srgb,var(--accent) 78%,var(--fg))}
.oc-liens{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 24px}
.oc-lien{padding:6px 2px;font-size:14px;color:var(--muted);text-decoration:underline;text-underline-offset:3px}
@media(hover:hover){.oc-lien:hover{color:var(--fg)}}
@media(max-width:520px){.oc-colonne{padding-top:8px;gap:28px}.oc-titre{font-size:29px}}
.code-mode{margin-top:14px}
.segments.code-mode .segment{min-height:40px;font-size:14px}
.segments.grise{opacity:.5}
.code-mode-desc{margin:10px 0 14px}
.settings-pro .page-col .card.code-offre .settings-row{flex-wrap:nowrap}
.code-offre .btn,.modele-ligne>.btn{white-space:nowrap;flex-shrink:0}
/* Zone de saisie : mode + catégorie dans un seul menu (proposition B validée le 13/10/2026) */
.pb-mode .pb-cat-pastille{display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--accent) 13%,transparent);color:var(--accent);font-size:12px;font-weight:600}
.pb-mode .pb-cat-pastille svg{width:13px;height:13px;display:block}
.pb-mode.avec-cat .pb-mode-icone{display:none!important}
/* Petit téléphone : avec une catégorie imposée, la pastille suffit (le mode reste visible dans le menu) — la place va au texte. */
@media(max-width:420px){.pb-mode.avec-cat .pb-mode-libelle{display:none!important}.pb-mode.avec-cat{padding:0 6px}}
.pb-reglages-voile{display:none}
.pb-mode-menu.pb-reglages{width:340px;max-width:calc(100vw - 32px);padding:12px;max-height:min(560px,75dvh);overflow-y:auto}
.pb-reglages-poignee{display:none}
.pb-reglages-titre{display:none;margin:0 8px 2px;font-size:16px;font-weight:600}
.pb-reglages-sect{margin:4px 6px 8px;font-size:13px;font-weight:600;color:var(--muted)}
.pb-reglages-sect:not(:first-of-type){margin-top:12px}
.pb-reglages-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:0 2px 6px}
.pb-reglages-mode{display:flex;align-items:center;justify-content:center;gap:5px;min-height:38px;border:1.5px solid var(--border);border-radius:10px;background:transparent;color:var(--fg);font:inherit;font-size:14px;cursor:pointer}
.pb-reglages-mode.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent);color:var(--accent);font-weight:600}
.pb-reglages-mode.locked{opacity:.55}
.pb-reglages-mode svg{width:12px;height:12px}
.pb-reglages-cat{display:flex;align-items:center;gap:11px;width:100%;padding:7px 8px;border:none;border-radius:var(--radius-md);background:transparent;color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.pb-mode-menu.pb-reglages.vers-bas{bottom:auto;top:calc(100% + 10px);transform-origin:top right}
@media(hover:hover){.pb-reglages-cat:hover{background:var(--surface-hover)}}
.pb-reglages-cat.on{background:color-mix(in srgb,var(--accent) 8%,transparent)}
.pb-reglages-cat-icone{width:32px;height:32px;border-radius:10px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--fg) 6%,transparent)}
.pb-reglages-cat.on .pb-reglages-cat-icone{background:color-mix(in srgb,var(--accent) 16%,transparent);color:var(--accent)}
.pb-reglages-cat-icone svg{width:16px;height:16px}
.pb-reglages-cat-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.pb-reglages-cat-texte b{font-size:14px;font-weight:500}
.pb-reglages-cat-texte span{font-size:13px;line-height:1.35;color:var(--muted)}
.pb-reglages-coche{width:20px;height:20px;border-radius:50%;flex-shrink:0;box-sizing:border-box;border:1.5px solid color-mix(in srgb,var(--fg) 22%,transparent);display:flex;align-items:center;justify-content:center;color:#fff}
.pb-reglages-coche svg{width:11px;height:11px;stroke-width:3.5;opacity:0}
.pb-reglages-cat.on .pb-reglages-coche{background:var(--accent);border-color:var(--accent)}
.pb-reglages-cat.on .pb-reglages-coche svg{opacity:1}
@media(max-width:768px){
  .pb-reglages-voile{display:block;position:fixed;inset:0;z-index:260;background:rgba(0,0,0,.32);animation:sa-fondu var(--dur-fast) ease-out}
  .pb-mode-menu.pb-reglages{position:fixed;left:0;right:0;bottom:0;top:auto;width:auto;max-width:none;z-index:261;border-radius:22px 22px 0 0;border:none;padding:10px 12px max(18px,env(safe-area-inset-bottom));max-height:85dvh;transform-origin:bottom center;box-shadow:0 -8px 30px rgba(0,0,0,.18)}
  .pb-reglages-poignee{display:block;width:40px;height:5px;border-radius:var(--radius-full);margin:0 auto 12px;background:color-mix(in srgb,var(--fg) 18%,transparent)}
  .pb-reglages-titre{display:block}
  .pb-reglages-mode{min-height:42px;font-size:14px}
  .pb-reglages-cat{padding:9px 8px}
}
/* Fonctionnalités : où trouver le sélecteur de catégorie dans le Chat (13/10/2026). */
.settings-pro .page-col .card .settings-row.avec-aide{border-bottom:none;padding-bottom:4px}
.reglage-ou-trouver{display:flex;align-items:flex-start;gap:8px;margin:0 0 14px 44px;padding:10px 12px;border-radius:10px;background:color-mix(in srgb,var(--fg) 5%,transparent);font-size:13px;line-height:1.45;color:color-mix(in srgb,var(--fg) 75%,transparent)}
.reglage-ou-trouver.actif{background:color-mix(in srgb,var(--accent) 10%,transparent);color:color-mix(in srgb,var(--accent) 70%,var(--fg))}
.reglage-ou-trouver svg{width:14px;height:14px;flex-shrink:0;margin-top:2px}
/* Pastille « Nouvelle conversation » : s’adapte à la langue et à la largeur (06/10/2026). */
@media(max-width:768px){
  .sidebar-inner>.sidebar-footer{gap:10px}
  .sidebar-footer>.sb-profil{flex:0 0 auto}
  .sidebar-footer>.sb-nouveau-mobile{flex:0 1 auto;min-width:0;max-width:calc(100% - 64px);padding:0 18px 0 16px;gap:8px}
  .sidebar-footer .sb-nouveau-mobile span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:clamp(14px,4.1vw,16px)}
}
@media(max-width:768px){
  .sidebar-footer .sb-nouveau-mobile span{white-space:normal;text-overflow:clip;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.15;text-align:left}
}
/* Tiroir mobile : boutons un peu plus petits, pastille toujours sur UNE ligne (06/10/2026). */
@media(max-width:768px){
  .sidebar{width:min(360px,86vw)}
  .sb-recherche{width:42px;height:42px}
  .sb-recherche svg{width:19px;height:19px}
  .sidebar-footer>.sb-nouveau-mobile{height:46px;padding:0 16px 0 14px;gap:7px;max-width:calc(100% - 56px)}
  .sb-nouveau-mobile svg{width:18px;height:18px}
  .sidebar-footer .sb-nouveau-mobile span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:unset;line-height:1;font-size:clamp(14px,3.9vw,15px)}
  .sb-profil-bouton.compact{width:46px;height:46px;min-height:46px}
  .sb-profil-bouton.compact .sb-profil-avatar{width:36px;height:36px;font-size:13px}
}
@media(max-width:345px){.sb-nouveau-mobile svg{display:none}.sidebar-footer>.sb-nouveau-mobile{padding:0 14px}}
/* Tiroir mobile : boutons et entrées plus compacts (2e passe, 06/10/2026). */
@media(max-width:768px){
  .sidebar .sidebar-logo a{font-size:24px}
  .sb-recherche{width:38px;height:38px}
  .sb-recherche svg{width:17px;height:17px}
  .sidebar-inner>.sidebar-nav .nav-item{min-height:46px;padding:8px 12px;font-size:16px;gap:14px}
  .sidebar-inner>.sidebar-nav .nav-item>svg{width:21px;height:21px}
  .sb-recent-ouvrir{font-size:16px;min-height:44px}
  .sidebar-footer>.sb-nouveau-mobile{height:40px;padding:0 14px 0 12px;gap:6px;box-shadow:0 4px 12px color-mix(in srgb,var(--accent) 28%,transparent)}
  .sb-nouveau-mobile svg{width:16px;height:16px}
  .sidebar-footer .sb-nouveau-mobile span{font-size:clamp(14px,3.7vw,14px)}
  .sb-profil-bouton.compact{width:40px;height:40px;min-height:40px}
  .sb-profil-bouton.compact .sb-profil-avatar{width:32px;height:32px;font-size:12px}
}
/* Tiroir mobile : un cran plus grand, et entrées remontées sous le logo (3e passe, 06/10/2026). */
@media(max-width:768px){
  .sidebar .sidebar-head{padding-top:18px;padding-bottom:2px}
  .sidebar .sidebar-logo{padding-top:0;padding-bottom:0}
  .sidebar-inner>.sidebar-nav{padding-top:0}
  .sidebar-inner>.sidebar-nav .nav-item{min-height:48px;font-size:16px}
  .sidebar-inner>.sidebar-nav .nav-item>svg{width:22px;height:22px}
  .sb-recherche{width:40px;height:40px}
  .sidebar-footer>.sb-nouveau-mobile{height:42px}
  .sidebar-footer .sb-nouveau-mobile span{font-size:clamp(14px,3.8vw,15px)}
  .sb-nouveau-mobile svg{width:17px;height:17px}
  .sb-profil-bouton.compact{width:42px;height:42px;min-height:42px}
  .sb-profil-bouton.compact .sb-profil-avatar{width:34px;height:34px;font-size:13px}
}
@media(max-width:768px){.sidebar .sidebar-head{padding-bottom:16px}}
/* ══ Barre latérale : corrections du 06/10/2026 (« règle tout ») ══ */
.sb-recents-tout{display:flex;align-items:center;gap:4px;margin:8px 0 0;padding:8px;border:none;background:none;color:var(--muted);font-size:13px;cursor:pointer;border-radius:var(--radius-sm)}
@media(hover:hover){.sb-recents-tout:hover{color:var(--fg);background:color-mix(in srgb,var(--fg) 5%,transparent)}}
.sb-recents-tout svg{width:14px;height:14px}
.sb-alerte-capacite{display:flex;align-items:center;gap:8px;width:100%;padding:8px 10px;border:1px solid color-mix(in srgb,var(--warn) 45%,var(--border));border-radius:10px;background:color-mix(in srgb,var(--warn) 9%,var(--bg));color:var(--fg);font-size:13px;cursor:pointer;text-align:left}
.sb-alerte-capacite svg{width:15px;height:15px;color:var(--warn);flex-shrink:0}
.sidebar-footer .sb-alerte-capacite span{font-size:13px;color:var(--fg);letter-spacing:0}
/* Avatar : même couleur sur PC et téléphone. */
.sidebar-footer .sb-profil-avatar{background:#9d8de8;color:#fff}
@media(max-width:768px){
  .sidebar-inner>.sidebar-footer{flex-wrap:wrap}
  .sidebar-footer>.sb-alerte-capacite{order:0;flex-basis:100%}
  /* Code : badge « Pro » seulement pour qui n'y a pas accès. */
  .sidebar-inner>.sidebar-nav .nav-item .badge.badge-verrou{display:inline-flex;margin-left:auto;font-size:11px}
  /* Repères de date de nouveau visibles, discrets. */
  .sb-recents-titre{display:block;font-size:12px;padding:12px 12px 4px}
  /* La conversation ouverte montre son ⋯ (les autres : appui long). */
  .sb-recent.actif .sb-recent-plus{opacity:.7!important;pointer-events:auto}
  .sb-recents-tout{margin-left:4px;font-size:14px}
}
/* Salutation un peu plus bas sur téléphone (06/10/2026). */
@media(max-width:768px){.chat-view:not(.code-view) .chat-body-empty .accueil-chat{padding-top:calc(24px + 9vh + max(0px, (100dvh - 740px) * .45))}}
/* Logo au-dessus de « Bonjour … » (téléphone seulement) : le bloc remonte de la hauteur du logo pour que l'ensemble ne descende pas. */
.accueil-logo{display:none}
@media(max-width:768px){
  .chat-view:not(.code-view) .chat-body-empty .accueil-chat{transition:padding-top .5s var(--ease-out);display:flex;flex-direction:column;align-items:center;padding-top:max(12px, calc(24px + 9vh + max(0px, (100dvh - 740px) * .45) - 26px))}
  .accueil-logo{display:block;width:58px;height:58px;margin:0 auto 14px;user-select:none;-webkit-user-drag:none;pointer-events:none}
}
/* Retours du 06/10/2026 : sélecteur de mode avec son texte sur mobile (comme avant) ; bouton d'envoi = rond + flèche. */
@media(max-width:520px){.pb-mode .pb-mode-libelle{display:inline}.pb-mode .pb-mode-icone{display:none}}
.chat-input .send-btn svg{width:18px;height:18px}
/* ══ PC : rail d'icônes + panneau + en-tête « Chat | Code » (06/10/2026, référence de l'utilisateur) ══ */
.sb-ligne-projets,.sb-recents-entete,.ico-pc{display:none}
@media(min-width:769px){
  /* pastille de la page active : glisse d'une icône à l'autre (0,26 s) ; le fond propre du bouton actif est remplacé par elle */
  /* La pastille voyage avec la transition de page (elle porte son propre nom) ; sans l'API, simple glissement CSS. */
  /* Panneau */
  .sidebar{width:270px;min-width:270px;background:var(--surface);border-right:none}
  .sidebar.closed{width:0!important;min-width:0!important;border:none;overflow:hidden}
  .sidebar .sb-toggle{display:none!important}
  .sidebar .sidebar-head{padding:16px 14px 6px 16px;align-items:center}
  .sidebar .sidebar-logo,.sidebar .sidebar-logo a{padding:0;font-size:21px}
  .sb-recherche{display:flex;margin-left:auto;width:36px;height:36px;border-radius:10px;align-items:center;justify-content:center;border:none;background:none;box-shadow:none;color:var(--muted)}
  .sb-recherche:hover{background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--fg)}
  .sb-recherche svg{width:19px;height:19px}
  .sidebar .sidebar-new{padding:4px 8px 2px}
  .sidebar .sidebar-new .btn{width:100%;justify-content:flex-start;gap:12px;min-height:40px;padding:8px 10px;background:none;color:var(--fg);border:none;box-shadow:none;font-size:15px;font-weight:400;border-radius:10px}
  .sidebar .sidebar-new .btn:hover{background:color-mix(in srgb,var(--fg) 6%,transparent)}
  .sidebar .sidebar-new .btn svg{width:18px;height:18px}
  .sb-ligne-projets{display:flex;align-items:center;gap:6px;margin:10px 8px 0;padding:8px 10px;min-height:40px;border:none;background:none;border-radius:10px;color:color-mix(in srgb,var(--fg) 72%,transparent);font-size:15px;cursor:pointer;text-align:left}
  .sb-ligne-projets:hover{background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--fg)}
  .sb-ligne-projets svg{width:15px;height:15px}
  .sidebar-inner>.sidebar-nav{display:none}
  .sb-recents{border-top:none;padding:14px 8px 12px}
  .sb-recents-entete{display:block;padding:6px 10px 8px;font-size:15px;color:color-mix(in srgb,var(--fg) 62%,transparent)}
  .sb-recents-titre{display:none}
  .sb-recents-groupe+.sb-recents-groupe{margin-top:0}
  .sb-recent-ouvrir{font-size:14px;min-height:38px;padding:8px 4px 8px 10px;color:var(--fg)}
  .sidebar-inner>.sidebar-footer{border-top:none;padding:8px 12px 12px}
  .sidebar-upgrade{padding:0 12px 4px}
  /* En-tête de la zone principale : « Chat | Code » au centre, nouvelle conversation à droite */
  .chat-top-bar{position:relative}
  .chat-top-bar .chat-header-context{opacity:0;pointer-events:none}
  .chat-view:not(.code-view) .chat-header-controls{display:flex!important;border:none;background:none}
  html:not(.dark) .chat-view:not(.code-view) .chat-header-controls{background:none}
  /* Téléphone : plus de « Nouvelle conversation » en haut du chat (21/11/2026, demande) : seule la conversation privée reste à droite. */
  .chat-view:not(.code-view) .chat-header-new{display:none!important}
  .chat-view:not(.code-view) .chat-header-new:hover{color:var(--fg)}
  .ico-mobile{display:none}.ico-pc{display:flex}
  /* Accueil : grande phrase posée, saisie juste dessous */
  .chat-view:not(.code-view) .accueil-titre{font-size:34px;font-weight:400;letter-spacing:-.015em}
  /* Barre de saisie : blanche, légère ombre, pilule */
  .chat-view .chat-input-wrap .chat-input.pb{border:1px solid color-mix(in srgb,var(--fg) 9%,transparent);border-radius:30px;box-shadow:0 6px 24px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.04);background:var(--bg)}
  .send-btn.send-btn-vide{background:color-mix(in srgb,var(--accent) 45%,var(--bg));color:#fff;opacity:1;cursor:default}
  .chat-input .pb-tools{gap:6px}
}
@media(min-width:769px){
  html:not(.dark) .sidebar{background:#EDEFF2}
  html:not(.dark) .app{background:#EDEFF2}
  .main-content{margin:8px 8px 8px 0;border-radius:var(--radius-lg);overflow:hidden;background:var(--bg);box-shadow:0 0 0 1px color-mix(in srgb,var(--fg) 6%,transparent),0 1px 3px rgba(0,0,0,.04)}
  .main-content:has(.reglages-fenetre){margin:8px 8px 8px 0}
  html:not(.dark) .chat-view .chat-input-wrap .chat-input.pb{background:#fff}
  .code-view .chat-header-controls{border:none;background:none!important}
  .code-view .chat-header-controls .btn-icon{border:none;background:none;color:var(--muted)}
}
@media(min-width:769px){
  html:not(.dark) .main-content,html:not(.dark) .main-content .chat-view,html:not(.dark) .main-content .chat-body,html:not(.dark) .main-content .chat-messages,html:not(.dark) .main-content .chat-input-wrap{background:var(--fond-lecture)}
  .main-content .chat-top-bar{background:transparent!important;border-bottom:none!important;box-shadow:none!important}
  html.dark .main-content,html.dark .main-content .chat-view,html.dark .main-content .chat-body,html.dark .main-content .chat-messages,html.dark .main-content .chat-input-wrap{background:var(--bg)}
}
/* ══ Ajustements PC/mobile du 06/10/2026 (2e passe sur la référence) ══ */
@media(min-width:769px){
  html:not(.dark) .app{background:#EDEFF2}
  html.dark .app{background:#191D21}
  /* Panneau et zone principale = une seule carte arrondie posée sur le fond */
  .sidebar:not(.closed){margin:8px 0;height:calc(100% - 16px);border-radius:18px 0 0 18px;box-shadow:-1px 0 0 0 color-mix(in srgb,var(--fg) 6%,transparent),0 -1px 0 0 color-mix(in srgb,var(--fg) 6%,transparent),0 1px 0 0 color-mix(in srgb,var(--fg) 6%,transparent)}
  html:not(.dark) .sidebar:not(.closed){background:#F4F6F8}
  html.dark .sidebar:not(.closed){background:#13161A}
  .sidebar:not(.closed)+.main-content{border-radius:0 18px 18px 0}
  .main-content{border-radius:18px}
  /* Textes du panneau plus grands, comme la référence */
  .sidebar .sidebar-head{padding:18px 16px 8px 22px}
  /* Un cran plus compact (06/10/2026) : textes légèrement réduits, mêmes proportions. */
  .sidebar .sidebar-logo,.sidebar .sidebar-logo a{font-size:23px;font-weight:700}
  .sidebar .sidebar-new{padding:6px 12px 2px}
  .sidebar .sidebar-new .btn{font-size:16px;min-height:42px;gap:12px}
  .sidebar .sidebar-new .btn svg{width:19px;height:19px}
  .sb-ligne-projets{margin:12px 12px 0;font-size:16px;font-weight:600;min-height:42px}
  .sb-recents{padding:18px 12px 12px}
  .sb-recents-entete{font-size:16px;font-weight:600;padding:6px 10px 8px}
  .sb-recent-ouvrir{font-size:14px;min-height:39px;padding:8px 4px 8px 10px}
  .sb-recent-ouvrir span{flex:1;min-width:0;text-overflow:clip;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent)}
  .sb-recents-tout{font-size:14px}
  /* Section Code du panneau, au même gabarit */
  .sb-code-action{font-size:14px;min-height:38px}
  .sb-code-groupe-nom{font-size:14px}
  .sb-code-session{font-size:14px;min-height:34px}
  /* Salutation moins imposante */
  .chat-view:not(.code-view) .accueil-titre{font-size:28px;font-weight:400}
}
@media(max-width:768px){.chat-view:not(.code-view) .accueil-titre{font-size:22px;font-weight:500;letter-spacing:-.01em}}
@media(min-width:769px){
  .sidebar:not(.closed){width:300px;min-width:300px}
  .sidebar .sidebar-new .btn{white-space:nowrap;text-align:left}
  .sidebar .sidebar-new .btn .sb-copy{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .sb-recent-plus{width:26px;margin-right:0}
}
@media(min-width:769px){.sidebar:not(.closed) .sidebar-inner{width:100%;min-width:0}}
@media(max-width:768px){.chat-view:not(.code-view) .accueil-titre{font-size:19px;font-weight:500}}
/* ══ Barre du chat sur ordinateur : carte à deux étages, calquée sur Claude (26/10/2026, remplace la ligne unique du 16/10) ══
   Texte en haut ; « + » à gauche, niveau / micro / envoi à droite en dessous. PC seulement : le téléphone garde sa carte actuelle. */
@media(min-width:769px){
  .chat-view:not(.code-view) .accueil-titre{font-size:34px;font-weight:400;letter-spacing:-.02em}
  .chat-view .chat-input-wrap .chat-input.pb{gap:28px;padding:20px 18px 14px 20px;border-radius:22px;background:color-mix(in srgb,var(--surface) 99.5%,var(--bg));box-shadow:0 1px 3px rgba(0,0,0,.05),0 6px 24px rgba(0,0,0,.05)}
  .chat-view .chat-body-empty .chat-input-inner{max-width:720px}
  .chat-view .chat-input.pb .pb-apercu{padding:0;min-height:28px;font-size:19px;line-height:28px}
  .chat-view .chat-input.pb textarea{padding:0;min-height:28px;font-size:19px;line-height:28px;font-weight:400}
  .chat-view .chat-input.pb .pb-bas:not(.pb-dictee){height:40px}
  .chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add,.chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add:hover{width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;margin-left:-2px;background:transparent!important}
  .chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add:hover{background:var(--surface-hover)!important}
  .chat-view .chat-input.pb .pb-mode{height:32px;padding:0 8px;background:transparent;color:var(--fg);font-size:15px;gap:4px}
  .chat-view .chat-input.pb .pb-mode:hover,.chat-view .chat-input.pb .pb-mode[aria-expanded="true"]{background:var(--surface-hover)}
  .chat-view .chat-input.pb .pb-mode svg{width:14px;height:14px;color:var(--muted)}
  .chat-view .chat-input-wrap .chat-input.pb .pb-actions{gap:4px}
  .chat-view .chat-input-wrap .chat-input.pb .pb-actions .send-btn,.chat-view .chat-input.pb .pb-actions .pb-rond{width:36px;height:36px}
  .chat-view .chat-input.pb .pb-actions .voice-btn:not(.recording){width:34px;height:34px;background:transparent;color:var(--muted);border:0;box-shadow:none}
  .chat-view .chat-input.pb .pb-actions .voice-btn:not(.recording):hover{background:var(--surface-hover)}
  /* Pastille Web : seulement quand la recherche est active */
  .chat-view .chat-input.pb .pb-web{display:none}
}
/* ══ Boutons un cran plus petits sur ordinateur (16/10/2026) : colonne d'icônes, panneau, bascule Chat/Code ══ */
@media(min-width:769px){
  .sidebar:not(.closed){width:276px;min-width:276px}
  .sidebar .sidebar-head{padding:14px 14px 6px 18px}
  .sidebar .sidebar-logo,.sidebar .sidebar-logo a{font-size:20px}
  .sb-recherche{width:32px;height:32px}
  .sb-recherche svg{width:17px;height:17px}
  .sidebar .sidebar-new{padding:4px 10px 2px}
  .sidebar .sidebar-new .btn{font-size:14px;min-height:36px;gap:10px;padding:6px 10px}
  .sidebar .sidebar-new .btn svg{width:17px;height:17px}
  .sb-ligne-projets{margin:8px 10px 0;font-size:14px;min-height:36px;padding:6px 10px}
  .sb-ligne-projets svg{width:14px;height:14px}
  .sb-recents{padding:12px 10px 10px}
  .sb-recents-entete{font-size:14px;padding:4px 10px 6px}
  .sb-recent-ouvrir{font-size:14px;min-height:34px;padding:6px 4px 6px 10px}
  .sb-code-action{font-size:14px;min-height:34px;padding:6px 10px}
  .sb-code-session{font-size:14px;min-height:32px}
  .chat-top-bar .btn-icon{width:34px;height:34px}
  .chat-top-bar .btn-icon svg{width:19px;height:19px}
}
/* Astra Code : plus de petites flèches sur les sélecteurs du pied (projet, autorisations, niveau) — 16/10/2026 */
.cl-mode-chevron{display:none!important}
/* ══ Aperçu des artefacts — repris d'Open Design (Apache-2.0, https://github.com/nexu-io/open-design, apps/web/src/styles/viewer/*.css) ══
   Règles extraites TELLES QUELLES, rangées sous « .od-viewer » ; variables renommées --od-… ; thème sombre = html.dark. */
.od-viewer{
  /* Jetons d'Open Design (apps/web/src/styles/tokens.css), repris tels quels : le panneau garde SA palette neutre, l'accent d'Astra reste ailleurs. */
  --od-bg:#fff;--od-bg-app:#fff;--od-bg-panel:#fafafa;--od-bg-subtle:#ededed;--od-bg-muted:#dbdbdb;--od-bg-fill-tertiary:rgba(0,0,0,.03);--od-bg-fill-secondary:rgba(0,0,0,.06);
  --od-border:#dbdbdb;--od-border-strong:#bdbdbd;--od-border-soft:#ededed;
  --od-text:#494949;--od-text-strong:#202020;--od-text-muted:#5c5c5c;--od-text-soft:#848484;--od-text-faint:#bdbdbd;
  --od-accent:#353535;--od-accent-strong:#202020;--od-accent-soft:#ededed;--od-accent-tint:#f7f7f7;--od-accent-hover:#202020;--od-selected:#353535;
  --od-green:#00AA54;--od-green-bg:#f5ffee;--od-blue:#1A74FF;--od-blue-bg:color-mix(in srgb,#1A74FF 10%,#fafafa);--od-purple:#353535;--od-purple-bg:#ededed;
  --od-red:#F04142;--od-red-bg:color-mix(in srgb,#F04142 10%,#fafafa);--od-red-border:color-mix(in srgb,#F04142 24%,#dbdbdb);
  --od-shadow-xs:0 1px 0 rgba(28,27,26,.04);--od-shadow-sm:0 1px 2px rgba(28,27,26,.05),0 1px 3px rgba(28,27,26,.04);--od-shadow-md:0 6px 24px rgba(28,27,26,.07),0 2px 6px rgba(28,27,26,.04);--od-shadow-lg:0 24px 60px rgba(28,27,26,.16),0 8px 16px rgba(28,27,26,.07);
  --od-radius:8px;--od-radius-md:8px;--od-radius-sm:4px;--od-radius-xs:2px;--od-radius-pill:999px;--od-spacing-2:8px;--od-stroke-thin:1px;
  --od-curve-easy-ease:cubic-bezier(.33,0,.67,1);--od-duration-faster:100ms;--od-dur-quick:100ms;--od-ease-out:cubic-bezier(.22,1,.36,1);
  --od-glass-regular:rgba(250,250,250,.66);--od-glass-backdrop:blur(28px) saturate(1.8);--od-scrim-backdrop:blur(50px);--od-material-separator:rgba(73,73,73,.18);--od-veil-canvas:transparent;
  --od-viewer-action-menu-z:220;--od-app-chrome-traffic-margin:0px;--od-workspace-tab-bar-bg:var(--od-bg);--od-workspace-active-tab-border:color-mix(in srgb,var(--od-border-strong) 38%,transparent);--od-font-size-13:13px;
  display:flex;flex-direction:column;flex:1;min-height:0;min-width:0}
html.dark .od-viewer{
  --od-bg:#202020;--od-bg-app:#202020;--od-bg-panel:#353535;--od-bg-subtle:#494949;--od-bg-muted:#5c5c5c;--od-bg-fill-tertiary:rgba(255,255,255,.06);--od-bg-fill-secondary:rgba(255,255,255,.10);
  --od-border:#5c5c5c;--od-border-strong:#848484;--od-border-soft:#494949;
  --od-text:#ededed;--od-text-strong:#fafafa;--od-text-muted:#bdbdbd;--od-text-soft:#848484;--od-text-faint:#5c5c5c;
  --od-accent:#ededed;--od-accent-strong:#fafafa;--od-accent-soft:#494949;--od-accent-tint:#353535;--od-accent-hover:#fafafa;--od-selected:#ededed;
  --od-green:#3BBF7D;--od-green-bg:#164111;--od-blue:#3AA5F0;--od-blue-bg:color-mix(in srgb,#1A74FF 22%,#202020);--od-purple:#ededed;--od-purple-bg:#494949;
  --od-red:#FF5E5E;--od-red-bg:color-mix(in srgb,#F04142 24%,#202020);--od-red-border:color-mix(in srgb,#FF5E5E 34%,#5c5c5c);
  --od-shadow-xs:0 1px 0 rgba(0,0,0,.2);--od-shadow-sm:0 1px 2px rgba(0,0,0,.3),0 1px 3px rgba(0,0,0,.2);--od-shadow-md:0 6px 24px rgba(0,0,0,.4),0 2px 6px rgba(0,0,0,.25);--od-shadow-lg:0 24px 60px rgba(0,0,0,.6),0 8px 16px rgba(0,0,0,.3);
  --od-glass-regular:rgba(53,53,53,.66);--od-material-separator:#5c5c5c;--od-veil-canvas:#202020}
/* ── shell.css / drawer.css / routines.css : barre d'onglets, boutons d'en-tête, menus Exporter / Présenter (Open Design, tels quels) ── */
/* ── primitives.css ── */
.od-viewer .od-tooltip {
  position: relative;
}

/* ── shell.css ── */
.od-viewer .workspace-shell > .workspace-tabs-chrome {
  grid-row: 1;
}

.od-viewer .workspace-tabs-chrome.app-chrome-header {
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  height: 44px;
  padding: 0 10px 0 8px;
  gap: 0;
  
  background: var(--od-bg);
  border-bottom: 0;
  user-select: none;
  -webkit-app-region: drag;
  overflow: visible;
  position: relative;
  z-index: 120;
}

.od-viewer .workspace-tabs-chrome .workspace-tabs-traffic {
  margin-right: var(--od-app-chrome-traffic-margin);
}


.od-viewer .workspace-tabs-icon-btn.is-active{
  color: var(--od-text-strong);
  background: color-mix(in srgb, var(--od-text) 6%, transparent);
  border-color: transparent;
}
@media(hover:hover){.od-viewer .workspace-tabs-icon-btn:hover:not(:disabled){
  color: var(--od-text-strong);
  background: color-mix(in srgb, var(--od-text) 6%, transparent);
  border-color: transparent;
}}

.od-viewer .workspace-tab.is-active {
  background: var(--od-bg-panel);
  border-color: color-mix(in srgb, var(--od-border) 72%, transparent);
  border-bottom-color: var(--od-bg-panel);
  color: var(--od-text-strong);
  box-shadow: 0 -1px 0 color-mix(in srgb, #ffffff 68%, transparent) inset;
}


.od-viewer .workspace-tab:focus-within::before,.od-viewer .workspace-tab:focus-within + .workspace-tab::before,.od-viewer .workspace-tab.is-active::before,.od-viewer .workspace-tab.is-active + .workspace-tab::before{
  opacity: 0;
}
@media(hover:hover){.od-viewer .workspace-tab:hover::before,.od-viewer .workspace-tab:hover + .workspace-tab::before{
  opacity: 0;
}}


.od-viewer .workspace-tab.is-active .workspace-tab__close{
  opacity: 1;
}
@media(hover:hover){.od-viewer .workspace-tab:hover .workspace-tab__close{
  opacity: 1;
}}


.od-viewer .workspace-tabs-list__item.is-active{
  background: color-mix(in srgb, var(--od-selected) 9%, var(--od-bg-subtle));
}
@media(hover:hover){.od-viewer .workspace-tabs-list__item:hover{
  background: color-mix(in srgb, var(--od-selected) 9%, var(--od-bg-subtle));
}}

@media (max-width: 720px) {
.od-viewer .workspace-tabs-chrome.app-chrome-header {
    padding-right: 6px;
  }
}

.od-viewer .chrome-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--od-radius);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid var(--od-border);
  background: transparent;
  color: var(--od-text);
  transition: background var(--od-dur-quick) var(--od-ease-out), border-color var(--od-dur-quick) var(--od-ease-out), color var(--od-dur-quick) var(--od-ease-out);
}

.od-viewer .chrome-action svg {
  display: block;
}

.od-viewer .chrome-action > svg:first-child {
  transform: translateY(1px);
}

@media(hover:hover){.od-viewer .chrome-action:hover:not(:disabled){
  background: var(--od-bg-subtle);
}}

.od-viewer .chrome-action.is-active {
  background: var(--od-bg-panel);
  border-color: color-mix(in srgb, var(--od-accent) 32%, var(--od-border));
}

.od-viewer .chrome-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  box-shadow: none;
}

.od-viewer .chrome-action-secondary {
  border-color: var(--od-border);
  background: var(--od-bg);
  color: var(--od-text);
}

@media(hover:hover){.od-viewer .chrome-action-secondary:hover:not(:disabled){
  background: var(--od-bg-subtle);
  border-color: var(--od-border);
}}

.od-viewer .chrome-file-action-menus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.od-viewer .chrome-action-with-label {
  gap: 8px;
}

.od-viewer .present-trigger[aria-expanded='true'] {
  background: var(--od-bg-panel);
  border-color: color-mix(in srgb, var(--od-accent) 32%, var(--od-border));
}

.od-viewer .chrome-action-primary {
  background: var(--od-text-strong);
  border-color: var(--od-text-strong);
  color: var(--od-bg);
}

@media(hover:hover){.od-viewer .chrome-action-primary:hover:not(:disabled){
  background: var(--od-text);
  border-color: var(--od-text);
  color: var(--od-bg);
}}

.od-viewer .chrome-share-menu .share-menu-popover,
.od-viewer .chrome-present-wrap .present-menu {
  top: calc(100% + 6px);
}

.od-viewer .chrome-share-menu .share-menu-popover {
  right: 0;
}

.od-viewer .chrome-present-wrap .present-menu {
  
  right: 0;
  left: auto;
}

.od-viewer .share-menu.chrome-share-menu--unified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.od-viewer .chrome-share-menu--unified .chrome-unified-popover {
  
  width: max-content;
  min-width: min(248px, calc(100vw - 32px));
  max-width: min(360px, calc(100vw - 32px));
  padding: 6px;
  border-radius: var(--od-radius);
  background: var(--od-bg-panel);
  box-shadow: var(--od-shadow-md);
}

.od-viewer .chrome-unified-panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 8px;
}

.od-viewer .chrome-access-options button.is-active {
  background: color-mix(in srgb, var(--od-accent) 6%, var(--od-bg));
  color: var(--od-text-strong);
}

@media(hover:hover){.od-viewer .share-menu-item:hover:not(:disabled) .share-menu-help{
  color: var(--od-text);
}}

.od-viewer .chrome-action-unified.export-ready-nudge {
  animation: export-ready-nudge 1600ms var(--ease-out) 1;
}

.od-viewer .artifact-version-panel .artifact-version-panel__popover.file-version-restore-confirm,
.od-viewer .artifact-version-panel .artifact-version-panel__popover.file-version-download-menu.share-menu-popover {
  position: absolute;
  z-index: 3;
  left: 14px;
  right: 14px;
  bottom: 62px;
  top: auto;
  width: auto;
  max-width: none;
  min-width: 0;
  transform-origin: bottom center;
}

@media (max-width: 880px) {
.od-viewer .chrome-action-secondary span { display: none; }

.od-viewer .chrome-action-secondary { padding: 0 10px; }

.od-viewer .chrome-action-secondary.chrome-action-text-only span { display: inline; }

.od-viewer .chrome-action-secondary.chrome-action-text-only { padding: 0 12px; }
}

.od-viewer .avatar-model-option.is-active {
  background: var(--od-accent-tint);
  color: var(--od-accent);
  font-weight: 600;
}

/* ── workspace/artifacts.css ── */
.od-viewer .model-select-searchable__company.is-active {
  background: var(--od-bg-subtle);
  color: var(--od-text-strong);
  font-weight: 600;
}

.od-viewer .model-select-searchable__option.is-active {
  background: var(--od-accent-tint);
  color: var(--od-accent-strong);
}

.od-viewer .settings-byok-select-popover .model-select-searchable__option.is-active {
  background: color-mix(in srgb, var(--od-selected) 10%, var(--od-bg-panel));
  color: var(--od-text);
}

@media(hover:hover){.od-viewer .settings-byok-select-popover .model-select-searchable__option.is-active:hover{
  background: color-mix(in srgb, var(--od-selected) 14%, var(--od-bg-panel));
}}

.od-viewer .inline-model-popover .model-select-searchable__option.is-active .model-select-searchable__option-label::before {
  content: '';
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: currentColor;
}

@media(hover:hover){.od-viewer .inline-model-popover .model-select-searchable__option:not(.is-active):hover .model-select-searchable__option-label{
  transform: translateX(6px);
}}

.od-viewer .model-select-searchable__option.is-active .model-select-searchable__option-meta {
  color: color-mix(in srgb, var(--od-accent-strong) 60%, var(--od-text-muted));
}

/* ── workspace/drawer.css ── */
.od-viewer .ws-tabs-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  
  background: var(--od-bg);
  
  height: 44px;
  position: sticky;
  top: 0;
  z-index: 4;
  
  border-bottom: 1px solid var(--od-border);
}

.od-viewer .ws-tabs-shell:has(.entry-settings-menu__popover) {
  z-index: 1900;
}

.od-viewer .ws-tabs-bar {
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  
  flex: 0 1 auto;
  min-width: 0;
  height: 100%;
  
  scrollbar-width: thin;
  scrollbar-color: var(--od-border-strong) transparent;
}

.od-viewer .ws-tabs-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  
  margin-inline-start: auto;
}

.od-viewer .ws-tabs-file-actions-before,
.od-viewer .ws-tabs-file-actions,
.od-viewer .ws-tabs-project-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .od-viewer .ws-tabs-actions .chrome-action-secondary.chrome-action-with-label > span { display: none; }
  .od-viewer .ws-tabs-actions .chrome-action-secondary.chrome-action-with-label { padding-inline: 8px; }
}

.od-viewer .ws-tabs-actions .present-wrap {
  display: inline-flex;
  align-items: center;
}

.od-viewer .ws-tabs-file-actions:not(:empty) + .ws-tabs-project-actions {
  margin-inline-start: 2px;
  padding-inline-start: 4px;
}

.od-viewer .ws-tabs-actions .chrome-action {
  height: 28px;
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
  align-items: center;
  box-shadow: none;
}

.od-viewer .ws-tabs-actions .chrome-action-icon {
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  justify-content: center;
  
  border-color: transparent;
  background: var(--od-bg-subtle);
}

@media(hover:hover){.od-viewer .ws-tabs-actions .chrome-action-icon:hover:not(:disabled){
  background: var(--od-bg-muted);
  border-color: transparent;
}}

.od-viewer .ws-tabs-actions .chrome-action-icon.is-active,
.od-viewer .ws-tabs-actions .chrome-action-icon[aria-expanded='true'] {
  background: var(--od-bg-muted);
  border-color: transparent;
}

.od-viewer .ws-tabs-actions .handoff-trigger {
  height: 28px;
  min-height: 28px;
  align-items: center;
}

.od-viewer .ws-tabs-actions .handoff-caret {
  height: 28px;
  min-height: 28px;
  align-items: center;
}

.od-viewer .ws-tabs-actions .avatar-agent-trigger {
  height: 28px;
  min-height: 28px;
  align-items: center;
}

.od-viewer .ws-tabs-actions .chrome-action > svg:first-child {
  transform: none;
}

.od-viewer .ws-tabs-actions .chrome-action-dark {
  background: var(--od-text-strong);
  border-color: var(--od-text-strong);
  color: var(--od-bg-app);
}

@media(hover:hover){.od-viewer .ws-tabs-actions .chrome-action-dark:hover:not(:disabled){
  background: var(--od-text-strong);
  border-color: var(--od-text-strong);
  color: var(--od-brand, #87ea5c);
}}

.od-viewer .ws-tabs-actions .chrome-action-dark svg,
.od-viewer .ws-tabs-actions .chrome-action-dark i {
  color: var(--od-bg-app);
}

@media(hover:hover){.od-viewer .ws-tabs-actions .chrome-action-dark:hover:not(:disabled) svg,.od-viewer .ws-tabs-actions .chrome-action-dark:hover:not(:disabled) i{
  color: var(--od-brand, #87ea5c);
}}

.od-viewer .ws-tab {
  
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding: 0 8px;
  background: transparent;
  border: none;
  
  border-radius: 12px;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  max-width: 110px;
  min-width: 0;
  color: var(--od-text-muted);
  transition: background var(--dur-fast) var(--od-ease-out), color var(--dur-fast) var(--od-ease-out);
}

.od-viewer .ws-tab.live-artifact-tab {
  
  max-width: 260px;
}

@media(hover:hover){.od-viewer .ws-tab:hover{ background: var(--od-bg-subtle); color: var(--od-text); }}

.od-viewer .ws-tab.draggable { cursor: grab; }

.od-viewer .ws-tab.dragging {
  cursor: grabbing;
  opacity: 0.55;
}

.od-viewer .ws-tab.drag-over-before {
  box-shadow: inset 2px 0 0 var(--od-accent);
  background: var(--od-bg-subtle);
  color: var(--od-text);
}

.od-viewer .ws-tab.drag-over-after {
  box-shadow: inset -2px 0 0 var(--od-accent);
  background: var(--od-bg-subtle);
  color: var(--od-text);
}

.od-viewer .ws-tab:focus-visible {
  outline: 2px solid var(--od-accent);
  outline-offset: 2px;
}

.od-viewer .ws-tab.active {
  background: var(--od-bg-subtle);
  color: var(--od-text);
  box-shadow: none;
}

.od-viewer .ws-tab .tab-icon {
  flex: 0 0 auto;
  font-size: 13px;
  color: var(--od-text-muted);
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  text-align: center;
}

.od-viewer .ws-tab .tab-icon svg,
.od-viewer .ws-tab-close svg {
  display: block;
  flex: none;
}

.od-viewer .ws-tab.active .tab-icon { color: var(--od-text); }

.od-viewer .ws-tab-text {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  overflow: hidden;
}

.od-viewer .ws-tab-label {
  flex: 1 1 auto;
  min-width: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 96px;
  line-height: 1;
}

.od-viewer .ws-tab.has-meta {
  max-width: 320px;
}

.od-viewer .ws-tab.browser-tab {
  width: 110px;
}

.od-viewer .ws-tab.has-meta .ws-tab-label {
  flex: 0 1 auto;
  min-width: 42px;
  max-width: 150px;
}

.od-viewer .ws-tab-meta {
  flex: 1 1 auto;
  min-width: 28px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--od-text-faint);
  font-size: 12px;
  font-weight: 600;
}

.od-viewer .ws-tab-meta::before {
  content: "/";
  margin-right: 5px;
  color: color-mix(in srgb, var(--od-text-faint) 72%, transparent);
}

.od-viewer .ws-tab.live-artifact-tab .ws-tab-label {
  max-width: none;
}

.od-viewer .ws-tab.live-artifact-tab .ws-tab-text {
  flex-shrink: 100;
}

.od-viewer .ws-tab-close {
  flex: 0 0 auto;
  border: none;
  background: transparent;
  padding: 0 2px;
  font-size: 14px;
  line-height: 1;
  color: var(--od-text-faint);
  border-radius: var(--od-radius-xs);
  margin-left: 2px;
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

@media(hover:hover){.od-viewer .ws-tab-close:hover{ background: var(--od-border); color: var(--od-text); }}

.od-viewer .ws-add-tab {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  z-index: 3;
  margin-left: 2px;
}

.od-viewer .ws-tabs-bar.is-overflowing + .ws-add-tab {
  padding-left: 4px;
  background: #fff;
  box-shadow: -8px 0 10px -9px color-mix(in srgb, var(--od-text) 30%, transparent);
}

.od-viewer .ws-tab-add {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--od-radius-pill);
  background: transparent;
  color: var(--od-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--dur-fast) var(--od-ease-out), color var(--dur-fast) var(--od-ease-out);
}


.od-viewer .ws-tab-add.active,.od-viewer .ws-tab-add[aria-expanded='true']{
  background: var(--od-bg-subtle);
  color: var(--od-text);
}
@media(hover:hover){.od-viewer .ws-tab-add:hover{
  background: var(--od-bg-subtle);
  color: var(--od-text);
}}

.od-viewer .ws-tab-add:focus-visible {
  outline: 2px solid var(--od-accent);
  outline-offset: 2px;
}

.od-viewer .ws-tabs-actions { display: inline-flex; gap: 4px; align-items: center; }

.od-viewer .ws-tab-action {
  padding: 4px 12px;
  font-size: 13px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--od-radius-sm);
  color: var(--od-text-muted);
}

@media(hover:hover){.od-viewer .ws-tab-action:hover:not(:disabled){ background: var(--od-bg-subtle); color: var(--od-text); border-color: transparent; }}

.od-viewer .ws-tab-action.share {
  background: var(--od-text);
  color: var(--od-bg);
  border-color: var(--od-text);
  font-weight: 600;
}

@media(hover:hover){.od-viewer .ws-tab-action.share:hover:not(:disabled){
  background: #000;
  border-color: #000;
}}

/* ── viewer/core.css ── */
.od-viewer .workspace:has(.share-menu-popover, .present-menu),
.od-viewer.viewer:has(.share-menu-popover, .present-menu) {
  position: relative;
  z-index: 220;
  overflow: visible;
}

.od-viewer .viewer-toolbar .icon-only,
.od-viewer .viewer-toolbar-actions .icon-only {
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--od-radius-sm);
  color: var(--od-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@media(hover:hover){.od-viewer .viewer-toolbar .icon-only:hover:not(:disabled),.od-viewer .viewer-toolbar-actions .icon-only:hover:not(:disabled){ background: var(--od-bg-subtle); color: var(--od-text); }}

.od-viewer .viewer-action-icon:not(.od-tooltip)[data-tooltip]::after,
.od-viewer .viewer-comment-count-trigger:not(.od-tooltip)[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  padding: 4px 7px;
  border-radius: var(--od-radius-sm);
  background: var(--od-text);
  color: var(--od-bg-panel);
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}


.od-viewer .viewer-action-icon:not(.od-tooltip)[data-tooltip]:focus-visible::after,.od-viewer .viewer-comment-count-trigger:not(.od-tooltip)[data-tooltip]:focus-visible::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media(hover:hover){.od-viewer .viewer-action-icon:not(.od-tooltip)[data-tooltip]:hover::after,.od-viewer .viewer-comment-count-trigger:not(.od-tooltip)[data-tooltip]:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}}

.od-viewer .live-artifact-refresh-notice .icon-only {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: none;
  border-radius: var(--od-radius-sm);
  background: transparent;
  color: inherit;
  font-size: 16px;
}

@media(hover:hover){.od-viewer .live-artifact-refresh-notice .icon-only:hover{
  background: color-mix(in srgb, currentColor 12%, transparent);
}}

.od-viewer .file-version-download-menu.share-menu-popover {
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 252px;
  max-width: calc(100vw - 64px);
  z-index: 23;
  pointer-events: auto;
}

/* ── viewer/tools.css ── */
.od-viewer .present-wrap,
.od-viewer .share-menu {
  --viewer-action-menu-z: 220;
}

.od-viewer .present-wrap { position: relative; display: inline-block; }

.od-viewer .present-trigger .caret {
  margin-left: 4px;
  font-size: 12px;
  opacity: 0.7;
}

.od-viewer .present-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--od-viewer-action-menu-z);
  
  min-width: 200px;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 4px;
  background: var(--od-bg-panel);
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius);
  box-shadow: var(--od-shadow-md);
  display: flex;
  flex-direction: column;
}

.od-viewer .present-menu button {
  background: transparent;
  border: none;
  
  height: auto;
  padding: 8px 10px;
  font-size: 12px;
  text-align: left;
  border-radius: var(--od-radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  color: var(--od-text);
  white-space: normal;
  overflow-wrap: anywhere;
}

@media(hover:hover){.od-viewer .present-menu button:hover{ background: var(--od-bg-subtle); border-color: transparent; }}

.od-viewer .present-icon {
  display: inline-flex;
  width: 14px;
  justify-content: center;
  color: var(--od-text-muted);
  font-size: 12px;
}

.od-viewer .present-menu-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  
  white-space: normal;
}

.od-viewer .present-menu-copy small {
  color: var(--od-text-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.od-viewer .share-menu { position: relative; display: inline-block; }

.od-viewer .share-menu-popover {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: var(--od-viewer-action-menu-z);
  min-width: 300px;
  padding: 4px;
  background: var(--od-bg-panel);
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius);
  box-shadow: var(--od-shadow-md);
  display: flex;
  flex-direction: column;
}

.od-viewer .share-menu-item {
  display: flex;
  align-items: center;
  
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--od-radius-sm);
  cursor: pointer;
  color: var(--od-text);
}

@media(hover:hover){.od-viewer .share-menu-item:hover:not(:disabled){
  background: var(--od-bg-subtle);
  border-color: transparent;
}}

.od-viewer .share-menu-item:disabled { opacity: 0.45; cursor: not-allowed; }

.od-viewer .share-menu-icon {
  flex: 0 0 auto;
  width: 18px;
  min-height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 13px;
}

.od-viewer .share-menu-divider { height: 1px; background: var(--od-border); margin: 4px 6px; }

.od-viewer .share-menu-section-label {
  padding: 8px 10px 4px;
  color: var(--od-text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

/* ── viewer/templates/plugins.css ── */
.od-viewer .plugin-loop-home__card.is-active {
  border-color: var(--od-accent);
  box-shadow: 0 0 0 1px var(--od-accent);
}

.od-viewer .plugin-details-modal__hero-tab.is-active {
  background: var(--od-bg-panel);
  color: var(--od-text);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ── viewer/routines.css ── */
.od-viewer .workspace-tabs-chrome .workspace-tab:not(.is-pinned) {
  display: none;
}

.od-viewer .workspace-tabs-chrome:has(.workspace-tab.is-active:not(.is-pinned)) .workspace-tabs-glide {
  display: none;
}

.od-viewer .workspace-tabs-dropdown__row.is-active .workspace-tabs-dropdown__row-label {
  font-weight: 600;
}

.od-viewer .workspace-shell .workspace-tabs-chrome.app-chrome-header {
  
  --workspace-tabs-chrome-height: 44px;
  
  --workspace-tab-bar-bg: var(--od-bg);
  --workspace-active-tab-border: color-mix(in srgb, var(--od-border-strong) 38%, transparent);
  height: 44px;
  min-height: 44px;
  padding: 0 8px 0 0;
  background: var(--od-workspace-tab-bar-bg);
  border-bottom: 0;
  box-shadow: none;
}

.od-viewer .workspace-shell .workspace-tab.is-active::before,.od-viewer .workspace-shell .workspace-tab.is-active + .workspace-tab::before,.od-viewer .workspace-shell .workspace-tab:focus-within::before,.od-viewer .workspace-shell .workspace-tab:focus-within + .workspace-tab::before,.od-viewer .workspace-shell .workspace-tab.is-dragging::before,.od-viewer .workspace-shell .workspace-tab.is-dragging + .workspace-tab::before{
  opacity: 0;
}
@media(hover:hover){.od-viewer .workspace-shell .workspace-tab:hover::before,.od-viewer .workspace-shell .workspace-tab:hover + .workspace-tab::before{
  opacity: 0;
}}

.od-viewer .workspace-shell .workspace-tabs-chrome .workspace-tab.is-pinned,
.od-viewer .workspace-shell .workspace-tabs-chrome .workspace-tab.is-pinned:has(.workspace-tab__rail-toggle) {
  display: none;
}

.od-viewer .workspace-shell .workspace-tab.is-active {
  border-radius: 12px;
  background: #ffffff;
  border-color: var(--od-workspace-active-tab-border);
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--od-text) 6%, transparent),
    0 0 0 0.5px color-mix(in srgb, var(--od-bg-panel) 82%, transparent) inset;
  z-index: 2;
}

.od-viewer .workspace-shell .workspace-tab.is-pinned.is-active:has(.workspace-tab__rail-toggle) {
  background: var(--od-workspace-tab-bar-bg);
  border-color: transparent;
  box-shadow: none;
}


.od-viewer .workspace-shell .workspace-tab:not(.is-active):focus-within{
  border-radius: 12px;
  background: color-mix(in srgb, var(--od-bg-panel) 78%, transparent);
  border-color: transparent;
  
  box-shadow: 0 1px 2px color-mix(in srgb, var(--od-text) 5%, transparent);
}
@media(hover:hover){.od-viewer .workspace-shell .workspace-tab:not(.is-active):hover{
  border-radius: 12px;
  background: color-mix(in srgb, var(--od-bg-panel) 78%, transparent);
  border-color: transparent;
  
  box-shadow: 0 1px 2px color-mix(in srgb, var(--od-text) 5%, transparent);
}}


.od-viewer .workspace-shell .workspace-tab.is-pinned:not(.is-active):focus-within{
  background:
    linear-gradient(
      color-mix(in srgb, var(--od-bg-panel) 78%, transparent),
      color-mix(in srgb, var(--od-bg-panel) 78%, transparent)
    ),
    var(--od-workspace-tab-bar-bg);
}
@media(hover:hover){.od-viewer .workspace-shell .workspace-tab.is-pinned:not(.is-active):hover{
  background:
    linear-gradient(
      color-mix(in srgb, var(--od-bg-panel) 78%, transparent),
      color-mix(in srgb, var(--od-bg-panel) 78%, transparent)
    ),
    var(--od-workspace-tab-bar-bg);
}}

.od-viewer .workspace-shell .workspace-tabs-chrome {
  
  --workspace-glide-frost: color-mix(in srgb, #ffffff 34%, var(--od-glass-regular));
}

html.dark .od-viewer .workspace-shell .workspace-tabs-chrome {
  --workspace-glide-frost: var(--od-glass-regular);
}

.od-viewer .workspace-shell .workspace-tabs-strip[data-glide-ready] .workspace-tab.is-active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.od-viewer .workspace-shell .workspace-tab.is-active .workspace-tab__label {
  font-size: var(--od-font-size-13, 13px);
}

.od-viewer .chat-header,
.od-viewer .chat-skin .chat-header,
.od-viewer .ws-tabs-shell {
  height: 44px;
  min-height: 44px;
  border-radius: 0;
  border: none;
  border-bottom: 1px solid var(--od-border);
  
  
  background: var(--od-glass-regular);
  box-shadow: none;
}

.od-viewer .chat-header-actions .icon-only,
.od-viewer .chat-skin .chat-header-actions .icon-only {
  width: 28px;
  height: 28px;
  border-radius: var(--od-radius);
}

.od-viewer .ws-tabs-shell {
  padding: 6px 14px;
  border-bottom: none;
  
  background: var(--od-bg);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.od-viewer .ws-tabs-bar {
  gap: 6px;
  height: auto;
  min-height: 38px;
  padding-block: 4px;
  scrollbar-width: none;
}

.od-viewer .ws-tabs-bar::-webkit-scrollbar {
  display: none;
}

.od-viewer .ws-tab {
  box-sizing: border-box;
  height: 30px;
  min-height: 30px;
  padding: 0 11px;
  
  border-radius: 12px;
  border: 1px solid transparent;
  line-height: 1;
  box-shadow: none;
}

@media(hover:hover){.od-viewer .ws-tab.design-files-tab:hover{
  border-color: transparent;
}}

.od-viewer .ws-tab.active {
  background: var(--od-bg-subtle);
  border-color: transparent;
  box-shadow: none;
}

.od-viewer .ws-tab.design-files-tab.active {
  box-shadow: none;
}

.od-viewer .ws-tab + .ws-tab::before {
  content: '';
  position: absolute;
  left: -3.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 14px;
  background: var(--od-border);
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--od-ease-out);
}

.od-viewer .ws-tab.active::before,.od-viewer .ws-tab.dragging::before,.od-viewer .ws-tab.drag-over-before::before,.od-viewer .ws-tab.drag-over-after::before,.od-viewer .ws-tab.active + .ws-tab::before,.od-viewer .ws-tab.dragging + .ws-tab::before,.od-viewer .ws-tab.drag-over-before + .ws-tab::before,.od-viewer .ws-tab.drag-over-after + .ws-tab::before{
  opacity: 0;
}
@media(hover:hover){.od-viewer .ws-tab:hover::before,.od-viewer .ws-tab:hover + .ws-tab::before{
  opacity: 0;
}}

.od-viewer .ws-tab .tab-icon,
.od-viewer .ws-tab.active .tab-icon {
  color: var(--od-accent);
}


@keyframes export-ready-nudge {
  0% {
    transform: translateY(0);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--od-accent) 24%, transparent);
  }
  18% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--od-accent) 20%, transparent),
      0 8px 18px color-mix(in srgb, var(--od-accent) 30%, transparent);
  }
  36% {
    transform: translateY(0);
  }
  54% {
    transform: translateY(-1px);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--od-accent) 12%, transparent),
      0 8px 18px color-mix(in srgb, var(--od-accent) 28%, transparent);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 6px 14px color-mix(in srgb, var(--od-accent) 24%, transparent);
  }
}

/* ── workspace/design-files.css : le panneau « Fichiers » d'Open Design, tel quel ── */
/* ── workspace/design/files.css ── */
.od-viewer .df-panel {
  position: relative;
  flex: 1;
  display: grid;
  
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  
  background: var(--od-veil-canvas);
}

.od-viewer .df-reloading-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--od-bg) 70%, transparent);
  -webkit-backdrop-filter: var(--od-scrim-backdrop);
  backdrop-filter: var(--od-scrim-backdrop);
}

.od-viewer .df-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: transparent;
  border-right: 1px solid var(--od-border);
  
  container-type: inline-size;
}

.od-viewer .df-main:last-child { border-right: none; }

.od-viewer .df-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.od-viewer .df-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px 6px;
  font-size: 14px;
  color: var(--od-text-muted);
  min-width: 0;
}

.od-viewer .df-breadcrumb-btn {
  all: unset;
  cursor: pointer;
  color: var(--od-text-muted);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 14px;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media(hover:hover){.od-viewer .df-breadcrumb-btn:hover{ color: var(--od-text); background: var(--od-bg-subtle); }}

.od-viewer .df-breadcrumb-btn:focus-visible { outline: 2px solid var(--od-accent); outline-offset: 1px; }

.od-viewer .df-breadcrumb-segment { display: inline-flex; align-items: center; min-width: 0; }

.od-viewer .df-breadcrumb-sep { padding: 0 2px; color: var(--od-text-faint); font-size: 12px; user-select: none; }

.od-viewer .df-breadcrumb-current {
  padding: 2px 4px;
  color: var(--od-text-strong);
  font-weight: 600;
  font-size: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-viewer .df-topbar {
  margin: 0 20px 4px;
  
  padding: 4px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  
  flex-wrap: nowrap;
}

.od-viewer .df-topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
}

.od-viewer .df-topbar-left .df-breadcrumbs {
  padding: 0;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}

.od-viewer .df-topbar-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.od-viewer .df-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  
  flex-wrap: nowrap;
  flex-shrink: 0;
}

.od-viewer .df-actions button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--od-text-muted);
  padding: 5px 10px;
  font-size: 14px;
  line-height: 1.3;
  border-radius: var(--od-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

@media(hover:hover){.od-viewer .df-actions button:hover:not(:disabled){
  
  background: color-mix(in srgb, var(--od-bg-subtle) 55%, transparent);
  color: var(--od-text);
}}

.od-viewer .df-actions button.danger { color: var(--od-red); }

@media(hover:hover){.od-viewer .df-actions button.danger:hover:not(:disabled){
  background: var(--od-red-bg);
  color: var(--od-red);
}}

.od-viewer .df-project-menu-anchor {
  position: relative;
  display: inline-flex;
}

.od-viewer .df-actions .df-project-menu-trigger {
  width: 30px;
  height: 30px;
  justify-content: center;
  padding: 0;
  
  border-radius: var(--od-radius-pill, 999px);
}

.od-viewer .df-project-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 2px;
  width: max-content;
  min-width: 220px;
  max-width: min(300px, calc(100vw - 32px));
  padding: 4px;
  border: 1px solid var(--od-border-strong);
  border-radius: var(--od-radius);
  background: var(--od-bg-panel);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.od-viewer .df-actions .df-project-menu button {
  justify-content: flex-start;
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--od-text);
  font-size: 13px;
  text-align: left;
  white-space: normal;
}


.od-viewer .df-actions .df-project-menu button:focus-visible{
  background: var(--od-bg-subtle);
  color: var(--od-text-strong);
}
@media(hover:hover){.od-viewer .df-actions .df-project-menu button:hover:not(:disabled){
  background: var(--od-bg-subtle);
  color: var(--od-text-strong);
}}

.od-viewer .df-actions .df-project-menu button:disabled {
  cursor: default;
  opacity: 0.62;
}

@container (max-width: 470px) {
.od-viewer .df-actions button > span { display: none; }

.od-viewer .df-actions button { padding: 6px; }

.od-viewer .df-actions .df-project-menu button > span { display: inline; }

.od-viewer .df-actions .df-project-menu button { padding: 0 10px; }
}

.od-viewer .df-upload-banner {
  margin: 0 20px 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--od-red-border, var(--od-border));
  border-radius: var(--od-radius-sm);
  background: var(--od-red-bg);
  color: var(--od-red);
  font-size: 12px;
}

.od-viewer .df-upload-banner button {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
  padding: 3px 9px;
  font-size: 12px;
  border-radius: var(--od-radius-sm);
  cursor: pointer;
}

.od-viewer .df-batch-bar {
  margin: 0 20px 8px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--od-accent-soft);
  border-radius: var(--od-radius-sm);
  background: var(--od-accent-tint);
  box-shadow: 0 8px 18px -16px color-mix(in srgb, var(--od-text) 36%, transparent);
  animation: df-batch-enter 200ms var(--ease-out);
}

.od-viewer .df-batch-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--od-text-strong);
}

.od-viewer .df-batch-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.od-viewer .df-batch-actions button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--od-text-muted);
  padding: 5px 10px;
  font-size: 13px;
  border-radius: var(--od-radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

@media(hover:hover){.od-viewer .df-batch-actions button:hover:not(:disabled){
  background: var(--od-bg-subtle);
  color: var(--od-text);
}}

.od-viewer .df-batch-actions button.danger { color: var(--od-red); }

@media(hover:hover){.od-viewer .df-batch-actions button.danger:hover:not(:disabled){
  background: var(--od-red-bg);
  color: var(--od-red);
}}

.od-viewer .df-batch-clear { color: var(--od-text-faint); }

.od-viewer .df-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  
  padding: 8px 0 10px;
}

.od-viewer .df-tab {
  all: unset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  
  padding: 6px 14px;
  border-radius: var(--od-radius-pill, 999px);
  font-size: 13px;
  font-weight: 500;
  color: var(--od-text-muted);
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}

@media(hover:hover){.od-viewer .df-tab:hover{
  color: var(--od-text-strong);
  background: var(--od-bg-fill-tertiary);
}}

.od-viewer .df-tab.active {
  color: var(--od-text-strong);
  background: var(--od-bg-fill-secondary);
  font-weight: 600;
}

.od-viewer .df-tab:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--od-accent) 52%, transparent);
  outline-offset: 1px;
}

.od-viewer .df-tab-count {
  color: var(--od-text-faint);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.od-viewer .df-tab.active .df-tab-count {
  color: var(--od-text-muted);
}

.od-viewer .df-section { display: flex; flex-direction: column; gap: 0; }

.od-viewer .df-section + .df-section { margin-top: 0; }

.od-viewer .df-section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--od-text-soft);
  font-weight: 600;
  padding: 8px 20px;
  background: var(--od-bg-subtle);
  border: 1px solid var(--od-border-soft);
  border-radius: var(--od-radius-sm);
}

.od-viewer .df-section-count {
  margin-left: 8px;
  color: var(--od-text-faint);
  font-weight: 500;
  letter-spacing: 0;
}

.od-viewer .df-file-row {
  transition: background var(--dur-fast) var(--od-ease-out);
}

@media(hover:hover){.od-viewer .df-file-row:hover{ background: var(--od-blue-bg); }}

.od-viewer .df-file-row.active:not(.selected) { background: var(--od-blue-bg); }

.od-viewer .df-file-row.active.selected { background: var(--od-blue); }

.od-viewer .df-file-row.active:not(.selected) .df-row-name { color: var(--od-text-strong); }

.od-viewer .df-file-row.selected { background: var(--od-blue); }

.od-viewer .df-cell-check {
  text-align: center;
  vertical-align: middle;
}

.od-viewer .df-cell-icon {
  text-align: center;
  vertical-align: middle;
}

.od-viewer .df-cell-name {
  padding: 10px 12px 10px 0;
  vertical-align: middle;
  
  max-width: 0;
  min-width: 0;
}

.od-viewer .df-cell-openable {
  cursor: pointer;
}

.od-viewer .df-row-name-btn {
  all: unset;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

@media(hover:hover){.od-viewer .df-row-name-btn:hover:not(:disabled){
  background: transparent;
  border-color: transparent;
}}

.od-viewer .df-row-name-btn:focus-visible {
  outline: 2px solid var(--od-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.od-viewer .df-row-openable { cursor: pointer; }

.od-viewer .df-row {
  display: grid;
  grid-template-columns: 20px 30px minmax(0, 1fr) minmax(56px, auto) auto 28px;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 11px 16px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--od-border-soft);
  border-radius: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}

.od-viewer .df-row-live-artifact {
  grid-template-columns: 36px minmax(0, 1fr) auto;
}

.od-viewer .df-row-plugin-folder {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, auto);
  cursor: default;
}

.od-viewer .df-row-folder-main {
  appearance: none;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.od-viewer .df-plugin-install {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius-pill);
  background: var(--od-bg-panel);
  color: var(--od-text-muted);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
}

@media(hover:hover){.od-viewer .df-plugin-install:hover:not(:disabled){
  border-color: var(--od-accent);
  color: var(--od-accent);
}}

.od-viewer .df-plugin-install:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.od-viewer .df-plugin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.od-viewer .df-inline-notice {
  margin: 0 20px 6px;
  padding: 8px 10px;
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius-sm);
  background: var(--od-bg-subtle);
  color: var(--od-text-muted);
  font-size: 12px;
}

.od-viewer .df-inline-notice a {
  color: var(--od-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}

@media(hover:hover){.od-viewer .df-row:hover{ background: var(--od-blue-bg); }}

.od-viewer .df-row.active:not(.selected) { background: var(--od-blue-bg); color: var(--od-text); }

.od-viewer .df-row.active:not(.selected) .df-row-name { color: var(--od-text-strong); }

.od-viewer .df-row.selected {
  margin: 2px 8px;
  border-bottom-color: transparent;
  border-radius: 8px;
  background: var(--od-blue);
}

.od-viewer .df-row.selected .df-row-name { color: #fff; }

.od-viewer .df-row.selected .df-row-sub,
.od-viewer .df-row.selected .df-row-size,
.od-viewer .df-row.selected .df-row-time { color: rgba(255, 255, 255, 0.82); }

.od-viewer .df-row.selected .df-row-check { color: #fff; }

.od-viewer .df-row-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 13px;
  color: var(--od-text-muted);
  user-select: none;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  opacity: 0;
  transition:
    opacity var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--od-ease-out),
    box-shadow var(--dur-fast) var(--od-ease-out),
    color var(--dur-fast) var(--od-ease-out);
}


.od-viewer .df-row-check:focus-visible,.od-viewer .df-row-check[aria-checked="true"],.od-viewer .df-panel.has-selection .df-row-check{ opacity: 1; }
@media(hover:hover){.od-viewer .df-row:hover .df-row-check{ opacity: 1; }}

@media(hover:hover){.od-viewer .df-row-check:hover{ background: var(--od-border); color: var(--od-text); }}

.od-viewer .df-row-check:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--od-bg), 0 0 0 4px var(--od-accent);
}

.od-viewer .df-row-check[aria-checked="true"] { color: var(--od-accent-strong); }

.od-viewer .df-dir-row .df-row-check { cursor: default; }

.od-viewer .df-row-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: var(--od-radius-sm);
  background: var(--od-bg-subtle);
  color: var(--od-text-muted);
  font-size: 14px;
  position: relative;
}

.od-viewer .df-row-icon[data-kind="folder"] { background: var(--od-bg-muted); color: var(--od-text-soft); }

.od-viewer .df-row-icon[data-kind="html"] { background: var(--od-accent-tint); color: var(--od-accent-strong); }

.od-viewer .df-row-icon[data-kind="image"] { background: var(--od-green-bg); color: var(--od-green); }

.od-viewer .df-row-icon[data-kind="code"] { background: #fff7d8; color: #8c6700; }

.od-viewer .df-row-icon[data-kind="text"] { background: var(--od-bg-subtle); color: var(--od-text-muted); }

.od-viewer .df-row-icon[data-kind="sketch"] { background: var(--od-purple-bg); color: var(--od-purple); }

.od-viewer .df-row-icon[data-kind="stylesheet"] { background: var(--od-blue-bg); color: var(--od-blue, var(--od-accent-strong)); }

.od-viewer .df-row-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  
  max-width: 100%;
}

.od-viewer .df-row-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--od-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  
  max-width: 100%;
  min-width: 0;
}

.od-viewer .df-rename-input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--od-accent);
  border-radius: var(--od-radius-xs);
  background: var(--od-bg-panel);
  color: var(--od-text);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  padding: 3px 6px;
}

.od-viewer .df-row-sub {
  font-size: 11px;
  color: var(--od-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  line-height: 1.35;
}

.od-viewer .df-row-sub > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-viewer .df-row-sub-kind,
.od-viewer .df-row-sub-time {
  display: none;
}

.od-viewer .df-row-size {
  font-size: 12px;
  color: var(--od-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.od-viewer .df-row-time {
  font-size: 12px;
  color: var(--od-text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.od-viewer .df-row-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  color: var(--od-text-muted);
  font-size: 16px;
  
  border-radius: 999px;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--od-ease-out), background var(--dur-fast) var(--od-ease-out), color var(--dur-fast) var(--od-ease-out);
}

@media(hover:hover){.od-viewer .df-row:hover .df-row-menu{ opacity: 1; }}

.od-viewer .df-row-menu:focus { opacity: 1; }

@media(hover:hover){.od-viewer .df-row-menu:hover{ background: var(--od-border); color: var(--od-text); }}

.od-viewer .df-row-menu-placeholder {
  pointer-events: none;
  visibility: hidden;
}

.od-viewer .df-section-more {
  margin: 6px 20px 10px;
  width: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--od-bg-subtle);
  border: 1px solid var(--od-border);
  color: var(--od-text-muted);
  font-size: 12px;
  line-height: 1;
}

@media(hover:hover){.od-viewer .df-section-more:hover:not(:disabled){
  background: var(--od-bg-muted);
  color: var(--od-text);
}}

.od-viewer .df-row-collapse {
  background: transparent;
  border: none;
  color: var(--od-text-muted);
  padding: 0;
  width: 18px;
  text-align: center;
  font-size: 12px;
  cursor: pointer;
}

.od-viewer .df-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  color: var(--od-text-muted);
  font-size: 13px;
  min-height: 320px;
  
  background-color: #fff;
  
  position: relative;
  overflow: hidden;
}

.od-viewer .df-empty-pill {
  
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0;
  max-width: min(560px, 92%);
  text-align: center;
}

.od-viewer .df-empty-stack {
  position: relative;
  width: 148px;
  height: 96px;
  margin-bottom: 2px;
}

.od-viewer .df-empty-stack-card {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 70px;
  height: 88px;
  margin-left: -35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  
  border: 0;
  background: var(--od-bg-app, #fff);
  box-shadow: 0 6px 16px -9px rgba(15, 15, 15, 0.28);
  color: var(--od-text-faint);
  transform-origin: bottom center;
  transition:
    transform var(--dur-lent) var(--ease-out),
    box-shadow var(--dur-lent) var(--ease-out);
}

.od-viewer .df-empty-stack-card .od-icon {
  transition: color var(--dur-lent) var(--ease-out);
}

.od-viewer .df-empty-stack-card--left {
  transform: translateX(-30px) rotate(-13deg);
  z-index: 1;
}

.od-viewer .df-empty-stack-card--right {
  transform: translateX(30px) rotate(13deg);
  z-index: 1;
}

.od-viewer .df-empty-stack-card--front {
  transform: rotate(0deg);
  z-index: 2;
  box-shadow: 0 10px 22px -10px rgba(15, 15, 15, 0.3);
}

@media(hover:hover){.od-viewer .df-empty-stack-card--left:hover{
  transform: translateX(-30px) rotate(-13deg) scale(1.12);
  z-index: 3;
  box-shadow: 0 16px 30px -12px rgba(15, 15, 15, 0.34);
}}

@media(hover:hover){.od-viewer .df-empty-stack-card--right:hover{
  transform: translateX(30px) rotate(13deg) scale(1.12);
  z-index: 3;
  box-shadow: 0 16px 30px -12px rgba(15, 15, 15, 0.34);
}}

@media(hover:hover){.od-viewer .df-empty-stack-card--front:hover{
  transform: rotate(0deg) scale(1.12);
  z-index: 3;
  box-shadow: 0 16px 30px -12px rgba(15, 15, 15, 0.34);
}}

@media(hover:hover){.od-viewer .df-empty-pill:has(.df-empty-cta-primary:hover:not(:disabled)) .df-empty-stack-card--left{
  transform: translateX(-30px) rotate(-13deg) scale(1.12);
  z-index: 3;
  box-shadow: 0 16px 30px -12px rgba(15, 15, 15, 0.34);
}}

@media(hover:hover){.od-viewer .df-empty-pill:has(.df-empty-cta-secondary:hover:not(:disabled)) .df-empty-stack-card--front{
  transform: rotate(0deg) scale(1.12);
  z-index: 3;
  box-shadow: 0 16px 30px -12px rgba(15, 15, 15, 0.34);
}}

@media(hover:hover){.od-viewer .df-empty-pill:has(.df-empty-cta-tertiary:hover:not(:disabled)) .df-empty-stack-card--right{
  transform: translateX(30px) rotate(13deg) scale(1.12);
  z-index: 3;
  box-shadow: 0 16px 30px -12px rgba(15, 15, 15, 0.34);
}}

@media(hover:hover){.od-viewer .df-empty-pill:has(.df-empty-cta-primary:hover:not(:disabled)) .df-empty-stack-card--left .od-icon{
  color: var(--od-red);
}}

@media(hover:hover){.od-viewer .df-empty-pill:has(.df-empty-cta-secondary:hover:not(:disabled)) .df-empty-stack-card--front .od-icon{
  color: var(--od-green);
}}

@media(hover:hover){.od-viewer .df-empty-pill:has(.df-empty-cta-tertiary:hover:not(:disabled)) .df-empty-stack-card--right .od-icon{
  color: var(--od-blue);
}}

@media (prefers-reduced-motion: reduce) {
.od-viewer .df-empty-stack-card {
    transition: none;
  }
}

.od-viewer .df-empty-title {
  font-size: 16px;
  color: var(--od-text-strong);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.3;
}

.od-viewer .df-empty-syncing .df-empty-pill {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.od-viewer .df-empty-syncing .df-empty-title {
  font-size: 13px;
  font-weight: 400;
  color: var(--od-text-muted);
}

.od-viewer .df-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.od-viewer .df-empty-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  
  border: 1px solid var(--od-border-soft);
  border-radius: var(--od-radius-pill);
  background: var(--od-bg);
  color: var(--od-text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--od-ease-out), border-color var(--dur-fast) var(--od-ease-out);
}

.od-viewer .df-empty-cta:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.od-viewer .df-empty-cta-primary {
  background: var(--od-bg);
  border-color: var(--od-border-soft);
  color: var(--od-text);
}

.od-viewer .df-empty-cta-secondary {
  background: var(--od-bg);
  border-color: var(--od-border-soft);
  color: var(--od-text);
}

.od-viewer .df-empty-cta-tertiary {
  background: var(--od-bg);
  border-color: var(--od-border-soft);
  color: var(--od-text);
}

.od-viewer .df-empty-cta-primary .od-icon {
  color: var(--od-red);
}

.od-viewer .df-empty-cta-secondary .od-icon {
  color: var(--od-green);
}

.od-viewer .df-empty-cta-tertiary .od-icon {
  color: var(--od-blue);
}

.od-viewer .df-empty-cta-doc .od-icon {
  color: var(--od-green);
}

.od-viewer .df-empty-cta-upload .od-icon {
  color: #8b5cf6;
}

@media(hover:hover){.od-viewer .df-empty-cta:hover:not(:disabled){
  background: var(--od-bg);
  color: var(--od-text);
}}

@media(hover:hover){.od-viewer .df-empty-cta-primary:hover:not(:disabled){
  border-color: var(--od-red);
}}

@media(hover:hover){.od-viewer .df-empty-cta-secondary:hover:not(:disabled){
  border-color: var(--od-green);
}}

@media(hover:hover){.od-viewer .df-empty-cta-tertiary:hover:not(:disabled){
  border-color: var(--od-blue);
}}

@media(hover:hover){.od-viewer .df-empty-cta-doc:hover:not(:disabled){
  border-color: var(--od-green);
}}

@media(hover:hover){.od-viewer .df-empty-cta-upload:hover:not(:disabled){
  border-color: #8b5cf6;
}}

.od-viewer .df-empty-cta:focus-visible {
  outline: 2px solid var(--od-accent);
  outline-offset: 2px;
}

.od-viewer .df-footer-info {
  margin: auto 0 0;
  min-height: 100px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  background: color-mix(in srgb, var(--od-accent) 3.5%, transparent);
  border: 1px solid color-mix(in srgb, var(--od-border) 70%, transparent);
  border-radius: var(--od-radius);
}

.od-viewer .df-drop-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.od-viewer .df-drop-hint-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--od-text-faint);
}

.od-viewer .df-drop-hint-label svg {
  flex: 0 0 auto;
  opacity: 0.8;
}

.od-viewer .df-drop-hint-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--od-text-muted);
}

.od-viewer .df-useful-info {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.od-viewer .df-useful-info-head {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--od-accent);
}

.od-viewer .df-useful-info-head > svg {
  flex: 0 0 auto;
  color: var(--od-accent);
}

.od-viewer .df-useful-info-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--od-accent);
}

.od-viewer .df-useful-info-tip {
  font-size: 13px;
  line-height: 1.5;
  color: var(--od-text);
  min-height: 1.5em;
}

.od-viewer .df-useful-info-auxiliary {
  opacity: 0.72;
}

.od-viewer .df-useful-info-auxiliary .df-useful-info-head {
  color: var(--od-text-faint);
}

.od-viewer .df-useful-info-auxiliary .df-useful-info-label {
  color: var(--od-text-faint);
}

.od-viewer .df-useful-info-auxiliary .df-useful-info-tip {
  font-size: 12px;
  color: var(--od-text-muted);
}

.od-viewer .df-tip-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--od-accent);
  text-underline-offset: 2px;
}

@media(hover:hover){.od-viewer .df-tip-link:hover{
  color: var(--od-accent);
}}

.od-viewer .df-tip-caret {
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  background: var(--od-accent);
  animation: df-tip-caret-blink 1s steps(1) infinite;
}

@media (prefers-reduced-motion: reduce) {
.od-viewer .df-tip-caret {
    animation: none;
    opacity: 0;
  }
}

.od-viewer .df-drop-overlay {
  position: absolute;
  inset: 8px;
  z-index: 6;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--od-accent);
  border-radius: var(--od-radius);
  background: color-mix(in srgb, var(--od-accent) 10%, transparent);
}

.od-viewer .df-drop-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 18px 26px;
  border-radius: var(--od-radius);
  background: var(--od-bg-panel);
  box-shadow: var(--od-shadow-lg, 0 14px 36px rgba(0, 0, 0, 0.14));
  color: var(--od-text);
  text-align: center;
}

.od-viewer .df-drop-overlay-card svg {
  color: var(--od-accent);
}

.od-viewer .df-drop-overlay-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--od-text-faint);
  font-weight: 600;
}

.od-viewer .df-drop-overlay-card .desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--od-text-muted);
  max-width: 48ch;
}

.od-viewer .df-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  
  padding: 2px 0 14px;
}

.od-viewer .df-image-masonry {
  columns: 220px;
  column-gap: 14px;
  padding: 2px 0 14px;
}

.od-viewer .df-image-masonry .df-card {
  display: inline-flex;
  width: 100%;
  break-inside: avoid;
  margin: 0 0 14px;
}

.od-viewer .df-card--image .df-card-thumb {
  
  aspect-ratio: 4 / 3;
  
  border-bottom: 0;
}

.od-viewer .df-card--image .df-card-thumb[data-image-status="loaded"] {
  aspect-ratio: auto;
}

.od-viewer .df-card--image .df-card-thumb img {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-out);
}

.od-viewer .df-card--image .df-card-thumb img[data-loaded="true"] {
  opacity: 1;
}

.od-viewer .df-image-skeleton,
.od-viewer .df-image-error {
  position: absolute;
  inset: 0;
}

.od-viewer .df-image-skeleton {
  background:
    linear-gradient(
      105deg,
      transparent 35%,
      color-mix(in srgb, var(--od-bg-panel) 72%, transparent) 50%,
      transparent 65%
    ),
    var(--od-bg-subtle);
  background-size: 220% 100%;
  animation: df-image-skeleton-sheen 1.4s ease-in-out infinite;
}

.od-viewer .df-image-error {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--od-text-faint);
  background: var(--od-bg-subtle);
}

@media (prefers-reduced-motion: reduce) {
.od-viewer .df-image-skeleton {
    animation: none;
  }
}

.od-viewer .df-card--image .df-card-menu-overlay {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--od-radius-xs);
  background: color-mix(in srgb, #fff 92%, transparent);
  box-shadow: var(--od-shadow-xs);
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--od-ease-out);
}


.od-viewer .df-card--image .df-card-menu-overlay:focus-visible{
  opacity: 1;
}
@media(hover:hover){.od-viewer .df-card--image:hover .df-card-menu-overlay{
  opacity: 1;
}}

@media(hover:hover){.od-viewer .df-card--image .df-card-menu-overlay:hover{
  background: var(--od-bg-subtle);
}}

.od-viewer .df-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--od-border-soft);
  border-radius: var(--od-radius);
  background: #fff;
  box-shadow: var(--od-shadow-sm);
  overflow: hidden;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}

@media(hover:hover){.od-viewer .df-card:hover{
  
  border-color: var(--od-border-strong);
  box-shadow: var(--od-shadow-md, var(--od-shadow-sm));
}}

.od-viewer .df-card.selected { border-color: var(--od-blue); }

.od-viewer .df-card.active { border-color: var(--od-blue); }

.od-viewer .df-card-thumb {
  display: block;
  width: 100%;
  
  height: auto;
  aspect-ratio: 16/9;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--od-border-soft);
  border-radius: 0;
  background: #fff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.od-viewer .df-card-thumb,.od-viewer button.df-card-thumb:active:not(:disabled),.od-viewer button.df-card-thumb:focus:not(:disabled){
  background: #fff;
  box-shadow: none;
  filter: none;
}
@media(hover:hover){.od-viewer button.df-card-thumb:hover:not(:disabled){
  background: #fff;
  box-shadow: none;
  filter: none;
}}

.od-viewer .df-card-thumb:focus-visible {
  outline: 2px solid var(--od-blue);
  outline-offset: -3px;
}

.od-viewer .df-card-thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #fff;
  display: block;
  pointer-events: none;
}

.od-viewer .df-thumb-scale-host {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.od-viewer .df-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px 6px 6px;
  min-width: 0;
}

.od-viewer .df-card-meta-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
}

.od-viewer .df-card-name-btn {
  all: unset;
  display: block;
  max-width: 100%;
  min-width: 0;
  cursor: pointer;
  
  padding: 2px 6px;
  margin: -2px -6px;
  border-radius: var(--od-radius-xs);
  transition: background var(--dur-fast) var(--od-ease-out);
}

@media(hover:hover){.od-viewer .df-card-name-btn:hover{
  background: var(--od-bg-subtle);
}}

.od-viewer .df-card-name-btn.is-renamable { cursor: text; }

.od-viewer .df-card-name-btn:focus-visible {
  outline: 2px solid var(--od-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.od-viewer .df-card-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--od-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

.od-viewer .df-card-sub {
  font-size: 12px;
  color: var(--od-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

.od-viewer .df-card .df-row-menu {
  flex-shrink: 0;
  cursor: pointer;
}


.od-viewer .df-card .df-row-menu:focus{ opacity: 1; }
@media(hover:hover){.od-viewer .df-card:hover .df-row-menu{ opacity: 1; }}

.od-viewer .df-card-check {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--od-radius-xs);
  
  background: color-mix(in srgb, #fff 92%, transparent);
  box-shadow: var(--od-shadow-xs);
  color: var(--od-text-muted);
  cursor: pointer;
  user-select: none;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--od-ease-out), color var(--dur-fast) var(--od-ease-out);
}


.od-viewer .df-card-check:focus-visible,.od-viewer .df-card-check[aria-checked="true"],.od-viewer .df-panel.has-selection .df-card-check{ opacity: 1; }
@media(hover:hover){.od-viewer .df-card:hover .df-card-check{ opacity: 1; }}

@media(hover:hover){.od-viewer .df-card-check:hover{ background: var(--od-bg-subtle); color: var(--od-text); }}

.od-viewer .df-card-check[aria-checked="true"] { color: var(--od-accent-strong); }

.od-viewer .df-card .df-rename-input {
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
}

.od-viewer .df-card-thumb .df-preview-placeholder {
  font-size: 30px;
}

.od-viewer .df-preview-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--od-text-faint);
  font-size: 38px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--od-bg-panel) 88%, var(--od-accent)) 0%, var(--od-bg-panel) 100%);
}

.od-viewer .df-row-popover {
  position: fixed;
  z-index: 200;
  background: var(--od-glass-regular);
  -webkit-backdrop-filter: var(--od-glass-backdrop);
  backdrop-filter: var(--od-glass-backdrop);
  border: 1px solid var(--od-material-separator);
  border-radius: var(--od-radius-sm);
  box-shadow: var(--od-shadow-md);
  padding: 4px;
  min-width: 160px;
  display: flex;
  flex-direction: column;
}

.od-viewer .df-row-popover button {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  background: transparent;
  border: none;
  padding: 7px 10px;
  font-size: 13px;
  text-align: left;
  border-radius: var(--od-radius-xs);
  color: var(--od-text);
}

.od-viewer .df-row-popover a {
  display: block;
  width: 100%;
}

@media(hover:hover){.od-viewer .df-row-popover button:hover{ background: var(--od-bg-subtle); }}

.od-viewer .df-row-popover button.danger { color: var(--od-red); }

@media(hover:hover){.od-viewer .df-row-popover button.danger:hover{ background: var(--od-red-bg); }}


@keyframes df-batch-enter {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes df-tip-caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes df-image-skeleton-sheen {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}

/* ── viewer/core.css ── */
.od-viewer.viewer {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  background: var(--od-veil-canvas);
  overflow: hidden;
}

.od-viewer .workspace:has(.share-menu-popover, .present-menu),
.od-viewer.viewer:has(.share-menu-popover, .present-menu) {
  position: relative;
  z-index: 220;
  overflow: visible;
}

.od-viewer .viewer-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 0;
  
  background: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  font-size: 13px;
  color: var(--od-text-muted);
  gap: 8px;
  min-height: 44px;
  flex-shrink: 0;
  
  container-type: inline-size;
}

html.dark .od-viewer .viewer-toolbar {
  background: var(--od-bg-panel);
}

.od-viewer .viewer-toolbar-left { display: inline-flex; align-items: center; gap: 8px; }

.od-viewer .viewer-toolbar-actions { display: inline-flex; gap: 2px; align-items: center; }

.od-viewer .viewer-toolbar-inline-actions { display: inline-flex; gap: 2px; align-items: center; min-width: 0; }

.od-viewer .viewer-toolbar-tool-divider {
  display: none;
}

.od-viewer .viewer-toolbar .icon-only,
.od-viewer .viewer-toolbar-actions .icon-only {
  width: 28px;
  height: 28px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: var(--od-radius-sm);
  color: var(--od-text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

@media(hover:hover){.od-viewer .viewer-toolbar .icon-only:hover:not(:disabled),.od-viewer .viewer-toolbar-actions .icon-only:hover:not(:disabled){ background: var(--od-bg-subtle); color: var(--od-text); }}

.od-viewer .viewer-tab-icon {
  
  display: none;
  flex: 0 0 auto;
}

.od-viewer .viewer-tab-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-viewer .viewer-toolbar-more {
  position: relative;
  display: none;
  align-items: center;
}

.od-viewer .viewer-toolbar-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  width: min(260px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow: auto;
  padding: 5px;
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius);
  background: var(--od-bg-panel);
  box-shadow: var(--od-shadow-lg);
}

.od-viewer .viewer-toolbar-more-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--od-radius-sm);
  background: transparent;
  color: var(--od-text);
  font-size: 13px;
  text-align: left;
}

.od-viewer .viewer-toolbar-more-item svg:first-child {
  flex: 0 0 auto;
  color: var(--od-text-muted);
}

.od-viewer .viewer-toolbar-more-item span {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.od-viewer .viewer-toolbar-more-item.active{
  border-color: color-mix(in srgb, var(--od-accent) 26%, var(--od-border));
  background: var(--od-bg-subtle);
}
@media(hover:hover){.od-viewer .viewer-toolbar-more-item:hover:not(:disabled){
  border-color: color-mix(in srgb, var(--od-accent) 26%, var(--od-border));
  background: var(--od-bg-subtle);
}}

.od-viewer .viewer-toolbar-more-item:disabled {
  cursor: default;
  opacity: 0.45;
}

.od-viewer .viewer-toolbar-more-separator {
  height: 1px;
  margin: 5px 4px;
  background: var(--od-border);
}

@container (max-width: 860px) {
.od-viewer .viewer-toolbar {
    padding-inline: 10px;
    gap: 6px;
  }

.od-viewer .viewer-toolbar-left {
    gap: 6px;
  }
}

@container (max-width: 720px) {
.od-viewer .viewer-mode-tabs .viewer-tab {
    width: 30px;
    min-width: 30px;
    padding-inline: 0;
    justify-content: center;
  }

.od-viewer .viewer-tab-icon {
    display: inline-flex;
  }

.od-viewer .viewer-mode-tabs .viewer-tab-label {
    display: none;
  }

.od-viewer .viewer-toolbar-more {
    display: inline-flex;
  }
}

@container (max-width: 600px) {
.od-viewer .viewer-toolbar-inline-actions {
    display: none;
  }
}

@container (max-width: 500px) {
.od-viewer .viewer-preview-toolbar-inline,
.od-viewer .viewer-toolbar-left > .file-version-trigger {
    display: none;
  }
}

@container (max-width: 390px) {
.od-viewer .viewer-toolbar-left {
    flex: 1 1 0;
    gap: 4px;
  }
}

.od-viewer .viewer-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: transparent;
  border: none;
  border-radius: var(--od-radius-sm);
  color: var(--od-text-muted);
  font-size: 13px;
  white-space: nowrap;
}

@media(hover:hover){.od-viewer .viewer-action:hover:not(:disabled){ background: var(--od-bg-subtle); color: var(--od-text); }}

.od-viewer .viewer-action:disabled,
.od-viewer .viewer-tab:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.od-viewer .viewer-action.active {
  
  background: var(--od-accent-tint);
  color: var(--od-accent-strong);
  border-color: transparent;
  box-shadow: none;
}

@media(hover:hover){.od-viewer .viewer-action.active:hover:not(:disabled){
  background: var(--od-accent-tint);
  color: var(--od-accent-strong);
  border-color: transparent;
  box-shadow: none;
}}

.od-viewer .viewer-action.primary {
  background: var(--od-accent);
  border: 1px solid var(--od-accent);
  color: white;
}

@media(hover:hover){.od-viewer .viewer-action.primary:hover:not(:disabled){
  background: var(--od-accent-hover);
  border-color: var(--od-accent-hover);
  color: white;
}}

.od-viewer .viewer-action.primary[data-running='true'] {
  opacity: 0.75;
  cursor: progress;
}

.od-viewer .viewer-action-icon {
  position: relative;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
}

.od-viewer .viewer-comment-count-trigger {
  position: relative;
  justify-content: center;
  min-width: 42px;
  height: 30px;
  padding: 0 8px;
  gap: 5px;
}

.od-viewer .viewer-comment-count {
  min-width: 12px;
  color: currentColor;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: left;
}

.od-viewer .viewer-action-icon:not(.od-tooltip)[data-tooltip]::after,
.od-viewer .viewer-comment-count-trigger:not(.od-tooltip)[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  z-index: 80;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  padding: 4px 7px;
  border-radius: var(--od-radius-sm);
  background: var(--od-text);
  color: var(--od-bg-panel);
  font-size: 12px;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}


.od-viewer .viewer-action-icon:not(.od-tooltip)[data-tooltip]:focus-visible::after,.od-viewer .viewer-comment-count-trigger:not(.od-tooltip)[data-tooltip]:focus-visible::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
@media(hover:hover){.od-viewer .viewer-action-icon:not(.od-tooltip)[data-tooltip]:hover::after,.od-viewer .viewer-comment-count-trigger:not(.od-tooltip)[data-tooltip]:hover::after{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}}

.od-viewer .viewer-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: var(--od-radius-pill);
  background: var(--od-bg-subtle);
}

.od-viewer .viewer-tab {
  background: transparent;
  border: var(--od-stroke-thin, 1px) solid transparent;
  
  height: 32px;
  padding: 3px 12px;
  font-size: 12px;
  
  border-radius: var(--od-radius-pill);
  color: var(--od-text-soft);
  white-space: nowrap;
  transition:
    background-color var(--od-duration-faster) var(--od-curve-easy-ease),
    color var(--od-duration-faster) var(--od-curve-easy-ease),
    border-color var(--od-duration-faster) var(--od-curve-easy-ease);
}

@media(hover:hover){.od-viewer .viewer-tab:hover:not(:disabled):not(.active){ background: transparent; color: var(--od-text); }}

.od-viewer .viewer-tab.active {
  background: var(--od-bg-panel);
  border-color: var(--od-border);
  color: var(--od-text-strong);
  font-weight: 600;
}

.od-viewer .viewer-toolbar-actions .ghost-link {
  padding: 5px 14px;
  border-color: var(--od-border);
  border-radius: var(--od-radius-pill, 999px);
  background: transparent;
}

@media(hover:hover){.od-viewer .viewer-toolbar-actions .ghost-link:hover{
  background: var(--od-bg-subtle);
  border-color: var(--od-border-strong, var(--od-border));
  color: var(--od-text);
}}

.od-viewer .viewer-body {
  flex: 1;
  min-height: 0;
  min-width: 0;
  position: relative;
  background: var(--od-bg);
  overflow: auto;
}

.od-viewer .live-artifact-refresh-notice .icon-only {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: none;
  border-radius: var(--od-radius-sm);
  background: transparent;
  color: inherit;
  font-size: 16px;
}

@media(hover:hover){.od-viewer .live-artifact-refresh-notice .icon-only:hover{
  background: color-mix(in srgb, currentColor 12%, transparent);
}}

.od-viewer .viewer-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
}

.od-viewer .artifact-preview-transport-stack {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.od-viewer .artifact-preview-transport-stack iframe {
  position: absolute;
  inset: 0;
}

.od-viewer .artifact-preview-transport-stack iframe[data-od-active='false'] {
  visibility: hidden;
  pointer-events: none;
}

.od-viewer .artifact-preview-transport-stack iframe[data-od-handoff-visible='true'] {
  visibility: visible;
  pointer-events: none;
  z-index: 1;
}

.od-viewer .artifact-preview-transport-stack iframe[data-od-handoff-pending='true'] {
  visibility: visible;
  opacity: 0;
  pointer-events: none;
  z-index: 2;
}

.od-viewer .viewer-viewport-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  
  width: auto;
}

.od-viewer .viewer-viewport-trigger {
  
  width: auto;
  min-height: 26px;
  justify-content: flex-start;
  
  gap: 4px;
  padding: 4px 8px 4px 10px;
  
  border-radius: var(--od-radius-pill);
  border-color: transparent;
  background-color: transparent;
  color: var(--od-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
}

.od-viewer .viewer-viewport-trigger > svg {
  flex: 0 0 auto;
}

.od-viewer .viewer-viewport-trigger > span {
  
  flex: 0 0 auto;
  white-space: nowrap;
}

@media(hover:hover){.od-viewer .viewer-viewport-trigger:hover:not(:disabled){
  border-color: transparent;
  background-color: transparent;
}}

.od-viewer .viewer-viewport-trigger[aria-expanded='true'] {
  border-color: transparent;
  background-color: var(--od-bg-subtle);
  color: var(--od-text);
}

.od-viewer .viewer-viewport-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 80;
  width: max-content;
  min-width: 144px;
  display: flex;
  flex-direction: column;
  gap: var(--od-spacing-2, 2px);
  padding: 4px;
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius);
  background: var(--od-bg-panel);
  box-shadow: var(--od-shadow-lg);
  overflow: hidden;
}

.od-viewer .viewer-preview-toolbar-inline .viewer-viewport-menu {
  right: auto;
  left: 0;
}

.od-viewer .viewer-viewport-menu-item {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--od-radius-sm);
  background: transparent;
  color: var(--od-text-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: left;
}

@media(hover:hover){.od-viewer .viewer-viewport-menu-item:hover{
  background: var(--od-bg-subtle);
  color: var(--od-text);
}}

.od-viewer .viewer-viewport-menu-item.active {
  
  border-color: transparent;
  background: color-mix(in srgb, var(--od-accent-tint) 82%, var(--od-bg-panel));
  color: var(--od-accent-strong);
}

.od-viewer .viewer-viewport-menu-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.od-viewer .viewer-viewport-menu-label span {
  white-space: nowrap;
}

.od-viewer .live-artifact-preview-layer.preview-viewport[data-active='false'] {
  display: none;
}

.od-viewer .preview-viewport:not(.preview-viewport-desktop).comment-preview-layer-with-side-dock {
  display: grid;
  align-items: stretch;
  justify-content: stretch;
  padding: 24px;
  overflow: hidden;
}

.od-viewer .preview-viewport:not(.preview-viewport-desktop).comment-preview-layer-side-dock-stacked {
  padding: 8px;
}

.od-viewer .comment-preview-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.od-viewer .comment-preview-layer-with-side-dock .comment-preview-canvas {
  border: 1px solid var(--od-border);
  border-radius: var(--od-radius-md);
  background: var(--od-bg-panel);
}

.od-viewer .preview-viewport:not(.preview-viewport-desktop) {
  overflow: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 0;
  padding: 24px;
  background:
    linear-gradient(45deg, color-mix(in srgb, var(--od-border) 28%, transparent) 25%, transparent 25%),
    linear-gradient(-45deg, color-mix(in srgb, var(--od-border) 28%, transparent) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, color-mix(in srgb, var(--od-border) 28%, transparent) 75%),
    linear-gradient(-45deg, transparent 75%, color-mix(in srgb, var(--od-border) 28%, transparent) 75%),
    var(--od-bg-subtle);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

.od-viewer .preview-viewport:not(.preview-viewport-desktop) .preview-frame-clip,
.od-viewer .preview-viewport:not(.preview-viewport-desktop):not(.comment-preview-layer-with-side-dock) .comment-preview-canvas,
.od-viewer .preview-viewport:not(.preview-viewport-desktop).manual-edit-workspace .manual-edit-canvas {
  width: calc(var(--preview-viewport-width) * var(--preview-scale, 1));
  height: calc(var(--preview-viewport-height) * var(--preview-scale, 1));
  max-width: none;
  max-height: none;
  flex: 0 0 auto;
  border: 1px solid var(--od-border-strong);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  background: var(--od-bg-panel);
}

.od-viewer .preview-viewport:not(.preview-viewport-desktop).comment-preview-layer-with-side-dock .comment-preview-canvas {
  width: auto;
  height: auto;
}

.od-viewer .preview-viewport:not(.preview-viewport-desktop) .preview-frame-clip > div,
.od-viewer .preview-viewport:not(.preview-viewport-desktop) .comment-frame-clip > div,
.od-viewer .preview-viewport:not(.preview-viewport-desktop) .comment-preview-canvas > .comment-frame-clip > div,
.od-viewer .preview-viewport:not(.preview-viewport-desktop).manual-edit-workspace .manual-edit-canvas > div {
  will-change: transform;
}

.od-viewer .preview-viewport:not(.preview-viewport-desktop) .preview-frame-clip,
.od-viewer .preview-viewport:not(.preview-viewport-desktop).manual-edit-workspace .manual-edit-canvas {
  position: relative;
  inset: auto;
}

.od-viewer .preview-viewport-mobile .preview-frame-clip,
.od-viewer .preview-viewport-mobile:not(.comment-preview-layer-with-side-dock) .comment-preview-canvas,
.od-viewer .preview-viewport-mobile.manual-edit-workspace .manual-edit-canvas {
  border-radius: 28px;
}

.od-viewer .preview-frame-clip,
.od-viewer .comment-frame-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--od-bg);
  isolation: isolate;
}

.od-viewer .preview-viewport:not(.preview-viewport-desktop).preview-draw-active {
  padding-bottom: 84px;
}

/* ── viewer/tools.css ── */
.od-viewer .deploy-flow-modal .modal-foot .viewer-action.primary {
  justify-content: center;
  min-width: 104px;
}

/* ── viewer/code.css ── */

/* ── workspace/artifacts.css ── */



@container (min-width: 460px) and (max-width: 720px) {
  .od-viewer .viewer-mode-tabs .viewer-tab{width:auto;min-width:0;padding-inline:11px;justify-content:center}
  .od-viewer .viewer-tab-label{display:inline}
  .od-viewer .viewer-tab-icon{display:inline-flex}
}
.od-badge{position:absolute;top:-3px;right:-3px;min-width:15px;height:15px;padding:0 4px;border-radius:var(--radius-sm);background:var(--accent);color:#fff;font-size:10px;font-weight:600;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.od-commentaires{flex:0 0 auto;max-height:46%;display:flex;flex-direction:column;gap:8px;padding:10px 12px;border-top:1px solid var(--od-border);background:var(--od-bg-panel);overflow:auto;font-size:13px}
.od-com-tete{font-weight:600;display:flex;gap:6px;align-items:center}.od-com-tete span{color:var(--muted);font-weight:500}
.od-com-liste{display:flex;flex-direction:column;gap:6px}
.od-com{border:1px solid var(--od-border);border-radius:var(--radius-sm);padding:7px 9px}.od-com p{margin:4px 0 0;line-height:1.4}
.od-com-haut{display:flex;align-items:center;gap:7px}.od-com-num{width:18px;height:18px;border-radius:50%;background:var(--accent);color:#fff;font-size:10px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.od-com-cible{padding:1px 7px;border-radius:6px;background:var(--surface-hover);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.od-com-x{margin-left:auto;border:0;background:none;color:var(--muted);cursor:pointer;display:flex;padding:2px}
.od-com-saisie{display:flex;flex-direction:column;gap:6px;align-items:stretch}
.od-com-saisie textarea{resize:none;border:1px solid var(--od-border);border-radius:var(--radius-sm);background:var(--bg);color:var(--fg);padding:7px 9px;font:inherit}
.od-com-aide{color:var(--muted)}
.od-com-btn{height:30px;border-radius:var(--radius-sm);border:0;background:var(--accent);color:#fff;font:inherit;font-weight:500;cursor:pointer}.od-com-btn:disabled{opacity:var(--inactif);cursor:default}
.od-dessin{position:absolute;inset:0;width:100%;height:100%;cursor:crosshair;touch-action:none;z-index:5}
.od-dessin-barre{position:absolute;top:10px;left:10px;z-index:6;display:flex;align-items:center;gap:6px;padding:5px;border:1px solid var(--od-border);border-radius:var(--radius-md);background:var(--od-bg);box-shadow:0 6px 20px rgba(0,0,0,.18)}
.od-dessin-barre button{height:28px;padding:0 10px;border:0;border-radius:var(--radius-sm);background:var(--od-bg-panel);color:var(--od-text);font:inherit;font-size:13px;cursor:pointer}
.od-dessin-barre button:disabled{opacity:var(--inactif);cursor:default}.od-dessin-barre .plein{background:var(--accent);color:#fff}
.od-dessin-barre .od-dessin-couleur{width:22px;height:22px;padding:0;border-radius:50%;box-shadow:inset 0 0 0 2px rgba(255,255,255,.7)}.od-dessin-couleur.on{outline:2px solid var(--accent);outline-offset:1px}
.od-corps-deck{flex:1;min-height:0;display:flex;flex-direction:row}
.od-deck-col{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column}
.od-deck-rail{width:152px;flex:none;overflow-y:auto;padding:10px 10px 10px 8px;display:flex;flex-direction:column;gap:10px;background:#0c0c0c;scrollbar-width:thin}
.od-deck-rail .od-rail-diapo{all:unset;box-sizing:border-box;display:flex;align-items:flex-start;gap:8px;cursor:pointer;color:#bdbdbd;font-size:12px;font-variant-numeric:tabular-nums}
.od-deck-rail .od-rail-n{width:14px;flex:none;text-align:right;padding-top:2px}
.od-deck-rail .od-rail-vignette{position:relative;flex:1;aspect-ratio:16/9;border-radius:5px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(255,255,255,.18)}
.od-deck-rail .od-rail-diapo.on .od-rail-vignette{box-shadow:0 0 0 2px #fff}.od-deck-rail .od-rail-diapo.on{color:#fff}
.od-notes{flex:none;max-height:34%;display:flex;flex-direction:column;border-top:1px solid var(--od-border);background:var(--od-bg-panel)}
.od-notes-tete{display:flex;gap:10px;align-items:baseline;padding:9px 14px 4px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--od-text-muted)}.od-notes-tete span{text-transform:none;letter-spacing:0}
.od-notes-corps{padding:2px 14px 12px;overflow:auto;font-size:13px;line-height:1.5;color:var(--od-text)}.od-notes-corps em{color:var(--od-text-soft)}
@media(max-width:768px){.od-corps-deck{flex-direction:column}.od-deck-rail{width:auto;flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:8px}.od-deck-rail .od-rail-diapo{flex:none;width:120px}}
.od-rail-diapos{display:flex;gap:6px;padding:7px 10px;overflow-x:auto;scrollbar-width:none;flex-shrink:0;border-bottom:1px solid var(--od-border);background:var(--od-bg-panel)}
.od-rail-diapo{flex:none;min-width:30px;height:26px;padding:0 8px;border:1px solid var(--od-border);border-radius:7px;background:var(--od-bg);color:var(--od-text-muted);font:inherit;font-size:12px;font-variant-numeric:tabular-nums;cursor:pointer}
.od-rail-diapo.on{border-color:var(--accent);color:var(--od-text);font-weight:600;box-shadow:0 0 0 1px var(--accent)}
.od-diapos{display:inline-flex;align-items:center;gap:2px}.od-diapos-n{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;min-width:38px;text-align:center}
.od-champs{display:flex;gap:10px;flex-wrap:wrap}.od-champ{display:flex;flex-direction:column;gap:3px;color:var(--muted);font-size:12px}.od-champ input[type=color]{width:44px;height:28px;padding:0;border:1px solid var(--od-border);border-radius:7px;background:none}
.od-champ input[type=number]{width:70px;height:28px;border:1px solid var(--od-border);border-radius:7px;background:var(--bg);color:var(--fg);padding:0 6px;font:inherit}
.od-champ textarea{resize:none;border:1px solid var(--od-border);border-radius:var(--radius-sm);background:var(--bg);color:var(--fg);padding:7px 9px;font:inherit}
.art-viewer .df-body{padding:0 14px 14px}.art-viewer .df-topbar{padding-inline:14px}
/* Barre des fichiers (onglets des artefacts) — style d'Astra, même esprit que la barre d'Open Design */
.od-fichiers-barre{position:relative;display:flex;align-items:flex-end;flex-shrink:0;background:var(--od-bg-panel);border-bottom:1px solid var(--od-border)}
.od-fichiers-barre .od-fichiers{flex:1;min-width:0;border-bottom:0;background:none}
.od-fichiers-fondu{position:absolute;right:56px;bottom:0;width:34px;height:36px;background:linear-gradient(90deg,transparent,var(--od-bg-panel));pointer-events:none}
.od-fichiers-plus{flex:none;display:inline-flex;align-items:center;gap:5px;height:28px;margin:0 8px 5px 4px;padding:0 10px;border:1px solid var(--od-border);border-radius:var(--radius-full);background:var(--od-bg);color:var(--od-text);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.od-fichiers-plus.on{border-color:var(--accent)}
.od-fichiers-menu{position:absolute;right:8px;top:calc(100% + 4px);width:min(320px,calc(100% - 16px));max-height:60vh;overflow:auto;z-index:20;padding:6px;border:1px solid var(--od-border);border-radius:13px;background:var(--od-bg);box-shadow:0 14px 36px rgba(0,0,0,.2)}
.od-fichiers-menu-tete{padding:6px 10px 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--od-text-muted)}
.od-fichiers-ligne{display:flex;align-items:center;gap:11px;width:100%;padding:7px 8px;border:0;border-radius:var(--radius-sm);background:none;color:var(--od-text);font:inherit;text-align:left;cursor:pointer}
@media(hover:hover){.od-fichiers-ligne:hover{background:var(--od-bg-panel)}}
.od-fichiers-ligne.on{background:color-mix(in srgb,var(--accent) 9%,transparent)}
.od-fichiers-ligne>svg{color:var(--accent);flex-shrink:0}
.od-fichiers-v{position:relative;width:44px;height:34px;flex-shrink:0;border-radius:6px;overflow:hidden;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.09);display:flex;align-items:center;justify-content:center;color:var(--od-text-muted)}
.od-fichiers-v svg{width:16px;height:16px}
.od-fichiers-txt{flex:1;min-width:0;display:flex;flex-direction:column}
.od-fichiers-nom{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.od-fichiers-meta{font-size:12px;color:var(--od-text-muted)}
.od-fichiers{display:flex;align-items:flex-end;gap:2px;padding:6px 8px 0;overflow-x:auto;scrollbar-width:none;flex-shrink:0;background:var(--od-bg-panel);border-bottom:1px solid var(--od-border)}
.od-fichiers::-webkit-scrollbar{display:none}
.od-fichier{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border:1px solid transparent;border-bottom:0;border-radius:8px 8px 0 0;background:none;font:inherit;font-size:13px;color:var(--od-text-muted);white-space:nowrap;max-width:190px;cursor:pointer;flex-shrink:0}
.od-fichier svg{width:14px;height:14px;flex-shrink:0}
.od-fichier span{overflow:hidden;text-overflow:ellipsis}
@media(hover:hover){.od-fichier:hover{color:var(--od-text)}}
.od-fichier.on{background:var(--od-bg);border-color:var(--od-border);color:var(--od-text);font-weight:500;position:relative;top:1px}
/* Le panneau d'Astra devient la « viewer » : la barre, l'aperçu et le pied se partagent la hauteur */
.art-viewer .art-corps-od{display:flex;flex-direction:column}
.art-viewer .art-corps-od>.art-code,.art-viewer .art-corps-od>.art-edit{flex:1;min-height:0}
.art-viewer .art-corps-od>.preview-viewport{flex:1;min-height:0}
/* Espace Code : section du panneau (PC) + liste des sessions (téléphone) — 06/10/2026 ══ */
.sb-code{flex:1;min-height:0;overflow-y:auto;padding:4px 8px 12px}
.sb-code-actions{display:flex;flex-direction:column;gap:1px;margin-bottom:14px}
.sb-code-action{display:flex;align-items:center;gap:12px;min-height:40px;padding:8px 10px;border:none;background:none;border-radius:10px;color:var(--fg);font-size:15px;cursor:pointer;text-align:left}
@media(hover:hover){.sb-code-action:hover{background:color-mix(in srgb,var(--fg) 6%,transparent)}}
.sb-code-action svg{width:18px;height:18px;flex-shrink:0}
.sb-code-groupe{margin-top:6px}
.sb-code-groupe-tete{display:flex;align-items:center;min-height:38px;border-radius:10px}
@media(hover:hover){.sb-code-groupe-tete:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.sb-code-groupe-nom{flex:1;min-width:0;display:flex;align-items:center;gap:6px;padding:8px 10px;border:none;background:none;color:color-mix(in srgb,var(--fg) 62%,transparent);font-size:14px;cursor:pointer;text-align:left}
.sb-code-groupe-nom span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sb-code-groupe-nom svg{width:14px;height:14px;flex-shrink:0;transition:transform var(--dur-med)}
.sb-code-groupe-nom.ouvert svg{transform:rotate(90deg)}
.sb-code-groupe-plus{width:32px;height:32px;margin-right:4px;display:flex;align-items:center;justify-content:center;border:none;background:none;border-radius:var(--radius-sm);color:color-mix(in srgb,var(--fg) 62%,transparent);cursor:pointer}
@media(hover:hover){.sb-code-groupe-plus:hover{background:color-mix(in srgb,var(--fg) 7%,transparent);color:var(--fg)}}
.sb-code-groupe-plus svg{width:17px;height:17px}
.sb-code-session{width:100%;display:flex;align-items:center;gap:8px;min-height:36px;padding:7px 10px 7px 22px;border:none;background:none;border-radius:10px;color:var(--fg);font-size:14px;cursor:pointer;text-align:left}
@media(hover:hover){.sb-code-session:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
.sb-code-ligne{position:relative}
.sb-code-supprimer{position:absolute;right:6px;top:50%;transform:translateY(-50%);display:none;place-items:center;width:28px;height:28px;border:none;border-radius:var(--radius-sm);background:var(--bg);color:var(--muted);cursor:pointer}
@media(hover:hover){.sb-code-supprimer:hover{color:var(--danger);background:var(--surface-hover)}}
.sb-code-supprimer svg{width:15px;height:15px}
.sb-code-ligne:focus-within .sb-code-supprimer{display:grid}
@media(hover:hover){.sb-code-ligne:hover .sb-code-supprimer{display:grid}}
@media(hover:hover){.sb-code-ligne:hover .sb-code-session-temps{visibility:hidden}}
.sb-code-session.actif{background:color-mix(in srgb,var(--fg) 7%,transparent);font-weight:500}
.sb-code-session-titre{flex:1;min-width:0;overflow:hidden;white-space:nowrap;-webkit-mask-image:linear-gradient(90deg,#000 85%,transparent);mask-image:linear-gradient(90deg,#000 85%,transparent)}
.sb-code-session-temps{flex-shrink:0;font-size:12px;color:var(--muted)}
.sb-code-session-col{flex:1;min-width:0;display:flex;flex-direction:column}
.sb-code-session-col .sb-code-session-titre{flex:none}
.sb-code-session-sous{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:400}
.sb-code-etat{flex-shrink:0;width:14px;height:14px}
.sb-code-vide{padding:4px 10px 6px 22px;font-size:13px;color:var(--muted)}
.sb-code-plus{border:none;background:none;padding:6px 10px 6px 22px;font-size:13px;color:var(--muted);cursor:pointer}
@media(hover:hover){.sb-code-plus:hover{color:var(--fg)}}
/* Liste des sessions (téléphone) */
.code-sessions{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;background:var(--bg)}
html.dark .code-sessions{background:var(--bg)}
.code-sessions-barre{display:flex;align-items:center;justify-content:space-between;background:transparent;border-bottom:none}
.code-sessions-barre .hamburger{display:flex}
.code-sessions-titre{margin:0;font-size:19px;font-weight:600;letter-spacing:-.01em}
.code-sessions-cale{width:40px}
.code-sessions-capa{width:auto;min-width:40px;display:flex;justify-content:flex-end}   /* les 5 barres de capacité en haut à droite (téléphone) */
/* Les 5 barres de capacité en haut des écrans Code sur téléphone (liste, nouvelle conversation, session) : leur dessin n'existait que pour l'ordinateur. */
/* Menu ⋮ d'une conversation Code (PC et téléphone) */
.cl-conv-menu{position:relative;display:inline-flex;flex:none}
.cl-conv-bouton{display:grid;place-items:center;width:40px;height:40px;border:0;background:none;color:var(--muted);border-radius:50%;cursor:pointer}
.cl-conv-bouton svg{width:20px;height:20px}
@media(hover:hover){.cl-conv-bouton:hover{background:var(--surface-hover)}}
.cl-conv-liste{position:absolute;right:0;top:calc(100% + 4px);z-index:60;min-width:220px;padding:6px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 12px 36px rgba(0,0,0,.16);display:flex;flex-direction:column}
.cl-conv-liste button{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:0;background:none;color:var(--fg);font:inherit;font-size:15px;text-align:left;border-radius:10px;cursor:pointer}
@media(hover:hover){.cl-conv-liste button:hover{background:var(--surface-hover)}}
.cl-conv-liste button.danger,.cl-conv-liste button.danger svg{color:var(--danger)}
.cl-conv-liste svg{width:17px;height:17px;flex:none;color:var(--muted)}
.code-session-bloc .cl-conv-menu{position:absolute;top:8px;right:6px}
.sb-code-ligne .cl-conv-menu,.code-session-bloc .cl-conv-menu{position:absolute;right:6px;top:100%;width:0;height:0;display:block}
.sb-code-ligne .cl-conv-bouton,.code-session-bloc .cl-conv-bouton{display:none}
/* Menu « ⋯ » des sessions de l'ordinateur : visible au survol / au clavier dans la colonne latérale, toujours visible dans la liste du téléphone */
.sb-code-ligne .cl-conv-menu.cl-session-menu{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:auto;height:auto;display:none}
.sb-code-ligne .cl-session-menu .cl-conv-bouton,.code-session-bloc .cl-session-menu .cl-conv-bouton{display:grid}
.sb-code-ligne:focus-within .cl-conv-menu.cl-session-menu,.sb-code-ligne .cl-session-menu:has([aria-expanded="true"]){display:block}
@media(hover:hover){.sb-code-ligne:hover .cl-conv-menu.cl-session-menu{display:block}}
.sb-code-ligne .cl-session-menu .cl-conv-liste{top:100%;right:0}
.code-session-bloc .cl-conv-menu.cl-session-menu{position:absolute;top:8px;right:6px;width:auto;height:auto;display:inline-flex}
.sb-code-ligne,.code-session-bloc,.sb-recent{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}
.sb-code-ligne .cl-conv-bouton{width:30px;height:30px}
.cl-epingle{display:inline-grid;place-items:center;margin-left:6px;color:var(--muted)}.cl-epingle svg{width:13px;height:13px}
/* Bulle de capacité en haut du chat Code (téléphone) : une fenêtre sous les barres, pas du texte dans l'en-tête */
.cl-barre-capa .cl-capa-bulle{position:absolute;right:-8px;top:calc(100% + 8px);bottom:auto;z-index:60;width:250px;box-sizing:border-box;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 12px 36px rgba(0,0,0,.16);text-align:left}
.cl-barre-capa .cl-capa-titre{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.cl-barre-capa .cl-capa-ligne{display:flex;align-items:baseline;gap:8px;margin-top:6px}
.cl-barre-capa .cl-capa-gros{font-size:28px;font-weight:600;letter-spacing:-.03em;line-height:1.1;color:var(--fg)}
.cl-barre-capa .cl-capa-reste{font-size:14px;color:var(--muted)}
.cl-barre-capa .cl-capa-jauge{height:6px;margin:10px 0 8px;border-radius:var(--radius-full);background:var(--border);overflow:hidden}
.cl-barre-capa .cl-capa-jauge i{display:block;height:100%;border-radius:var(--radius-full);background:var(--accent)}
.cl-barre-capa .cl-capa-bulle.peu .cl-capa-jauge i{background:var(--warn)}
.cl-barre-capa .cl-capa-bulle.bas .cl-capa-jauge i{background:var(--danger)}
.cl-barre-capa .cl-capa-renouv{font-size:13px;color:var(--muted)}
.cl-barre-capa .cl-capa{position:relative;display:inline-flex}
.cl-barre-capa .cl-capa-bouton{display:inline-flex;align-items:center;justify-content:center;height:40px;min-width:40px;padding:0 8px;border:0;border-radius:var(--radius-md);background:transparent;cursor:pointer}
.cl-barre-capa .cl-capa-segs{display:inline-flex;align-items:center;gap:4px}
.cl-barre-capa .cl-capa-segs i{display:block;width:6px;height:17px;border-radius:3px;background:var(--border)}
.cl-barre-capa .cl-capa-bouton.ok .plein{background:var(--accent)}
.cl-barre-capa .cl-capa-bouton.peu .plein{background:var(--warn)}
.cl-barre-capa .cl-capa-bouton.bas .plein{background:var(--danger)}
.code-sessions-corps{flex:1;min-height:0;overflow-y:auto;padding:12px 16px 110px}
.code-sessions-entete{display:flex;align-items:center;justify-content:space-between;margin:6px 4px 12px;font-size:15px;color:var(--muted)}
.code-sessions-filtre{position:relative;display:flex;align-items:center;gap:4px;color:var(--muted)}
.code-sessions-filtre select{field-sizing:content;appearance:none;-webkit-appearance:none;border:none;background:none;color:inherit;font:inherit;font-size:15px;padding:4px 20px 4px 4px;max-width:170px;text-overflow:ellipsis;cursor:pointer}
.code-sessions-filtre svg{position:absolute;right:0;width:15px;height:15px;pointer-events:none}
.code-session-carte{width:100%;display:grid;grid-template-columns:42px 1fr;column-gap:12px;align-items:center;margin-bottom:10px;padding:16px;border:1px solid color-mix(in srgb,var(--fg) 6%,transparent);border-radius:22px;background:var(--bg);color:var(--fg);text-align:left;cursor:pointer;box-shadow:0 1px 2px rgba(0,0,0,.03)}
html:not(.dark) .code-session-carte{background:#fff}
.code-session-icone{width:42px;height:42px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--fg) 4%,transparent);color:color-mix(in srgb,var(--fg) 65%,transparent)}
.code-session-icone svg{width:18px;height:18px}
.code-session-texte{min-width:0;display:flex;flex-direction:column;gap:4px}
.code-session-ligne{display:flex;align-items:baseline;gap:10px}
.code-session-nom{flex:1;min-width:0;font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.code-session-temps{flex-shrink:0;font-size:13px;color:var(--muted)}
.code-session-projet{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.code-session-projet svg{width:15px;height:15px;flex-shrink:0}
.code-session-apercu{grid-column:1/-1;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--fg) 3%,transparent);font-size:14px;line-height:1.45;color:color-mix(in srgb,var(--fg) 85%,transparent);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.code-session-bloc{position:relative}
.code-session-bloc .code-session-carte{margin-bottom:10px}
.code-session-bloc .code-session-ligne{padding-right:34px}
.code-session-plus{position:absolute;top:10px;right:10px;width:36px;height:36px;border:none;border-radius:50%;background:none;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.code-session-plus[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--fg)}
@media(hover:hover){.code-session-plus:hover{background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--fg)}}
.code-session-plus svg{width:18px;height:18px}
.code-session-epingle{display:flex;flex-shrink:0;color:var(--muted);align-self:center}.code-session-epingle svg{width:13px;height:13px}
.code-session-menu{position:absolute;z-index:30;top:48px;right:10px;min-width:190px;padding:6px;border-radius:14px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow-md)}
.code-session-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 10px;border:none;border-radius:10px;background:none;color:var(--fg);font-size:14px;text-align:left;cursor:pointer}
@media(hover:hover){.code-session-menu button:hover{background:var(--surface-hover)}}
.code-session-menu button svg{width:16px;height:16px;color:var(--muted)}
.code-session-menu .danger,.code-session-menu .danger svg{color:var(--danger)}
.code-sessions-vide{padding:40px 12px;text-align:center;font-size:14px;color:var(--muted)}
.code-sessions-vide small{display:block;margin-top:6px;font-size:13px;line-height:1.45}
.code-sessions-nouvelle{position:absolute;right:16px;bottom:calc(18px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:8px;height:50px;padding:0 22px;border:none;border-radius:var(--radius-full);background:#1f1f1f;color:#fff;font-size:16px;font-weight:500;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.18)}
html.dark .code-sessions-nouvelle{background:#f2f2f2;color:#111}
.code-sessions-nouvelle svg{width:18px;height:18px}
/* ══ Page Artéfacts (06/10/2026) ══ */
.sb-code-action.actif{background:color-mix(in srgb,var(--fg) 7%,transparent);font-weight:500}
.code-sessions-entete-art{margin-top:2px}
.code-sessions-artefacts{display:inline-flex;align-items:center;gap:10px;height:50px;padding:0 22px;margin:0 0 22px;border:1px solid color-mix(in srgb,var(--fg) 7%,transparent);border-radius:var(--radius-full);background:var(--bg);color:var(--fg);font-size:16px;cursor:pointer}
html:not(.dark) .code-sessions-artefacts{background:#fff}
.code-sessions-artefacts svg{width:19px;height:19px}
.artefacts-page .code-sessions-corps{padding-bottom:32px}
.artefacts-outils{display:flex;align-items:center;gap:12px;margin:4px 0 16px}
.artefacts-recherche{flex:1;min-width:0;display:flex;align-items:center;gap:8px;height:42px;padding:0 14px;border:1px solid color-mix(in srgb,var(--fg) 8%,transparent);border-radius:var(--radius-full);background:var(--bg);color:var(--muted)}
html:not(.dark) .artefacts-recherche{background:#fff}
.artefacts-recherche svg{width:16px;height:16px;flex-shrink:0}
.artefacts-recherche input{flex:1;min-width:0;border:none;background:none;outline:none;color:var(--fg);font:inherit;font-size:15px}
.artefacts-compte{flex-shrink:0;font-size:13px;color:var(--muted)}
.artefacts-filtres{display:flex;gap:6px;overflow-x:auto;margin:0 0 14px;scrollbar-width:none}.artefacts-filtres::-webkit-scrollbar{display:none}
.artefacts-filtre{flex:none;height:32px;padding:0 14px;border:1px solid color-mix(in srgb,var(--fg) 9%,transparent);border-radius:var(--radius-full);background:none;color:var(--muted);font:inherit;font-size:14px;cursor:pointer}
.artefacts-filtre.on{background:var(--fg);border-color:var(--fg);color:var(--bg);font-weight:500}
.design-page .code-sessions-corps{position:relative}
.ds-tete{display:flex;align-items:center;flex-wrap:wrap;gap:12px 14px;margin:2px 0 14px}
.ds-onglets{display:flex;flex:0 1 auto;min-width:0;max-width:100%;overflow-x:auto;scrollbar-width:none;padding:3px;border-radius:10px;background:color-mix(in srgb,var(--fg) 7%,transparent)}
.ds-onglets button{flex:1 0 auto;height:30px;padding:0 11px;white-space:nowrap;border:0;border-radius:var(--radius-sm);background:none;font:inherit;font-size:14px;font-weight:500;color:var(--muted);cursor:pointer}
.ds-onglets button.on{background:var(--surface);color:var(--fg);box-shadow:0 1px 3px rgba(0,0,0,.12)}
.ds-bouton{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 15px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--fg);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.ds-bouton svg{width:16px;height:16px}
.ds-bouton.plein{background:var(--accent);border-color:var(--accent);color:#fff}
.ds-bouton.dng,.ds-barre-sel .dng{color:var(--danger)}
.ds-nouvelle{margin-left:auto;white-space:nowrap;flex:none}
.ds-hero{display:flex;flex-direction:column;align-items:center;margin:14px 0 26px}
.ds-hero-titre{margin:0 0 20px;font-family:var(--font-display);font-size:30px;font-weight:600;letter-spacing:-.03em;text-align:center}
.ds-hero .ds-types{justify-content:center;margin-bottom:14px}
.ds-brief{width:100%;max-width:760px;border:1px solid var(--border);border-radius:22px;background:var(--surface);box-shadow:0 6px 30px rgba(0,0,0,.07);padding:16px 16px 12px}
.ds-brief textarea{display:block;width:100%;box-sizing:border-box;border:0;outline:0;resize:none;background:none;color:var(--fg);font:inherit;font-size:16px;line-height:1.5;padding:4px 6px;min-height:84px}
.ds-brief-bas{display:flex;align-items:center;gap:10px;padding-top:8px}
@media(max-width:768px){.ds-brief-bas .ds-lien{display:none}}
.ds-brief-espace{flex:1}
.design-page .code-sessions-corps:has(.ds-od){padding:0;display:flex;flex-direction:column;overflow:hidden}
.design-page .code-sessions-corps:has(.ds-od) .ds-tete{margin:0 14px 8px;flex:none}
.design-page .code-sessions-corps:has(.ds-od) .ds-od{flex:1;height:auto;min-height:0}
.ds-od{display:block;width:100%;height:calc(100dvh - 150px);min-height:520px;border:0;border-radius:0;background:transparent}
html.design-plein .sidebar{display:none!important}
.design-page-plein{padding:0;background:var(--bg)}
.design-page.design-page-plein .code-sessions-corps{max-width:none;width:100%;margin:0;padding:0}
.ds-barre-plein{flex:none;display:flex;align-items:center;gap:10px;height:48px;padding:0 10px;background:var(--bg);border-bottom:1px solid var(--border)}
.ds-barre-plein .hamburger{display:flex}
.ds-od-plein{flex:1;width:100%;height:auto;min-height:0}
.ds-section-ligne{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.ds-pastille-bouton{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 14px;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg);color:var(--fg);font:inherit;font-size:14px;line-height:1;white-space:nowrap;cursor:pointer}
.ds-pastille-bouton svg{width:16px;height:16px;flex:none}
@media(hover:hover){.ds-pastille-bouton:hover,.ds-style-pastille:hover{border-color:color-mix(in srgb,var(--fg) 30%,var(--border))}}
.ds-hero{margin:28px 0 34px}
.ds-hero-titre{font-size:clamp(26px,4vw,40px);margin-bottom:26px}
.ds-hero .ds-types{margin-bottom:18px}
.ds-type{height:38px;padding:0 16px;font-size:14px;background:var(--surface)}
.ds-brief{max-width:820px;border-radius:28px;padding:20px 20px 14px 24px;box-shadow:0 18px 40px -26px rgba(20,24,30,.35)}
.ds-brief textarea{font-size:17px;min-height:96px}
.ds-brief-bas{flex-wrap:wrap;gap:8px;padding-top:10px}
.ds-envoyer{width:46px;height:46px}
.ds-modeles{grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:16px}
.artefacts-filtre svg{width:14px;height:14px;margin-right:6px;vertical-align:-2px}
.ds-modele{border-radius:18px}
.ds-art{height:124px}
.ds-style-pastille{display:inline-flex;align-items:center;gap:8px;height:36px;padding:0 6px 0 12px;border:1px solid var(--border);border-radius:var(--radius-full);color:var(--muted);background:var(--bg)}
.ds-style-pastille svg{width:16px;height:16px;flex:none}
.ds-style-pastille select{border:0;outline:0;background:none;color:var(--fg);font:inherit;font-size:14px;height:34px;max-width:200px;cursor:pointer}
.ds-section-titre{font-size:13px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin:2px 2px 12px}
.ds-modeles{display:grid;grid-template-columns:repeat(auto-fill,minmax(122px,1fr));gap:12px;margin-bottom:28px}
.ds-modele{display:flex;flex-direction:column;gap:0;padding:0;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);color:var(--fg);font:inherit;text-align:left;overflow:hidden;cursor:pointer;transition:transform var(--dur-med),box-shadow var(--dur-med),border-color var(--dur-med)}
@media(hover:hover){.ds-modele:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.1);border-color:color-mix(in srgb,var(--fg) 22%,var(--border))}}
.ds-modele-nom{padding:10px 14px 12px;font-size:14px;font-weight:600}
.ds-art{position:relative;display:block;height:104px;overflow:hidden;background:#f4f1ec}
.ds-art i{position:absolute;display:block;border-radius:4px;background:rgba(0,0,0,.12)}
.ds-art b{position:absolute;display:block;border-radius:6px}
.ds-art-landing{background:linear-gradient(160deg,#fbf3e6,#f0dcc0)}.ds-art-landing i:nth-child(1){left:14px;top:18px;width:62%;height:12px;background:#3b2a1d}.ds-art-landing i:nth-child(2){left:14px;top:38px;width:46%;height:6px}.ds-art-landing i:nth-child(3){left:14px;top:50px;width:38%;height:6px}.ds-art-landing b{left:14px;bottom:14px;width:60px;height:20px;background:#a8552b}
.ds-art-dashboard{background:#101826}.ds-art-dashboard i{background:rgba(255,255,255,.14)}.ds-art-dashboard i:nth-child(1){left:12px;top:12px;width:36%;height:8px;background:#fff}.ds-art-dashboard i:nth-child(2){left:12px;top:30px;width:26%;height:32px;background:#2f7fe0}.ds-art-dashboard i:nth-child(3){left:44%;top:30px;width:26%;height:32px}.ds-art-dashboard b{left:12px;right:12px;bottom:10px;height:22px;background:linear-gradient(90deg,#2f7fe0 0 18%,#3fa5ff 18% 34%,#2f7fe0 34% 52%,#6ab8ff 52% 70%,#2f7fe0 70% 100%);border-radius:3px}
.ds-art-pitch{background:#17233a}.ds-art-pitch i{background:rgba(255,255,255,.2)}.ds-art-pitch i:nth-child(1){left:16px;top:26px;width:66%;height:12px;background:#fff}.ds-art-pitch i:nth-child(2){left:16px;top:48px;width:44%;height:6px}.ds-art-pitch i:nth-child(3){left:16px;top:60px;width:30%;height:6px}.ds-art-pitch b{right:12px;bottom:10px;width:26px;height:6px;background:#3fa5ff}
.ds-art-appli{background:#eef3f8;display:flex;justify-content:center}.ds-art-appli::before{content:"";position:absolute;top:12px;width:58px;height:118px;border-radius:var(--radius-md);background:#fff;box-shadow:0 0 0 3px #1f1f1f,0 8px 20px rgba(0,0,0,.18)}.ds-art-appli i{left:calc(50% - 22px);width:44px;height:6px}.ds-art-appli i:nth-child(1){top:30px;background:#1a1a1a;width:28px}.ds-art-appli i:nth-child(2){top:44px}.ds-art-appli i:nth-child(3){top:56px;width:34px}.ds-art-appli b{left:calc(50% - 22px);top:72px;width:44px;height:14px;background:#2f7fe0}
.ds-art-affiche{background:linear-gradient(180deg,#e0402f,#b32a1d)}.ds-art-affiche i{background:rgba(255,255,255,.85)}.ds-art-affiche i:nth-child(1){left:14px;top:14px;width:70%;height:20px;border-radius:3px}.ds-art-affiche i:nth-child(2){left:14px;top:40px;width:48%;height:20px;border-radius:3px}.ds-art-affiche i:nth-child(3){left:14px;bottom:12px;width:36%;height:6px;background:rgba(255,255,255,.6)}.ds-art-affiche b{right:14px;bottom:12px;width:30px;height:30px;border-radius:50%;background:#fff}
.ds-art-logo{background:#fafafa;display:flex;align-items:center;justify-content:center}.ds-art-logo i{width:46px;height:46px;border-radius:50%;background:none;border:7px solid #1a1a1a;left:calc(50% - 23px);top:29px}.ds-art-logo i:nth-child(2){width:20px;height:20px;left:calc(50% - 10px);top:42px;border:0;background:#e0802f}.ds-art-logo i:nth-child(3){display:none}
.ds-brief-OLD{border:1px solid var(--border);border-radius:18px;background:var(--surface);box-shadow:0 2px 14px rgba(0,0,0,.05);padding:14px 16px 12px;margin-bottom:16px}
.ds-brief-champ{display:flex;align-items:flex-start;gap:10px;margin-bottom:12px}
.ds-brief-champ textarea{flex:1;min-width:0;border:0;outline:0;resize:none;background:none;color:var(--fg);font:inherit;font-size:16px;line-height:1.45;padding:2px}
.ds-envoyer{flex:none;width:38px;height:38px;border:0;border-radius:50%;background:var(--fg);color:var(--bg);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ds-envoyer:disabled{opacity:var(--inactif);cursor:default}.ds-envoyer svg{width:18px;height:18px}
.ds-types{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}
.ds-type{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 13px;border:1px solid var(--border);border-radius:var(--radius-full);background:none;color:var(--fg);font:inherit;font-size:13px;cursor:pointer}
.ds-type svg{width:15px;height:15px;color:var(--muted)}
.ds-type.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 9%,transparent);color:color-mix(in srgb,var(--accent) 85%,var(--fg))}.ds-type.on svg{color:inherit}
.ds-style-ligne{display:flex;align-items:center;gap:10px;padding-top:11px;border-top:1px solid var(--border);flex-wrap:wrap}
.ds-etiq{font-size:13px;color:var(--muted)}
.ds-select{height:34px;padding:0 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--fg);font:inherit;font-size:13px;max-width:100%}
.ds-lien{border:0;background:none;color:var(--accent);font:inherit;font-size:13px;cursor:pointer;padding:0}
.ds-outils{margin-top:0}
.ds-dossiers{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px;align-items:center}
.ds-dossier{display:inline-flex;align-items:center;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);overflow:hidden}
.ds-dossier.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.ds-dossier-nom,.ds-dossier.nouveau{display:inline-flex;align-items:center;gap:9px;height:40px;padding:0 13px;border:0;background:none;color:var(--fg);font:inherit;font-size:13px;font-weight:500;cursor:pointer}
.ds-dossier.nouveau{border:1px dashed var(--border);border-radius:var(--radius-md);color:var(--muted);font-weight:400;height:42px}
.ds-dossier svg{width:17px;height:17px;color:var(--muted)}.ds-dossier-nom em{font-style:normal;font-weight:400;font-size:12px;color:var(--muted)}
.ds-dossier-x{width:30px;height:30px;margin-right:6px;border:0;border-radius:var(--radius-sm);background:none;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center}@media(hover:hover){.ds-dossier-x:hover{background:var(--surface-hover)}}
.ds-dossier-saisie{height:40px;padding:0 12px;border:1px solid var(--accent);border-radius:var(--radius-md);background:var(--surface);color:var(--fg);font:inherit;font-size:13px;outline:0}
.ds-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:14px;padding-bottom:84px}
.ds-tuile{position:relative;min-width:0;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);transition:transform var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.ds-tuile:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(0,0,0,.1)}}
.ds-tuile.sel{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.ds-vue{position:relative;display:block;width:100%;height:150px;padding:0;border:0;border-radius:15px 15px 0 0;background:var(--bg);overflow:hidden;cursor:pointer}
.ds-case,.ds-plus{position:absolute;top:8px;width:26px;height:26px;border:0;border-radius:var(--radius-sm);background:var(--surface);box-shadow:0 1px 4px rgba(0,0,0,.2);color:var(--fg);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:0;transition:opacity var(--dur-fast)}
.ds-case{left:8px}.ds-plus{right:8px}
.ds-case svg,.ds-plus svg{width:14px;height:14px}
.ds-case.on{background:var(--accent);color:#fff;opacity:1}
.ds-tuile:focus-within .ds-case,.ds-tuile:focus-within .ds-plus,.ds-tuile.sel .ds-case{opacity:1}
@media(hover:hover){.ds-tuile:hover .ds-case,.ds-tuile:hover .ds-plus{opacity:1}}
@media(hover:none){.ds-case,.ds-plus{opacity:1}}
.ds-pastille{position:absolute;top:8px;right:42px;max-width:calc(100% - 100px);height:22px;padding:0 9px;border-radius:var(--radius-full);background:rgba(255,255,255,.94);box-shadow:0 1px 3px rgba(0,0,0,.18);font-size:11px;font-weight:600;color:#333;display:flex;align-items:center;gap:5px;overflow:hidden;white-space:nowrap;pointer-events:none}
.ds-pastille i{width:8px;height:8px;border-radius:50%;background:var(--p,#888);flex:none}
.ds-bas{display:flex;align-items:center;gap:8px;padding:9px 10px 10px 13px}
.ds-txt{flex:1;min-width:0}.ds-nom{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-meta{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ds-renomme{width:100%;box-sizing:border-box;height:26px;border:1px solid var(--accent);border-radius:7px;background:var(--bg);color:var(--fg);font:inherit;font-size:13px;padding:0 7px;outline:0}
.ds-fav{flex:none;width:28px;height:28px;border:0;border-radius:var(--radius-sm);background:none;color:var(--muted);display:flex;align-items:center;justify-content:center;cursor:pointer}
.ds-fav svg{width:16px;height:16px}.ds-fav.on{color:#e0a82f}.ds-fav.on svg{fill:currentColor}
.ds-menu{position:absolute;right:8px;top:38px;width:206px;z-index:30;padding:5px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);box-shadow:0 14px 34px rgba(0,0,0,.22)}
.ds-menu button{display:flex;align-items:center;gap:10px;width:100%;height:34px;padding:0 10px;border:0;border-radius:var(--radius-sm);background:none;color:var(--fg);font:inherit;font-size:13px;text-align:left;cursor:pointer}
@media(hover:hover){.ds-menu button:hover{background:var(--surface-hover)}}.ds-menu button svg{width:15px;height:15px;color:var(--muted)}
.ds-menu .dng,.ds-menu .dng svg{color:var(--danger)}.ds-menu hr{border:0;border-top:1px solid var(--border);margin:4px 2px}.ds-menu-vide{display:block;padding:8px 10px;font-size:13px;color:var(--muted)}
.ds-barre-sel{position:fixed;left:50%;bottom:22px;transform:translateX(-50%);z-index:40;display:flex;align-items:center;gap:6px;padding:7px 8px 7px 16px;border-radius:14px;background:var(--fg);color:var(--bg);box-shadow:0 10px 30px rgba(0,0,0,.3);font-size:13px;font-weight:500;max-width:calc(100vw - 24px);flex-wrap:wrap}
.ds-barre-sel button,.ds-select-sel{height:30px;padding:0 12px;border:0;border-radius:var(--radius-sm);background:rgba(255,255,255,.14);color:var(--bg);font:inherit;font-size:13px;display:inline-flex;align-items:center;gap:7px;cursor:pointer}
.ds-select-sel option{color:#111}
.ds-barre-sel button svg{width:15px;height:15px}.ds-barre-sel .dng{color:#ff8c8c}.ds-barre-sel .ds-x{padding:0 8px}
.ds-styles{display:flex;gap:22px;align-items:flex-start}
.ds-liste{width:250px;flex:none;display:flex;flex-direction:column;gap:8px}
.ds-carte-style{display:flex;flex-direction:column;gap:9px;width:100%;padding:12px 13px;border:1px solid var(--border);border-radius:13px;background:var(--surface);color:var(--fg);font:inherit;text-align:left;cursor:pointer}
.ds-carte-style.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.ds-carte-style.nouveau{flex-direction:row;justify-content:center;align-items:center;gap:8px;height:52px;border-style:dashed;color:var(--muted);font-size:13px}.ds-carte-style.nouveau svg{width:16px;height:16px}
.ds-cs-haut{display:flex;justify-content:space-between;align-items:center;font-size:14px}.ds-cs-haut em{font-style:normal;font-size:12px;color:var(--muted)}
.ds-bande{display:flex;height:20px;border-radius:7px;overflow:hidden;box-shadow:0 0 0 1px rgba(0,0,0,.1)}.ds-bande i{flex:1}
.ds-edition{flex:1;min-width:0;display:flex;flex-direction:column;gap:16px}
.ds-groupe{border:1px solid var(--border);border-radius:14px;padding:15px 17px;background:var(--surface)}
.ds-groupe h4{margin:0 0 12px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.ds-groupe h4 em{font-style:normal;text-transform:none;letter-spacing:0;font-weight:400}
.ds-nom-ligne{display:flex;align-items:center;gap:12px}
.ds-logo{width:54px;height:54px;border-radius:14px;background:var(--bg);box-shadow:0 0 0 1px var(--border);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:600;color:var(--accent);overflow:hidden;cursor:pointer;flex:none}
.ds-logo img{width:100%;height:100%;object-fit:contain}
.ds-champ{flex:1;min-width:0;height:40px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--fg);font:inherit;font-size:14px;padding:0 13px;outline:0}
.ds-couleurs{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px}
.ds-pas{display:block;position:relative;height:50px;border-radius:10px;box-shadow:0 0 0 1px rgba(0,0,0,.12);cursor:pointer;overflow:hidden}.ds-pas input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.ds-coul.acc .ds-pas{box-shadow:0 0 0 2px var(--accent)}
.ds-coul-nom{font-size:13px;font-weight:500;margin-top:6px}.ds-hex{width:100%;box-sizing:border-box;margin-top:2px;border:0;background:none;color:var(--muted);font-family:ui-monospace,Menlo,Consolas,monospace;font-size:12px;padding:0;outline:0}
.ds-polices{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ds-pol{min-width:0;border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}.ds-pol .e{font-size:12px;color:var(--muted)}.ds-pol .ex{line-height:1.2}
.ds-regles{display:flex;flex-direction:column;gap:8px;align-items:flex-start}.ds-regle{display:flex;gap:6px;width:100%}.ds-x{width:34px;height:34px;border:0;border-radius:var(--radius-sm);background:none;color:var(--muted);cursor:pointer;display:flex;align-items:center;justify-content:center;flex:none}.ds-x svg{width:15px;height:15px}
.ds-import{display:flex;flex-direction:column;gap:10px;align-items:flex-start}.ds-import-site{display:flex;gap:8px;width:100%}.ds-import-site .ds-champ{flex:1}.ds-import-image{cursor:pointer}.ds-import-msg{font-size:13px;color:var(--muted)}.ds-import-msg.erreur{color:var(--danger)}
.ds-pied{display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted)}
.ds-apercu{width:100%}.ds-apercu-t{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);margin-bottom:10px}
.ds-petite{max-width:420px;border-radius:14px;box-shadow:0 0 0 1px rgba(0,0,0,.1);padding:20px 18px}
.ds-petite .k{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:600}.ds-petite .k img{height:18px}
.ds-petite h3{margin:8px 0;font-size:30px;line-height:1.05;font-weight:400}.ds-petite p{margin:0 0 14px;font-size:13px;line-height:1.5}
.ds-petite .b{display:inline-flex;height:34px;padding:0 15px;border-radius:var(--radius-sm);color:#fff;font-size:13px;font-weight:500;align-items:center}
.ds-petite .carte{margin-top:16px;border:1px solid;border-radius:10px;padding:10px 13px;display:flex;justify-content:space-between;font-size:13px}
@media(max-width:768px){
  .ds-hero .ds-types{justify-content:flex-start;width:100%}.ds-hero-titre{font-size:24px}.ds-modeles{grid-template-columns:repeat(2,minmax(0,1fr))}.ds-brief textarea{min-height:70px}
  .ds-styles{flex-direction:column}.ds-liste{width:100%}.ds-apercu{width:100%;position:static}.ds-couleurs{grid-template-columns:repeat(3,minmax(0,1fr))}.ds-polices{grid-template-columns:1fr}
  .ds-grille{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ds-vue{height:104px}.ds-nouvelle{display:none}
  .ds-types{flex-wrap:wrap}.ds-hero .ds-types{justify-content:center}.ds-type{height:34px;padding:0 12px;font-size:13px}
  .ds-onglets{width:100%}.ds-onglets button{flex:1 1 auto;padding:0 8px;font-size:12px;white-space:nowrap}
  .ds-brief{padding:14px 14px 10px 16px;border-radius:24px}.ds-brief-espace{display:none}.ds-envoyer{margin-left:auto}
  .ds-tete{flex-direction:column;align-items:stretch}
  .ds-modeles{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ds-art{height:100px}
}
.artefacts-grille{display:grid;grid-template-columns:1fr;gap:10px}
.artefact-carte{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid color-mix(in srgb,var(--fg) 6%,transparent);border-radius:18px;background:var(--bg);color:var(--fg);text-align:left;cursor:pointer;min-width:0;animation:tr-monte .4s cubic-bezier(.2,.7,.2,1) both;transition:border-color .15s ease,transform .12s ease}
.artefact-carte:active{transform:scale(.985)}
@media(prefers-reduced-motion:reduce){.artefact-carte{animation:none;transition:none}}
html:not(.dark) .artefact-carte{background:#fff}
@media(hover:hover){.artefact-carte:hover{border-color:color-mix(in srgb,var(--fg) 14%,transparent)}}
.artefact-vignette{position:relative;flex-shrink:0;width:56px;height:56px;border-radius:var(--radius-md);overflow:hidden;background:color-mix(in srgb,var(--fg) 4%,transparent);display:flex;align-items:center;justify-content:center}
.artefact-vignette iframe{position:absolute;top:0;left:0;width:1200px;height:625px;border:0;transform-origin:0 0;pointer-events:none;background:#fff}
.artefact-vignette-icone{color:color-mix(in srgb,var(--fg) 60%,transparent);display:flex}
.artefact-vignette-icone svg{width:22px;height:22px}
.artefact-infos{min-width:0;display:flex;flex-direction:column;gap:3px}
.artefact-titre{font-size:16px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.artefact-meta{font-size:13px;color:var(--muted)}
.artefact-origine{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--muted);min-width:0}
.artefact-origine span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.artefact-origine svg{width:14px;height:14px;flex-shrink:0}
@media(min-width:769px){
  .artefacts-page{background:var(--bg)}
  .artefacts-page .code-sessions-barre .hamburger{display:none}
  .artefacts-page .code-sessions-titre{font-size:22px}
  .artefacts-page .code-sessions-corps{width:100%;max-width:1040px;margin:0 auto;padding:12px 32px 40px}
  .artefacts-grille{grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:16px}
  .artefact-carte{flex-direction:column;align-items:stretch;gap:0;padding:0;overflow:hidden}
  .artefact-vignette{width:100%;height:150px;border-radius:0;border-bottom:1px solid color-mix(in srgb,var(--fg) 6%,transparent)}
  .artefact-vignette iframe{transform:scale(.24)}
  .artefact-infos{padding:12px 14px 14px}
}
.sb-code-nouveau-projet{width:calc(100% - 8px);margin:4px 4px 6px;height:36px;padding:0 10px;border:1px solid color-mix(in srgb,var(--accent) 55%,transparent);border-radius:10px;background:var(--bg);color:var(--fg);font:inherit;font-size:14px;outline:none}
.sb-code-groupe-tete{position:relative}
.sb-code-groupe-options{width:30px;height:30px;display:flex;align-items:center;justify-content:center;border:none;background:none;border-radius:var(--radius-sm);color:color-mix(in srgb,var(--fg) 55%,transparent);cursor:pointer;opacity:0;transition:opacity var(--dur-fast)}
.sb-code-groupe-tete:focus-within .sb-code-groupe-options,.sb-code-groupe-options[aria-expanded="true"]{opacity:1}
@media(hover:hover){.sb-code-groupe-tete:hover .sb-code-groupe-options{opacity:1}}
@media(hover:none){.sb-code-groupe-options{opacity:.7}}
@media(hover:hover){.sb-code-groupe-options:hover{background:color-mix(in srgb,var(--fg) 7%,transparent);color:var(--fg)}}
.sb-code-groupe-options svg{width:16px;height:16px}
.sb-code-groupe-tete .sb-code-nouveau-projet{flex:1;width:auto;margin:2px 4px}
/* ══ Mémoire (réglages) redessinée — 06/10/2026 ══ */
.mem-page{display:flex;flex-direction:column;gap:28px}
.memoire-integree .mem-page{margin-top:22px}
.mem-bloc{display:flex;flex-direction:column;gap:12px}
.mem-entete{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.mem-entete-texte{min-width:0}
.mem-titre{font-size:16px;font-weight:600;color:var(--fg)}
.mem-desc{margin-top:4px;font-size:14px;line-height:1.5;color:var(--muted);max-width:560px}
.mem-ajouter{flex-shrink:0;gap:6px}
.mem-ajouter svg{width:15px;height:15px}
.mem-liste{border:1px solid var(--border);border-radius:14px;background:var(--bg);overflow:hidden}
html:not(.dark) .mem-liste{background:#fff}
.mem-ligne{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:56px}
.mem-ligne+.mem-ligne,.mem-projet+.mem-projet{border-top:1px solid var(--border)}
.mem-ligne-texte{flex:1;min-width:0}
.mem-ligne-sujet{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;font-weight:500;color:var(--muted)}
.mem-ligne-valeur{margin-top:2px;font-size:14px;line-height:1.45;color:var(--fg);overflow-wrap:anywhere}
.mem-pastille{padding:1px 8px;border-radius:var(--radius-full);font-size:11px;font-weight:500;background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent)}
.mem-ligne-actions{display:flex;gap:2px;flex-shrink:0;opacity:0;transition:opacity var(--dur-fast)}
.mem-ligne:focus-within .mem-ligne-actions,.mem-ligne-actions-visibles{opacity:1}
@media(hover:hover){.mem-ligne:hover .mem-ligne-actions{opacity:1}}
@media(hover:none){.mem-ligne-actions{opacity:1}}
.mem-ligne-actions .btn-icon{width:32px;height:32px;color:var(--muted)}
@media(hover:hover){.mem-ligne-actions .btn-icon:hover{color:var(--fg)}}
.mem-ligne-actions .btn-icon svg{width:16px;height:16px}
.mem-ligne-actions-visibles{gap:8px}
.mem-edition{flex:1;display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.mem-edition .input{flex:1;min-width:160px}
.mem-vide{padding:18px 16px;font-size:14px;line-height:1.5;color:var(--muted)}
.mem-ajout{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid var(--border);border-radius:14px;background:color-mix(in srgb,var(--fg) 2%,var(--bg))}
.mem-ajout .input{margin-bottom:6px}
.mem-ajout-boutons{display:flex;justify-content:flex-end;gap:8px}
.mem-projet{width:100%;display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:54px;border:none;background:none;color:var(--fg);text-align:left;cursor:pointer}
@media(hover:hover){.mem-projet:hover{background:color-mix(in srgb,var(--fg) 3%,transparent)}}
.mem-projet-icone{display:flex;flex-shrink:0}
.mem-projet-icone svg{width:18px;height:18px}
.mem-projet-nom{flex:1;min-width:0;font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mem-projet-compte{flex-shrink:0;font-size:13px;color:var(--muted)}
.mem-projet>svg:last-child{width:15px;height:15px;color:var(--muted);flex-shrink:0}
.mem-retour{align-self:flex-start;display:flex;align-items:center;gap:6px;padding:6px 10px 6px 6px;margin-left:-6px;border:none;background:none;border-radius:var(--radius-sm);color:var(--muted);font-size:14px;cursor:pointer}
@media(hover:hover){.mem-retour:hover{color:var(--fg);background:color-mix(in srgb,var(--fg) 5%,transparent)}}
.mem-retour svg{width:16px;height:16px}
.btn-danger-doux{color:var(--danger)!important}
.btn-danger-doux svg{color:var(--danger)}
@media(hover:hover){.btn-danger-doux:hover:not(:disabled){background:color-mix(in srgb,var(--danger) 8%,var(--bg))!important;border-color:color-mix(in srgb,var(--danger) 35%,var(--border))!important}}
/* ══ Bibliothèque en deux parties (06/10/2026) ══ */
.lib-barre .top-bar-title{flex:1;text-align:center}
.lib-cale{width:40px;flex-shrink:0}
@media(min-width:769px){.lib-barre .action-pc{margin-left:auto}.lib-barre .top-bar-title+.action-pc,.lib-barre .lib-cale+.action-pc{margin-left:0}}
@media(min-width:769px){.lib-barre .top-bar-title{text-align:left}.lib-cale{display:none}}
.library-page{position:relative;max-width:1040px;margin:0 auto;width:100%}
.lib-onglets{display:grid;grid-template-columns:1fr 1fr;gap:2px;padding:4px;margin:0 0 18px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 6%,var(--bg));max-width:420px}
/* Fondu seulement (pas de transform) : un transform, même pendant l'animation, fait de la section le repère des boutons « fixes » à l'intérieur (le bouton flottant « Ajouter » partait au milieu de la page). */
@keyframes libEntree{from{opacity:0}to{opacity:1}}
/* « backwards » et non « both » : une animation qui garde son état final (transform) devient le repère des fenêtres fixes à l'intérieur, qui partaient alors hors écran. */
.lib-anim{animation:libEntree .22s var(--ease-out) backwards}
@media(prefers-reduced-motion:reduce){.lib-anim{animation:none}}
.lib-sous{display:flex;gap:6px;margin:4px 0 14px;overflow-x:auto;scrollbar-width:none;padding:2px 0}
.lib-sous::-webkit-scrollbar{display:none}
.lib-sous button{flex-shrink:0;height:34px;padding:0 14px;border:none;border-radius:var(--radius-full);background:none;color:color-mix(in srgb,var(--fg) 62%,transparent);font-size:14px;font-weight:500;cursor:pointer}
.lib-sous button.actif{background:color-mix(in srgb,var(--fg) 8%,var(--bg));color:var(--fg)}
.ds-systemes-tete{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:14px}
.ds-systeme-actif{font-size:13px;color:var(--muted)}.ds-systeme-actif b{color:var(--fg)}.ds-systeme-actif button{margin-left:8px;background:none;border:none;color:var(--accent);cursor:pointer;font:inherit}
.ds-systeme-modale .modal{max-width:min(1100px,94vw)}
@media(min-width:769px){
  .ds-systeme-modale .modal{height:min(90vh,920px);max-height:none;display:flex;flex-direction:column;overflow:hidden}
  .ds-systeme-modale .modal-corps{flex:1;min-height:0;display:flex;flex-direction:column}
  .ds-systeme-modale .ds-systeme-apercu{flex:1;height:auto;min-height:0}
}
.ds-systemes-n{font-size:13px;color:var(--muted)}
.ds-systemes-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:14px}
.ds-systeme-carte .ds-bande{display:flex;width:100%;height:34px;border-radius:var(--radius-sm);overflow:hidden;margin-bottom:4px}
.ds-systeme-carte .ds-bande i{flex:1;display:block}
.ds-systeme-resume{font-size:13px;line-height:1.4;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ds-systeme-carte{display:flex;flex-direction:column;gap:6px;align-items:flex-start;text-align:left;padding:14px;min-height:150px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--fg);cursor:pointer}
@media(hover:hover){.ds-systeme-carte:hover{border-color:color-mix(in srgb,var(--fg) 25%,transparent)}}
.ds-systeme-carte.on{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
.ds-systeme-carte b{font-size:16px}.ds-systeme-carte em{font-style:normal;font-size:12px;color:var(--muted)}
.ds-systeme-apercu{width:100%;height:min(60vh,460px);border:1px solid var(--border);border-radius:10px;background:#fff;margin-top:10px}
.lib-onglets button{height:40px;border:none;border-radius:var(--radius-full);background:none;color:color-mix(in srgb,var(--fg) 62%,transparent);font-size:14px;font-weight:500;cursor:pointer}
.lib-onglets button.actif{background:var(--bg);color:var(--fg);box-shadow:0 1px 4px rgba(0,0,0,.08),0 0 0 1px color-mix(in srgb,var(--fg) 5%,transparent)}
html:not(.dark) .lib-onglets button.actif{background:#fff}
.lib-outils{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 18px}
.lib-puces{display:flex;gap:6px;flex-wrap:wrap;flex:1;min-width:0}
.lib-puces button{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 14px;border:1px solid color-mix(in srgb,var(--fg) 10%,transparent);border-radius:var(--radius-full);background:none;color:color-mix(in srgb,var(--fg) 75%,transparent);font-size:14px;cursor:pointer}
@media(hover:hover){.lib-puces button:hover{border-color:color-mix(in srgb,var(--fg) 22%,transparent)}}
.lib-puces button.actif{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.lib-puce-n{font-size:12px;opacity:.65}
.lib-recherche{display:flex;align-items:center;gap:8px;height:38px;padding:0 14px;border:1px solid color-mix(in srgb,var(--fg) 9%,transparent);border-radius:var(--radius-full);background:var(--bg);color:var(--muted);flex:0 1 260px;min-width:0}
html:not(.dark) .lib-recherche{background:#fff}
.lib-recherche svg{width:15px;height:15px;flex-shrink:0}
.lib-recherche input{flex:1;min-width:0;border:none;background:none;outline:none;color:var(--fg);font:inherit;font-size:14px}
@media(max-width:768px){.lib-recherche{flex:1 1 100%}}
.lib-section{margin:0 0 26px}
.lib-section-tete{display:flex;align-items:center;justify-content:space-between;margin:0 2px 10px;font-size:15px;font-weight:600}
.lib-section-tete button{display:inline-flex;align-items:center;gap:2px;border:none;background:none;color:var(--muted);font-size:14px;cursor:pointer}
@media(hover:hover){.lib-section-tete button:hover{color:var(--fg)}}
.lib-section-tete button svg{width:14px;height:14px}
.lib-images{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:10px}
@media(max-width:768px){.lib-images{grid-template-columns:repeat(3,1fr);gap:6px}}
.lib-image{position:relative;aspect-ratio:1;padding:0;border:none;border-radius:14px;overflow:hidden;background:color-mix(in srgb,var(--fg) 5%,transparent);cursor:zoom-in}
@media(max-width:768px){.lib-image{border-radius:10px}}
.lib-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform var(--dur-base)}
@media(hover:hover){.lib-image:hover img{transform:scale(1.03)}}
.lib-lignes,.lib-list{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg);overflow:hidden;gap:0}
html:not(.dark) .lib-lignes,html:not(.dark) .lib-list{background:#fff}
.lib-list:empty{display:none}
.lib-ligne{display:flex;align-items:center;gap:12px;padding:12px 14px;min-height:60px;border:none;background:none;color:var(--fg);text-align:left;cursor:pointer;width:100%}
.lib-ligne+.lib-ligne,.lib-row+.lib-row{border-top:1px solid var(--border)}
@media(hover:hover){.lib-ligne:hover{background:color-mix(in srgb,var(--fg) 3%,transparent)}}
.lib-ligne>svg:last-child{width:15px;height:15px;color:var(--muted);flex-shrink:0}
.lib-ligne-icone{width:38px;height:38px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.lib-ligne-doc .generated-file-icon{width:30px;height:34px}
.lib-ligne-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.lib-ligne-titre{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lib-ligne-sous{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lib-vide{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:48px 16px}
.lib-vide-icone{width:56px;height:56px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 8%,var(--bg));color:var(--accent)}
.lib-vide-icone svg{width:26px;height:26px}
.lib-vide-titre{font-size:var(--text-md);font-weight:600}
.lib-vide p{max-width:42ch;font-size:14px;line-height:1.6;color:var(--muted)}
.lib-vide-court{padding:28px 8px;text-align:center;font-size:14px;color:var(--muted)}
/* Ma bibliothèque : liste unique, lignes sobres, « Utiliser » discret */
.lib-intro{font-size:14px;line-height:1.5;color:var(--muted);margin:0 0 14px}
.lib-row{padding:14px;display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;background:none;border:none;border-radius:0;box-shadow:none}
.lib-row-icon{width:40px;height:40px;border-radius:10px;background:color-mix(in srgb,var(--fg) 5%,transparent);display:flex;align-items:center;justify-content:center;flex-shrink:0;color:color-mix(in srgb,var(--fg) 65%,transparent);overflow:hidden}
.lib-row-icon svg{width:18px;height:18px}
.lib-row-title{font-size:14px;font-weight:500}
.lib-utiliser{color:var(--accent)!important}
.lib-ajouter-pc{flex-shrink:0}
.lib-ajouter-flottant{position:fixed;right:16px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:40;display:flex;align-items:center;gap:8px;height:52px;padding:0 22px 0 18px;border:none;border-radius:var(--radius-full);background:var(--accent);color:var(--accent-ink,#fff);font-weight:600!important;font-size:16px;font-weight:500;cursor:pointer;box-shadow:0 6px 20px rgba(0,0,0,.18)}
html.dark .lib-ajouter-flottant{background:var(--accent);color:var(--accent-ink,#111)}
/* Action principale d'une page (10/10/2026) : PC = en-tête à droite ; téléphone = bouton flottant (lib-ajouter-flottant). */
@media(max-width:768px){.action-pc{display:none!important}}
@media(min-width:769px){.action-mobile{display:none!important}}
@media(max-width:768px){.conversations-page{padding-bottom:96px}}
.lib-ajouter-flottant svg{width:18px;height:18px}
.code-sessions-corps{padding-bottom:calc(92px + env(safe-area-inset-bottom))}   /* le bouton flottant ne recouvre pas la dernière ligne */
@media(max-width:768px){.library-page{padding-bottom:96px!important}}
/* Visionneuse d'image */
.msg-content img{cursor:zoom-in}
.lib-visionneuse{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:16px;background:rgba(8,8,8,.97);animation:fadeIn var(--dur-med)}
.lib-visionneuse-haut{position:absolute;top:0;left:0;right:0;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;color:#fff}
.lib-visionneuse-titre{font-size:14px;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lib-visionneuse-fermer{width:40px;height:40px;flex-shrink:0;border:none;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.lib-visionneuse-image{max-width:min(100%,1100px);max-height:calc(100dvh - 170px);object-fit:contain;border-radius:var(--radius-md)}
.lib-visionneuse-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center}
.lib-visionneuse-actions button{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 18px;border:none;border-radius:var(--radius-full);background:#fff;color:#111;font-size:14px;font-weight:500;cursor:pointer}
.lib-visionneuse-actions button+button{background:rgba(255,255,255,.14);color:#fff}
.lib-visionneuse-actions svg{width:17px;height:17px}
.lib-rond,.lib-visionneuse-pilule{display:none}
.lib-visionneuse-cadre{position:relative;display:inline-block;max-width:100%;line-height:0;animation:visio-entre .24s cubic-bezier(.2,.8,.2,1);will-change:transform}
@keyframes visio-entre{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}
.lib-visionneuse{touch-action:none}
.lib-visionneuse-toile{position:absolute;inset:0;width:100%;height:100%;touch-action:none;cursor:crosshair;border-radius:var(--radius-md)}
/* Téléphone : visionneuse noire, pilule du titre et boutons ronds flottants (modifier · partager · télécharger · fermer). */
@media(max-width:768px){
  .lib-visionneuse{background:#000;padding:0;gap:0}
  .lib-visionneuse-haut{justify-content:flex-start;gap:8px;padding:calc(12px + env(safe-area-inset-top)) 16px 12px;z-index:2}
  .lib-visionneuse-titre{display:none}
  .lib-visionneuse-pilule{display:flex;align-items:center;flex:1;min-width:0;height:44px;padding:0 22px;border-radius:22px;background:#f9f9f7;color:#111;font-size:16px;font-weight:500}
  .lib-visionneuse-pilule span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .lib-rond,.lib-visionneuse-fermer{display:grid;place-items:center;flex:none;width:44px;height:44px;border:0;border-radius:50%;background:#f9f9f7;color:#111;cursor:pointer}
  .lib-rond svg,.lib-visionneuse-fermer svg{width:22px;height:22px}
  .lib-rond[disabled]{opacity:var(--inactif)}
  .lib-rond--accent{color:#c0442a}
  .lib-rond-groupe{display:flex;align-items:center;height:44px;padding:0 4px;border-radius:22px;background:#f9f9f7}
  .lib-rond-groupe .lib-rond{width:42px;height:44px;background:none}
  .lib-rond-groupe i{width:1px;height:20px;background:rgba(0,0,0,.18)}
  .lib-visionneuse-haut .lib-espace{flex:1}
  .lib-visionneuse-image{max-width:100%;max-height:calc(100dvh - 120px);border-radius:0}
  .lib-visionneuse-actions{display:none}
  /* Le document commence SOUS la barre du haut (68px : pilule du titre et boutons), au lieu de passer derrière elle. */
  .lib-visionneuse iframe{width:100%!important;height:calc(100dvh - 68px - env(safe-area-inset-top))!important;margin-top:calc(68px + env(safe-area-inset-top));border-radius:0!important}
}
/* Bibliothèque — finitions mobile (06/10/2026) : filtres sur une ligne qui défile, actions sur une seule rangée. */
.lib-row-title .tag{border:none;background:none;padding:0;text-transform:none;letter-spacing:0;font-size:12px!important;font-weight:400;color:var(--muted)}
.lib-row-actions .btn{background:none;border:none;box-shadow:none;height:34px;padding:0 10px;color:color-mix(in srgb,var(--fg) 70%,transparent)}
@media(hover:hover){.lib-row-actions .btn:hover{background:color-mix(in srgb,var(--fg) 6%,transparent)}}
.lib-row-actions .btn-icon{width:34px;height:34px;color:color-mix(in srgb,var(--fg) 60%,transparent)}
.lib-row-actions .lib-utiliser{padding-left:0}
@media(max-width:768px){
  /* Pastilles : la bande défile en largeur ; sans marge intérieure elle rognait le haut et le bas des pastilles (zone tactile de 6 px en plus) et la dernière. */
  .lib-puces{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding:8px 16px 8px 2px;margin:-8px -16px -8px -2px}
  .lib-puces::-webkit-scrollbar{display:none}
  .lib-puces button{flex-shrink:0}
  .lib-row-actions{flex-basis:calc(100% - 52px);flex-wrap:nowrap;justify-content:flex-start;gap:2px;margin-left:52px;min-width:0}
  .lib-row-actions>.btn{flex:0 0 auto}
  .lib-row-actions .lib-action-libelle{display:none}
  .lib-row-actions .btn+.btn-icon,.lib-row-actions .btn-icon{margin-left:0}
}
/* ══ Projets redessinés (06/10/2026) — même langage que la Bibliothèque ══ */
.proj-icone{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.proj-icone svg{width:19px;height:19px}
.proj-icone-grand{width:52px;height:52px;border-radius:15px}
.proj-icone-grand svg{width:24px;height:24px}
.proj-stats{display:inline-flex;align-items:center;gap:12px;font-size:13px;color:var(--muted)}
.proj-stats>span{display:inline-flex;align-items:center;gap:4px}
.proj-stats svg{width:13px;height:13px}
.proj-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
@media(max-width:768px){.proj-grille{grid-template-columns:1fr;gap:10px}}
.proj-carte{display:flex;flex-direction:column;gap:6px;padding:14px 14px 12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg);cursor:pointer;transition:border-color var(--dur-fast),transform var(--dur-fast);min-width:0}
html:not(.dark) .proj-carte{background:#fff}
@media(hover:hover){.proj-carte:hover{border-color:color-mix(in srgb,var(--fg) 18%,transparent)}}
.proj-carte:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
.proj-carte-tete{display:flex;align-items:center;justify-content:space-between;margin-bottom:4px}
.proj-carte .project-del{width:32px;height:32px;color:var(--muted);opacity:0;transition:opacity var(--dur-fast)}
.proj-carte:focus-within .project-del{opacity:1}
@media(hover:hover){.proj-carte:hover .project-del{opacity:1}}
@media(hover:none){.proj-carte .project-del{opacity:.7}}
.proj-carte-nom{font-size:16px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-carte-desc{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-carte-pied{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:6px}
.proj-carte-quand{font-size:12px;color:var(--muted);flex-shrink:0}
.proj-recherche{flex:1 1 260px;max-width:420px}
.proj-nouveau{margin:0 0 16px}
.proj-entete{display:flex;align-items:center;gap:14px;margin:0 0 18px}
.proj-entete-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.proj-titre{margin:0;font-size:22px;font-weight:600;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.proj-desc{font-size:14px;color:var(--muted)}
.proj-nouvelle{flex-shrink:0}
.proj-onglets{margin:0 0 20px}
@media(max-width:768px){.proj-titre{font-size:19px}.proj-onglets{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}.proj-onglets::-webkit-scrollbar{display:none}.proj-onglets button{flex-shrink:0}}
.proj-ligne-icone{border-radius:10px;background:color-mix(in srgb,var(--fg) 5%,transparent);color:color-mix(in srgb,var(--fg) 62%,transparent)}
.proj-ligne-icone svg{width:17px;height:17px}
.proj-fichier{cursor:default}
.proj-ext{border-radius:10px;background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent);font-size:11px;font-weight:700;letter-spacing:.02em}
.proj-actions{display:flex;gap:2px;flex-shrink:0}
.proj-actions .btn-icon{width:32px;height:32px;color:var(--muted)}
@media(hover:hover){.proj-actions .btn-icon:hover{color:var(--fg)}}
.proj-vide{padding:16px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:14px;line-height:1.5;color:var(--muted)}
.proj-vide-action{display:flex;align-items:center;gap:10px;width:100%;background:none;text-align:left;cursor:pointer}
@media(hover:hover){.proj-vide-action:hover{border-color:color-mix(in srgb,var(--accent) 45%,transparent);color:var(--fg)}}
.proj-vide-action svg{width:18px;height:18px;flex-shrink:0;color:var(--accent)}
.proj-depot{width:100%;display:flex;flex-direction:column;align-items:center;gap:6px;padding:22px 16px;margin:0 0 14px;border:1.5px dashed color-mix(in srgb,var(--fg) 16%,transparent);border-radius:var(--radius-lg);background:none;color:var(--fg);cursor:pointer;text-align:center}
@media(hover:hover){.proj-depot:hover{border-color:color-mix(in srgb,var(--accent) 50%,transparent);background:color-mix(in srgb,var(--accent) 4%,transparent)}}
.proj-depot-icone{width:42px;height:42px;border-radius:13px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent)}
.proj-depot-icone svg{width:20px;height:20px}
.proj-depot-texte{font-size:14px;font-weight:500}
.proj-depot-types{font-size:13px;line-height:1.5;color:var(--muted);max-width:52ch}
.proj-memoire{gap:12px}
.top-bar .proj-retour{display:inline-flex!important;align-items:center;gap:6px;height:38px;padding:0 14px 0 10px;flex-shrink:0;border:1px solid var(--border);border-radius:var(--radius-full);background:var(--bg);color:var(--fg);font-size:14px;font-weight:500;cursor:pointer;transition:background var(--dur-med),border-color var(--dur-med)}
html:not(.dark) .top-bar .proj-retour{background:#fff}
@media(hover:hover){.top-bar .proj-retour:hover{background:color-mix(in srgb,var(--fg) 5%,transparent);border-color:color-mix(in srgb,var(--fg) 18%,transparent)}}
.top-bar .proj-retour svg{width:18px;height:18px}
.lib-barre .proj-barre-nom{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
@media(max-width:768px){.lib-barre .proj-barre-nom{visibility:hidden}}
@media(min-width:769px){.proj-page .lib-barre .proj-retour+.top-bar-title{margin-left:4px}}
/* ══ Planifiées (06/10/2026) ══ */
.rail-point,.nav-point,.tache-point{width:8px;height:8px;border-radius:50%;background:#e2603a;flex-shrink:0}
.rail-point{position:absolute;top:9px;right:9px;box-shadow:0 0 0 2px var(--surface)}
.nav-point{margin-left:auto}
/* Le point « nouveau résultat » est un <span> : la règle .nav-item>span (flex:1) l'étirait en long trait orange. */
.nav-item>span.nav-point{flex:0 0 8px;width:8px;height:8px;min-width:8px;margin-left:auto;margin-right:4px}
.lib-ligne-icone{position:relative}
.tache-point{position:absolute;top:-2px;right:-2px;box-shadow:0 0 0 2px var(--bg)}
.tache-compteur{flex:1;font-size:13px;color:var(--muted)}
.tache-ligne{display:flex;align-items:center;gap:10px;padding:12px 10px 12px 14px;min-height:64px}
.tache-ligne+.tache-ligne{border-top:1px solid var(--border)}
.tache-ligne.en-pause .tache-corps,.tache-ligne.en-pause .lib-ligne-icone{opacity:.55}
.tache-corps{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;border:none;background:none;padding:0;text-align:left;color:var(--fg);cursor:pointer}
.tache-statut{font-size:12px;color:var(--muted)}
.tache-statut.alerte{color:var(--warn)}
.tache-statut.en-cours{color:var(--accent)}
.tache-interrupteur{display:flex;flex-shrink:0;cursor:pointer}
.tache-interrupteur input{appearance:none;-webkit-appearance:none;width:38px;height:22px;margin:0;border-radius:20px;background:var(--border);position:relative;cursor:pointer;transition:background var(--dur-med)}
.tache-interrupteur input::after{content:'';position:absolute;width:16px;height:16px;border-radius:50%;background:#fff;top:3px;left:3px;box-shadow:0 1px 3px #0003;transition:transform var(--dur-med)}
.tache-interrupteur input:checked{background:var(--accent)}
.tache-interrupteur input:checked::after{transform:translateX(16px)}
.tache-interrupteur input:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:3px}
.tache-menu-ancre{position:relative;flex-shrink:0}
.tache-plus{width:34px;height:34px;color:var(--muted)}
.tache-form{margin:0 0 18px}
.tache-form textarea{min-height:96px}
.tache-frequence{max-width:none;margin:2px 0 6px}
.tache-frequence button{font-size:14px;height:36px}
.tache-jours{display:flex;gap:6px;flex-wrap:wrap;margin:2px 0 6px}
.tache-jours button{min-width:46px;height:36px;padding:0 10px;border:1px solid color-mix(in srgb,var(--fg) 12%,transparent);border-radius:var(--radius-full);background:none;color:color-mix(in srgb,var(--fg) 75%,transparent);font-size:13px;text-transform:capitalize;cursor:pointer}
.tache-jours button.actif{background:var(--fg);border-color:var(--fg);color:var(--bg)}
.tache-heure{display:flex;gap:12px;flex-wrap:wrap}
.tache-heure label{display:flex;flex-direction:column;gap:4px;min-width:130px}
.tache-note{font-size:13px;color:var(--muted);margin-top:4px}
.tache-exemples{display:flex;flex-direction:column;gap:8px;width:100%;max-width:440px;margin:6px 0 10px}
.tache-exemples button{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:var(--bg);color:var(--fg);text-align:left;cursor:pointer}
html:not(.dark) .tache-exemples button{background:#fff}
@media(hover:hover){.tache-exemples button:hover{border-color:color-mix(in srgb,var(--accent) 45%,transparent)}}
.tache-exemples button>svg{width:18px;height:18px;color:var(--accent);flex-shrink:0}
.tache-exemples button>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.tache-exemples strong{font-size:14px;font-weight:600}
.tache-exemples button>span>span{font-size:13px;color:var(--muted)}
.tache-frequence{grid-template-columns:repeat(3,1fr)}
.tache-jours{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;max-width:420px}
.tache-jours button{min-width:0;padding:0 2px}
@media(max-width:420px){.tache-frequence button{font-size:13px;padding:0 4px}}
/* Notifications de l'appareil (06/10/2026) */
.notif-carte{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px;margin:0 0 16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--bg)}
html:not(.dark) .notif-carte{background:#fff}
.notif-carte.active{border-color:color-mix(in srgb,var(--accent) 35%,var(--border))}
.notif-icone{width:38px;height:38px;border-radius:10px;display:flex;align-items:center;justify-content:center;flex-shrink:0;background:color-mix(in srgb,var(--accent) 10%,transparent);color:var(--accent)}
.notif-icone svg{width:19px;height:19px}
.notif-texte{flex:1;min-width:200px;display:flex;flex-direction:column;gap:3px}
.notif-titre{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}
.notif-pastille{padding:1px 8px;border-radius:var(--radius-full);font-size:11px;font-weight:500;background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
.notif-desc{font-size:13px;line-height:1.5;color:var(--muted)}
.notif-actions{display:flex;gap:6px}
.notif-reglages{flex-basis:100%;display:flex;flex-direction:column;border-top:1px solid color-mix(in srgb,var(--border) 70%,transparent);margin-top:2px}
.notif-reglage{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 2px;cursor:pointer}
.notif-reglage+.notif-reglage{border-top:1px solid color-mix(in srgb,var(--border) 45%,transparent)}
.notif-reglage-texte{display:flex;flex-direction:column;gap:2px;min-width:0}
.notif-reglage-titre{font-size:14px;font-weight:500}
.notif-reglage-desc{font-size:13px;line-height:1.45;color:var(--muted)}
.taches-page .notif-reglages{display:none}
@media(max-width:768px){.notif-carte>.btn,.notif-actions{margin-left:50px}}
/* ══ Projets — refonte « niveau Bibliothèque » (06/10/2026) ══ */
.proj-pastille{display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 5%,transparent);color:color-mix(in srgb,var(--fg) 70%,transparent);font-size:12px}
.proj-pastille svg{width:12px;height:12px}
.proj-stats{gap:6px}
.proj-carte{padding:0;gap:0;overflow:hidden;border-radius:18px;transition:border-color var(--dur-med),transform var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.proj-carte:hover{transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,.06)}}
.proj-carte-tete{position:relative;height:66px;margin:0;padding:0 12px;align-items:flex-start;justify-content:flex-end;background:color-mix(in srgb,var(--teinte) 24%,var(--bg))}
html.dark .proj-carte-tete{background:color-mix(in srgb,var(--teinte) 30%,var(--bg))}
.proj-carte-tete .proj-icone{position:absolute;left:14px;bottom:-24px;background:var(--bg);border:1px solid var(--border);box-shadow:0 2px 8px rgba(0,0,0,.06)}
html:not(.dark) .proj-carte-tete .proj-icone{background:#fff}
.proj-carte .project-del{margin-top:8px;background:color-mix(in srgb,var(--bg) 70%,transparent);border-radius:var(--radius-sm)}
.proj-carte-corps{display:flex;flex-direction:column;gap:5px;padding:32px 14px 14px}
.proj-carte-pied{margin-top:4px;justify-content:flex-start}
/* Détail */
.proj-hero{display:flex;align-items:center;gap:14px;padding:18px;margin:0 0 12px;border-radius:20px;background:color-mix(in srgb,var(--teinte) 14%,var(--bg))}
html.dark .proj-hero{background:color-mix(in srgb,var(--teinte) 22%,var(--bg))}
.proj-hero .proj-icone{background:var(--bg);box-shadow:0 2px 8px rgba(0,0,0,.06)}
html:not(.dark) .proj-hero .proj-icone{background:#fff}
.proj-hero .proj-titre{color:color-mix(in srgb,var(--teinte) 55%,var(--fg))}
.proj-hero .proj-pastille{background:color-mix(in srgb,var(--bg) 70%,transparent)}
.proj-nouvelle{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;height:48px;margin:0 0 16px;border:none;border-radius:var(--radius-full);background:#1f1f1f;color:#fff;font-size:15px;font-weight:500;cursor:pointer}
html.dark .proj-nouvelle{background:#f2f2f2;color:#111}
.proj-nouvelle svg{width:18px;height:18px}
@media(min-width:769px){.proj-nouvelle{width:auto;padding:0 26px;display:inline-flex}}
.proj-onglets{grid-template-columns:repeat(3,1fr);max-width:420px;margin:0 0 20px}
.proj-tuiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:10px}
@media(max-width:768px){.proj-tuiles{grid-template-columns:1fr 1fr;gap:8px}}
.proj-tuile{display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:12px;border:1px solid var(--border);border-radius:14px;background:var(--bg);color:var(--fg);text-align:left;cursor:pointer;transition:border-color var(--dur-fast)}
html:not(.dark) .proj-tuile{background:#fff}
@media(hover:hover){.proj-tuile:hover{border-color:color-mix(in srgb,var(--fg) 18%,transparent)}}
.proj-tuile-icone{display:flex;color:color-mix(in srgb,var(--fg) 55%,transparent)}
.proj-tuile-icone svg{width:16px;height:16px}
.proj-tuile-titre{font-size:14px;font-weight:500;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;width:100%}
.proj-tuile-sous{font-size:12px;color:var(--muted)}
/* ══ Planifiées — refonte (06/10/2026) ══ */
.notif-repliee{display:none}
.tache-cloche{width:40px;height:40px;color:var(--accent)}
.tache-cloche svg{width:20px;height:20px}
.tache-cloche.actif{background:color-mix(in srgb,var(--accent) 10%,transparent)}
.tache-prochaine{display:flex;flex-direction:column;gap:2px;padding:18px;margin:0 0 20px;border-radius:20px;background:color-mix(in srgb,var(--accent) 10%,var(--bg))}
html.dark .tache-prochaine{background:color-mix(in srgb,var(--accent) 18%,var(--bg))}
.tache-prochaine-label{font-size:13px;color:color-mix(in srgb,var(--accent) 80%,var(--fg))}
.tache-prochaine-quand{font-size:26px;font-weight:600;letter-spacing:-.02em;color:color-mix(in srgb,var(--accent) 45%,var(--fg))}
.tache-prochaine-titre{font-size:14px;color:color-mix(in srgb,var(--accent) 70%,var(--fg))}
.tache-section-tete{margin:0 2px 10px;font-size:15px;font-weight:600}
.taches-grille{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
@media(max-width:768px){.taches-grille{grid-template-columns:1fr;gap:10px}}
.tache-carte{display:flex;flex-direction:column;gap:9px;padding:14px 14px 12px;border:1px solid var(--border);border-radius:18px;background:var(--bg);min-width:0}
html:not(.dark) .tache-carte{background:#fff}
.tache-carte.en-pause .tache-heure-grande,.tache-carte.en-pause .tache-carte-titre,.tache-carte.en-pause .tache-jours-ronds{opacity:.5}
.tache-carte-haut{display:flex;align-items:center;gap:6px}
.tache-heure-grande{flex:1;font-size:26px;font-weight:600;letter-spacing:-.02em;line-height:1}
.tache-carte-titre{display:flex;align-items:center;gap:7px;border:none;background:none;padding:0;color:var(--fg);font-size:15px;font-weight:500;text-align:left;cursor:pointer;min-width:0}
.tache-point-titre{width:8px;height:8px;border-radius:50%;background:#e2603a;flex-shrink:0}
.tache-jours-ronds{display:flex;gap:5px}
.tache-jours-ronds span{width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:500;background:color-mix(in srgb,var(--fg) 5%,transparent);color:color-mix(in srgb,var(--fg) 45%,transparent)}
.tache-jours-ronds span.on{background:var(--fg);color:var(--bg)}
.tache-rythme{font-size:13px;color:var(--muted)}
.tache-carte-pied{display:flex;align-items:center;justify-content:space-between;gap:8px;padding-top:9px;border-top:1px solid var(--border);min-height:28px}
.tache-ouvrir{flex-shrink:0;border:none;background:none;padding:0;color:var(--accent);font-size:13px;font-weight:500;cursor:pointer}
.tache-section-tete{display:flex;align-items:center;gap:10px}
.tache-section-tete>span:first-child{flex:1}
.tache-section-tete .tache-compteur{flex:0 0 auto;font-weight:400}
/* ══ Premières pages Projets & Planifiées — refonte 2 (06/10/2026) : cartes sobres, même langage que la Bibliothèque ══ */
.projects-page .lib-outils,.taches-page .tache-section-tete{margin-bottom:14px}
.proj-grille{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.proj-grille,.taches-page{--carte:#fff}
html.dark .proj-grille,html.dark .taches-page{--carte:var(--bg)}
.proj-carte{gap:14px;padding:16px;border-radius:18px;background:linear-gradient(180deg,color-mix(in srgb,var(--teinte) 6%,var(--carte)) 0,var(--carte) 70px)!important;box-shadow:none}
html.dark .proj-carte{background:linear-gradient(180deg,color-mix(in srgb,var(--teinte) 11%,var(--carte)) 0,var(--carte) 70px)!important}
@media(hover:hover){.proj-carte:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--teinte) 35%,var(--border));box-shadow:0 10px 28px -12px rgba(0,0,0,.14)}}
.proj-carte-tete{position:static;height:auto;padding:0;margin:0;display:flex;align-items:center;justify-content:flex-start;gap:12px;background:none!important}
.proj-carte-tete .proj-icone{position:static;width:44px;height:44px;border-radius:13px;flex-shrink:0;border:none;box-shadow:none;background:color-mix(in srgb,var(--teinte) 14%,var(--carte))!important}
.proj-carte-tete .proj-icone svg{width:21px;height:21px}
.proj-carte-titres{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.proj-carte-nom{font-size:16px;font-weight:600;letter-spacing:-.01em}
.proj-carte-desc{font-size:13px}
.proj-carte .project-del{align-self:flex-start;margin:-6px -6px 0 0;width:32px;height:32px;background:none;border-radius:var(--radius-sm)}
@media(hover:hover){.proj-carte .project-del:hover{background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--danger)}}
.proj-carte .project-del svg{width:16px;height:16px}
.proj-carte-pied{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:0;padding-top:12px;border-top:1px solid var(--border)}
.proj-carte .proj-stats{gap:12px}
.proj-carte .proj-pastille{height:auto;padding:0;background:none;gap:5px;font-size:13px;color:var(--muted)}
.proj-carte .proj-pastille svg{width:14px;height:14px}
.proj-carte-quand{display:inline-flex;align-items:center;gap:4px;font-size:12px;color:var(--muted)}
.proj-carte-quand svg{width:13px;height:13px}
@media(max-width:768px){.proj-grille{gap:10px}.proj-carte{padding:14px;gap:12px}.proj-carte-tete .proj-icone{width:42px;height:42px}.proj-carte:hover{transform:none}}
/* Planifiées */
.taches-page .notif-carte{padding:12px 12px 12px 14px;border-radius:var(--radius-lg);gap:12px}
.taches-page .notif-icone{width:34px;height:34px;border-radius:10px}
.taches-page .notif-icone svg{width:17px;height:17px}
.taches-page .notif-titre{font-size:14px}
.taches-page .notif-desc{font-size:13px;line-height:1.45}
@media(max-width:768px){.taches-page .notif-carte>.btn,.taches-page .notif-actions{margin-left:46px}}
.tache-prochaine{flex-direction:row;align-items:center;gap:14px;padding:16px 18px;margin:0 0 22px;border:1px solid color-mix(in srgb,var(--accent) 20%,var(--border));border-radius:18px;background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 8%,var(--carte)) 0,var(--carte) 70%)!important}
html.dark .tache-prochaine{background:linear-gradient(120deg,color-mix(in srgb,var(--accent) 16%,var(--carte)) 0,var(--carte) 70%)!important}
.tache-prochaine-icone{width:46px;height:46px;border-radius:14px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 14%,var(--bg));color:var(--accent)}
.tache-prochaine-icone svg{width:22px;height:22px}
.tache-prochaine-texte{display:flex;flex-direction:column;gap:1px;min-width:0}
.tache-prochaine-label{font-size:12px;font-weight:500;color:var(--muted)}
.tache-prochaine-quand{font-size:21px;font-weight:600;letter-spacing:-.02em;color:var(--fg)}
.tache-prochaine-titre{font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.taches-grille{grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.tache-carte{gap:10px;padding:16px;border-radius:18px;transition:border-color var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.tache-carte:hover{border-color:color-mix(in srgb,var(--fg) 16%,transparent);box-shadow:0 10px 28px -14px rgba(0,0,0,.14)}}
.tache-heure-grande{font-size:24px}
.tache-carte-titre{font-size:15px;font-weight:600;letter-spacing:-.01em}
.tache-jours-ronds{gap:4px}
.tache-jours-ronds span{width:24px;height:24px;font-size:11px}
.tache-jours-ronds span.on{background:color-mix(in srgb,var(--accent) 14%,var(--bg));color:var(--accent);font-weight:600}
.tache-carte.en-pause .tache-jours-ronds span.on{background:color-mix(in srgb,var(--fg) 8%,transparent);color:var(--muted)}
.tache-carte-pied{padding-top:11px}
@media(max-width:768px){.tache-prochaine{padding:14px;gap:12px}.tache-prochaine-icone{width:42px;height:42px}.tache-prochaine-quand{font-size:19px}.taches-grille{gap:10px}.tache-carte{padding:14px}}
/* Pages vides Projets & Planifiées (06/10/2026) : même structure que les pages remplies */
.proj-premier{width:100%;display:flex;align-items:center;gap:14px;padding:16px;border:1.5px dashed color-mix(in srgb,var(--fg) 16%,transparent);border-radius:18px;background:var(--carte);color:var(--fg);text-align:left;cursor:pointer;transition:border-color var(--dur-med),background var(--dur-med)}
@media(hover:hover){.proj-premier:hover{border-color:color-mix(in srgb,var(--accent) 50%,transparent);background:color-mix(in srgb,var(--accent) 3%,var(--carte))}}
.proj-premier-icone{width:44px;height:44px;border-radius:13px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,var(--carte));color:var(--accent)}
.proj-premier-icone svg{width:20px;height:20px}
.proj-premier-texte{display:flex;flex-direction:column;gap:2px;min-width:0}
.proj-premier-titre{font-size:16px;font-weight:600;letter-spacing:-.01em}
.proj-premier-desc{font-size:13px;color:var(--muted)}
.lib-vide.tache-vide{display:block;text-align:left;padding:0}
.tache-vide .tache-exemples{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px;max-width:none;margin:0}
.tache-vide .tache-exemples button{gap:14px;padding:16px;border-radius:18px;background:var(--carte);transition:border-color var(--dur-med),box-shadow var(--dur-med)}
@media(hover:hover){.tache-vide .tache-exemples button:hover{border-color:color-mix(in srgb,var(--accent) 45%,transparent);box-shadow:0 10px 28px -14px rgba(0,0,0,.14)}}
.tache-vide .tache-exemples button>span:nth-child(2){flex:1}
.tache-vide .tache-exemples strong{font-size:15px;letter-spacing:-.01em}
.tache-exemple-icone{width:44px;height:44px;border-radius:13px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,var(--carte));color:var(--accent)}
.tache-exemple-icone svg{width:20px;height:20px}
.tache-exemple-plus{display:flex;color:var(--muted)}
.tache-exemple-plus svg{width:18px;height:18px}
@media(max-width:768px){.tache-vide .tache-exemples{grid-template-columns:1fr;gap:10px}.tache-vide .tache-exemples button{padding:14px}}
.settings-row select.reglage-fuseau{max-width:min(280px,52vw)}
@media(max-width:600px){.settings-row.reglage-horloge{flex-direction:column;align-items:stretch;gap:10px}.settings-row.reglage-horloge>div:first-child{flex:0 0 auto}.settings-row.reglage-horloge select,.settings-row.reglage-horloge select.reglage-fuseau{max-width:none;width:100%}}
/* Réglages en cartes (12/10/2026) : fuseau et format de l'heure restent sur UNE ligne, valeur à droite comme la langue. */
@media(max-width:768px){.settings-pro .page-col .card .settings-row.reglage-horloge{flex-direction:row;align-items:center;flex-wrap:nowrap;gap:12px}
.settings-pro .page-col .card .settings-row.reglage-horloge>div:first-child{flex:1 1 auto;min-width:0}
.settings-pro .page-col .card .settings-row.reglage-horloge select.reglage-choix{width:auto;max-width:50%;font-size:14px;flex-shrink:0}}
/* ══ Astra Code sur l'ordinateur (07/10/2026) ══ */
.cl-page .library-page{max-width:880px;margin:0 auto;width:100%}
.cl-carte{border:1px solid var(--border);border-radius:18px;background:var(--bg);padding:20px;margin:0 0 16px}
html:not(.dark) .cl-carte{background:#fff}
.cl-titre{font-size:19px;font-weight:600;letter-spacing:-.01em;margin:0 0 8px}
.cl-texte{font-size:14px;line-height:1.6;margin:0 0 10px}
.cl-muet{color:var(--muted);font-size:13px}
.cl-boutons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-top:12px}
.cl-liaison{max-width:560px;margin:24px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px}
.cl-liaison .cl-boutons{justify-content:center}
.cl-liaison{max-width:560px;padding:30px 32px 26px}
.cl-liaison .cl-titre{text-wrap:balance}
.cl-liaison-puces{display:inline-flex;gap:8px;font-size:13px;color:var(--muted)}
.cl-liaison-puces span{background:color-mix(in srgb,var(--fg) 6%,var(--bg));border-radius:var(--radius-full);padding:3px 12px}
.cl-liaison-code{font-family:var(--font-mono,ui-monospace,monospace)}
.cl-liaison-colonnes{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%;margin-top:14px;text-align:left}
.cl-liaison-colonnes>div{border-radius:14px;padding:14px 16px}
.cl-liaison-peut{background:color-mix(in srgb,var(--success) 9%,var(--bg))}
.cl-liaison-nepeut{background:color-mix(in srgb,var(--danger) 8%,var(--bg))}
.cl-liaison-colonnes strong{display:block;font-size:14px;margin-bottom:4px}
.cl-liaison-colonnes p{display:flex;gap:10px;margin:5px 0;font-size:14px;line-height:1.4}
.cl-liaison-peut p span{color:var(--success);font-weight:700}
.cl-liaison-nepeut p span{color:var(--danger);font-weight:700}
.cl-liaison-boutons{width:100%;flex-wrap:nowrap;margin-top:8px}
.cl-liaison-boutons .btn{min-height:46px;border-radius:12px}
.cl-liaison-boutons .btn-secondary{flex:1}
.cl-liaison-boutons .btn-primary{flex:2;background:var(--fg);color:var(--bg);font-weight:600}
@media(max-width:560px){.cl-liaison-colonnes{grid-template-columns:1fr}.cl-liaison{padding:24px 18px 20px}}
.cl-relie-page{display:flex;align-items:center;justify-content:center;height:100%}
.cl-relie{width:min(520px,92vw);text-align:center;display:flex;flex-direction:column;align-items:center;padding:24px 0 40px}
.cl-relie-coche{color:var(--success);position:relative;display:block;width:132px;height:132px;border-radius:50%;background:color-mix(in srgb,var(--success) 14%,var(--bg));animation:cl-relie-pop .3s cubic-bezier(.2,.8,.2,1) both}
.cl-relie-coche::before,.cl-relie-coche::after{content:"";position:absolute;border-radius:50%;border:2px solid color-mix(in srgb,var(--success) 25%,transparent)}
.cl-relie-coche::before{inset:-14px}.cl-relie-coche::after{inset:-30px;opacity:.55}
.cl-relie-titre{font-family:var(--font-display);font-size:34px;font-weight:500;letter-spacing:-.015em;margin:34px 0 0}
.cl-relie-texte{font-size:16px;color:var(--muted);margin:10px 0 0;max-width:400px;line-height:1.5}
.cl-relie-pastille{display:inline-flex;align-items:center;gap:8px;margin-top:20px;font-size:14px;color:var(--success);background:color-mix(in srgb,var(--success) 10%,var(--bg));border-radius:var(--radius-full);padding:6px 14px}
.cl-point-vert{width:8px;height:8px;border-radius:50%;background:var(--success)}
.cl-relie-progres{width:min(320px,80vw);height:4px;border-radius:2px;background:var(--border);overflow:hidden;margin-top:34px}
.cl-relie-progres i{display:block;height:100%;background:var(--accent);border-radius:2px;animation:cl-relie-barre 3s linear both}
.cl-relie-suite{font-size:13.5px;color:var(--muted);margin-top:10px}
.cl-relie-continuer{margin-top:12px;border:none;background:none;color:var(--accent);font:inherit;font-size:14px;font-weight:500;cursor:pointer;padding:6px 10px;border-radius:8px}
@keyframes cl-relie-pop{from{transform:scale(.6);opacity:0}to{transform:scale(1);opacity:1}}
@keyframes cl-relie-barre{from{width:0}to{width:100%}}
@media(prefers-reduced-motion:reduce){.cl-relie-coche{animation:none}.cl-relie-progres i{animation:none;width:100%}}
.cl-liaison-icone,.cl-ordi-icone{width:48px;height:48px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--accent) 12%,var(--bg));color:var(--accent);flex-shrink:0}
.cl-liaison-icone svg,.cl-ordi-icone svg{width:22px;height:22px}
.cl-etapes{margin:6px 0 12px 20px;display:flex;flex-direction:column;gap:12px;font-size:14px;line-height:1.5}
.cl-telecharger{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:8px}
.cl-autres{display:flex;gap:10px;font-size:13px}
.cl-autres a{color:var(--muted)}
.cl-ordi-tete{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.cl-ordi-nom{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cl-ordi-nom strong{font-size:16px}
.cl-etat{font-size:13px;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.cl-etat::before{content:'';width:8px;height:8px;border-radius:50%;background:color-mix(in srgb,var(--fg) 25%,transparent);flex-shrink:0}
.cl-etat.en-ligne::before{background:#2ea36b}
.cl-projets{display:flex;flex-direction:column;gap:8px}
.cl-projet{display:flex;align-items:center;gap:6px}
.cl-projet-ouvrir{flex:1;min-width:0;display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:14px;background:none;color:var(--fg);text-align:left;cursor:pointer}
@media(hover:hover){.cl-projet-ouvrir:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}}
.cl-projet-ouvrir:disabled{opacity:var(--inactif);cursor:default}
.cl-projet-icone{display:flex;color:var(--accent)}
.cl-projet-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cl-projet-texte .cl-muet{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
.cl-projet-action{font-size:13px;font-weight:500;color:var(--accent);flex-shrink:0}
.cl-projet-retirer{width:34px;height:34px;color:var(--muted)}
.cl-choisir{display:flex;align-items:center;gap:8px;padding:12px 14px;border:1.5px dashed color-mix(in srgb,var(--fg) 16%,transparent);border-radius:14px;background:none;color:var(--fg);font-size:14px;cursor:pointer;text-align:left}
@media(hover:hover){.cl-choisir:hover:not(:disabled){border-color:color-mix(in srgb,var(--accent) 50%,transparent)}}
.cl-choisir:disabled{opacity:var(--inactif);cursor:default}
.cl-choisir svg{width:16px;height:16px;flex-shrink:0;color:var(--accent)}
.cl-sessions{padding:6px}
.cl-session{width:100%;display:flex;align-items:center;gap:10px;padding:10px 12px;border:none;border-radius:var(--radius-md);background:none;color:var(--fg);text-align:left;cursor:pointer}
@media(hover:hover){.cl-session:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.cl-session-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cl-session-texte strong{font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-badge.attend{background:color-mix(in srgb,var(--warn) 18%,transparent);color:color-mix(in srgb,var(--warn) 70%,var(--fg))}
.cl-badge{font-size:12px;padding:2px 8px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--accent) 12%,transparent);color:var(--accent)}
.cl-ajouter-ordi summary{cursor:pointer;color:var(--muted);font-size:14px;margin:6px 0 12px}
.cl-session-barre .cl-mode{margin-left:auto;height:36px;border:1px solid var(--border);border-radius:10px;background:var(--bg);color:var(--fg);padding:0 10px;font:inherit;font-size:14px}
.cl-fil{flex:1;overflow-y:auto;padding:16px 20px 24px;display:flex;flex-direction:column;gap:12px;max-width:880px;margin:0 auto;width:100%}
.cl-contexte{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);flex-wrap:wrap}
.cl-contexte svg{width:15px;height:15px}
.cl-accueil{padding:24px 0 8px}
.cl-msg-user{align-self:flex-end;max-width:80%;padding:10px 14px;border-radius:18px 18px 6px 18px;background:color-mix(in srgb,var(--fg) 6%,var(--bg));white-space:pre-wrap;font-size:15px;line-height:1.5}
.cl-msg-astra{display:flex;flex-direction:column;gap:6px}
.cl-md{font-size:15px;line-height:1.6}
.cl-md p{margin:0 0 8px}
/* Même mise en forme que le Chat (.msg-content) : sans elle, la remise à zéro globale supprimait le retrait des listes (puces coupées à gauche). */
.cl-md{overflow-wrap:break-word;word-break:break-word}
.cl-md ul,.cl-md ol{padding-left:22px;margin:0 0 10px}
.cl-md li{margin-bottom:4px}
.cl-md li>p{margin-bottom:4px}
.cl-md h1,.cl-md h2,.cl-md h3,.cl-md h4{font-family:var(--font-display);font-weight:600;letter-spacing:-.01em;line-height:1.3;margin:14px 0 6px}
.cl-md h1{font-size:1.28em}.cl-md h2{font-size:1.18em}.cl-md h3,.cl-md h4{font-size:1.06em}
.cl-md strong{font-weight:600}
.cl-md a{color:var(--accent);text-decoration:underline;text-underline-offset:2px}
.cl-md code{font-family:var(--font-mono);font-size:.84em;background:var(--surface);padding:2px 6px;border-radius:5px;border:1px solid var(--border);word-break:break-word}
.cl-md pre{font-family:var(--font-mono);font-size:.82em;background:var(--surface);padding:12px 14px;border-radius:var(--radius-sm);border:1px solid var(--border);overflow-x:auto;margin:0 0 10px;line-height:1.5}
.cl-md pre code{border:0;padding:0;background:none;font-size:1em;word-break:normal}
.cl-md blockquote{border-left:3px solid var(--border);padding-left:14px;margin:0 0 10px;color:var(--muted)}
.cl-md hr{border:0;border-top:1px solid var(--border);margin:14px 0}
.cl-md table{width:100%;border-collapse:collapse;margin:10px 0;font-size:.9em;display:block;overflow-x:auto}
.cl-md td,.cl-md th{border:1px solid var(--border);padding:6px 10px;text-align:left}
.cl-md th{background:var(--surface);font-weight:600}
/* Étapes d'Astra (08/10/2026), calquées sur Claude Code (bureau) : lignes de résumé grises sans boîte ; dépliées, une
   liste reliée par un trait fin (nom de l'outil + argument sur fond gris + sortie) ; modifications avec numéros de ligne. */
.cl-etapes-fil{display:flex;flex-direction:column;gap:2px;margin:2px 0}
.cl-etape{position:relative}
.cl-etape-tete{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 0;border:none;background:none;color:var(--muted);font:inherit;font-size:14px;text-align:left;cursor:pointer}
@media(hover:hover){.cl-etape-tete:not(:disabled):hover{color:var(--fg)}}
.cl-etape-tete:disabled{cursor:default}
.cl-etape-resume{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-etape-verbe{color:inherit}
.cl-etape-fichier{color:var(--fg);text-decoration:underline;text-decoration-color:color-mix(in srgb,var(--fg) 25%,transparent);text-underline-offset:3px}
.cl-etape-meta{flex-shrink:0;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.cl-etape-meta .plus,.cl-diff-ligne.plus .cl-diff-signe{color:#1f8a52}.cl-etape-meta .moins,.cl-etape-meta.moins,.cl-diff-ligne.moins .cl-diff-signe{color:var(--danger)}
.cl-etape-chevron{display:flex;flex-shrink:0}
.cl-etape-chevron svg{width:13px;height:13px;transition:transform var(--dur-med)}
.cl-etape.ouvert>.cl-etape-tete .cl-etape-chevron svg{transform:rotate(90deg)}
.cl-rond-anime{flex-shrink:0;width:11px;height:11px;border-radius:50%;border:1.5px solid color-mix(in srgb,var(--muted) 30%,transparent);border-top-color:var(--muted);animation:cl-tourne .8s linear infinite}
@keyframes cl-tourne{to{transform:rotate(360deg)}}
.cl-etape.attente>.cl-etape-tete .cl-etape-resume{background:linear-gradient(90deg,var(--muted) 0%,var(--muted) 40%,var(--fg) 50%,var(--muted) 60%,var(--muted) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cl-reflet 1.8s linear infinite}
@keyframes cl-reflet{from{background-position:100% 0}to{background-position:-150% 0}}
/* Activité d'Astra (refonte du 10/10/2026) : une ligne par série ; dépliée, lignes fines, cartes fichier et terminal. */
.cl-activite{display:flex;flex-direction:column}
.cl-activite-tete{display:flex;align-items:center;gap:8px;width:100%;min-height:34px;padding:4px 8px;margin:0;border:none;border-radius:var(--radius-sm);background:none;color:var(--muted);font:inherit;font-size:14px;text-align:left;cursor:pointer;box-sizing:border-box}
@media(hover:hover){.cl-activite-tete:hover{background:color-mix(in srgb,var(--fg) 4%,transparent);color:var(--fg)}}
.cl-activite-resume{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-activite-meta{flex-shrink:0;font-size:13px;color:color-mix(in srgb,var(--muted) 80%,transparent);font-variant-numeric:tabular-nums}
.cl-activite.ouvert>.cl-activite-tete .cl-etape-chevron svg{transform:rotate(90deg)}
.cl-activite.attente>.cl-activite-tete .cl-activite-resume{background:linear-gradient(90deg,var(--muted) 0%,var(--muted) 40%,var(--fg) 50%,var(--muted) 60%,var(--muted) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cl-reflet 1.8s linear infinite}
.cl-activite.ok>.cl-activite-tete .cl-outil-icone{color:#1f8a52;opacity:.9}
.cl-activite-detail{display:flex;flex-direction:column;gap:8px;margin:4px 0 6px}
.cl-activite-tete .cl-pastilles-diff{display:inline-flex;gap:3px;font-size:11px;font-weight:600}
.cl-pastilles-diff .plus,.cl-pastilles-diff .moins{padding:0 5px;border-radius:5px;line-height:17px}
.cl-pastilles-diff .plus{background:color-mix(in srgb,#1f8a52 16%,transparent);color:#1f7a49}
.cl-pastilles-diff .moins{background:color-mix(in srgb,var(--danger) 14%,transparent);color:var(--danger)}
.sheet.cl-feuille-act{max-width:640px;padding-left:16px;padding-right:16px}
.cl-feuille-titres{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cl-feuille-titres small{font-size:13px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-feuille-corps{display:flex;flex-direction:column;gap:8px;max-height:min(68vh,620px);overflow-y:auto;padding:0 2px 6px;overscroll-behavior:contain}
.cl-outils-liste{display:flex;flex-direction:column;margin-left:14px;padding-left:6px;border-left:1.5px solid var(--border)}
.cl-outil-icone{width:14px;height:14px;flex-shrink:0;opacity:.75}
.cl-outil-tete{display:flex;align-items:center;gap:9px;width:100%;min-width:0;min-height:32px;padding:0 8px;margin:0;border:none;border-radius:var(--radius-sm);background:none;color:var(--muted);font:inherit;font-size:14px;text-align:left;cursor:pointer;box-sizing:border-box}
.cl-outil-tete:disabled{cursor:default}
@media(hover:hover){.cl-outil-tete:not(:disabled):hover{background:color-mix(in srgb,var(--fg) 4%,transparent);color:var(--fg)}}
.cl-outil-nom{flex-shrink:0;color:inherit}
.cl-outil-arg{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:13px;color:var(--fg);font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}
.cl-outil-meta{flex-shrink:0;font-size:13px;color:color-mix(in srgb,var(--muted) 85%,transparent)}
.cl-outil.echec .cl-outil-tete{color:var(--danger)}
.cl-outil-statut{flex-shrink:0;font-size:12px;color:var(--danger)}
.cl-outil-chevron{display:flex;opacity:0;transition:opacity var(--dur-fast)}
.cl-outil.vu .cl-outil-chevron{opacity:1}
@media(hover:hover){.cl-outil-tete:hover .cl-outil-chevron{opacity:1}}
.cl-outil.vu .cl-outil-chevron svg{transform:rotate(90deg)}
@media(hover:none){.cl-outil-chevron{opacity:.6}}
.cl-outil-sortie{margin:2px 0 8px;padding:8px 10px;max-height:320px;overflow:auto;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--fg) 4%,transparent);font-family:var(--font-mono);font-size:12px;line-height:1.55;color:var(--muted);white-space:pre-wrap;word-break:break-word;font-variant-ligatures:none}
.cl-act-carte{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:var(--bg)}
.cl-carte-tete{display:flex;align-items:center;gap:9px;width:100%;min-height:42px;padding:0 14px;border:none;background:color-mix(in srgb,var(--fg) 2.5%,var(--bg));color:var(--fg);font:inherit;font-size:14px;text-align:left;cursor:pointer}
.cl-act-carte.ouvert>.cl-carte-tete{border-bottom:1px solid var(--border)}
.cl-carte-tete:disabled{cursor:default}
@media(hover:hover){.cl-carte-tete:not(:disabled):hover{background:color-mix(in srgb,var(--fg) 5%,var(--bg))}}
.cl-carte-tete .cl-outil-icone{opacity:.7}
.cl-act-carte.ouvert>.cl-carte-tete .cl-etape-chevron svg{transform:rotate(90deg)}
.cl-carte-tete .cl-etape-chevron{color:var(--muted)}
.cl-carte-verbe{flex-shrink:0;color:var(--muted)}
.cl-carte-chemin{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:13px}
.cl-carte-dossier{color:var(--muted)}
.cl-carte-fichier{font-weight:500}
.cl-badge-nouveau{flex-shrink:0;padding:1px 8px;border-radius:var(--radius-full);background:color-mix(in srgb,#2ea36b 14%,transparent);color:#1f8a52;font-size:12px;font-weight:500}
.cl-carte-commande{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:13px;font-variant-ligatures:none}
.cl-invite{color:var(--muted);opacity:.7}
.cl-statut-pastille{flex-shrink:0;padding:2px 9px;border-radius:var(--radius-full);font-size:12px;font-weight:500;white-space:nowrap}
.cl-statut-pastille.ok{background:color-mix(in srgb,#2ea36b 14%,transparent);color:#1f8a52}
.cl-statut-pastille.echec{background:color-mix(in srgb,var(--danger) 13%,transparent);color:var(--danger)}
.cl-carte-duree{flex-shrink:0;font-size:13px;color:var(--muted);font-variant-numeric:tabular-nums}
.cl-act-carte.echec{border-color:color-mix(in srgb,var(--danger) 30%,var(--border))}
.cl-act-carte.echec>.cl-carte-tete{background:color-mix(in srgb,var(--danger) 5%,var(--bg))}
.cl-terminal{margin:0;padding:10px 16px 12px;max-height:340px;overflow:auto;background:#1c1c1f;color:#d4d4d8;font-family:var(--font-mono);font-size:12px;line-height:1.65;white-space:pre-wrap;word-break:break-word;font-variant-ligatures:none}
.cl-act-carte.echec .cl-terminal{color:#fca5a5}
.cl-terminal-plus{display:inline;padding:0;border:none;background:none;color:#a1a1aa;font:inherit;text-decoration:underline;cursor:pointer}
.cl-carte-erreur{margin:0;padding:10px 14px;font-family:var(--font-mono);font-size:12px;line-height:1.55;color:var(--danger);white-space:pre-wrap;word-break:break-word}
.cl-act-carte .cl-diff{max-height:420px}
@media(max-width:768px){.cl-activite-tete{min-height:36px}.cl-outil-tete{min-height:40px}.cl-carte-tete{min-height:44px;padding:0 12px;gap:8px}.cl-carte-verbe{display:none}.cl-carte-duree{display:none}.cl-terminal{padding:10px 12px;font-size:12px}}
.cl-outil.echec .cl-outil-sortie{color:#b54141}
.cl-outil-plus{display:inline;padding:0;border:none;background:none;color:var(--muted);font:inherit;text-decoration:underline;cursor:pointer}
.cl-etape-detail{margin:4px 0 8px;border:1px solid var(--border);border-radius:10px;overflow:hidden;background:var(--surface)}
.cl-detail-entete{padding:7px 12px;border-bottom:1px solid var(--border);font-family:var(--font-mono);font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-diff{max-height:380px;overflow:auto;padding:4px 0;font-family:var(--font-mono);font-size:12px;line-height:1.6;font-variant-ligatures:none;font-feature-settings:"liga" 0,"calt" 0}
.cl-diff-ligne{display:flex;min-width:max-content}
.cl-diff-plus{display:block;width:100%;padding:7px 12px;border:none;border-top:1px solid var(--border);background:none;color:var(--muted);font:inherit;font-size:13px;text-align:left;cursor:pointer}
@media(hover:hover){.cl-diff-plus:hover{color:var(--fg);background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.cl-diff-num{flex-shrink:0;width:44px;padding-right:10px;text-align:right;color:color-mix(in srgb,var(--muted) 70%,transparent);user-select:none;-webkit-user-select:none}
.cl-diff-signe{flex-shrink:0;width:16px;color:var(--muted);user-select:none;-webkit-user-select:none}
.cl-diff-texte{white-space:pre;padding-right:16px}
.cl-diff-ligne.plus{background:color-mix(in srgb,#2ea36b 13%,transparent)}
.cl-diff-ligne.moins{background:color-mix(in srgb,var(--danger) 12%,transparent)}
.cl-diff-ligne.plus .cl-diff-num{color:#1f8a52}.cl-diff-ligne.moins .cl-diff-num{color:var(--danger)}
@media(max-width:768px){.cl-diff-num{width:34px;padding-right:6px}}
/* Carte de demande d'accord (commande, modification proposée) : bloc de code simple. */
.cl-sortie{margin:0;padding:10px 12px;max-height:340px;overflow:auto;font-family:var(--font-mono);font-size:12px;line-height:1.55;white-space:pre-wrap;word-break:break-word;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--fg) 5%,transparent);font-variant-ligatures:none}
pre.cl-diff{margin:0;padding:8px 0;border-radius:var(--radius-sm);background:color-mix(in srgb,var(--fg) 4%,transparent);white-space:pre-wrap;word-break:break-word}
pre.cl-diff>span{display:block;padding:0 12px}
pre.cl-diff>.plus{color:#1f6f45;background:color-mix(in srgb,#2ea36b 12%,transparent)}
pre.cl-diff>.moins{color:#a93434;background:color-mix(in srgb,var(--danger) 11%,transparent)}
.dark pre.cl-diff>.plus{color:#6fd39d}.dark pre.cl-diff>.moins{color:#f08a8a}
/* Récapitulatif « Fichiers modifiés » sous la réponse finale. */
.cl-recap-fichiers{margin:6px 0 2px;border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:var(--surface)}
.cl-recap-titre{display:flex;align-items:center;gap:6px;padding:8px 12px;font-size:13px;font-weight:600;color:var(--muted);border-bottom:1px solid var(--border)}
.cl-recap-titre span{font-weight:500;padding:0 6px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 7%,transparent);font-variant-numeric:tabular-nums}
/* ── Fichiers du projet d'une session (17/10/2026) : arbre, aperçu à côté, comme le Chat ── */
.cl-session-page{position:relative}
@media(min-width:769px){.cl-session-page.avec-art>*:not(.art-panel){margin-right:var(--art-w,0px);transition:margin-right var(--dur-lent)}.cl-session-page.avec-art>.cl-fil,.cl-session-page.avec-art>.cl-saisie-zone{width:auto}}
.cl-fichiers-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px}
@media(max-width:560px){.cl-fichiers-btn{min-width:40px;min-height:40px;padding:0}}
.cl-fichiers-btn.actif{background:var(--surface-hover);color:var(--fg)}
.cl-autorisation-ligne{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:6px 0;border-top:1px solid var(--border)}.cl-autorisation-ligne code{overflow-wrap:anywhere;font-size:12.5px}
@media(max-width:560px){.cl-autorisations-btn{display:none}}
.cl-fichiers-btn svg{width:16px;height:16px}
@media(max-width:560px){.cl-fichiers-lib{display:none}}
.cl-recap-ouvrir{width:100%;background:none;border:0;text-align:left;font:inherit;font-size:13px;color:inherit;cursor:pointer}
@media(hover:hover){.cl-recap-ouvrir:hover{background:var(--surface-hover)}}
.oc-ouvrir{margin-top:8px}
.fp-arbre{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;background:var(--surface)}
.fp-dossier-carte{border-radius:14px;background:linear-gradient(180deg,color-mix(in srgb,#d9a441 9%,var(--surface)),var(--surface))}
.fp-dossier-tete{display:flex;align-items:center;gap:12px;padding:12px 14px}
.fp-dossier-ico{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:color-mix(in srgb,#d9a441 20%,transparent);color:#b9831f;flex:none}
.fp-dossier-ico svg{width:20px;height:20px}
.fp-dossier-titre{display:flex;flex-direction:column;min-width:0;flex:1;line-height:1.3}
.fp-dossier-titre strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp-dossier-titre small{font-size:12px;color:var(--muted)}
.fp-dossier-ouvrir{border:1px solid var(--border);background:var(--surface);color:var(--fg);border-radius:var(--radius-sm);padding:6px 12px;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap;min-height:34px}
@media(hover:hover){.fp-dossier-ouvrir:hover{background:var(--surface-hover)}}
.fp-dossier-suite{color:var(--muted)}
.fp-tiroir .viewer-body{display:block;overflow:hidden}
.fp-tete{padding:12px 12px 8px;border-bottom:1px solid var(--border);display:flex;flex-direction:column;gap:8px}
.fp-titre{display:flex;align-items:center;gap:8px;font-weight:600;font-size:14px;min-width:0}
.fp-titre>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp-compte{margin-left:auto;font-weight:400;color:var(--muted);font-size:12px;white-space:nowrap}
.fp-outils{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.fp-bouton{border:1px solid var(--border);background:var(--surface);color:var(--fg);border-radius:var(--radius-sm);padding:5px 10px;font-size:12px;cursor:pointer;min-height:30px}
@media(hover:hover){.fp-bouton:hover:not(:disabled){background:var(--surface-hover)}}
.fp-bouton:disabled{opacity:var(--inactif);cursor:default}
.fp-ignores{margin-left:auto;font-size:12px;color:var(--muted);display:inline-flex;gap:6px;align-items:center;cursor:pointer}
.fp-recherche{width:100%;box-sizing:border-box;border:1px solid var(--border);border-radius:10px;padding:8px 10px;background:var(--bg);color:var(--fg);font:inherit;font-size:13px}
.fp-liste{flex:1;min-height:0;overflow:auto;padding:6px 6px 16px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start}
.fp-ligne{display:flex;align-items:center;gap:6px;width:100%;border:0;background:none;color:var(--fg);font:inherit;font-size:13px;padding:6px 10px;border-radius:var(--radius-sm);cursor:pointer;text-align:left;min-height:34px}
@media(hover:hover){.fp-ligne:hover{background:var(--surface-hover)}}
.fp-ligne.actif{background:color-mix(in srgb,var(--accent,#2f7fe0) 14%,transparent)}
.fp-ligne.ignore{opacity:.5}
.fp-chev,.fp-chev-cale{display:inline-flex;width:12px;flex:none;transition:transform var(--dur-med)}
.fp-chev svg{width:12px;height:12px}
.fp-chev.ouvert{transform:rotate(90deg)}
.fp-ico{display:inline-flex;flex:none}
.fp-ico svg{width:15px;height:15px}
.fp-ico-dossier{color:#d9a441}
.fp-ico-page{color:#2f7fe0}
.fp-ico-image{color:#2a9d6b}
.fp-ico-code{color:var(--muted)}
.fp-nom{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp-nb{font-size:11px;color:var(--muted);background:var(--surface-hover);border-radius:var(--radius-full);padding:0 7px}
.fp-point{width:6px;height:6px;border-radius:50%;background:var(--accent,#2f7fe0);flex:none}
.fp-chemin{font-size:11px;color:var(--muted);max-width:45%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fp-vide{display:flex;flex-direction:column;align-items:center;gap:8px;text-align:center;padding:48px 24px;color:var(--muted)}
.fp-vide-ico svg{width:44px;height:44px;opacity:.5}
.fp-vide strong{color:var(--fg)}
.fp-vide p{margin:0;font-size:13px;line-height:1.5}
.fp-vide-dossier,.fp-erreur,.fp-charge{font-size:12px;color:var(--muted);padding:4px 10px}
.fp-erreur{color:#c0392b}
.fp-tiroir .art-corps-od{padding:0}
.cl-recap-ligne{display:flex;align-items:center;gap:8px;padding:7px 12px;font-size:13px}
.cl-recap-ligne+.cl-recap-ligne{border-top:1px solid color-mix(in srgb,var(--border) 60%,transparent)}
.cl-recap-ligne svg{width:13px;height:13px;flex-shrink:0;color:var(--muted)}
.cl-recap-chemin{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:13px;font-variant-ligatures:none}
.cl-recap-badge{flex-shrink:0;font-size:11px;padding:1px 7px;border-radius:var(--radius-full);background:color-mix(in srgb,#2ea36b 13%,transparent);color:#1f8a52}
.cl-recap-badge.moins{background:color-mix(in srgb,var(--danger) 12%,transparent);color:var(--danger)}
.cl-recap-compte{flex-shrink:0;font-size:12px;font-variant-numeric:tabular-nums}
.cl-recap-compte .plus{color:#1f8a52}.cl-recap-compte .moins{color:var(--danger)}
.dark .cl-diff-ligne.plus{background:color-mix(in srgb,#2ea36b 18%,transparent)}.dark .cl-diff-ligne.moins{background:color-mix(in srgb,var(--danger) 18%,transparent)}
.cl-accord{border:1px solid var(--border);border-radius:20px;padding:16px 18px 14px;background:var(--surface);box-shadow:0 6px 22px -12px rgba(0,0,0,.22)}
.cl-accord-titre{display:inline-flex;align-items:center;height:24px;padding:0 10px;border-radius:var(--radius-full);font-size:12px;font-weight:600;background:color-mix(in srgb,var(--warn) 18%,transparent);color:color-mix(in srgb,var(--warn) 70%,var(--fg));margin-bottom:8px}
.cl-accord-resume{font-size:16px;font-weight:600;margin-bottom:10px;word-break:break-word}
.cl-accord-note{margin:8px 0 0;font-size:13px;color:var(--muted)}
.cl-accord-boutons{flex-wrap:wrap;margin-top:14px}
.cl-accord-boutons .btn{min-height:42px;padding:0 18px;border-radius:12px;font-weight:500}
.cl-accord-boutons .btn-primary{background:var(--fg);color:var(--bg);font-weight:600}
.cl-accord-refus{margin-left:auto;color:var(--danger)}
@media(max-width:768px){.cl-accord-boutons{flex-direction:column;align-items:stretch}.cl-accord-boutons .btn{min-height:48px;justify-content:center}.cl-accord-refus{margin-left:0}}
.cl-accord .cl-sortie,.cl-accord .cl-diff{border:1px solid var(--border);border-radius:10px;max-height:220px}
.cl-plan{border:1px solid var(--border);border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;font-size:14px}
.cl-plan strong{font-size:13px;color:var(--muted);font-weight:600;margin-bottom:2px}
.cl-plan-etape{display:flex;gap:8px}
.cl-plan-etape.done{color:var(--muted);text-decoration:line-through}
.cl-plan-etape.doing{font-weight:600}
.cl-erreur{padding:10px 14px;border-radius:var(--radius-md);background:color-mix(in srgb,var(--danger) 9%,var(--bg));color:#b03030;font-size:14px}
.cl-statut{font-size:13px;color:var(--muted);text-align:center}
.cl-travaille{display:flex;align-items:center;gap:8px;min-height:34px;padding:0 8px;font-size:14px;color:var(--muted)}
.cl-travaille:not(.attend) .cl-travaille-texte{background:linear-gradient(90deg,var(--muted) 0%,var(--muted) 40%,var(--fg) 50%,var(--muted) 60%,var(--muted) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cl-reflet 1.8s linear infinite}
@media(hover:none){.cl-travaille .cl-echap{display:none}}
.cl-point-anime{width:8px;height:8px;border-radius:50%;background:var(--accent);animation:cl-pulse 1.2s ease-in-out infinite;flex-shrink:0}
@keyframes cl-pulse{50%{opacity:.25}}
/* Étapes d'une session OpenCode */
.oc-etape{margin:6px 0;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);overflow:hidden}
.oc-etape.erreur{border-color:color-mix(in srgb,var(--danger) 45%,var(--border))}
.oc-etape-tete{display:flex;align-items:center;gap:10px;width:100%;min-height:38px;padding:7px 12px;border:0;background:none;color:var(--fg);font:inherit;font-size:14px;text-align:left;cursor:pointer}
@media(hover:hover){.oc-etape-tete:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.oc-etape-etat{flex-shrink:0;width:16px;text-align:center;font-size:13px;color:var(--muted)}
.oc-etape.ok .oc-etape-etat{color:#1f8a52}.oc-etape.erreur .oc-etape-etat{color:var(--danger)}
.oc-etape-nom{flex-shrink:0;font-weight:600}
.oc-etape-cible{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-family:var(--font-mono);font-size:13px}
.oc-etape-detail{padding:8px 10px 10px;border-top:1px solid var(--border);max-height:360px;overflow:auto}
.oc-etape-detail .cl-sortie{border:0;padding:6px 2px}
/* Une ligne pour tout le travail (PC et téléphone) : la tâche en cours + chrono ; un toucher déplie la liste de toutes les tâches. */
.cl-msg-astra:empty{display:none}
.oc-activite{display:flex;flex-direction:column;gap:8px;margin:2px 0}
.oc-activite-tete{display:flex;align-items:center;gap:8px;align-self:flex-start;max-width:100%;min-height:36px;padding:2px 0;border:0;background:none;color:var(--muted);font:inherit;font-size:16px;text-align:left;cursor:pointer}
@media(hover:hover){.oc-activite-tete:hover{color:var(--fg)}}
.oc-activite-duree{color:color-mix(in srgb,var(--muted) 70%,transparent);font-variant-numeric:tabular-nums}
.oc-activite-tete .cl-etape-chevron svg{width:15px;height:15px}
.oc-activite.ouvert>.oc-activite-tete .cl-etape-chevron svg{transform:rotate(90deg)}
.oc-activite.attente>.oc-activite-tete .oc-activite-titre{background:linear-gradient(90deg,var(--muted) 0%,var(--muted) 40%,var(--fg) 50%,var(--muted) 60%,var(--muted) 100%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:cl-reflet 1.8s linear infinite}
@media(prefers-reduced-motion:reduce){.oc-activite.attente>.oc-activite-tete .oc-activite-titre{animation:none;color:var(--muted);background:none}}
.oc-activite-liste{border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;background:var(--surface)}
.oc-activite-liste .oc-etape{margin:0;border:0;border-radius:0;border-top:1px solid var(--border);background:none}
.oc-activite-liste .oc-etape:first-child{border-top:0}
.oc-activite-liste .oc-etape-tete{min-height:48px;padding:0 16px;gap:10px;font-size:15px;color:var(--fg)}
.oc-activite-liste .oc-etape.ok .oc-etape-etat{display:none}
.oc-activite-liste .oc-etape-nom{font-weight:400;color:var(--muted)}
.oc-activite-liste .oc-etape-cible{flex:0 1 auto;color:var(--fg);font-family:inherit;font-size:inherit;opacity:1}
.oc-activite-liste .oc-etape-tete::after{content:"›";margin:0 0 0 2px;color:var(--muted);font-size:20px;line-height:1}
.oc-activite-liste .oc-etape-detail{padding:8px 14px 12px}
.oc-diff .oc-plus{display:block;background:color-mix(in srgb,#2ea36b 13%,transparent)}
.oc-diff .oc-moins{display:block;background:color-mix(in srgb,var(--danger) 12%,transparent)}
.oc-reflexion{margin:4px 0;font-size:13px;color:var(--muted)}
.oc-reflexion summary{cursor:pointer}
.oc-question-bloc{margin-bottom:8px}
.cl-saisie-zone{position:relative;padding:10px 20px 16px;max-width:880px;margin:0 auto;width:100%}
/* Menu des commandes « / » (16/10/2026) : liste au-dessus de la carte de saisie, comme Claude Code. */
.cl-cmd-menu{position:absolute;left:20px;right:20px;bottom:calc(100% - 2px);z-index:30;padding:6px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 12px 36px rgba(0,0,0,.12);animation:pb-pop .14s ease-out;transform-origin:bottom center}
.cl-cmd-defile{max-height:min(320px,42vh);overflow-y:auto;overscroll-behavior:contain}
.cl-cmd-ligne{display:flex;align-items:baseline;gap:14px;width:100%;padding:9px 12px;border:0;border-radius:10px;background:none;text-align:left;color:var(--fg);cursor:pointer;font-family:inherit}
.cl-cmd-ligne.sel{background:color-mix(in srgb,var(--accent) 11%,transparent)}
.cl-cmd-nom{min-width:92px;font-family:ui-monospace,'JetBrains Mono',Menlo,Consolas,monospace;font-size:14px;font-weight:500;color:color-mix(in srgb,var(--accent) 80%,var(--fg))}
.cl-cmd-desc{font-size:14px;color:var(--muted)}
.cl-cmd-pied{display:flex;gap:16px;margin-top:4px;padding:8px 12px 4px;border-top:1px solid var(--border);font-size:12px;color:var(--muted)}
.cl-cmd-pied kbd{margin-right:4px;padding:1px 6px;border:1px solid var(--border);border-radius:6px;background:var(--bg);font-family:inherit;font-weight:600;color:var(--fg)}
.cl-lanceur-bas .cl-cmd-menu{left:0;right:0;bottom:calc(100% + 8px)}
@media(max-width:768px){.cl-cmd-menu{left:12px;right:12px}.cl-cmd-ligne{flex-direction:column;gap:2px}.cl-cmd-nom{min-width:0}.cl-cmd-pied{display:none}}
@media(prefers-reduced-motion:reduce){.cl-cmd-menu{animation:none}}
.cl-saisie{display:flex;align-items:flex-end;gap:8px;border:1px solid var(--border);border-radius:20px;padding:8px 8px 8px 14px;background:var(--bg);box-shadow:0 6px 20px -12px rgba(0,0,0,.18)}
.cl-saisie:focus-within{border-color:var(--fg);box-shadow:var(--shadow-md)}   /* comme la barre du Chat */
.cl-saisie textarea{flex:1;border:none;outline:none;resize:none;background:none;color:var(--fg);font:inherit;font-size:15px;line-height:1.5;max-height:200px;padding:6px 0}
.cl-envoyer{display:inline-flex!important;align-items:center;justify-content:center;width:40px;height:40px;min-width:40px;flex-shrink:0;padding:0!important;border-radius:50%!important;line-height:0}
.cl-envoyer svg{width:18px;height:18px}
.cl-stop{display:inline-flex;align-items:center;gap:8px}
.cl-carre{width:10px;height:10px;border-radius:2px;background:currentColor}
.cl-note{margin-top:6px;text-align:center}
/* Accueil « Que voulez-vous créer ? » + saisie à deux niveaux (07/10/2026). */
.cl-gerer{flex-shrink:0}
.cl-lanceur{flex:1;min-height:0;display:flex;flex-direction:column;width:100%;max-width:880px;margin:0 auto;padding:0 20px}
/* ── Session Code sur téléphone, comme l'application Claude (17/10/2026) ── */
.cl-barre-titres,.cl-barre-capa,.cl-plus-zone,.cl-horodate,.cl-msg-actions{display:none}
.cl-sel-mode,.cl-capa-pied{display:contents}
@media(max-width:768px){
  .cl-session-barre{display:flex;align-items:center;gap:8px;padding:10px 12px;min-height:64px;border-bottom:0}
  .cl-session-barre .proj-barre-nom,.cl-session-barre .cl-fichiers-btn,.cl-session-barre .cl-annuler-modifs,.cl-session-barre .lib-cale{display:none}
  .cl-session-barre .proj-retour{flex:none;width:40px;height:40px;padding:0;border:0;background:none;justify-content:center}
  .cl-session-barre .proj-retour span{display:none}
  .cl-session-barre .proj-retour svg{width:24px;height:24px}
  .cl-barre-titres{display:flex;flex-direction:column;align-items:center;flex:1;min-width:0;line-height:1.25;text-align:center}
  .cl-barre-titres strong{max-width:100%;font-size:17px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cl-barre-titres small{max-width:100%;font-size:14px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cl-barre-capa{display:inline-flex;position:relative;flex:none}
  .cl-barre-capa .cl-capa-bulle{bottom:auto;top:calc(100% + 10px);right:-40px}
  .cl-barre-capa .cl-capa-bulle::after{display:none}
  .cl-plus-zone{display:inline-flex;position:relative;flex:none}
  .cl-plus-bouton{width:40px;height:40px;border:0;background:none;font-size:26px;line-height:1;color:var(--fg);border-radius:50%;cursor:pointer}
  .cl-plus-menu{position:absolute;right:0;top:calc(100% + 6px);z-index:60;min-width:230px;padding:6px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 12px 36px rgba(0,0,0,.16);display:flex;flex-direction:column}
  .cl-plus-menu button{display:flex;align-items:center;gap:10px;min-height:44px;padding:8px 12px;border:0;background:none;color:var(--fg);font:inherit;font-size:15px;text-align:left;border-radius:10px;cursor:pointer}
  .cl-plus-menu button:hover:not(:disabled){background:var(--surface-hover)}
  .cl-plus-menu button:disabled{opacity:var(--inactif)}
  .cl-plus-menu svg{width:17px;height:17px;flex:none}
  .cl-plus-titre{padding:8px 12px 2px;font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
  .cl-plus-coche{display:inline-block;width:17px;text-align:center;flex:none}
  .cl-contexte-ok{display:none}
  .cl-fil{padding:4px 18px 24px;gap:18px}
  .cl-horodate{display:flex;align-items:center;gap:14px;color:var(--muted);font-size:15px;margin:6px 0 2px}
  .cl-horodate::before,.cl-horodate::after{content:"";flex:1;height:8px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='8' viewBox='0 0 40 8'%3E%3Cpath d='M0 4 Q10 0 20 4 T40 4' fill='none' stroke='%23999' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x center/40px 8px;opacity:.7}
  .cl-msg-user{max-width:88%;padding:16px 22px;border-radius:22px;background:color-mix(in srgb,var(--fg) 6%,var(--bg));font-size:18px;line-height:1.45}
  .cl-msg-astra{gap:10px}
  .cl-msg-astra .cl-md,.cl-msg-astra p{font-size:18px;line-height:1.6}
  .oc-etape{margin:0;border:0;border-radius:0;background:none}
  .oc-etape-tete{min-height:44px;padding:6px 0;font-size:18px;color:var(--muted)}
  .oc-etape-tete::after{content:"›";margin-left:6px;font-size:22px;line-height:1}
  .oc-etape-etat{display:none}
  .oc-etape-nom{font-weight:400}
  .oc-etape-cible{font-family:inherit;font-size:inherit;opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cl-msg-actions{display:flex;gap:14px;margin-top:2px}
  .cl-msg-actions button{width:44px;height:44px;border:0;background:none;color:var(--muted);border-radius:var(--radius-md);display:grid;place-items:center;cursor:pointer}
  .cl-msg-actions button svg{width:22px;height:22px}
  .cl-saisie-zone{padding:8px 14px 14px}
  .cl-saisie-grande{border-radius:30px;padding:16px 14px 12px 22px}
  .cl-saisie-grande textarea{font-size:19px;min-height:44px}
  .cl-saisie-pied{gap:10px}
  .cl-cache-mobile,.cl-sel-mode,.cl-capa-pied,.cl-pied-ressort{display:none}
  .cl-saisie-grande .cl-mode-pastille{min-height:48px;padding:0 20px;border:0;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 7%,var(--bg));font-size:17px}
  .cl-saisie-grande .send-btn{width:56px;height:56px}
  .cl-saisie-grande .cl-plus{width:48px;height:48px;border-radius:50%;background:color-mix(in srgb,var(--fg) 7%,var(--bg));border:0;font-size:24px}
}
/* ── Code sur téléphone : liste, nouvelle session (maquette validée du 18/10/2026) ── */
.cl-lanceur-idees,.cl-lanceur-aide,.cl-retour-mobile,.code-nouvelle-carte{display:none}
/* La flèche de la page « Nouvelle session » ne sert que sur téléphone (retour à la liste Code) : sur ordinateur, la barre latérale suffit et la flèche ne menait à rien (20/10/2026). */
@media(min-width:769px){.cl-lanceur-barre .cl-retour-mobile{display:none!important}}
@media(max-width:768px){
  .cl-lanceur-barre{display:flex;align-items:center;gap:8px;padding:10px 12px;min-height:68px;border-bottom:0}
  .cl-lanceur-barre .hamburger,.cl-lanceur-barre .top-bar-title,.cl-lanceur-barre .cl-gerer,.cl-lanceur-barre .lib-cale{display:none}
  .cl-lanceur-barre .cl-retour-mobile{display:inline-flex;flex:none;width:44px;height:44px;padding:0;border:0;background:none;justify-content:center;align-items:center}
  .cl-lanceur-barre .cl-retour-mobile svg{width:26px;height:26px}
  .cl-lanceur-idees{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;max-width:320px}
  .cl-lanceur-idee{border:1px solid var(--border);background:var(--surface);color:var(--fg);border-radius:var(--radius-full);padding:11px 16px;font:inherit;font-size:15px;cursor:pointer;min-height:44px}
  .cl-lanceur-aide{display:block;margin:0;font-size:14px;color:var(--muted);max-width:300px;line-height:1.5}
  .cl-lanceur-titre{font-size:32px}
  .cl-lanceur .cl-projet-barre,.cl-lanceur .cl-projet-deplier,.cl-page .cl-gerer{display:none}
  .code-sessions-barre{justify-content:space-between}
  .code-sessions-titre{flex:1;text-align:center}
  .code-nouvelle-carte{display:flex;align-items:center;gap:14px;width:100%;margin-bottom:14px;padding:16px;border:1px solid color-mix(in srgb,var(--accent,#1e90f0) 28%,transparent);background:color-mix(in srgb,var(--accent,#1e90f0) 9%,var(--bg));border-radius:22px;text-align:left;cursor:pointer;color:var(--fg);font:inherit}
  .code-nouvelle-plus{width:44px;height:44px;border-radius:50%;background:var(--accent,#1e90f0);color:#fff;display:grid;place-items:center;flex:none;font-size:28px;line-height:1}
  .code-nouvelle-texte{display:flex;flex-direction:column;line-height:1.3}
  .code-nouvelle-texte b{font-size:17px;font-weight:600}
  .code-nouvelle-texte small{font-size:14px;color:var(--muted)}
}
.cl-lanceur-nuage{min-height:0}
/* Accueil d'une nouvelle conversation Code (téléphone) : exactement la même mise en place que l'accueil du Chat (marge et
   padding en dvh : la hauteur réelle de l'écran rétrécit quand le clavier s'ouvre, le bloc remonte alors tout seul). */
@media(max-width:768px){
  .chat-view .chat-body-empty .chat-msg-container>.cl-lanceur-nuage{margin-top:16dvh;flex:none;justify-content:flex-start;transition:margin-top .5s var(--ease-out),padding-top .5s var(--ease-out);padding:max(12px, calc(24px + 9vh + max(0px, (100dvh - 740px) * .45) - 26px)) 0 0}
}
@media(max-width:768px) and (max-height:550px){
  .chat-view .chat-body-empty .chat-msg-container>.cl-lanceur-nuage{margin-top:0}
}
/* Ce bloc d'accueil n'est pas du texte à sélectionner. */
.cl-lanceur-centre,.cl-lanceur-centre *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-user-drag:none}
/* Le logo et la phrase ne réagissent à aucun appui (pas de menu « Copier / Télécharger l'image » ni de sélection au clic long). */
.cl-lanceur-centre{pointer-events:none}
@media(max-width:768px){.cl-lanceur-titre{font-size:30px}}
.cl-lanceur-centre{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;text-align:center;padding:24px 0}
.cl-lanceur-embleme{width:72px;height:72px;display:flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--fg) 38%,transparent)}
.cl-lanceur-embleme svg{width:56px;height:56px;stroke-width:1.5}
.cl-lanceur-embleme img{width:72px;height:auto;display:block}
.cl-lanceur-embleme svg.clin-logo{width:72px;height:auto;display:block;overflow:visible;cursor:pointer;pointer-events:auto;stroke-width:0;-webkit-tap-highlight-color:transparent}
.clin-logo .clin-oeil{opacity:0}
.clin-logo.clin{animation:clin-tete 1.1s ease-in-out}
.clin-logo.clin .clin-oeil{animation:clin-oeil 1.1s ease-in-out}
@keyframes clin-oeil{0%{opacity:0}15%,65%{opacity:1}100%{opacity:0}}
@keyframes clin-tete{0%,100%{transform:rotate(0)}25%,60%{transform:rotate(-8deg)}}
.cl-lanceur-titre{margin:0;font-family:var(--font-display);font-size:34px;font-weight:400;letter-spacing:-.015em;color:var(--fg)}
.cl-lanceur-bas{position:relative;padding-bottom:max(18px,env(safe-area-inset-bottom))}
.cl-projet-barre{position:relative;display:flex;align-items:center;gap:6px;width:calc(100% - 28px);margin:0 auto -16px;padding:5px 10px 24px 6px;border:1px solid var(--border);border-bottom:none;border-radius:20px 20px 0 0;background:color-mix(in srgb,var(--fg) 4%,var(--bg));color:var(--muted);font-size:15px;text-align:left}
.cl-projet-barre-bouton{flex:1;min-width:0;display:flex;align-items:center;gap:10px;height:40px;padding:0 10px;border:none;border-radius:14px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
@media(hover:hover){.cl-projet-barre-bouton:hover{background:color-mix(in srgb,var(--fg) 4%,transparent)}}
.cl-projet-barre-croix{width:30px;height:30px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
@media(hover:hover){.cl-projet-barre-croix:hover{background:color-mix(in srgb,var(--fg) 8%,transparent);color:var(--fg)}}
.cl-projet-barre-croix svg{width:14px;height:14px}
.cl-projet-barre svg{width:18px;height:18px;flex-shrink:0}
.cl-projet-barre.choisi{color:var(--fg)}
.cl-projet-barre-nom{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}
.cl-projet-barre-ordi{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:13px}
.cl-projet-barre-plier{width:30px;height:30px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
@media(hover:hover){.cl-projet-barre-plier:hover{background:color-mix(in srgb,var(--fg) 8%,transparent);color:var(--fg)}}
.cl-projet-deplier{display:flex;align-items:center;justify-content:center;gap:6px;min-width:56px;max-width:70%;height:26px;margin:0 auto -1px;padding:0 14px;border:1px solid var(--border);border-bottom:none;border-radius:12px 12px 0 0;background:color-mix(in srgb,var(--fg) 4%,var(--surface));color:var(--muted);font:inherit;font-size:13px;cursor:pointer;position:relative;z-index:1}
@media(hover:hover){.cl-projet-deplier:hover{color:var(--fg)}}
.cl-projet-deplier svg{width:15px;height:15px;flex-shrink:0}
.cl-projet-deplier-nom{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-projet-barre:not(.choisi) .cl-projet-barre-nom{flex:1}
.cl-saisie-grande{position:relative;z-index:1;flex-direction:column;align-items:stretch;gap:6px;border-radius:28px;padding:18px 14px 12px 22px;box-shadow:0 8px 28px -14px rgba(0,0,0,.22)}
.cl-saisie-grande textarea{flex:0 0 auto;width:100%;min-height:52px;font-size:16px;padding:2px 0}
.cl-saisie-pied{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cl-saisie-gauche{display:flex;align-items:center;gap:6px;min-width:0}
.cl-plus{width:38px;height:38px;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px solid color-mix(in srgb,var(--fg) 13%,transparent);border-radius:50%;background:transparent;color:var(--fg);cursor:pointer;transition:background var(--dur-med),border-color var(--dur-med)}
@media(hover:hover){.cl-plus:hover:not(:disabled){background:color-mix(in srgb,var(--fg) 5%,transparent);border-color:color-mix(in srgb,var(--fg) 22%,transparent)}}
.cl-plus:disabled{opacity:var(--inactif);cursor:default}
.cl-plus svg{width:18px;height:18px}
.cl-msg-vignettes{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:6px}
.cl-msg-user{overflow-wrap:anywhere}@media(hover:none){.cl-revenir-btn{min-height:32px;padding:4px 12px}}
.cl-msg-revenir{position:relative}.cl-revenir-btn{position:absolute;right:0;bottom:-26px;display:inline-flex;align-items:center;gap:4px;padding:2px 8px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:12px;cursor:pointer;opacity:0;transition:opacity var(--dur-med)}.cl-msg-revenir:hover .cl-revenir-btn,.cl-revenir-btn:focus-visible{opacity:1}.cl-revenir-btn:hover{color:var(--fg);background:color-mix(in srgb,var(--fg) 6%,transparent)}@media(hover:none){.cl-revenir-btn{opacity:.7}}.cl-msg-revenir{margin-bottom:22px}.cl-retour{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cl-retablir-btn{border:1px solid var(--border);background:transparent;color:var(--fg);border-radius:999px;padding:2px 10px;font-size:12px;cursor:pointer}.cl-retablir-btn:hover{background:color-mix(in srgb,var(--fg) 6%,transparent)}
.cl-msg-vignette{max-width:160px;max-height:120px;border-radius:10px;object-fit:cover}
.cl-piece-vignette{width:22px;height:22px;object-fit:cover;border-radius:5px;flex:none}
.cl-pieces{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 4px}
.cl-piece{display:inline-flex;align-items:center;gap:6px;max-width:100%;height:30px;padding:0 6px 0 10px;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 6%,transparent);font-size:13px}
.cl-piece>svg{width:14px;height:14px;flex-shrink:0;color:var(--muted)}
.cl-piece-nom{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-piece-retirer{width:20px;height:20px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:none;border-radius:50%;background:none;color:var(--muted);cursor:pointer}
@media(hover:hover){.cl-piece-retirer:hover{background:color-mix(in srgb,var(--fg) 10%,transparent);color:var(--fg)}}
.cl-piece-retirer svg{width:12px;height:12px}
.cl-saisie-actions{display:flex;align-items:center;gap:8px}
.cl-mode-zone{position:relative;min-width:0}
/* Astra Code sur ordinateur (16/10/2026) : une ligne (« + », texte, micro/envoi) et, dessous, la ligne d'état — projet,
   autorisations, niveau, anneau de capacité. Le téléphone garde sa carte à deux étages : seule la ligne d'état y disparaît. */
.cl-pied-etat{display:contents}
.cl-pied-projet,.cl-capa,.cl-pied-ressort{display:none}
@media(min-width:769px){
  .cl-saisie.cl-saisie-grande{flex-direction:row;flex-wrap:wrap;align-items:center;gap:8px 10px;padding:10px 14px;border-radius:24px;margin-bottom:48px;box-shadow:0 6px 24px rgba(0,0,0,.06)}
  .cl-saisie-grande .cl-pieces{order:-1;flex:0 0 100%;margin:2px 0 0}
  .cl-saisie-grande textarea{order:2;flex:1;width:auto;min-width:0;min-height:30px;font-size:16px;padding:6px 0;max-height:200px}
  /* Deux étages comme le Chat (PromptBar) dès que le texte passe sur plusieurs lignes : le texte sur toute la largeur, les boutons dessous. */
  .cl-saisie.cl-saisie-grande.cl-etage{padding:14px 12px 10px 14px;row-gap:6px}
  .cl-saisie-grande.cl-etage textarea{order:0;flex:0 0 100%;width:100%;padding:4px 8px 2px;line-height:1.55}
  .cl-saisie-grande.cl-etage .cl-saisie-pied>:not(.cl-saisie-gauche),.cl-saisie-grande.cl-etage .cl-saisie-actions{margin-left:auto}
  .cl-saisie-pied,.cl-saisie-gauche{display:contents}
  .cl-saisie-grande .cl-plus{order:1;width:38px;height:38px;border:0;background:transparent}
  .cl-saisie-grande .cl-saisie-pied>:not(.cl-saisie-gauche),.cl-saisie-grande .cl-saisie-actions{order:3;align-self:center}
  .cl-saisie-grande .cl-pied-etat{display:flex;align-items:center;gap:2px;position:absolute;left:0;right:0;top:calc(100% + 8px);padding:0 6px}
  .cl-pied-projet{display:inline-flex;align-items:center;gap:7px;height:34px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--muted);font:inherit;font-size:14px;font-weight:500;cursor:pointer;max-width:240px}
  .cl-pied-projet:hover,.cl-pied-projet[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--fg)}
  .cl-pied-projet-fixe{cursor:default}
  .cl-pied-projet-fixe:hover{background:transparent;color:var(--muted)}
  .cl-pied-projet svg{width:16px;height:16px;flex-shrink:0}
  .cl-pied-projet span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .cl-pied-projet .cl-mode-chevron{width:12px;height:12px}
  .cl-pied-ressort{display:block;flex:1;min-width:0}
  .cl-pied-etat .cl-mode-zone{position:static}
  .cl-pied-etat .cl-mode-pastille{height:34px;padding:0 10px;border-radius:10px;font-size:14px;font-weight:500;gap:7px}
  .cl-pied-etat .cl-mode-pastille svg{width:16px;height:16px}
  .cl-pied-etat .cl-mode-pastille .cl-mode-chevron{width:12px;height:12px}
  .cl-pied-etat .cl-mode-menu{left:6px;bottom:calc(100% + 10px)}
  .cl-pied-etat .cl-mode-zone:last-of-type .cl-mode-menu{left:auto;right:6px}
  .cl-capa{display:inline-flex;position:relative}
  .cl-capa-bouton{display:inline-flex;align-items:center;height:34px;padding:0 10px;border:0;border-radius:10px;background:transparent;cursor:pointer}
  .cl-capa-bouton:hover,.cl-capa-bouton.actif{background:color-mix(in srgb,var(--fg) 6%,transparent)}
  .cl-capa-bouton:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
  .cl-capa-segs{display:inline-flex;align-items:center;gap:3px}
  .cl-capa-segs i{display:block;width:5px;height:15px;border-radius:2px;background:var(--border)}
  .cl-capa-bouton.ok .plein{background:var(--accent)}
  .cl-capa-bouton.peu .plein{background:var(--warn)}
  .cl-capa-bouton.bas .plein{background:var(--danger)}
  .cl-capa-bulle{position:absolute;right:0;bottom:calc(100% + 12px);z-index:45;width:260px;box-sizing:border-box;padding:14px 16px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:0 12px 36px rgba(0,0,0,.14);text-align:left;animation:pb-pop .14s ease-out;transform-origin:bottom right}
  .cl-capa-bulle::after{content:"";position:absolute;right:30px;bottom:-7px;width:12px;height:12px;background:var(--surface);border-right:1px solid var(--border);border-bottom:1px solid var(--border);transform:rotate(45deg)}
  .cl-capa-titre{font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
  .cl-capa-ligne{display:flex;align-items:baseline;gap:8px;margin-top:6px}
  .cl-capa-gros{font-size:30px;font-weight:600;letter-spacing:-.03em;line-height:1.1;color:var(--fg)}
  .cl-capa-reste{font-size:14px;color:var(--muted)}
  .cl-capa-jauge{height:6px;margin:10px 0 8px;border-radius:var(--radius-full);background:var(--border);overflow:hidden}
  .cl-capa-jauge i{display:block;height:100%;border-radius:var(--radius-full);background:var(--accent)}
  .cl-capa-bulle.peu .cl-capa-jauge i{background:var(--warn)}
  .cl-capa-bulle.bas .cl-capa-jauge i{background:var(--danger)}
  .cl-capa-renouv{font-size:13px;color:var(--muted)}
  @media(prefers-reduced-motion:reduce){.cl-capa-bulle{animation:none}}
  .cl-projet-barre,.cl-projet-deplier{display:none}
}
/* Carte de saisie d'Astra Code sur ordinateur : la même que celle du Chat (27/10/2026) — texte en haut, « + » et envoi dessous. La ligne d'état reste sous la carte. */
@media(min-width:769px){
  .cl-saisie.cl-saisie-grande,.cl-saisie.cl-saisie-grande.cl-etage{padding:20px 18px 14px 20px;row-gap:22px;border-radius:22px;box-shadow:0 1px 3px rgba(0,0,0,.05),0 6px 24px rgba(0,0,0,.05)}
  .cl-saisie-grande textarea,.cl-saisie-grande.cl-etage textarea{order:0;flex:0 0 100%;width:100%;padding:0;min-height:28px;font-size:19px;line-height:28px}
  .cl-saisie-grande .cl-saisie-pied>:not(.cl-saisie-gauche),.cl-saisie-grande .cl-saisie-actions{margin-left:auto}
  .cl-saisie-grande .cl-plus{width:32px;height:32px;margin-left:-2px}
  .cl-saisie-grande .cl-envoyer,.cl-saisie-grande .send-btn{width:36px;height:36px}
}
/* Téléphone : le menu des pastilles s'ancre sur toute la largeur de la saisie (sinon celui de la 2e pastille sortait de l'écran). */
@media(max-width:768px){.cl-saisie-grande .cl-mode-zone{position:static}.cl-saisie-grande .cl-mode-menu{left:0;right:0;width:auto}}
/* Téléphone : la barre de saisie d'une session est celle du Chat (maquette du 18/10/2026) : texte en haut, dessous « + »,
   niveau (Standard ⌄), micro et envoi en pastilles grises de 40 px. */
@media(max-width:768px){
  .cl-saisie-zone{padding:10px 12px max(14px,env(safe-area-inset-bottom))}
  .cl-saisie.cl-saisie-grande{border-radius:28px;padding:16px 16px 12px;gap:12px;box-shadow:0 6px 24px rgba(0,0,0,.06)}
  .cl-saisie-grande textarea{min-height:26px;padding:2px 4px;font-size:16px;line-height:1.5}
  .cl-saisie-grande .cl-saisie-pied{justify-content:flex-start;gap:8px}
  .cl-saisie-grande .cl-saisie-gauche{flex:1;min-width:0;gap:8px}
  .cl-saisie-grande .cl-plus{width:36px;height:36px;border:0;background:var(--surface-hover);color:var(--fg)}
  .cl-saisie-grande .cl-plus svg{width:20px;height:20px}
  .cl-saisie-grande .cl-mode-pastille{height:36px;min-height:36px;padding:0 13px;gap:6px;border:0;border-radius:var(--radius-full);background:var(--surface-hover);color:var(--fg);font-size:14px;font-weight:500}
  .cl-saisie-grande .cl-mode-pastille>svg:not(.cl-mode-chevron){display:none}
  .cl-saisie-grande .cl-mode-pastille .cl-mode-chevron{display:block;width:14px;height:14px}
  .cl-saisie-grande .cl-saisie-actions{gap:8px}
  .cl-saisie-grande .send-btn{width:36px;height:36px}
}
@media(max-width:480px){.cl-saisie-gauche{gap:0}.cl-mode-pastille{gap:5px;padding:0 8px 0 6px;font-size:14px}.cl-mode-pastille .cl-mode-chevron{display:none}}
.cl-mode-pastille{display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 12px 0 8px;border:none;border-radius:var(--radius-full);background:none;color:var(--muted);font:inherit;font-size:15px;cursor:pointer;max-width:100%}
.cl-mode-pastille[aria-expanded="true"]{background:color-mix(in srgb,var(--fg) 5%,transparent);color:var(--fg)}
@media(hover:hover){.cl-mode-pastille:hover:not(:disabled){background:color-mix(in srgb,var(--fg) 5%,transparent);color:var(--fg)}}
.cl-mode-pastille:disabled{opacity:var(--inactif);cursor:default}
.cl-mode-pastille svg{width:19px;height:19px;flex-shrink:0}
.cl-mode-pastille span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-mode-pastille .cl-mode-chevron{width:13px;height:13px}
.cl-mode-menu,.cl-projets-menu{position:absolute;z-index:40;bottom:calc(100% + 10px);padding:6px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);box-shadow:var(--shadow-md)}
.cl-mode-menu{left:0;width:min(340px,calc(100vw - 40px))}
.cl-mode-option{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:none;border-radius:10px;background:none;color:var(--fg);text-align:left;cursor:pointer}
.cl-mode-option.actif{background:var(--surface-hover)}
@media(hover:hover){.cl-mode-option:hover{background:var(--surface-hover)}}
.cl-mode-option-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.cl-mode-option-nom{font-size:14px;font-weight:500}
.cl-mode-option-desc{font-size:13px;line-height:1.4;color:var(--muted)}
.cl-mode-option svg{width:16px;height:16px;flex-shrink:0;color:var(--accent)}
.cl-projets-menu{left:0;right:0;max-height:min(380px,52dvh);overflow-y:auto;overscroll-behavior:contain}
.cl-projets-connexion{padding:0;max-height:min(560px,70dvh);overflow-y:auto}
.cl-projets-connexion .cl-carte{margin:0;border:none;border-radius:var(--radius-lg)}
.cl-attente{display:flex;align-items:center;justify-content:center;gap:10px;padding:2px 16px 16px;font-size:14px;color:var(--muted)}
.cl-os{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:4px 0 6px}
.cl-os-onglet{height:34px;padding:0 14px;border:none;border-radius:var(--radius-full);background:color-mix(in srgb,var(--fg) 6%,var(--bg));color:var(--muted);font:inherit;font-size:14px;font-weight:500;cursor:pointer}
.cl-os-onglet.actif{background:var(--fg);color:var(--bg)}
.cl-os-detecte{font-size:12.5px;color:var(--muted);margin-left:4px}
.cl-etapes.cl-etapes-num{list-style:none;margin:6px 0 10px;padding:0}
.cl-etapes-num li{display:flex;gap:14px;align-items:flex-start}
.cl-etape-n{flex:none;width:28px;height:28px;border-radius:50%;background:var(--fg);color:var(--bg);font-size:13px;font-weight:600;display:flex;align-items:center;justify-content:center}
.cl-etapes-num li>div{flex:1;min-width:0;padding-top:3px}
.cl-installer .cl-commande{background:#1e1e1c;border:0;border-radius:12px;padding:8px 8px 8px 16px}
.cl-installer .cl-commande code{color:#ececea}
.cl-installer .cl-commande-copier{background:#fff;color:#1e1e1c;border:0;font-weight:600}
.cl-attente-carte{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:4px 0 6px;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--accent) 8%,var(--bg));color:var(--fg);font-size:14px}
.cl-attente-carte small{margin-left:auto;color:var(--muted);font-size:13px}
.cl-projets-ordi{display:flex;align-items:center;gap:8px;padding:8px 10px 4px;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.cl-projets-ordi svg{width:14px;height:14px}
.cl-projets-ordi .cl-etat{margin-left:auto;text-transform:none;letter-spacing:0;font-weight:400}
.cl-projets-groupe+.cl-projets-groupe{border-top:1px solid color-mix(in srgb,var(--border) 60%,transparent);margin-top:6px;padding-top:4px}
.cl-projets-ligne{display:flex;align-items:center;gap:12px;width:100%;padding:10px 12px;border:none;border-radius:10px;background:none;color:var(--fg);text-align:left;cursor:pointer}
.cl-projets-ligne.actif{background:var(--surface-hover)}
@media(hover:hover){.cl-projets-ligne:hover:not(:disabled){background:var(--surface-hover)}}
.cl-projets-ligne:disabled{opacity:var(--inactif);cursor:default}
.cl-projets-ligne>svg{width:18px;height:18px;flex-shrink:0;color:var(--muted)}
.cl-projets-ligne>svg:last-child:not(:first-child){color:var(--accent)}
.cl-projets-nom{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.cl-projets-nom strong{font-size:14px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-projets-nom span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-projets-autre .cl-projets-nom strong{color:var(--muted)}
@media(max-width:768px){.cl-lanceur{padding:0 12px}.cl-lanceur-titre{font-size:26px}.cl-lanceur-embleme img,.cl-lanceur-embleme svg.clin-logo{width:64px}.cl-saisie-grande{padding:16px 10px 10px 18px;border-radius:26px}.cl-mode-pastille{font-size:14px}}
@media(max-width:768px){.cl-fil{padding:12px 14px 20px}.cl-saisie-zone{padding:8px 12px 12px}.cl-msg-user{max-width:92%}.cl-projet-action{display:none}.cl-ordi-tete{flex-wrap:wrap}}
/* Téléphone — Code sur l'ordinateur (07/10/2026) : plus de texte qui déborde ni de lignes qui se chevauchent sous la session. */
.cl-contexte{justify-content:space-between;gap:10px;flex-wrap:nowrap}
.cl-contexte-nom{display:flex;align-items:center;gap:8px;min-width:0;flex:1}
.cl-contexte-nom svg{flex-shrink:0}
.cl-contexte-nom>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cl-contexte .cl-etat{flex-shrink:0;white-space:nowrap}
.cl-bandeau-reseau{display:flex;align-items:center;gap:10px;margin:8px 16px 0;padding:10px 14px;border-radius:var(--radius-md);background:var(--surface-hover);color:var(--muted);font-size:14px}
.cl-projets-ligne.hors-ligne{opacity:.55;cursor:not-allowed}
.cl-projet-barre-ordi.hors-ligne{color:var(--muted)}
.cl-projet-ouvrir:disabled,.cl-projet-reprendre:disabled,.cl-projet-retirer:disabled,.cl-choisir:disabled{opacity:var(--inactif);cursor:not-allowed}
.cl-projet-ouvrir:disabled .cl-projet-action{color:var(--muted)}
.cl-archivees summary{cursor:pointer;color:var(--muted);font-size:14px;margin:6px 0 12px}
.cl-archivees .cl-archivee{display:flex;align-items:center;margin-bottom:6px;padding-right:6px}
.cl-archivees .cl-archivee .cl-session{flex:1;min-width:0}
.cl-archivees .cl-archivee .cl-conv-menu{position:relative;top:auto;right:auto}
.cl-archivees .cl-archivee .cl-conv-liste{right:0;top:100%}
.cl-note-hors-ligne{margin:-2px 0 12px;padding:8px 12px;border-radius:var(--radius-md);background:color-mix(in srgb,var(--fg) 4%,transparent);color:var(--muted);font-size:13px;line-height:1.45}
.cl-ordi-nom .cl-etat{white-space:normal;line-height:1.35;align-items:flex-start}
.cl-ordi-nom .cl-etat::before{margin-top:.38em}
.cl-session-texte .cl-muet{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:768px){
  .cl-carte{padding:16px;border-radius:20px}
  .cl-ordi-tete{flex-wrap:nowrap;gap:10px}
  .cl-ordi-icone{width:42px;height:42px}
  .cl-ordi-tete .btn{flex-shrink:0}
  .cl-projet-ouvrir{padding:12px}
  .cl-projet-reprendre{flex-shrink:0}
  .cl-session{padding:12px 10px}
  /* Barre de la session : flèche seule (le titre de la page reste lisible), autorisations compactes. */
  .cl-session-barre .proj-retour{width:38px;padding:0!important;justify-content:center}
  .cl-session-barre .proj-retour span{display:none}
  .cl-session-barre .top-bar-title{visibility:visible;min-width:0}
  .cl-session-barre .cl-mode{max-width:46vw;min-width:0;text-overflow:ellipsis;height:34px;font-size:13px}
  .cl-contexte{font-size:13px}
  .cl-accueil{padding:12px 0 4px}
  .cl-accueil .cl-titre{font-size:18px}
}
@media(prefers-reduced-motion:reduce){.cl-point-anime{animation:none}}
.cl-commande{display:flex;align-items:center;gap:8px;margin-top:8px;padding:6px 6px 6px 12px;border:1px solid var(--border);border-radius:10px;background:var(--bg-subtle,var(--bg));max-width:100%}
.cl-commande code{flex:1;min-width:0;font-family:var(--font-mono,ui-monospace,monospace);font-size:13px;font-variant-ligatures:none;overflow-x:auto;white-space:nowrap}
.cl-autre-methode{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.cl-autre-methode a{color:var(--muted)}
.cl-projet-reprendre{flex-shrink:0;align-self:center}
.cl-sous-etapes{margin:0 0 6px 31px;display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--muted)}
.cl-sous-etape{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.cl-sous-etape::before{content:'↳ ';opacity:.6}
.cl-question{margin:8px 0;padding:12px 14px;border:1px solid var(--accent);border-radius:var(--radius-md);background:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.cl-question-texte{margin-top:4px;font-size:14px;white-space:pre-wrap}
.cl-question-options{margin-top:10px;justify-content:flex-start;flex-wrap:wrap}
.cl-question-note{margin-top:8px;font-size:12px}
/* Questions d'Astra Code : carte posée juste au-dessus de la saisie (même place que dans le Chat) */
.cl-saisie-zone>.ap-carte{margin:0 0 10px;max-width:100%;max-height:min(62dvh,560px);overflow-y:auto}
.cl-question-dessus{margin:0 0 10px;padding:12px 14px;border:1px solid var(--accent);border-radius:var(--radius-md);background:color-mix(in srgb,var(--accent) 7%,var(--surface))}
.cl-annuler-modifs{flex-shrink:0;font-size:13px}
.cl-msg-file{opacity:.8;border:1px dashed var(--border)}
.cl-msg-retire{opacity:.5}
.cl-file-etat{display:flex;align-items:center;gap:10px;margin-top:4px;font-size:12px;color:var(--muted)}
.cl-file-retirer{background:none;border:0;padding:0;font:inherit;color:var(--accent);cursor:pointer;text-decoration:underline}
.cl-echap{margin-left:auto;font-size:12px}
@media(max-width:768px){.cl-echap{display:none}}
.maj-bandeau{position:fixed;left:16px;right:16px;margin:0 auto;width:fit-content;max-width:560px;box-sizing:border-box;bottom:calc(16px + env(safe-area-inset-bottom));z-index:900;display:flex;align-items:center;gap:10px;padding:8px 8px 8px 16px;border-radius:var(--radius-md);background:var(--surface,var(--bg));color:var(--fg);border:1px solid var(--border);box-shadow:0 8px 24px rgba(0,0,0,.12);font-size:14px;line-height:1.35}
.maj-bandeau span{flex:1 1 auto;min-width:0}
.maj-bandeau .btn{flex-shrink:0;white-space:nowrap}
.maj-bandeau .maj-fermer{flex-shrink:0}
@media(max-width:768px){.maj-bandeau{width:auto;bottom:calc(76px + env(safe-area-inset-bottom));font-size:13px;padding:10px 6px 10px 14px}}
@media(max-width:360px){.maj-bandeau{flex-wrap:wrap;row-gap:8px}.maj-bandeau span{flex-basis:calc(100% - 44px)}.maj-bandeau .btn{order:3;flex:1 1 100%;margin-right:8px}}
/* ══ Projets intelligents (06/10/2026) ══ */
.chat-projet{display:inline-flex;align-items:center;gap:6px;height:30px;max-width:min(46vw,260px);padding:0 12px 0 9px;border:1px solid color-mix(in srgb,var(--teinte) 28%,var(--border));border-radius:var(--radius-full);background:color-mix(in srgb,var(--teinte) 8%,var(--bg));color:var(--fg);font-size:13px;font-weight:500;cursor:pointer;flex-shrink:1;min-width:0;transition:background var(--dur-fast),border-color var(--dur-fast)}
@media(hover:hover){.chat-projet:hover{background:color-mix(in srgb,var(--teinte) 14%,var(--bg));border-color:color-mix(in srgb,var(--teinte) 45%,var(--border))}}
.chat-projet svg{width:14px;height:14px;flex-shrink:0;color:var(--teinte)}
.chat-projet span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:768px){.chat-top-bar .chat-projet{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}}
@media(min-width:769px){.chat-top-bar .chat-projet{position:absolute;left:20px;top:50%;transform:translateY(-50%)}}
.msg-projet-fichiers{display:flex;align-items:center;gap:5px;margin-top:6px;justify-content:flex-end;font-size:12px;color:var(--muted);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg-projet-fichiers svg{width:12px;height:12px;flex-shrink:0}
.proj-depuis-biblio{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;height:44px;margin:0 0 14px;border:1px solid var(--border);border-radius:14px;background:var(--bg);color:var(--fg);font-size:14px;font-weight:500;cursor:pointer}
html:not(.dark) .proj-depuis-biblio{background:#fff}
@media(hover:hover){.proj-depuis-biblio:hover{border-color:color-mix(in srgb,var(--accent) 45%,var(--border))}}
.proj-depuis-biblio svg{width:17px;height:17px;color:var(--accent)}
.proj-auto-note{display:flex;align-items:flex-start;gap:7px;margin-top:12px;font-size:13px;line-height:1.5;color:var(--muted)}
.proj-auto-note svg{width:14px;height:14px;flex-shrink:0;margin-top:2px;color:var(--accent)}
.proj-choix-biblio{max-height:60vh;overflow-y:auto}
.proj-choix-biblio .lib-ligne:disabled{opacity:var(--inactif);cursor:default}
.proj-choix-biblio .lib-ligne>svg:last-child{width:16px;height:16px;color:var(--accent)}
.proj-deja{flex-shrink:0;font-size:12px;color:var(--muted)}
/* Horloge responsive de Planifiées (06/10/2026) */
.tache-heure{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr));gap:12px;align-items:end}
.tache-heure label,.tache-horloge-champ{display:flex;flex-direction:column;gap:4px;min-width:0}
.tache-heure select.input{width:100%}
.tache-horloge{display:flex;align-items:center;gap:4px;width:100%;max-width:240px;padding:4px 6px;border:1px solid var(--border);border-radius:14px;background:var(--bg)}
html:not(.dark) .tache-horloge{background:#fff}
.tache-horloge:focus-within{border-color:var(--fg)}
.tache-horloge select{flex:1 1 0;min-width:0;height:48px;padding:0 4px;border:none;border-radius:10px;background:transparent;color:var(--fg);font:inherit;font-size:clamp(22px,6.5vw,28px);font-weight:600;font-variant-numeric:tabular-nums;text-align:center;text-align-last:center;appearance:none;-webkit-appearance:none;cursor:pointer}
@media(hover:hover){.tache-horloge select:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)}}
.tache-horloge select:focus{outline:none}
.tache-horloge-sep{font-size:clamp(20px,6vw,26px);font-weight:600;color:var(--muted);flex:0 0 auto}
.tache-heure-grande{font-size:clamp(22px,6.5vw,28px);font-variant-numeric:tabular-nums;min-width:0;overflow:hidden;text-overflow:ellipsis}
.tache-carte-haut{min-width:0}
/* Jonction en bas sur PC (06/10/2026) : la zone du chat avait height:100 % EN PLUS de ses marges de 8 px et dépassait de
   la fenêtre (808 px pour 800) — marche visible avec la barre latérale et coin arrondi coupé. Elle s'étire maintenant entre
   les mêmes marges que la barre, à toutes les tailles. */
@media(min-width:769px){
  .app{align-items:stretch}
  .main-content{height:auto;align-self:stretch;min-height:0}
}
.tache-horloge select{font-size:clamp(22px,6.5vw,28px)!important}
/* Sélecteur « Chat | Code » animé (06/10/2026) : deux colonnes égales, la pastille blanche glisse sous le texte. */
@media(min-width:769px){
}
/* « + » de la barre de saisie (06/10/2026) : même rond de 38 px que le micro, fin contour. */
.chat-input .composer-add{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border-radius:50%!important;border:1px solid color-mix(in srgb,var(--fg) 13%,transparent)!important;background:transparent;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background var(--dur-med),border-color var(--dur-med)}
@media(hover:hover){.chat-input .composer-add:hover{width:38px!important;height:38px!important;min-width:38px!important;min-height:38px!important;padding:0!important;border-radius:50%!important;border:1px solid color-mix(in srgb,var(--fg) 13%,transparent)!important;background:transparent;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;transition:background var(--dur-med),border-color var(--dur-med)}}
@media(hover:hover){.chat-input .composer-add:hover{background:color-mix(in srgb,var(--fg) 5%,transparent)!important;border-color:color-mix(in srgb,var(--fg) 22%,transparent)!important}}
.chat-input .composer-add svg{width:18px;height:18px}
/* PC, écran d'accueil (07/10/2026) : la barre de saisie ne se recentrait pas pareil selon la hauteur du texte d'accueil
   (Chat ≠ Code), elle sautait au changement d'espace. Elle est maintenant ancrée à la même distance du bas dans les deux
   espaces ; le texte d'accueil se pose juste au-dessus. */
@media(min-width:769px){
  .chat-view .chat-body-empty{justify-content:flex-end;padding-bottom:max(24px,calc(54dvh - 111px))}
}

/* ═══ Finition premium (branche refonte-premium, 18/10/2026) ═══════════════════════════════════════════════════════════════
   Couche posée EN DERNIER : elle ne retire aucune fonction, elle règle des détails mesurés. Chaque point cite sa source.
   Sources : OpenCode UI (MIT, packages/ui), shadcn/ui (MIT), Sonner (MIT), Vercel Web Interface Guidelines, article public de Linear sur son thème. */
/* Menus : même relief et même ouverture partout (OpenCode : scale .96 → 1 en 150 ms depuis le point d'ancrage ; Vercel : transform-origin à l'origine du geste). */
.sb-recent-menu,.sb-profil-menu,.sb-profil-sous-menu,.pb-menu,.pb-mode-menu,.category-menu,.cl-cmd-menu,.cl-mode-menu,.cl-plus-menu,.cl-projets-menu,.msg-plus-menu,.code-session-menu,.ds-menu,.od-fichiers-menu{
  box-shadow:var(--anneau),var(--shadow-md);
}
@media (min-width:769px){
  .sb-recent-menu,.sb-profil-menu,.sb-profil-sous-menu,.pb-menu,.pb-mode-menu,.category-menu,.cl-cmd-menu,.cl-mode-menu,.cl-plus-menu,.cl-projets-menu,.msg-plus-menu,.code-session-menu,.ds-menu,.od-fichiers-menu{
    animation:menuOuvre var(--dur-base) var(--ease-out) both;
  }
  .sb-profil-menu{transform-origin:bottom left}
  .sb-recent-menu{transform-origin:top right}
}
@keyframes menuOuvre{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
.modal{box-shadow:var(--anneau),var(--shadow-lg)}
/* Typographie (OpenCode : text-wrap pretty ; Vercel : éviter les veuves, titres équilibrés ; saisie stable pendant la frappe). */
p,li,blockquote{text-wrap:pretty}
h1,h2,h3,.modal-title,.sheet-title,.settings-section-title{text-wrap:balance}
input,textarea,[contenteditable]{text-wrap:stable}
::selection{background:color-mix(in srgb,var(--accent) 28%,transparent)}
/* Appui : retour immédiat (Linear / Vercel) — seulement les vrais boutons, 80 ms, jamais pour qui préfère moins d'animation. */
.btn:not(:disabled):active,.send-btn:not(:disabled):active{transform:scale(.97);transition:transform .08s var(--ease-out)}
/* Tactile : pas de zoom au double toucher (Vercel : touch-action: manipulation). */
button,a,[role=button],summary,label{touch-action:manipulation}
@media (prefers-reduced-motion:reduce){
  .sb-recent-menu,.sb-profil-menu,.sb-profil-sous-menu,.pb-menu,.pb-mode-menu,.category-menu,.cl-cmd-menu,.cl-mode-menu,.cl-plus-menu,.cl-projets-menu,.msg-plus-menu,.code-session-menu,.ds-menu,.od-fichiers-menu{animation:none}
  .btn:active,.send-btn:active{transform:none}
}
/* Mesuré (audit chiffré) — sombre : le rouge d'erreur faisait 3,5:1 sur fond sombre ; on l'éclaircit, et les boutons pleins rouges gardent un fond foncé pour le texte blanc. */
.dark .btn-danger,.dark .ap-continuer.danger{background:oklch(.5 .2 25)}
/* Mesuré — téléphone : plusieurs cibles tactiles faisaient 33 à 42 px (seuil : 44 px, Vercel / Apple). Le dessin ne change pas : on agrandit la zone qui répond au doigt. */
@media (max-width:768px){
  .sb-nouveau-mobile{min-height:44px}
  .sb-recherche,.sb-profil-bouton.compact,.btn-icon.chat-header-new{min-width:44px;min-height:44px}
  .lib-onglets>button{min-height:44px}
  .lib-puces>button,.sb-recents-tout{position:relative}
  .lib-puces>button::after,.sb-recents-tout::after{content:'';position:absolute;inset:-6px 0}
}
/* Sobriété (retour du 18/10 : « ça fait trop IA »). Constat sur ChatGPT et Claude (Projets vides, Planifié, Bibliothèque) : un état vide est du TEXTE posé —
   titre court, phrase grise, un bouton calme — sans pointillés ni tuile colorée ; l'accent sert aux actions et à l'état actif, pas à teinter chaque icône.
   Dans Astra : 13 cadres en pointillés et une quinzaine de tuiles d'icône teintées à l'accent (le « badge pastel » typique des interfaces générées). */
.proj-premier,.proj-vide,.sb-vide-carte,.cl-choisir{border:1px solid var(--border);background:transparent}
@media(hover:hover){.proj-premier:hover,.cl-choisir:hover:not(:disabled){border-color:color-mix(in srgb,var(--fg) 22%,var(--border));background:var(--surface-hover)}}
.proj-premier-titre{font-size:14px;font-weight:500;letter-spacing:0}
.sb-vide-carte b{font-weight:500}
.proj-premier-icone,.proj-depot-icone,.tache-prochaine-icone,.tache-exemple-icone,.lib-vide-icone,.cl-liaison-icone,.cl-ordi-icone,.installer-avantage-icone,.modal-icone,.notif-icone,.reglage-pastille,.reglage-pastille.violet{
  background:var(--surface-hover);color:var(--fg)}
.empty-state-icon,.proj-vide-action svg{color:var(--muted)}
/* Menus Code (observé dans Claude Code) : petit titre de groupe en gris, chiffre du raccourci à droite de chaque option, menu plus étroit. */
@media (min-width:769px){.cl-mode-menu{width:min(320px,calc(100vw - 40px))}}
.cl-mode-titre{padding:6px 12px 4px;font-size:12px;font-weight:500;letter-spacing:.01em;color:var(--muted)}
.cl-mode-option{border-radius:var(--radius-sm)}
.cl-mode-touche{flex-shrink:0;min-width:18px;padding:1px 5px;border-radius:5px;font:inherit;font-size:12px;line-height:1.5;text-align:center;color:var(--muted);background:var(--surface-hover);border:1px solid var(--border)}
/* Chat avec un artéfact (18/10) — l'aperçu (la maquette) n'est pas touché : seulement la carte dans la conversation et la barre du panneau.
   Constat sur la capture : l'onglet « Page » est coupé net (« Pag »), et la barre mélange trois langages (pastilles grises, bouton cerclé, bouton noir). */
.art-carte{transition:border-color var(--dur-fast),box-shadow var(--dur-base),background-color var(--dur-fast),transform .08s}
@media(hover:hover){.art-carte:hover{border-color:color-mix(in srgb,var(--fg) 24%,var(--border));background:var(--surface-hover);box-shadow:var(--shadow-sm)}}
.art-carte:active{transform:scale(.995)}
.art-carte:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
.art-panel{container-type:inline-size}
/* Les actions d'icône n'ont plus de fond gris au repos (un seul bouton plein : Exporter) ; le fond n'apparaît qu'au survol. */
.art-panel .od-viewer .ws-tabs-actions .chrome-action-icon:not(.is-active){background:transparent}
@media(hover:hover){.art-panel .od-viewer .ws-tabs-actions .chrome-action-icon:hover:not(:disabled){background:var(--surface-hover)}}
/* Panneau étroit : « Partager » garde son icône et libère la place aux onglets (plus rien n'est coupé). */
@container (max-width: 640px){
  .od-viewer .ws-tabs-actions .chrome-action-secondary.chrome-action-with-label:not(.chrome-action-dark) > span{display:none}
  .od-viewer .ws-tabs-actions .chrome-action-secondary.chrome-action-with-label:not(.chrome-action-dark){padding-inline:8px}
}
@container (max-width: 460px){
  /* Téléphone : les onglets non actifs se resserrent (noms raccourcis par « … », jamais masqués). */
  .od-viewer .ws-tab:not(.active) .ws-tab-label{max-width:84px}
  .od-viewer .ws-tab:not(.active){padding-inline:10px}
}
.art-panel .od-viewer .ws-tab{flex:0 0 auto}
.art-panel .od-viewer .ws-tab.active .ws-tab-label{max-width:132px}
/* Fiches d'Open Design « anti-slop » (craft/anti-ai-slop.md) : pas de dégradé « de confiance » ni de carte teintée par projet. Les cartes de projet, la prochaine tâche
   et le sélecteur verrouillé passent en aplat (même couleur que les autres cartes) ; la bordure reste neutre. */
.proj-carte{background:var(--carte)!important}
.tache-prochaine,html.dark .tache-prochaine{background:var(--carte)!important;border-color:var(--border)}
html.dark .proj-carte{background:var(--carte)!important}
.model-picker-locked{background:var(--surface);border-color:var(--border)}
/* ═══ fin de la finition premium ═══════════════════════════════════════════════════════════════════════════════════════════ */
/* ── Visuels interactifs dans le chat (tâche 5, 05/11/2026) : maquettes validées par le propriétaire ───────────────────────────── */
.vz{--vz-fond:#fff;margin:14px 0 18px;max-width:720px;padding:22px 24px;border:1px solid var(--border);border-radius:18px;background:var(--vz-fond);color:var(--fg);display:flex;flex-direction:column;gap:16px;font-size:14px;line-height:1.5}
:where(.vz) button{font:inherit;color:inherit}
html.dark .vz{--vz-fond:var(--bg)}
.vz{overflow-wrap:anywhere}
.vz-tete{display:flex;flex-direction:column;gap:2px;min-width:0}
.vz-liste-zone>*,.vz-recette>*,.vz-cartes>*{min-width:0}
.vz-carte-tete{flex-wrap:wrap}
.vz-carte-tete b,.vz-points>span>span{min-width:0}
.vz-pile{display:flex;flex-direction:column;gap:16px;min-width:0}
.vz-titre{font-size:16px;font-weight:600;letter-spacing:-.01em}
.vz-discret{color:var(--muted);font-size:13px}
.vz-accent{color:var(--accent)}
.vz-erreur{flex-direction:row;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;color:var(--muted)}
.vz .vz-bouton{border:0;border-radius:12px;background:var(--fg);color:var(--vz-fond);padding:11px 18px;font-size:14px;font-weight:600;cursor:pointer;line-height:1.2}
.vz .vz-bouton:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:3px}
@media(hover:hover){.vz-bouton:hover{opacity:.88}}
.vz .vz-lien{border:0;background:none;color:var(--muted);font-size:13px;text-decoration:underline;cursor:pointer;padding:4px}
.vz-pilule{display:inline-block;padding:2px 10px;border-radius:999px;background:var(--accent);color:var(--accent-ink,#fff);font-size:11px;font-weight:600;white-space:nowrap}
.vz-pilule.neutre{background:color-mix(in srgb,var(--accent) 12%,var(--vz-fond));color:var(--fg);font-size:12px;padding:4px 12px;font-variant-numeric:tabular-nums}
.vz-barre-outils{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
/* Squelette pendant l'écriture */
.vz-squelette{gap:12px}
.vz-sq-l,.vz-sq-bloc{display:block;border-radius:8px;background:linear-gradient(90deg,var(--surface-hover) 25%,color-mix(in srgb,var(--fg) 8%,var(--surface-hover)) 50%,var(--surface-hover) 75%);background-size:200% 100%;animation:vz-sq 1.4s linear infinite}
.vz-sq-l{height:14px;width:45%}.vz-sq-l.l2{width:30%}.vz-sq-bloc{height:150px;border-radius:12px}
@keyframes vz-sq{from{background-position:200% 0}to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.vz-sq-l,.vz-sq-bloc{animation:none}}
/* Légende et boutons à bascule */
.vz-legende{display:flex;gap:8px;flex-wrap:wrap}
.vz-puce{display:inline-flex;align-items:center;gap:8px;border:1px solid var(--border);background:var(--vz-fond);border-radius:999px;padding:5px 12px;font-size:13px;cursor:pointer}
.vz-puce[aria-pressed=false]{opacity:.5;text-decoration:line-through}
.vz-pastille{width:10px;height:10px;border-radius:3px;flex:none}
.vz-segment{display:inline-flex;gap:3px;background:var(--surface-hover);border-radius:10px;padding:3px}
.vz-segment button{border:0;background:transparent;border-radius:8px;padding:5px 12px;font-size:12px;color:var(--muted);cursor:pointer}
.vz-segment button[aria-pressed=true],.vz-segment button[aria-selected=true]{background:var(--vz-fond);color:var(--fg);font-weight:600;box-shadow:0 1px 2px rgba(0,0,0,.1)}
/* Barres */
.vz-graphe{display:flex;gap:10px;height:250px}
.vz-axe-y{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-end;font-size:12px;color:var(--muted);padding-bottom:26px;min-width:30px;font-variant-numeric:tabular-nums}
.vz-zone{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;border-left:1px solid var(--border)}
.vz-barres{flex:1;display:flex;align-items:flex-end;border-bottom:1px solid var(--border);padding:0 4px;min-height:0;min-width:0}
.vz-groupe{position:relative;flex:1 1 0;min-width:0;height:100%;display:flex;align-items:flex-end;justify-content:center;gap:3px;padding:0 5px;cursor:default;border-radius:6px 6px 0 0}
.vz-barre{flex:1 1 0;min-width:4px;max-width:34px;border-radius:5px 5px 0 0;min-height:0;transition:height var(--dur-lent) var(--ease-out,ease)}
.vz-groupe:hover .vz-barre{filter:brightness(.92)}
.vz-bulle{position:absolute;bottom:calc(100% + 6px);left:50%;transform:translateX(-50%);z-index:3;background:var(--fg);color:var(--vz-fond);border-radius:10px;padding:8px 12px;font-size:12px;line-height:1.5;width:max-content;max-width:min(240px,70vw);overflow-wrap:anywhere;pointer-events:none;box-shadow:0 6px 18px rgba(0,0,0,.18)}
.vz-bulle.debut{left:0;transform:none}
.vz-bulle.fin{left:auto;right:0;transform:none}
.vz-axe-x{display:flex;font-size:12px;color:var(--muted);height:20px;padding:0 4px;gap:0}
.vz-axe-x span{text-align:center;flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.vz-axe-x span.on{color:var(--fg);font-weight:600}
/* Courbe */
.vz-courbe{position:relative;margin-top:6px}
.vz-courbe svg{display:block;width:100%;height:auto;overflow:visible}
.vz-grille{stroke:var(--border);stroke-width:1;vector-effect:non-scaling-stroke}
.vz-aire{fill-opacity:.12}
.vz-repere{stroke:color-mix(in srgb,var(--fg) 40%,transparent);stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.vz-point{fill:var(--vz-fond);stroke-width:3}
.vz-bulle-courbe{top:6px;bottom:auto;transform:translateX(-50%)}
.vz-survol{position:absolute;inset:0;display:grid}
.vz-survol button{border:0;background:transparent;cursor:crosshair;padding:0;min-width:0}
.vz-axe-courbe{padding:0;margin-top:2px;gap:4px}
.vz-axe-courbe span{flex:1 1 0;min-width:0;text-align:center}
.vz-axe-courbe span:first-child{text-align:left}
.vz-axe-courbe span:last-child{text-align:right}
@media(max-width:480px){.vz-axe-courbe span:nth-child(2n):not(:last-child){display:none}}   /* petit écran : un repère sur deux, pour que les libellés restent lisibles */
/* Tableau */
.vz-filtre{display:flex;align-items:center;gap:8px;border:1px solid var(--border);border-radius:10px;padding:7px 12px;color:var(--muted);min-width:0;width:200px;max-width:100%}
.vz-filtre input{border:0;outline:0;background:none;color:var(--fg);font:inherit;font-size:13px;min-width:0;width:100%}
.vz-defile{overflow:auto;max-height:min(70vh,520px);border:1px solid var(--border);border-radius:12px}
.vz-table{width:100%;border-collapse:collapse;font-size:14px;overflow-wrap:break-word}
.vz-table th,.vz-table td{min-width:92px;max-width:280px;vertical-align:top}
.vz-table td{overflow-wrap:anywhere}
.vz-table th{position:sticky;top:0;z-index:1;background:var(--surface-hover);text-align:left;font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);padding:0;border-bottom:1px solid var(--border);white-space:nowrap}
.vz-table th button{border:0;background:none;cursor:pointer;display:inline-flex;align-items:center;gap:6px;padding:10px 14px;font-size:12px;font-weight:600;text-transform:inherit;letter-spacing:inherit;color:inherit;width:100%}
.vz-table th.num button{justify-content:flex-end}
.vz-tri{opacity:.5}.vz-tri.on{opacity:1;color:var(--fg)}
.vz-table td{padding:11px 14px;border-bottom:1px solid var(--border)}
.vz-table tr:last-child td{border-bottom:0}
.vz-table td.num{text-align:right;font-variant-numeric:tabular-nums;font-weight:500}
@media(hover:hover){.vz-table tbody tr:hover td{background:var(--surface-hover)}}
.vz-vide{text-align:center;color:var(--muted);padding:8px}
/* Schéma d'étapes */
.vz-etapes{display:flex}
.vz-et-cellule{flex:1;min-width:0}
.vz-et{width:100%;border:0;background:none;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:12px;padding:0;border-radius:12px}
.vz-et-haut{align-self:stretch;display:flex;align-items:center;height:44px}
.vz-et-l{flex:1;height:2px;background:var(--border)}
.vz-et-l[data-etat=fait]{background:var(--accent)}
.vz-et-rond{width:40px;height:40px;border-radius:999px;border:2px solid var(--border);box-sizing:border-box;display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:600;color:var(--muted);background:var(--vz-fond);flex:none}
.vz-et.fait .vz-et-rond{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
.vz-et.courant .vz-et-rond{border-color:var(--accent);color:var(--accent);box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 16%,transparent)}
.vz-et:not(.fait):not(.courant):not(.avenir) .vz-et-rond{color:var(--fg)}
.vz-et.sel .vz-et-rond{border-color:var(--accent)}
.vz-et-bas{display:flex;flex-direction:column;align-items:center;gap:3px;text-align:center;font-size:12px;padding:0 4px}
.vz-et-bas b{font-size:15px;font-weight:600}
.vz-et-statut{font-size:12px;font-weight:500;margin-top:3px;color:var(--muted)}
.vz-et-statut.fait{color:var(--success)}.vz-et-statut.courant{color:var(--accent)}
.vz-detail{background:var(--surface-hover);border-radius:14px;padding:16px 18px;display:flex;flex-direction:column;gap:4px}
.vz-detail b{font-size:16px}.vz-detail p{margin:0;color:var(--muted)}
.vz-etapes.vertical{flex-direction:column}
.vz-etapes.vertical .vz-et{flex-direction:row;align-items:stretch;gap:14px;text-align:left}
.vz-etapes.vertical .vz-et-haut{flex-direction:column;height:auto;width:40px;flex:none}
.vz-etapes.vertical .vz-et-l{width:2px;height:auto;min-height:10px}
.vz-etapes.vertical .vz-et-bas{align-items:flex-start;text-align:left;padding:6px 0 10px}
@media(max-width:560px){
  .vz-etapes{flex-direction:column}
  .vz-et{flex-direction:row;align-items:stretch;gap:14px;text-align:left}
  .vz-et-haut{flex-direction:column;height:auto;width:40px;flex:none}
  .vz-et-l{width:2px;height:auto;min-height:10px}
  .vz-et-bas{align-items:flex-start;text-align:left;padding:6px 0 10px}
}
/* Calculette */
.vz-curseurs{display:flex;flex-direction:column;gap:20px}
.vz-curseur label{display:flex;justify-content:space-between;gap:12px;font-size:14px;margin-bottom:4px}
.vz-curseur input[type=range]{width:100%;-webkit-appearance:none;appearance:none;height:28px;margin:0;padding:0;background:transparent;outline:0;cursor:pointer;display:block}
.vz-curseur input[type=range]::-webkit-slider-runnable-track{height:6px;border-radius:999px;background:linear-gradient(to right,var(--accent) var(--vz-pct,0%),var(--border) var(--vz-pct,0%))}
.vz-curseur input[type=range]::-moz-range-track{height:6px;border-radius:999px;background:linear-gradient(to right,var(--accent) var(--vz-pct,0%),var(--border) var(--vz-pct,0%))}
.vz-curseur input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;margin-top:-8px;border-radius:999px;background:var(--vz-fond);border:2px solid var(--accent);box-sizing:border-box;cursor:grab}
.vz-curseur input[type=range]::-moz-range-thumb{width:22px;height:22px;border-radius:999px;background:var(--vz-fond);border:2px solid var(--accent);box-sizing:border-box;cursor:grab}
.vz-curseur input[type=range]:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:4px;border-radius:8px}
.vz-resultats{display:flex;gap:12px;flex-wrap:wrap}
.vz-resultat{flex:1;min-width:140px;background:var(--surface-hover);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.vz-resultat b{font-size:26px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.01em}
/* Cartes : comparaison et décision */
.vz-cartes{display:grid;gap:12px}
.vz-carte{text-align:left;border:1px solid var(--border);border-radius:16px;background:var(--vz-fond);padding:16px;display:flex;flex-direction:column;gap:12px;cursor:pointer;min-width:0}
.vz-carte-fixe{cursor:default}
.vz-carte.on{border:2px solid var(--accent);padding:15px;background:color-mix(in srgb,var(--accent) 6%,var(--vz-fond))}
.vz-carte-tete{display:flex;justify-content:space-between;align-items:center;gap:8px}
.vz-prix{display:flex;align-items:baseline;gap:6px}.vz-prix b{font-size:24px;font-weight:600;font-variant-numeric:tabular-nums}
.vz-points{display:flex;flex-direction:column;gap:8px;font-size:13px;line-height:1.4;border-top:1px solid var(--border);padding-top:12px}
.vz-points>span{display:flex;gap:8px;align-items:flex-start}
.vz-points>span svg{flex:none;margin-top:2px;color:var(--accent)}
.vz-points>span.non{color:var(--muted)}.vz-points>span.non svg{color:var(--muted)}
.vz-note{display:flex;align-items:center;justify-content:space-between;gap:8px}
.vz-note-val{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:0 4px;min-width:0}.vz-note-val b{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.02em;white-space:nowrap;overflow-wrap:normal}
.vz-pm{width:32px;height:32px;border-radius:999px;border:1px solid var(--border);background:var(--surface-hover);font-size:18px;line-height:1;cursor:pointer;display:grid;place-items:center}
.vz-jauge{display:block;height:6px;border-radius:999px;background:var(--border)}.vz-jauge span{display:block;height:6px;border-radius:999px;background:color-mix(in srgb,var(--fg) 35%,var(--vz-fond))}
.vz-carte.on .vz-jauge span{background:var(--accent)}
@media(max-width:560px){.vz-cartes{grid-template-columns:1fr!important}}
/* Liste à cocher, minuteur, recette */
.vz-liste-zone{display:grid;gap:14px}
.vz-liste-zone.avec-minuteur{grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);align-items:stretch}
@media(max-width:560px){.vz-liste-zone.avec-minuteur{grid-template-columns:1fr}}
.vz-progres-tete{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:8px}
.vz-progres{height:6px;border-radius:999px;background:var(--border)}.vz-progres span{display:block;height:6px;border-radius:999px;background:var(--accent);transition:width var(--dur-lent) var(--ease-out,ease)}
.vz-coches{list-style:none;margin:8px 0 0;padding:0;display:flex;flex-direction:column}
.vz-coches li{border-bottom:1px solid var(--border)}.vz-coches li:last-child{border-bottom:0}
.vz-coches label{display:flex;align-items:center;gap:12px;padding:10px 0;cursor:pointer;position:relative}
.vz-coches label.fait>span:last-child{color:var(--muted);text-decoration:line-through}
.vz-coches input{position:absolute;opacity:0;width:20px;height:20px;margin:0}
.vz-case{width:20px;height:20px;border-radius:6px;border:2px solid color-mix(in srgb,var(--fg) 40%,var(--vz-fond));box-sizing:border-box;display:grid;place-items:center;flex:none;color:transparent;background:var(--vz-fond)}
.vz-coches label.fait .vz-case{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
.vz-coches input:focus-visible+.vz-case{outline:2px solid var(--repere-clavier);outline-offset:3px}
.vz-minuteur{border:1px solid var(--border);border-radius:16px;padding:16px;display:flex;flex-direction:column;justify-content:space-between;gap:12px;text-align:center}
.vz-temps{font-size:42px;font-weight:600;font-variant-numeric:tabular-nums;letter-spacing:-.02em}
.vz-minuteur-actions{display:flex;flex-direction:column;align-items:center;gap:6px}
.vz-minuteur-actions .vz-bouton{width:100%}
.vz-recette{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:14px}
@media(max-width:560px){.vz-recette{grid-template-columns:1fr}}
.vz-recette-droite{background:var(--surface-hover);border-radius:14px;padding:16px 18px}
.vz-pas{display:inline-flex;align-items:center;gap:4px;border:1px solid var(--border);border-radius:999px;padding:3px}
.vz-pas span{min-width:84px;text-align:center;font-size:13px;font-weight:600;font-variant-numeric:tabular-nums}
.vz-pas button{width:28px;height:28px;border:0;border-radius:999px;background:var(--surface-hover);font-size:16px;cursor:pointer}
.vz-pas button:disabled,.vz-pm:disabled{opacity:var(--inactif);cursor:default}
.vz-ingredients{list-style:none;margin:0;padding:0}
.vz-ingredients li{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--border)}.vz-ingredients li:last-child{border-bottom:0}
.vz-ingredients b{font-variant-numeric:tabular-nums;white-space:nowrap}
/* Planning */
.vz-jours{align-self:flex-start;flex-wrap:wrap}
.vz-planning{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.vz-planning li{display:flex;gap:14px;align-items:stretch}
.vz-heure{width:48px;flex:none;color:var(--muted);font-size:13px;font-variant-numeric:tabular-nums;padding-top:13px}
.vz-bloc{flex:1;min-width:0;display:flex;align-items:center;gap:12px;border:1px solid var(--border);border-radius:12px;padding:11px 14px;background:var(--vz-fond);cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;transition:transform var(--dur-base) var(--ease-out,ease),box-shadow var(--dur-base)}
.vz-planning.calme .vz-bloc{transition:none}
.vz-bloc:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
.vz-bloc.prise{cursor:grabbing;position:relative;z-index:3;transition:box-shadow var(--dur-base);box-shadow:0 14px 30px -8px rgba(0,0,0,.28);border-color:var(--accent)}
.vz-poignee{flex:none;color:var(--muted)}
.vz-bloc-texte{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
/* Quiz */
.vz-question{font-size:18px;font-weight:600;line-height:1.35}
.vz-reponses{display:flex;flex-direction:column;gap:10px}
.vz-reponse{display:flex;align-items:center;gap:12px;text-align:left;border:1px solid var(--border);background:var(--vz-fond);border-radius:12px;padding:12px 16px;cursor:pointer}
@media(hover:hover){.vz-reponse:not(.juste):not(.faux):not(.neutre):hover{background:var(--surface-hover)}}
.vz-lettre{width:24px;height:24px;border-radius:999px;background:var(--surface-hover);display:grid;place-items:center;font-size:12px;font-weight:600;flex:none}
.vz-reponse.juste{border:2px solid var(--success);padding:11px 15px;background:color-mix(in srgb,var(--success) 12%,var(--vz-fond));font-weight:600}
.vz-reponse.juste .vz-lettre{background:var(--success);color:#fff}
.vz-reponse.faux{border:2px solid var(--danger);padding:11px 15px;background:color-mix(in srgb,var(--danger) 10%,var(--vz-fond))}
.vz-reponse.faux .vz-lettre{background:var(--danger);color:#fff}
.vz-reponse.neutre{opacity:.6}
.vz-explication{background:var(--surface-hover);border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.vz-explication span{color:var(--muted)}
.vz-quiz-fin{display:flex;flex-direction:column;gap:14px;align-items:flex-start}.vz-quiz-fin b{font-size:22px}
.vz-quiz-fin .vz-progres{align-self:stretch}
/* Tableau de suivi */
.vz-kanban{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(190px,1fr);gap:12px;overflow-x:auto;align-items:flex-start;padding-bottom:4px}
.vz-colonne{background:var(--surface-hover);border-radius:16px;padding:12px;display:flex;flex-direction:column;gap:10px;min-height:90px}
.vz-colonne.cible{outline:2px dashed var(--accent);outline-offset:-2px}
.vz-kanban{overflow-y:visible}
.vz-colonne-tete{display:flex;justify-content:space-between;align-items:flex-start;gap:8px;padding:2px 4px;font-size:13px}
.vz-colonne-tete b{min-width:0}
.vz-colonne-tete span{flex:none;white-space:nowrap}
.vz-fiche{background:var(--vz-fond);border:1px solid var(--border);border-radius:12px;padding:11px 12px;display:flex;justify-content:space-between;gap:8px;align-items:flex-start;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none;transition:box-shadow var(--dur-base)}
.vz-fiche:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
.vz-fiche.prise{cursor:grabbing;position:relative;z-index:5;box-shadow:0 14px 30px -8px rgba(0,0,0,.28);border-color:var(--accent)}
.vz-fiche-texte{display:flex;flex-direction:column;gap:3px;min-width:0;overflow-wrap:anywhere}
/* ── États communs (od/craft/state-coverage.md, accessibility-baseline.md) ─────────────────────────────────────────────────────────────────
   Champ en erreur : visible sans dépendre de la couleur seule (bordure + message), jamais avant le premier passage dans le champ (:user-invalid). */
input:user-invalid,textarea:user-invalid,select:user-invalid,[aria-invalid="true"]{border-color:var(--danger)!important;box-shadow:0 0 0 1px var(--danger)}
.champ-erreur{margin-top:6px;font-size:var(--text-sm);line-height:1.4;color:var(--danger)}
/* Désactivé : une seule opacité et un seul curseur pour tout le produit. */
.btn:disabled,button.btn[disabled],[aria-disabled="true"]{opacity:var(--inactif);cursor:not-allowed}
/* Au clavier : même anneau partout pour les éléments cliquables qui n'en avaient pas. */
a:focus-visible,summary:focus-visible,[role=button]:focus-visible,[tabindex="0"]:focus-visible{outline:2px solid var(--repere-clavier);outline-offset:2px}
/* Pas de halo au clic ni au toucher (ni bleu, ni autre couleur) : le contour de focus n'existe qu'au clavier (touche Tab, flèches).
   Le petit script du <head> pose data-clavier sur <html> après une touche de navigation et le retire au premier clic ou toucher ;
   sans lui, un focus donné par le code (menu qui se ferme, fenêtre qui s'ouvre) pouvait faire apparaître le halo du navigateur après un clic. */
:root{--repere-clavier:color-mix(in srgb,var(--fg) 55%,transparent)}
@media (forced-colors:none){
  html:not([data-clavier]) :focus-visible:not(.sel):not(.on):not(.selected){outline:none!important}
  html[data-clavier] :focus-visible:not(input):not(textarea):not(select):not([contenteditable]):not(.sel):not(.on):not(.selected){outline:2px solid var(--repere-clavier)!important;outline-offset:2px}
}
/* Doigt : cibles d'au moins 44 px (seuil Apple / WCAG 2.5.5) pour les boutons courants. */
@media(pointer:coarse){.btn-icon:not([style*="width"]),.btn-sm{min-width:44px;min-height:44px}.btn-sm{padding-top:0;padding-bottom:0}}
/* Contraste forcé (Windows) : on garde les contours et les bordures. */
@media (forced-colors:active){
  .btn,.chat-input,input,textarea,select,.modal{border:1px solid CanvasText}
  :focus-visible{outline:2px solid Highlight!important}
}
@media (prefers-contrast:more){:root{--muted:oklch(.4 0 0);--border:oklch(.55 0 0)}.dark{--muted:oklch(.78 0 0);--border:oklch(.5 0 0)}}

/* ── Langues écrites de droite à gauche (arabe…) : la page passe en dir="rtl" (i18n/runtime.js). Les marges et alignements suivent seuls ;
   ici on corrige ce qui est posé en dur à gauche ou à droite. ── */
html[dir="rtl"] .sidebar{border-right:0;border-left:1px solid var(--border)}
html[dir="rtl"] .sidebar-logo a,html[dir="rtl"] .sidebar-logo a *{direction:ltr;unicode-bidi:isolate}
/* Flèches et chevrons qui indiquent un sens (suivant, retour, envoyer, lien externe) : retournés en miroir. « scale » se combine avec les rotations déjà posées. */
html[dir="rtl"] .ico-dir{scale:-1 1}
/* Curseur des graphiques : en droite-à-gauche la valeur 0 est à droite, la partie remplie suit. */
html[dir="rtl"] .vz-curseur input[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to left,var(--accent) var(--vz-pct,0%),var(--border) var(--vz-pct,0%))}
html[dir="rtl"] .vz-curseur input[type=range]::-moz-range-track{background:linear-gradient(to left,var(--accent) var(--vz-pct,0%),var(--border) var(--vz-pct,0%))}
/* Visuels du chat en arabe : les graphiques gardent l'axe du temps de gauche à droite (barres et courbe) ; les nombres, prix, unités et formules
   restent lisibles de gauche à droite (« 20 000 $ », « 500 g ») ; les alignements posés en dur à gauche passent à droite. */
html[dir="rtl"] .vz-graphe,html[dir="rtl"] .vz-courbe,html[dir="rtl"] .vz-axe-courbe{direction:ltr}
html[dir="rtl"] .vz-bulle{direction:rtl;text-align:right}
html[dir="rtl"] .vz-curseur label b,html[dir="rtl"] .vz-resultat b,html[dir="rtl"] .vz-prix b,html[dir="rtl"] .vz-note-val b,html[dir="rtl"] .vz-temps,html[dir="rtl"] .vz-ingredients b,
html[dir="rtl"] .vz-heure,html[dir="rtl"] .vz-table td.num,html[dir="rtl"] .vz-axe-y{direction:ltr;unicode-bidi:isolate}
html[dir="rtl"] .vz-table th,html[dir="rtl"] .vz-carte,html[dir="rtl"] .vz-reponse{text-align:right}
html[dir="rtl"] .vz-table th.num button{justify-content:flex-start}
html[dir="rtl"] .vz-etapes.vertical .vz-et,html[dir="rtl"] .vz-etapes.vertical .vz-et-bas{text-align:right}
@media(max-width:560px){html[dir="rtl"] .vz-et,html[dir="rtl"] .vz-et-bas{text-align:right}}
/* Panneau d'artefacts : fermé il attend à gauche (miroir), ouvert il se pose ; la règle « fermé » généré plus bas ne doit pas gagner sur « ouvert ». */
html[dir="rtl"] .art-panel.open,html[dir="rtl"] .art-panel.art-panel--plein{transform:none}
@media(min-width:769px){html[dir="rtl"] .pa-panneau{margin:0 0 8px 8px}}
/* Panneau d'artefacts : le décor posé en coordonnées d'écran (planches du canevas, poignées, barre de style) ne se retourne pas ;
   seuls les contrôles du panneau (en-tête, menus, pied) sont placés en miroir. Le code reste de gauche à droite. */
html[dir="rtl"] .pa-tete{padding:0 20px 0 16px}
html[dir="rtl"] .pa-pilule{padding:0 11px 0 10px}
html[dir="rtl"] .pa-partager{padding:0 13px 0 15px}
html[dir="rtl"] .pa-mode{padding:0 12px 0 10px}
html[dir="rtl"] .pa-mode--zoom{padding-left:10px;padding-right:14px}
html[dir="rtl"] .pa-vue-tete{padding:0 12px 0 14px}
html[dir="rtl"] .pa-menu--droite{right:auto;left:0}
html[dir="rtl"] .pa-menu--gauche{left:auto;right:0}
html[dir="rtl"] .pa-item{text-align:right}
html[dir="rtl"] .pa-pied-bouton,html[dir="rtl"] .pa-puce-texte,html[dir="rtl"] .pa-raccourci{margin-left:0;margin-right:auto}
html[dir="rtl"] .pa-seg--chev{margin-left:0;margin-right:-6px}
html[dir="rtl"] .pa-bs-type{padding:0 8px 0 12px;margin-right:0;margin-left:4px;border-right:0;border-left:1px solid var(--pa-trait)}
html[dir="rtl"] .pa-code,html[dir="rtl"] .pa-code--edition{direction:ltr;text-align:left}
/* Compteurs « +3 −1 » de l'espace Code et lignes de comparaison de fichiers : de gauche à droite (le signe reste devant le nombre). */
html[dir="rtl"] .cl-etape-meta .plus,html[dir="rtl"] .cl-etape-meta .moins,html[dir="rtl"] .cl-diff{direction:ltr;unicode-bidi:isolate}
/* Code, commandes, raccourcis : toujours de gauche à droite, même au milieu d'une phrase arabe. */
html[dir="rtl"] body pre,html[dir="rtl"] body code,html[dir="rtl"] body kbd,html[dir="rtl"] body samp,html[dir="rtl"] body .mono{direction:ltr;unicode-bidi:isolate;text-align:left}
html[dir="rtl"] body code{unicode-bidi:isolate}
html[dir="rtl"] body [class*="raccourci"]{direction:ltr;unicode-bidi:isolate}
/* Adresses, e-mails, nombres, noms de modèles : une suite de lettres latines ne doit pas se retourner au milieu d'un texte arabe. */
html[dir="rtl"] body input[type="email"],html[dir="rtl"] body input[type="url"],html[dir="rtl"] body input[type="number"],html[dir="rtl"] body input[type="tel"],html[dir="rtl"] body input[type="password"]{direction:ltr;text-align:right}
html[dir="rtl"] body input[type="email"]::placeholder,html[dir="rtl"] body input[type="url"]::placeholder{direction:rtl}
@media(max-width:768px){
  html[dir="rtl"] .sidebar{left:auto;right:0;transform:translateX(100%)}
  html[dir="rtl"] .sidebar.open{transform:translateX(0)}
}

/* ── Fenêtre « Choisissez votre langue » : recherche, cartes sur 3 colonnes (2 sur tablette, 1 sur téléphone), langue choisie cochée ── */
.modale-langues .modal{max-width:880px;width:min(880px,94vw)}
.modale-langues .modal-corps{display:flex;flex-direction:column;gap:14px;min-height:0}
.cl-recherche{display:flex;align-items:center;gap:10px;padding:0 14px;height:46px;border:1.5px solid var(--border);border-radius:14px;background:var(--surface);color:var(--fg-muted,var(--fg))}
.cl-recherche:focus-within{border-color:var(--accent)}
.cl-recherche input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;color:var(--fg);font-size:16px}
.cl-grille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;overflow-y:auto;max-height:min(56vh,520px);padding:2px}
.cl-carte{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:start;padding:12px 14px;border:0;border-radius:12px;background:transparent;color:var(--fg);cursor:pointer;min-width:0}
.cl-carte:hover{background:var(--bg-hover,rgba(127,127,127,.12))}
.cl-carte.on{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}
.cl-carte svg{flex:none;width:18px;height:18px;color:var(--accent)}
.cl-textes{display:flex;flex-direction:column;min-width:0}
.cl-natif{font-size:15px;font-weight:500;overflow-wrap:anywhere}
.cl-sous{font-size:13px;opacity:.65;overflow-wrap:anywhere}
.cl-vide{padding:24px;text-align:center;opacity:.65}
.reglage-langue{display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.ml-racine{position:relative;display:inline-block;flex-shrink:0}
.ml-menu{position:absolute;inset-inline-end:0;top:calc(100% + 6px);z-index:60;width:min(300px,calc(100vw - 32px));display:flex;flex-direction:column;padding:6px;border:1px solid var(--border);border-radius:14px;background:var(--surface,var(--bg));box-shadow:0 10px 32px rgba(0,0,0,.18)}
.ml-menu.en-haut{top:auto;bottom:calc(100% + 6px)}
.ml-recherche{display:flex;align-items:center;gap:8px;padding:0 10px;height:38px;margin:0 0 4px;border-radius:10px;color:var(--fg-muted,var(--fg))}
.ml-recherche svg{flex:none;width:16px;height:16px}
.ml-recherche input{flex:1;min-width:0;border:0;outline:0;background:transparent;font:inherit;font-size:15px;color:var(--fg)}
.ml-liste{display:flex;flex-direction:column;overflow-y:auto;max-height:min(280px,45vh);overscroll-behavior:contain}
.ml-option{display:flex;align-items:center;gap:8px;width:100%;text-align:start;padding:9px 10px;border:0;border-radius:9px;background:transparent;color:var(--fg);font:inherit;font-size:15px;cursor:pointer}
.ml-option:hover,.ml-option:focus-visible{background:var(--bg-hover,rgba(127,127,127,.14));outline:0}
.ml-option.on{background:color-mix(in srgb,var(--accent) 12%,var(--surface,var(--bg)))}
.ml-natif{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ml-sous{flex:none;font-size:13px;opacity:.6}
.ml-option svg{flex:none;width:16px;height:16px;color:var(--accent)}
@media(max-width:560px){.ml-menu{position:fixed;inset-inline:16px;top:auto;bottom:16px;width:auto}.ml-menu.en-haut{bottom:16px}.ml-liste{max-height:50vh}}
@media(max-width:900px){.cl-grille{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.cl-grille{grid-template-columns:minmax(0,1fr);max-height:58vh}}
/* ══ Lot F (12/11/2026) : pages secondaires au gabarit de la référence (copie de Claude, `pages.css`) — ordinateur seulement ══
   .pg-h / h1 : colonne centrée de 960 px, titre 28/40 px de graisse normale, sans barre ni trait ; .btn-dark.lg : action compacte et sombre de 32 px,
   rayon 9 ; .tabb : onglets de 30 px, rayon 8, l'actif sur fond neutre ; .tpl : modèles sur deux colonnes, tuile d'icône de 36 px, sans bordure ;
   .empty-st : état vide centré (icône, phrase, bouton discret). Le téléphone garde sa barre du haut et ses cartes. */
@media(min-width:769px){
  .vue-principale .top-bar.lib-barre{min-height:0;padding:53px max(28px,calc((100% - 960px)/2)) 0!important;border-bottom:0;background:transparent;box-shadow:none;flex-wrap:nowrap;gap:6px}
  .vue-principale .lib-barre .top-bar-title{font-size:28px;line-height:40px;font-weight:400;letter-spacing:-.2px;text-align:start}
  .vue-principale .lib-barre .btn.action-pc{height:32px;min-height:32px;padding:0 12px;border:0;border-radius:9px;gap:6px;font-size:14px;font-weight:400;background:var(--fg);color:var(--bg);box-shadow:none}
  .vue-principale .lib-barre .btn.action-pc:hover{background:color-mix(in srgb,var(--fg) 84%,var(--bg));color:var(--bg)}
  .vue-principale .lib-barre .btn.action-pc svg{width:14px;height:14px}
  .proj-page>.library-page,.lib-page>.library-page{max-width:none;width:100%;margin:0;padding-top:20px!important;padding-inline:max(28px,calc((100% - 960px)/2))!important}
  /* Onglets (Bibliothèque) */
  .lib-page .lib-onglets{display:flex;gap:4px;padding:0;margin:0 0 22px;max-width:none;border-radius:0;background:none}
  .lib-page .lib-onglets>button{height:30px;min-height:30px;padding:0 12px;border-radius:8px;font-size:15px;font-weight:400;color:var(--fg);box-shadow:none;transition:background-color .06s linear}
  .lib-page .lib-onglets>button:hover{background:var(--surface-hover)}
  .lib-page .lib-onglets>button.actif,html:not(.dark) .lib-page .lib-onglets>button.actif{background:color-mix(in srgb,var(--fg) 10%,transparent);box-shadow:none}
  /* Modèles de tâches (Planifiées, quand il n'y en a aucune) */
  .taches-page .tache-section-tete{margin:26px 2px 12px;font-size:14px;font-weight:400;color:var(--muted)}
  .tache-vide .tache-exemples{grid-template-columns:1fr 1fr;gap:20px 40px}
  .tache-vide .tache-exemples button,html:not(.dark) .tache-vide .tache-exemples button{align-items:flex-start;gap:14px;padding:6px 8px;border:0;border-radius:10px;background:transparent;box-shadow:none;transition:background-color .06s linear}
  .tache-vide .tache-exemples button:hover{background:var(--surface-hover);box-shadow:none}
  .tache-vide .tache-exemple-icone{width:36px;height:36px;border-radius:8px}
  .tache-vide .tache-exemple-icone svg{width:18px;height:18px}
  .tache-vide .tache-exemples strong{font-size:15px;line-height:20px;font-weight:400;letter-spacing:0}
  .tache-vide .tache-exemples strong+span{font-size:14px;line-height:20px;color:var(--muted)}
  .tache-vide .tache-exemple-plus{display:none}
  /* Aucun projet : état vide centré */
  .proj-grille:has(>.proj-premier){display:flex;justify-content:center;padding-top:76px}
  .proj-grille>.proj-premier{width:auto;flex-direction:column;align-items:center;gap:0;padding:0;border:0;background:none;text-align:center;box-shadow:none}
  .proj-grille>.proj-premier:hover{border:0;background:none;box-shadow:none;transform:none}
  .proj-premier .proj-premier-icone{width:64px;height:64px;border-radius:16px;margin-bottom:22px}
  .proj-premier .proj-premier-icone svg{width:26px;height:26px}
  .proj-premier .proj-premier-texte{align-items:center;gap:0}
  .proj-premier .proj-premier-titre{font-size:14px;line-height:20px;font-weight:400;letter-spacing:0;color:color-mix(in srgb,var(--fg) 72%,transparent);margin-bottom:16px}
  .proj-premier .proj-premier-desc{display:inline-flex;align-items:center;height:28px;padding:0 12px;border-radius:8px;font-size:14px;color:var(--fg);background:color-mix(in srgb,var(--fg) 6%,transparent);transition:background-color .06s linear}
  .proj-premier:hover .proj-premier-desc{background:color-mix(in srgb,var(--fg) 10%,transparent)}
  .proj-premier .proj-premier-intro{display:block;max-width:320px;margin:0 0 16px;font-size:13.5px;line-height:19px;color:var(--muted)}
  .projects-page:has(.proj-premier)>.lib-intro,.projects-page:has(.proj-premier)>.lib-outils{display:none}
  .vue-principale .lib-barre .btn.action-pc svg{display:none}
  /* États vides des pages : phrase discrète, pas de titre gras */
  .lib-page .lib-vide,.proj-page .lib-vide:not(.tache-vide){padding-top:76px}
  .lib-page .lib-vide-titre,.proj-page .lib-vide-titre{font-size:14.5px;line-height:20px;font-weight:400;color:color-mix(in srgb,var(--fg) 72%,transparent)}
  .lib-page .lib-vide p,.proj-page .lib-vide p{max-width:320px;font-size:13.5px;line-height:19px}
  .lib-page .lib-vide-icone,.proj-page .lib-vide-icone{width:64px;height:64px;border-radius:16px;margin-bottom:12px}
}
.proj-premier-intro{display:none}
/* ══ Paramètres (ordinateur) au gabarit de la référence — 12/11/2026, demande du propriétaire : « changer le design, garder les mêmes infos » ══
   Copie de Claude : `#settings .modal` (1024 × 600, rayon 14), `.s-nav` (211 px, recherche 30 px, entrées 33 px / 14,5 px, l'active sur fond neutre),
   `.s-main` (titres 15,5 px / 500, lignes à plat séparées d'un trait fin, description 13,5 px), `.btn-ghost` / `.btn-dark` (28 px, rayon 8), `.field` (30 px),
   `.seg3`. AUCUN texte, réglage ou bouton n'est retiré : seules les cartes, les tailles et les couleurs changent. Le téléphone n'est pas concerné. */
@media(min-width:769px){
  .reglages-fond{padding:36px 32px;align-items:flex-start;background:rgba(0,0,0,.4)}
  .settings-view.settings-pro.reglages-fenetre{grid-template-columns:211px minmax(0,1fr);grid-template-rows:44px minmax(0,1fr);width:min(1024px,100%);height:min(600px,100%);border:0;border-radius:14px;background:var(--surface);box-shadow:0 8px 40px rgba(0,0,0,.2)}
  html.dark .settings-view.settings-pro.reglages-fenetre{box-shadow:0 8px 40px rgba(0,0,0,.6),0 0 0 .5px rgba(255,255,255,.1)}
  /* Barre de titre : le nom de la fenêtre (son libellé accessible, déjà traduit) et la croix */
  .settings-view.settings-pro.reglages-fenetre::before{content:attr(aria-label);grid-column:1/-1;grid-row:1;display:flex;align-items:center;padding:0 16px;font-size:14.5px;border-bottom:1px solid var(--border)}
  .settings-view.settings-pro.reglages-fenetre>.reglages-fermer{top:6px;right:8px;width:32px;height:32px;border-radius:8px}
  .settings-view.settings-pro.reglages-fenetre>.reglages-fermer svg{width:18px;height:18px}
  /* Colonne de gauche */
  .settings-view.settings-pro.reglages-fenetre>.reglages-colonne{grid-row:2;padding:16px 12px 16px 16px;background:transparent;scrollbar-gutter:stable}
  .settings-view.settings-pro.reglages-fenetre .reglages-recherche{height:30px;min-height:30px;padding:0 10px;margin:0 0 12px;gap:8px;border:1px solid var(--border);border-radius:9px;background:var(--surface)}
  .settings-view.settings-pro.reglages-fenetre .reglages-recherche svg{width:15px;height:15px}
  .settings-view.settings-pro.reglages-fenetre .reglages-recherche input{font-size:14px}
  .settings-view.settings-pro.reglages-fenetre .reglages-menu-titre{display:none}   /* le mot est déjà dans la barre de titre */
  .settings-view.settings-pro.reglages-fenetre .reglages-groupe{margin:0}
  .settings-view.settings-pro.reglages-fenetre .reglages-groupe+.reglages-groupe{margin-top:22px;padding-top:0;border-top:0}
  .settings-view.settings-pro.reglages-fenetre .reglages-ligne{height:33px;min-height:33px;padding:0 10px;gap:12px;border-radius:8px;font-size:14.5px;font-weight:400;transition:background-color .06s linear}
  .settings-view.settings-pro.reglages-fenetre .reglages-ligne.selected{font-weight:400;background:color-mix(in srgb,var(--fg) 10%,transparent)}
  .settings-view.settings-pro.reglages-fenetre .reglages-ligne-icone,.settings-view.settings-pro.reglages-fenetre .reglages-ligne-icone svg{width:17px;height:17px}
  /* Contenu : à plat, plus de cartes */
  .settings-view.settings-pro.reglages-fenetre>.view-container,html:not(.dark) .settings-view.settings-pro.reglages-fenetre>.view-container{grid-row:2;padding:3px 26px 28px 16px;background:var(--surface)}
  .settings-view.settings-pro.reglages-fenetre .page-col{max-width:none;gap:0}
  .settings-view.settings-pro.reglages-fenetre .page-col>.flex-col,.settings-view.settings-pro.reglages-fenetre .page-col .flex-col.gap-16{gap:26px}
  .settings-view.settings-pro.reglages-fenetre .settings-page-title{font-size:17px;line-height:24px;font-weight:500;letter-spacing:0;margin:10px 0 12px}
  .settings-view.settings-pro.reglages-fenetre .card,html:not(.dark) .settings-view.settings-pro.reglages-fenetre .card,html.dark .settings-view.settings-pro.reglages-fenetre .card{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
  .settings-view.settings-pro.reglages-fenetre .settings-section-title{margin:0 0 9px!important;padding:0!important;border:0!important;font-size:15.5px!important;line-height:22px;font-weight:500!important;letter-spacing:0!important;text-transform:none!important;color:var(--fg)!important}
  .settings-view.settings-pro.reglages-fenetre .settings-row{min-height:54px;padding:8px 0;gap:20px;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}
  .settings-view.settings-pro.reglages-fenetre .card>.settings-row:last-child,.settings-view.settings-pro.reglages-fenetre .card>div>.settings-row:last-child{border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}
  .settings-view.settings-pro.reglages-fenetre .settings-row-label{font-size:15px;line-height:20px;font-weight:400}
  .settings-view.settings-pro.reglages-fenetre .settings-row-desc{margin-top:2px;max-width:72ch;font-size:14px;line-height:19px;color:var(--ref-fg3)}
  .settings-view.settings-pro.reglages-fenetre .reglages-texte,.settings-view.settings-pro.reglages-fenetre .reglages-note{font-size:13.5px;line-height:19px}
  .settings-view.settings-pro.reglages-fenetre .reglage-valeur{font-size:14.5px}
  /* Boutons, champs, segments */
  .settings-view.settings-pro.reglages-fenetre .view-container .btn{height:28px;min-height:28px;padding:0 10px;border-radius:8px;font-size:14px;font-weight:400;box-shadow:none}
  .settings-view.settings-pro.reglages-fenetre .view-container .btn-primary{border:0;background:var(--fg);color:var(--bg)}
  .settings-view.settings-pro.reglages-fenetre .view-container .btn-primary:hover:not(:disabled){background:color-mix(in srgb,var(--fg) 84%,var(--bg));color:var(--bg)}
  .settings-view.settings-pro.reglages-fenetre .view-container .btn-secondary{border:0;background:color-mix(in srgb,var(--fg) 6%,transparent);color:var(--fg)}
  .settings-view.settings-pro.reglages-fenetre .view-container .btn-secondary:hover:not(:disabled){background:color-mix(in srgb,var(--fg) 10%,transparent)}
  .settings-view.settings-pro.reglages-fenetre .view-container .btn.recharge-carte-bouton{height:32px;min-height:32px;width:auto;align-self:flex-start;padding:0 14px}
  .settings-view.settings-pro.reglages-fenetre .view-container .input,.settings-view.settings-pro.reglages-fenetre .view-container select.reglage-choix{height:30px;min-height:30px;padding:0 10px;border-radius:8px;font-size:14px}
  .settings-view.settings-pro.reglages-fenetre .view-container textarea.input{height:auto;min-height:64px;padding:8px 10px}
  .settings-view.settings-pro.reglages-fenetre .segments{padding:2px;border-radius:8px}
  .settings-view.settings-pro.reglages-fenetre .segments .segment{min-height:26px;height:26px;padding:0 10px;border-radius:6px;font-size:13px}
  /* Cartes particulières, ramenées au même gabarit */
  .settings-view.settings-pro.reglages-fenetre .card.reglages-identite,html:not(.dark) .settings-view.settings-pro.reglages-fenetre .card.reglages-identite,html.dark .settings-view.settings-pro.reglages-fenetre .card.reglages-identite{display:flex;align-items:center;gap:14px;padding:6px 0 14px!important;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)!important}
  .settings-view.settings-pro.reglages-fenetre .reglages-identite-avatar{width:40px;height:40px;font-size:15px}
  .settings-view.settings-pro.reglages-fenetre .reglages-identite-texte b{font-size:15.5px;font-weight:500}
  .settings-view.settings-pro.reglages-fenetre .card.reglages-plan-actuel,html:not(.dark) .settings-view.settings-pro.reglages-fenetre .card.reglages-plan-actuel,html.dark .settings-view.settings-pro.reglages-fenetre .card.reglages-plan-actuel{padding:12px 14px!important;border:1px solid var(--border)!important;border-radius:10px!important}
  .settings-view.settings-pro.reglages-fenetre .card.reglages-sortie-carte{padding:0}
  .settings-view.settings-pro.reglages-fenetre .reglages-sortie{width:auto;min-height:28px;height:28px;padding:0 10px;border-radius:8px;font-size:14px;font-weight:400;background:color-mix(in srgb,var(--danger) 8%,transparent)}
  .settings-view.settings-pro.reglages-fenetre .settings-row input[type=checkbox]{width:36px;height:20px;border-radius:10px;background:color-mix(in srgb,var(--fg) 18%,transparent);transition:background .18s}
  .settings-view.settings-pro.reglages-fenetre .settings-row input[type=checkbox]::after{width:16px;height:16px;top:2px;left:2px;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .18s cubic-bezier(.2,.8,.2,1)}
  .settings-view.settings-pro.reglages-fenetre .settings-row input[type=checkbox]:checked{background:var(--accent)}
  .settings-view.settings-pro.reglages-fenetre .settings-row input[type=checkbox]:checked::after{transform:translateX(16px)}
  .settings-view.settings-pro.reglages-fenetre .reglage-pastille{width:28px;height:28px;border-radius:7px}
  .settings-view.settings-pro.reglages-fenetre .reglage-pastille svg{width:15px;height:15px}
  /* ── Finition T-053 (22/11/2026) : hiérarchie, alignement, sélecteurs ── */
  .reglages-fond{padding:28px 32px}
  .settings-view.settings-pro.reglages-fenetre{height:min(680px,100%)}
  /* Titre de page plus net que les titres de blocs ; les titres de blocs s'alignent sur les lignes (le décalage de 4 px venait d'une règle faite pour le téléphone) */
  .settings-view.settings-pro.reglages-fenetre .settings-page-title{font-size:20px;line-height:28px;font-weight:600;margin:8px 0 14px}
  .settings-view.settings-pro.reglages-fenetre .page-col .card:not(.card .card)>.settings-section-title:first-child{position:static;top:auto;left:auto;right:auto;white-space:normal;overflow:visible}
  .settings-view.settings-pro.reglages-fenetre .page-col .card:not(.card .card):has(>.settings-section-title:first-child){margin-top:0}
  .settings-view.settings-pro.reglages-fenetre .settings-section-title{font-weight:600!important}
  .settings-view.settings-pro.reglages-fenetre .reglages-note,.settings-view.settings-pro.reglages-fenetre .mode-note{margin:0;padding:0;color:var(--ref-fg3)}
  /* Sélecteurs : petite flèche vers le bas, place réservée pour qu'elle ne chevauche pas la valeur */
  .settings-view.settings-pro.reglages-fenetre .view-container select.reglage-choix{padding:0 26px 0 10px;text-align:left;text-align-last:left;color:var(--fg);background:color-mix(in srgb,var(--fg) 6%,transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%238a8a8a' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center}
  .settings-view.settings-pro.reglages-fenetre .view-container select.reglage-choix:hover:not(:disabled){background-color:color-mix(in srgb,var(--fg) 10%,transparent)}
  .settings-view.settings-pro.reglages-fenetre .view-container select.reglage-choix:disabled{opacity:.5;cursor:default}
  /* Choix du thème : trois vignettes lisibles (icône au-dessus, libellé dessous) au lieu d'une barre écrasée */
  .settings-view.settings-pro.reglages-fenetre .segments.segments-icones.segments-libelles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;background:transparent;width:100%;max-width:420px}
  .settings-view.settings-pro.reglages-fenetre .segments-icones.segments-libelles .segment.theme-choice{flex-direction:column;gap:6px;width:auto;height:64px;min-height:64px;padding:8px;border:1px solid var(--border);border-radius:10px;background:transparent;font-size:13px;color:var(--fg)}
  .settings-view.settings-pro.reglages-fenetre .segments-icones.segments-libelles .segment.theme-choice svg{width:18px;height:18px}
  .settings-view.settings-pro.reglages-fenetre .segments-icones.segments-libelles .segment.theme-choice:hover{background:var(--ref-hover)}
  .settings-view.settings-pro.reglages-fenetre .segments-icones.segments-libelles .segment.theme-choice.chosen{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);background:color-mix(in srgb,var(--accent) 8%,transparent);font-weight:500}
  .settings-view.settings-pro.reglages-fenetre .reglage-colonne{gap:10px}
  .settings-view.settings-pro.reglages-fenetre{grid-template-columns:256px minmax(0,1fr)}
  /* Aide : même gabarit à plat que les autres pages (titres de blocs, lignes séparées d'un trait fin) */
  .settings-view.settings-pro.reglages-fenetre .aide-page{gap:26px}
  .settings-view.settings-pro.reglages-fenetre .aide-bloc{border:0;border-radius:0;padding:0;background:transparent}
  .settings-view.settings-pro.reglages-fenetre .aide-titre{padding:0;margin:0 0 9px;font-size:15.5px;line-height:22px;font-weight:600;color:var(--fg);text-transform:none;letter-spacing:0}
  .settings-view.settings-pro.reglages-fenetre .aide-question,.settings-view.settings-pro.reglages-fenetre .aide-question+.aide-question,.settings-view.settings-pro.reglages-fenetre .aide-question:first-of-type{margin:0;border-top:0;border-bottom:1px solid color-mix(in srgb,var(--border) 60%,transparent)}
  .settings-view.settings-pro.reglages-fenetre .aide-question button{min-height:44px;font-size:15px;font-weight:400}
  .settings-view.settings-pro.reglages-fenetre .aide-raccourci{padding:8px 0}
  .settings-view.settings-pro.reglages-fenetre .page-col .card.feedback-card:not(.card .card){border:0!important;border-radius:0!important;padding:0!important;background:transparent!important}
  .settings-view.settings-pro.reglages-fenetre .page-col .card.feedback-card>summary{min-height:44px;font-size:15.5px;font-weight:600}
  .settings-view.settings-pro.reglages-fenetre .card>.text-sm.text-muted+.btn,.settings-view.settings-pro.reglages-fenetre .card>.text-sm+.btn{margin-top:10px}
  .settings-view.settings-pro.reglages-fenetre .card>.text-xs.text-muted.mb-12{font-size:14px;line-height:19px;color:var(--ref-fg3);margin:0 0 6px}
  .settings-view.settings-pro.reglages-fenetre .mem-titre{font-size:15.5px;font-weight:600}
  .settings-view.settings-pro.reglages-fenetre .mem-desc{font-size:14px;line-height:19px;color:var(--ref-fg3)}
  .settings-view.settings-pro.reglages-fenetre .view-container button.reglage-choix.reglage-langue{height:30px;min-height:30px;padding:0 8px 0 10px;border:0;border-radius:8px;font-size:14px;color:var(--fg);background:color-mix(in srgb,var(--fg) 6%,transparent)}
}
/* Téléphone (T-053) : les titres des blocs d'Aide suivent les autres pages (phrase normale, gris), et non des majuscules espacées */
@media(max-width:768px){
  .settings-pro .aide-titre{text-transform:none;letter-spacing:0;font-size:13px;font-weight:600;color:var(--muted)}
}
/* ══ Barre latérale, barre de saisie, chat et espace Code au gabarit de la référence — 12/11/2026, demande du propriétaire (« reprends bien le code ») ══
   Valeurs lues dans la copie de Claude (`styles.css`, `pages.css`, `extras.css`), ordinateur seulement :
   .nav / .rec-it : 34 px, 14,5 px, graisse normale, rayon 8, marge intérieure 10 ; l'entrée active sur fond neutre ; .nav-sec : 13 px, estompé.
   .composer : 656 px à l'accueil, 770 px en conversation, rayon 18, bordure fine, ombre 0 2px 12px 8 % ; .mini / .chip : 24–28 px, rayon 6–7, sans fond ;
   .send : carré arrondi de 28 px. .greet : 31/38 px. .col : 740 px. .ubub : fond neutre, rayon 14, 12×16, 15,3/21 px, 618 px au plus.
   .asst : 15 px. .cin (Code) : rayon 14, 12×14, ombre 0 2px 10px ; .chip sous la barre : 24 px, 13,5 px. */
@media(min-width:769px){
  /* — Barre latérale — */
  .sidebar:not(.closed) .sidebar-new .btn,.sidebar:not(.closed) .sb-ligne-projets,.sidebar:not(.closed) .sb-code-action{height:34px;min-height:34px;padding:0 10px;gap:10px;border-radius:8px;font-size:14.5px;font-weight:400;transition:background-color .06s linear}
  .sidebar:not(.closed) .sb-ligne-projets{margin-top:0}
  .sidebar:not(.closed) .sb-recents-entete{margin:18px 0 6px;padding:0 10px;font-size:13px;font-weight:400;color:var(--muted)}
  .sidebar:not(.closed) .sb-recent{border-radius:8px}
  .sidebar:not(.closed) .sb-recent-ouvrir{min-height:34px;padding:0 4px 0 10px;font-size:14.5px;color:var(--fg)}
  .sidebar:not(.closed) .sb-recent.actif,.sidebar:not(.closed) .sb-recent.actif:hover{background:color-mix(in srgb,var(--fg) 10%,transparent)}
  .sidebar:not(.closed) .sb-recent.actif .sb-recent-ouvrir{font-weight:400}
  .sidebar:not(.closed) .sb-recents-tout{font-size:13px}
  .sidebar:not(.closed) .sb-code-session{min-height:34px;border-radius:8px;font-size:14.5px}
  /* — Accueil du chat — */
  .chat-view:not(.code-view) .accueil-titre{font-size:31px;line-height:38px;font-weight:400;letter-spacing:-.2px;margin-bottom:15px}
  /* — Conversation — */
  .chat-view:not(.code-view) .chat-messages>*{max-width:740px}
  .chat-view .msg-user .msg-content{max-width:618px;padding:12px 16px;border-radius:14px;background:color-mix(in srgb,var(--fg) 5%,transparent);font-size:15.3px;line-height:21px}
  html.dark .chat-view .msg-user .msg-content{background:color-mix(in srgb,var(--fg) 9%,transparent)}
  .chat-view .msg:not(.msg-user) .msg-content,.chat-view .msg:not(.msg-user) .msg-content p,.chat-view .msg:not(.msg-user) .msg-content li{font-size:15px;line-height:22px}
  .chat-view .msg-actions button{width:26px;height:26px;border-radius:6px}
  /* — Espace Code : lanceur — */
  .vue-principale .top-bar.lib-barre.cl-lanceur-barre{padding-top:10px!important;min-height:44px}
  .vue-principale .cl-lanceur-barre .top-bar-title{font-size:14.5px;line-height:20px}
  .cl-lanceur .cl-lanceur-titre{font-size:31px;line-height:38px;letter-spacing:-.2px}
  .cl-lanceur,.cl-saisie-zone{max-width:810px}
  .cl-lanceur-bas .cl-pied-projet,.cl-lanceur-bas .cl-mode-pastille,.cl-lanceur-bas .cl-pied-etat>button{height:24px;min-height:24px;padding:0 8px;gap:6px;border-radius:6px;font-size:13.5px;font-weight:400;color:var(--fg);transition:background-color .06s linear}
  .cl-lanceur-bas .cl-pied-projet:hover,.cl-lanceur-bas .cl-mode-pastille:hover,.cl-lanceur-bas .cl-pied-etat>button:hover{background:var(--surface-hover)}
}
/* ══ Barres de saisie et boutons recopiés de la référence AU PIXEL PRÈS — 12/11/2026, demande du propriétaire ══
   Source : copie de Claude, `styles.css` l. 2–19 (jetons), 33–35 (.ib), 78–98 (.composer, .c-row, .mini, .send, .under, .chip), 140–148 et 293–297 (.dock),
   390 (survols en 60 ms), `extras.css` l. 475–482, 514–543, 749–758 ; `pages.css` (.cin, .cfoot de l'espace Code).
   Jetons repris tels quels : survol #f0f0f0 (sombre : blanc 7 %), appui #e4e4e4 (blanc 11 %), trait #e6e6e6 (#2E3036), texte estompé #737373 (#8f8f8f).
   Seule différence voulue : la couleur d'accent reste celle d'Astra. Ordinateur seulement. */
:root{--ref-hover:#EDEFF2;--ref-active:#E4E7EB;--ref-line:#DDE0E4;--ref-line-focus:#C9CED5;--ref-fg3:#656B72;--ref-bubble:#EEF1F5}   /* 21/11/2026 : passés sur la teinte « Ardoise » du fond (ils étaient restés beiges le 20/11) ; 12/11 soir : mêmes clartés que la référence (#f0f0f0, #e4e4e4, #e6e6e6, #cfcfcf, #f2f2f2) ; texte estompé foncé de #737373 à #6B6B6B pour rester à 4,5:1 sur tous les étages */
html.dark{--ref-hover:rgba(255,255,255,.07);--ref-active:rgba(255,255,255,.11);--ref-line:#34383D;--ref-line-focus:#555;--ref-fg3:#B1B4B9;--ref-bubble:#292C31}
@media(min-width:769px){
  /* .composer */
  .chat-view .chat-input-wrap .chat-input.pb{gap:0;padding:12px 12px 10px 13px;border:1px solid var(--ref-line);border-radius:18px;box-shadow:0 1px 6px rgba(0,0,0,.05);transition:box-shadow .15s,border-color .15s}
  .chat-view .chat-input-wrap .chat-input.pb:focus-within{border-color:var(--ref-line-focus);box-shadow:0 2px 12px rgba(0,0,0,.08)}
  .chat-view .chat-input-wrap .chat-input.pb textarea{padding:2px;font-size:14.5px;line-height:21px;min-height:25px;color:var(--fg)}
  .chat-view .chat-input-wrap .chat-input.pb textarea::placeholder{color:var(--ref-fg3)}
  /* .c-row : rangée du bas (24 px), à 36 px du texte à l'accueil */
  .chat-view .chat-input-wrap .chat-input.pb .pb-bas:not(.pb-dictee){height:24px!important;min-height:24px!important;margin:36px -2.5px 0 -4px;gap:0}
  .chat-view .chat-input-wrap .chat-input.pb .pb-actions{height:24px!important;min-height:24px!important;gap:0}
  /* .mini : « + » et micro — 24 px, rayon 6, icône de 15 px, survol #f0f0f0 en 60 ms */
  .chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add,.chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add:hover,
  .chat-view .chat-input-wrap .chat-input.pb .send-btn.voice-btn{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;margin:0;padding:0;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--fg)!important;box-shadow:none;transition:background-color .06s linear}
  .chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add:hover,.chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add[aria-expanded="true"],
  .chat-view .chat-input-wrap .chat-input.pb .send-btn.voice-btn:hover{background:var(--ref-hover)!important}
  .chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add:active,.chat-view .chat-input-wrap .chat-input.pb .send-btn.voice-btn:active{background:var(--ref-active)!important}
  .chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add svg,.chat-view .chat-input-wrap .chat-input.pb .send-btn.voice-btn svg{width:15px;height:15px}
  /* .send : 26 px, rayon 7, couleur d'accent ; caché tant qu'il n'y a rien à envoyer (accueil) */
  .chat-view .chat-input-wrap .chat-input.pb .send-btn:not(.voice-btn){width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;margin-left:6px;border-radius:7px!important;box-shadow:none}
  .chat-view .chat-input-wrap .chat-input.pb .send-btn:not(.voice-btn) svg{width:15px;height:15px}
  .chat-view .chat-body.chat-body-empty .chat-input.pb .send-btn.send-btn-vide{display:none}
  /* .send.stop : sans fond, 30 px, rayon 9, carré de 12 px, survol #f0f0f0 */
  .chat-view .chat-input-wrap .chat-input.pb .send-btn.send-btn-stop{width:30px!important;height:30px!important;min-width:30px!important;min-height:30px!important;margin-right:-5.5px;border-radius:9px!important;background:transparent!important;color:var(--fg)!important;transition:background-color .06s linear}
  .chat-view .chat-input-wrap .chat-input.pb .send-btn.send-btn-stop:hover{background:var(--ref-hover)!important}
  .chat-view .chat-input-wrap .chat-input.pb .send-btn.send-btn-stop svg{width:12px;height:12px}
  /* .under / .chip : le choix du niveau passe SOUS la barre, à droite — 24 px, rayon 6, 14,2 px, survol #f0f0f0 */
  .chat-view .chat-input-wrap .chat-input.pb .pb-tools{position:absolute;top:calc(100% + 11px);right:6px;display:flex;align-items:center;height:24px}
  .chat-view .chat-input.pb .pb-mode{height:24px;padding:0 10px;gap:6px;border-radius:6px;background:transparent;font-size:14.2px;font-weight:400;color:var(--fg);transition:background-color .06s linear}
  .chat-view .chat-input.pb .pb-mode:hover,.chat-view .chat-input.pb .pb-mode[aria-expanded="true"]{background:var(--ref-hover)}
  .chat-view .chat-input.pb .pb-mode svg{width:9px;height:9px;color:var(--fg)}
  .chat-view .chat-body.chat-body-empty .chat-input-wrap{padding-bottom:44px}
  .chat-view .chat-body.chat-body-empty .chat-input-wrap .chat-input.pb{max-width:656px}
  /* .dock .composer : en conversation, une seule ligne de 46 px, rayon 16 ; « + » et micro passent dessous à gauche, le niveau dessous à droite */
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap{padding-bottom:37px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb{flex-direction:row;flex-wrap:wrap;align-items:flex-end;gap:0 8px;min-height:46px;max-width:770px;padding:0 14px;border-radius:16px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input.pb>:not(textarea):not(.pb-bas):not(.pb-menu):not(input){flex:0 0 100%}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb textarea{flex:1 1 0;width:auto;min-width:0;margin:9.5px 0;font-size:16.5px;line-height:21px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .pb-bas:not(.pb-dictee){display:contents}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input.pb .pb-ressort{display:none}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .pb-actions{height:auto!important;margin-bottom:9px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input.pb .pb-lead{position:absolute;top:calc(100% + 7px);left:9px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .send-btn.voice-btn{position:absolute;top:calc(100% + 7px);left:37px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .pb-tools{top:calc(100% + 7px);right:5px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input.pb .pb-mode{font-size:13.5px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .send-btn:not(.voice-btn){margin-left:0}
  /* .send.idle : rien à envoyer → flèche estompée, sans fond */
  .chat-view .chat-body:not(.chat-body-empty) .chat-input.pb .send-btn.send-btn-vide{background:transparent!important;color:var(--ref-fg3)!important}
  .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .pb-bas.pb-dictee{flex:0 0 100%;margin:9px 0}
  /* Bulle de l'utilisateur : couleur exacte de la référence */
  .chat-view .msg-user .msg-content,html.dark .chat-view .msg-user .msg-content{background:var(--ref-bubble)}
  /* Actions sous un message : .mini de 24 px */
  .chat-view .msg-actions button{width:24px;height:24px;border-radius:6px;transition:background-color .06s linear}
  .chat-view .msg-actions button:hover{background:var(--ref-hover)}
  .chat-view .msg-actions button svg{width:15px;height:15px}
  /* Barre latérale : survols et entrée active aux couleurs exactes */
  .sidebar:not(.closed) .sidebar-new .btn:hover,.sidebar:not(.closed) .sb-ligne-projets:hover,.sidebar:not(.closed) .sb-code-action:hover,.sidebar:not(.closed) .sb-recent:hover,.sidebar:not(.closed) .sb-recent.menu-ouvert:not(.actif),.sidebar:not(.closed) .sb-code-session:hover{background:var(--ref-hover)}
  .sidebar:not(.closed) .sb-recent.actif,.sidebar:not(.closed) .sb-recent.actif:hover,.sidebar:not(.closed) .sb-code-session.actif,.sidebar:not(.closed) .sb-code-session.active{background:var(--ref-active)}
  .sidebar:not(.closed) .sb-recents-entete{color:var(--ref-fg3)}
  /* Menus (bulles) : survol exact */
  .bulle-ligne:hover,.bulle-ligne:focus-visible{background:var(--ref-hover)}
  /* Espace Code — .cin : une ligne de 47 px, rayon 14, « + » à gauche, micro à droite ; .cfoot : pastilles de 24 px dessous */
  .cl-saisie.cl-saisie-grande{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:13px;min-height:47px;padding:12px 14px 12px 13px;border:1px solid var(--ref-line);border-radius:14px;background:var(--surface);box-shadow:0 2px 10px rgba(0,0,0,.086)}
  html.dark .cl-saisie.cl-saisie-grande{border-color:var(--ref-line)}
  .cl-saisie-grande .cl-saisie-pied{display:contents}
  .cl-saisie-grande .cl-saisie-gauche{order:1;gap:0}
  .cl-saisie.cl-saisie-grande textarea,.cl-saisie.cl-saisie-grande.cl-etage textarea{order:2;flex:1 1 0!important;width:auto!important;min-width:0;min-height:20px;padding:0;font-size:15px;line-height:20px}
  .cl-saisie-grande textarea::placeholder{color:var(--ref-fg3)}
  .cl-saisie-grande .cl-saisie-actions{order:3;gap:6px;margin:-3px 0}
  .cl-saisie-grande .cl-plus,.cl-saisie-grande .cl-saisie-actions .send-btn.voice-btn{width:24px!important;height:24px!important;min-width:24px!important;min-height:24px!important;border:0!important;border-radius:6px!important;background:transparent!important;color:var(--fg)!important;transition:background-color .06s linear}
  .cl-saisie-grande .cl-plus:hover,.cl-saisie-grande .cl-saisie-actions .send-btn.voice-btn:hover{background:var(--ref-hover)!important}
  .cl-saisie-grande .cl-plus svg{width:15px;height:15px}
  .cl-saisie-grande .cl-saisie-actions .send-btn.voice-btn svg{width:17px;height:17px}
  .cl-saisie-grande .cl-envoyer{width:26px!important;height:26px!important;min-width:26px!important;min-height:26px!important;border-radius:7px!important}
  .cl-saisie-grande .cl-envoyer.send-btn-vide{display:none!important}
  .cl-saisie-grande .cl-envoyer svg{width:15px;height:15px}
  .cl-lanceur-bas .cl-pied-projet:hover,.cl-lanceur-bas .cl-mode-pastille:hover,.cl-lanceur-bas .cl-pied-etat>button:hover{background:var(--ref-hover)}
}
/* ══ Fond d'Astra (12/11/2026, demande du propriétaire : « primordial, parfait, adapté à Astra ») ══
   Choisi par le calcul (scripts/_choisir-fond.mjs) et non au jugé. Parmi les blancs chauds (teinte 75–85°, entre l'orange et le jaune — les teintes
   chaudes font mieux que les froides, Rello & Bigham 2017) qui restent des blancs (chroma CIELAB ≤ 3), on garde le plus LUMINEUX (l'avantage du texte
   sombre sur fond clair vient de la luminance, Piepenbrock et al.) sous deux contraintes : tout texte d'Astra à 4,5:1 au moins (y compris le plus clair
   et les liens) et un blanc pur en relief qui s'en détache (CIEDE2000 ≥ 2). Résultat du 12/11 : #FAF9F7. Remplacé le 20/11/2026 (étude de fond, piste « D1 ») par un blanc cassé presque neutre, puis le 21/11/2026 par la palette « Ardoise » (blanc très légèrement bleuté, accordé au bleu d'Astra) : relief #FFFFFF (barre de saisie, menus, fenêtres, cartes) › lecture #FAFBFD › barre latérale #F4F6F8 › cadre #EDEFF2.
   Thème sombre « Ardoise adoucie » : fond #191D21, barre latérale #13161A, menus #23262B, saisie #282B30, traits #34383D. */
html:not(.dark) .main-content,html:not(.dark) .vue-principale,html:not(.dark) .main-content .chat-view,html:not(.dark) .main-content .chat-body,html:not(.dark) .main-content .chat-messages,html:not(.dark) .main-content .chat-input-wrap{background:var(--fond-lecture)}
html:not(.dark) .main-content .top-bar{background:var(--fond-lecture)}
html:not(.dark) .chat-view .chat-input-wrap .chat-input.pb,html:not(.dark) .cl-saisie{background:#fff}
/* Thème sombre : mêmes étages, aux couleurs de la référence (lecture #191D21, relief #23262B, conversation ouverte #373B41). */
html.dark .main-content,html.dark .vue-principale,html.dark .main-content .chat-view,html.dark .main-content .chat-body,html.dark .main-content .chat-messages,html.dark .main-content .chat-input-wrap,html.dark .main-content .top-bar{background:var(--fond-lecture)}
html.dark .chat-view .chat-input-wrap .chat-input.pb,html.dark .cl-saisie.cl-saisie-grande{background:#282B30;border-color:#45494E}
html.dark .sidebar:not(.closed) .sb-recent.actif,html.dark .sidebar:not(.closed) .sb-recent.actif:hover{background:#373B41}
html.dark .bulle-menu{background:#23262B}
html.dark .reglages-sortie{color:oklch(.8 .13 25)}   /* 4,2:1 sur son fond rosé en sombre : éclairci pour passer 4,5:1 */
.msg-content a,.cl-md a{color:var(--lien);text-decoration-color:color-mix(in srgb,var(--lien) 45%,transparent)}
/* Boutons pleins : le texte blanc sur le bleu d'accent ne faisait que 3,6:1 (audit de contraste du 12/11). Le fond du bouton prend le bleu plus
   profond déjà utilisé au survol (4,7:1) ; le survol fonce encore d'un cran. Le thème sombre et les icônes gardent le bleu d'accent. */
html:not(.dark) .btn-primary{background:var(--accent-hover)}
@media(hover:hover){html:not(.dark) .btn-primary:hover:not(:disabled){background:color-mix(in srgb,var(--accent-hover) 88%,#000)}}
/* ══ Barre latérale à plat, comme la copie (12/11/2026, demande du propriétaire : capture entourée en rouge) ══
   Modèle : `styles.css` de la copie (.sb, .nav, .nav.cur, .recents) — 280 px, même fond que la page, un trait à droite, entrées de 34 px,
   profil « A alec · Pro ⌄ » en pied. Plus de rail d'icônes ni de sélecteur « Chat | Code » en haut (supprimé à la demande du propriétaire) :
   Code, Planifiées et Bibliothèque sont des entrées de la barre. Ordinateur seulement. */
@media(min-width:769px){
  .app,html:not(.dark) .app,html.dark .app{background:var(--fond-lecture)}
  .sidebar,.sidebar:not(.closed){width:280px;min-width:280px}
  .sidebar.closed{width:0!important;min-width:0!important}
  .sidebar:not(.closed),html:not(.dark) .sidebar:not(.closed),html.dark .sidebar:not(.closed){margin:0;height:100%;border-radius:0;box-shadow:none;border-right:1px solid var(--ref-line);background:var(--fond-lecture)}
  .main-content,.sidebar:not(.closed)+.main-content,.main-content:has(.reglages-fenetre){margin:0;border-radius:0;box-shadow:none}
  /* en-tête : bouton de repli à gauche, logo, recherche à droite */
  .sidebar .sidebar-head{padding:10px 8px 8px 10px;min-height:48px;gap:6px}
  .sidebar .sidebar-head .sb-toggle.sb-collapse{display:flex!important;order:-1;position:static;margin:0;inset:auto;width:32px;height:32px;align-items:center;justify-content:center;border:0;border-radius:7px;background:none;color:var(--ref-fg3);transition:background-color .06s linear}
  .sidebar .sidebar-head .sb-toggle.sb-expand{display:none!important}
  .sidebar .sidebar-head .sb-toggle.sb-collapse:hover{background:var(--ref-hover);color:var(--fg)}
  .sidebar .sidebar-logo,.sidebar .sidebar-logo a{font-size:19px;font-weight:600}
  .sb-recherche{width:32px;height:32px;border-radius:7px}
  .sb-recherche:hover{background:var(--ref-hover)}
  /* entrées : 34 px, 14,5 px, icône 17 px */
  .sidebar:not(.closed) .sidebar-new{padding:4px 8px 0}
  .sidebar:not(.closed) .sidebar-new .btn,.sidebar:not(.closed) .sb-ligne-projets,.sidebar:not(.closed) .sidebar-glide .nav-item{width:auto;min-height:34px;height:34px;max-height:none;padding:0 10px;gap:10px;border-radius:8px;font-size:14.5px;font-weight:400;color:var(--fg);letter-spacing:0}
  .sidebar:not(.closed) .sb-ligne-projets{margin:0 8px;width:calc(100% - 16px)}
  /* valeurs finales de la copie (styles.css l. 303-307 et 466) : écart de 12 px, survol et appui en 60 ms linéaires */
  .sidebar:not(.closed) .sidebar-new .btn,.sidebar:not(.closed) .sb-ligne-projets,.sidebar:not(.closed) .sidebar-glide .nav-item,.sidebar:not(.closed) .sb-profil-bouton{gap:12px;transition:background-color .06s linear}
  .sidebar:not(.closed) .sb-profil-bouton{gap:8px}
  .sidebar:not(.closed) .sb-recents-entete{font-size:13px;font-weight:400;margin-top:12px;color:var(--ref-fg3)}
  .sidebar:not(.closed) .sb-ligne-projets svg{width:17px;height:17px;flex-shrink:0}
  .sidebar-inner>.sidebar-nav.sidebar-glide{display:block}
  .sidebar:not(.closed) .sidebar-glide{padding:0 8px}
  .sidebar:not(.closed) .sidebar-glide .nav-item{width:100%;opacity:1}
  .sidebar:not(.closed) .sidebar-glide .nav-item>svg,.sidebar:not(.closed) .sidebar-new .btn svg{width:17px;height:17px}
  .sidebar:not(.closed) .sidebar-glide .nav-item:hover,.sidebar:not(.closed) .sidebar-glide .nav-item:hover{background:var(--ref-hover)}
  .sidebar:not(.closed) .sidebar-glide .nav-item.active,.sidebar:not(.closed) .sidebar-glide .nav-item.active:hover{background:var(--ref-active);color:var(--fg);font-weight:400}
  .sidebar:not(.closed) .sidebar-glide-highlight{display:none}
  .sidebar:not(.closed) .sidebar-glide .nav-item .badge{margin-left:auto;background:transparent;color:var(--ref-fg3);border:1px solid var(--ref-line)}
  /* pied : profil en ligne, avatar de 20 px */
  .sidebar:not(.closed) .sidebar-footer{padding:6px 8px 8px;border-top:0;gap:6px}
  .sidebar:not(.closed) .sb-profil-bouton{min-height:34px;height:34px;padding:0 8px;gap:8px;border-radius:8px}
  .sidebar:not(.closed) .sb-profil-bouton:hover,.sidebar:not(.closed) .sb-profil-bouton[aria-expanded="true"]{background:var(--ref-hover)}
  .sidebar:not(.closed) .sb-profil-avatar{width:20px;height:20px;font-size:11px;font-weight:500}
  .sidebar:not(.closed) .sb-profil-texte{flex-direction:row;align-items:baseline;gap:0;flex:0 1 auto}
  .sidebar:not(.closed) .sb-profil-nom{font-size:14.5px;font-weight:400}
  .sidebar:not(.closed) .sb-profil-plan{font-size:14.5px;color:var(--ref-fg3)}
  .sidebar:not(.closed) .sb-profil-bouton>svg,.sidebar:not(.closed) .sb-profil-fleche{width:13px;height:13px;color:var(--ref-fg3);margin-right:auto}
  /* barre repliée : bouton fixe en haut à gauche, le contenu se décale */
  .sb-rouvrir{position:fixed;left:10px;top:10px;z-index:120;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:0;border-radius:7px;background:none;color:var(--ref-fg3);cursor:pointer;transition:background-color .06s linear}
  .sidebar .sb-collapse svg,.sb-rouvrir svg{width:19px;height:19px}
  .sb-rouvrir:hover{background:var(--ref-hover);color:var(--fg)}
  .app.sb-fermee .top-bar{padding-left:56px}
}
@media(max-width:768px){.sb-rouvrir{display:none}}
/* ══ Menus « + » et niveau de réponse : mêmes mesures que .pop / .mi de la copie (styles.css l. 207-218, 308-311, 369-371, 469) — 12/11/2026 ══ */
@media(min-width:769px){
  .bulle-menu{width:320px;padding:7px;border-radius:14px;font-size:14px}
  .bulle-menu.bulle-etroite{width:208px}
  .bulle-ligne{min-height:30px;gap:10px;padding:0 10px;border-radius:8px}
  .bulle-ligne:has(.bulle-desc){padding:7px 10px;align-items:center}
  .bulle-ligne.bulle-une{gap:14px}
  .bulle-ligne.bulle-une>svg:first-child{width:17px;height:17px;color:var(--fg)}
  .bulle-ligne.bulle-une .bulle-titre{flex:1;min-width:0;line-height:20px}
  .bulle-ligne .bulle-fin{margin-left:auto;color:var(--ref-fg3)}
  .bulle-ligne .bulle-coche,.bulle-ligne>svg.bulle-coche{color:var(--accent);width:16px;height:16px;margin-left:auto}
  .bulle-sep{margin:5px -7px;background:var(--ref-line)}
  .bulle-ligne:hover,.bulle-ligne:focus-visible{background:var(--ref-hover)}
}
/* Pastille « Recommandé » : celle de la copie (.badge2 d'extras.css l. 521-556) — fond du menu, fin trait bleu, 11 px, sans remplissage */
.pb-reco{margin-left:8px;padding:0 6px;border:1px solid color-mix(in srgb,var(--accent) 38%,var(--surface));border-radius:999px;background:transparent;font-size:11px;font-weight:400;line-height:13px;color:var(--lien,var(--accent))}
.dark .pb-reco{color:var(--accent)}
/* ══ Téléphone d'après la vidéo de l'application mobile de référence (12/11/2026) — lot 1 : haut de page, barre de saisie, tiroir ══
   Mesures prises sur l'enregistrement (1080×2340, 411 px de large) : boutons du haut sans cadre, barre de saisie blanche arrondie à 28 px avec
   ombre douce, pastilles rondes de 38 px (grises ; envoi noir), tiroir de 94 % de large, entrées de 59 px à fond plein arrondi quand actives,
   séparateur puis « Récents », avatar de 47 px et grande pastille noire « Nouvelle conversation » en bas. */
@media(max-width:768px){
  :root{--tel-gris:#EDEFF2;--tel-actif:#E4E7EB}
  html.dark{--tel-gris:#2D3136;--tel-actif:#373B41}
  /* haut de page */
  .top-bar .hamburger,.chat-top-bar .hamburger,.chat-header-controls .btn-icon.chat-header-new,html:not(.dark) .chat-top-bar .chat-header-controls .btn-icon.chat-header-new{width:44px;height:44px;min-width:44px;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:50%;color:var(--fg)}
  .top-bar .hamburger svg,.chat-header-controls .btn-icon.chat-header-new svg{width:24px;height:24px}
  .top-bar .hamburger:active,.chat-header-controls .btn-icon.chat-header-new:active{background:var(--tel-gris);transform:none}
  .chat-top-bar .chat-header-controls{border:0!important;background:none!important;padding:0!important}
  /* barre de saisie */
  .chat-view .chat-input-wrap .chat-input.pb{border:1px solid color-mix(in srgb,var(--fg) 5%,transparent);border-radius:28px;background:var(--surface);box-shadow:0 2px 12px rgba(0,0,0,.08);padding:14px 11px 10px 18px}
  html:not(.dark) .chat-view .chat-input-wrap .chat-input.pb{background:#fff}
  .chat-input.pb .composer-add,.chat-input.pb .send-btn.voice-btn,.chat-input.pb .send-btn{width:38px;height:38px;min-width:38px;border-radius:50%;border:0}
  .chat-input.pb .composer-add,.chat-input.pb .send-btn.voice-btn{background:var(--tel-gris)!important;color:var(--fg)!important}
  .chat-input.pb .send-btn:not(.voice-btn){background:var(--accent)!important;color:var(--accent-ink,#fff)!important;opacity:1}
  .chat-input.pb .send-btn.send-btn-vide:not(.voice-btn){background:var(--accent)!important;color:var(--accent-ink,#fff)!important;opacity:1}
  .chat-input.pb .pb-mode{height:38px;padding:0 17px;border-radius:999px;background:var(--tel-gris);font-size:15px;font-weight:400}
  .chat-input.pb textarea{font-size:17px}
  /* tiroir */
  .sidebar{width:min(94vw,385px);min-width:0;border-right:0;border-radius:0 14px 14px 0;background:var(--bg);box-shadow:none}
  .sidebar-inner{width:100%;min-width:0}
  .sidebar .sidebar-head{padding:46px 14px 6px 26px;min-height:0}
  .sidebar .sidebar-logo,.sidebar .sidebar-logo a{font-size:23px;font-weight:600}
  .sb-recherche{background:none!important;border:0!important;box-shadow:none!important;width:44px;height:44px}
  .sb-recherche svg{width:24px;height:24px}
  .sidebar-inner>.sidebar-nav{padding:14px 9px 6px}
  .sidebar-inner>.sidebar-nav .nav-item{min-height:59px;height:59px;padding:0 20px;gap:22px;border-radius:999px;font-size:18px;font-weight:400;color:var(--fg)}
  .sidebar-inner>.sidebar-nav .nav-item>svg{width:24px;height:24px}
  .sidebar-inner>.sidebar-nav .nav-item.active,.sidebar-inner>.sidebar-nav .nav-item.active:hover{background:var(--tel-actif);color:var(--fg);font-weight:400}
  .sidebar-inner>.sidebar-nav .nav-item:active{background:var(--tel-actif)}
  .sb-recents{border-top:1px solid var(--ref-line);margin:8px 18px 0;padding:16px 0 80px}
  .sb-recents-entete{display:block;padding:0 2px 8px;font-size:16px;color:var(--ref-fg3)}
  .sb-recent-ouvrir{min-height:46px;font-size:17px;padding:0 2px}
  .sidebar-footer{padding:0 17px 14px;border-top:0;background:none}
  .sidebar-footer .sb-nouveau-mobile{height:47px;padding:0 24px 0 20px;background:var(--accent)!important;color:var(--accent-ink,#fff)!important;box-shadow:0 2px 8px rgba(0,0,0,.28);gap:10px}
  .sidebar-footer .sb-nouveau-mobile svg{width:20px;height:20px}
  .sidebar-footer .sb-nouveau-mobile span{font-size:17px;font-weight:600}
  .sidebar-footer .sb-profil-bouton.compact{width:47px;height:47px;min-height:47px}
  .sidebar-footer .sb-profil-avatar{width:47px;height:47px;font-size:16px;box-shadow:none}
  .sidebar-footer .sb-profil-bouton.compact{border:0!important;background:transparent!important;box-shadow:none!important}
  .sidebar-overlay.visible{background:rgba(0,0,0,.35)}
}
/* Téléphone, lot 2 — barre de saisie : pastille d'une ligne au repos, carte quand on écrit (mesures de la vidéo : pastille 55 px, carte 106 px, rond de 38 px, 8 px de marge) */
@media(max-width:768px){
  .chat-view .chat-input-wrap{padding-inline:18px;padding-bottom:20px}
  .chat-view .chat-input-wrap .chat-input.pb{padding:14px 8px 8px 8px;gap:0;border-radius:28px;transition:border-radius .12s var(--ease-out),padding .12s var(--ease-out)}
  .chat-input.pb textarea{padding:0 5px;min-height:0;line-height:26px;font-size:19px}
  .chat-input.pb .pb-bas{gap:9px;margin-top:11px;align-items:center}
  .chat-input.pb .pb-mode svg{display:none}
  .chat-input.pb .pb-mode{font-size:15.5px;padding:0 17px}
  .chat-input.pb .pb-actions{gap:13px}
  /* au repos (champ vide, sans focus, sans pièce jointe) : une seule ligne  + … micro envoi */
  .chat-view .chat-input-wrap .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu){display:flex;flex-direction:row;align-items:center;gap:15px;padding:8px;min-height:55px}
  .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) .pb-bas{display:contents}
  .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) .pb-lead{order:0}
  .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) textarea{order:1;flex:1;min-width:0;height:24px!important;padding:0;margin:0;overflow:hidden;resize:none}
  .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) .pb-actions{order:2;margin:0}
  .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) .pb-tools,
  .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) .pb-web,
  .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) .pb-ressort{display:none}
  .chat-view:not(.code-view) .accueil-titre{font-size:26px;font-weight:400;letter-spacing:-.01em}
}
/* Téléphone, lot 2 bis — barre de saisie recalée sur la vidéo : pastille 55 px (texte centré), carte 106 px (texte à 30 px du haut, puces à 79 px). */
@media(max-width:768px){
  .chat-view .chat-input-wrap .chat-input.pb .composer-add{width:38px!important;height:38px!important;min-width:38px!important}
  .chat-view .chat-input-wrap .chat-input.pb .pb-actions .send-btn,.chat-view .chat-input-wrap .chat-input.pb .pb-actions .btn-icon{width:38px;height:38px;min-width:38px}
  .chat-view .chat-input-wrap .chat-input.pb{padding-top:16px}
  .chat-input.pb textarea::placeholder{color:color-mix(in srgb,var(--fg) 46%,transparent);opacity:1}
  .chat-input.pb .composer-add svg{stroke-width:1.6}
  .chat-view .chat-input-wrap .chat-input.pb .pb-mode{font-size:15px}
  .chat-view .chat-input-wrap .chat-input.pb textarea,.chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb textarea{font-size:19px!important;line-height:26px}
  .chat-input.pb .pb-bas{margin-top:14px}
  .chat-view .chat-input-wrap .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu){padding:8px;min-height:55px}
  .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) textarea{align-self:center;line-height:24px;font-size:17.5px!important}
}
/* Téléphone : le texte qui défile s'efface en douceur sous la barre du haut (effet vu dans la vidéo d'une autre IA, 12/11/2026). */
@media(max-width:768px){
  .chat-view .chat-body:not(.chat-body-empty) .chat-messages{-webkit-mask-image:linear-gradient(to bottom,transparent 0,#000 34px);mask-image:linear-gradient(to bottom,transparent 0,#000 34px)}
}
@media(min-width:769px){.sb-recent-bulle{display:none}.sb-projets{display:none}}
@media(max-width:768px){
  .sb-projets{margin:0 18px 0 17px;padding:16px 0 12px;border-top:1px solid var(--ref-line)}
  .sb-projets-titre{padding:0 9px 8px;font-size:16px;color:var(--ref-fg3,#6b6b66)}
  .sb-projets-ligne{display:flex;align-items:center;gap:18px;width:100%;min-height:46px;padding:0 9px 0 12px;border:none;background:none;border-radius:12px;color:var(--fg);font-size:17px;text-align:left}
  .sb-projets-ligne svg{width:17px;height:17px;flex-shrink:0;color:var(--ref-fg3,#6b6b66)}
  .sb-projets-ligne span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .sb-projets-ligne:active{background:var(--ref-active)}
  .sb-projets + .sb-recents{margin-top:0}
}
/* Conversation, téléphone, d'après la vidéo 4 : titre centré dans la barre du haut, bulle grise, texte plus grand. */
.chat-header-titre{display:none}
@media(max-width:768px){
  .chat-top-bar{position:relative}
  .chat-header-titre{display:block;position:absolute;left:70px;right:112px;top:50%;transform:translateY(-50%);line-height:1.35;text-align:left;font-size:17px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none}
  .chat-view .msg-user .msg-content,.dark .chat-view .msg-user .msg-content{background:var(--tel-gris);color:var(--fg);border-radius:14px;font-size:17px;padding:9px 14px}
  .chat-view .chat-body:not(.chat-body-empty) .chat-msg-container{margin-top:-16px}
  .chat-input.pb textarea{text-overflow:ellipsis}
  .chat-view .msg:not(.msg-user) .msg-content :is(p,li){font-size:18.5px;line-height:28px}
}
@media(max-width:768px){.chat-input.pb .pb-actions .send-btn.send-btn-stop{background:var(--tel-gris)!important;color:var(--fg)!important}}
/* Vidéo 4 : pendant l'envoi, le bouton d'arrêt est un petit carré arrondi en contour (pas plein). */
@media(max-width:768px){.chat-input.pb .pb-actions .send-btn.send-btn-stop svg{width:17px!important;height:17px!important}.chat-input.pb .pb-actions .send-btn.send-btn-stop svg rect{fill:none;stroke:currentColor;stroke-width:2;rx:4}}
@media(max-width:768px){.chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) textarea{font-size:17.5px!important;line-height:24px;height:24px!important;margin:0}}
/* Feuille « Ajouter du contexte », téléphone, d'après la vidéo 4 : croix à gauche, titre centré, cartes blanches avec icône dans un rond gris. */
@media(max-width:768px){
  .sheet:has(.sheet-grid){background:var(--fond-lecture,var(--bg));border-radius:28px 28px 0 0;padding:8px 14px calc(20px + env(safe-area-inset-bottom))}
  .sheet:has(.sheet-grid) .sheet-handle{display:block;width:40px;height:5px;margin:4px auto 6px;background:var(--ref-fg3,#8a8a85);opacity:.45}
  .sheet:has(.sheet-grid) .sheet-head{position:relative;justify-content:center;height:48px;margin-bottom:8px}
  .sheet:has(.sheet-grid) .sheet-title{flex:none;text-align:center;font-family:inherit;font-size:17px}
  .sheet:has(.sheet-grid) .sheet-fermer{position:absolute;left:0;top:2px;width:44px;height:44px;background:none;color:var(--fg)}
  .sheet:has(.sheet-grid) .sheet-fermer svg{width:24px;height:24px}
  .sheet:has(.sheet-grid) .sheet-grid{gap:10px;padding:0}
  .sheet:has(.sheet-grid) .sheet-card{height:120px;gap:10px;border-radius:16px;background:var(--surface);font-size:16px}
  .sheet:has(.sheet-grid) .sheet-card svg{width:32px;height:32px;padding:0;border-radius:0;background:none}
  .sheet:has(.sheet-grid) .sheet-lignes{margin-top:10px}
  .sheet:has(.sheet-grid) .sheet-ligne,.sheet:has(.sheet-grid) .ajout-ligne{min-height:64px;padding:12px 14px;border-radius:16px;background:var(--surface);font-size:17px}
  .sheet:has(.sheet-grid) .ajout-sep{display:none}
  .sheet:has(.sheet-grid) .ajout-titre{display:none}
  .sheet:has(.sheet-grid) .ajout-ligne{margin-top:10px}
}
.chat-avertissement{display:none}
@media(max-width:768px){.chat-avertissement{display:block;margin:14px 0 6px;font-size:14px;color:var(--ref-fg3,#8a8a85)}}
/* Bouton d'envoi, appui : il pâlit (image 61 de la vidéo 2). */
@media(max-width:768px){.chat-input.pb .pb-actions .send-btn{transition:opacity .12s,transform .12s}.chat-input.pb .pb-actions .send-btn:active:not(:disabled){opacity:.55;transform:scale(.96)}}
/* Téléphone, lot 3 — tiroir : cotes relevées sur l'image ouverte de la vidéo (titre à 50 px du haut, premières entrées à 60 px d'intervalle, texte 16 px, icône 24 px) */
@media(max-width:768px){
  .sidebar .sidebar-head{box-sizing:border-box;height:84px;min-height:84px;padding:16px 10px 0 26px;align-items:center}
  .sidebar .sidebar-logo,.sidebar .sidebar-logo a{font-size:24px;font-weight:600;letter-spacing:-.01em}
  .sidebar-inner>.sidebar-nav{padding:0 9px 0}
  .sidebar-inner>.sidebar-nav .nav-item{min-height:50px;height:50px;padding:0 17px;gap:15px;font-size:16px;font-weight:400}
  .sidebar-inner>.sidebar-nav .nav-item>svg{width:24px;height:24px;stroke-width:1.7}
  .sb-recents{margin:10px 18px 0 17px;padding:14px 0 90px;border-top:1px solid var(--ref-line)}
  .sb-recents-entete{padding:0 0 4px 9px;font-size:15px}
  .sb-recent-ouvrir{min-height:46px;font-size:15.5px;padding:0 0 0 9px}
  .sidebar-footer{position:absolute;left:0;right:0;bottom:0;padding:0 17px 18px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(to top,var(--bg) 60%,transparent)}
  .sidebar-footer .sb-nouveau-mobile{height:47px;font-size:15.5px;padding:0 22px 0 18px}
  .sidebar-footer .sb-nouveau-mobile span{font-size:15.5px;font-weight:500}
  .sidebar-footer .sb-nouveau-mobile svg{width:18px;height:18px}
}
/* Loupe de l'en-tête : alignée sur le corps des minuscules de « Astra » (le centre du cadre du texte est plus haut que celui des lettres) ; seul le dessin descend, le bouton et sa zone d'appui ne bougent pas. */
.sb-recherche svg{transform:translateY(1px)}
@media(max-width:768px){.sb-recherche svg{transform:translateY(2px)}}
/* Téléphone, lot 4 — feuille « Niveau de réponse » : mise en forme de la feuille « Sélectionner un modèle » de la vidéo (croix à gauche, titre centré, cartes blanches, coche) */
@media(max-width:768px){
  .pb-mode-menu.pb-reglages.pb-niveau{background:var(--bg);border-radius:28px 28px 0 0;padding:0 0 16px;box-shadow:none}
  .pb-niveau .pb-reglages-poignee{display:none}
  .pb-niveau-tete{position:relative;display:flex;align-items:center;justify-content:center;height:68px}
  .pb-niveau-tete .pb-niveau-titre{padding:0;font-size:17px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--fg)}
  .pb-niveau-fermer{position:absolute;left:18px;top:50%;margin-top:-22px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;background:none;border-radius:50%;color:var(--fg)}
  .pb-niveau-fermer svg{width:24px;height:24px}
  .pb-niveau-fermer:active{background:var(--tel-gris)}
  .pb-niv-carte{margin:0 12px;border-radius:18px;background:var(--surface);overflow:hidden}
  html:not(.dark) .pb-niv-carte,html:not(.dark) .pb-niveau-lien{background:#fff}
  .pb-niv-carte .pb-niv{display:flex;width:100%;min-height:0;padding:14px 16px;gap:0;border-radius:0;background:none;border-bottom:1px solid var(--ref-line);align-items:center}
  .pb-niv-carte .pb-niv:last-child{border-bottom:0}
  .pb-niv-carte .pb-niv.on{background:none}
  .pb-niv .pb-radio{display:none}
  .pb-niv .pb-label{font-size:19px;font-weight:400;line-height:24px;display:flex;align-items:center;gap:8px}
  .pb-niv.on .pb-label{font-weight:400}
  .pb-niv .pb-reco{margin-left:0;font-size:12px;padding:1px 10px;border:0;background:var(--tel-gris);color:var(--fg);font-weight:500}
  .pb-niv-desc{font-size:14.5px;line-height:20px;color:var(--ref-fg3)}
  .pb-niv-coche{width:26px;height:26px;flex-shrink:0;margin-left:10px;color:var(--accent)}
  .pb-niveau-sep{display:none}
  .pb-niveau-lien{margin:12px 12px 0;width:calc(100% - 24px);min-height:58px;padding:0 16px;border-radius:18px;background:var(--surface);font-size:19px;gap:0;justify-content:space-between}
  .pb-niveau-lien svg:first-child{display:none}
  .pb-niveau-lien span{flex:1;text-align:left}
  .pb-reglages-voile{background:rgba(0,0,0,.35)}
}
@media(max-width:768px){.pb-niv .pb-label{font-size:18px}.pb-niv-desc{font-size:14px}.pb-niv-coche{width:30px;height:30px;stroke-width:1.8}.pb-niveau-lien{font-size:18px}.pb-niveau-lien svg:last-child{width:22px;height:22px}}
/* Téléphone, lot 5 — liste des projets : lignes à plat, recherche de 42 px, bouton flottant à la couleur d'accent de l'utilisateur (45 px de haut comme dans la vidéo) */
@media(max-width:768px){
  :root{--header-h:74px}
  .top-bar,.lib-barre{border-bottom:0}
  .lib-intro,.proj-premier-intro{display:none}
  .proj-recherche{max-width:none;margin:0 13px;flex:1 1 100%}
  .proj-recherche input{height:42px;border-radius:12px;font-size:17px;padding-inline:44px 14px}
  .proj-recherche svg{width:22px;height:22px}
  .proj-carte{border:0;border-radius:0;background:none!important;box-shadow:none;padding:11px 18px;gap:0}
  .proj-carte .proj-carte-tete>:first-child:not(.proj-carte-titres){display:none}
  .proj-carte .project-del,.proj-carte-desc{display:none}
  .proj-carte-nom{font-size:18px;font-weight:500}
  .proj-carte-pied{margin-top:2px}
  .proj-carte-quand,.proj-carte-pied{font-size:15px;color:var(--ref-fg3)}
  .lib-ajouter-flottant{height:47px;right:18px;bottom:31px;padding:0 22px 0 18px;font-size:15.5px;font-weight:500;background:var(--accent);color:var(--accent-ink,#fff);box-shadow:0 2px 10px rgba(0,0,0,.25)}
}
@media(max-width:768px){.proj-recherche{margin-inline:-5px;border-radius:12px}.proj-recherche input{text-align:left;padding-inline-start:50px;border-radius:12px;background:transparent}.lib-recherche.proj-recherche{border-radius:12px;height:42px}.lib-recherche.proj-recherche svg{left:14px}}
/* Téléphone, lot 6 — « Tout afficher », mouvements relevés sur la vidéo (tiroir ≈ 0,25 s, feuille ≈ 0,45 s à freinage doux, voile 0,2 s) */
@media(max-width:768px){
  .sb-recents-tout{margin:6px 0 0;padding:8px 9px;font-size:16px;color:var(--fg);gap:8px}
  .sb-recents-tout svg{width:16px;height:16px;color:var(--ref-fg3)}
  .sidebar{transition:transform .2s cubic-bezier(.2,.8,.25,1),width var(--dur-lent),min-width var(--dur-lent)}
  .sidebar-overlay{transition:opacity .2s linear,visibility .2s}
  .pb-mode-menu.pb-reglages.pb-niveau{animation-duration:.45s;animation-timing-function:cubic-bezier(.2,.9,.25,1)}
  .pb-reglages-voile{animation-duration:.2s}
  .chat-view .chat-input-wrap .chat-input.pb:focus-within{box-shadow:0 2px 14px rgba(0,0,0,.1)}
  .top-bar .hamburger,.chat-header-controls .btn-icon.chat-header-new{transition:background-color .15s linear}
}
@media(max-width:768px){.pb-niv-coche{display:inline-flex;width:30px;height:30px;flex-shrink:0;margin-left:10px;color:var(--accent)}.pb-niv-coche svg{width:30px;height:30px;stroke-width:1.8}.sidebar-inner>.sidebar-nav .nav-item.active,.sidebar-inner>.sidebar-nav .nav-item.active:hover{background:transparent}.sidebar-inner>.sidebar-nav .nav-item:active{background:var(--tel-actif)}}
@media (max-width:768px){.sb-recents::before{display:none}
  .sb-recents-titre{display:none}
  .sb-recent-ouvrir{display:flex;align-items:center;gap:18px;padding-inline-start:12px}
  .sb-recent-ouvrir>svg{width:17px;height:17px;flex-shrink:0;color:var(--ref-fg3,#6b6b66)}
  .sidebar-footer .sb-profil-bouton.compact .sb-profil-avatar{width:47px;height:47px;min-width:47px;font-size:16px;font-weight:600;letter-spacing:0;color:#fff;box-shadow:none}
  .sidebar-footer .sb-profil-bouton.compact{padding:0;width:47px;height:47px;margin-left:0}}
/* Paramètres, téléphone, d'après la vidéo (12/11/2026) : menu sans cadre, lignes sans flèches, flèche du compte vers le bas. */
@media (max-width:768px){
  .settings-header-action.settings-menu{border:none!important;background:none!important;box-shadow:none!important;width:44px;height:44px}
  .reglages-menu-accueil .reglages-ligne-chevron{display:none}
  .reglages-menu-accueil .reglages-compte .reglages-ligne-chevron{display:inline-flex;transform:rotate(90deg);opacity:.8}
}
/* Détail d'un projet, téléphone, d'après la vidéo (12/11/2026). */
.proj-cartes-tel,.proj-vide-bulle{display:none}
@media (max-width:768px){
  .proj-page .top-bar .proj-retour{border:none;background:none!important;padding:0;width:44px;height:44px;justify-content:center}
  .proj-page .top-bar .proj-retour span,.proj-page .top-bar .proj-barre-nom{display:none}
  .proj-page .proj-hero{background:none!important;padding:0;margin:-28px 0 4px;gap:0;border-radius:0}
  .proj-page .proj-hero .proj-icone,.proj-page .proj-hero .proj-pastille,.proj-page .proj-hero .proj-entete-texte>*:not(.proj-titre){display:none}
  .proj-page .proj-hero .proj-titre{font-size:30px;font-weight:600;color:var(--fg);margin:0}
  .proj-page .proj-apercu .proj-onglets,.proj-page .proj-apercu .lib-section:nth-of-type(n+2){display:none}
  .proj-page .proj-apercu .lib-section-tete{display:none}
  .proj-page .proj-nouvelle{position:fixed;right:18px;bottom:31px;z-index:40;width:auto;height:47px;margin:0;padding:0 22px 0 18px;background:var(--accent);color:var(--accent-ink,#fff);font-size:15.5px;box-shadow:0 2px 10px rgba(0,0,0,.25)}
  .proj-page .proj-apercu .proj-nouvelle{display:flex}
  .proj-cartes-tel{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:53px 0 28px}
  .proj-carte-tel{display:flex;flex-direction:column;justify-content:space-between;align-items:flex-start;min-height:114px;padding:14px 12px;border:none;border-radius:14px;background:color-mix(in srgb,var(--fg) 6%,var(--bg));text-align:left;font-size:16px;color:var(--fg)}
  .proj-carte-tel-titre{font-weight:500;line-height:1.25}
  .proj-carte-tel-action{color:var(--accent);font-weight:500;line-height:1.25}
  .proj-vide-conv{display:flex;flex-direction:column;align-items:center;gap:18px;border:none;padding:8px 6px;text-align:center;font-size:19px;line-height:1.35;color:var(--ref-fg3,#55554f)}
  .proj-vide-bulle{display:block;color:var(--ref-fg3,#55554f)}
  .proj-vide-bulle svg{width:84px;height:84px;stroke-width:1.6}
}
/* Projets, téléphone : ligne « Modifié … » à la place des statistiques. */
.proj-carte-modifie{display:none}
@media (max-width:768px){.proj-carte-modifie{display:block;font-size:16px;color:var(--ref-fg3,#6b6b66);margin-top:2px}.proj-carte-pied{display:none}.proj-carte-desc{display:none}}
@media (max-width:768px){
  .proj-page .lib-outils{margin-top:-12px}
  .proj-page .lib-recherche.proj-recherche input{text-align:left!important;padding-inline-start:8px!important}
  .proj-page .proj-grille{gap:0;margin-inline:-8px}
  .proj-page .proj-carte{padding:12px 16px 12px;min-height:0}
  .proj-page .proj-carte-nom{line-height:1.25}
  .proj-page .lib-ajouter-flottant{bottom:31px}
}
/* Feuille « Nouveau projet » du téléphone, d'après la vidéo de référence (12/11/2026). */
.proj-nouveau-tete,.proj-nouveau-voile{display:none}
@media (max-width:768px){
  .proj-nouveau-voile{display:block;position:fixed;inset:0;z-index:90;background:rgba(0,0,0,.35);animation:projVoile .2s ease-out}
  .proj-nouveau{position:fixed;left:0;right:0;bottom:0;top:15px;justify-content:flex-start;z-index:91;margin:0;gap:8px;padding:12px 26px calc(24px + env(safe-area-inset-bottom));border:none;border-radius:28px 28px 0 0;background:var(--fond-lecture,var(--bg));box-shadow:0 -4px 24px rgba(0,0,0,.12);animation:projFeuille .3s cubic-bezier(.2,.8,.2,1)}
  .proj-nouveau::before{content:"";align-self:center;width:36px;height:4px;border-radius:2px;background:var(--ref-fg3,#8a8a85);opacity:.55;margin-bottom:4px}
  .proj-nouveau-tete{display:flex;align-items:center;justify-content:center;position:relative;height:44px;margin:0 -12px 8px}
  .proj-nouveau-fermer{position:absolute;left:0;top:0;width:44px;height:44px;border:none;background:none;color:var(--fg);display:flex;align-items:center;justify-content:center}
  .proj-nouveau-fermer svg{width:24px;height:24px}
  .proj-nouveau-titre{font-size:17px;font-weight:600}
  .proj-nouveau .field-label{font-size:15px;font-weight:600;color:var(--ref-fg3,#6b6b66)}
  .proj-nouveau .input{height:52px;padding:0 16px;border-radius:12px;font-size:17px;background:var(--bg)}
  .proj-nouveau .input:focus{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent);outline:none}
  .proj-nouveau-etiq2{margin-top:10px}
  .proj-nouveau .proj-nouveau-desc{height:110px;padding:14px 16px;resize:none;line-height:1.35}
  .proj-nouveau .mem-ajout-boutons{display:flex;flex-direction:column;margin-top:auto}
  .proj-nouveau .mem-ajout-boutons .btn-secondary{display:none}
  .proj-nouveau .mem-ajout-boutons .btn-primary{width:100%;height:54px;border-radius:27px;font-size:17px;font-weight:600;justify-content:center;text-align:center;background:var(--accent);color:var(--accent-ink,#fff)}
  .proj-nouveau .mem-ajout-boutons .btn-primary:disabled{opacity:1;background:color-mix(in srgb,var(--accent) 38%,var(--bg));color:rgba(255,255,255,.85)}
  @keyframes projFeuille{from{transform:translateY(100%)}to{transform:none}}
  @keyframes projVoile{from{opacity:0}to{opacity:1}}
}
/* ── Vidéo 5 (12/11/2026) : fenêtre « Renommer » et feuille « Déplacer 1 conversation » (téléphone) ── */
.rn-titre,.rn-lib-tel{display:none}
@media(max-width:768px){
  .rn-voile{align-items:center;background:rgba(0,0,0,.4)}
  .rn-boite{width:calc(100vw - 32px);max-width:420px;padding:22px 20px 18px;border-radius:18px;background:var(--surface);box-shadow:0 8px 32px rgba(0,0,0,.18)}
  .rn-titre{display:block;font-size:22px;font-weight:500;color:var(--fg);margin:0 0 14px 2px}
  .rn-champ{margin-top:0}
  .rn-champ span{display:none}
  .rn-champ input{height:58px;font-size:17px!important;border:2px solid var(--accent);border-radius:12px;padding:0 16px}
  .rn-champ input:focus{border-width:2px}
  .rn-actions{justify-content:stretch;gap:10px;margin-top:16px}
  .rn-actions button:active:not(:disabled){background:color-mix(in srgb,var(--fg) 18%,var(--surface))}
  .rn-actions .rn-valider:active:not(:disabled){background:color-mix(in srgb,#000 30%,var(--accent))}
  .rn-actions button{flex:1;min-height:44px;border-radius:var(--radius-full);background:var(--surface);border:1px solid var(--ref-line);color:var(--fg);font-size:17px;font-weight:600}
  .rn-actions .rn-valider{background:var(--accent);border-color:var(--accent);color:var(--accent-ink,#fff)}
  .rn-actions .rn-valider:disabled{background:var(--tel-gris);border-color:var(--tel-gris);color:var(--ref-fg3);opacity:1}
  .sb-recent-menu{width:236px;padding:6px;border:0;border-radius:18px;background:var(--surface);box-shadow:0 4px 24px rgba(0,0,0,.16);z-index:400}
  .sb-recent-menu button{height:52px;min-height:52px;gap:14px;padding:0 14px;border-radius:12px;font-size:16.5px;white-space:nowrap}
  .sb-recent-menu button svg{width:22px;height:22px;flex:0 0 22px}
  .sb-recent-menu button:active{background:var(--tel-gris)}
  .rn-lib-pc{display:none}.rn-lib-tel{display:inline}
  .sheet.sheet-projets{background:var(--fond-lecture);border-radius:20px 20px 0 0;padding:10px 14px 24px;min-height:74vh}
  .sheet.sheet-projets .sheet-poignee{width:40px;height:4px;border-radius:2px;background:var(--ref-line);margin:0 auto 6px}
  .sp-tete{position:relative;text-align:center;padding:6px 0 16px}
  .sp-croix{position:absolute;left:4px;top:6px;width:40px;height:40px;display:grid;place-items:center;border:0;background:none;color:var(--fg);cursor:pointer}
  .sp-croix svg{width:26px;height:26px}
  .sp-titre{font-size:20px;font-weight:500;color:var(--fg)}
  .sp-sous{font-size:15px;color:var(--ref-fg3);margin-top:2px}
  .sp-recherche{display:flex;align-items:center;gap:12px;height:48px;padding:0 16px;margin-bottom:14px;border:1px solid var(--ref-line);border-radius:14px;background:var(--surface);color:var(--ref-fg3)}
  .sp-recherche svg{width:22px;height:22px;flex:none}
  .sp-recherche input{flex:1;min-width:0;border:0!important;outline:none;background:none;font-size:18px!important;color:var(--fg)}
  .sp-ligne{display:flex;align-items:center;gap:14px;width:100%;height:60px;margin-bottom:2px;padding:0 14px;border:0;border-radius:14px;background:var(--surface);color:var(--fg);font-size:19px;text-align:left;cursor:pointer}
  .sp-ligne svg{width:24px;height:24px;flex:none}
  .sp-ligne:active{background:var(--tel-gris)}
}
/* ── Vidéo 4/5 : actions d'une réponse et menu ⋮ de la conversation (téléphone) ── */
.act-tel,.chat-header-plus,.chat-menu-haut{display:none}
@media(max-width:768px){
  .chat-view .msg:not(.msg-user) .msg-actions{gap:2px;margin-top:6px}
  .chat-view .msg:not(.msg-user) .msg-actions .act-tel{display:flex}
  .chat-view .msg:not(.msg-user) .msg-actions .msg-plus{display:none}
  .chat-view .msg:not(.msg-user) .msg-actions button svg{width:17px;height:17px;stroke-width:1.7}
  .chat-view .chat-header-controls,.chat-view .chat-header-controls .chat-header-new{background:none!important;border:0!important;box-shadow:none!important}
  .chat-view .msg:not(.msg-user) .msg-actions .act-tel.actif{color:var(--fg)}
  .chat-view .msg:not(.msg-user) .msg-actions [aria-pressed="true"] svg{fill:currentColor}
  .chat-view .chat-header-plus{display:grid;place-items:center;width:40px;height:40px;background:none!important;border:0;box-shadow:none!important;color:var(--fg)}
  .chat-view .chat-header-plus svg{width:20px;height:20px}
  .chat-menu-haut{display:block;position:fixed;top:56px;right:12px;width:236px;padding:6px;border-radius:18px;background:var(--surface);box-shadow:0 4px 24px rgba(0,0,0,.16);z-index:400}
  .chat-menu-haut button{display:flex;align-items:center;gap:14px;width:100%;height:52px;padding:0 14px;border:0;border-radius:12px;background:none;color:var(--fg);font-size:16.5px;text-align:left;cursor:pointer}
  .chat-menu-haut button svg{width:20px;height:20px;color:var(--ref-fg3)}
  .chat-menu-haut button.danger,.chat-menu-haut button.danger svg{color:var(--danger)}
  .chat-menu-haut button:active{background:var(--tel-gris)}
}
/* ── Vidéo 4 : barre de dictée du téléphone (× / onde / ■ / ↑) ── */
.pb-dictee-stop,.pb-dictee-envoi{display:none}
@media(max-width:768px){
  .chat-input.pb:has(.pb-dictee) textarea{display:none!important}
  .pb-dictee:has(.pb-dictee-stop) .pb-valider-pc{display:none}
  .pb-dictee:has(.pb-dictee-stop) .pb-temps{display:none}
  .pb-dictee:has(.pb-dictee-stop) .pb-onde{justify-content:flex-start;padding:0 4px}
  .pb-dictee .pb-dictee-stop{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:50%;background:var(--tel-gris);color:var(--fg);cursor:pointer}
  .pb-dictee .pb-dictee-stop svg{width:15px;height:15px}
  .pb-dictee .pb-dictee-envoi{display:grid;place-items:center;width:38px;height:38px;border-radius:50%}
  .pb-dictee:has(.pb-dictee-stop){gap:10px}
  .pb-dictee:has(.pb-dictee-stop) .pb-onde-canvas{flex:1;width:auto;min-width:0;height:34px}
}
/* ── Vidéo 5 : appui sur une ligne du tiroir = le fond se pose tout de suite, s'efface doucement ; le menu d'appui long apparaît en fondu + léger zoom ── */
@media(max-width:768px){
  .sb-recent .sb-recent-ouvrir,.sb-projets-ligne,.sidebar-nav .nav-item{transition:background-color .3s ease-out}
  .sb-recent:active .sb-recent-ouvrir,.sb-recent.menu-ouvert .sb-recent-ouvrir,.sb-projets-ligne:active,.sidebar-nav .nav-item:active{background:var(--tel-gris);transition-duration:.08s}
  .sb-recent-menu,.chat-menu-haut{animation:menu-tel-entree .08s linear}
}
@keyframes menu-tel-entree{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.sb-recent-menu,.chat-menu-haut{animation:none!important}}
/* ── Vidéo 4 : feuille d'accueil de la dictée (1re utilisation) ── */
@media(max-width:768px){
  .sheet.fd-feuille{position:relative;display:flex;flex-direction:column;align-items:stretch;min-height:98vh;max-height:98vh;padding:14px 22px 22px;border-radius:26px 26px 0 0;background:color-mix(in srgb,var(--fg) 6%,var(--fond-lecture))}
  .fd-croix{position:absolute;left:14px;top:14px;width:40px;height:40px;display:grid;place-items:center;border:0;background:none;color:var(--fg)}
  .fd-croix svg{width:24px;height:24px}
  .fd-micro{width:176px;height:176px;margin:40px auto 22px}
  .fd-titre{font-size:31px;line-height:1.25;font-weight:500;text-align:center;margin:0 0 26px;color:var(--fg)}
  .fd-points{list-style:none;margin:0 0 auto;padding:0;display:flex;flex-direction:column;gap:26px}
  .fd-points li{display:flex;align-items:center;gap:16px;font-size:18px;line-height:1.35;color:var(--fg)}
  .fd-points svg{width:26px;height:26px;flex:none;color:var(--ref-fg3)}
  .fd-champ{display:block;margin:22px 0 14px;padding:10px 16px;border:1px solid var(--ref-line);border-radius:14px;background:var(--fond-lecture)}
  .fd-champ span{display:block;font-size:13px;color:var(--ref-fg3)}
  .fd-champ select{width:100%;border:0;background:none;font-size:18px!important;color:var(--fg);padding:2px 0}
  .fd-continuer{height:52px;border:0;border-radius:var(--radius-full);background:var(--accent);color:var(--accent-ink,#fff);font-size:18px;font-weight:600;cursor:pointer}
}
/* ── Vidéo 4 : barre vide = pastille à la couleur choisie avec l'onde (lance la dictée) ── */
@media(max-width:768px){
  .chat-input.pb .pb-actions .send-btn.send-btn-onde,.chat-view .chat-input.pb .send-btn.send-btn-onde{display:grid!important;place-items:center;background:var(--accent)!important;color:var(--accent-ink,#fff)!important;opacity:1;cursor:pointer}
  .chat-input.pb .send-btn.send-btn-onde svg{width:19px;height:19px}
}
/* ── Vidéo 2 : état vide des tâches planifiées (téléphone) = horloge + deux phrases au centre ; carte de notifications et exemples restent plus bas ── */
@media(min-width:769px){.tache-vide .tache-exemples,.tache-vide .tache-section-tete{display:none}.tache-vide-tel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:50vh;text-align:center}.tache-vide-tel svg{width:32px;height:32px;margin-bottom:10px;color:var(--muted)}.tache-vide-tel strong{font-size:17px;font-weight:600}.tache-vide-tel span{font-size:15px;color:var(--muted)}}
@media(max-width:768px){
  .tache-vide-tel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:calc(100vh - 410px);text-align:center;padding:0 24px}
  .tache-vide-tel svg{width:30px;height:30px;margin-bottom:12px;color:var(--ref-fg3);stroke-width:1.6}
  .tache-vide-tel strong{font-size:17px;font-weight:600;color:var(--fg)}
  .tache-vide-tel span{font-size:16px;color:var(--ref-fg3);max-width:300px}
}
/* Tâches planifiées (téléphone) : plus d'exemples sous l'état vide, à la demande du propriétaire (13/11/2026). */
@media(max-width:768px){.tache-vide .tache-exemples,.tache-vide .tache-section-tete{display:none}.tache-vide-tel{min-height:calc(100vh - 300px)}}
/* Téléphone : copier / modifier sous ton message n'apparaissent qu'après un appui long (13/11/2026). */
@media(max-width:768px){
  .chat-view .msg-user .msg-actions{display:none}
  .chat-view .msg-user.msg-actions-ouvertes .msg-actions,.chat-view .msg-user:focus-within .msg-actions{display:flex}
}
/* Vidéo 6 : barre de chat, détails fins (13/11/2026) : micro fin et gris, pastille du niveau en texte léger */
@media(max-width:768px){
  .chat-input.pb .voice-btn{color:color-mix(in srgb,var(--fg) 52%,transparent)!important}
  .chat-input.pb textarea::placeholder{color:color-mix(in srgb,var(--fg) 40%,transparent)!important}
  .chat-input.pb .voice-btn svg{width:20px;height:20px}
  .chat-view .chat-input-wrap .chat-input.pb .pb-mode{font-size:15px;font-weight:400;color:color-mix(in srgb,var(--fg) 82%,transparent)}
}
/* Vidéo 6 : mesures au pixel (barre au repos : 18 px de marge latérale, bas à 19,5 px, 12,5 px entre micro et pastille) */
@media(max-width:768px){
  .chat-view .chat-input-wrap{padding-inline:18px;padding-bottom:19.5px}
  .chat-input.pb .voice-btn{margin-right:4px}
  /* carte ouverte (vidéo 6, image 46) : 106 px de haut, boutons à 7,5 px du bas, + à x=26 */
  .chat-view .chat-input-wrap .chat-input.pb:is([data-kb],:has(textarea:not(:placeholder-shown))):not(.pb-avec-apercu){padding:16px 7.5px 5.5px}
  .chat-view .chat-input-wrap .chat-input.pb:is([data-kb],:has(textarea:not(:placeholder-shown))) .pb-bas:not(.pb-dictee){margin-top:18.5px!important}
  .chat-view .chat-input-wrap .chat-input.pb:is([data-kb],:has(textarea:not(:placeholder-shown))) textarea{padding:0 0 0 5.5px!important}
  .chat-view .chat-input-wrap .chat-input.pb .composer-add{height:38px!important;min-height:38px!important}
  .chat-view .chat-input-wrap .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu){padding:7.25px 7.5px}
  .chat-view .chat-input-wrap .chat-input.pb:not([data-kb]):has(textarea:placeholder-shown):not(.pb-avec-apercu) .pb-bas:not(.pb-dictee){height:38px;min-height:38px}
}
/* Téléphone, 13/11/2026 : la barre de chat suit le clavier (voir pbClavierTel). Quand le clavier passe par-dessus la page,
   --clavier est sa hauteur : la zone de chat lui laisse la place et l'accueil se replace comme lorsque la page rétrécissait. */
html[data-clavier-ecran] .chat-view .chat-body{padding-bottom:var(--clavier,0px)}
html.clavier-sup .chat-view .chat-body-empty .chat-msg-container>*,html.clavier-sup .chat-view .chat-body-empty .accueil-chat{transition:none!important}
@media(max-width:768px){
  html[data-clavier-ecran] .chat-view:not(.code-view) .chat-body-empty .chat-msg-container>div:first-child,
  html[data-clavier-ecran] .chat-view .chat-body-empty .chat-msg-container>.cl-lanceur-nuage{margin-top:0}
  /* Tant que le clavier passe par-dessus la page, la hauteur de page est figée dans --page-haut : sur le téléphone les unités
     vh/dvh rétrécissent quand même, et en retard, ce qui faisait sauter le logo de l'accueil en fin d'ouverture. */
  html.clavier-sup .chat-view:not(.code-view) .chat-body-empty .chat-msg-container>div:first-child,
  html.clavier-sup .chat-view .chat-body-empty .chat-msg-container>.cl-lanceur-nuage{margin-top:calc(var(--page-haut,100dvh) * .16)}
  html.clavier-sup .chat-view:not(.code-view) .chat-body-empty .accueil-chat{padding-top:max(12px, calc(var(--page-haut,100dvh) * .09 + max(0px, (var(--page-haut,100dvh) - 740px) * .45) - 2px))}
  html.clavier-sup .chat-view .chat-body-empty .chat-msg-container>.cl-lanceur-nuage{padding-top:max(12px, calc(var(--page-haut,100dvh) * .09 + max(0px, (var(--page-haut,100dvh) - 740px) * .45) - 2px))}
  html.clavier-sup[data-clavier-ecran] .chat-view:not(.code-view) .chat-body-empty .chat-msg-container>div:first-child,
  html.clavier-sup[data-clavier-ecran] .chat-view .chat-body-empty .chat-msg-container>.cl-lanceur-nuage{margin-top:0}
  html.clavier-sup[data-clavier-ecran] .chat-view:not(.code-view) .chat-body-empty .accueil-chat{padding-top:max(12px, calc((var(--page-haut,100dvh) - var(--clavier,0px)) * .09 - 2px))}
  html.clavier-sup[data-clavier-ecran] .chat-view .chat-body-empty .chat-msg-container>.cl-lanceur-nuage{padding-top:max(12px, calc((var(--page-haut,100dvh) - var(--clavier,0px)) * .09 - 2px))}
  .chat-view .chat-input-wrap .chat-input.pb[data-morph]{transition:none!important}
  .chat-view .chat-input-wrap .chat-input.pb[data-morph="invite"] textarea::placeholder{color:transparent!important}
  .chat-input.pb .pb-invite-fantome{position:absolute;white-space:nowrap;pointer-events:none;user-select:none;-webkit-user-select:none}
  /* vidéo de 12 h 20 : bouton d'envoi toujours visible avec sa flèche, à 38 % d'opacité quand il n'y a rien à envoyer */
  .chat-view .chat-input-wrap .chat-input.pb .pb-actions .send-btn.send-btn-vide:not(.voice-btn){display:flex!important;background:var(--accent)!important;color:var(--accent-ink,#fff)!important;opacity:.38!important}
  .chat-view .chat-input-wrap .chat-input.pb .pb-actions .send-btn:not(.voice-btn){transition:opacity .1s linear}
  /* même vidéo : la barre est 4 px plus près du bas (et du clavier) */
  .chat-view .chat-input-wrap{padding-bottom:15.5px}
}
/* Téléphone, conversation ouverte (13/11/2026) : l'en-tête et la barre de saisie sont translucides, le texte défile en dessous (flou léger).
   L'en-tête et la zone de saisie recouvrent le fil de leur hauteur : le fil prend la même marge pour que rien ne reste caché au repos. */
@media(max-width:768px){
  .chat-view:not(.code-view):has(.chat-body:not(.chat-body-empty)) .chat-top-bar{margin-bottom:calc(-1 * var(--header-h));z-index:70;
    background:color-mix(in srgb,var(--bg) 68%,transparent)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-bottom:0!important;box-shadow:none!important}
  .chat-view:not(.code-view) .chat-body:not(.chat-body-empty)>.chat-messages{padding-top:calc(var(--header-h) + 12px);padding-bottom:64px}
  .chat-view:not(.code-view) .chat-body:not(.chat-body-empty)>.chat-input-wrap{position:relative;z-index:5;margin-top:-64px;
    background:color-mix(in srgb,var(--bg) 68%,transparent)!important;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
  .chat-view:not(.code-view) .chat-body:not(.chat-body-empty)>.chat-input-wrap::before{display:none}
}
/* ── RTL-AUTO : miroir généré par scripts/rtl-css.mjs (ne pas modifier à la main) ── */
html[dir="rtl"] .category-menu{left:0;right:auto}
html[dir="rtl"] .sidebar{border-left:1px solid var(--border);border-right:none}
html[dir="rtl"] .dist-historique>summary::before{border-right:5px solid currentColor;border-left:none}
html[dir="rtl"] .nav-item{text-align:right}
html[dir="rtl"] .nav-item .badge{margin-right:auto;margin-left:0}
@media (hover:hover){html[dir="rtl"] .nav-item:hover svg{transform:translateX(-2px)}
html[dir="rtl"] .nav-item.active:hover svg{transform:translateX(-2px)}}
html[dir="rtl"] .cl-n{right:0;left:auto;padding-left:14px;padding-right:0;text-align:left}
html[dir="rtl"] .code-head{padding:5px 12px 5px 8px}
html[dir="rtl"] .code-info::before{margin-left:6px;margin-right:0}
html[dir="rtl"] .code-actions{margin-right:auto;margin-left:0}
html[dir="rtl"] .code-copy.ok::before{margin-left:4px;margin-right:0}
html[dir="rtl"] .code-head > .code-download{margin-right:auto;margin-left:0}
html[dir="rtl"] select.input{padding-left:28px;padding-right:0;background-position:left 10px center}
html[dir="rtl"] .msg-content ul,html[dir="rtl"] .msg-content ol{padding-right:20px;padding-left:0}
html[dir="rtl"] .msg-content blockquote{border-right:3px solid var(--border);border-left:none;padding-right:14px;padding-left:0}
html[dir="rtl"] .msg-content td,html[dir="rtl"] .msg-content th{text-align:right}
html[dir="rtl"] .chat-input{padding:6px 14px 6px 6px}
html[dir="rtl"] .pj-liste{padding:10px 2px 8px 10px}
html[dir="rtl"] .pj-suppr{left:-7px;right:auto}
html[dir="rtl"] .pj-envoyee{padding:8px 8px 8px 16px}
html[dir="rtl"] .pj-telecharger svg{margin-left:6px;margin-right:0}
html[dir="rtl"] .sheet-title{text-align:right}
html[dir="rtl"] .sheet-ligne{text-align:right}
html[dir="rtl"] .cam-barre{right:0;left:0}
html[dir="rtl"] .cam-pile{left:0;right:auto}
html[dir="rtl"] .art-panel{left:0;right:auto;border-right:1px solid var(--border);border-left:none;transform:translateX(-100%)}
html[dir="rtl"] .nav-onglet-titre{padding:6px 10px 6px 4px}
@media (min-width:769px){html[dir="rtl"] .chat-view.avec-art>*:not(.art-panel){margin-left:var(--art-w,0px);margin-right:0}}
html[dir="rtl"] .art-poignee{right:-3px;left:auto}
html[dir="rtl"] .art-poignee::after{right:2px;left:auto}
html[dir="rtl"] .art-head{padding:8px 12px 0 8px}
html[dir="rtl"] .art-outils{margin-right:auto;margin-left:0}
html[dir="rtl"] .art-compte{text-align:left}
html[dir="rtl"] .art-nav{border-left:1px solid var(--border);border-right:none}
html[dir="rtl"] .art-nav-item{text-align:right}
html[dir="rtl"] .od-viewer .code-viewer .gutter{text-align:left;padding:16px 16px 16px 12px;border-left:1px solid var(--od-border-soft);border-right:none}
html[dir="rtl"] .od-viewer .code-viewer .lines{padding:16px 18px 16px 16px}
html[dir="rtl"] .od-viewer .viewer-empty.viewer-empty-dismissible{text-align:right}
html[dir="rtl"] .art-carte{text-align:right}
html[dir="rtl"] .vignette-vive iframe{right:0;left:auto}
html[dir="rtl"] .g-tuile{text-align:right}
html[dir="rtl"] .g-type{margin-right:auto;margin-left:0}
html[dir="rtl"] .art-panel.art-panel--plein{border-right:none}
html[dir="rtl"] .modal-fermer{margin:2px 0 0 -8px}
html[dir="rtl"] .modal-avec-icone .modal-corps{padding-right:50px;padding-left:0}
html[dir="rtl"] .installer-fermer{left:14px;right:auto}
html[dir="rtl"] .installer-avantages{text-align:right}
html[dir="rtl"] .modal-installer.ios{text-align:right}
@media (max-width:640px){html[dir="rtl"] .modal-poignee::after{margin-right:-20px;margin-left:0}
html[dir="rtl"] .modal-avec-icone .modal-corps{padding-right:0}}
html[dir="rtl"] .search-bar input{padding:10px 38px 10px 14px}
html[dir="rtl"] .aide-question button{text-align:right}
html[dir="rtl"] .aide-lien{text-align:right}
html[dir="rtl"] .search-bar-icon{right:12px;left:auto}
html[dir="rtl"] .notif-zone-haut{left:20px;right:auto}
html[dir="rtl"] .notif-item.court{padding:8px 9px 8px 12px}
html[dir="rtl"] .notif-item.court:has(.notif-action){padding-left:6px;padding-right:0}
html[dir="rtl"] .notif-item.carte{padding:13px 14px 13px 10px}
html[dir="rtl"] .notif-barre{right:0;left:auto;border-radius:3px 0 0 3px}
@media (max-width:768px){html[dir="rtl"] .notif-zone-haut{right:10px;left:10px}
html[dir="rtl"] .notif-zone-bas{right:12px;left:12px}
html[dir="rtl"] .notif-item.carte{padding:14px 14px 14px 10px}
html[dir="rtl"] .notif-zone-bas .notif-item.court:has(.notif-action){padding:6px 14px 6px 6px}}
html[dir="rtl"] .notif-zone-haut.notif-pc{left:24px;right:auto}
html[dir="rtl"] .chat-view .chat-body:not(.chat-body-empty)>.chat-input-wrap::before{right:0;left:14px}
html[dir="rtl"] .notif-pc .notif-item.court{padding:9px 10px 9px 16px}
html[dir="rtl"] .notif-pc .notif-item.court:has(.notif-action){padding-left:8px;padding-right:0}
html[dir="rtl"] .notif-minuteur{right:0;left:0;transform-origin:right}
@media (max-width:768px){html[dir="rtl"] .notif-zone-haut.notif-ios{right:10px;left:10px}
html[dir="rtl"] .notif-ios .notif-item.carte::after{margin-right:-18px;margin-left:0}
html[dir="rtl"] .notif-ios .notif-item.court{padding:0 12px 0 18px}
html[dir="rtl"] .notif-ios .notif-item.court:has(.notif-action){padding-left:6px;padding-right:0}}
html[dir="rtl"] .page-col{margin-right:auto;margin-left:auto}
html[dir="rtl"] .settings-row select{padding:5px 10px 5px 24px;background-position:left 8px center}
html[dir="rtl"] .provider-chip{padding:5px 5px 5px 10px}
@media (max-width:380px){html[dir="rtl"] .provider-chip{text-align:right}}
html[dir="rtl"] .provider-model-row{text-align:right}
@media (max-width:768px){html[dir="rtl"] .sidebar{right:0;left:auto;transform:translateX(100%)}}
html[dir="rtl"] .conv-open{text-align:right}
html[dir="rtl"] .conv-row .conv-actions{left:0;right:auto}
html[dir="rtl"] .settings-nav{border-left:1px solid var(--border);border-right:none}
html[dir="rtl"] .settings-nav button{text-align:right}
html[dir="rtl"] .settings-row select{padding:9px 12px 9px 32px}
@media (max-width:768px){html[dir="rtl"] .code-mode-wrap .provider-chip{padding-right:14px!important;padding-left:0!important}
html[dir="rtl"] .account-page .card .flex-col>.flex-row>span:last-child{margin-right:auto;margin-left:0;text-align:left}}
html[dir="rtl"] .sidebar-logo img{margin-left:10px;margin-right:0}
@media (min-width:769px){html[dir="rtl"] .sb-collapse{left:12px;right:auto}
html[dir="rtl"] .sb-expand{right:15px;left:auto}
html[dir="rtl"] .sidebar.closed .nav-item>span,html[dir="rtl"] .sidebar.closed .nav-item .badge,html[dir="rtl"] .sidebar.closed .sb-copy{transform:translateX(8px)}
html[dir="rtl"] .sidebar-glide-highlight{right:12px;left:12px}
html[dir="rtl"] .sidebar.closed .sidebar-glide-highlight{left:auto}
html[dir="rtl"] .sidebar.closed .sb-expand{right:5px;left:auto}
html[dir="rtl"] .sidebar.closed .nav-item.rail{margin:0 5px 2px 0}
html[dir="rtl"] .sidebar.closed .sidebar-glide-highlight{right:5px;left:auto}}
html[dir="rtl"] .starter-card{text-align:right}
html[dir="rtl"] .starter-arrow{left:13px;right:auto}
html[dir="rtl"] .code-mode-wrap .provider-chip{padding-right:14px;padding-left:0}
@media (min-width:769px){html[dir="rtl"] .conv-row{padding:0 12px 0 8px!important}
html[dir="rtl"] .conv-open>.text-xs{text-align:left}}
html[dir="rtl"] .chat-view .chat-input{padding:6px 14px 6px 6px}
html[dir="rtl"] .code-view .composer-add{margin-left:auto;margin-right:0}
html[dir="rtl"] .sidebar .settings-sidebar-nav button{text-align:right}
html[dir="rtl"] .settings-pro .settings-nav{border-left:1px solid var(--border);border-right:none}
html[dir="rtl"] .preference-switch:after{right:3px;left:auto}
html[dir="rtl"] .preference-switch:checked:after{transform:translateX(-16px)}
@media (max-width:768px){html[dir="rtl"] .settings-pro .settings-chevron{margin-right:auto;margin-left:0}}
html[dir="rtl"] .chat-view .msg-user .msg-content{border-radius:18px 18px 18px 6px}
html[dir="rtl"] .generated-file-card{text-align:right}
html[dir="rtl"] .orb-dot{margin:-2.25px -2.25px 0 0}
html[dir="rtl"] .chat-input-wrap .chat-input.pb>.pj-liste{padding:10px 4px 6px 12px}
html[dir="rtl"] .pb-menu{right:0;left:0;transform-origin:bottom right}
html[dir="rtl"] .pb-mode-menu{left:8px;right:auto;transform-origin:bottom left}
html[dir="rtl"] .pb-row{text-align:right}
html[dir="rtl"] .pb-glide{right:6px;left:6px}
html[dir="rtl"] .infobulle{right:0;left:auto}
html[dir="rtl"] .sheet-pop .ajout-fermer{right:10px;left:auto}
html[dir="rtl"] .sheet-pop .ajout-ligne{padding:12px 12px 12px 24px}
html[dir="rtl"] .ajout-ligne{text-align:right}
html[dir="rtl"] .interrupteur::after{right:3px;left:auto}
html[dir="rtl"] .interrupteur.on::after{right:19px;left:auto}
html[dir="rtl"] .sheet:not(.sheet-pop) .interrupteur.on::after{right:21px;left:auto}
html[dir="rtl"] .pb-caret{margin-right:1px;margin-left:0}
html[dir="rtl"] .pb-reco{margin-right:8px;margin-left:0}
html[dir="rtl"] .pb-niveau-lien{text-align:right}
@media (min-width:769px){html[dir="rtl"] .pb-niveau .pb-niv{padding:12px 12px 12px 24px}
html[dir="rtl"] .pb-niveau .pb-niv.on::after{border-width:0 2px 2px 0;margin-left:4px;margin-right:0}}
html[dir="rtl"] .sa-occupe{padding:0 4px 0 10px}
html[dir="rtl"] .sa-spin{margin-right:10px;margin-left:0}
html[dir="rtl"] .tr-entete{margin-right:-6px;margin-left:0}
html[dir="rtl"] .tr-onglets{margin:6px 5px 2px 0}
html[dir="rtl"] .tr-liste{margin:6px 5px 2px 0;padding:2px 16px 2px 0}
html[dir="rtl"] .tr-liste::before{right:3px;left:auto}
html[dir="rtl"] .tr-ligne{text-align:right}
html[dir="rtl"] .tr-live-ouvrir{margin-right:-2px;margin-left:0}
html[dir="rtl"] .rs-vivante::before{right:22.5px;left:auto}
html[dir="rtl"] .rs-ligne-temps{padding:0 18px 0 8px}
html[dir="rtl"] .rs-ligne-temps li:not(:last-child)::before{right:4.5px;left:auto}
html[dir="rtl"] .tr-live-tete .pt-chg{margin-left:calc(5px + .15em);margin-right:0}
html[dir="rtl"] .oc-vivant{text-align:right}
html[dir="rtl"] .oc-activite-tete .pt-chg{margin-left:calc(10px + .15em);margin-right:0}
html[dir="rtl"] .pt-an .o{margin:calc(var(--d,.22em) / -2) calc(var(--d,.22em) / -2) 0 0}
html[dir="rtl"] .pt-agit .o{right:0;left:auto}
html[dir="rtl"] .pt-orbite .d b{right:-.12em;left:auto}
html[dir="rtl"] .pt-orbite .d1{right:.2em;left:auto}
html[dir="rtl"] .pt-orbite .d1 b{transform:translateX(-.18em)}
html[dir="rtl"] .pt-orbite .d2{right:.7em;left:auto}
html[dir="rtl"] .pt-orbite .d2 b{transform:translateX(-.17em)}
html[dir="rtl"] .pt-orbite .d3{right:1.2em;left:auto}
html[dir="rtl"] .pt-orbite .d3 b{transform:translateX(-.2em)}
html[dir="rtl"] .tr-pts{margin:0 0 0 2px}
html[dir="rtl"] .ap-fermer{left:8px;right:auto}
html[dir="rtl"] .ap-titre{padding-left:26px;padding-right:0}
html[dir="rtl"] .ap-option{padding:4px 6px 4px 8px;text-align:right}
html[dir="rtl"] .ap-libre input{padding-right:25px;padding-left:0}
html[dir="rtl"] .ap-pied{padding:10px 16px 12px 12px}
html[dir="rtl"] .ap-continuer{padding:0 14px 0 6px}
html[dir="rtl"] .rq-liste{margin:6px 5px 2px 0;padding:2px 16px 2px 0}
html[dir="rtl"] .rq-liste::before{right:3px;left:auto}
html[dir="rtl"] .ap-envoye{padding:3px 4px 3px 11px}
html[dir="rtl"] .ap-carte:not(.ap-confirm) .ap-libre{padding:6px 10px 6px 6px}
html[dir="rtl"] .ap-carte:not(.ap-confirm) .ap-pied{padding:8px 22px 12px 14px}
html[dir="rtl"] .code-live-pt{margin-right:auto;margin-left:0}
html[dir="rtl"] .sb-recent-ouvrir{padding:7px 8px 7px 4px;text-align:right}
html[dir="rtl"] .sb-recent-plus{margin-left:2px;margin-right:0}
html[dir="rtl"] .rn-champ span{right:12px;left:auto}
html[dir="rtl"] .sb-recent-menu{left:0;right:auto}
html[dir="rtl"] .sb-recent-menu button,html[dir="rtl"] .sb-profil-menu button{text-align:right}
html[dir="rtl"] .sb-profil-menu{right:0;left:0}
html[dir="rtl"] .sb-profil-bouton{text-align:right}
@media (max-width:600px){html[dir="rtl"] .accueil-suggestion{text-align:right}}
html[dir="rtl"] .msg-plus-menu{right:0;left:auto}
@media (hover:none) and (pointer:coarse){html[dir="rtl"] .code-session-plus{left:6px;right:auto}}
html[dir="rtl"] .reglages-ligne{text-align:right}
html[dir="rtl"] .reglages-colonne{border-left:1px solid var(--border);border-right:none}
html[dir="rtl"] .reglages-fermer{left:14px;right:auto}
html[dir="rtl"] .reglages-compte{text-align:right}
html[dir="rtl"] .sb-profil-menu{right:0;left:auto}
html[dir="rtl"] .sb-profil-raccourci{margin-right:auto;margin-left:0}
html[dir="rtl"] .sb-profil-sous-menu{margin:2px 26px 4px 0;padding-right:8px;padding-left:0;border-right:1px solid var(--border);border-left:none}
html[dir="rtl"] .settings-pro .settings-row input[type=checkbox]::after{right:3px;left:auto}
html[dir="rtl"] .settings-pro .settings-row input[type=checkbox]:checked::after{transform:translateX(-16px)}
html[dir="rtl"] .sb-profil-langues{margin:2px 26px 4px 0;padding-right:8px;padding-left:0;border-right:1px solid var(--border);border-left:none}
@media (max-width:768px){html[dir="rtl"] .sidebar .sidebar-head{padding:22px 22px 14px 18px}
html[dir="rtl"] .sb-recherche{margin-right:auto;margin-left:0}
html[dir="rtl"] .sb-recent-ouvrir{padding:10px 12px 10px 4px}
html[dir="rtl"] .sidebar-inner>.sidebar-footer{right:0;left:0}
html[dir="rtl"] .sb-nouveau-mobile{padding:0 20px 0 22px}
html[dir="rtl"] .sidebar .sidebar-head{padding-right:24px;padding-left:0}
html[dir="rtl"] .sidebar .sidebar-logo,html[dir="rtl"] .sidebar .sidebar-logo a{padding-right:0;margin-right:0}
html[dir="rtl"] .sidebar-footer>.sb-nouveau-mobile{margin-right:auto;margin-left:0}
html[dir="rtl"] .settings-pro-header{padding-right:16px;padding-left:16px}}
html[dir="rtl"] .settings-pro .page-col .card:not(.card .card)>.settings-section-title:first-child{right:4px;left:4px}
html[dir="rtl"] .settings-row.reglage-bouton{text-align:right}
html[dir="rtl"] .settings-pro .settings-row select.reglage-choix{padding:6px 0 6px 20px;text-align:left;text-align-last:left}
html[dir="rtl"] .reglages-plan-prix{margin-right:auto;margin-left:0}
html[dir="rtl"] .reglages-plan-prix s{margin-left:4px;margin-right:0}
html[dir="rtl"] .reglage-valeur .reglages-plan-prix{margin-right:0}
html[dir="rtl"] .api-adresse{padding:0 12px 0 6px}
html[dir="rtl"] .mf-choix{text-align:right}
html[dir="rtl"] .mode-reco{margin-right:8px;margin-left:0}
html[dir="rtl"] .modele-ia{text-align:right}
html[dir="rtl"] .modele-groupe-liste{padding:0 16px 6px 0;margin-right:12px;margin-left:0;border-right:2px solid var(--border);border-left:none}
html[dir="rtl"] .modele-opt{text-align:right}
@media (max-width:520px){html[dir="rtl"] .modele-groupe-liste{padding-right:12px;padding-left:0;margin-right:8px;margin-left:0}}
html[dir="rtl"] .oc-c-envoi{margin-right:auto;margin-left:0}
html[dir="rtl"] .oc-onde{margin:-60px -60px 0 0}
html[dir="rtl"] .pb-reglages-cat{text-align:right}
html[dir="rtl"] .pb-mode-menu.pb-reglages.vers-bas{transform-origin:top left}
@media (max-width:768px){html[dir="rtl"] .pb-mode-menu.pb-reglages{right:0;left:0}}
html[dir="rtl"] .reglage-ou-trouver{margin:0 44px 14px 0}
@media (max-width:768px){html[dir="rtl"] .sidebar-footer>.sb-nouveau-mobile{padding:0 16px 0 18px}
html[dir="rtl"] .sidebar-footer .sb-nouveau-mobile span{text-align:right}
html[dir="rtl"] .sidebar-footer>.sb-nouveau-mobile{padding:0 14px 0 16px}
html[dir="rtl"] .sidebar-footer>.sb-nouveau-mobile{padding:0 12px 0 14px}}
html[dir="rtl"] .sb-alerte-capacite{text-align:right}
@media (max-width:768px){html[dir="rtl"] .sidebar-inner>.sidebar-nav .nav-item .badge.badge-verrou{margin-right:auto;margin-left:0}
html[dir="rtl"] .sb-recents-tout{margin-right:4px;margin-left:0}}
@media (min-width:769px){html[dir="rtl"] .sidebar{border-left:none}
html[dir="rtl"] .sidebar .sidebar-head{padding:16px 16px 6px 14px}
html[dir="rtl"] .sb-recherche{margin-right:auto;margin-left:0}
html[dir="rtl"] .sb-ligne-projets{text-align:right}
html[dir="rtl"] .sb-recent-ouvrir{padding:8px 10px 8px 4px}
html[dir="rtl"] .main-content{margin:8px 0 8px 8px}
html[dir="rtl"] .main-content:has(.reglages-fenetre){margin:8px 0 8px 8px}
html[dir="rtl"] .sidebar:not(.closed){border-radius:0 18px 18px 0}
html[dir="rtl"] .sidebar:not(.closed)+.main-content{border-radius:18px 0 0 18px}
html[dir="rtl"] .sidebar .sidebar-head{padding:18px 22px 8px 16px}
html[dir="rtl"] .sb-recent-ouvrir{padding:8px 10px 8px 4px}
html[dir="rtl"] .sb-recent-ouvrir span{-webkit-mask-image:linear-gradient(to left,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to left,#000 calc(100% - 28px),transparent)}
html[dir="rtl"] .sidebar .sidebar-new .btn{text-align:right}
html[dir="rtl"] .sb-recent-plus{margin-left:0}
html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb{padding:20px 20px 14px 18px}
html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add,html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb .pb-lead .composer-add:hover{margin-right:-2px;margin-left:0}
html[dir="rtl"] .sidebar .sidebar-head{padding:14px 18px 6px 14px}
html[dir="rtl"] .sb-recent-ouvrir{padding:6px 10px 6px 4px}}
html[dir="rtl"] .od-viewer .workspace-tabs-chrome.app-chrome-header{padding:0 8px 0 10px}
html[dir="rtl"] .od-viewer .workspace-tabs-chrome .workspace-tabs-traffic{margin-left:var(--od-app-chrome-traffic-margin);margin-right:0}
@media (max-width: 720px){html[dir="rtl"] .od-viewer .workspace-tabs-chrome.app-chrome-header{padding-left:6px;padding-right:0}}
html[dir="rtl"] .od-viewer .chrome-share-menu .share-menu-popover{left:0;right:auto}
html[dir="rtl"] .od-viewer .chrome-present-wrap .present-menu{left:0;right:auto}
html[dir="rtl"] .od-viewer .artifact-version-panel .artifact-version-panel__popover.file-version-restore-confirm,html[dir="rtl"] .od-viewer .artifact-version-panel .artifact-version-panel__popover.file-version-download-menu.share-menu-popover{right:14px;left:14px}
html[dir="rtl"] .od-viewer .inline-model-popover .model-select-searchable__option.is-active .model-select-searchable__option-label::before{margin-left:8px;margin-right:0}
@media (hover:hover){html[dir="rtl"] .od-viewer .inline-model-popover .model-select-searchable__option:not(.is-active):hover .model-select-searchable__option-label{transform:translateX(-6px)}}
html[dir="rtl"] .od-viewer .ws-tab-meta::before{margin-left:5px;margin-right:0}
html[dir="rtl"] .od-viewer .ws-tab-close{margin-right:2px;margin-left:0}
html[dir="rtl"] .od-viewer .ws-add-tab{margin-right:2px;margin-left:0}
html[dir="rtl"] .od-viewer .ws-tabs-bar.is-overflowing + .ws-add-tab{padding-right:4px;padding-left:0}
html[dir="rtl"] .od-viewer .file-version-download-menu.share-menu-popover{left:0;right:auto}
html[dir="rtl"] .od-viewer .present-trigger .caret{margin-right:4px;margin-left:0}
html[dir="rtl"] .od-viewer .present-menu{left:0;right:auto}
html[dir="rtl"] .od-viewer .present-menu button{text-align:right}
html[dir="rtl"] .od-viewer .share-menu-popover{left:0;right:auto}
html[dir="rtl"] .od-viewer .share-menu-item{text-align:right}
html[dir="rtl"] .od-viewer .workspace-shell .workspace-tabs-chrome.app-chrome-header{padding:0 0 0 8px}
html[dir="rtl"] .od-viewer .ws-tab + .ws-tab::before{right:-3.5px;left:auto}
html[dir="rtl"] .od-viewer .df-main{border-left:1px solid var(--od-border);border-right:none}
html[dir="rtl"] .od-viewer .df-main:last-child{border-left:none}
html[dir="rtl"] .od-viewer .df-topbar-right{margin-right:auto;margin-left:0}
html[dir="rtl"] .od-viewer .df-project-menu{left:0;right:auto}
html[dir="rtl"] .od-viewer .df-actions .df-project-menu button{text-align:right}
html[dir="rtl"] .od-viewer .df-section-count{margin-right:8px;margin-left:0}
html[dir="rtl"] .od-viewer .df-cell-name{padding:10px 0 10px 12px}
html[dir="rtl"] .od-viewer .df-row{text-align:right}
html[dir="rtl"] .od-viewer .df-row-folder-main{text-align:right}
html[dir="rtl"] .od-viewer .df-row-size{text-align:left}
html[dir="rtl"] .od-viewer .df-empty-stack-card{margin-right:-35px;margin-left:0}
html[dir="rtl"] .od-viewer .df-tip-caret{margin-right:1px;margin-left:0}
html[dir="rtl"] .od-viewer .df-card--image .df-card-menu-overlay{left:8px;right:auto}
html[dir="rtl"] .od-viewer .df-card-meta{padding:6px 6px 6px 8px}
html[dir="rtl"] .od-viewer .df-card-check{right:8px;left:auto}
html[dir="rtl"] .od-viewer .df-row-popover button{text-align:right}
html[dir="rtl"] .od-viewer .viewer-toolbar-more-menu{left:0;right:auto}
html[dir="rtl"] .od-viewer .viewer-toolbar-more-item{text-align:right}
html[dir="rtl"] .od-viewer .viewer-comment-count{text-align:right}
html[dir="rtl"] .od-viewer .viewer-viewport-trigger{padding:4px 10px 4px 8px}
html[dir="rtl"] .od-viewer .viewer-viewport-menu{left:0;right:auto}
html[dir="rtl"] .od-viewer .viewer-preview-toolbar-inline .viewer-viewport-menu{left:auto;right:0}
html[dir="rtl"] .od-viewer .viewer-viewport-menu-item{text-align:right}
html[dir="rtl"] .od-badge{left:-3px;right:auto}
html[dir="rtl"] .od-com-x{margin-right:auto;margin-left:0}
html[dir="rtl"] .od-dessin-barre{right:10px;left:auto}
html[dir="rtl"] .od-deck-rail{padding:10px 8px 10px 10px}
html[dir="rtl"] .od-deck-rail .od-rail-n{text-align:left}
html[dir="rtl"] .od-fichiers-fondu{left:56px;right:auto;background:linear-gradient(270deg,transparent,var(--od-bg-panel))}
html[dir="rtl"] .od-fichiers-plus{margin:0 4px 5px 8px}
html[dir="rtl"] .od-fichiers-menu{left:8px;right:auto}
html[dir="rtl"] .od-fichiers-ligne{text-align:right}
html[dir="rtl"] .sb-code-action{text-align:right}
html[dir="rtl"] .sb-code-groupe-nom{text-align:right}
html[dir="rtl"] .sb-code-groupe-plus{margin-left:4px;margin-right:0}
html[dir="rtl"] .sb-code-session{padding:7px 22px 7px 10px;text-align:right}
html[dir="rtl"] .sb-code-supprimer{left:6px;right:auto}
html[dir="rtl"] .sb-code-session-titre{-webkit-mask-image:linear-gradient(270deg,#000 85%,transparent);mask-image:linear-gradient(270deg,#000 85%,transparent)}
html[dir="rtl"] .sb-code-vide{padding:4px 22px 6px 10px}
html[dir="rtl"] .sb-code-plus{padding:6px 22px 6px 10px}
html[dir="rtl"] .cl-conv-liste{left:0;right:auto}
html[dir="rtl"] .cl-conv-liste button{text-align:right}
html[dir="rtl"] .code-session-bloc .cl-conv-menu{left:6px;right:auto}
html[dir="rtl"] .sb-code-ligne .cl-conv-menu,html[dir="rtl"] .code-session-bloc .cl-conv-menu{left:6px;right:auto}
html[dir="rtl"] .sb-code-ligne .cl-conv-menu.cl-session-menu{left:6px;right:auto}
html[dir="rtl"] .sb-code-ligne .cl-session-menu .cl-conv-liste{left:0;right:auto}
html[dir="rtl"] .code-session-bloc .cl-conv-menu.cl-session-menu{left:6px;right:auto}
html[dir="rtl"] .cl-epingle{margin-right:6px;margin-left:0}
html[dir="rtl"] .cl-barre-capa .cl-capa-bulle{left:-8px;right:auto;text-align:right}
html[dir="rtl"] .code-sessions-filtre select{padding:4px 4px 4px 20px}
html[dir="rtl"] .code-sessions-filtre svg{left:0;right:auto}
html[dir="rtl"] .code-session-carte{text-align:right}
html[dir="rtl"] .code-session-bloc .code-session-ligne{padding-left:34px;padding-right:0}
html[dir="rtl"] .code-session-plus{left:10px;right:auto}
html[dir="rtl"] .code-session-menu{left:10px;right:auto}
html[dir="rtl"] .code-session-menu button{text-align:right}
html[dir="rtl"] .code-sessions-nouvelle{left:16px;right:auto}
html[dir="rtl"] .ds-nouvelle{margin-right:auto;margin-left:0}
html[dir="rtl"] .ds-brief{padding:20px 24px 14px 20px}
html[dir="rtl"] .artefacts-filtre svg{margin-left:6px;margin-right:0}
html[dir="rtl"] .ds-style-pastille{padding:0 12px 0 6px}
html[dir="rtl"] .ds-modele{text-align:right}
html[dir="rtl"] .ds-art-landing i:nth-child(1){right:14px;left:auto}
html[dir="rtl"] .ds-art-landing i:nth-child(2){right:14px;left:auto}
html[dir="rtl"] .ds-art-landing i:nth-child(3){right:14px;left:auto}
html[dir="rtl"] .ds-art-landing b{right:14px;left:auto}
html[dir="rtl"] .ds-art-dashboard i:nth-child(1){right:12px;left:auto}
html[dir="rtl"] .ds-art-dashboard i:nth-child(2){right:12px;left:auto}
html[dir="rtl"] .ds-art-dashboard i:nth-child(3){right:44%;left:auto}
html[dir="rtl"] .ds-art-dashboard b{right:12px;left:12px}
html[dir="rtl"] .ds-art-pitch i:nth-child(1){right:16px;left:auto}
html[dir="rtl"] .ds-art-pitch i:nth-child(2){right:16px;left:auto}
html[dir="rtl"] .ds-art-pitch i:nth-child(3){right:16px;left:auto}
html[dir="rtl"] .ds-art-pitch b{left:12px;right:auto}
html[dir="rtl"] .ds-art-appli i{right:calc(50% - 22px);left:auto}
html[dir="rtl"] .ds-art-appli b{right:calc(50% - 22px);left:auto}
html[dir="rtl"] .ds-art-affiche i:nth-child(1){right:14px;left:auto}
html[dir="rtl"] .ds-art-affiche i:nth-child(2){right:14px;left:auto}
html[dir="rtl"] .ds-art-affiche i:nth-child(3){right:14px;left:auto}
html[dir="rtl"] .ds-art-affiche b{left:14px;right:auto}
html[dir="rtl"] .ds-art-logo i{right:calc(50% - 23px);left:auto}
html[dir="rtl"] .ds-art-logo i:nth-child(2){right:calc(50% - 10px);left:auto}
html[dir="rtl"] .ds-dossier-x{margin-left:6px;margin-right:0}
html[dir="rtl"] .ds-case{right:8px;left:auto}
html[dir="rtl"] .ds-plus{left:8px;right:auto}
html[dir="rtl"] .ds-pastille{left:42px;right:auto}
html[dir="rtl"] .ds-bas{padding:9px 13px 10px 10px}
html[dir="rtl"] .ds-menu{left:8px;right:auto}
html[dir="rtl"] .ds-menu button{text-align:right}
html[dir="rtl"] .ds-barre-sel{padding:7px 16px 7px 8px}
html[dir="rtl"] .ds-carte-style{text-align:right}
@media (max-width:768px){html[dir="rtl"] .ds-brief{padding:14px 16px 10px 14px}
html[dir="rtl"] .ds-envoyer{margin-right:auto;margin-left:0}}
html[dir="rtl"] .artefact-carte{text-align:right}
html[dir="rtl"] .artefact-vignette iframe{right:0;left:auto}
html[dir="rtl"] .mem-projet{text-align:right}
html[dir="rtl"] .mem-retour{padding:6px 6px 6px 10px;margin-right:-6px;margin-left:0}
@media (min-width:769px){html[dir="rtl"] .lib-barre .action-pc{margin-right:auto;margin-left:0}
html[dir="rtl"] .lib-barre .top-bar-title+.action-pc,html[dir="rtl"] .lib-barre .lib-cale+.action-pc{margin-right:0}
html[dir="rtl"] .lib-barre .top-bar-title{text-align:right}}
html[dir="rtl"] .ds-systeme-actif button{margin-right:8px;margin-left:0}
html[dir="rtl"] .ds-systeme-carte{text-align:right}
html[dir="rtl"] .lib-ligne{text-align:right}
html[dir="rtl"] .lib-ajouter-flottant{left:16px;right:auto;padding:0 18px 0 22px}
html[dir="rtl"] .lib-visionneuse-haut{right:0;left:0}
html[dir="rtl"] .lib-row-actions .lib-utiliser{padding-right:0}
@media (max-width:768px){html[dir="rtl"] .lib-puces{padding:8px 2px 8px 16px;margin:-8px -2px -8px -16px}
html[dir="rtl"] .lib-row-actions{margin-right:52px;margin-left:0}
html[dir="rtl"] .lib-row-actions .btn+.btn-icon,html[dir="rtl"] .lib-row-actions .btn-icon{margin-right:0}}
html[dir="rtl"] .proj-vide-action{text-align:right}
html[dir="rtl"] .top-bar .proj-retour{padding:0 10px 0 14px}
@media (min-width:769px){html[dir="rtl"] .proj-page .lib-barre .proj-retour+.top-bar-title{margin-right:4px;margin-left:0}}
html[dir="rtl"] .rail-point{left:9px;right:auto}
html[dir="rtl"] .nav-point{margin-right:auto;margin-left:0}
html[dir="rtl"] .nav-item>span.nav-point{margin-right:auto;margin-left:4px}
html[dir="rtl"] .tache-point{left:-2px;right:auto}
html[dir="rtl"] .tache-ligne{padding:12px 14px 12px 10px}
html[dir="rtl"] .tache-corps{text-align:right}
html[dir="rtl"] .tache-interrupteur input::after{right:3px;left:auto}
html[dir="rtl"] .tache-interrupteur input:checked::after{transform:translateX(-16px)}
html[dir="rtl"] .tache-exemples button{text-align:right}
@media (max-width:768px){html[dir="rtl"] .notif-carte>.btn,html[dir="rtl"] .notif-actions{margin-right:50px;margin-left:0}}
html[dir="rtl"] .proj-carte-tete .proj-icone{right:14px;left:auto}
html[dir="rtl"] .proj-tuile{text-align:right}
html[dir="rtl"] .tache-carte-titre{text-align:right}
html[dir="rtl"] .proj-carte .project-del{margin:-6px 0 0 -6px}
html[dir="rtl"] .taches-page .notif-carte{padding:12px 14px 12px 12px}
@media (max-width:768px){html[dir="rtl"] .taches-page .notif-carte>.btn,html[dir="rtl"] .taches-page .notif-actions{margin-right:46px;margin-left:0}}
html[dir="rtl"] .proj-premier{text-align:right}
html[dir="rtl"] .lib-vide.tache-vide{text-align:right}
html[dir="rtl"] .cl-liaison-colonnes{text-align:right}
html[dir="rtl"] .cl-etapes{margin:6px 20px 12px 0}
html[dir="rtl"] .cl-projet-ouvrir{text-align:right}
html[dir="rtl"] .cl-choisir{text-align:right}
html[dir="rtl"] .cl-session{text-align:right}
html[dir="rtl"] .cl-session-barre .cl-mode{margin-right:auto;margin-left:0}
html[dir="rtl"] .cl-msg-user{border-radius:18px 18px 18px 6px}
html[dir="rtl"] .cl-md ul,html[dir="rtl"] .cl-md ol{padding-right:22px;padding-left:0}
html[dir="rtl"] .cl-md blockquote{border-right:3px solid var(--border);border-left:none;padding-right:14px;padding-left:0}
html[dir="rtl"] .cl-md td,html[dir="rtl"] .cl-md th{text-align:right}
html[dir="rtl"] .cl-etape-tete{text-align:right}
html[dir="rtl"] .cl-activite-tete{text-align:right}
html[dir="rtl"] .sheet.cl-feuille-act{padding-right:16px;padding-left:16px}
html[dir="rtl"] .cl-outils-liste{margin-right:14px;margin-left:0;padding-right:6px;padding-left:0;border-right:1.5px solid var(--border);border-left:none}
html[dir="rtl"] .cl-outil-tete{text-align:right}
html[dir="rtl"] .cl-carte-tete{text-align:right}
html[dir="rtl"] .cl-diff-plus{text-align:right}
html[dir="rtl"] .cl-diff-num{padding-left:10px;padding-right:0;text-align:left}
html[dir="rtl"] .cl-diff-texte{padding-left:16px;padding-right:0}
@media (max-width:768px){html[dir="rtl"] .cl-diff-num{padding-left:6px;padding-right:0}}
@media (min-width:769px){html[dir="rtl"] .cl-session-page.avec-art>*:not(.art-panel){margin-left:var(--art-w,0px);margin-right:0}}
html[dir="rtl"] .cl-recap-ouvrir{text-align:right}
html[dir="rtl"] .fp-compte{margin-right:auto;margin-left:0}
html[dir="rtl"] .fp-ignores{margin-right:auto;margin-left:0}
html[dir="rtl"] .fp-ligne{text-align:right}
html[dir="rtl"] .cl-accord-refus{margin-right:auto;margin-left:0}
@media (max-width:768px){html[dir="rtl"] .cl-accord-refus{margin-right:0}}
html[dir="rtl"] .oc-etape-tete{text-align:right}
html[dir="rtl"] .oc-activite-tete{text-align:right}
html[dir="rtl"] .oc-activite-liste .oc-etape-tete::after{margin:0 2px 0 0}
html[dir="rtl"] .cl-cmd-menu{right:20px;left:20px}
html[dir="rtl"] .cl-cmd-ligne{text-align:right}
html[dir="rtl"] .cl-cmd-pied kbd{margin-left:4px;margin-right:0}
html[dir="rtl"] .cl-lanceur-bas .cl-cmd-menu{right:0;left:0}
@media (max-width:768px){html[dir="rtl"] .cl-cmd-menu{right:12px;left:12px}}
html[dir="rtl"] .cl-saisie{padding:8px 14px 8px 8px}
@media (max-width:768px){html[dir="rtl"] .cl-barre-capa .cl-capa-bulle{left:-40px;right:auto}
html[dir="rtl"] .cl-plus-menu{left:0;right:auto}
html[dir="rtl"] .cl-plus-menu button{text-align:right}
html[dir="rtl"] .oc-etape-tete::after{margin-right:6px;margin-left:0}
html[dir="rtl"] .cl-saisie-grande{padding:16px 22px 12px 14px}
html[dir="rtl"] .code-nouvelle-carte{text-align:right}}
html[dir="rtl"] .cl-projet-barre{padding:5px 6px 24px 10px;text-align:right}
html[dir="rtl"] .cl-projet-barre-bouton{text-align:right}
html[dir="rtl"] .cl-saisie-grande{padding:18px 22px 12px 14px}
html[dir="rtl"] .cl-revenir-btn{left:0;right:auto}
html[dir="rtl"] .cl-piece{padding:0 10px 0 6px}
@media (min-width:769px){html[dir="rtl"] .cl-saisie.cl-saisie-grande.cl-etage{padding:14px 14px 10px 12px}
html[dir="rtl"] .cl-saisie-grande.cl-etage .cl-saisie-pied>:not(.cl-saisie-gauche),html[dir="rtl"] .cl-saisie-grande.cl-etage .cl-saisie-actions{margin-right:auto;margin-left:0}
html[dir="rtl"] .cl-saisie-grande .cl-pied-etat{right:0;left:0}
html[dir="rtl"] .cl-pied-etat .cl-mode-menu{right:6px;left:auto}
html[dir="rtl"] .cl-pied-etat .cl-mode-zone:last-of-type .cl-mode-menu{right:auto;left:6px}
html[dir="rtl"] .cl-capa-bulle{left:0;right:auto;text-align:right;transform-origin:bottom left}
html[dir="rtl"] .cl-capa-bulle::after{left:30px;right:auto;border-left:1px solid var(--border);border-right:none}
html[dir="rtl"] .cl-saisie.cl-saisie-grande,html[dir="rtl"] .cl-saisie.cl-saisie-grande.cl-etage{padding:20px 20px 14px 18px}
html[dir="rtl"] .cl-saisie-grande .cl-saisie-pied>:not(.cl-saisie-gauche),html[dir="rtl"] .cl-saisie-grande .cl-saisie-actions{margin-right:auto;margin-left:0}
html[dir="rtl"] .cl-saisie-grande .cl-plus{margin-right:-2px;margin-left:0}}
@media (max-width:768px){html[dir="rtl"] .cl-saisie-grande .cl-mode-menu{right:0;left:0}}
@media (max-width:480px){html[dir="rtl"] .cl-mode-pastille{padding:0 6px 0 8px}}
html[dir="rtl"] .cl-mode-pastille{padding:0 8px 0 12px}
html[dir="rtl"] .cl-mode-menu{right:0;left:auto}
html[dir="rtl"] .cl-mode-option{text-align:right}
html[dir="rtl"] .cl-projets-menu{right:0;left:0}
html[dir="rtl"] .cl-os-detecte{margin-right:4px;margin-left:0}
html[dir="rtl"] .cl-installer .cl-commande{padding:8px 16px 8px 8px}
html[dir="rtl"] .cl-attente-carte small{margin-right:auto;margin-left:0}
html[dir="rtl"] .cl-projets-ordi .cl-etat{margin-right:auto;margin-left:0}
html[dir="rtl"] .cl-projets-ligne{text-align:right}
@media (max-width:768px){html[dir="rtl"] .cl-saisie-grande{padding:16px 18px 10px 10px}}
html[dir="rtl"] .cl-archivees .cl-archivee{padding-left:6px;padding-right:0}
html[dir="rtl"] .cl-archivees .cl-archivee .cl-conv-menu{left:auto}
html[dir="rtl"] .cl-archivees .cl-archivee .cl-conv-liste{left:0;right:auto}
html[dir="rtl"] .cl-commande{padding:6px 12px 6px 6px}
html[dir="rtl"] .cl-sous-etapes{margin:0 31px 6px 0}
html[dir="rtl"] .cl-echap{margin-right:auto;margin-left:0}
html[dir="rtl"] .maj-bandeau{right:16px;left:16px;padding:8px 16px 8px 8px}
@media (max-width:768px){html[dir="rtl"] .maj-bandeau{padding:10px 14px 10px 6px}}
@media (max-width:360px){html[dir="rtl"] .maj-bandeau .btn{margin-left:8px;margin-right:0}}
html[dir="rtl"] .chat-projet{padding:0 9px 0 12px}
@media (min-width:769px){html[dir="rtl"] .chat-top-bar .chat-projet{right:20px;left:auto}
html[dir="rtl"] .sb-profil-menu{transform-origin:bottom right}
html[dir="rtl"] .sb-recent-menu{transform-origin:top left}
html[dir="rtl"] .settings-view.settings-pro.reglages-fenetre>.reglages-fermer{left:8px;right:auto}
html[dir="rtl"] .settings-view.settings-pro.reglages-fenetre>.reglages-colonne{padding:16px 16px 16px 12px}
html[dir="rtl"] .settings-view.settings-pro.reglages-fenetre>.view-container,html[dir="rtl"]:not(.dark) .settings-view.settings-pro.reglages-fenetre>.view-container{padding:3px 16px 28px 26px}
html[dir="rtl"] .settings-view.settings-pro.reglages-fenetre .settings-row input[type=checkbox]::after{right:2px;left:auto}
html[dir="rtl"] .settings-view.settings-pro.reglages-fenetre .settings-row input[type=checkbox]:checked::after{transform:translateX(-16px)}
html[dir="rtl"] .settings-view.settings-pro.reglages-fenetre .page-col .card:not(.card .card)>.settings-section-title:first-child{right:auto;left:auto}
html[dir="rtl"] .settings-view.settings-pro.reglages-fenetre .view-container select.reglage-choix{padding:0 10px 0 26px;text-align:right;text-align-last:right}
html[dir="rtl"] .settings-view.settings-pro.reglages-fenetre .view-container button.reglage-choix.reglage-langue{padding:0 10px 0 8px}
html[dir="rtl"] .sidebar:not(.closed) .sb-recent-ouvrir{padding:0 10px 0 4px}
html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb{padding:12px 13px 10px 12px}
html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb .pb-bas:not(.pb-dictee){margin:36px -4px 0 -2.5px}
html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb .send-btn:not(.voice-btn){margin-right:6px;margin-left:0}
html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb .send-btn.send-btn-stop{margin-left:-5.5px;margin-right:0}
html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb .pb-tools{left:6px;right:auto}
html[dir="rtl"] .chat-view .chat-body:not(.chat-body-empty) .chat-input.pb .pb-lead{right:9px;left:auto}
html[dir="rtl"] .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .send-btn.voice-btn{right:37px;left:auto}
html[dir="rtl"] .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .pb-tools{left:5px;right:auto}
html[dir="rtl"] .chat-view .chat-body:not(.chat-body-empty) .chat-input-wrap .chat-input.pb .send-btn:not(.voice-btn){margin-right:0}
html[dir="rtl"] .cl-saisie.cl-saisie-grande{padding:12px 13px 12px 14px}
html[dir="rtl"] .sidebar:not(.closed),html[dir="rtl"]:not(.dark) .sidebar:not(.closed),html[dir="rtl"].dark .sidebar:not(.closed){border-left:1px solid var(--ref-line);border-right:none}
html[dir="rtl"] .sidebar .sidebar-head{padding:10px 10px 8px 8px}
html[dir="rtl"] .sidebar:not(.closed) .sidebar-glide .nav-item .badge{margin-right:auto;margin-left:0}
html[dir="rtl"] .sidebar:not(.closed) .sb-profil-bouton>svg,html[dir="rtl"] .sidebar:not(.closed) .sb-profil-fleche{margin-left:auto;margin-right:0}
html[dir="rtl"] .sb-rouvrir{right:10px;left:auto}
html[dir="rtl"] .app.sb-fermee .top-bar{padding-right:56px;padding-left:0}
html[dir="rtl"] .bulle-ligne .bulle-fin{margin-right:auto;margin-left:0}
html[dir="rtl"] .bulle-ligne .bulle-coche,html[dir="rtl"] .bulle-ligne>svg.bulle-coche{margin-right:auto;margin-left:0}}
html[dir="rtl"] .pb-reco{margin-right:8px;margin-left:0}
@media (max-width:768px){html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb{padding:14px 18px 10px 11px}
html[dir="rtl"] .sidebar{border-left:0;border-radius:14px 0 0 14px}
html[dir="rtl"] .sidebar .sidebar-head{padding:46px 26px 6px 14px}
html[dir="rtl"] .sidebar-footer .sb-nouveau-mobile{padding:0 20px 0 24px}
html[dir="rtl"] .sb-projets{margin:0 17px 0 18px}
html[dir="rtl"] .sb-projets-ligne{padding:0 12px 0 9px;text-align:right}
html[dir="rtl"] .chat-header-titre{right:70px;left:112px;text-align:right}
html[dir="rtl"] .sheet:has(.sheet-grid) .sheet-fermer{right:0;left:auto}
html[dir="rtl"] .sidebar .sidebar-head{padding:16px 26px 0 10px}
html[dir="rtl"] .sb-recents{margin:10px 17px 0 18px}
html[dir="rtl"] .sb-recents-entete{padding:0 9px 4px 0}
html[dir="rtl"] .sb-recent-ouvrir{padding:0 9px 0 0}
html[dir="rtl"] .sidebar-footer{right:0;left:0}
html[dir="rtl"] .sidebar-footer .sb-nouveau-mobile{padding:0 18px 0 22px}
html[dir="rtl"] .pb-niveau-fermer{right:18px;left:auto}
html[dir="rtl"] .pb-niv .pb-reco{margin-right:0}
html[dir="rtl"] .pb-niv-coche{margin-right:10px;margin-left:0}
html[dir="rtl"] .pb-niveau-lien span{text-align:right}
html[dir="rtl"] .lib-ajouter-flottant{left:18px;right:auto;padding:0 18px 0 22px}
html[dir="rtl"] .proj-recherche input{text-align:right}
html[dir="rtl"] .lib-recherche.proj-recherche svg{right:14px;left:auto}
html[dir="rtl"] .pb-niv-coche{margin-right:10px;margin-left:0}
html[dir="rtl"] .sidebar-footer .sb-profil-bouton.compact{margin-right:0}
html[dir="rtl"] .proj-page .proj-nouvelle{left:18px;right:auto;padding:0 18px 0 22px}
html[dir="rtl"] .proj-carte-tel{text-align:right}
html[dir="rtl"] .proj-page .lib-recherche.proj-recherche input{text-align:right!important}
html[dir="rtl"] .proj-nouveau{right:0;left:0}
html[dir="rtl"] .proj-nouveau-fermer{right:0;left:auto}
html[dir="rtl"] .rn-titre{margin:0 2px 14px 0}
html[dir="rtl"] .sp-croix{right:4px;left:auto}
html[dir="rtl"] .sp-ligne{text-align:right}
html[dir="rtl"] .chat-menu-haut{left:12px;right:auto}
html[dir="rtl"] .chat-menu-haut button{text-align:right}
html[dir="rtl"] .fd-croix{right:14px;left:auto}
html[dir="rtl"] .chat-input.pb .voice-btn{margin-left:4px;margin-right:0}
html[dir="rtl"] .chat-view .chat-input-wrap .chat-input.pb:is([data-kb],:has(textarea:not(:placeholder-shown))) textarea{padding:0 5.5px 0 0!important}}
/* ── FIN RTL-AUTO ── */
