/* QG+ — mode clair « couleur » (07/10/2026, demande du Général : coloré comme l'écran d'accueil de son iPhone).
   Verre dépoli sur un fond multicolore ; chaque agent a sa couleur, comme une icône d'app.
   Ne s'applique qu'au mode clair : le mode sombre NEXUS n'est pas touché.
   Le double #hermes-signature passe devant les règles claires de qg-nexus.css sans les modifier.
   Retour arrière : retirer la ligne qg-couleur.css de index.html. */

/* 1. Fond, encres, verre ------------------------------------------------------------------- */
#hermes-signature#hermes-signature[data-theme="light"] {
  --cc-ink: #1c1c1e;
  --cc-dim: #4a4a52;
  --cc-mute: #5c5c66;
  --cc-glass: rgba(255, 255, 255, .58);
  --cc-glass-hi: rgba(255, 255, 255, .8);
  --cc-edge: rgba(255, 255, 255, .78);
  --cc-blur: blur(22px) saturate(185%);
  --cc-shadow: 0 8px 26px rgba(96, 52, 10, .10), 0 1px 2px rgba(96, 52, 10, .06);
  --cc-wall:
    radial-gradient(70% 48% at 0% 0%, rgba(255, 159, 10, .55) 0%, rgba(255, 159, 10, 0) 62%),
    radial-gradient(62% 44% at 100% 4%, rgba(255, 55, 95, .40) 0%, rgba(255, 55, 95, 0) 62%),
    radial-gradient(66% 50% at 100% 60%, rgba(94, 92, 230, .34) 0%, rgba(94, 92, 230, 0) 64%),
    radial-gradient(62% 50% at 0% 70%, rgba(48, 209, 88, .32) 0%, rgba(48, 209, 88, 0) 62%),
    radial-gradient(72% 46% at 55% 100%, rgba(100, 210, 255, .45) 0%, rgba(100, 210, 255, 0) 64%),
    radial-gradient(46% 34% at 46% 36%, rgba(255, 214, 10, .20) 0%, rgba(255, 214, 10, 0) 70%),
    linear-gradient(165deg, #fff3e6 0%, #fff0f5 38%, #f2eeff 66%, #e9f6ff 100%);
  /* Couleur par défaut (agent sans couleur propre) */
  --ag1: #0a84ff; --ag2: #5e5ce6; --agi: #0060c7;
  /* Vos bulles : suivent la palette choisie dans Paramètres */
  --cc-mine: linear-gradient(135deg, #087f62 0%, #0a6cff 100%);
  --cc-mine-glow: rgba(8, 127, 98, .26);
  /* Jetons des feuilles existantes, réalignés */
  --nx-ink: #1c1c1e; --nx-dim: #4a4a52; --nx-mute: #5c5c66;
  --nx-line: rgba(60, 60, 67, .14); --nx-line-2: rgba(60, 60, 67, .24);
  --hs-ink: #1c1c1e; --hs-dim: #4a4a52; --hs-line: rgba(60, 60, 67, .14);
  --qg-bg-page: var(--cc-wall);
  --nx-card: linear-gradient(rgba(255, 255, 255, .62), rgba(255, 255, 255, .56));
  --qg-studio-card: linear-gradient(rgba(255, 255, 255, .62), rgba(255, 255, 255, .56));
  --qg-studio-chrome: rgba(255, 255, 255, .55);
  --ap-panel: rgba(255, 255, 255, .6); --ap-surface: rgba(255, 255, 255, .72);
  --ap-mist-a: #ffd9bd; --ap-mist-b: #e6dcff; --ap-wall-base: #fff3ea;
  color: var(--cc-ink);
  background: var(--cc-wall) !important;
}
#hermes-signature#hermes-signature[data-theme="light"][data-palette="blue"] {
  --cc-mine: linear-gradient(135deg, #0a6cff 0%, #5b3fd9 100%); --cc-mine-glow: rgba(10, 108, 255, .28);
}
#hermes-signature#hermes-signature[data-theme="light"][data-palette="neutral"] {
  --cc-mine: linear-gradient(135deg, #2c2c2e 0%, #4a4a4e 100%); --cc-mine-glow: rgba(0, 0, 0, .18);
}
/* Haut de l'écran : l'iPhone teinte la barre d'état d'après le fond de la page */
html:has(#hermes-signature#hermes-signature[data-theme="light"]),
html:has(#hermes-signature#hermes-signature[data-theme="light"]) body { background: #ffeedd !important; }
#hermes-signature#hermes-signature[data-theme="light"] ::selection { background: rgba(10, 132, 255, .22); color: inherit; }

/* Effets NEXUS (trame, scan, parasites) : réservés au mode sombre */
#hermes-signature#hermes-signature[data-theme="light"] > :is(.nx-bg, .nx-fx, .nx-glitch) { display: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .nx-wave {
  background: radial-gradient(circle, rgba(10, 132, 255, 0) 58%, rgba(10, 132, 255, .32) 64%, rgba(191, 90, 242, .22) 68%, rgba(255, 255, 255, 0) 72%) !important;
  filter: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .nx-wave.nx-core {
  background: radial-gradient(circle, rgba(255, 255, 255, .55), rgba(10, 132, 255, .12) 45%, transparent 70%) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] > .nx-boot { background: var(--cc-wall) !important; color: var(--cc-ink) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .nx-boot-bar i { background: linear-gradient(90deg, #ff9f0a, #ff375f, #5e5ce6, #0a84ff) !important; box-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] > .nx-motion::before { background: #0a84ff !important; box-shadow: none !important; }

/* 2. Une couleur par agent, comme les icônes d'apps -------------------------------------- */
#hermes-signature#hermes-signature[data-theme="light"] :is([data-agent="colonel"], [data-profile="colonel"]),
#hermes-signature#hermes-signature[data-theme="light"] #hs-chat:has(.hs-identity[data-profile="colonel"]) { --ag1: #ff3b30; --ag2: #ff9500; --agi: #c4161c; }
#hermes-signature#hermes-signature[data-theme="light"] :is([data-agent="secretaire"], [data-profile="secretaire"]),
#hermes-signature#hermes-signature[data-theme="light"] #hs-chat:has(.hs-identity[data-profile="secretaire"]) { --ag1: #0a84ff; --ag2: #32ade6; --agi: #0060c7; }
#hermes-signature#hermes-signature[data-theme="light"] :is([data-agent="aligator"], [data-profile="aligator"]),
#hermes-signature#hermes-signature[data-theme="light"] #hs-chat:has(.hs-identity[data-profile="aligator"]) { --ag1: #34c759; --ag2: #00c7be; --agi: #1e7d3a; }
#hermes-signature#hermes-signature[data-theme="light"] :is([data-agent="resp"], [data-profile="resp"]),
#hermes-signature#hermes-signature[data-theme="light"] #hs-chat:has(.hs-identity[data-profile="resp"]) { --ag1: #5856d6; --ag2: #af52de; --agi: #4b3fbf; }
#hermes-signature#hermes-signature[data-theme="light"] :is([data-agent="daf"], [data-profile="daf"]),
#hermes-signature#hermes-signature[data-theme="light"] #hs-chat:has(.hs-identity[data-profile="daf"]) { --ag1: #ffc400; --ag2: #ffd84a; --agi: #9a7300; }   /* 14/10 : vrai jaune (avant ambre → orange, encre brune) */
#hermes-signature#hermes-signature[data-theme="light"] :is([data-agent="prod"], [data-profile="prod"]),
#hermes-signature#hermes-signature[data-theme="light"] #hs-chat:has(.hs-identity[data-profile="prod"]) { --ag1: #ff2d55; --ag2: #af52de; --agi: #c2185b; }
#hermes-signature#hermes-signature[data-theme="light"] :is([data-agent="veille"], [data-profile="veille"]),
#hermes-signature#hermes-signature[data-theme="light"] #hs-chat:has(.hs-identity[data-profile="veille"]) { --ag1: #30b0c7; --ag2: #5ac8fa; --agi: #0e7c93; }

#hermes-signature#hermes-signature[data-theme="light"] .hs-avatar {
  background: linear-gradient(135deg, var(--ag1), var(--ag2)) !important;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ag1) 32%, transparent) !important;
}
/* Pastilles rouges, comme sur l'iPhone */
#hermes-signature#hermes-signature[data-theme="light"] :is(.qg-nonlu-n, .qg-nonlu-onglet, .qg-convs-n) {
  background: #ff3b30 !important; color: #ffffff !important; border: none !important;
  box-shadow: 0 2px 6px rgba(255, 59, 48, .35) !important; text-shadow: none !important;
}

/* 3. En-tête, titres, recherche --------------------------------------------------------- */
#hermes-signature#hermes-signature[data-theme="light"] .hs-top {
  background: rgba(255, 255, 255, .36) !important;
  -webkit-backdrop-filter: var(--cc-blur); backdrop-filter: var(--cc-blur);
  border-bottom: 1px solid rgba(255, 255, 255, .55) !important; box-shadow: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-top::after { display: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-toptools :is(.hs-user, .hs-themebutton) {
  background: rgba(255, 255, 255, .62) !important; color: var(--cc-ink) !important;
  border: 1px solid var(--cc-edge) !important; box-shadow: 0 2px 8px rgba(96, 52, 10, .08) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] :is(.qg-wordmark, .qg-wordmark .qg-wordmark-letters, .qg-wordmark .qg-wordmark-accents) {
  -webkit-filter: none !important; filter: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .qg-wordmark .qg-wordmark-letters { fill: #1c1c1e !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-wordmark .qg-wordmark-accents { fill: #ff375f !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-nav button[aria-current=page] {
  color: var(--cc-ink) !important; background: rgba(255, 255, 255, .78) !important; border-radius: 12px; box-shadow: var(--cc-shadow) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .nx-navbeam { display: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-bottom {
  background: rgba(255, 255, 255, .5) !important; -webkit-backdrop-filter: var(--cc-blur); backdrop-filter: var(--cc-blur);
  border-color: rgba(255, 255, 255, .6) !important; color: var(--cc-dim) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-pageheading h1, .hs-railtop h2, .qg-drive-heading h1) {
  color: var(--cc-ink) !important; text-shadow: none !important; letter-spacing: -.02em;
}
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-pageheading h1, .qg-drive-heading h1)::after { display: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-eyebrow, .hs-railtop .hs-muted, .hs-pageheading p) { color: var(--cc-dim) !important; text-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-pageheading, .qg-drive-heading) .hs-eyebrow::before { color: #ff375f !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.qg-studio-search, .qg-drive-search) {
  background: rgba(255, 255, 255, .56) !important; color: var(--cc-ink) !important;
  border: 1px solid var(--cc-edge) !important; border-radius: 14px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6) !important;
  -webkit-backdrop-filter: var(--cc-blur); backdrop-filter: var(--cc-blur);
}
#hermes-signature#hermes-signature[data-theme="light"] :is(.qg-studio-search, .qg-drive-search):focus-within {
  border-color: rgba(10, 132, 255, .55) !important; box-shadow: 0 0 0 3px rgba(10, 132, 255, .22) !important;
}

/* 4. Liste des échanges : cartes en verre, teintées de la couleur de l'agent ---------------- */
#hermes-signature#hermes-signature[data-theme="light"] .hs-rail .hs-person {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ag1) 11%, rgba(255, 255, 255, .62)), color-mix(in srgb, var(--ag2) 7%, rgba(255, 255, 255, .58))) !important;
  border: 1px solid var(--cc-edge) !important; border-radius: 22px !important;
  box-shadow: var(--cc-shadow) !important;
  -webkit-backdrop-filter: var(--cc-blur); backdrop-filter: var(--cc-blur);
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-rail .hs-person.qg-nonlu {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ag1) 22%, rgba(255, 255, 255, .8)), color-mix(in srgb, var(--ag2) 15%, rgba(255, 255, 255, .72))) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-rail .hs-person:is(:hover, :focus-visible) { background: var(--cc-glass-hi) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-rail .hs-person[aria-pressed=true] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--ag1) 24%, #ffffff), color-mix(in srgb, var(--ag2) 18%, #ffffff)) !important;
  border-color: color-mix(in srgb, var(--ag1) 35%, #ffffff) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-personname { color: var(--cc-ink) !important; text-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-preview { color: var(--cc-dim) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-rail .hs-personname::after { color: var(--cc-mute) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-person-chevron { color: rgba(60, 60, 67, .38) !important; }

/* 5. Dock du bas : verre, icônes en couleur comme sur l'écran d'accueil ---------------------- */
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav::before {
  background: rgba(255, 255, 255, .46) !important;
  -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .72), 0 12px 32px rgba(96, 52, 10, .14) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button { color: var(--cc-dim) !important; text-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button svg { filter: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button[data-page="chat"] svg { color: #34c759 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button[data-page="tasks"] svg { color: #ff9500 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button[data-page="agents"] svg { color: #af52de !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button[data-page="drive"] svg { color: #0a84ff !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button[data-page="activity"] svg { color: #ff2d55 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button[aria-current=page] { color: var(--cc-ink) !important; font-weight: 650; }
#hermes-signature#hermes-signature[data-theme="light"] .nx-dockbeam::before {
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 4px 14px rgba(96, 52, 10, .12), inset 0 0 0 1px rgba(255, 255, 255, .95) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .nx-dockbeam::after { display: none !important; }

/* 6. Conversation ------------------------------------------------------------------------ */
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-chathead, .hs-mobile-chatnav) {
  background: rgba(255, 255, 255, .46) !important;
  -webkit-backdrop-filter: var(--cc-blur); backdrop-filter: var(--cc-blur);
  border-color: rgba(255, 255, 255, .6) !important; box-shadow: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-chathead h2 { color: var(--cc-ink) !important; text-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-statusline { color: var(--cc-dim) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-dot { background: #34c759 !important; box-shadow: 0 0 0 3px rgba(52, 199, 89, .2) !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-back, .hs-mobile-chatnav .hs-link) { color: #0055cc !important; text-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-message.mine .hs-bubble {
  background: var(--cc-mine) !important; color: #ffffff !important; border: none !important;
  box-shadow: 0 6px 18px var(--cc-mine-glow) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-message.mine .hs-bubble a { color: #ffffff !important; text-decoration: underline; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-message:not(.mine) .hs-bubble {
  background: rgba(255, 255, 255, .8) !important; color: #1c1c1e !important;
  border: 1px solid rgba(255, 255, 255, .9) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--ag1) 16%, transparent), 0 1px 2px rgba(0, 0, 0, .05) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-message:not(.mine)::before {
  background: linear-gradient(180deg, var(--ag1), var(--ag2)) !important; box-shadow: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-messagehead strong { color: var(--agi) !important; text-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-messagehead > span, .hs-time) { color: var(--cc-dim) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-markdown :is(strong, b, h1, h2, h3) { color: #1c1c1e !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-message:not(.mine) .qg-markdown a { color: #0a6cff !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-markdown :not(pre) > code {
  background: rgba(120, 120, 128, .13) !important; color: #1c1c1e !important; border: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .qg-markdown pre { background: rgba(28, 28, 30, .9) !important; color: #f2f2f7 !important; border: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-markdown-table th { background: color-mix(in srgb, var(--ag1) 15%, #ffffff) !important; color: #1c1c1e !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-markdown-table :is(table, th, td) { border-color: rgba(60, 60, 67, .14) !important; }

/* Zone de saisie */
#hermes-signature#hermes-signature[data-theme="light"] .hs-composerwrap { background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .26) 45%) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer textarea {
  background: rgba(255, 255, 255, .76) !important; color: #1c1c1e !important;
  border: 1px solid rgba(255, 255, 255, .9) !important;
  -webkit-backdrop-filter: var(--cc-blur); backdrop-filter: var(--cc-blur);
  box-shadow: 0 8px 24px rgba(96, 52, 10, .12) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer textarea::placeholder { color: #6e6e78 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer textarea:is(:focus, :focus-visible) {
  border-color: color-mix(in srgb, var(--ag1) 55%, #ffffff) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ag1) 22%, transparent), 0 8px 24px rgba(96, 52, 10, .12) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-send {
  background: linear-gradient(135deg, var(--ag1), var(--ag2)) !important; color: #ffffff !important; border: none !important;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ag1) 42%, transparent) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-send svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
#hermes-signature#hermes-signature[data-theme="light"] .hs-send::after { border-color: rgba(255, 255, 255, .5) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-send:disabled { filter: saturate(.3) opacity(.55) !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.qg-option, .hs-icon) {
  color: #3a3a3c !important; background: rgba(255, 255, 255, .58) !important;
  border: 1px solid rgba(255, 255, 255, .78) !important; box-shadow: none !important; text-shadow: none !important;
}

/* 7. Boutons, cartes des autres pages, feuilles -------------------------------------------- */
#hermes-signature#hermes-signature[data-theme="light"] .hs-button.primary {
  background: linear-gradient(135deg, #0a6cff, #5b3fd9) !important; color: #ffffff !important; border: none !important;
  box-shadow: 0 6px 16px rgba(10, 108, 255, .3) !important; text-shadow: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-button:not(.primary) {
  background: rgba(255, 255, 255, .64) !important; color: #1c1c1e !important;
  border: 1px solid rgba(255, 255, 255, .82) !important; box-shadow: 0 2px 8px rgba(96, 52, 10, .08) !important; text-shadow: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-agenttile, .qg-drive-agent, .qg-task, .hs-progress, .qg-drive-storage, .hs-event, .hs-taskrow) {
  background: var(--cc-glass) !important;
  border: 1px solid var(--cc-edge) !important;
  box-shadow: var(--cc-shadow) !important;
  -webkit-backdrop-filter: var(--cc-blur); backdrop-filter: var(--cc-blur);
}
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-agenttile, .qg-drive-agent)::after { background: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-agenttile h3 { color: var(--cc-ink) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-agenttile small { color: var(--agi) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-agenttile > svg { color: var(--agi) !important; filter: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-tag { background: rgba(255, 255, 255, .7) !important; color: var(--cc-dim) !important; border-color: rgba(60, 60, 67, .12) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-progressline .hs-eyebrow::before { background: var(--ag1) !important; box-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-progress:has(.qg-working) { border-color: color-mix(in srgb, var(--ag1) 45%, #ffffff) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-progress:has(.qg-working)::after {
  background: linear-gradient(90deg, transparent, var(--ag1), var(--ag2), transparent) !important; box-shadow: none !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-track { background: rgba(120, 120, 128, .16) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-track > span { background: linear-gradient(90deg, var(--ag1), var(--ag2)) !important; box-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-step.done svg { color: #34c759 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-event::before { background: linear-gradient(180deg, var(--ag1), var(--ag2)) !important; box-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-drive-track { background: rgba(120, 120, 128, .16) !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.qg-drive-fill, .qg-drive-segment) { background: linear-gradient(90deg, #0a84ff, #af52de, #ff375f) !important; box-shadow: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-modechoice, .hs-palettechoice, .hs-wallchoice, .hs-choice)[aria-pressed=true] {
  border-color: transparent !important; box-shadow: 0 0 0 2px #0a84ff, 0 6px 16px rgba(10, 132, 255, .22) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-sheet {
  background: rgba(255, 255, 255, .76) !important;
  -webkit-backdrop-filter: blur(30px) saturate(200%); backdrop-filter: blur(30px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, .92) !important; box-shadow: 0 20px 60px rgba(96, 52, 10, .2) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-toast {
  background: rgba(255, 255, 255, .9) !important; color: #1c1c1e !important;
  border: 1px solid rgba(255, 255, 255, .96) !important;
  -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 10px 30px rgba(96, 52, 10, .18) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-field input, .hs-field textarea, .hs-field select) {
  background: rgba(255, 255, 255, .8) !important; color: #1c1c1e !important; border-color: rgba(60, 60, 67, .18) !important;
}

/* 8. Rangées d'options et de réglages : icônes dans des carrés de couleur, comme les Réglages de l'iPhone */
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow .hs-rowcopy strong > svg {
  box-sizing: content-box; width: 15px; height: 15px; padding: 5px; margin-right: 6px; vertical-align: middle;
  border-radius: 8px; color: #ffffff !important; filter: none !important;
  background: var(--cc-ico, #8e8e93) !important;
  box-shadow: 0 2px 6px color-mix(in srgb, var(--cc-ico, #8e8e93) 38%, transparent);
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow:nth-child(6n+1) { --cc-ico: #0a84ff; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow:nth-child(6n+2) { --cc-ico: #34c759; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow:nth-child(6n+3) { --cc-ico: #ff9500; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow:nth-child(6n+4) { --cc-ico: #5856d6; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow:nth-child(6n+5) { --cc-ico: #ff2d55; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow:nth-child(6n+6) { --cc-ico: #30b0c7; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow[data-notif] { --cc-ico: #ff3b30; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow[data-action="connectors"] { --cc-ico: #af52de; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-taskrow > svg:last-child { color: rgba(60, 60, 67, .35) !important; }

/* 9. Aperçu en direct (Paramètres) : le même fond coloré */
#hermes-signature#hermes-signature[data-theme="light"] .hs-mini-chat {
  background: var(--cc-wall) !important; border: 1px solid rgba(255, 255, 255, .85) !important; box-shadow: var(--cc-shadow) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-mini-chat header {
  background: rgba(255, 255, 255, .5) !important; -webkit-backdrop-filter: var(--cc-blur); backdrop-filter: var(--cc-blur);
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-mini-message { background: rgba(255, 255, 255, .84) !important; color: #1c1c1e !important; border: 1px solid rgba(255, 255, 255, .9) !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-mini-message.mine { background: var(--cc-mine) !important; color: #ffffff !important; border: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-mini-composer { background: rgba(255, 255, 255, .78) !important; color: #5c5c66 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-mini-composer span { background: linear-gradient(135deg, #0a6cff, #5b3fd9) !important; color: #ffffff !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-mini-monogram { background: linear-gradient(135deg, #ff9f0a, #ff375f) !important; color: #ffffff !important; }

/* 10. Bulles de réponse (07/10, retour du Général : « le carré de réponse est esthétiquement nul »).
   Fini le pavé blanc à angles droits collé au texte, et le trait vertical à gauche :
   une vraie bulle en verre, arrondie, avec de l'air autour du texte. Police et taille du
   texte inchangées (réglées par qg-lecture.css). */
#hermes-signature#hermes-signature[data-theme="light"] .hs-message:not(.mine) { padding-left: 0 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-message:not(.mine)::before { display: none !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-message:not(.mine) .hs-bubble {
  padding: 14px 17px !important;
  margin-top: 7px !important;
  border-radius: 6px 22px 22px 22px !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .70)) !important;
  border: 1px solid rgba(255, 255, 255, .95) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 32px color-mix(in srgb, var(--ag1) 16%, transparent) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-message.mine .hs-bubble { border-radius: 22px 22px 6px 22px !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-message:not(.mine) .qg-markdown-table { border-radius: 12px; overflow: hidden; }

/* 11. Typographie claire : les étiquettes NEXUS (chasse fixe, capitales espacées, Orbitron)
   passent en Hellix, en minuscules, comme les libellés de l'iPhone. Le code reste en chasse fixe. */
#hermes-signature#hermes-signature[data-theme="light"] {
  --cc-font: "Hellix", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --nx-display: var(--cc-font); --nx-ui: var(--cc-font); --nx-mono: var(--cc-font);
}
#hermes-signature#hermes-signature[data-theme="light"] :is(
  .nx-ticker, .hs-bottom, .hs-toptools .hs-themebutton span, .hs-nav button, .qg-mobile-nav > button span,
  .hs-pageheading h1, .hs-railtop h2, .qg-drive-heading h1, .hs-eyebrow, .hs-railtop .hs-muted, .hs-rail > .hs-link,
  .hs-chathead h2, .hs-statusline, .hs-back, .hs-mobile-chatnav .hs-link, .hs-day, .hs-messagehead, .hs-messagehead strong,
  .qg-option, .hs-composebottom, .hs-button, .hs-agenttile small, .hs-tag, .hs-progressline .hs-eyebrow,
  .qg-progress-details h3, .qg-progress-caption, .hs-progressfoot, .hs-progressfoot .hs-link, .qg-drive-kicker,
  .qg-drive-sectionhead h2, .qg-drive-listhead h2, .hs-sheethead h2, .hs-time, .hs-personname, .hs-preview) {
  font-family: var(--cc-font) !important; text-transform: none !important; letter-spacing: 0 !important;
}
#hermes-signature#hermes-signature[data-theme="light"] :is(.qg-studio-search, .qg-drive-search) input::placeholder,
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer textarea::placeholder {
  font-family: var(--cc-font) !important; text-transform: none !important; letter-spacing: 0 !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .qg-markdown :is(code, pre, kbd, samp) { font-family: ui-monospace, "SF Mono", Menlo, monospace !important; }
/* Tailles adaptées aux minuscules */
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-pageheading h1, .hs-railtop h2, .qg-drive-heading h1) { font-size: 30px !important; font-weight: 700 !important; letter-spacing: -.02em !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-chathead h2 { font-size: 19px !important; font-weight: 700 !important; letter-spacing: -.01em !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-statusline { font-size: 13px !important; font-weight: 500 !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-back, .hs-mobile-chatnav .hs-link) { font-size: 16px !important; font-weight: 600 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-messagehead strong { font-size: 14px !important; font-weight: 700 !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-messagehead > span, .hs-time) { font-size: 12px !important; font-weight: 500 !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-eyebrow, .hs-railtop .hs-muted) { font-size: 13px !important; font-weight: 600 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .qg-mobile-nav > button span { font-size: 11px !important; font-weight: 600 !important; }
#hermes-signature#hermes-signature[data-theme="light"] :is(.qg-option, .hs-button) { font-size: 14.5px !important; font-weight: 600 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-sheethead h2 { font-size: 17px !important; font-weight: 700 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer textarea::placeholder { font-size: 16px; }
/* Séparateur de sujet : une étiquette centrée en verre, sans les traits */
#hermes-signature#hermes-signature[data-theme="light"] .hs-day {
  width: fit-content; max-width: 86%; margin-inline: auto !important; justify-content: center; text-align: center;
  padding: 6px 14px !important; border-radius: 999px;
  font-size: 13px !important; font-weight: 600 !important; line-height: 1.3; color: var(--cc-dim) !important;
  background: rgba(255, 255, 255, .55) !important; border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%);
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-day::before,
#hermes-signature#hermes-signature[data-theme="light"] .hs-day::after { display: none !important; }
/* Boutons de l'en-tête : coins plus doux */
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-chathead, .hs-mobile-chatnav) :is(.hs-button, .hs-icon) { border-radius: 14px !important; }

/* 12. Cartes (07/10, retour du Général sur le journal d'activité : « idem ») :
   plus de pavés à angles droits empilés bord à bord. Coins arrondis, air intérieur, espace entre les cartes. */
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-agenttile, .qg-drive-agent, .qg-drive-storage, .qg-task, .hs-progress) { border-radius: 22px !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-event {
  border-radius: 20px !important; padding: 14px 16px !important; margin-bottom: 10px !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-event::before {
  width: 10px !important; height: 10px !important; border-radius: 50% !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 2px 6px rgba(10, 132, 255, .3) !important;
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-event time { color: var(--cc-dim) !important; font-size: 12.5px !important; font-weight: 600 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-event strong { color: var(--cc-ink) !important; font-weight: 700 !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-event p { color: var(--cc-dim) !important; }
/* Titres de page : sans les marqueurs « // » et le curseur « _ » du mode terminal */
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-pageheading, .qg-drive-heading) .hs-eyebrow::before,
#hermes-signature#hermes-signature[data-theme="light"] :is(.hs-pageheading, .qg-drive-heading) .hs-eyebrow::after { display: none !important; }

/* 13. Zone de saisie en pilules (comme Telegram et l'iPhone) et dictée vocale en clair */
#hermes-signature#hermes-signature[data-theme="light"] .qg-option { border-radius: 999px !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer textarea { border-radius: 22px !important; }
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer .qg-micro {
  color: #ffffff; background: linear-gradient(135deg, var(--ag1), var(--ag2));
  box-shadow: 0 6px 16px color-mix(in srgb, var(--ag1) 40%, transparent);
}
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer .qg-micro svg { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25)); }
#hermes-signature#hermes-signature[data-theme="light"] .hs-composer .qg-dictee {
  background: rgba(255, 255, 255, .88); color: #1c1c1e;
  -webkit-backdrop-filter: blur(22px) saturate(185%); backdrop-filter: blur(22px) saturate(185%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .95), 0 10px 28px rgba(96, 52, 10, .16);
}
