/* ============================================================
   GNOSIS — v258 : focus.css
   1. L'écran de choix du style (papier découpé / Focus) : neutre, il
      s'affiche dans les deux styles.
   2. Le mode FOCUS : TOUTES les règles sont sous
      html[data-skin="focus"][data-theme] — en papier découpé, rien de ce
      qui suit ne s'applique. Sobre et concentré : noir profond (ou gris très
      pâle en clair), cartes à bord fin, un seul vert vif, des anneaux,
      chiffres en police technique, aucun décor ni papier.
   Le papier découpé reste dans styles.css ; ce fichier ne le touche pas.
   ============================================================ */

/* ============================================================
   1. LE CHOIX DU STYLE
   ============================================================ */
.gx-choice {
  --c-bg: #F4F5F7; --c-card: #FFFFFF; --c-ink: #14151A; --c-mut: #5D6070; --c-line: #E2E4EA; --c-sel: #14151A; --c-go: #14151A; --c-on-go: #FFFFFF;
  position: fixed; inset: 0; z-index: 10050; background: var(--c-bg); color: var(--c-ink);
  font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 16px calc(18px + env(safe-area-inset-bottom, 0px));
  opacity: 0; transition: opacity .35s ease; box-sizing: border-box;
}
html[data-theme="noir"] .gx-choice { --c-bg: #0E0F12; --c-card: #17181D; --c-ink: #F2F2F5; --c-mut: #A3A6B2; --c-line: #2A2C33; --c-sel: #F2F2F5; --c-go: #F2F2F5; --c-on-go: #0E0F12; }
.gx-choice.on { opacity: 1; }
html.gx-choosing, html.gx-choosing body { overflow: hidden !important; }
html.gx-reskin body { opacity: 0; transition: opacity .2s; }
.gxc-in { width: 100%; max-width: 760px; margin: auto 0; position: relative; display: flex; flex-direction: column; gap: 16px; transform: translateY(10px); transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.gx-choice.on .gxc-in { transform: none; }
.gxc-head h1 { font-weight: 700 !important; font-size: 26px; line-height: 1.15; font-family: inherit !important; letter-spacing: -.02em !important; margin: 6px 40px 6px 0; }
.gxc-head p { margin: 0; color: var(--c-mut); font-weight: 500; font-size: 14.5px; line-height: 1.45; font-family: inherit; max-width: 56ch; }
.gxc-x { position: absolute; top: 0; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--c-line); background: var(--c-card); color: var(--c-ink); display: grid; place-items: center; cursor: pointer; }
.gxc-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gxc-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gxc-opt { display: flex; flex-direction: column; gap: 0; padding: 0; border: 1.5px solid var(--c-line); border-radius: 20px; background: var(--c-card); color: inherit; cursor: pointer; text-align: left; overflow: hidden;
  font: inherit; transition: border-color .2s, box-shadow .2s, transform .2s; -webkit-tap-highlight-color: transparent; }
.gxc-opt:active { transform: scale(.985); }
.gxc-opt[aria-pressed="true"] { border-color: var(--c-sel); box-shadow: 0 0 0 2px var(--c-sel); }
.gx-choice :focus { outline: none !important; }
.gx-choice :focus-visible { outline: 3px solid #3D7BFF !important; outline-offset: 2px; }
.gxc-prev { display: block; background: var(--c-bg); padding: 12px 12px 0; border-bottom: 1px solid var(--c-line); }
.gxc-ph { display: block; width: 100%; max-width: 200px; margin: 0 auto; aspect-ratio: 1 / 1.62; overflow: hidden; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 1px var(--c-line), 0 8px 24px rgba(0, 0, 0, .08); }
.gxc-svg { width: 100%; height: auto; display: block; }
.gxc-id { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 12px 12px 14px; }
.gxc-ico { width: 44px; height: 44px; display: block; border-radius: 22.5%; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.gxc-ico svg { width: 100%; height: 100%; display: block; }
.gxc-tx b { display: block; font-weight: 700; font-size: 16px; line-height: 1.2; font-family: inherit; }
.gxc-tx small { display: block; margin-top: 3px; color: var(--c-mut); font-weight: 500; font-size: 12.5px; line-height: 1.35; font-family: inherit; }
.gxc-tick { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--c-line); display: grid; place-items: center; align-self: start; }
.gxc-tick svg { width: 16px; height: 16px; fill: none; stroke: var(--c-on-go); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.gxc-opt[aria-pressed="true"] .gxc-tick { background: var(--c-sel); border-color: var(--c-sel); }
.gxc-opt[aria-pressed="true"] .gxc-tick svg { opacity: 1; }
.gx-choice .gxc-tick svg.fx-i, .gx-choice .gxc-x svg.fx-i { fill: none !important; stroke-width: 2.6; }
.gx-choice .gxc-tick svg.fx-i { stroke: var(--c-on-go) !important; }
.gx-choice .gxc-x svg.fx-i { stroke: var(--c-ink) !important; width: 18px; height: 18px; }
.gxc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.gxc-th { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--c-card); border: 1px solid var(--c-line); font-weight: 600; font-size: 13px; font-family: inherit; }
.gxc-th > span { padding: 0 8px 0 10px; color: var(--c-mut); }
.gxc-th button { border: 0; background: none; color: var(--c-ink); font-weight: 600; font-size: 13px; font-family: inherit; padding: 8px 12px; border-radius: 999px; cursor: pointer; min-height: 36px; }
.gxc-th button[aria-pressed="true"] { background: var(--c-sel); color: var(--c-on-go); }
.gxc-go { min-height: 50px; padding: 0 28px; border: 0; border-radius: 999px; background: var(--c-go); color: var(--c-on-go); font-weight: 700; font-size: 16px; font-family: inherit; cursor: pointer; flex: 1 1 200px; max-width: 320px; margin-left: auto; transition: opacity .2s, transform .2s; }
.gxc-go:disabled { opacity: .35; cursor: default; }
.gxc-go:not(:disabled):active { transform: scale(.97); }
@media (max-width: 520px) {
  .gxc-head h1 { font-size: 23px; }
  .gxc-opts { gap: 10px; }
  .gxc-prev { padding: 8px 8px 0; }
  .gxc-id { grid-template-columns: 1fr auto; padding: 10px 10px 12px; }
  .gxc-ico { width: 34px; height: 34px; grid-row: 1; grid-column: 1; }
  .gxc-tx { grid-column: 1 / -1; }
  .gxc-tick { grid-row: 1; grid-column: 2; }
  .gxc-tx small { font-size: 12px; }
  .gxc-go { flex-basis: 100%; max-width: none; }
  .gxc-foot { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .gx-choice, .gxc-in { transition: none; } }

/* ============================================================
   2. FOCUS — les jetons
   ============================================================ */
html[data-skin="focus"][data-theme] {
  --fx-bg: #F3F4F6; --fx-card: #FFFFFF; --fx-card2: #EEEFF2; --fx-line: #E5E6EB; --fx-line2: #D9DAE0;
  --fx-ink: #111113; --fx-mut: #5E5E66; --fx-faint: #8A8A93;
  --fx-acc: #5B9A00; --fx-fill: #C2F25C; --fx-on-fill: #0B0B0C; --fx-cyan: #0E9FD0; --fx-amber: #E08E00;
  --fx-veil: rgba(9, 9, 11, .28); --fx-sh: 0 1px 2px rgba(17, 17, 19, .04), 0 8px 24px rgba(17, 17, 19, .05);
  --fx-r: 20px; --fx-r-sm: 14px;
  --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --display: var(--sans); --serif: var(--sans); --read: var(--sans);
  --mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, 'DejaVu Sans Mono', monospace;

  --pp-bg: var(--fx-bg); --pp-surface: var(--fx-card); --pp-surface-2: var(--fx-card2);
  --pp-strong: #111113; --pp-on-strong: #FFFFFF; --pp-ink: var(--fx-ink); --pp-muted: var(--fx-mut); --pp-faint: var(--fx-faint);
  --pp-line: var(--fx-line); --pp-btn: #111113; --pp-on-btn: #FFFFFF; --pp-pop: var(--fx-fill); --pp-on-pop: #0B0B0C;
  --pp-good: #16A34A; --pp-bad: #DC2626; --pp-laurel: var(--fx-acc); --pp-online: #22C55E;
  --pp-bar: var(--fx-card); --pp-side: var(--fx-card); --pp-ring: var(--fx-bg);
  --paper-shadow: transparent; --paper-shadow-2: transparent; --paper-sh: none; --paper-sh-sm: none; --paper-sh-lg: none;
  --sheet: transparent; --paper-edge: var(--fx-line); --pp-sticker: none; --pp-sticker-lg: none;
  --r-paper: var(--fx-r); --r-paper-sm: var(--fx-r-sm); --ease-paper: cubic-bezier(.22, 1, .36, 1); --spring: cubic-bezier(.22, 1, .36, 1);
  --mq-shadow: transparent; --mq-edge: transparent; --ink: var(--fx-ink);
  --t-olive: color-mix(in srgb, var(--fx-acc) 12%, var(--fx-card)); --t-saffron: color-mix(in srgb, var(--fx-fill) 30%, var(--fx-card));
  --t-indigo: var(--fx-card2); --t-pome: color-mix(in srgb, #DC2626 10%, var(--fx-card)); --t-sky: var(--fx-card2); --t-violet: var(--fx-card2);
  --band-bg: var(--fx-bg);
  color-scheme: light;
}
html[data-skin="focus"][data-theme="noir"] {
  --fx-bg: #09090B; --fx-card: #131316; --fx-card2: #1C1C20; --fx-line: #1F1F23; --fx-line2: #27272A;
  --fx-ink: #F4F4F5; --fx-mut: #A1A1AA; --fx-faint: #71717A;
  --fx-acc: #B8F34A; --fx-fill: #B8F34A; --fx-on-fill: #0B0B0C; --fx-cyan: #4CC9F0; --fx-amber: #F7B32B;
  --fx-veil: rgba(0, 0, 0, .6); --fx-sh: none;
  --pp-strong: #27272A; --pp-on-strong: #F4F4F5; --pp-btn: #F4F4F5; --pp-on-btn: #09090B;
  --pp-good: #4ADE80; --pp-bad: #F87171; --pp-online: #4ADE80;
  --t-pome: color-mix(in srgb, #F87171 14%, var(--fx-card));
  color-scheme: dark;
}
/* les teintes des contenus : vives, et en sombre des fonds tirés du noir */
html[data-skin="focus"][data-theme="noir"] {
  --c-muses-pastel: color-mix(in srgb, var(--c-muses) 18%, #131316); --c-promethee-pastel: color-mix(in srgb, var(--c-promethee) 18%, #131316);
  --c-hephaistos-pastel: color-mix(in srgb, var(--c-hephaistos) 18%, #131316); --c-chiron-pastel: color-mix(in srgb, var(--c-chiron) 18%, #131316);
  --c-dedale-pastel: color-mix(in srgb, var(--c-dedale) 18%, #131316); --c-palestre-pastel: color-mix(in srgb, var(--c-palestre) 18%, #131316);
  --c-mnemo-pastel: color-mix(in srgb, var(--c-mnemo) 18%, #131316); --c-arene-pastel: color-mix(in srgb, var(--c-arene) 18%, #131316);
  --c-relais-pastel: color-mix(in srgb, var(--c-relais) 18%, #131316); --c-olympe-pastel: color-mix(in srgb, var(--c-olympe) 18%, #131316);
  --c-accueil-pastel: color-mix(in srgb, var(--c-accueil) 18%, #131316); --c-social-pastel: color-mix(in srgb, var(--c-social) 18%, #131316);
  --c-cours-pastel: color-mix(in srgb, var(--c-cours) 18%, #131316); --c-outils-pastel: color-mix(in srgb, var(--c-outils) 18%, #131316);
  --c-profil-pastel: color-mix(in srgb, var(--c-profil) 18%, #131316);
}
html[data-skin="focus"][data-theme] { --c-palestre: #4C6EF5; --c-relais: #D6409F; }

/* ============================================================
   3. FOCUS — la page : ni papier, ni décor, ni rotation
   ============================================================ */
html[data-skin="focus"][data-theme], html[data-skin="focus"][data-theme] body { background: var(--fx-bg) !important; }
html[data-skin="focus"][data-theme] body { font-family: var(--sans); font-weight: 450; color: var(--fx-ink); word-spacing: .1em; }
html[data-skin="focus"][data-theme] ::selection { background: var(--fx-fill); color: #0B0B0C; }
html[data-skin="focus"][data-theme] :where(h1, h2, h3, .modal-head h3, .page-head h2, .page-head h1, .pp-hello, .pp-sec-t, .eng-h, .nask-h, .nset-h, .home-pane.tone .hero h2, #courseTitle, .mod-title h3, .content h1, .content h2, .content h3, .wel-foot p) {
  font-family: var(--sans) !important; font-weight: 650 !important; letter-spacing: -.02em !important;
}
html[data-skin="focus"][data-theme] .pbg, html[data-skin="focus"][data-theme] .gx-deco, html[data-skin="focus"][data-theme] .gx-backdrop,
html[data-skin="focus"][data-theme] .gx-deco-host, html[data-skin="focus"][data-theme] .gx-backdrop-host, html[data-skin="focus"][data-theme] .gx-tabind,
html[data-skin="focus"][data-theme] .eng-card::after, html[data-skin="focus"][data-theme] .gx-bubble::before, html[data-skin="focus"][data-theme] .gx-bubble .tail { display: none !important; }
/* rien ne penche, rien ne se soulève comme une feuille */
html[data-skin="focus"][data-theme] :is(.wel-card, .tool-card, .course-card, .tree-card, .pp-master, .gx-trow, .gx-mcard, .gx-reply, .btn, .gx-aobj, .eng-min, .eng-day, .oly-card, .rv) { rotate: none !important; translate: none !important; }
html[data-skin="focus"][data-theme] .rv.pre { transform: translateY(10px) !important; opacity: 0; transition: transform .5s var(--ease-paper), opacity .5s; }
html[data-skin="focus"][data-theme] .rv { transition: transform .5s var(--ease-paper), opacity .5s; }
@supports (animation-timeline: view()) {
  html[data-skin="focus"][data-theme] :is(.wel-card, .tool-card, .module, .course-card, .tree-card, .wel-step, .eng-card, .pp-master, .notif-item) { animation: fxPose linear both !important; animation-timeline: view() !important; animation-range: entry 0% entry 45% !important; }
}
@keyframes fxPose { from { opacity: .4; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* le compagnon du coin n'existe pas en Focus : Atlas parle en une ligne (.fx-say) */
html[data-skin="focus"][data-theme] #gnMascot, html[data-skin="focus"][data-theme] .gn-mascot { display: none !important; }

/* ---------- les cartes : un bord fin, un coin régulier ---------- */
html[data-skin="focus"][data-theme] :is(.module, .atlas-feed, .pp-tile, .pp-master, .wel-step, .chiron-tutor, .profile-card, .node-gate, .auth-gate, .course-card, .tree-card, .empty, .lb-row, .pantheon-row,
  .social-seg, .node-bar-b, .mobile-settings, .xp-panel, .notif-item, .notif-row, .eng-card, .wel-tools li, .cs-list, .gen-box, .pth-self, .pth-list, .legal-card, .st-card, .st-tile, .profile-libnote, .gx-lsec) {
  background: var(--fx-card) !important; border: 1px solid var(--fx-line) !important; box-shadow: var(--fx-sh) !important; border-radius: var(--fx-r) !important;
}
html[data-skin="focus"][data-theme] :is(.wel-card, .tool-card, .course-head, .wel-olympe, .pp-serie, .pp-rang, .wel-hero, .wel-foot, .home-pane.tone .hero) {
  border-radius: var(--fx-r) !important; box-shadow: none !important;
}
html[data-skin="focus"][data-theme] .home-pane.tone .hero, html[data-skin="focus"][data-theme] .course-head { background: var(--fx-card) !important; border: 1px solid var(--fx-line) !important; color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] .home-pane.tone .hero :is(h2, p, label, .hint, small, span:not(.btn *)) { color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] .course-head :is(h1, h2, p, .meta, small, span) { color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] .course-head { border-left: 4px solid var(--accent) !important; }
html[data-skin="focus"][data-theme] :is(.icon-btn, .node-back, .modal-x, #docBar .doc-back, .doc-back, .back-btn, .chat-back) {
  background: var(--fx-card) !important; border: 1px solid var(--fx-line) !important; box-shadow: none !important; border-radius: 12px !important; color: var(--fx-ink) !important;
}
html[data-skin="focus"][data-theme] .modal { background: var(--fx-card) !important; border: 1px solid var(--fx-line) !important; border-radius: 24px !important; box-shadow: 0 30px 80px rgba(0, 0, 0, .35) !important; }
html[data-skin="focus"][data-theme] .modal-backdrop { background: var(--fx-veil) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- les boutons ---------- */
html[data-skin="focus"][data-theme] .btn { border-radius: 999px !important; font-weight: 650 !important; box-shadow: none !important; transition: transform .15s, background .2s, opacity .2s; }
html[data-skin="focus"][data-theme] .btn:active:not(:disabled) { transform: scale(.97) !important; }
html[data-skin="focus"][data-theme] :is(.btn-primary, .tone .btn-primary) { background: var(--fx-fill) !important; color: var(--fx-on-fill) !important; border: 0 !important; }
html[data-skin="focus"][data-theme] .btn-ghost, html[data-skin="focus"][data-theme] .tone .btn-ghost, html[data-skin="focus"][data-theme] .course-head .btn-ghost, html[data-skin="focus"][data-theme] .home-pane.tone .hero .btn-ghost {
  background: var(--fx-card2) !important; color: var(--fx-ink) !important; border: 1px solid var(--fx-line2) !important;
}
html[data-skin="focus"][data-theme] .btn-danger { background: var(--pp-bad) !important; color: #fff !important; border: 0 !important; }
html[data-skin="focus"][data-theme] .chip { border-radius: 999px !important; background: var(--fx-card2) !important; border: 1px solid var(--fx-line2) !important; color: var(--fx-ink) !important; box-shadow: none !important; }
html[data-skin="focus"][data-theme] :is(.chip.on, .chip.active, .chip[aria-pressed="true"], .chip.sel) { background: var(--fx-ink) !important; color: var(--fx-bg) !important; border-color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), textarea, select, .cs-trigger) {
  background: var(--fx-card) !important; border: 1px solid var(--fx-line2) !important; border-radius: var(--fx-r-sm) !important; box-shadow: none !important; color: var(--fx-ink) !important;
}
html[data-skin="focus"][data-theme] :is(input, textarea, select):focus { border-color: var(--fx-acc) !important; outline: 2px solid color-mix(in srgb, var(--fx-acc) 35%, transparent) !important; outline-offset: 0; }
html[data-skin="focus"][data-theme] .home-pane.tone .hero :is(textarea, input:not([type="checkbox"]):not([type="radio"]), select, .cs-trigger) { background: var(--fx-bg) !important; color: var(--fx-ink) !important; border-color: var(--fx-line2) !important; }
html[data-skin="focus"][data-theme] input[type=range] { accent-color: var(--fx-acc); }

/* ============================================================
   4. FOCUS — l'en-tête
   ============================================================ */
html[data-skin="focus"][data-theme] .gx-top { background: color-mix(in srgb, var(--fx-bg) 88%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
html[data-skin="focus"][data-theme].gx-scrolled .gx-top { box-shadow: 0 1px 0 var(--fx-line); }
/* le logo : écrit dans la page en globe de papier ; en Focus il est remplacé
   dès le premier pixel par l'anneau-G (le dessin d'origine est caché) */
html[data-skin="focus"][data-theme] .gx-logo { width: 30px; height: 30px; border-radius: 22.5%; overflow: hidden; transform: none !important;
  background: #09090B url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%231F2A12' stroke-width='12'/%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23B8F34A' stroke-width='12' stroke-linecap='round' stroke-dasharray='147 188.5' transform='rotate(-10 50 50)'/%3E%3Cpath d='M51 50h22' stroke='%23B8F34A' stroke-width='12' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
html[data-skin="focus"][data-theme] .gx-logo > svg { display: none !important; }
html[data-skin="focus"][data-theme] .gx-word { font: 600 13px var(--mono); letter-spacing: .34em; color: var(--fx-mut); }
html[data-skin="focus"][data-theme] .gx-word i { transform: none !important; }
html[data-skin="focus"][data-theme] .gx-chip, html[data-skin="focus"][data-theme] .gx-login { font: 600 13px/1 var(--mono); color: var(--fx-ink); background: transparent; border-radius: 999px; padding: 7px 8px; }
html[data-skin="focus"][data-theme] .gx-chip .gx-ic { width: 17px; height: 17px; }
html[data-skin="focus"][data-theme] .gx-serie .gx-ic { color: var(--fx-amber); }
html[data-skin="focus"][data-theme] .gx-xp .gx-ic { color: var(--fx-acc); }
html[data-skin="focus"][data-theme] :is(.gx-bell, .gx-son) .gx-ic { color: var(--fx-mut); }
html[data-skin="focus"][data-theme] .gx-login { background: var(--fx-fill); color: #0B0B0C; font-family: var(--sans); font-weight: 700; padding: 9px 14px; }
html[data-skin="focus"][data-theme] .gx-badge { clip-path: none; border-radius: 9px; background: var(--pp-bad); top: -2px; right: -2px; }
html[data-skin="focus"][data-theme] .gx-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--fx-card2); border: 1px solid var(--fx-line2); color: var(--fx-ink); font: 650 14px var(--sans); }
html[data-skin="focus"][data-theme] .gx-avatar img { width: 100%; height: 100%; border-radius: 50%; clip-path: none; }
html[data-skin="focus"][data-theme] .bump { animation: fxBump .5s var(--ease-paper); }
@keyframes fxBump { 35% { transform: scale(1.18); } }

/* les icônes au trait (focus.js) */
html[data-skin="focus"][data-theme] svg.fx-i { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html[data-skin="focus"][data-theme] .gx-son.off .wave { opacity: .2; }

/* ============================================================
   5. FOCUS — la barre du bas : une capsule, l'anneau d'Atlas au milieu
   ============================================================ */
html[data-skin="focus"][data-theme] .bottom-nav.gx-nav, html[data-skin="focus"][data-theme] .bottom-nav.gx-nav:not(.paper) {
  background: color-mix(in srgb, var(--fx-card) 92%, transparent) !important; border: 1px solid var(--fx-line2) !important; border-radius: 24px !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12) !important; height: 64px;
}
html[data-skin="focus"][data-theme="noir"] .bottom-nav.gx-nav { box-shadow: 0 10px 30px rgba(0, 0, 0, .5) !important; }
html[data-skin="focus"][data-theme] .gx-nav .gx-nav-it { color: var(--fx-faint); font: 600 10px/1.1 var(--sans); gap: 4px; }
html[data-skin="focus"][data-theme] .gx-nav .gx-ic, html[data-skin="focus"][data-theme] .gx-nav .gx-ic svg { width: 23px; height: 23px; }
html[data-skin="focus"][data-theme] .gx-nav .gx-nav-it.on { color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-nav .gx-nav-it.on .gx-ic svg { transform: none; }
html[data-skin="focus"][data-theme] .gx-nav .gx-nav-it.on .gx-lb::after { content: ''; display: block; width: 4px; height: 4px; border-radius: 50%; background: var(--fx-acc); margin: 3px auto 0; }
html[data-skin="focus"][data-theme] .gx-nav .gx-nav-it.on .gx-lb { color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-orb { width: 48px; height: 48px; margin-top: 0; filter: none; color: var(--fx-acc); }
html[data-skin="focus"][data-theme] .gx-orb svg { width: 48px; height: 48px; }
html[data-skin="focus"][data-theme] .fx-orb-c { fill: color-mix(in srgb, var(--fx-acc) 10%, transparent); stroke: var(--fx-acc); stroke-width: 2; }
html[data-skin="focus"][data-theme] .gx-nav-atlas .gx-lb { display: none; }
html[data-skin="focus"][data-theme] .gx-nav-atlas:hover .gx-orb { transform: scale(1.05); }
html[data-skin="focus"][data-theme] .gx-nav-atlas:active .gx-orb { transform: scale(.92); }
html[data-skin="focus"][data-theme].gx-sheet-open .gx-orb .fx-orb-c { fill: var(--fx-acc); }
html[data-skin="focus"][data-theme].gx-sheet-open .gx-orb { color: var(--fx-on-fill); }
@media (max-width: 900px) { html[data-skin="focus"][data-theme].gx-down .bottom-nav.gx-nav { transform: translateY(4px); } }

/* ============================================================
   6. FOCUS — Atlas parle : une bulle sobre, une ligne au-dessus de la barre
   ============================================================ */
html[data-skin="focus"][data-theme] .gx-bubble { filter: none; color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-bubble .bp { clip-path: none !important; background: transparent; padding: 0; font: 450 15px/1.5 var(--sans); }
html[data-skin="focus"][data-theme] .gx-bubble .who { font: 600 11px var(--mono); letter-spacing: .14em; color: var(--fx-acc); margin-bottom: 4px; }
html[data-skin="focus"][data-theme] .gx-bubble.pop { animation: fxFade .35s ease-out; }
@keyframes fxFade { from { opacity: .3; transform: translateY(4px); } }
html[data-skin="focus"][data-theme] .gx-replies { gap: 7px; }
html[data-skin="focus"][data-theme] .gx-reply { background: var(--fx-card); border: 1px solid var(--fx-line2); border-radius: 999px; padding: 8px 13px; min-height: 38px; font: 550 13.5px/1.2 var(--sans); color: var(--fx-ink); transition: background .2s, transform .15s; }
html[data-skin="focus"][data-theme] .gx-reply:hover { transform: none; background: var(--fx-card2); }
html[data-skin="focus"][data-theme] .gx-reply:active { transform: scale(.96); }
html[data-skin="focus"][data-theme] .gx-reply.gx-reply-set { background: var(--fx-ink); color: var(--fx-bg) !important; border-color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-reply-set .gx-ic { color: var(--fx-acc); }
html[data-skin="focus"][data-theme] .gx-reply-back { background: var(--fx-card2); }
.fx-say { display: none; }
html[data-skin="focus"][data-theme] .fx-say {
  display: flex; align-items: flex-start; gap: 9px; position: fixed; z-index: 70; left: 50%; width: min(560px, calc(100vw - 24px)); box-sizing: border-box;
  bottom: calc(var(--bn-shift, 0px) + max(12px, env(safe-area-inset-bottom, 0px)) + 64px + 10px);
  padding: 11px 14px; border-radius: 16px; border: 1px solid var(--fx-line2); background: color-mix(in srgb, var(--fx-card) 94%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 12px 30px rgba(0, 0, 0, .14);
  color: var(--fx-ink); font: 450 14px/1.45 var(--sans); text-align: left; cursor: pointer;
  transform: translate(-50%, 14px); opacity: 0; pointer-events: none; transition: transform .35s var(--ease-paper), opacity .25s;
}
html[data-skin="focus"][data-theme] .fx-say.on { transform: translate(-50%, 0); opacity: 1; pointer-events: auto; }
html[data-skin="focus"][data-theme] .fx-say i { width: 8px; height: 8px; border-radius: 50%; background: var(--fx-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-acc) 18%, transparent); margin-top: 6px; flex: 0 0 auto; }
html[data-skin="focus"][data-theme] .fx-say-w { font: 600 11px/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-acc); flex: 0 0 auto; }
html[data-skin="focus"][data-theme].gx-sheet-open .fx-say, html[data-skin="focus"][data-theme].gx-modal .fx-say { opacity: 0 !important; pointer-events: none !important; }
@media (min-width: 901px) { html[data-skin="focus"][data-theme] .fx-say { bottom: calc(18px + 64px + 10px); } }

/* ============================================================
   7. FOCUS — le « pantin » : un anneau et le symbole du maître
   ============================================================ */
html[data-skin="focus"][data-theme] .gx-slot > svg.pp, html[data-skin="focus"][data-theme] .pp-host > svg.fx-pup { filter: none; overflow: visible; }
html[data-skin="focus"][data-theme] svg.fx-pup { display: block; overflow: visible; color: var(--fx-c); }
html[data-skin="focus"][data-theme] .fx-pup-bg { fill: color-mix(in srgb, var(--fx-c) 12%, var(--fx-card)); }
html[data-skin="focus"][data-theme] .fx-pup-trk { fill: none; stroke: color-mix(in srgb, var(--fx-c) 22%, transparent); stroke-width: 4; }
html[data-skin="focus"][data-theme] .fx-pup-arc { fill: none; stroke: var(--fx-c); stroke-width: 4.5; stroke-linecap: round; transform-box: view-box; transform-origin: 50px 50px; transform: rotate(-90deg); transition: stroke-dasharray .5s; }
html[data-skin="focus"][data-theme] .fx-pup-g { fill: none; stroke: var(--fx-c); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transform-box: view-box; }
html[data-skin="focus"][data-theme] svg.fx-pup { transform-box: fill-box; transform-origin: 50% 50%; }
html[data-skin="focus"][data-theme] .fx-pup.fx-talk .fx-pup-arc { animation: fxSpinA 1.6s linear infinite; }
html[data-skin="focus"][data-theme] .fx-pup.fx-a-in { animation: fxIn .55s var(--ease-paper) both; }
html[data-skin="focus"][data-theme] .fx-pup.fx-a-nod { animation: fxNod .7s var(--ease-paper); }
html[data-skin="focus"][data-theme] .fx-pup.fx-a-joy { animation: fxJoy 1.1s var(--ease-paper); }
html[data-skin="focus"][data-theme] .fx-pup.fx-a-joy .fx-pup-arc { animation: fxSpinA .9s cubic-bezier(.3, 0, .2, 1); }
html[data-skin="focus"][data-theme] .fx-pup.fx-a-work .fx-pup-arc, html[data-skin="focus"][data-theme] .working svg.fx-pup .fx-pup-arc, html[data-skin="focus"][data-theme] .gv-char svg.fx-pup .fx-pup-arc { animation: fxSpinA 1.1s linear infinite; }
html[data-skin="focus"][data-theme] .fx-pup.fx-sleep { opacity: .55; }
@keyframes fxSpin { to { transform: rotate(360deg); } }
@keyframes fxSpinA { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
@keyframes fxIn { from { opacity: 0; transform: scale(.8); } }
@keyframes fxNod { 40% { transform: translateY(-3px); } }
@keyframes fxJoy { 25% { transform: scale(1.1); } 55% { transform: scale(.97); } }
/* les emplacements des pantins : de petits anneaux, plus de scènes */
html[data-skin="focus"][data-theme] .gx-slot > svg.pp { position: absolute; inset: auto; left: 0; top: 0; width: 100%; height: 100%; }
html[data-skin="focus"][data-theme] .pp-host.pp-atlas-host, html[data-skin="focus"][data-theme] .pp-master-host { display: block; }
html[data-skin="focus"][data-theme] .page-god { width: 52px !important; height: 52px !important; top: 0 !important; }
html[data-skin="focus"][data-theme] .page-god::after { background: var(--fx-fill) !important; color: #0B0B0C !important; box-shadow: none !important; }
html[data-skin="focus"][data-theme] .pg-atlas { width: 44px; height: 44px; }
html[data-skin="focus"][data-theme] svg.mode-char + .pp-host, html[data-skin="focus"][data-theme] .mode-char.pp-host { max-width: 88px; max-height: 88px; }

/* ============================================================
   8. FOCUS — l'accueil
   ============================================================ */
html[data-skin="focus"][data-theme] .gx-hero.fx-hero { height: auto; margin: 0; overflow: visible; display: flex; flex-direction: column; gap: 14px; }
html[data-skin="focus"][data-theme] .fx-rings { display: grid; grid-template-columns: 158px 1fr; gap: 16px; align-items: center; padding: 16px; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r); box-shadow: var(--fx-sh); }
html[data-skin="focus"][data-theme] .fx-rings-svg { width: 158px; height: 158px; display: block; }
html[data-skin="focus"][data-theme] .fx-ring { stroke-dasharray: var(--v) var(--c); animation: fxRing 1.2s var(--ease-paper) both; }
html[data-skin="focus"][data-theme] .fx-rings .fx-ring:nth-of-type(2) { animation-delay: .1s; }
@keyframes fxRing { from { stroke-dasharray: 0 var(--c); } }
html[data-skin="focus"][data-theme] .fx-legend { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
html[data-skin="focus"][data-theme] .fx-lg small { display: block; font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
html[data-skin="focus"][data-theme] .fx-lg.w small { color: var(--fx-acc); }
html[data-skin="focus"][data-theme] .fx-lg.d small { color: var(--fx-cyan); }
html[data-skin="focus"][data-theme] .fx-lg.s small { color: var(--fx-amber); }
html[data-skin="focus"][data-theme] .fx-lg b { display: block; font: 650 24px/1.1 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--fx-ink); white-space: nowrap; }
html[data-skin="focus"][data-theme] .fx-lg em { font: 500 12px var(--mono); font-style: normal; color: var(--fx-faint); letter-spacing: 0; }
html[data-skin="focus"][data-theme] .fx-atlas { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
html[data-skin="focus"][data-theme] .gx-slot-home { position: relative !important; left: auto !important; bottom: auto !important; width: 34px !important; height: 34px !important; max-width: none; z-index: 1; }
html[data-skin="focus"][data-theme] .fx-hero .gx-bubble { position: relative !important; inset: auto !important; width: auto !important; max-width: none !important; margin: 0 !important; }
html[data-skin="focus"][data-theme] .fx-hero .gx-bubble .bp { font-size: 15px; color: var(--fx-mut); }
html[data-skin="focus"][data-theme] .fx-hero .gx-bubble .typed { color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-hero-replies { margin: 10px 0 0 44px !important; }
@media (max-width: 380px) { html[data-skin="focus"][data-theme] .fx-rings { grid-template-columns: 128px 1fr; gap: 12px; padding: 14px; } html[data-skin="focus"][data-theme] .fx-rings-svg { width: 128px; height: 128px; } html[data-skin="focus"][data-theme] .fx-lg b { font-size: 21px; } }
html[data-skin="focus"][data-theme] .fx-num { font-family: var(--mono); font-variant-numeric: tabular-nums; fill: var(--fx-ink); }

/* la série */
html[data-skin="focus"][data-theme] .gx-streak { background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r); box-shadow: var(--fx-sh); grid-template-columns: 56px 1fr; padding: 14px 16px; }
html[data-skin="focus"][data-theme] .gx-wreath { width: 56px; height: 56px; }
html[data-skin="focus"][data-theme] .gx-wreath .fx-num { font-weight: 600; }
html[data-skin="focus"][data-theme] .gx-streak h3 { font-size: 18px !important; }
html[data-skin="focus"][data-theme] .gx-day { font: 600 10px var(--mono); color: var(--fx-faint); }
html[data-skin="focus"][data-theme] .gx-day svg { width: 26px; height: 26px; }
html[data-skin="focus"][data-theme] .fx-day { fill: var(--fx-card2); stroke: var(--fx-line2); stroke-width: 1.2; }
html[data-skin="focus"][data-theme] .fx-day.on { fill: var(--fx-acc); stroke: var(--fx-acc); }
html[data-skin="focus"][data-theme] .fx-day.now:not(.on) { fill: transparent; stroke: var(--fx-acc); stroke-width: 2; stroke-dasharray: 3 3; }
html[data-skin="focus"][data-theme] .fx-day-ck { stroke: var(--fx-on-fill); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
html[data-skin="focus"][data-theme="noir"] .fx-day-ck { stroke: #0B0B0C; }
html[data-skin="focus"][data-theme] .fx-day.on + .fx-day-ck { stroke: #fff; }
html[data-skin="focus"][data-theme="noir"] .fx-day.on + .fx-day-ck { stroke: #0B0B0C; }

/* les titres de section, en petites capitales techniques */
html[data-skin="focus"][data-theme] .gx-sec-h { margin: 24px 2px 8px; }
html[data-skin="focus"][data-theme] .gx-sec-h h2 { font: 600 11px var(--mono) !important; letter-spacing: .12em !important; text-transform: uppercase; color: var(--fx-faint); }
html[data-skin="focus"][data-theme] .gx-sec-h span { font: 500 11px var(--mono); color: var(--fx-faint); }

/* « À finir » : des lignes ; la première devient la carte « Reprendre » */
html[data-skin="focus"][data-theme] .gx-todo { gap: 0; }
html[data-skin="focus"][data-theme] .gx-trow { grid-template-columns: 40px 1fr auto; gap: 12px; padding: 12px 4px; background: transparent; border: 0; border-bottom: 1px solid var(--fx-line); border-radius: 0; color: var(--fx-ink); transition: background .2s; }
html[data-skin="focus"][data-theme] .gx-trow:hover { transform: none; background: color-mix(in srgb, var(--fx-card2) 60%, transparent); }
html[data-skin="focus"][data-theme] .gx-trow:active { transform: scale(.99); }
html[data-skin="focus"][data-theme] .gx-medal { width: 40px; height: 40px; }
html[data-skin="focus"][data-theme] .fx-medal-bg { fill: color-mix(in srgb, var(--m, var(--fx-acc)) 14%, var(--fx-card)); }
html[data-skin="focus"][data-theme] .gx-trow b { font: 600 15px var(--sans); }
html[data-skin="focus"][data-theme] .gx-trow small { font: 500 12.5px var(--sans); color: var(--fx-mut); margin: 1px 0 7px; }
html[data-skin="focus"][data-theme] .gx-strip { height: 4px; border-radius: 2px; clip-path: none; background: var(--fx-card2); overflow: hidden; }
html[data-skin="focus"][data-theme] .gx-strip i { border-radius: 2px; }
html[data-skin="focus"][data-theme] .gx-chev { color: var(--fx-faint); width: 18px; height: 18px; }
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty) {
  background: var(--fx-fill); color: #0B0B0C; border: 0; border-radius: var(--fx-r); padding: 16px; margin-bottom: 6px; grid-template-columns: 1fr auto; position: relative;
}
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty) .gx-medal { display: none; }
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty) b { font: 650 21px/1.15 var(--sans); letter-spacing: -.02em; white-space: normal; }
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty) small { color: rgba(11, 11, 12, .65); font-weight: 600; }
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty) .gx-strip { background: rgba(0, 0, 0, .14); height: 5px; margin-top: 10px; }
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty) .gx-strip i { background: #0B0B0C !important; }
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty) .gx-chev { width: 42px; height: 42px; border-radius: 50%; background: #0B0B0C; color: var(--fx-fill); display: grid; place-items: center; align-self: end; }
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty) .gx-chev svg { width: 18px; height: 18px; }
html[data-skin="focus"][data-theme] #gxTodo > .gx-trow:first-child:not(.gx-trow-empty):hover { background: var(--fx-fill); filter: brightness(1.04); }
html[data-skin="focus"][data-theme] .gx-trow.flash { animation: fxFlash 1.2s var(--ease-paper); }
@keyframes fxFlash { 25% { box-shadow: inset 3px 0 0 var(--fx-acc); background: color-mix(in srgb, var(--fx-acc) 10%, transparent); } }
html[data-skin="focus"][data-theme] .gx-home :is(.gx-libcard, .gx-olympe) { margin-top: 0; }
html[data-skin="focus"][data-theme] .gx-medal-temple { width: 40px; height: 40px; border-radius: 50%; background: var(--fx-card2) !important; color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-medal-temple svg { width: 20px; height: 20px; color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-medal-lib { background: color-mix(in srgb, var(--c-mnemo) 16%, var(--fx-card)) !important; }
html[data-skin="focus"][data-theme] .gx-medal-lib svg { color: var(--c-mnemo); }

/* la carte de l'engagement (« séance ») */
html[data-skin="focus"][data-theme] .gx-sess.eng-card { grid-template-columns: 64px 1fr; padding: 16px !important; }
html[data-skin="focus"][data-theme] .gx-sess-ic { width: 64px; height: 72px; }
html[data-skin="focus"][data-theme] .fx-hg .fx-ring, html[data-skin="focus"][data-theme] .fx-hg circle { stroke-width: 5; }
html[data-skin="focus"][data-theme] .gx-sess .eng-h { font-size: 17px !important; }
html[data-skin="focus"][data-theme] .gx-sess .eng-state { color: var(--fx-ink); font: 600 13px var(--mono); }
html[data-skin="focus"][data-theme] .gx-sess .gx-strip { --sc: var(--fx-acc); height: 5px; }
html[data-skin="focus"][data-theme] .eng-ring-v { stroke: var(--fx-acc); }
html[data-skin="focus"][data-theme] .eng-ring-n { font: 600 20px var(--mono); }
html[data-skin="focus"][data-theme] .eng-state { color: var(--fx-acc); }
html[data-skin="focus"][data-theme] :is(.eng-min, .eng-day) { border: 1px solid var(--fx-line2); background: var(--fx-card); border-radius: 999px; box-shadow: none; font-family: var(--sans); }
html[data-skin="focus"][data-theme] :is(.eng-min, .eng-day):hover { transform: none; }
html[data-skin="focus"][data-theme] .eng-min.on { background: var(--fx-fill); color: #0B0B0C; border-color: transparent; box-shadow: none; }
html[data-skin="focus"][data-theme] .eng-day.on { background: var(--fx-ink); color: var(--fx-bg); border-color: transparent; }

/* les maîtres : cinq anneaux */
html[data-skin="focus"][data-theme] .gx-mcard { background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r); padding: 14px 6px 12px !important; gap: 4px; box-shadow: var(--fx-sh); }
html[data-skin="focus"][data-theme] .gx-mcard:hover { transform: translateY(-2px); }
html[data-skin="focus"][data-theme] .gx-mgrid .gx-mcard .gx-slot, html[data-skin="focus"][data-theme] .gx-mcard .gx-slot { width: 52px !important; height: 52px !important; margin-bottom: 6px; }
html[data-skin="focus"][data-theme] .gx-mcard b { font: 650 14px var(--sans) !important; }
html[data-skin="focus"][data-theme] .gx-mcard small { font: 500 10.5px var(--mono); color: var(--fx-faint); text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================
   9. FOCUS — la feuille d'Atlas, les réglages
   ============================================================ */
html[data-skin="focus"][data-theme] .gx-veil { background: var(--fx-veil); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
html[data-skin="focus"][data-theme] .gx-sheet { background: var(--fx-card); border: 1px solid var(--fx-line2); border-radius: 28px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .18); padding: 18px; }
html[data-skin="focus"][data-theme] .gx-sh-x { background: var(--fx-card2); border: 1px solid var(--fx-line2); border-radius: 50%; color: var(--fx-mut); }
html[data-skin="focus"][data-theme] .gx-sh-atlas { grid-template-columns: 44px 1fr; gap: 12px; align-items: start; margin-top: 4px; }
html[data-skin="focus"][data-theme] .gx-sh-atlas .gx-slot { height: 44px; width: 44px; }
html[data-skin="focus"][data-theme] .gx-sh-atlas .gx-bubble { margin: 0 44px 0 0; }
html[data-skin="focus"][data-theme] .gx-sh-atlas .gx-bubble .bp { font: 500 18px/1.38 var(--sans); }
html[data-skin="focus"][data-theme] .gx-sheet .gx-replies { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
html[data-skin="focus"][data-theme] .gx-sheet .gx-reply { border-radius: 16px; min-height: 58px; padding: 12px; align-items: flex-end; background: var(--fx-card2); border-color: var(--fx-line); font-weight: 600; }
html[data-skin="focus"][data-theme] .gx-sheet .gx-reply.gx-reply-set { background: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-sh-more { border-top: 1px solid var(--fx-line); }
html[data-skin="focus"][data-theme] .gx-set { font: 600 13.5px var(--sans); color: var(--fx-mut); }
html[data-skin="focus"][data-theme] .gx-seg { gap: 4px; padding: 3px; border-radius: 12px; background: var(--fx-card2); border: 1px solid var(--fx-line); width: fit-content; max-width: 100%; }
html[data-skin="focus"][data-theme] .gx-seg button { border-radius: 9px; background: transparent; color: var(--fx-mut); font: 600 13px var(--sans); }
html[data-skin="focus"][data-theme] .gx-seg button.on { background: var(--fx-card); color: var(--fx-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
html[data-skin="focus"][data-theme="noir"] .gx-seg button.on { background: #2A2A30; color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-quota .gx-strip { --sc: var(--fx-acc) !important; height: 6px; }
/* le bouton du style, dans les deux styles */
.gx-skin-btn span { opacity: .6; margin-left: 2px; }

/* ============================================================
   10. FOCUS — la séance : un grand anneau qui se remplit
   ============================================================ */
html[data-skin="focus"][data-theme] .gx-overlay { background: var(--fx-bg); }
html[data-skin="focus"][data-theme] .gx-ov-t { font: 600 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fx-faint); }
html[data-skin="focus"][data-theme] .gx-xbtn { background: var(--fx-card); border: 1px solid var(--fx-line2); border-radius: 50%; color: var(--fx-mut); }
html[data-skin="focus"][data-theme] .gx-dur { border: 1px solid var(--fx-line2); border-radius: 999px; background: var(--fx-card); font: 600 12px var(--mono); }
html[data-skin="focus"][data-theme] .gx-dur.on { background: var(--fx-ink); color: var(--fx-bg); border-color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gx-se-stage { height: auto; margin: 8px 16px 0; display: grid; grid-template-columns: 40px 1fr; gap: 10px; align-items: start; }
html[data-skin="focus"][data-theme] .gx-slot-seance { position: relative; left: auto; bottom: auto; width: 40px; height: 40px; }
html[data-skin="focus"][data-theme] .gx-se-stage .gx-bubble { position: relative; right: auto; top: auto; width: auto; }
html[data-skin="focus"][data-theme] .gx-clock { position: relative; width: 240px; height: 240px; margin: 18px auto 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
html[data-skin="focus"][data-theme] .fx-se-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
html[data-skin="focus"][data-theme] .fx-se-arc { transition: stroke-dasharray .3s linear; }
html[data-skin="focus"][data-theme] .gx-clock b { font: 600 52px/1 var(--mono); letter-spacing: -.02em; position: relative; }
html[data-skin="focus"][data-theme] .gx-clock small { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fx-faint); position: relative; margin-top: 6px; }
html[data-skin="focus"][data-theme] .gx-se-bar { display: none; }
html[data-skin="focus"][data-theme] .gx-mk { font: 600 10px var(--mono); color: var(--fx-faint); }
html[data-skin="focus"][data-theme] .gx-mk i { clip-path: none; border-radius: 50%; width: 10px; height: 10px; background: var(--fx-card2); border: 1px solid var(--fx-line2); }
html[data-skin="focus"][data-theme] .gx-mk.on i { background: var(--fx-acc); border-color: var(--fx-acc); transform: none; }
html[data-skin="focus"][data-theme] .gx-mk.on { color: var(--fx-ink); }

/* ============================================================
   11. FOCUS — Apprendre
   ============================================================ */
html[data-skin="focus"][data-theme] .gx-acards { gap: 10px; }
html[data-skin="focus"][data-theme] .gx-acard2 { grid-template-columns: 48px 1fr; gap: 4px 14px; padding: 16px; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r); box-shadow: var(--fx-sh); }
html[data-skin="focus"][data-theme] .gx-acard2 .gx-slot { grid-row: span 4; width: 48px; height: 48px; align-self: start; }
html[data-skin="focus"][data-theme] .gx-acard2 h3 { font: 650 19px var(--sans) !important; }
html[data-skin="focus"][data-theme] .gx-acard2 .gx-role, html[data-skin="focus"][data-theme] .gx-role { font: 600 10.5px var(--mono); letter-spacing: .1em; color: var(--col, var(--fx-faint)); margin-top: 2px; }
html[data-skin="focus"][data-theme] .gx-acard2 p { color: var(--fx-mut); font: 450 13.5px/1.5 var(--sans); }
html[data-skin="focus"][data-theme] .gx-arow { margin-top: 6px; }
html[data-skin="focus"][data-theme] .gx-arow .gx-go { background: var(--col) !important; color: #fff !important; }
html[data-skin="focus"][data-theme] .gx-stage { height: auto; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; margin: 0 0 14px; padding: 14px 16px; background: var(--fx-card); border: 1px solid var(--fx-line); border-radius: var(--fx-r); border-left: 4px solid var(--lc, var(--fx-acc)); }
html[data-skin="focus"][data-theme] .gx-slot-master { position: relative; left: auto !important; bottom: auto; width: 44px; height: 44px; max-width: none; }
html[data-skin="focus"][data-theme] .gx-stage .gx-bubble { position: relative; right: auto; top: auto; width: auto; max-width: none; }
html[data-skin="focus"][data-theme] .gx-stage .gx-bubble .who { color: var(--lc, var(--fx-acc)); }
html[data-skin="focus"][data-theme] .gx-back { background: var(--fx-card); border: 1px solid var(--fx-line2); border-radius: 999px; color: var(--fx-ink); }
html[data-skin="focus"][data-theme] :is(.opt, .ar-opt) { background: var(--fx-card) !important; border: 1px solid var(--fx-line2) !important; border-radius: var(--fx-r-sm) !important; box-shadow: none !important; color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] :is(.opt.chosen, .ar-opt.on, .ar-opt.picked, .ar-opt.chosen) { border-color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] :is(.opt.correct, .ar-opt.good) { border-color: var(--pp-good) !important; background: color-mix(in srgb, var(--pp-good) 12%, var(--fx-card)) !important; }
html[data-skin="focus"][data-theme] :is(.opt.wrong, .ar-opt.bad) { border-color: var(--pp-bad) !important; background: color-mix(in srgb, var(--pp-bad) 10%, var(--fx-card)) !important; }
html[data-skin="focus"][data-theme] :is(.opt .mark, .ar-let) { clip-path: none !important; border-radius: 8px !important; background: var(--fx-card2) !important; color: var(--fx-ink) !important; font-family: var(--mono) !important; }
html[data-skin="focus"][data-theme] :is(.opt.correct .mark, .ar-opt.good .ar-let) { background: var(--pp-good) !important; color: #fff !important; }
html[data-skin="focus"][data-theme] :is(.opt.wrong .mark, .ar-opt.bad .ar-let) { background: var(--pp-bad) !important; color: #fff !important; }
html[data-skin="focus"][data-theme] .hp-kinds { background: var(--fx-card2) !important; border-radius: 12px; }
html[data-skin="focus"][data-theme] :is(.hp-kind, .hp-kind.paper) { color: var(--fx-mut) !important; border-radius: 9px; }
html[data-skin="focus"][data-theme] :is(.hp-kind.on, .hp-kind.paper.on) { background: var(--fx-card) !important; color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] .treasure-map { background-image: none !important; }
html[data-skin="focus"][data-theme] .ctut-body { border-top: 1px solid var(--fx-line); }
html[data-skin="focus"][data-theme] :is(.bubble .bub-in, .ctut-msg, .pal-msg-b) { border-radius: 16px !important; box-shadow: none !important; }
html[data-skin="focus"][data-theme] :is(.bubble.me .bub-in, .ctut-msg.user) { border-radius: 16px 16px 4px 16px !important; }

/* ============================================================
   12. FOCUS — les ateliers, l'Agora, les autres pages
   ============================================================ */
html[data-skin="focus"][data-theme] .gx-intro { grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin: 4px 0 16px; }
html[data-skin="focus"][data-theme] .gx-intro .gx-slot { width: 40px; height: 40px; }
html[data-skin="focus"][data-theme] .gx-intro .gx-bubble { margin: 0; }
html[data-skin="focus"][data-theme] .gx-intro-rep { grid-column: 2; margin-top: 2px; }
html[data-skin="focus"][data-theme] .tool-card.gx-acard, html[data-skin="focus"][data-theme] .tool-card.gx-ws { grid-template-columns: 64px 1fr auto !important; gap: 4px 14px; padding: 16px !important; background: var(--fx-card) !important; border: 1px solid var(--fx-line) !important; color: var(--fx-ink) !important; box-shadow: var(--fx-sh) !important; }
html[data-skin="focus"][data-theme] .tool-card.gx-acard :is(h3, .tool-card-t) { font: 650 18px var(--sans) !important; color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] .tool-card.gx-acard :is(p, .tool-card-p) { color: var(--fx-mut) !important; opacity: 1; }
html[data-skin="focus"][data-theme] .tool-card.gx-acard .tool-card-go { background: var(--col) !important; color: #fff !important; border-radius: 999px; }
html[data-skin="focus"][data-theme] .gx-aobj { width: 64px; height: 64px; }
html[data-skin="focus"][data-theme] .gx-aobj svg { filter: none; }
html[data-skin="focus"][data-theme] .tool-card.gx-ws:hover .gx-aobj { transform: none; }
html[data-skin="focus"][data-theme] .fx-tool .fx-ring { animation: fxRing 1.1s var(--ease-paper) both; }
html[data-skin="focus"][data-theme] .social-seg { padding: 3px !important; background: var(--fx-card2) !important; border-radius: 14px !important; box-shadow: none !important; }
html[data-skin="focus"][data-theme] .sseg { border-radius: 11px !important; color: var(--fx-mut) !important; background: transparent !important; box-shadow: none !important; }
html[data-skin="focus"][data-theme] .sseg.on { background: var(--fx-card) !important; color: var(--fx-ink) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12) !important; }
html[data-skin="focus"][data-theme="noir"] .sseg.on { background: #2A2A30 !important; }
html[data-skin="focus"][data-theme] .pth-list { padding: 6px 10px !important; }
html[data-skin="focus"][data-theme] .pth-list .pth-row { border-bottom: 1px solid var(--fx-line) !important; border-radius: 0 !important; }
html[data-skin="focus"][data-theme] .pth-list .pth-row:last-child { border-bottom: 0 !important; }
html[data-skin="focus"][data-theme] .pth-list .pth-row.me { background: var(--fx-fill) !important; color: #0B0B0C !important; clip-path: none !important; border-radius: 12px !important; border-bottom-color: transparent !important; }
html[data-skin="focus"][data-theme] .pth-list .pth-row.me * { color: #0B0B0C !important; }
html[data-skin="focus"][data-theme] .pth-list .pth-pos { font: 600 13px var(--mono); }
html[data-skin="focus"][data-theme] .pth-list :is(.av, .avatar, [class*="avatar"]) { clip-path: none !important; border-radius: 50% !important; }
html[data-skin="focus"][data-theme] .pth-self { border-left: 4px solid var(--fx-acc) !important; }
html[data-skin="focus"][data-theme] .pth-skel { border-radius: 14px; background: var(--fx-card); border: 1px solid var(--fx-line); }
html[data-skin="focus"][data-theme] .pth-skel::after { background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--fx-acc) 12%, transparent), transparent); animation-duration: 1.1s; }
html[data-skin="focus"][data-theme] .notif-item.unread { border-left: 3px solid var(--fx-acc) !important; }
html[data-skin="focus"][data-theme] .gx-toast { background: var(--fx-ink); color: var(--fx-bg); border-radius: 14px; font: 600 13.5px/1.4 var(--sans); }
html[data-skin="focus"][data-theme] .toast { background: var(--fx-ink) !important; color: var(--fx-bg) !important; border-radius: 14px !important; box-shadow: 0 10px 30px rgba(0, 0, 0, .2) !important; }
html[data-skin="focus"][data-theme] .gx-lsec { padding: 4px 12px !important; }
html[data-skin="focus"][data-theme] .gx-lsec-tg b { font: 650 16px var(--sans); }
html[data-skin="focus"][data-theme] .gx-lsec-n { background: var(--fx-card2); font-family: var(--mono); }
html[data-skin="focus"][data-theme] .gx-chip2 { background: var(--fx-card2); border: 1px solid var(--fx-line2); border-radius: 999px; }
html[data-skin="focus"][data-theme] .gx-lrow.gx-on { background: var(--fx-fill); color: #0B0B0C; }
html[data-skin="focus"][data-theme] .gx-lchk svg.fx-i { stroke: #fff; stroke-width: 2.6; }
html[data-skin="focus"][data-theme] .gx-lrow.gx-on .gx-lchk { background: #0B0B0C; }
html[data-skin="focus"][data-theme] .gx-lrow.gx-on .gx-lchk svg.fx-i { stroke: var(--fx-fill); }
html[data-skin="focus"][data-theme] .nset-sw { border-radius: 999px; border: 1px solid var(--fx-line2); background: var(--fx-card2); }
html[data-skin="focus"][data-theme] .nset-sw::after { box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
html[data-skin="focus"][data-theme] .nset-sw:checked { background: var(--fx-acc); }
html[data-skin="focus"][data-theme] .nset-row { border-bottom: 1px solid var(--fx-line); }
html[data-skin="focus"][data-theme] :is(.nset-quiet, .nset-dev) { background: var(--fx-card2); border-radius: var(--fx-r-sm); }
html[data-skin="focus"][data-theme] .nask-list li { border-radius: 999px; }
html[data-skin="focus"][data-theme] .nask-banner { background: var(--fx-card) !important; border: 1px solid var(--fx-line); box-shadow: none; border-left: 4px solid var(--fx-acc); }
html[data-skin="focus"][data-theme] .eng-timer { transform: translateX(-50%); border-radius: 999px; font-family: var(--mono); box-shadow: none; }
/* l'Olympe : les pictogrammes au trait, des cartes sobres */
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-card { background: var(--fx-card) !important; border: 1px solid var(--fx-line) !important; border-radius: var(--fx-r) !important; }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-card:hover { transform: translateY(-2px) !important; }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-art { clip-path: none; box-shadow: none; background: none !important; }
/* v261 — l'Olympe redessiné pour Focus (olympe-focus.js) : icône au trait
   dans l'encre du thème, touches d'accent, anneau fin et son arc */
html[data-skin="focus"][data-theme] .oly-fx { overflow: visible; }
html[data-skin="focus"][data-theme] .oly-fx .fx-tr { fill: var(--fx-card2); stroke: var(--fx-line2); stroke-width: 2.5; }
html[data-skin="focus"][data-theme] .oly-fx .fx-arc { fill: none; stroke: var(--fx-acc); stroke-width: 2.5; stroke-linecap: round; transition: stroke-dasharray .6s var(--spring); }
html[data-skin="focus"][data-theme] .oly-fx .fx-ic * { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
html[data-skin="focus"][data-theme] .oly-fx .fi { stroke: var(--fx-ink); }
html[data-skin="focus"][data-theme] .oly-fx .fa { stroke: var(--fx-acc); }
html[data-skin="focus"][data-theme] .oly-fx .fd { fill: var(--fx-acc); stroke: none; }
html[data-skin="focus"][data-theme] .oly-fx .fdash { stroke-dasharray: 1.4 2; }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-card:hover .oly-fx .fx-arc { stroke-dasharray: 289 289 !important; }
html[data-skin="focus"][data-theme] .modal.oly-modal .oly-big { background: none !important; border: 0 !important; box-shadow: none !important; }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-name { font: 650 15px var(--sans) !important; }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-svg .f2, html[data-skin="focus"][data-theme] .modal.oly-modal .oly-svg .f2 { fill: var(--fx-ink); }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-svg .s2, html[data-skin="focus"][data-theme] .modal.oly-modal .oly-svg .s2 { stroke: var(--fx-ink); }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-tabs button { border-radius: 999px !important; background: var(--fx-card2) !important; }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-tabs button.on { background: var(--fx-ink) !important; color: var(--fx-bg) !important; }
html[data-skin="focus"][data-theme] body[data-page="olympe"] .oly-search { border: 1px solid var(--fx-line2) !important; border-radius: 14px !important; box-shadow: none; }
html[data-skin="focus"][data-theme] body:is([data-page="confidentialite"], [data-page="olympe"]) .legal-back { background: var(--fx-card) !important; border: 1px solid var(--fx-line2) !important; border-radius: 999px !important; }
html[data-skin="focus"][data-theme] body[data-page="confidentialite"] .legal-toc a { border-radius: 999px !important; background: var(--fx-card2) !important; }
html[data-skin="focus"][data-theme] .st-tile b { font-family: var(--mono); font-weight: 600; }

/* ============================================================
   13. FOCUS — les chargements
   Le voile de génération : un anneau qui tourne autour du symbole du
   maître, la tâche au trait, le message en police technique, une barre fine.
   ============================================================ */
html[data-skin="focus"][data-theme] .gen-veil { background: color-mix(in srgb, var(--fx-bg) 94%, transparent) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .gen-veil .gv-stage { width: 180px; height: 180px; --fx-c: var(--fx-acc); }
html[data-skin="focus"][data-theme] .gen-veil[data-mode="course"] .gv-stage { --fx-c: var(--c-muses); }
html[data-skin="focus"][data-theme] .gen-veil[data-mode="tree"] .gv-stage { --fx-c: var(--c-promethee); }
html[data-skin="focus"][data-theme] .gen-veil[data-mode="hephaistos"] .gv-stage { --fx-c: var(--c-hephaistos); }
html[data-skin="focus"][data-theme] .gen-veil[data-mode="chiron"] .gv-stage { --fx-c: var(--c-chiron); }
html[data-skin="focus"][data-theme] .gen-veil[data-mode="dedale"] .gv-stage { --fx-c: var(--c-dedale); }
html[data-skin="focus"][data-theme] .gen-veil .gv-halo { border: 0; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 55%, color-mix(in srgb, var(--fx-c) 40%, transparent) 75%, var(--fx-c) 100%) !important; opacity: 1 !important;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  animation: fxSpin 1.15s linear infinite; }
html[data-skin="focus"][data-theme] .gen-veil .gv-halo::after { display: block !important; inset: -14px; border-radius: 50%; background: none; border: 1px solid var(--fx-line2); animation: fxBreathe 2.4s ease-in-out infinite; -webkit-mask: none; mask: none; }
@keyframes fxBreathe { 0%, 100% { transform: scale(.96); opacity: .5; } 50% { transform: scale(1.03); opacity: 1; } }
html[data-skin="focus"][data-theme] .gen-veil .gv-fx { display: none !important; }
html[data-skin="focus"][data-theme] .gen-veil .gv-char, html[data-skin="focus"][data-theme] .gen-veil .gv-char .pp-host { width: 112px; height: 112px; display: block; }
html[data-skin="focus"][data-theme] .gen-veil .gv-char svg { width: 112px !important; height: 112px !important; }
html[data-skin="focus"][data-theme] .gen-veil .gv-phase { color: var(--fx-mut) !important; width: 56px; height: 56px; margin-top: 0; --accent: var(--fx-acc) !important; --accent-ink: var(--fx-mut) !important; }
html[data-skin="focus"][data-theme] .gen-veil .gv-phase svg { stroke-width: 2; }
html[data-skin="focus"][data-theme] .gen-veil .gv-phase :is(.ph-scan, .ph-n) { fill: var(--fx-acc); }
html[data-skin="focus"][data-theme] .gen-veil .gv-phase .ph-ck { stroke: var(--fx-acc); }
html[data-skin="focus"][data-theme] .gen-veil .gv-phase :is(.ph-pg, .ph-leaf) { fill: color-mix(in srgb, var(--fx-ink) 6%, transparent) !important; }
html[data-skin="focus"][data-theme] .gen-veil .gv-msg { color: var(--fx-ink) !important; font: 500 13.5px/1.5 var(--mono) !important; text-shadow: none; letter-spacing: .01em; }
html[data-skin="focus"][data-theme] .gen-veil .gv-bar { height: 3px !important; border-radius: 2px !important; background: var(--fx-line2) !important; }
html[data-skin="focus"][data-theme] .gen-veil .gv-fill { background: var(--fx-acc) !important; }
html[data-skin="focus"][data-theme] .gen-veil.indet .gv-fill { width: 30% !important; animation: fxIndet 1.3s ease-in-out infinite; }
@keyframes fxIndet { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
html[data-skin="focus"][data-theme] .gen-veil .gv-esc { color: var(--fx-mut) !important; border: 1px solid var(--fx-line2) !important; border-radius: 999px; font-family: var(--sans); }
/* entre deux pages : un trait vert qui file en haut de l'écran */
html[data-skin="focus"][data-theme]::after { content: ''; position: fixed; z-index: 10040; top: 0; left: 0; height: 2px; width: 0; background: var(--fx-acc); opacity: 0; pointer-events: none; }
html[data-skin="focus"][data-theme].fx-going::after { opacity: 1; animation: fxGo 1.6s cubic-bezier(.1, .7, .2, 1) forwards; }
@keyframes fxGo { from { width: 0; } to { width: 88%; } }

/* ============================================================
   14. FOCUS — la montée de niveau : l'anneau se referme
   ============================================================ */
html[data-skin="focus"][data-theme] .fx-lvl { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--fx-bg) 92%, transparent);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: var(--fx-ink); opacity: 0; transition: opacity .35s; cursor: pointer; }
html[data-skin="focus"][data-theme] .fx-lvl.show { opacity: 1; }
html[data-skin="focus"][data-theme] .fx-lvl.out { opacity: 0; }
html[data-skin="focus"][data-theme] .fx-lvl-in { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
html[data-skin="focus"][data-theme] .fx-lvl-ring { position: relative; width: 200px; height: 200px; margin-bottom: 10px; }
html[data-skin="focus"][data-theme] .fx-lvl-ring svg { position: absolute; inset: 10px; width: 180px; height: 180px; }
html[data-skin="focus"][data-theme] .fx-lvl-trk { fill: none; stroke: color-mix(in srgb, var(--fx-acc) 18%, transparent); stroke-width: 12; }
html[data-skin="focus"][data-theme] .fx-lvl-arc { fill: none; stroke: var(--fx-acc); stroke-width: 12; stroke-linecap: round; }
html[data-skin="focus"][data-theme] .fx-lvl.show .fx-lvl-arc { animation: fxClose 1.1s cubic-bezier(.6, 0, .2, 1) .15s forwards; }
@keyframes fxClose { to { stroke-dashoffset: 0; } }
html[data-skin="focus"][data-theme] .fx-lvl-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
html[data-skin="focus"][data-theme] .fx-lvl-c small { font: 600 11px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--fx-faint); }
html[data-skin="focus"][data-theme] .fx-lvl-n { position: relative; height: 64px; width: 120px; overflow: hidden; }
html[data-skin="focus"][data-theme] .fx-lvl-n b { position: absolute; inset: 0; font: 600 58px/64px var(--mono); letter-spacing: -.04em; text-align: center; }
html[data-skin="focus"][data-theme] .fx-lvl-n .new { transform: translateY(100%); color: var(--fx-acc); }
html[data-skin="focus"][data-theme] .fx-lvl.show .fx-lvl-n .old { animation: fxUp .45s cubic-bezier(.6, 0, .2, 1) 1.15s forwards; }
html[data-skin="focus"][data-theme] .fx-lvl.show .fx-lvl-n .new { animation: fxUpIn .45s cubic-bezier(.6, 0, .2, 1) 1.15s forwards; }
@keyframes fxUp { to { transform: translateY(-100%); opacity: 0; } }
@keyframes fxUpIn { to { transform: none; } }
html[data-skin="focus"][data-theme] .fx-lvl-rays { position: absolute; inset: 0; pointer-events: none; }
html[data-skin="focus"][data-theme] .fx-lvl-rays i { position: absolute; left: 50%; top: 50%; width: 2px; height: 14px; margin: -7px 0 0 -1px; border-radius: 1px; background: var(--fx-acc); opacity: 0;
  transform: rotate(var(--a)) translateY(-92px); }
html[data-skin="focus"][data-theme] .fx-lvl.show .fx-lvl-rays i { animation: fxRay .7s ease-out calc(1.2s + var(--d)) forwards; }
@keyframes fxRay { 0% { opacity: 0; transform: rotate(var(--a)) translateY(-92px) scaleY(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--a)) translateY(-122px) scaleY(1.2); } }
html[data-skin="focus"][data-theme] .fx-lvl-k { font: 600 11px var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--fx-acc); }
html[data-skin="focus"][data-theme] .fx-lvl-r { font: 650 30px/1.15 var(--sans); letter-spacing: -.02em; }
html[data-skin="focus"][data-theme] .fx-lvl-xp { font: 500 14px var(--mono); color: var(--fx-mut); }
html[data-skin="focus"][data-theme] .fx-lvl-h { margin-top: 22px; font: 500 11px var(--mono); letter-spacing: .1em; color: var(--fx-faint); text-transform: uppercase; }
html[data-skin="focus"][data-theme] :is(.fx-lvl-k, .fx-lvl-r, .fx-lvl-xp, .fx-lvl-h) { opacity: 0; transform: translateY(8px); }
html[data-skin="focus"][data-theme] .fx-lvl.show :is(.fx-lvl-k, .fx-lvl-r, .fx-lvl-xp, .fx-lvl-h) { animation: fxRise .5s var(--ease-paper) forwards; }
html[data-skin="focus"][data-theme] .fx-lvl.show .fx-lvl-k { animation-delay: 1.3s; }
html[data-skin="focus"][data-theme] .fx-lvl.show .fx-lvl-r { animation-delay: 1.4s; }
html[data-skin="focus"][data-theme] .fx-lvl.show .fx-lvl-xp { animation-delay: 1.5s; }
html[data-skin="focus"][data-theme] .fx-lvl.show .fx-lvl-h { animation-delay: 1.9s; }
@keyframes fxRise { to { opacity: 1; transform: none; } }

/* ============================================================
   15. FOCUS — mouvement réduit
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html[data-skin="focus"][data-theme] :is(.fx-pup, .fx-pup-arc, .fx-ring, .fx-lvl *, .gen-veil .gv-halo, .gen-veil .gv-halo::after) { animation: none !important; }
  html[data-skin="focus"][data-theme] .fx-lvl-arc { stroke-dashoffset: 0; }
  html[data-skin="focus"][data-theme] .fx-lvl-n .old { display: none; }
  html[data-skin="focus"][data-theme] .fx-lvl-n .new { transform: none; }
  html[data-skin="focus"][data-theme] :is(.fx-lvl-k, .fx-lvl-r, .fx-lvl-xp, .fx-lvl-h) { opacity: 1; transform: none; }
}
html.gx-calm[data-skin="focus"] .fx-lvl-arc { stroke-dashoffset: 0; }
html.gx-calm[data-skin="focus"] .fx-lvl-n .old { display: none; }
html.gx-calm[data-skin="focus"] .fx-lvl-n .new { transform: none; }
html.gx-calm[data-skin="focus"] :is(.fx-lvl-k, .fx-lvl-r, .fx-lvl-xp, .fx-lvl-h) { opacity: 1; transform: none; }

/* ============================================================
   16. FOCUS — retouches
   ============================================================ */
/* le formulaire d'un maître : pas de temple dessiné, pas de carte dans la carte */
html[data-skin="focus"][data-theme] .home-pane.tone .hero::before { display: none !important; }
html[data-skin="focus"][data-theme] .home-pane.tone .gen-box { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; }
html[data-skin="focus"][data-theme] .home-pane.tone .hero { border-left: 4px solid var(--accent) !important; }
html[data-skin="focus"][data-theme] .home-pane.tone .hero h2 .grad { color: var(--accent) !important; -webkit-text-fill-color: currentColor !important; }
@media (min-width: 640px) {
  html[data-skin="focus"][data-theme] .fx-rings { grid-template-columns: 170px 1fr; gap: 24px; padding: 18px 24px; }
  html[data-skin="focus"][data-theme] .fx-rings-svg { width: 170px; height: 170px; }
  html[data-skin="focus"][data-theme] .fx-legend { flex-direction: row; justify-content: space-around; gap: 16px; }
  html[data-skin="focus"][data-theme] .fx-lg b { font-size: 30px; }
}
/* la page d'un cours : l'en-tête sans fronton, le titre à l'encre */
html[data-skin="focus"][data-theme] .course-head::after { display: none !important; }
html[data-skin="focus"][data-theme] #courseTitle { color: var(--fx-ink) !important; font-weight: 650 !important; letter-spacing: -.02em !important; text-shadow: none !important; }
html[data-skin="focus"][data-theme] .course-head :is(.course-meta, .course-meta span, em) { color: var(--fx-mut) !important; }
html[data-skin="focus"][data-theme] .course-head :is(.btn-ghost, .course-actions .btn-ghost) { border-color: var(--fx-line2) !important; color: var(--fx-ink) !important; }
html[data-skin="focus"][data-theme] .course-head .course-actions .btn-primary { background: var(--fx-fill) !important; color: #0B0B0C !important; }
html[data-skin="focus"][data-theme] :is(.hero h2, .page-head h2, .profile-name) { text-shadow: none !important; }
/* le symbole du mode au-dessus d'une page (cours, arbre, session) : l'anneau seul */
html[data-skin="focus"][data-theme] .content-sym .mode-sym, html[data-skin="focus"][data-theme] .mode-sym { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* ============================================================
   17. FOCUS — la tunique d'Atlas règle l'accent (v259)
   La couleur choisie pour la tunique (--atlas-tunic, posée sur <html> par le
   script de tête et par le sélecteur de tunique) devient en Focus la couleur
   du globe d'Atlas et l'accent de toute la plateforme (vert citron sans
   choix). On garde sa teinte, on règle sa clarté : un aplat clair qui porte
   un texte noir (--fx-fill), et un trait lisible sur le fond (--fx-acc) —
   foncé en clair, lumineux en sombre. Sans couleur relative (navigateurs
   anciens), le vert reste.
   ============================================================ */
@supports (color: oklch(from red l c h)) {
  html[data-skin="focus"][data-theme][style*="--atlas-tunic"]:not([style*="b8f34a" i]) {
    --fx-acc: oklch(from var(--atlas-tunic) 0.5 calc(c * 1.25) h);
    --fx-fill: oklch(from var(--atlas-tunic) 0.88 calc(c * 1.15) h);
  }
  html[data-skin="focus"][data-theme="noir"][style*="--atlas-tunic"]:not([style*="b8f34a" i]) {
    --fx-acc: oklch(from var(--atlas-tunic) 0.84 calc(c * 1.3) h);
    --fx-fill: oklch(from var(--atlas-tunic) 0.84 calc(c * 1.3) h);
  }
}
/* le logo de l'en-tête suit aussi la tunique : le fond reste noir, l'anneau
   et le trait du G prennent sa couleur, en version lumineuse */
@supports (color: oklch(from red l c h)) and ((mask-image: none) or (-webkit-mask-image: none)) {
  html[data-skin="focus"][data-theme][style*="--atlas-tunic"]:not([style*="b8f34a" i]) { --fx-logo: oklch(from var(--atlas-tunic) 0.84 calc(c * 1.3) h); }
  html[data-skin="focus"][data-theme][style*="--atlas-tunic"]:not([style*="b8f34a" i]) .gx-logo { position: relative; background: #09090B; }
  html[data-skin="focus"][data-theme][style*="--atlas-tunic"]:not([style*="b8f34a" i]) .gx-logo::before,
  html[data-skin="focus"][data-theme][style*="--atlas-tunic"]:not([style*="b8f34a" i]) .gx-logo::after { content: ''; position: absolute; inset: 0; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23000' stroke-width='12'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23000' stroke-width='12'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
  html[data-skin="focus"][data-theme][style*="--atlas-tunic"]:not([style*="b8f34a" i]) .gx-logo::before { background: color-mix(in oklab, var(--fx-logo) 20%, #09090B); }
  html[data-skin="focus"][data-theme][style*="--atlas-tunic"]:not([style*="b8f34a" i]) .gx-logo::after { background: var(--fx-logo); -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23000' stroke-width='12' stroke-linecap='round' stroke-dasharray='147 188.5' transform='rotate(-10 50 50)'/%3E%3Cpath d='M51 50h22' stroke='%23000' stroke-width='12' stroke-linecap='round'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='30' fill='none' stroke='%23000' stroke-width='12' stroke-linecap='round' stroke-dasharray='147 188.5' transform='rotate(-10 50 50)'/%3E%3Cpath d='M51 50h22' stroke='%23000' stroke-width='12' stroke-linecap='round'/%3E%3C/svg%3E"); }
}

/* ============================================================
   18. FOCUS — la barre en colonne (v259) : messagerie sur ordinateur
   (bord gauche) et téléphone en paysage / écran déplié (bord droit)
   ============================================================ */
@media (min-width: 901px) and (min-height: 561px) {
  html[data-skin="focus"][data-theme] body:has(> main .view > .friends-layout > .chat-col) .bottom-nav.gx-nav:not(.paper) { border-radius: 0 !important; border: 0 !important; border-right: 1px solid var(--fx-line2) !important; box-shadow: none !important; -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--fx-card) !important; }
  html[data-skin="focus"][data-theme] body:has(> main .view > .friends-layout > .chat-col) .gx-top { box-shadow: none !important; }
  html[data-skin="focus"][data-theme] body:has(> main .view > .friends-layout > .chat-col) .fx-say { left: calc(var(--rail-w) + var(--lp-w) / 2); width: calc(var(--lp-w) - 24px); bottom: 16px; }
  html[data-skin="focus"][data-theme] body:has(> main .view > .friends-layout > .chat-col) main { border-right: 0; }
}
@media (max-width: 900px) and (min-width: 600px) and (min-aspect-ratio: 4/5), (orientation: landscape) and (max-height: 560px) {
  html[data-skin="focus"][data-theme] .bottom-nav.gx-nav:not(.paper) { border-radius: 0 !important; border: 0 !important; border-left: 1px solid var(--fx-line2) !important; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none !important; background: var(--fx-card) !important; }
  html[data-skin="focus"][data-theme] .fx-say { left: calc((100vw - var(--rail-w)) / 2); width: min(560px, calc(100vw - var(--rail-w) - 24px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   19. FOCUS — le podcast du chapitre (v262)
   ============================================================ */
html[data-skin="focus"][data-theme] .pod-card .pod-line { background: var(--fx-card2); border: 1px solid var(--fx-line); border-radius: var(--fx-r-sm); }
html[data-skin="focus"][data-theme] .pod-card .pod-line.a .pod-who { color: var(--fx-acc); background: transparent; padding: 0; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
html[data-skin="focus"][data-theme] .pod-card .pod-line.b .pod-who { color: var(--fx-mut); background: transparent; padding: 0; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
html[data-skin="focus"][data-theme] .pod-card .pod-meta { font-family: var(--sans); color: var(--fx-mut); }
/* v264 — la bascule Lire / Écouter, en Focus */
html[data-skin="focus"][data-theme] .mod-switch { background: var(--fx-card2); border: 1px solid var(--fx-line); }
html[data-skin="focus"][data-theme] .mod-switch .ms-btn { color: var(--fx-mut); font-family: var(--sans); }
html[data-skin="focus"][data-theme] .mod-switch .ms-btn:hover { color: var(--fx-ink); }
html[data-skin="focus"][data-theme] .mod-switch .ms-btn.on { background: var(--fx-fill); color: var(--fx-on-fill); box-shadow: none; }
html[data-skin="focus"][data-theme] .mod-switch .ms-btn:focus-visible { outline-color: var(--fx-acc); }
/* v262 — La mesure, en Focus */
html[data-skin="focus"][data-theme] .st-note .st-read { background: var(--fx-card2); border-left-color: var(--fx-acc); border-radius: var(--fx-r-sm); }
html[data-skin="focus"][data-theme] .st-note .st-read b { color: var(--fx-acc); font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-right: 4px; }
