/* Couleurs et allure propres à OxygenEvent (chargée par brand_head_html() sur cette plateforme seulement).
   Même allure que la refonte « B · Régie » de l'administration (2026-11-11) : dense, angles de 4 px, menu à plat, barre du haut sombre,
   en-têtes de blocs sans fond, sous-blocs en encarts, une seule logique de niveaux, lignes alternées.
   Couleurs d'OxygenEvent (choix de l'utilisateur du 2026-11-11) : tout dérive des bleus du logo.
   - clair : accent #275c71 (« EVENT ») pour les textes, liserés et boutons, #5797bb (« OXYGEN ») pour les barres et petits repères ;
   - sombre : textes, liserés et titres en bleu ciel #8cc4e3, repères #5797bb ;
   - Super admin en gris (#333333, celui du slogan ; #c3cad2 en sombre), salle en orange (#d97706 / #f59e0b) ;
   - « Pendant le live » en bordeaux (#a3263a / #c24d5f), le rouge reste réservé au direct et aux suppressions,
     l'ambre à ce qui attend, le vert à ce qui est validé. Aucune autre couleur.
   Sélecteurs « html body.admin:not(#oxe) » : ils passent devant ceux de style.css (un identifiant dans :not() compte comme un identifiant). */

/* ---------- Thème clair ---------- */
html body.admin:not(#oxe) {
  --bg:#eef1f4; --card:#ffffff; --ink:#17212b; --muted:#5d6f7e; --line:#d7dee4; --line-strong:#c3ccd5;
  --cy:#275c71;        /* texte, liserés et titres (« EVENT » du logo) */
  --cy-fill:#275c71;   /* boutons pleins, interrupteurs, pastilles (texte blanc 7,4:1) */
  --cy-bright:#5797bb; /* barres et petits repères (« OXYGEN » du logo) */
  --cy-soft:#e4eef3;
  --role:#333333;      /* rôle Super admin (le gris du slogan) */
  --room:#d97706;      /* salle (votes et quiz) */
  --pc:var(--cy) !important; --pcf:var(--cy-fill) !important;
  --accent:var(--cy-fill); --accent-soft:var(--cy-soft); --accent-avant:var(--cy-bright);
  --logo-dark:#275c71; --logo-mid:#326275; --logo-light:#5797bb; --logo-sky:#8cc4e3; --logo-blue:var(--cy-bright);
  --pf-v1:var(--cy); --pf-v1d:var(--cy); --pf-v2:#5B6772; --pf-v3:var(--cy); --pf-v3d:var(--cy); --pf-v4d:var(--cy); --pf-v5:var(--cy-fill);
  --live-red:#a3263a;
  --relief:color-mix(in srgb, var(--ink) 5%, var(--card));
  --lv1:color-mix(in srgb, var(--cy) 6%, color-mix(in srgb, var(--ink) 5%, var(--card)));
  --lv2:color-mix(in srgb, var(--ink) 3%, var(--card));
}
html body.admin:not(#oxe) main, html body.admin.view-super:not(#oxe) main { --accent:var(--cy-fill); --accent-soft:var(--cy-soft); }

/* ---------- Thème sombre ---------- */
@media not all {
  html body.admin:not(#oxe) {
    --bg:#0e161e; --card:#142029; --ink:#e4ecf2; --muted:#8aa0b2; --line:#22313d; --line-strong:#2e4050;
    --cy:#8cc4e3; --cy-fill:#3a7496; --cy-bright:#5797bb; --cy-soft:rgba(140,196,227,.13);
    --role:#c3cad2; --room:#f59e0b;
    --logo-dark:#e4ecf2; --logo-mid:#5797bb; --logo-light:#8cc4e3; --logo-sky:#8cc4e3;
    --live-red:#c24d5f;
    --relief:color-mix(in srgb, var(--ink) 7%, var(--card));
  }
  html body.admin:not(#oxe) .topbar { background:#0a1118; border-bottom-color:#1a2632; }
  html body.admin:not(#oxe) :is(.side, .side.hdr-compact) { background:#0b131a; }
}

/* ---------- Menu de gauche : icônes grises, titres des groupes en évidence, page ouverte en bleu ---------- */
html body.admin:not(#oxe) .side :is(.side-group, .side-top, .g-super, .g-general, .g-adresses, .g-entry, .g-live, .g-follow, .g-other) { --gc:var(--muted); }
html body.admin:not(#oxe) .side :is(.side-head, .side-top) { color:var(--ink); font-weight:700; }
html body.admin:not(#oxe) .side :is(.side-group.has-active > .side-head, .side-group:has(.side-link.active) > .side-head, .side-top.active) { border-left-color:var(--cy); }
html body.admin:not(#oxe) .side .side-top.active .side-ico,
html body.admin:not(#oxe) .side .side-group:has(.side-link.active) > .side-head .side-ico { color:var(--cy); }
html body.admin:not(#oxe) .side .side-link.active, html body.admin:not(#oxe) .side .side-link:hover { color:var(--cy); }
html body.admin:not(#oxe) .side .side-link.active { background:var(--cy-soft); box-shadow:inset 2px 0 0 var(--cy); }
html body.admin:not(#oxe) .side :is(.side-link, .side-top) .nav-badge { background:var(--cy-fill) !important; color:#fff; }
html body.admin:not(#oxe) .side .nav-live { background:var(--cy) !important; }
@keyframes oxe-dot-pulse { 0% { box-shadow:0 0 0 0 color-mix(in srgb, var(--cy) 60%, transparent); } 70% { box-shadow:0 0 0 7px transparent; } 100% { box-shadow:0 0 0 0 transparent; } }
html body.admin:not(#oxe) .side .nav-live { animation-name:oxe-dot-pulse; }
@media not all {
  html body.admin:not(#oxe) .side :is(.side-group, .side-top, .demo-viewbox) { background:#111b24; border-color:#1f2c38; }
  html body.admin:not(#oxe) .side :is(.side-group.has-active > .side-head, .side-group:has(.side-link.active) > .side-head, .side-top.active, .side-head:hover, .side-top:hover) { background:#17232e; }
  html body.admin:not(#oxe) .side .side-link { color:#9fb2c2; }
  html body.admin:not(#oxe) .side .side-link.active, html body.admin:not(#oxe) .side .side-link:hover { color:var(--cy); }
}

/* ---------- Rôles : le gris repère seulement le Super admin ---------- */
html body.admin:not(#oxe) .side .demo-viewbox .dv-btn.v-admin { --vc:#275c71; }   /* le rôle Admin garde le bleu du logo, même sur les pages « Pendant le live » (bordeaux) */
@media not all { html body.admin:not(#oxe) .side .demo-viewbox .dv-btn.v-admin { --vc:#8cc4e3; } }
html body.admin:not(#oxe) .side .demo-viewbox .dv-btn.v-super { --vc:#5797bb; }   /* zone « Vue » : le Super admin choisi en bleu « OXYGEN » du logo, en clair comme en sombre (2026-11-11, demande de l'utilisateur) ; l'Admin garde #275c71 / #8cc4e3 */
html body.admin.view-super:not(#oxe) { --accent:var(--cy-fill); --accent-soft:var(--cy-soft); }
html body.admin.view-super:not(#oxe) .topbar .topbar-admin { color:var(--role); }
html body.admin.view-super:not(#oxe) .topbar { border-bottom-color:var(--role); box-shadow:inset 0 -2px 0 var(--role); }

/* ---------- Pages ---------- */
html body.admin:not(#oxe) main input.toggle:checked { background:var(--cy-fill); border-color:var(--cy-fill); }
html body.admin:not(#oxe) main :is(.settings-fold > summary, .regie-zone, .fold-head, details.gen-fold > summary) .sum-v:not(.is-no) { color:var(--cy) !important; }
html body.admin:not(#oxe) .pv-box { border-left-color:var(--cy-bright); }
html body.admin:not(#oxe) .pv-title { color:var(--cy) !important; }
html body.admin:not(#oxe) .pv-mode.on { background:var(--cy-fill) !important; border-color:var(--cy-fill) !important; color:#fff !important; }
html body.admin:not(#oxe) .lang b { background:var(--cy-fill); }
html body.admin:not(#oxe) .tour-bar-btn.go:hover { background:var(--cy-fill); }

/* Chiffres et heures alignés (esprit régie) */
html body.admin:not(#oxe) :is(.qa-mod .qa-head, .nav-count, .nav-badge, table.t td, .vote-voters, .v-num, .rs-chip, .stat-num, .countdown) { font-variant-numeric:tabular-nums; }

/* Questions du Q&A : un trait franc à gauche selon l'état (ambre : en attente, vert : validée) */
html body.admin:not(#oxe) main .qa-mod { border-left-width:3px; }
html body.admin:not(#oxe) main .qa-mod.status-approved { border-left-color:color-mix(in srgb, #22c55e 75%, var(--card)) !important; }
html body.admin:not(#oxe) main .qa-mod.status-pending { border-left-color:color-mix(in srgb, #f59e0b 85%, var(--card)) !important; }

/* Quiz et votes : cartes et « à distance » en bleu, la salle en orange */
html body.admin:not(#oxe) main .vote-card-admin { --ch:var(--cy-bright); --vb:var(--cy); --vr:var(--room);
  background:color-mix(in srgb, var(--cy-bright) 8%, var(--card)) !important; border-left:5px solid var(--cy-bright) !important; }
html body.admin:not(#oxe) main .vote-card-admin.is-live { --ch:var(--onair); background:color-mix(in srgb, var(--onair) 12%, var(--card)) !important; border-left-color:var(--onair) !important; }
html body.admin:not(#oxe) main .vote-card-admin .v-bar i { background:var(--cy-bright) !important; }
html body.admin:not(#oxe) main .vote-card-admin:has(.v-row.is-correct) .v-row:not(.is-correct) .v-bar i { background:repeating-linear-gradient(135deg, var(--cy-bright) 0 3px, color-mix(in srgb, var(--cy-bright) 40%, var(--card)) 3px 6px) !important; }

/* Pied de page en thème sombre : même bleu nuit que les cartes */
@media not all { html body.admin:not(#oxe) #oxy-footer { background:#111b24; } }

/* ---------- Barre d'état du direct dans l'en-tête (admin_status_bar()) ---------- */
.topbar-status { display:none; }
@media (min-width:1100px) {
  html body.admin:not(#oxe) .topbar-status { display:flex; align-items:center; gap:0; margin:0 auto 0 18px; min-width:0; overflow:hidden; font-size:.8rem; color:var(--muted); white-space:nowrap; }
  html body.admin:not(#oxe) .topbar-status .sb-item { display:inline-flex; align-items:center; gap:6px; padding:0 12px; border-left:1px solid var(--line); }
  html body.admin:not(#oxe) .topbar-status .sb-item:first-child { border-left:0; padding-left:0; }
  html body.admin:not(#oxe) .topbar-status b { color:var(--ink); font-weight:600; font-variant-numeric:tabular-nums; max-width:220px; overflow:hidden; text-overflow:ellipsis; }
  html body.admin:not(#oxe) .topbar-status .sb-dot { width:7px; height:7px; border-radius:50%; background:#22c55e; }
  html body.admin:not(#oxe) .topbar-status .onair-dot { margin:0; }
}
/* ============================================================================
   Allure de la maquette « B · Régie » (2026-11-11, l'utilisateur : « Je veux que tout ressemble à la démo B - Régie »).
   Dense, angles de 4 px, menu à plat sans blocs, barre du haut sombre, en-têtes de blocs sans fond, petits boutons,
   filtres en cases bordées, questions en lignes avec les actions à droite.
   ============================================================================ */
html body.admin:not(#oxe) { --r:4px; --side-w:248px; font-size:14px; }

/* --- Barre du haut sombre (en clair aussi, quand le logo a sa version pour fond sombre : jamais un logo client foncé sur fond sombre) --- */
html body.admin:not(#oxe) .topbar { --tb-bg:#1b2732; --tb-ink:#e4ecf2; --tb-muted:#a9bccb; --tb-line:#33475a; --tb-btn:#24323f; height:56px; padding:0 18px; }
@media not all { html body.admin:not(#oxe) .topbar { --tb-bg:#0a1118; --tb-line:#1f2c38; --tb-btn:#142029; } }
html body.admin:not(#oxe) .topbar:has(.logo-d) {
  background:var(--tb-bg) !important; border-bottom:1px solid var(--tb-line); box-shadow:none;
  --ink:var(--tb-ink); --muted:var(--tb-muted); --line:var(--tb-line); --line-strong:var(--tb-line); --card:var(--tb-btn); --relief:var(--tb-btn); --bg:var(--tb-btn);
  --cy-soft:rgba(140,196,227,.16); --cy:#8cc4e3;
  color:var(--tb-ink);
}
html body.admin:not(#oxe) .topbar:has(.logo-d) .logo-l { display:none !important; }
html body.admin:not(#oxe) .topbar:has(.logo-d) .logo-d { display:inline-block !important; }
html body.admin:not(#oxe) .topbar .topbar-event { height:32px; }
html body.admin:not(#oxe) .topbar .topbar-admin { font-size:.78rem; font-weight:600; letter-spacing:.07em; color:var(--muted); }
html body.admin.view-super:not(#oxe) .topbar .topbar-admin { color:var(--role); }
html body.admin.view-super:not(#oxe) .topbar:has(.logo-d) .topbar-admin { color:#5797bb; }
html body.admin:not(#oxe) .topbar .topbar-page { font-size:.9rem; font-weight:600; color:var(--ink); }
html body.admin:not(#oxe) .topbar .brand-sep { background:var(--line); border-color:var(--line); }
html body.admin:not(#oxe) .topbar :is(button, .button, .burger, .tour-head-btn, .lang, #side-toggle.burger) { border-radius:var(--r) !important; }
html body.admin:not(#oxe) .topbar .lang { border-color:var(--line); background:var(--card); }
html body.admin:not(#oxe) .topbar .lang :is(a, b) { border-radius:0 !important; padding:7px 10px; font-size:.78rem; }
html body.admin:not(#oxe) .topbar .lang a { color:var(--muted); }
html body.admin:not(#oxe) .topbar .lang a:hover { background:color-mix(in srgb, var(--ink) 10%, var(--card)); color:var(--ink); }
html body.admin:not(#oxe) .topbar .lang b { background:var(--cy-soft); color:var(--cy); font-weight:700; }
html body.admin:not(#oxe) .topbar .tour-head-btn { padding:6px 12px; font-size:.8rem; font-weight:600; background:var(--card); color:var(--ink); border:1px solid var(--line); }
html body.admin:not(#oxe) .topbar .tour-head-btn:hover { background:color-mix(in srgb, var(--ink) 10%, var(--card)); }
html body.admin:not(#oxe) .topbar #side-toggle.burger, html body.admin:not(#oxe) .topbar .hdr-burger { background:transparent; }
html body.admin:not(#oxe) .topbar :is(.burger span, .hdr-burger span, .hdr-burger span::before, .hdr-burger span::after) { background:var(--ink); }
html body.admin:not(#oxe) .topbar .topbar-status { color:var(--muted); }
html body.admin:not(#oxe) .topbar .topbar-status .sb-item { border-left-color:var(--line); }
html body.admin:not(#oxe) .topbar .topbar-status b { color:var(--ink); font-family:inherit; font-weight:600; font-variant-numeric:tabular-nums; }   /* même police que le reste de la barre (choix de l’utilisateur, 2026-11-11) ; chiffres de même largeur : le compte à rebours ne bouge pas */
html body.admin.view-super:not(#oxe) .topbar { box-shadow:inset 0 -2px 0 var(--role) !important; }

/* --- Menu de gauche à plat : plus de blocs, une colonne d'un gris à peine différent des pages --- */
html body.admin:not(#oxe) .side, html body.admin.view-super:not(#oxe) .side { background:#f7f9fa !important; border-right:1px solid var(--line) !important; padding:68px 10px calc(var(--footer-h, 56px) + 8px); }   /* la colonne commence sous la barre du haut (56 px) */
@media not all { html body.admin:not(#oxe) .side, html body.admin.view-super:not(#oxe) .side { background:#0b131a !important; } }
html body.admin:not(#oxe) .side nav { gap:2px; }
html body.admin:not(#oxe) .side .side-gap { height:4px; }
html body.admin:not(#oxe) .side :is(.side-group, .side-top, .demo-viewbox) { background:transparent !important; border:0 !important; border-radius:0; overflow:visible; box-shadow:none; }
html body.admin:not(#oxe) .side .side-group { margin-top:6px; }
html body.admin:not(#oxe) .side :is(.side-head, .side-top) { padding:7px 8px !important; border:0 !important; border-radius:var(--r); background:transparent !important; font-size:.875rem; font-weight:600; color:var(--ink) !important; gap:10px; }
html body.admin:not(#oxe) .side :is(.side-head, .side-top):hover { background:color-mix(in srgb, var(--ink) 5%, transparent) !important; }
html body.admin:not(#oxe) .side .side-top.active { background:var(--cy-soft) !important; color:var(--cy) !important; box-shadow:inset 2px 0 0 var(--cy); border-radius:0 var(--r) var(--r) 0; }
html body.admin:not(#oxe) .side .side-ico { width:18px; height:18px; color:var(--muted) !important; }
html body.admin:not(#oxe) .side .side-items { padding:0 0 4px; }
html body.admin:not(#oxe) .side .side-link { padding:4px 8px 4px 36px !important; font-size:.8rem; font-weight:400; line-height:1.45; color:var(--muted); border-radius:0 var(--r) var(--r) 0; }
html body.admin:not(#oxe) .side .side-link:hover { color:var(--ink) !important; background:color-mix(in srgb, var(--ink) 4%, transparent) !important; }
html body.admin:not(#oxe) .side .side-link.active { color:var(--cy) !important; background:var(--cy-soft) !important; box-shadow:inset 2px 0 0 var(--cy); font-weight:600; }
html body.admin:not(#oxe) .side .side-sub { font-size:.7rem; }
html body.admin:not(#oxe) .side .nav-badge { min-width:18px; height:18px; padding:0 6px; border-radius:9px; font-size:.7rem; }
html body.admin:not(#oxe) .side .demo-viewbox { padding:0 0 6px !important; gap:1px; border-bottom:1px solid var(--line) !important; margin-bottom:6px; }
html body.admin:not(#oxe) .side .demo-viewbox-label { font-size:.68rem; padding:0 8px 4px; }
html body.admin:not(#oxe) .side .demo-viewbox .dv-btn { padding:5px 8px !important; border-radius:var(--r); }
html body.admin:not(#oxe) .side .demo-viewbox .dv-btn b { font-size:.8rem; } html body.admin:not(#oxe) .side .demo-viewbox .dv-btn small { font-size:.7rem; }
html body.admin:not(#oxe) .side .demo-viewbox .dv-btn.on { box-shadow:inset 2px 0 0 var(--vc) !important; border-radius:0 var(--r) var(--r) 0; }

/* --- Pages : denses, angles de 4 px, sans ombres --- */
html body.admin:not(#oxe) main { margin-top:14px; }
html body.admin:not(#oxe) main :is(.card, details, .fold-box, .settings-fold, .inline-set, .qa-mod, .vote-card-admin, .stage-row, .choice, .module-row,
  .rs-chip, .stats-nav, .notice, .flash, .tone-1, .tone-2, .tone-3, .member, .trombi-group, .trombi-row, .regie-zone, .table-wrap, table.t,
  input:not([type=checkbox]):not([type=radio]), select, textarea) { border-radius:var(--r) !important; box-shadow:none !important; }
html body.admin:not(#oxe) main .card { padding:14px 16px; margin-bottom:12px; }
html body.admin:not(#oxe) main :is(.pill, .badge, .sum-chip, .adr-tag) { border-radius:3px !important; }
html body.admin:not(#oxe) :is(.pv-box, .demo-banner) { border-radius:var(--r); }

/* Titres de blocs : sans fond, un petit liseré bleu à gauche */
html body.admin:not(#oxe) :is(h4.regie-sub, .card > h2, .card > h3, .card > h4, main > h2:not(:first-of-type), main > [data-soft-region="trombi-main"] > h2) {
  background:transparent !important; color:var(--ink) !important; border-left:2px solid var(--cy) !important; border-radius:0 !important;
  padding:2px 0 2px 10px !important; font-size:.92rem; font-weight:700;
}
/* Volets repliables : en-tête sans fond, trait fin dessous une fois ouverts */
html body.admin:not(#oxe) main :is(.fold-head, details.settings-fold > summary, details.gen-fold > summary) {
  background:transparent !important; color:var(--ink) !important; border-left:0 !important; border-radius:0 !important;
  padding:9px 14px !important; font-size:.92rem !important; font-weight:700;
}
html body.admin:not(#oxe) main :is(details.settings-fold, .fold-box, details.gen-fold) { border:1px solid var(--line) !important; background:var(--card); }
html body.admin:not(#oxe) main :is(details.settings-fold[open] > summary, details.gen-fold[open] > summary, .fold-box > .fold-head) { border-bottom:1px solid var(--line) !important; }
html body.admin:not(#oxe) main :is(.fold-head, details.settings-fold > summary, details.gen-fold > summary)::before { color:var(--cy) !important; }
html body.admin:not(#oxe) main :is(.settings-fold, .inline-set) .fold-box > .fold-head { background:color-mix(in srgb, var(--ink) 3%, var(--card)) !important; border-left:0 !important; font-size:.92rem !important; padding:8px 12px !important; }
html body.admin:not(#oxe) main h2 { font-size:1.05rem; }

/* Boutons : petits, angles de 4 px */
html body.admin:not(#oxe) main :is(button, .button, a.button):not(.toggle):not(.ch-btn):not(.pv-mode) { border-radius:var(--r) !important; padding:4px 10px; font-size:.8rem; font-weight:600; min-height:28px; line-height:1.3; box-shadow:none; }
html body.admin:not(#oxe) main .qa-mod .actions :is(button, .button):not(.primary) { background:var(--card); color:var(--ink); border:1px solid var(--line-strong); }

/* Filtres (Q&A, statistiques) : des cases bordées, la choisie bordée de bleu */
html body.admin:not(#oxe) main .stats-nav { background:transparent; border:0; padding:0; gap:6px; margin:4px 0 12px; }
html body.admin:not(#oxe) main .stats-nav a { border:1px solid var(--line); background:var(--card); border-radius:var(--r); padding:3px 9px; font-size:.78rem; font-weight:500; color:var(--muted); }
html body.admin:not(#oxe) main .stats-nav a.on { background:var(--cy-soft); border-color:var(--cy); color:var(--cy); font-weight:600; }
html body.admin:not(#oxe) main .stats-nav .group { font-size:.68rem; padding:0 6px 0 0; }

/* Pastilles d'état : un point et le mot, sans fond */
html body.admin:not(#oxe) main .badge:is(.st-approved, .st-pending, .st-rejected) { background:transparent !important; border:0 !important; padding:0 !important; margin-left:10px; font-weight:600; }
html body.admin:not(#oxe) main .badge:is(.st-approved, .st-pending, .st-rejected)::before { content:''; display:inline-block; width:7px; height:7px; margin-right:5px; border-radius:50%; background:currentColor; vertical-align:1px; }
html body.admin:not(#oxe) main .badge.st-approved { color:#16855a !important; }
html body.admin:not(#oxe) main .badge.st-pending { color:#a46a00 !important; }
@media not all {
  html body.admin:not(#oxe) main .badge.st-approved { color:#49c98b !important; }
  html body.admin:not(#oxe) main .badge.st-pending { color:#f0b443 !important; }
}
html body.admin:not(#oxe) main .qa-mod .badge:not(.st-approved):not(.st-pending):not(.st-rejected) { background:transparent; border:0; padding:0; margin-left:10px; color:var(--muted); font-weight:500; }

/* --- Questions du Q&A : une ligne par question, actions à droite, trait d'état à gauche --- */
html body.admin:not(#oxe) main .qa-mod { display:grid; grid-template-columns:minmax(0, 1fr) auto; column-gap:14px; align-items:center;
  padding:9px 12px !important; margin-bottom:4px !important; border:1px solid var(--line); border-left:3px solid var(--line-strong); background:var(--card) !important; }
html body.admin:not(#oxe) main .qa-mod > :is(.qa-head, .qa-body, .qa-saved) { grid-column:1; margin:0; }
html body.admin:not(#oxe) main .qa-mod > .field { grid-column:1 / -1; margin:8px 0 0; }
html body.admin:not(#oxe) main .qa-mod > .actions { grid-column:2; grid-row:1 / span 3; align-self:center; flex-wrap:nowrap; gap:6px; }
html body.admin:not(#oxe) main .qa-mod > .actions :is(button, .button) { min-height:26px; padding:3px 9px; font-size:.76rem; font-weight:500; }
html body.admin:not(#oxe) main .qa-mod .qa-head { font-size:.74rem; color:var(--muted); font-variant-numeric:tabular-nums; }
html body.admin:not(#oxe) main .qa-mod .qa-head b { color:var(--ink); }
html body.admin:not(#oxe) main .qa-mod .qa-body { font-size:.9rem; font-weight:600; line-height:1.35; color:var(--ink); }
html body.admin:not(#oxe) main .qa-mod .qa-saved:not(:empty) { font-size:.86rem; color:var(--muted); padding-left:10px; border-left:2px solid var(--line); margin-top:4px; }
html body.admin:not(#oxe) main .qa-mod.status-approved { border-left-color:#16855a !important; }
html body.admin:not(#oxe) main .qa-mod.status-pending { border-left-color:#d38b06 !important; }
html body.admin:not(#oxe) main .qa-mod.status-rejected { border-left-color:color-mix(in srgb, #ef4444 60%, var(--card)) !important; }
html body.admin:not(#oxe) main .qa-mod.is-presented { background:var(--card) !important; border-color:var(--line) !important; }
@media (max-width:760px) { html body.admin:not(#oxe) main .qa-mod > .actions { grid-column:1 / -1; grid-row:auto; flex-wrap:wrap; margin-top:6px; } }

/* --- Panneau « Page du live » : colonne de la régie, titre discret --- */
html body.admin:not(#oxe) .pv-box { border:1px solid var(--line) !important; background:#f7f9fa; }
@media not all { html body.admin:not(#oxe) .pv-box { background:#0b131a; } }
html body.admin:not(#oxe) .pv-title { color:var(--muted) !important; font-size:.72rem; letter-spacing:.08em; }
html body.admin:not(#oxe) .pv-mode { border-radius:var(--r) !important; padding:3px 9px; font-size:.78rem; }
html body.admin:not(#oxe) .pv-mode.on { background:var(--cy-soft) !important; border-color:var(--cy) !important; color:var(--cy) !important; }
html body.admin:not(#oxe) > .demo-banner { border-radius:0; }

/* Textes des pages un peu plus petits, comme la maquette */
html body.admin:not(#oxe) main { font-size:.9rem; }
html body.admin:not(#oxe) main :is(.qa-mod .badge, .summary, .muted, .section-sub) { font-size:.76rem; }
html body.admin:not(#oxe) main :is(details.settings-fold > summary, .fold-head) .fold-sum { font-size:.72rem !important; }
html body.admin:not(#oxe) .demo-data, html body.admin:not(#oxe) main > .notice { font-size:.82rem; padding:8px 12px; }

/* Panneau « Page du live » en colonne fixe à droite, comme la maquette : 320 px par défaut (la poignée règle toujours sa largeur, retenue par le navigateur),
   place réservée dès 1100 px pour qu'il ne recouvre plus la liste ; sans ombre, collé sous la barre du haut. */
html body.admin:not(#oxe) { --dock-w:320px; }
@media (min-width:1100px) { html body.has-dock:not(.dock-closed):not(#oxe) .shell-main { padding-right:calc(var(--dock-w) + 4px); } }
/* Bandeau de la démonstration : il s'arrête au bord du panneau « Page du live » ouvert, qui démarre juste sous la barre du haut ; ses liens (Remettre à zéro, Prolonger, Page du participant) ne passent plus dessous (2026-11-11, signalé par l'utilisateur). */
@media (min-width:1100px) { html body.has-dock:not(.dock-closed):not(#oxe) > .demo-banner { padding-right:calc(var(--dock-w) + 20px); } }
html body.admin:not(#oxe) .pv-dock { top:56px; padding:0; }
html body.admin:not(#oxe) .pv-dock .pv-box { min-height:100%; border:0 !important; border-left:1px solid var(--line) !important; border-radius:0 !important; box-shadow:none !important; padding:12px 14px; }
/* Barre d'état : elle se resserre au lieu d'être coupée */
html body.admin:not(#oxe) .topbar-status { flex:1 1 auto; }
html body.admin:not(#oxe) .topbar-status .sb-item { flex:0 1 auto; min-width:0; overflow:hidden; }
html body.admin:not(#oxe) .topbar-status b { max-width:170px; white-space:nowrap; }
/* Seul le nom du chapitre en direct se raccourcit ; compte à rebours, vote et questions restent entiers */
html body.admin:not(#oxe) .topbar-status .sb-item { flex:none; }
html body.admin:not(#oxe) .topbar-status .sb-item:has(.onair-dot) { flex:0 1 auto; }
html body.admin:not(#oxe) .topbar-status .sb-item:has(.onair-dot) b { overflow:hidden; text-overflow:ellipsis; }
html body.admin:not(#oxe) .topbar-status b { overflow:visible; max-width:none; }
html body.admin:not(#oxe) .topbar-status .sb-item:has(.onair-dot) b { max-width:200px; overflow:hidden; }
/* Votes et quiz : la ligne des votants passe à la ligne sur téléphone */
html body.admin:not(#oxe) main .vote-card-admin .vote-voters { white-space:normal; flex-wrap:wrap; overflow-wrap:anywhere; }
html body.admin:not(#oxe) main :is(.ch-btn, button.onair-badge, .trombi-sort button) { border-radius:var(--r) !important; }

/* Sous-blocs d'un bloc (ex. « Sur la page du live », « Page animateur » dans « Réglages du module ») : variante « B · Trait bleu continu »
   choisie par l'utilisateur le 2026-11-11 (# CLAUDE DEV/maquettes/sous-blocs-3-variantes.png). Pas de cadre : un trait bleu longe tout
   le sous-bloc et son titre passe en bleu ; le bloc qui les contient garde son cadre. */
html body.admin:not(#oxe) main #reglages > form { padding:12px 14px 14px !important; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box > .fold-box-body > .card-solo { border:0 !important; background:transparent !important; padding:0 !important; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box { background:transparent !important; border:0 !important; border-left:2px solid var(--cy) !important; border-radius:0 !important; margin:4px 0 18px 2px !important; padding-left:14px; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box > .fold-head { background:transparent !important; border:0 !important; color:var(--cy) !important; font-size:.92rem !important; padding:2px 0 6px !important; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box > .fold-head::before { content:none !important; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box > .fold-head:hover { background:transparent !important; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box > .fold-box-body { padding:0; }
/* Même chose pour une carte qui a son propre titre, posée dans un bloc (Régie : « Quorum », « Timer » dans « En direct ») */
html body.admin:not(#oxe) main .fold-box-body .card:has(> .fold-head) { background:transparent !important; border:0 !important; border-left:2px solid var(--cy) !important; border-radius:0 !important; padding:0 0 0 14px !important; margin:4px 0 18px 2px !important; }
html body.admin:not(#oxe) main .fold-box-body .card:has(> .fold-head) > .fold-head { background:transparent !important; border:0 !important; color:var(--cy) !important; font-size:.92rem !important; padding:2px 0 6px !important; }
html body.admin:not(#oxe) main .fold-box-body .card:has(> .fold-head) > .fold-head::before { content:none !important; }
@media (max-width:900px) { html body.admin:not(#oxe) .side, html body.admin.view-super:not(#oxe) .side { padding-top:14px; } }   /* téléphone : le menu s'ouvre par-dessus la page, comme avant */

/* Sous-blocs séparés (2026-11-11, l'utilisateur : « comme sur l'exemple A, que les blocs soient séparés ») : la variante B (trait bleu, titre bleu)
   devient un encart à part, comme A : cadre fin, fond à peine plus marqué que le bloc qui le contient, espace entre les encarts. */
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box,
html body.admin:not(#oxe) main .fold-box-body .card:has(> .fold-head) {
  background:color-mix(in srgb, var(--ink) 3.5%, var(--card)) !important; border:1px solid var(--line) !important; border-left:2px solid var(--cy) !important;
  border-radius:var(--r) !important; margin:0 0 12px !important; padding:10px 14px 12px !important;
}
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box:last-child,
html body.admin:not(#oxe) main .fold-box-body .card:has(> .fold-head):last-child { margin-bottom:0 !important; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box > .fold-head,
html body.admin:not(#oxe) main .fold-box-body .card:has(> .fold-head) > .fold-head { padding:0 0 8px !important; margin:0 0 8px !important; border-bottom:1px solid var(--line) !important; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box:has(> .fold-box-body.fold-hidden) > .fold-head { padding-bottom:0 !important; margin-bottom:0 !important; border-bottom:0 !important; }
html body.admin:not(#oxe) main :is(details, .inline-set, .card) .fold-box :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { background:var(--card); }
/* Q&A : plus de fond teinté pour une source qui accepte les questions, tous les encarts ont le même fond (choix de l'utilisateur, 2026-11-11) ; le résumé « Peuvent poser des questions » le dit déjà */
html body.admin:not(#oxe) main .fold-box.qa-source-on { background:color-mix(in srgb, var(--ink) 3.5%, var(--card)) !important; border-color:var(--line) !important; border-left-color:var(--cy) !important; }

/* Plus aucune « bulle » très arrondie dans les pages (demande de l'utilisateur, 2026-11-11 : « plus rectangulaires, comme le reste de la logique des pages ») :
   filtres, choix en cases, cartes de chiffres, barres d'outils, Timer, étiquettes, QR code, aperçus. Les vrais ronds (interrupteurs, points, avatars) restent ronds. */
html body.admin:not(#oxe) main :is(.stats-nav a, .stats-nav a.on, label.chip > span, .chip-link, .stat, .toolbar, form.toolbar, .theme-preview, .tp-card,
  .doc-ext, .ag-gauge, .tmc, .tmc-now, .tmc > h3, details.tmc-more, details.tmc-more > summary, .qr-mini, .salle-qr svg, .salle-qr img, .logo-preview, .logo-preview img,
  .quiz-fields, .sat-comment, .docs-step, .rs-chip, .member, .v-chip, .trombi-sort button, .ch-btn, .onair-badge, .sum-chip) { border-radius:var(--r) !important; }
html body.admin:not(#oxe) main :is(.tmc-bar, .tmc-bar i, .v-bar, .v-bar i, .sat-bar, .sat-bar i, .quiz-track, .quiz-track i, .ag-gauge i) { border-radius:2px !important; }
html body.admin:not(#oxe) main :is(.tmc-tag, .tmc-live, .pill, .badge) { border-radius:3px !important; }
html body.admin:not(#oxe) .pv-dock-tab { border-radius:var(--r) 0 0 var(--r) !important; }
html body.admin:not(#oxe) main details > summary { border-radius:var(--r) !important; }   /* petits volets (Chapitres et intervenants, Timer) */
/* Quiz et Votes : les cartes de questions prennent le fond neutre des encarts et le trait bleu fin (choix de l'utilisateur, 2026-11-11) ;
   la question en cours sur le live garde son signal rouge (fond rouge léger, trait rouge). */
html body.admin:not(#oxe) main .vote-card-admin { background:color-mix(in srgb, var(--ink) 3.5%, var(--card)) !important; border:1px solid var(--line) !important; border-left:2px solid var(--cy) !important; }
html body.admin:not(#oxe) main .vote-card-admin.is-live { background:color-mix(in srgb, var(--onair) 10%, var(--card)) !important; border-color:color-mix(in srgb, var(--onair) 30%, var(--line)) !important; border-left:2px solid var(--onair) !important; }

/* ============================================================================
   Une seule logique de niveaux sur toutes les pages (demande de l'utilisateur, 2026-11-11 : « accorde tout le site sur la même logique ») :
   1. le bloc garde son cadre ;
   2. ce qui est encadré dans un bloc devient un encart : fond à peine plus marqué, cadre fin, trait bleu (comme les sous-blocs des réglages) ;
      cases de chiffres, barres d'outils et notes : même fond d'encart, sans trait ;
   3. une carte dans un encart reprend le fond du bloc, pour ressortir à son tour.
   Gardent leur propre signal : questions du Q&A, cartes de vote et de quiz, chapitres (direct en rouge), zone dangereuse, aperçu du live.
   ============================================================================ */
html body.admin:not(#oxe) main :is(.fold-box, details, .card) :is(.card, details.settings-fold, .quiz-fields, .toolbar, .stat):not(.card-solo):not(.vote-card-admin):not(.qa-mod):not(.danger-zone):not(.trombi-group):not(.pv-box) {
  background:color-mix(in srgb, var(--ink) 3.5%, var(--card)) !important; border:1px solid var(--line) !important; border-radius:var(--r) !important; box-shadow:none !important;
}
html body.admin:not(#oxe) main :is(.fold-box, details, .card) :is(.card, details.settings-fold, .quiz-fields):not(p):not(.card-solo):not(.vote-card-admin):not(.qa-mod):not(.danger-zone):not(.trombi-group):not(.pv-box):not(.stat):not(.member) {
  border-left:2px solid var(--cy) !important;
}
/* Niveau 3 : une carte dans un encart reprend le fond du bloc */
html body.admin:not(#oxe) main :is(.fold-box, details, .card) :is(.card, details.settings-fold, .quiz-fields, .fold-box) :is(.card, details.settings-fold, .quiz-fields, .toolbar, .stat):not(.card-solo):not(.vote-card-admin):not(.qa-mod):not(.danger-zone):not(.trombi-group):not(.pv-box) {
  background:var(--card) !important;
}
/* Les champs restent sur le fond des cartes, pour se détacher de l'encart */
html body.admin:not(#oxe) main :is(.fold-box, details, .card) :is(.card, details.settings-fold, .quiz-fields) :is(input:not([type=checkbox]):not([type=radio]):not([type=color]), select, textarea) { background:var(--card); }
/* Timer, « Réglages des timers et des chapitres » : une ligne sur deux légèrement plus marquée, pour distinguer chaque intervention (demande de l'utilisateur, 2026-11-11) */
html body.admin:not(#oxe) main table.tm-items tbody tr:nth-child(even) > td { background:color-mix(in srgb, var(--ink) 4%, var(--card)); }
html body.admin:not(#oxe) main table.tm-items tbody tr:nth-child(odd) > td { background:var(--card); }
/* Lignes alternées dans tous les tableaux et dans la liste des documents (demande de l'utilisateur, 2026-11-11 : « partout ») :
   une ligne sur deux légèrement plus marquée ; les lignes de titres gardent leur fond. */
html body.admin:not(#oxe) main table.t tbody tr:not(:has(th)):nth-child(odd) > td { background:var(--card); }
html body.admin:not(#oxe) main table.t tbody tr:not(:has(th)):nth-child(even) > td { background:color-mix(in srgb, var(--ink) 4%, var(--card)); }
html body.admin:not(#oxe) main .dm-list > .dm-item:nth-child(even) { background:color-mix(in srgb, var(--ink) 4%, var(--card)); }
html body.admin:not(#oxe) main .dm-list > .dm-item { padding-left:8px; padding-right:8px; }
/* Chapitre en diffusion : encadré de rouge tout autour, fond rouge léger, comme la question en direct des quiz et des votes
   (demande de l'utilisateur, 2026-11-11 : « qu'il ressorte encore mieux, ou peut-être encadré »). Le rouge reste réservé au direct. */
html body.admin:not(#oxe) main .trombi-group:is(.is-air, .is-on) {
  background:color-mix(in srgb, var(--onair) 9%, var(--card)) !important;
  border:1px solid color-mix(in srgb, var(--onair) 60%, var(--line)) !important; border-left:3px solid var(--onair) !important;
  box-shadow:0 0 0 1px color-mix(in srgb, var(--onair) 25%, transparent) !important;
}
/* « Chapitre affiché sur le live » (choix du chapitre) : panneau de commande mis en avant, cadre bleu tout autour, fond bleu léger, titre bleu (2026-11-11) */
html body.admin:not(#oxe) main .card.trombi-switch:not(#oxe-a):not(#oxe-b) {   /* deux :not(#…) : passe devant la règle générale des encarts */
  background:color-mix(in srgb, var(--cy) 8%, var(--card)) !important; border:1px solid color-mix(in srgb, var(--cy) 55%, var(--line)) !important; border-left:3px solid var(--cy) !important;
}
html body.admin:not(#oxe) main .card.trombi-switch > strong:first-child, html body.admin:not(#oxe) main .card.trombi-switch > :first-child strong { color:var(--cy); }
/* Intervenant en scène (quelqu'un est affiché sur le live) : encadré de rouge, fond rouge léger, comme le chapitre en diffusion (2026-11-11) */
html body.admin:not(#oxe) main .stage-row.is-on:has(.trombi-line):not(#oxe-a):not(#oxe-b) {
  background:color-mix(in srgb, var(--onair) 9%, var(--card)) !important;
  border:1px solid color-mix(in srgb, var(--onair) 60%, var(--line)) !important; border-left:3px solid var(--onair) !important;
  box-shadow:0 0 0 1px color-mix(in srgb, var(--onair) 25%, transparent) !important;
}
/* Liste des intervenants : la ligne de l'intervenant en scène prend le même signal (cadre rouge, fond rouge léger) ; pastille « en scène » en rouge (2026-11-11) */
html body.admin:not(#oxe) main .trombi-row.is-on:not(#oxe-a):not(#oxe-b) {
  background:color-mix(in srgb, var(--onair) 9%, var(--card)) !important;
  border:1px solid color-mix(in srgb, var(--onair) 60%, var(--line)) !important; border-left:3px solid var(--onair) !important;
  box-shadow:0 0 0 1px color-mix(in srgb, var(--onair) 25%, transparent) !important;
}
html body.admin:not(#oxe) main .trombi-row.is-on .pill { background:color-mix(in srgb, var(--onair) 22%, var(--card)) !important; color:var(--ink) !important; }
/* Chapitres (hors diffusion) : fond neutre des encarts et trait bleu fin, comme les cartes de questions (choix de l'utilisateur, 2026-11-11) ;
   le chapitre en diffusion garde son cadre rouge (règle plus haut). */
html body.admin:not(#oxe) main .trombi-group:not(.is-air):not(.is-on):not(#oxe-a) {
  background:color-mix(in srgb, var(--ink) 3.5%, var(--card)) !important; border:1px solid var(--line) !important; border-left:2px solid var(--cy) !important; box-shadow:none !important;
}

/* « Chapitre affiché sur le live » : choix de l'utilisateur (2026-11-11, # CLAUDE DEV/maquettes/choix-chapitre-3-variantes.png) :
   thème clair = A « console de régie » (panneau sombre, titre en majuscules avec un point rouge, chapitre affiché bordé de rouge) ;
   thème sombre = B « bandeau bleu plein » (fond bleu, texte blanc, chapitre affiché en blanc). */
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) { background:#16232e !important; border:1px solid #2a3a48 !important; border-left:3px solid #8cc4e3 !important; color:#e4ecf2; padding:14px 16px !important; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > strong { color:#e4ecf2 !important; text-transform:uppercase; letter-spacing:.08em; font-size:.74rem; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > strong::before { content:'● '; color:#f0707c; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > .muted { color:#a9bccb !important; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) .ch-btn:not(#x4) { background:#1f2f3c !important; color:#e4ecf2 !important; border:1px solid #33475a !important; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) .ch-btn.is-air:not(#x4) { background:color-mix(in srgb, #f0707c 22%, #1f2f3c) !important; border-color:#f0707c !important; color:#fff !important; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) .ch-btn:not(#x4) small { color:#a9bccb !important; }
@media not all {
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) { background:var(--cy-fill) !important; border:0 !important; color:#fff; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > strong { color:#fff !important; text-transform:none; letter-spacing:0; font-size:inherit; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > strong::before { content:none; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > .muted { color:rgba(255,255,255,.82) !important; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) .ch-btn:not(#x4) { background:rgba(255,255,255,.14) !important; color:#fff !important; border:1px solid rgba(255,255,255,.35) !important; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) .ch-btn.is-air:not(#x4) { background:#fff !important; color:#17212b !important; border-color:#fff !important; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) .ch-btn:not(#x4) small { color:inherit !important; opacity:.75; }
}
/* Le bouton « Aucun » prend le même style que les boutons de chapitre */
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) form.chips > button:not(.ch-btn):not(#x4) { background:#1f2f3c !important; color:#e4ecf2 !important; border:1px solid #33475a !important; }
@media not all {
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) form.chips > button:not(.ch-btn):not(#x4) { background:rgba(255,255,255,.14) !important; color:#fff !important; border:1px solid rgba(255,255,255,.35) !important; }
}

/* « Chapitre affiché sur le live », version adoucie (l'utilisateur, 2026-11-11 : « beaucoup trop voyant ») :
   clair = gris-bleu très léger, liseré bleu nuit, titre en majuscules avec le point rouge, chapitre affiché bordé de rouge ;
   sombre = teinte bleu légère, titre bleu, chapitre affiché bordé de bleu. */
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) { background:#e9eef2 !important; border:1px solid #cdd6de !important; border-left:3px solid #1b2732 !important; color:var(--ink); }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) > strong { color:#1b2732 !important; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) > .muted { color:var(--muted) !important; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) :is(.ch-btn, form.chips > button):not(#x4) { background:var(--card) !important; color:var(--ink) !important; border:1px solid var(--line-strong) !important; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) .ch-btn.is-air:not(#x4) { background:color-mix(in srgb, var(--onair) 9%, var(--card)) !important; border-color:color-mix(in srgb, var(--onair) 60%, var(--line)) !important; color:var(--ink) !important; }
html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) .ch-btn:not(#x4) small { color:var(--muted) !important; opacity:1; }
@media not all {
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) { background:color-mix(in srgb, var(--cy) 10%, var(--card)) !important; border:1px solid color-mix(in srgb, var(--cy) 30%, var(--line)) !important; border-left:3px solid var(--cy) !important; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) > strong { color:var(--cy) !important; text-transform:uppercase; letter-spacing:.08em; font-size:.74rem; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) :is(.ch-btn, form.chips > button):not(#x4) { background:var(--card) !important; color:var(--ink) !important; border:1px solid var(--line-strong) !important; }
  html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) .ch-btn.is-air:not(#x4) { background:color-mix(in srgb, var(--cy) 18%, var(--card)) !important; border-color:var(--cy) !important; color:var(--ink) !important; }
}
@media not all { html body.admin:not(#oxe) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) > strong::before { content:"● "; color:var(--onair); } }   /* même point rouge qu'en clair */
/* Barre du haut : le nom de la page reste entier, c'est la barre d'état qui cède la place (2026-11-11) */
@media (min-width:1100px) { html body.admin:not(#oxe) .topbar .topbar-title { flex:none; } }   /* sur téléphone, le titre peut toujours se raccourcir */
html body.admin:not(#oxe) .topbar .topbar-page { white-space:nowrap; }
html body.admin:not(#oxe) .topbar .topbar-status { flex:1 1 0; min-width:0; overflow:hidden; mask-image:linear-gradient(to right, #000 92%, transparent); }
/* Page Adresses : un bloc par destinataire, de la couleur de sa pastille (liseré et titre) ; le bloc du code reste neutre (2026-11-11) */
html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-part)   { --tg:#2f7fb0; } html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-salle)  { --tg:#d97706; }
html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-anim)   { --tg:#1f8a5b; } html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-interv) { --tg:#b45309; }
html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-regie)  { --tg:#8f7300; }
@media not all {
  html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-part)   { --tg:#6cb4dc; } html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-salle)  { --tg:#f59e0b; }
  html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-anim)   { --tg:#4cc38a; } html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-interv) { --tg:#f5994a; }
  html body.admin:not(#oxe) main .fold-box:has(> .adr-zone-regie)  { --tg:#facc15; }
}
html body.admin:not(#oxe) main .fold-box:has(> .adr-zone:not(.adr-zone-code)):not(#oxe-a) { border-left:3px solid var(--tg) !important; }
html body.admin:not(#oxe) main .fold-box > .adr-zone:not(.adr-zone-code):not(#oxe-a) { color:var(--tg) !important; }
html body.admin:not(#oxe) main .fold-box:has(> .adr-zone) .fold-box-body > .card.regie-addr:not(#oxe-a) { border-left-color:color-mix(in srgb, var(--tg) 70%, var(--line)) !important; }
/* Adresses hors de la page Adresses (Timer) : chaque encart prend la couleur de sa pastille (2026-11-11) */
html body.admin:not(#oxe) main .card.regie-addr.adr-card-interv { --tg:#b45309; } html body.admin:not(#oxe) main .card.regie-addr.adr-card-regie { --tg:#8f7300; }
@media not all { html body.admin:not(#oxe) main .card.regie-addr.adr-card-interv { --tg:#f5994a; } html body.admin:not(#oxe) main .card.regie-addr.adr-card-regie { --tg:#facc15; } }
html body.admin:not(#oxe) main .card.regie-addr.adr-card:not(#oxe-a):not(#oxe-b) { border-left:2px solid var(--tg) !important; }
html body.admin:not(#oxe) main .tm-links { display:grid; gap:10px; }
html body.admin:not(#oxe) main .tm-links > .card:not(#oxe-a):not(#oxe-b) { margin:0 !important; }

/* Pastille « Réservé » en rouge vif (choix de l'utilisateur, 2026-11-11, exception voulue à « rouge réservé au direct ») */
html body.admin:not(#oxe) .pill.pill-reserved:not(#oxe-a) { background:#dc2626 !important; color:#fff !important; border:1px solid #dc2626 !important; }


/* Nom « Super admin » en bleu #5797bb sur la barre du haut sombre et dans la zone « Vue » du menu, trait gris sous la barre en vue Super admin (2026-11-11). */
html body.admin.view-super:not(#oxe) .topbar .topbar-admin:not(#oxe-a), html body.admin.view-super:not(#oxe) .topbar:has(.logo-d) .topbar-admin:not(#oxe-a) { color:#5797bb; }   /* nom « Super admin » de la barre du haut au bleu « OXYGEN » du logo, comme dans la zone Vue (2026-11-11, demande de l'utilisateur) ; le trait sous la barre reste gris */
html body.admin:not(#oxe) .side .demo-viewbox .dv-btn.v-super:not(#oxe-a) { --vc:#5797bb; }
html body.admin.view-super:not(#oxe) .topbar:not(#oxe-a) { border-bottom-color:#8a96a3 !important; box-shadow:inset 0 -2px 0 #8a96a3 !important; }

/* « Pendant le live » en bordeaux (2026-11-09, choix de l'utilisateur) : icône et page ouverte du groupe, titres et liserés de ses pages. */
html body.admin:not(#oxe) .side .g-live { --gc:var(--live-red); }
html body.admin:not(#oxe) .side .g-live .side-ico { color:var(--live-red) !important; }
html body.admin:not(#oxe) .side .g-live .side-link.active:not(#oxe-a) { color:var(--live-red) !important; background:color-mix(in srgb, var(--live-red) 10%, transparent) !important; box-shadow:inset 2px 0 0 var(--live-red); }
html body.admin:has(.side .g-live.has-active):not(#oxe) { --pc:var(--live-red) !important; --pcf:var(--live-red) !important; --cy:var(--live-red); }

/* Passerelle « Votre propre marque ? » à l'endroit de la marque blanche (2026-11-09). */
html body .brand-gateway { border-left:4px solid #5797bb; }
html body .brand-gateway h3, html body .brand-gateway .bg-title { margin:0 0 6px; font-size:1.05rem; }
html body .brand-gateway p { margin:0 0 12px; }
html body .brand-gateway .bg-actions { display:flex; gap:8px; flex-wrap:wrap; }

/* Latence des directs, version courte, en haut de la Régie pour le client (2026-11-09) : seulement avec le serveur de diffusion fourni par la console. */
html body .regie-latency { margin:0 0 12px; font-weight:500; color:var(--ink); }

/* Pastilles « pour qui » des adresses : la salle en orange (pas de violet), le client au bleu du logo (2026-11-11). */
html body.admin:not(#oxe) .adr-tag.adr-tag-salle { --tg:#d97706; } html body.admin:not(#oxe) .adr-tag.adr-tag-client { --tg:#275c71; }
@media not all { html body.admin:not(#oxe) .adr-tag.adr-tag-salle { --tg:#f59e0b; } html body.admin:not(#oxe) .adr-tag.adr-tag-client { --tg:#8cc4e3; } }

/* Barre du haut (2026-11-11, demande de l'utilisateur) : un séparateur suit toujours « ADMIN » et « SUPER ADMIN » (posé dans l'en-tête, à la même distance) ;
   sur les pages qui ont un titre (« Régie »…), un trait sépare aussi le titre de la barre d'état du direct. */
html body.admin:not(#oxe) .topbar .topbar-admin:not(#oxe-a) { padding-right:0; }   /* même espace avant et après le séparateur */
html body.admin:not(#oxe) .topbar .topbar-status:not(#oxe-a) { margin-left:0; }   /* juste après le séparateur de « ADMIN » / « SUPER ADMIN » : même espace qu'avant le titre */
html body.admin:not(#oxe) .topbar:has(.topbar-page) .topbar-status:not(:empty):not(#oxe-a) { height:28px; margin-left:1px; padding-left:11px; border-left:1px solid var(--line); }

/* Barre d'état : quand la place manque, seuls les noms (chapitre en direct, intervenant en scène) se coupent avec « … », chacun gardant son libellé et un début de nom ;
   le compte à rebours et les chiffres restent entiers (2026-11-11, repris d'OxygenStage : le chapitre tombait à « E »). */
html body.admin:not(#oxe) .topbar-status .sb-item:not(#oxe-a) { flex-shrink:0; }
html body.admin:not(#oxe) .topbar-status .sb-item.sb-name:not(#oxe-a) { flex-shrink:1; min-width:8.5rem; overflow:hidden; }
html body.admin:not(#oxe) .topbar-status .sb-item.sb-name b:not(#oxe-a) { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
