/* Couleurs propres à OxygenStage (chargée par brand_head_html() sur cette plateforme seulement).
   Refonte « Régie · Nuit et cyan » (choix de l'utilisateur du 2026-11-11, maquette # CLAUDE DEV/maquettes/refonte-graphique-B-nuit-cyan.png) :
   - une seule couleur d'accent, le cyan du logo, pour tous les groupes du menu ; icônes des groupes en gris, titres des groupes bien visibles ;
   - le violet ne sert plus qu'à repérer le rôle Super admin (son nom dans l'en-tête, sa pastille dans la zone Vue, le trait sous l'en-tête)
     et la salle dans les résultats des votes et des quiz ; « à distance » prend le cyan ;
   - fonds de la régie : bleu nuit en thème sombre, gris très clair en thème clair ; chiffres alignés.
   Le rouge reste réservé au direct et aux suppressions, l'ambre à ce qui attend, le vert à ce qui est validé.
   Sélecteurs « html body.admin:not(#oxs) » : ils passent devant ceux de style.css (un identifiant dans :not() compte comme un identifiant). */

/* ---------- Thème clair ---------- */
html body.admin:not(#oxs) {
  --bg:#eef1f4; --card:#ffffff; --ink:#17212b; --muted:#5d6f7e; --line:#d7dee4; --line-strong:#c3ccd5;
  --cy:#0e6c88;        /* texte, liserés et titres en cyan (5,2:1 sur le fond doux) */
  --cy-fill:#127fa0;   /* boutons pleins, interrupteurs, pastilles (texte blanc 4,6:1) */
  --cy-bright:#1593b8; /* barres et petits repères */
  --cy-soft:#e3f3f8;
  --role:#493694;      /* rôle Super admin */
  --room:#493694;      /* 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:#14324a; --logo-mid:#0e6c88; --logo-light:#1593b8; --logo-sky:#45c6e8; --logo-blue:var(--cy-bright);
  --pf-v1:var(--cy); --pf-v1d:var(--cy); --pf-v3:var(--cy); --pf-v3d:var(--cy); --pf-v4d:var(--cy); --pf-v5:var(--cy-fill);
  --live-red:var(--cy);
  --relief:color-mix(in srgb, var(--ink) 5%, var(--card));
  /* En-têtes de blocs (niveaux 1 et 2) : neutres avec un soupçon de cyan, le liseré de gauche porte la couleur (maquette B) */
  --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(#oxs) main, html body.admin.view-super:not(#oxs) main { --accent:var(--cy-fill); --accent-soft:var(--cy-soft); }

/* ---------- Thème sombre ---------- */
@media all {
  html body.admin:not(#oxs) {
    --bg:#0e161e; --card:#142029; --ink:#e4ecf2; --muted:#8aa0b2; --line:#22313d; --line-strong:#2e4050;
    --cy:#45c6e8; --cy-fill:#127fa0; --cy-bright:#45c6e8; --cy-soft:rgba(69,198,232,.13);
    --role:#b5a8f4; --room:#b5a8f4;
    --logo-dark:#e4ecf2; --logo-mid:#45c6e8; --logo-light:#45c6e8; --logo-sky:#45c6e8;
    --relief:color-mix(in srgb, var(--ink) 7%, var(--card));
  }
  html body.admin:not(#oxs) .topbar { background:#0a1118; border-bottom-color:#1a2632; }
  html body.admin:not(#oxs) :is(.side, .side.hdr-compact) { background:#0b131a; }
}

/* ---------- Menu de gauche : icônes grises, titres des groupes en évidence, page ouverte en cyan ---------- */
html body.admin:not(#oxs) .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(#oxs) .side :is(.side-head, .side-top) { color:var(--ink); font-weight:700; }
html body.admin:not(#oxs) .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(#oxs) .side .side-top.active .side-ico,
html body.admin:not(#oxs) .side .side-group:has(.side-link.active) > .side-head .side-ico { color:var(--cy); }
html body.admin:not(#oxs) .side .side-link.active, html body.admin:not(#oxs) .side .side-link:hover { color:var(--cy); }
html body.admin:not(#oxs) .side .side-link.active { background:var(--cy-soft); box-shadow:inset 2px 0 0 var(--cy); }
html body.admin:not(#oxs) .side :is(.side-link, .side-top) .nav-badge { background:var(--cy-fill) !important; color:#fff; }
html body.admin:not(#oxs) .side .nav-live { background:var(--cy) !important; }
@keyframes oxs-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(#oxs) .side .nav-live { animation-name:oxs-dot-pulse; }
@media all {
  html body.admin:not(#oxs) .side :is(.side-group, .side-top, .demo-viewbox) { background:#111b24; border-color:#1f2c38; }
  html body.admin:not(#oxs) .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(#oxs) .side .side-link { color:#9fb2c2; }
  html body.admin:not(#oxs) .side .side-link.active, html body.admin:not(#oxs) .side .side-link:hover { color:var(--cy); }
}

/* ---------- Rôles : le violet repère seulement le Super admin ---------- */
html body.admin:not(#oxs) .side .demo-viewbox .dv-btn.v-admin { --vc:#0e6c88; }   /* le rôle Admin garde le cyan, même sur les pages « Pendant le live » (bordeaux) */
@media all { html body.admin:not(#oxs) .side .demo-viewbox .dv-btn.v-admin { --vc:#45c6e8; } }
html body.admin:not(#oxs) .side .demo-viewbox .dv-btn.v-super { --vc:var(--role); }
html body.admin.view-super:not(#oxs) { --accent:var(--cy-fill); --accent-soft:var(--cy-soft); }
html body.admin.view-super:not(#oxs) .topbar .topbar-admin { color:var(--role); }
html body.admin.view-super:not(#oxs) .topbar { border-bottom-color:var(--role); box-shadow:inset 0 -2px 0 var(--role); }

/* ---------- Pages ---------- */
html body.admin:not(#oxs) main input.toggle:checked { background:var(--cy-fill); border-color:var(--cy-fill); }
html body.admin:not(#oxs) 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(#oxs) .pv-box { border-left-color:var(--cy-bright); }
html body.admin:not(#oxs) .pv-title { color:var(--cy) !important; }
html body.admin:not(#oxs) .pv-mode.on { background:var(--cy-fill) !important; border-color:var(--cy-fill) !important; color:#fff !important; }
html body.admin:not(#oxs) .lang b { background:var(--cy-fill); }
html body.admin:not(#oxs) .tour-bar-btn.go:hover { background:var(--cy-fill); }

/* Chiffres et heures alignés (esprit régie) */
html body.admin:not(#oxs) :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(#oxs) main .qa-mod { border-left-width:3px; }
html body.admin:not(#oxs) main .qa-mod.status-approved { border-left-color:color-mix(in srgb, #22c55e 75%, var(--card)) !important; }
html body.admin:not(#oxs) main .qa-mod.status-pending { border-left-color:color-mix(in srgb, #f59e0b 85%, var(--card)) !important; }

/* Quiz et votes : cartes et « à distance » en cyan, la salle en violet */
html body.admin:not(#oxs) 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(#oxs) 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(#oxs) main .vote-card-admin .v-bar i { background:var(--cy-bright) !important; }
html body.admin:not(#oxs) 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 all { html body.admin:not(#oxs) #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(#oxs) .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(#oxs) .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(#oxs) .topbar-status .sb-item:first-child { border-left:0; padding-left:0; }
  html body.admin:not(#oxs) .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(#oxs) .topbar-status .sb-dot { width:7px; height:7px; border-radius:50%; background:#22c55e; }
  html body.admin:not(#oxs) .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(#oxs) { --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(#oxs) .topbar { --tb-bg:#1b2732; --tb-ink:#e4ecf2; --tb-muted:#a9bccb; --tb-line:#33475a; --tb-btn:#24323f; height:56px; padding:0 18px; }
@media all { html body.admin:not(#oxs) .topbar { --tb-bg:#0a1118; --tb-line:#1f2c38; --tb-btn:#142029; } }
/* Panneau du burger de droite à la couleur de la barre du haut, dans les 2 vues et les 2 thèmes (2026-11-26, demande de l'utilisateur : il était gris). */
html body.admin:not(#oxs) .mobile-panel { background:#1b2732; }
@media all { html body.admin:not(#oxs) .mobile-panel { background:#0a1118; } }
html body.admin:not(#oxs) .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(69,198,232,.16); --cy:#45c6e8;
  color:var(--tb-ink);
}
html body.admin:not(#oxs) .topbar:has(.logo-d) .logo-l { display:none !important; }
html body.admin:not(#oxs) .topbar:has(.logo-d) .logo-d { display:inline-block !important; }
html body.admin:not(#oxs) .topbar .topbar-event { height:32px; }
html body.admin:not(#oxs) .topbar .topbar-admin { font-size:.78rem; font-weight:600; letter-spacing:.07em; color:var(--muted); }
html body.admin.view-super:not(#oxs) .topbar .topbar-admin { color:var(--role); }
html body.admin.view-super:not(#oxs) .topbar:has(.logo-d) .topbar-admin { color:#b5a8f4; }
html body.admin:not(#oxs) .topbar .topbar-page { font-size:.9rem; font-weight:600; color:var(--ink); }
html body.admin:not(#oxs) .topbar .brand-sep { background:var(--line); border-color:var(--line); }
html body.admin:not(#oxs) .topbar :is(button, .button, .burger, .tour-head-btn, .lang, #side-toggle.burger) { border-radius:var(--r) !important; }
html body.admin:not(#oxs) .topbar .lang { border-color:var(--line); background:var(--card); }
html body.admin:not(#oxs) .topbar .lang :is(a, b) { border-radius:0 !important; padding:7px 10px; font-size:.78rem; }
html body.admin:not(#oxs) .topbar .lang a { color:var(--muted); }
html body.admin:not(#oxs) .topbar .lang a:hover { background:color-mix(in srgb, var(--ink) 10%, var(--card)); color:var(--ink); }
html body.admin:not(#oxs) .topbar .lang b { background:var(--cy-soft); color:var(--cy); font-weight:700; }
html body.admin:not(#oxs) .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(#oxs) .topbar .tour-head-btn:hover { background:color-mix(in srgb, var(--ink) 10%, var(--card)); }
html body.admin:not(#oxs) .topbar #side-toggle.burger, html body.admin:not(#oxs) .topbar .hdr-burger { background:transparent; }
html body.admin:not(#oxs) .topbar :is(.burger span, .hdr-burger span, .hdr-burger span::before, .hdr-burger span::after) { background:var(--ink); }
html body.admin:not(#oxs) .topbar .topbar-status { color:var(--muted); }
html body.admin:not(#oxs) .topbar .topbar-status .sb-item { border-left-color:var(--line); }
html body.admin:not(#oxs) .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(#oxs) .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(#oxs) .side, html body.admin.view-super:not(#oxs) .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 all { html body.admin:not(#oxs) .side, html body.admin.view-super:not(#oxs) .side { background:#0b131a !important; } }
html body.admin:not(#oxs) .side nav { gap:2px; }
html body.admin:not(#oxs) .side .side-gap { height:4px; }
html body.admin:not(#oxs) .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(#oxs) .side .side-group { margin-top:6px; }
html body.admin:not(#oxs) .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(#oxs) .side :is(.side-head, .side-top):hover { background:color-mix(in srgb, var(--ink) 5%, transparent) !important; }
html body.admin:not(#oxs) .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(#oxs) .side .side-ico { width:18px; height:18px; color:var(--muted) !important; }
html body.admin:not(#oxs) .side .side-items { padding:0 0 4px; }
html body.admin:not(#oxs) .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(#oxs) .side .side-link:hover { color:var(--ink) !important; background:color-mix(in srgb, var(--ink) 4%, transparent) !important; }
html body.admin:not(#oxs) .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(#oxs) .side .side-sub { font-size:.7rem; }
html body.admin:not(#oxs) .side .nav-badge { min-width:18px; height:18px; padding:0 6px; border-radius:9px; font-size:.7rem; }
html body.admin:not(#oxs) .side .demo-viewbox { padding:0 0 6px !important; gap:1px; border-bottom:1px solid var(--line) !important; margin-bottom:6px; }
html body.admin:not(#oxs) .side .demo-viewbox-label { font-size:.68rem; padding:0 8px 4px; }
html body.admin:not(#oxs) .side .demo-viewbox .dv-btn { padding:5px 8px !important; border-radius:var(--r); }
html body.admin:not(#oxs) .side .demo-viewbox .dv-btn b { font-size:.8rem; } html body.admin:not(#oxs) .side .demo-viewbox .dv-btn small { font-size:.7rem; }
html body.admin:not(#oxs) .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(#oxs) main { margin-top:14px; }
html body.admin:not(#oxs) 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(#oxs) main .card { padding:14px 16px; margin-bottom:12px; }
html body.admin:not(#oxs) main :is(.pill, .badge, .sum-chip, .adr-tag) { border-radius:3px !important; }
html body.admin:not(#oxs) :is(.pv-box, .demo-banner) { border-radius:var(--r); }

/* Titres de blocs : sans fond, un petit liseré cyan à gauche */
html body.admin:not(#oxs) :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(#oxs) 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(#oxs) main :is(details.settings-fold, .fold-box, details.gen-fold) { border:1px solid var(--line) !important; background:var(--card); }
/* Replay : les titres « Parties publiées » et « Autres enregistrements » collés à gauche, alignés sur leur description et sur « Replay en ligne » (2026-11-25) */
html body.admin:not(#oxs) main .gen-replay > h3.fold-head { padding-left:0 !important; }
html body.admin:not(#oxs) 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(#oxs) main :is(.fold-head, details.settings-fold > summary, details.gen-fold > summary)::before { color:var(--cy) !important; }
html body.admin:not(#oxs) 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(#oxs) main h2 { font-size:1.05rem; }

/* Boutons : petits, angles de 4 px */
html body.admin:not(#oxs) 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(#oxs) 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 cyan */
html body.admin:not(#oxs) main .stats-nav { background:transparent; border:0; padding:0; gap:6px; margin:4px 0 12px; }
html body.admin:not(#oxs) 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(#oxs) main .stats-nav a.on { background:var(--cy-soft); border-color:var(--cy); color:var(--cy); font-weight:600; }
html body.admin:not(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) main .badge.st-approved { color:#16855a !important; }
html body.admin:not(#oxs) main .badge.st-pending { color:#a46a00 !important; }
@media all {
  html body.admin:not(#oxs) main .badge.st-approved { color:#49c98b !important; }
  html body.admin:not(#oxs) main .badge.st-pending { color:#f0b443 !important; }
}
html body.admin:not(#oxs) 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(#oxs) 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(#oxs) main .qa-mod > :is(.qa-head, .qa-body, .qa-saved) { grid-column:1; margin:0; }
html body.admin:not(#oxs) main .qa-mod > .field { grid-column:1 / -1; margin:8px 0 0; }
html body.admin:not(#oxs) main .qa-mod > .actions { grid-column:2; grid-row:1 / span 3; align-self:center; flex-wrap:nowrap; gap:6px; }
html body.admin:not(#oxs) main .qa-mod > .actions :is(button, .button) { min-height:26px; padding:3px 9px; font-size:.76rem; font-weight:500; }
html body.admin:not(#oxs) main .qa-mod .qa-head { font-size:.74rem; color:var(--muted); font-variant-numeric:tabular-nums; }
html body.admin:not(#oxs) main .qa-mod .qa-head b { color:var(--ink); }
html body.admin:not(#oxs) main .qa-mod .qa-body { font-size:.9rem; font-weight:600; line-height:1.35; color:var(--ink); }
html body.admin:not(#oxs) 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(#oxs) main .qa-mod.status-approved { border-left-color:#16855a !important; }
html body.admin:not(#oxs) main .qa-mod.status-pending { border-left-color:#d38b06 !important; }
html body.admin:not(#oxs) main .qa-mod.status-rejected { border-left-color:color-mix(in srgb, #ef4444 60%, var(--card)) !important; }
html body.admin:not(#oxs) main .qa-mod.is-presented { background:var(--card) !important; border-color:var(--line) !important; }
@media (max-width:760px) { html body.admin:not(#oxs) 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(#oxs) .pv-box { border:1px solid var(--line) !important; background:#f7f9fa; }
@media all { html body.admin:not(#oxs) .pv-box { background:#0b131a; } }
html body.admin:not(#oxs) .pv-title { color:var(--muted) !important; font-size:.72rem; letter-spacing:.08em; }
html body.admin:not(#oxs) .pv-mode { border-radius:var(--r) !important; padding:3px 9px; font-size:.78rem; }
html body.admin:not(#oxs) .pv-mode.on { background:var(--cy-soft) !important; border-color:var(--cy) !important; color:var(--cy) !important; }
html body.admin:not(#oxs) > .demo-banner { border-radius:0; }

/* Textes des pages un peu plus petits, comme la maquette */
html body.admin:not(#oxs) main { font-size:.9rem; }
html body.admin:not(#oxs) main :is(.qa-mod .badge, .summary, .muted, .section-sub) { font-size:.76rem; }
html body.admin:not(#oxs) main :is(details.settings-fold > summary, .fold-head) .fold-sum { font-size:.72rem !important; }
html body.admin:not(#oxs) .demo-data, html body.admin:not(#oxs) 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(#oxs) { --dock-w:320px; }
@media (min-width:1100px) { html body.has-dock:not(.dock-closed):not(#oxs) .shell-main { padding-right:calc(var(--dock-w) + 4px); } }
@media (min-width:1100px) { html body.has-dock:not(.dock-closed):not(#oxs) > .demo-banner { padding-right:calc(var(--dock-w) + 20px); } } /* bandeau de la démo : ses boutons ne passent plus sous le panneau « Page du live » (correctif du 2026-11-11) */
html body.admin:not(#oxs) .pv-dock { top:56px; padding:0; }
html body.admin:not(#oxs) .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(#oxs) .topbar-status { flex:1 1 auto; }
html body.admin:not(#oxs) .topbar-status .sb-item { flex:0 1 auto; min-width:0; overflow:hidden; }
html body.admin:not(#oxs) .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(#oxs) .topbar-status .sb-item { flex:none; }
html body.admin:not(#oxs) .topbar-status .sb-item:has(.onair-dot) { flex:0 1 auto; }
html body.admin:not(#oxs) .topbar-status .sb-item:has(.onair-dot) b { overflow:hidden; text-overflow:ellipsis; }
html body.admin:not(#oxs) .topbar-status b { overflow:visible; max-width:none; }
html body.admin:not(#oxs) .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(#oxs) main .vote-card-admin .vote-voters { white-space:normal; flex-wrap:wrap; overflow-wrap:anywhere; }
html body.admin:not(#oxs) 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 cyan continu »
   choisie par l'utilisateur le 2026-11-11 (# CLAUDE DEV/maquettes/sous-blocs-3-variantes.png). Pas de cadre : un trait cyan longe tout
   le sous-bloc et son titre passe en cyan ; le bloc qui les contient garde son cadre. */
html body.admin:not(#oxs) main #reglages > form { padding:12px 14px 14px !important; }
html body.admin:not(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) main :is(details, .inline-set, .card) .fold-box > .fold-head::before { content:none !important; }
html body.admin:not(#oxs) main :is(details, .inline-set, .card) .fold-box > .fold-head:hover { background:transparent !important; }
html body.admin:not(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) main .fold-box-body .card:has(> .fold-head) > .fold-head::before { content:none !important; }
@media (max-width:900px) { html body.admin:not(#oxs) .side, html body.admin.view-super:not(#oxs) .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 cyan, titre cyan)
   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(#oxs) main :is(details, .inline-set, .card) .fold-box,
html body.admin:not(#oxs) 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(#oxs) main :is(details, .inline-set, .card) .fold-box:last-child,
html body.admin:not(#oxs) main .fold-box-body .card:has(> .fold-head):last-child { margin-bottom:0 !important; }
html body.admin:not(#oxs) main :is(details, .inline-set, .card) .fold-box > .fold-head,
html body.admin:not(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) main :is(.tmc-tag, .tmc-live, .pill, .badge) { border-radius:3px !important; }
html body.admin:not(#oxs) .pv-dock-tab { border-radius:0 var(--r) var(--r) 0 !important; }   /* onglet retourné (texte de bas en haut) : arrondis à gauche une fois tourné */
html body.admin:not(#oxs) 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 cyan 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(#oxs) 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(#oxs) 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 cyan (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(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) main table.tm-items tbody tr:nth-child(even) > td { background:color-mix(in srgb, var(--ink) 4%, var(--card)); }
html body.admin:not(#oxs) 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(#oxs) main table.t tbody tr:not(:has(th)):nth-child(odd) > td { background:var(--card); }
html body.admin:not(#oxs) 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(#oxs) main .dm-list > .dm-item:nth-child(even) { background:color-mix(in srgb, var(--ink) 4%, var(--card)); }
html body.admin:not(#oxs) 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(#oxs) 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 cyan tout autour, fond cyan léger, titre cyan (2026-11-11) */
html body.admin:not(#oxs) main .card.trombi-switch:not(#oxs-a):not(#oxs-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(#oxs) main .card.trombi-switch > strong:first-child, html body.admin:not(#oxs) 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(#oxs) main .stage-row.is-on:has(.trombi-line):not(#oxs-a):not(#oxs-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(#oxs) main .trombi-row.is-on:not(#oxs-a):not(#oxs-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(#oxs) 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 cyan 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(#oxs) main .trombi-group:not(.is-air):not(.is-on):not(#oxs-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 cyan plein » (fond cyan, texte blanc, chapitre affiché en blanc). */
html body.admin:not(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) { background:#16232e !important; border:1px solid #2a3a48 !important; border-left:3px solid #45c6e8 !important; color:#e4ecf2; padding:14px 16px !important; }
html body.admin:not(#oxs) 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(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > strong::before { content:'● '; color:#f0707c; }
html body.admin:not(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > .muted { color:#a9bccb !important; }
html body.admin:not(#oxs) 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(#oxs) 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(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) .ch-btn:not(#x4) small { color:#a9bccb !important; }
@media all {
  html body.admin:not(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) { background:var(--cy-fill) !important; border:0 !important; color:#fff; }
  html body.admin:not(#oxs) 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(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > strong::before { content:none; }
  html body.admin:not(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3) > .muted { color:rgba(255,255,255,.82) !important; }
  html body.admin:not(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) 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 all {
  html body.admin:not(#oxs) 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 cyan légère, titre cyan, chapitre affiché bordé de cyan. */
html body.admin:not(#oxs) 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(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) > strong { color:#1b2732 !important; }
html body.admin:not(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) > .muted { color:var(--muted) !important; }
html body.admin:not(#oxs) 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(#oxs) 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(#oxs) main .card.trombi-switch:not(#x1):not(#x2):not(#x3):not(#x5) .ch-btn:not(#x4) small { color:var(--muted) !important; opacity:1; }
@media all {
  html body.admin:not(#oxs) 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(#oxs) 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(#oxs) 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(#oxs) 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 all { html body.admin:not(#oxs) 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(#oxs) .topbar .topbar-title { flex:none; } }   /* sur téléphone, le titre peut toujours se raccourcir */
html body.admin:not(#oxs) .topbar .topbar-page { white-space:nowrap; }
html body.admin:not(#oxs) .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(#oxs) main .fold-box:has(> .adr-zone-part)   { --tg:#2f7fb0; } html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-salle)  { --tg:#5b45b8; }
html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-anim)   { --tg:#1f8a5b; } html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-interv) { --tg:#b45309; }
html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-regie)  { --tg:#8f7300; }
@media all {
  html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-part)   { --tg:#6cb4dc; } html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-salle)  { --tg:#b5a8f4; }
  html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-anim)   { --tg:#4cc38a; } html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-interv) { --tg:#f5994a; }
  html body.admin:not(#oxs) main .fold-box:has(> .adr-zone-regie)  { --tg:#facc15; }
}
html body.admin:not(#oxs) main .fold-box:has(> .adr-zone:not(.adr-zone-code)):not(#oxs-a) { border-left:3px solid var(--tg) !important; }
html body.admin:not(#oxs) main .fold-box > .adr-zone:not(.adr-zone-code):not(#oxs-a) { color:var(--tg) !important; }
html body.admin:not(#oxs) main .fold-box:has(> .adr-zone) .fold-box-body > .card.regie-addr:not(#oxs-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(#oxs) main .card.regie-addr.adr-card-interv { --tg:#b45309; } html body.admin:not(#oxs) main .card.regie-addr.adr-card-regie { --tg:#8f7300; }
@media all { html body.admin:not(#oxs) main .card.regie-addr.adr-card-interv { --tg:#f5994a; } html body.admin:not(#oxs) main .card.regie-addr.adr-card-regie { --tg:#facc15; } }
html body.admin:not(#oxs) main .card.regie-addr.adr-card:not(#oxs-a):not(#oxs-b) { border-left:2px solid var(--tg) !important; }
html body.admin:not(#oxs) main .tm-links { display:grid; gap:10px; }
html body.admin:not(#oxs) main .tm-links > .card:not(#oxs-a):not(#oxs-b) { margin:0 !important; }

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

/* Nom « Super admin » au bleu de STAGE du logo officiel, #1193b8, en clair comme en sombre (choix de l'utilisateur, 2026-11-11) :
   barre du haut (nom et trait du bas, 2026-11-11) et zone « Vue » du menu. */
html body.admin:not(#oxs) { --stage-bleu:#1193b8; }
@media all { html body.admin:not(#oxs) { --stage-bleu:#1193b8; } }
html body.admin.view-super:not(#oxs) .topbar .topbar-admin:not(#oxs-a), html body.admin.view-super:not(#oxs) .topbar:has(.logo-d) .topbar-admin:not(#oxs-a) { color:#1193b8; }
html body.admin:not(#oxs) .side .demo-viewbox .dv-btn.v-super:not(#oxs-a) { --vc:var(--stage-bleu); }
html body.admin.view-super:not(#oxs) .topbar:not(#oxs-a) { border-bottom-color:#1193b8 !important; box-shadow:inset 0 -2px 0 #1193b8 !important; }

/* « Pendant le live » en bordeaux (choix de l'utilisateur, 2026-11-11) : icône et page ouverte du groupe, titres, liserés et boutons de ses pages.
   Le rouge vif reste réservé au direct et aux suppressions. */
html body.admin:not(#oxs) { --live-red:#a3263a; }
@media all { html body.admin:not(#oxs) { --live-red:#c24d5f; } }
html body.admin:not(#oxs) .side .g-live { --gc:var(--live-red); }
html body.admin:not(#oxs) .side .g-live .side-ico { color:var(--live-red) !important; }
html body.admin:not(#oxs) .side .g-live .side-link.active:not(#oxs-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(#oxs) { --pc:var(--live-red) !important; --pcf:var(--live-red) !important; --cy:var(--live-red); }

/* Barre du haut : un trait entre le titre de la page (ex. « Régie ») et la barre d'état du direct, comme entre le logo, « Super admin » et le titre (2026-11-11, demande de l'utilisateur). */
html body.admin:not(#oxs) .topbar .topbar-admin:not(#oxs-a) { padding-right:0; }
html body.admin:not(#oxs) .topbar .topbar-status:not(#oxs-a) { margin-left:0; }
html body.admin:not(#oxs) .topbar:has(.topbar-page) .topbar-status:not(:empty):not(#oxs-a) { height:28px; margin-left:1px; padding-left:11px; border-left:1px solid var(--line); }   /* trait toujours après « Admin » et « Super admin », 11 px de part et d'autre de chaque trait, avec ou sans titre de page */

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

/* ---------- Essais hors des jours de live (CGV 7.2 à 7.4, 2026-11-16) : décompte en ambre, jour bloqué en rouge, sous l'en-tête ---------- */
html body.admin:not(#oxs) .vente-essai:empty { display:none; }
html body.admin:not(#oxs) .vente-essai { margin:0 0 6px; }
html body.admin:not(#oxs) .vente-essai .ve { margin:0 0 10px; padding:10px 14px; border:1px solid; border-left-width:4px; border-radius:4px; font-size:.92rem; line-height:1.55; }
html body.admin:not(#oxs) .vente-essai .ve-decompte { background:#fffbeb; border-color:#f59e0b; color:#78350f; }
html body.admin:not(#oxs) .vente-essai .ve-bloque { background:#fef2f2; border-color:#dc2626; color:#7f1d1d; }
html body.admin:not(#oxs) .vente-essai .ve-cd { font-variant-numeric:tabular-nums; font-size:1.05em; white-space:nowrap; }
html body.admin:not(#oxs) .vente-essai .ve-urgence { display:inline-block; margin:2px 2px 0 4px; padding:3px 12px; border:0; border-radius:4px; background:#dc2626; color:#fff; font-weight:600; font-size:.85rem; text-decoration:none; }
html body.admin:not(#oxs) .vente-essai .ve-urgence:hover { background:#b91c1c; }
html body.admin:not(#oxs) .vente-essai .ve-tel { white-space:nowrap; }
@media all {
  html body.admin:not(#oxs) .vente-essai .ve-decompte { background:#2b2108; border-color:#b45309; color:#fcd34d; }
  html body.admin:not(#oxs) .vente-essai .ve-bloque { background:#2c1212; border-color:#dc2626; color:#fca5a5; }
}

/* Lecteur vidéo des pages de live et des replays (2026-11-16, choix de l'utilisateur « C : petit triangle seul ») : bouton de lecture
   central sans fond, plus petit (56 px, toujours facile à toucher), avec une ombre pour rester lisible sur une image claire.
   Sous 470 px de large (téléphone), le lecteur montre un autre bouton central (lecture et pause, 40 px sans fond) : la même règle le porte à 56 px.
   La couleur d'accent (cyan du logo) est posée par la plateforme : player_accent() dans lib/platform.php. */
mux-player::part(center play button) { width:56px; height:56px; padding:12px; --media-control-background:transparent; --media-control-hover-background:transparent; filter:drop-shadow(0 2px 6px rgb(0 0 0 / .55)); transition:transform .15s ease; }
mux-player::part(center play button):hover { transform:scale(1.12); }
