/* Espace professeurs Lingonexo : feuille de style (reprise de la démo Portail_Profs/index.html). */

  /* Mise en page : la charte sombre du site (noir, halo violet). Un cahier d'appel numérique :
     barre du haut, onglets, puis des panneaux. L'appel est pensé pour le téléphone. */
  :root {
    color-scheme: dark;
    --bg: #08050D;
    --surface: #110B19;
    --surface-2: #181022;
    --line: #261B33;
    --line-strong: #3A2A4D;
    --text: #F6F1FB;
    --muted: #A99CBB;
    --faint: #75688A;
    --violet: #8B3DFF;
    --orchid: #CE3AF2;
    --ok: #3DDC97;
    --late: #FFB547;
    --abs: #FF5C7A;
    --wa: #25D366;
    --on-accent: #FFFFFF;
    --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
    --r: 16px;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
  }
  *, *::before, *::after { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { background: var(--bg); }
  body {
    margin: 0; min-height: 100vh; font-family: var(--sans); font-size: 15px; line-height: 1.55;
    color: var(--text); background: var(--bg);
    background-image: radial-gradient(900px 420px at 85% -120px, rgba(139,61,255,.20), transparent 70%);
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.2; }
  em { font-family: var(--serif); font-style: italic; font-weight: 400; }
  button { font: inherit; color: inherit; }
  :focus-visible { outline: 2px solid var(--orchid); outline-offset: 2px; border-radius: 8px; }
  .num { font-variant-numeric: tabular-nums; }
  .wrap { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
  .muted { color: var(--muted); }
  .faint { color: var(--faint); }
  .small { font-size: 13px; }
  .label { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 600; }

  /* ---------- Barre du haut ---------- */
  .top {
    position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
    background: rgba(8,5,13,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
  }
  .top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; }
  .brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
  .brand img { height: 26px; width: auto; }
  .brand span { font-size: 12px; color: var(--muted); border-left: 1px solid var(--line-strong); padding-left: 12px; }
  .tabs { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    background: none; border: 0; padding: 9px 14px; border-radius: 999px; color: var(--muted);
    font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; min-height: 40px;
    transition: background 150ms var(--ease), color 150ms var(--ease);
  }
  .tab:hover { color: var(--text); background: var(--surface-2); }
  .tab[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
  .tab .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; background: var(--abs); color: #fff; font-size: 11px; }
  .who { display: flex; align-items: center; gap: 10px; margin-left: auto; }
  .avatar {
    width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
    background: linear-gradient(135deg, var(--violet), var(--orchid)); color: #fff; font-weight: 700; font-size: 13px;
  }
  .who-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
  .who-role { font-size: 12px; color: var(--muted); }
  .link-btn { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 8px; border-radius: 8px; }
  .link-btn:hover { color: var(--text); }

  main { padding-block: 28px 64px; }
  .page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 22px; }
  .page-head h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -.02em; }
  .page-head p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
  .crumb { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px 0; font-size: 13.5px; margin-bottom: 8px; }
  .crumb:hover { color: var(--text); }

  /* ---------- Panneaux ---------- */
  .grid { display: grid; gap: 16px; }
  .g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
  .g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
  .panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; min-width: 0; }
  .panel h2 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
  .panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
  .stack { display: grid; gap: 10px; }
  .divider { height: 1px; background: var(--line); margin-block: 14px; }

  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 42px; padding: 9px 18px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap;
    transition: transform 150ms var(--ease), background 150ms var(--ease), border-color 150ms var(--ease);
  }
  .btn:active { transform: scale(.98); }
  .btn-primary { background: var(--violet); color: var(--on-accent); }
  .btn-primary:hover { background: #9a55ff; }
  .btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
  .btn-ghost:hover { border-color: var(--muted); }
  .btn-danger { background: transparent; border-color: rgba(255,92,122,.45); color: var(--abs); }
  .btn[disabled] { opacity: .45; cursor: not-allowed; }
  .btn-sm { min-height: 36px; padding: 6px 14px; font-size: 13px; }
  .row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

  .chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
    white-space: nowrap;
  }
  .chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
  .chip.plain::before { display: none; }
  .chip.ok { color: var(--ok); border-color: rgba(61,220,151,.3); }
  .chip.warn { color: var(--late); border-color: rgba(255,181,71,.3); }
  .chip.bad { color: var(--abs); border-color: rgba(255,92,122,.35); }
  .chip.vio { color: #C9A6FF; border-color: rgba(139,61,255,.4); }
  .chip.wa { color: var(--wa); border-color: rgba(37,211,102,.3); }

  .level {
    display: inline-grid; place-items: center; min-width: 52px; height: 30px; padding: 0 10px; border-radius: 8px;
    background: rgba(139,61,255,.16); color: #D9C2FF; font-weight: 800; font-size: 14px; letter-spacing: .01em;
  }

  /* Progression des heures */
  .hours { display: grid; gap: 6px; }
  .bar { height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
  .bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--orchid)); border-radius: inherit; }
  .hours-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
  .hours-line b { color: var(--text); font-weight: 700; }

  /* Cartes de groupe */
  .gcard { display: grid; gap: 14px; cursor: pointer; text-align: left; width: 100%; color: inherit;
    transition: border-color 150ms var(--ease), transform 150ms var(--ease); }
  .gcard:hover { border-color: var(--line-strong); transform: translateY(-1px); }
  .gcard-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
  .gcard h3 { font-size: 16px; font-weight: 700; }
  .facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: 13.5px; }
  .facts dt { color: var(--faint); }
  .facts dd { margin: 0; min-width: 0; }

  /* Prochaine séance */
  .next { position: relative; overflow: hidden; }
  .next::after { content: ""; position: absolute; inset: auto -80px -120px auto; width: 300px; height: 300px;
    background: radial-gradient(closest-side, rgba(206,58,242,.22), transparent); pointer-events: none; }
  .next .when { font-size: clamp(22px, 3.2vw, 30px); font-weight: 700; letter-spacing: -.015em; margin-block: 6px 2px; }
  .next .when em { color: #E3C6FF; }

  /* Listes de séances */
  .list { display: grid; }
  .item { display: flex; gap: 14px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
  .item:first-child { border-top: 0; padding-top: 0; }
  .item:last-child { padding-bottom: 0; }
  .item-main { display: flex; gap: 14px; align-items: center; min-width: 0; flex: 1 1 260px; }
  .date-tile { width: 52px; flex: none; text-align: center; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); padding: 6px 0; }
  .date-tile .d { font-size: 19px; font-weight: 800; line-height: 1.1; }
  .date-tile .m { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .item-title { font-weight: 600; }
  .item-sub { font-size: 13px; color: var(--muted); }
  .item.is-off { opacity: .6; }
  .item.is-off .item-title { text-decoration: line-through; text-decoration-color: var(--faint); }

  /* Sous-onglets du groupe */
  .subtabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
  .subtabs::-webkit-scrollbar { display: none; }
  .subtab { background: none; border: 0; padding: 12px 14px; color: var(--muted); font-weight: 600; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; min-height: 44px; }
  .subtab[aria-current="page"] { color: var(--text); border-bottom-color: var(--orchid); }

  /* Appel */
  .att-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .sess-pick { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; margin-bottom: 16px; }
  .sess-btn { flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 8px 12px; cursor: pointer; text-align: left; min-width: 104px; }
  .sess-btn .t { font-weight: 700; font-size: 13.5px; }
  .sess-btn .s { font-size: 11.5px; color: var(--muted); }
  .sess-btn[aria-pressed="true"] { border-color: var(--violet); background: rgba(139,61,255,.14); }
  .sess-btn.todo .s { color: var(--late); }
  .att-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 16px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
  .att-row:first-child { border-top: 0; }
  .student { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .student .avatar { width: 36px; height: 36px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-strong); }
  .student-name { font-weight: 600; overflow-wrap: anywhere; }
  .seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; gap: 2px; background: var(--bg); }
  .seg button {
    border: 0; background: none; border-radius: 999px; padding: 8px 14px; min-height: 40px; cursor: pointer;
    font-weight: 700; font-size: 13px; color: var(--muted); transition: background 150ms var(--ease), color 150ms var(--ease);
  }
  .seg button:hover { color: var(--text); }
  .seg button[aria-pressed="true"][data-v="P"] { background: rgba(61,220,151,.16); color: var(--ok); }
  .seg button[aria-pressed="true"][data-v="R"] { background: rgba(255,181,71,.16); color: var(--late); }
  .seg button[aria-pressed="true"][data-v="A"] { background: rgba(255,92,122,.18); color: var(--abs); }
  .att-note { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
  .att-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
  .auto-note { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; color: var(--muted); }
  .auto-note svg { flex: none; margin-top: 2px; }

  /* Élèves */
  .toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .sort { display: inline-flex; gap: 4px; flex-wrap: wrap; }
  .sort button { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 6px 12px; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 600; min-height: 36px; }
  .sort button[aria-pressed="true"] { color: var(--text); border-color: var(--violet); background: rgba(139,61,255,.12); }
  .scard { display: grid; gap: 14px; }
  .scard-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
  .metrics { display: flex; gap: 18px; flex-wrap: wrap; }
  .metric .v { font-size: 20px; font-weight: 800; line-height: 1.1; }
  .metric .k { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; }
  .stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
  .stepper button { width: 38px; height: 38px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--muted); }
  .stepper button:hover { color: var(--text); background: var(--surface-2); }
  .stepper output { min-width: 62px; text-align: center; font-weight: 800; font-size: 15px; }
  .comps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px 18px; }
  .comp { display: grid; gap: 6px; }
  .comp-name { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
  .comp-name b { color: var(--text); font-weight: 600; }
  .dots { display: flex; gap: 4px; }
  .dots button { flex: 1; height: 26px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--surface-2); cursor: pointer; }
  .dots button.on { background: linear-gradient(90deg, var(--violet), var(--orchid)); border-color: transparent; }
  textarea, select, input[type="text"], input[type="date"].field {
    width: 100%; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px;
    padding: 10px 12px; font: inherit; font-size: 14px;
  }
  textarea { resize: vertical; min-height: 64px; }
  textarea:focus, select:focus, input:focus { outline: 2px solid var(--violet); outline-offset: 0; border-color: transparent; }
  select, input.field { min-height: 40px; width: auto; }

  /* Tableaux */
  .table-wrap { overflow-x: auto; margin-inline: -4px; padding-inline: 4px; }
  table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 640px; }
  th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 0 12px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
  tr:last-child td { border-bottom: 0; }
  td:first-child, th:first-child { padding-left: 0; }
  tr.click { cursor: pointer; }
  tr.click:hover td { background: rgba(255,255,255,.02); }
  .right { text-align: right; }

  /* Rémunération */
  .pay { display: grid; gap: 14px; align-content: start; }
  .pay-amount { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
  .pay-amount small { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
  .pay-date { font-size: 15px; }
  /* Paiements d'une carte (sous le montant), reste dû et bouton « Payer » ; résumé « Vous devez à » (1.8.28). */
  .dette { display: grid; gap: 8px; margin: 2px 0 4px; }
  .en-alerte { border-color: var(--abs) !important; box-shadow: inset 0 0 0 1px var(--abs); }
  .rythme { cursor: help; }
  .nom-edit { font: inherit; color: inherit; padding: 0; text-align: left; }
  .nom-edit span, .sv-cell > span[aria-hidden] { opacity: .55; font-size: .85em; }
  .sv-cell { font: inherit; color: inherit; padding: 0; text-align: inherit; }
  .dette > .btn { justify-self: start; }
  .paies { display: grid; gap: 4px; }
  .paie { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
  .dette-reste { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 15px; }
  .dette-reste b { font-size: 18px; color: var(--late); }
  .dette-prof { display: grid; gap: 10px; padding: 14px 0 4px; border-top: 1px solid var(--line); }
  .dette-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .dette-qui { font-size: 17px; }
  .dette-tot { font-size: 24px; font-weight: 800; color: var(--late); }
  .dette-detail { display: flex; flex-wrap: wrap; gap: 6px; }
  .dette-detail .chip { gap: 6px; }
  .pay-date em { font-size: 19px; color: #E3C6FF; }
  .shift { font-size: 13px; color: var(--late); }

  /* Envois en différé */
  .bubble-wrap { background: #0B141A; border-radius: 14px; padding: 14px; border: 1px solid var(--line); }
  .bubble { background: #005C4B; color: #E9EDEF; border-radius: 10px 10px 2px 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.5; max-width: 520px; margin-left: auto; }
  .bubble a { color: #53BDEB; }
  .bubble .meta { text-align: right; font-size: 11px; color: rgba(233,237,239,.6); margin-top: 4px; }
  .mail { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; }

  /* Connexion */
  .login { min-height: calc(100vh - 40px); display: grid; place-items: center; padding-block: 40px; }
  .login-card { width: min(100%, 520px); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 5vw, 36px); display: grid; gap: 18px; }
  .login-card h1 { font-size: clamp(28px, 6vw, 38px); font-weight: 700; letter-spacing: -.02em; }
  .accounts { display: grid; gap: 8px; }
  .acc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; text-align: left; min-height: 56px; transition: border-color 150ms var(--ease); }
  .acc:hover { border-color: var(--violet); }
  .acc .meta { flex: 1; min-width: 0; }
  .acc .n { font-weight: 600; }
  .acc .s { font-size: 12.5px; color: var(--muted); }
  .acc.admin { background: rgba(139,61,255,.10); border-color: rgba(139,61,255,.4); }

  /* Toast */
  .toast {
    position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px);
    background: var(--surface-2, #181022); color: var(--text); border: 1px solid rgba(206, 58, 242, .55); box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px;
    max-width: min(92vw, 560px); opacity: 0; pointer-events: none; transition: opacity 200ms var(--ease), transform 200ms var(--ease); z-index: 50;
  }
  .toast.show { opacity: 1; transform: translate(-50%, 0); }

  .confirm { background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; width: 100%; font-size: 13.5px; }
  .empty { padding: 26px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--r); }

  @media (max-width: 640px) {
    .wrap { padding-inline: 16px; }
    .brand span { display: none; }
    .who-text { display: none; }
    .top .wrap { gap: 8px 12px; padding-block: 8px; }
    .tabs { order: 3; flex-basis: 100%; }
    .att-row { grid-template-columns: 1fr; }
    .seg { width: 100%; }
    .seg button { flex: 1; }
    .panel { padding: 16px; }
  }
  @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

  /* Connexion (formulaire WordPress) */
  #loginform { display: grid; gap: 14px; margin: 0; }
  #loginform p { margin: 0; display: grid; gap: 6px; }
  #loginform label { font-size: 13px; color: var(--muted); font-weight: 600; }
  #loginform input[type="text"], #loginform input[type="password"] { width: 100%; min-height: 46px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; font: inherit; }
  #loginform .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
  #loginform .button-primary { min-height: 48px; width: 100%; border: 0; border-radius: 999px; background: var(--violet); color: var(--on-accent); font: inherit; font-weight: 700; cursor: pointer; }
  #loginform .button-primary:hover { background: #9a55ff; }
  .login-card a { color: #D9C2FF; }
  .preview-bar { background: rgba(139,61,255,.16); border-bottom: 1px solid rgba(139,61,255,.4); font-size: 13.5px; padding-block: 8px; }
  .preview-bar .wrap { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; }
  .preview-bar button { background: none; border: 0; color: #E3C6FF; font-weight: 700; cursor: pointer; padding: 4px 0; }

  /* ---------- Cours de conversation : thème et jeu de la séance (1.8.22) ---------- */
  .cv-paso { display: flex; align-items: center; gap: 10px; margin: 18px 0 10px; font-weight: 700; font-size: 14.5px; }
  .cv .att-head + .cv-paso, .cv p + .cv-paso { margin-top: 4px; }
  .cv-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--violet), var(--orchid)); flex: none; }
  .cv-temas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
  .cv-tema { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; min-height: 64px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); cursor: pointer; }
  .cv-tema b { display: block; font-size: 15px; line-height: 1.3; }
  .cv-tema small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
  .cv-num { flex: none; display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 4px; border-radius: 10px; font-weight: 800; font-size: 14px; color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 18%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
  td .cv-num { min-width: 30px; height: 26px; font-size: 12px; border-radius: 7px; margin-right: 4px; vertical-align: middle; }
  .cv-tema[aria-pressed="true"], .cv-juego[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, rgba(111,21,203,.55), rgba(139,61,255,.45)); box-shadow: inset 0 0 0 1px rgba(206,58,242,.7); }
  .cv-tema[aria-pressed="true"] small, .cv-juego[aria-pressed="true"] small { color: #EBDDFF; }
  .cv-tema[aria-pressed="true"] b::after { content: "  ✓"; }
  .cv-mas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
  .cv-mas .btn[aria-pressed="true"] { border-color: var(--violet); background: rgba(139,61,255,.14); }
  .cv-juegos { display: flex; flex-wrap: wrap; gap: 8px; }
  .cv-juegos.cv-tous { margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
  .cv-juego { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text); font-weight: 600; cursor: pointer; text-align: left; }
  .cv-juego small { color: var(--muted); font-weight: 500; }
  .cv-juego[aria-pressed="true"]::before { content: "✓"; font-weight: 800; }
  .cv-res .seg button[aria-pressed="true"][data-v="bien"] { background: rgba(61,220,151,.16); color: var(--ok); }
  .cv-res .seg button[aria-pressed="true"][data-v="regular"] { background: rgba(255,181,71,.16); color: var(--late); }
  .cv-res .seg button[aria-pressed="true"][data-v="no"] { background: rgba(255,92,122,.18); color: var(--abs); }
  .cv-libre { display: grid; gap: 6px; margin-top: 10px; }
  .cv-libre .row { flex-wrap: nowrap; }
  .cv-libre input.field { flex: 1; min-width: 0; width: 100%; }
  .cv-lista { margin-top: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); padding: 10px; max-height: 420px; overflow: auto; }
  .cv-lista input.field { width: 100%; margin-bottom: 4px; }
  .cv-fam { display: flex; align-items: center; gap: 8px; margin: 12px 4px 6px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--c) 60%, #fff); }
  .cv-fam::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
  .cv-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; text-align: left; padding: 6px 10px; border-radius: 10px; border: 0; background: none; color: var(--text); cursor: pointer; }
  .cv-item:hover, .cv-item[aria-pressed="true"] { background: var(--surface-2); }
  .cv-item .cv-num { min-width: 32px; height: 28px; font-size: 12.5px; border-radius: 8px; }
  .cv-item .ya { margin-left: auto; font-size: 12px; color: var(--faint); white-space: nowrap; }
  .cv-guarda { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
  .cv-guarda b { color: var(--ok); }
  .cv-guia { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
  .cv-guia .btn[aria-pressed="true"] { border-color: var(--violet); background: rgba(139,61,255,.14); }
  .lang-sw button { min-height: 32px; padding: 4px 10px; font-size: 12.5px; }
  .lang-sw button[aria-pressed="true"] { background: rgba(139,61,255,.22); color: var(--text); }

  /* ---------- Minutes Zoom (1.8.24) ---------- */
  .mn-bar { margin-top: 10px; }
  .mn-bar .bar span { background: linear-gradient(90deg, #2FB37A, #3DDC97); }
  .mn-attente { color: var(--late); margin-top: 4px; }
  .mn-mots { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
  .mn-mots .row { flex-wrap: nowrap; }
  .mn-mots input.field { flex: 1; min-width: 0; width: 100%; }

  /* Administration (1.8.24) : avec l’onglet « Individuels », le menu passe sur sa propre ligne quand la place manque. */
  /* 1.8.25 : la largeur de la page est limitée, donc la règle dépend du nombre d’onglets et non de la largeur de l’écran. */
  .top .tabs.tabs-long { order: 3; flex-basis: 100%; }

  /* 1.8.26 : heures faites modifiables par l'administration */
  .hours-edit { all: unset; cursor: pointer; border-bottom: 1px dashed var(--muted); }
  .hours-edit:hover, .hours-edit:focus-visible { color: #C9A8FF; border-color: #C9A8FF; }

  /* ---------- Minutes Zoom : « Que s'est-il passé ? » (1.8.31) ---------- */
  .mn-an { display: grid; gap: 4px; margin-top: 6px; }
  .mn-an .chip { justify-self: start; }
  .mn-an-txt { color: var(--text); opacity: .85; }
  .mn-an .link-btn { justify-self: start; }
