/* Goudilingua — feuille de style unique. Jetons de couleur en haut, composants ensuite. */

@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('ahn-latin.18b2a1a39a.woff2') format('woff2-variations'), url('ahn-latin.18b2a1a39a.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Atkinson Next';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('ahn-latin-ext.7dae0c6c66.woff2') format('woff2-variations'), url('ahn-latin-ext.7dae0c6c66.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --appw: 540px;           /* largeur de l'app : téléphone ; plus large sur ordinateur */
  color-scheme: light;
  --bg: #F3F5F9;
  --surface: #FFFFFF;
  --surface-2: #EBEFF5;
  --line: #D9DFE8;
  --switch-off: #8F9AAE;   /* interrupteur éteint et piste des curseurs : lisibles (contraste 3:1, audit A4-05) */
  --track: #C3CBD8;
  --text: #131C2E;
  --text-2: #465266;
  --muted: #5B6478;
  --ink: #2346C8;          /* encre bleue : ta voix, les actions */
  --ink-fill: #2346C8;
  --ink-press: #1B389F;
  --on-ink: #FFFFFF;
  --ink-soft: #E4EAFB;
  --ink-line: #BCC9F3;
  --pen: #C4301D;          /* stylo rouge : les corrections */
  --pen-soft: #FBE7E3;
  --fix: #0F7A4A;          /* la forme corrigée */
  --fix-soft: #E1F3E9;
  --amber: #915C00;        /* prononciation approximative */
  --amber-line: #D8962A;
  --amber-soft: #FAEFD7;
  --seq-0: #E6EAF0;
  --seq-1: #9DB0F0;
  --seq-2: #7690E6;
  --seq-3: #4F6DD9;
  --seq-4: #2346C8;
  --track: #DCE3FA;
  --shadow: 0 1px 2px rgba(19, 28, 46, .06), 0 6px 20px rgba(19, 28, 46, .07);
  --radius: 16px;
  --tabbar-h: 64px;
  --font: 'Atkinson Next', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #10182A;
    --surface: #1C2740;
    --surface-2: #253150;
    --line: #36445F;
  --switch-off: #4A5873;
  --track: #34405A;
    --switch-off: #4A5873;
    --track: #34405A;
    --text: #EEF2F8;
    --text-2: #C6CEDC;
    --muted: #A3ADC0;
    --ink: #8EA5FF;
    --ink-fill: #3F61EA;
    --ink-press: #3453D0;
    --on-ink: #FFFFFF;
    --ink-soft: #24356B;
    --ink-line: #4256A0;
    --pen: #FF806F;
    --pen-soft: #3A1D1C;
    --fix: #5CD6A0;
    --fix-soft: #123325;
    --amber: #F2B654;
    --amber-line: #C98A22;
    --amber-soft: #37290F;
    --seq-0: #36445F;
    --seq-1: #3B51AC;
    --seq-2: #4F6AD8;
    --seq-3: #728CF2;
    --seq-4: #A7B8FF;
    --track: #22306A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10182A;
  --surface: #1C2740;
  --surface-2: #253150;
  --line: #36445F;
  --switch-off: #4A5873;
  --track: #34405A;
  --text: #EEF2F8;
  --text-2: #C6CEDC;
  --muted: #A3ADC0;
  --ink: #8EA5FF;
  --ink-fill: #3F61EA;
  --ink-press: #3453D0;
  --on-ink: #FFFFFF;
  --ink-soft: #24356B;
  --ink-line: #4256A0;
  --pen: #FF806F;
  --pen-soft: #3A1D1C;
  --fix: #5CD6A0;
  --fix-soft: #123325;
  --amber: #F2B654;
  --amber-line: #C98A22;
  --amber-soft: #37290F;
  --seq-0: #36445F;
  --seq-1: #3B51AC;
  --seq-2: #4F6AD8;
  --seq-3: #728CF2;
  --seq-4: #A7B8FF;
  --track: #22306A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Fond de la page racine : la zone sous l'app (barre du téléphone, rechargement, hauteur recalculée) n'est jamais noire. */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
/* « Tirer pour actualiser » (Chrome sur Android) : gardé partout, pour pouvoir actualiser l'app depuis n'importe quel écran ;
   coupé seulement dans la séance (il rechargeait la conversation et la faisait repartir de zéro), dans les exercices en cours
   (lecture, prononciation, révision des cartes : le geste de défilement ne doit jamais les recharger) et pendant qu'une
   fenêtre du bas est ouverte (le glisser vers le bas la ferme). Ce réglage ne compte que sur l'élément racine. */
html:has(body[data-screen="session"]), html:has(body[data-screen="read"]), html:has(body[data-screen="pron"]), html:has(body[data-screen="review"]), html.sheet-open { overscroll-behavior-y: none; }
body[data-screen="session"] { overflow: hidden; }
body[data-screen="session"] #app { min-height: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
a { color: var(--ink); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 27px; line-height: 1.2; font-weight: 750; letter-spacing: -0.01em; }
h2 { font-size: 21px; line-height: 1.25; font-weight: 720; }
h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { flex: none; display: block; }
[hidden] { display: none !important; }

#app { max-width: var(--appw); margin: 0 auto; min-height: 100dvh; position: relative; }

/* ---------- Screens ---------- */
.screen { padding: 8px 16px calc(var(--tabbar-h) + 28px + env(safe-area-inset-bottom)); }
.screen.no-tabbar { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 12px; min-height: 64px; }
.topbar .title-block { min-width: 0; }
.topbar .sub { color: var(--muted); font-size: 15px; margin-top: 2px; }
.topbar.compact { min-height: 56px; padding: 8px 0; }
.back-row { display: flex; align-items: center; gap: 6px; margin-left: -8px; }
.section { margin-top: 28px; }
.section > h2 { margin-bottom: 12px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
/* (24.10.2026 : « Prononciation » et « Travailler ma prononciation » sur une ligne de 372 px élargissaient toute la page
   à 405 px ; la fenêtre de partage, posée sur cette largeur, était coupée à droite. Le bouton passe dessous.) */
.section-head h2 { margin: 0; }
.lede { color: var(--text-2); font-size: 16px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.stack > * + * { margin-top: 12px; }
.row-gap { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, transform .1s ease;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--ink-fill); color: var(--on-ink); }
.btn-primary:active { background: var(--ink-press); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--text); }
.btn-ghost { background: transparent; color: var(--ink); padding: 0 12px; }
.btn-danger { background: var(--pen-soft); color: var(--pen); }
.btn-block { display: flex; width: 100%; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 15px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row > .btn { flex: 1 1 auto; }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  border: 0; background: transparent; color: var(--text-2); flex: none;
}
.icon-btn:active { background: var(--surface-2); }
.icon-btn.sm { width: 44px; height: 44px; }
.icon-btn.on { color: var(--ink); background: var(--ink-soft); }
.icon-btn[disabled] { opacity: .45; }

/* ---------- Lists & rows ---------- */
.list { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 12px 16px;
  background: none; border: 0; text-align: left; text-decoration: none; color: var(--text);
}
.list > .row + .row, .list > * + .row, .list > .row + * { border-top: 1px solid var(--line); }
button.row:active, a.row:active { background: var(--surface-2); }
.row-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); flex: none; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 650; font-size: 16px; line-height: 1.3; }
.row-sub { color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 2px; }
.row-end { color: var(--muted); display: flex; align-items: center; gap: 6px; font-size: 14px; flex: none; }
.row .chev { color: var(--muted); }
/* Jeux de rôle en cartes (16.10.2026) : une couleur par scène, le personnage nommé. */
.scene-list { display: grid; gap: 10px; }
.scene-list > .row, .scene-list > .saved-row, .scene { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); }
.scene { display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-decoration: none; color: var(--text); }
.scene:active { background: var(--surface-2); }
.sc-icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); flex: none; align-self: flex-start; }
.sc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sc-title { font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.sc-title .today-badge { margin-left: 8px; }
.sc-sub { color: var(--muted); font-size: 14px; line-height: 1.35; margin-top: 3px; }
.sc-who { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.sc-av { width: 24px; height: 24px; border-radius: 50%; background: var(--ink-soft); color: var(--ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; flex: none; }
.scene .chev { color: var(--muted); flex: none; }
.scene .won-mark { color: var(--fix); display: inline-grid; place-items: center; flex: none; }
/* Scénarios enregistrés (Pratiquer, Jeux de rôle) : la ligne mène à la séance, la corbeille à côté. */
.saved-row { display: flex; align-items: center; }
.saved-row > .row { flex: 1; min-width: 0; }
.saved-row > .icon-btn { margin-right: 6px; color: var(--muted); }
.list > .saved-row + .saved-row { border-top: 1px solid var(--line); }
.mine-badge { display: inline-block; margin-left: 4px; padding: 1px 8px; border-radius: 999px; background: var(--ink-soft); color: var(--ink); font-size: 12px; font-weight: 650; line-height: 1.5; vertical-align: 2px; white-space: nowrap; }

/* ---------- Home ---------- */
.today { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.today-ring { position: relative; width: 76px; height: 76px; flex: none; }
.today-ring svg { transform: rotate(-90deg); }
.today-ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ring-label b { font-size: 22px; font-weight: 780; display: block; }
.ring-label span { font-size: 11.5px; color: var(--muted); }
.today-text .big { font-size: 19px; font-weight: 700; line-height: 1.3; }
/* Série (11.10.2026, « créer de la dopamine ») : pastille orange avec la flamme, record, et la semaine en ronds. */
.today-text .streak { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--text-2); margin-top: 6px; font-size: 15px; }
.streak-start { display: inline-flex; align-items: flex-start; gap: 5px; font-weight: 650; color: var(--text); }
.streak-start svg { flex: none; margin-top: 2px; color: var(--amber-line); }
.streak-pill { display: inline-flex; align-items: center; gap: 3px; padding: 2px 9px 2px 6px; border-radius: 99px; background: var(--amber-line); color: #fff; }
.streak-pill b { font-size: 16px; font-weight: 800; }
.streak-label { font-weight: 650; color: var(--text); }
.streak-record { padding: 1px 8px; border-radius: 99px; background: var(--amber-soft); color: var(--amber); font-size: 12.5px; font-weight: 750; }
.streak-week { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; }
.sw-day { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.sw-day i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: #fff; }
.sw-day b { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--muted); }
.sw-day.done i { background: var(--amber-line); }
.sw-day.done i svg { width: 13px; height: 13px; }
.sw-day.is-today:not(.done) i { background: transparent; box-shadow: inset 0 0 0 2px var(--amber-line); }
/* Aujourd'hui : un anneau autour de la pastille et la lettre en noir, sans soulignement qui ressemble à un lien (audit A4-22). */
.sw-day.is-today b { color: var(--text); font-weight: 800; }
.sw-day.is-today.done i { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--amber-line); }
.sw-day.future i { opacity: .55; }

.feature {
  margin-top: 22px; background: var(--ink-fill); color: var(--on-ink); border-radius: 22px; padding: 20px 20px 18px;
  position: relative; overflow: hidden;
}
.feature .kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.feature h2 { font-size: 24px; margin-top: 6px; color: var(--on-ink); }
.feature .focus { margin-top: 6px; opacity: .92; font-size: 15px; }
.feature .btn { margin-top: 16px; background: #FFFFFF; color: #1B2F86; }
.feature .done-note { margin-top: 14px; font-size: 14px; opacity: .9; display: flex; gap: 6px; align-items: center; }
.feature .wave { position: absolute; right: -8px; top: 14px; opacity: .12; }
.feature h2, .feature .focus { padding-right: 48px; }
.feature .focus { text-wrap: balance; }

/* Mission du jour (accueil) : carte claire sous la leçon du jour, au vert des missions réussies. */
.mission-day { margin-top: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 12px; box-shadow: var(--shadow); }
.mission-day .md-head { display: flex; gap: 12px; align-items: center; }
.mission-day .md-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--fix-soft); color: var(--fix); }
.mission-day .md-kicker { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--fix); }
.mission-day h2 { font-size: 20px; line-height: 1.25; margin-top: 2px; }
.mission-day .md-goal { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; font-size: 15.5px; line-height: 1.4; }
.mission-day .md-goal .icon { flex: none; color: var(--fix); margin-top: 3px; }
.mission-day .md-who { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 9px 12px; border-radius: 12px; background: var(--bg); font-size: 15px; line-height: 1.4; color: var(--text); }
.mission-day .md-who .icon { flex: none; color: var(--fix); margin-top: 2px; }
.mission-day .md-done { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--fix); }
.mission-day .btn-block { margin-top: 14px; }
.mission-day .adult-note { margin-top: 8px; }
.mission-day .md-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 10px; margin-top: 8px; }
.mission-day .md-foot .mission-create { margin-left: auto; padding-left: 4px; padding-right: 4px; }

.banner {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
  background: var(--amber-soft); color: var(--text); margin-top: 16px;
}
.banner .icon { color: var(--amber); margin-top: 2px; }
.banner.info { background: var(--ink-soft); }
.banner.info .icon { color: var(--ink); }
.banner.error { background: var(--pen-soft); }
.banner.error .icon { color: var(--pen); }
.banner .btn { margin-top: 10px; }
/* Bilan d'une séance trop courte (03.11.2026) : à la place du niveau, bien visible. */
.banner.short-level { margin-top: 0; }
.banner.short-level p { margin: 0; }
.banner.short-level .short-title { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
/* Code reçu par lien qui attend un compte (« Ton accès t'attend », 15.10.2026). */
.held-card { display: block; }
.held-card .held-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.held-card .held-head .icon { margin-top: 0; flex: none; }
/* Bouton pleine largeur ; un texte trop long passe à la ligne au lieu de dépasser. */
.held-card .btn { width: 100%; margin-top: 14px; white-space: normal; text-align: center; padding: 8px 12px; font-size: 15px; }
.held-card p { margin: 0; }
.held-card p + p { margin-top: 4px; }
.held-card .held-foot { margin-top: 10px; text-align: center; }
.held-card .held-title { font-weight: 750; font-size: 16px; }
.held-note { margin-top: 12px; }
.held-note p { margin: 0; }
.leave-warn { margin-top: 0; }
.leave-warn p { margin: 0; }
.leave-warn p + p { margin-top: 8px; font-weight: 600; }

/* ---------- Chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15px; font-weight: 550;
}
.chip[aria-pressed="true"] { background: var(--ink-soft); border-color: var(--ink-line); color: var(--ink); font-weight: 650; }
.chip .icon { width: 16px; height: 16px; }
.chip.sm { min-height: 36px; padding: 0 11px; font-size: 14px; }
.chip.static { cursor: default; }
.chip[aria-disabled="true"] { color: var(--muted); border-style: dashed; cursor: default; }
.chip.done { background: var(--fix-soft); border-color: transparent; color: var(--fix); }

/* ---------- Forms ---------- */
.field { display: block; margin-top: 18px; }
.field > span { display: block; font-weight: 650; font-size: 15px; margin-bottom: 8px; }
.field .hint { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; font-weight: 400; }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); font-size: 16px;
}
.input:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: transparent; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%236B7385' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap .icon-btn { position: absolute; right: 3px; top: 3px; }
.radio-list { display: grid; gap: 8px; }
.radio {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); text-align: left; width: 100%;
}
.radio[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--ink-soft); }
.radio .tag { font-weight: 780; min-width: 30px; color: var(--ink); }
.radio .desc { color: var(--text-2); font-size: 15px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 999px; border: 0; background: var(--switch-off); transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch[aria-checked="true"] { background: var(--ink-fill); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
input[type="range"] { width: 100%; accent-color: var(--ink-fill); }
/* Curseurs dessinés (audit A4-06 : la piste restait blanche en thème sombre) : piste aux couleurs du thème, pouce de 24 px. */
input[type="range"] { -webkit-appearance: none; appearance: none; background: transparent; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--track); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--ink-fill); border: 2px solid var(--surface); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--track); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--ink-fill); }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--ink-fill); border: 2px solid var(--surface); }
input[type="range"]:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

/* ---------- Onboarding ---------- */
.onb { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: 12px 16px calc(20px + env(safe-area-inset-bottom)); }
.onb-progress { display: flex; gap: 6px; margin: 8px 0 18px; }
.onb-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.onb-progress i.on { background: var(--ink-fill); }
.onb-body { flex: 1; }
.onb-foot { position: sticky; bottom: 0; padding-top: 16px; background: linear-gradient(to bottom, transparent, var(--bg) 30%); }
.onb .step-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.onb h1 { margin-top: 6px; }
.onb .lede { margin-top: 8px; }
/* Accueil en 5 étapes (16.10.2026) : prénom bien en vue, corrections en trois choix titrés. */
.onb-name { margin-top: 18px; }
.input.input-lg { font-size: 20px; padding: 14px 16px; font-weight: 600; }
.onb .radio .desc { display: flex; flex-direction: column; gap: 3px; }
.onb .radio .opt-title { color: var(--text); font-size: 16px; font-weight: 700; }
.onb-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
.onb-note svg { flex: none; margin-top: 2px; }
.onb-accent { margin: 14px 0 6px; }
.welcome-body { display: flex; flex-direction: column; }
/* Accueil à l'échelle de l'écran (14.10.2026) : une seule taille de base, qui suit la largeur et la hauteur ;
   textes, logo, pastilles et espaces en em, donc les proportions restent les mêmes partout.
   17 px sur 412 × 915 ; 14 px au plus petit, 20 px au plus grand. Boutons et langues gardent leur taille (toucher). */
.welcome-main { --sq: 1; font-size: clamp(14px, min(4.13vw, 1.86vh), 20px); margin-block: auto; padding-block: calc(.6em * var(--sq)); } /* centré quand il y a de la place, jamais coupé sinon */
.welcome-mark { margin: 0 0 calc(1em * var(--sq)); display: flex; align-items: center; gap: .8em; }
.welcome-mark img { width: 3.75em; height: 3.75em; border-radius: 26%; box-shadow: var(--shadow); }
.welcome-name { font-size: 1.53em; font-weight: 800; letter-spacing: -0.01em; color: var(--text); }
.welcome-title { font-size: 1.88em; line-height: 1.12; text-wrap: balance; }
.welcome-sub { font-size: 1.18em; font-weight: 700; color: var(--ink); margin-top: .3em; }
/* « go accueil langues » (02.11.2026, variante 1) : le nom de la langue apprise dans une pastille douce qui ouvre le
   choix ; il reste sur la même ligne que sa flèche. Points sous le téléphone : la langue montrée parmi celles proposées. */
.welcome-title-slot { display: contents; }
.lang-pick-wrap { white-space: nowrap; }
/* Pastille de la langue apprise (16.11.2026, propriétaire : « un poil trop discret ») : contour bleu et flèche plus grande et
   plus épaisse (le rond plein autour de la flèche refusé : « on voit juste un point bleu »). */
.lang-pick { display: inline-flex; align-items: center; gap: .16em; padding: .02em .14em .06em .3em; margin: 0 .04em; border: 2px solid var(--ink-line); border-radius: .34em; background: var(--ink-soft); color: var(--ink); font: inherit; line-height: inherit; white-space: nowrap; cursor: pointer; vertical-align: baseline; }
.lang-pick svg { width: .62em; height: .62em; stroke-width: 3.4; flex: none; }
.lang-pick:active { background: var(--ink-line); }
.wd-langs { display: flex; gap: 6px; justify-content: center; margin-top: calc(.9em * var(--sq, 1)); }
.wd-langs i { width: 7px; height: 7px; border-radius: 4px; background: var(--line); transition: width .25s, background .25s; }
.wd-langs i.on { width: 20px; background: var(--ink); }
.welcome-langs .tag { min-width: 4.4em; font-size: 1.05em; }
/* Aperçu de l'app : deux répliques de l'IA et ta phrase corrigée ; plus loin du slogan qu'il ne l'est du logo (deux groupes). */
.welcome-demo { display: grid; gap: .7em; }
/* Miniature (version A d'origine, choix du propriétaire, 14.10.2026) : petit téléphone étroit, texte à 0,74 de la base (12 px au moins) ;
   sur un écran plus petit, seuls les espaces se resserrent (--sq, réglé par fitWelcome). */
.wd-phone { --bezel: #1B2233; margin: calc(2.2em * var(--sq)) auto 0; width: 15.5em; max-width: 86%; border-radius: 2.1em; padding: .55em; background: var(--bezel); box-shadow: 0 1.2em 2.4em -1em rgba(20,30,70,.45); }
/* Cadre et écran dans la même unité (la base de l'accueil) : rayon intérieur = rayon du cadre moins son bord, encoche à l'échelle (14.10.2026). */
.wd-screen { position: relative; overflow: hidden; border-radius: 1.6em; background: var(--bg); padding: max(1.3em, calc(1.6em * var(--sq))) .7em max(.6em, calc(1em * var(--sq))); }
.wd-screen::before { content: ''; position: absolute; top: .55em; left: 50%; width: 3.6em; height: .55em; margin-left: -1.8em; border-radius: 1em; background: var(--bezel); }
.wd-screen .welcome-demo { font-size: max(12px, .74em); gap: calc(.7em * var(--sq)); }
.wd-screen .wd-text { box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wd-micbar { display: flex; justify-content: center; margin-top: max(.5em, calc(1em * var(--sq))); }
.wd-mic { flex: none; width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: var(--ink-fill); font-size: .74em; }
.wd-mic svg { width: 1.3em; height: 1.3em; }
.wd-line { display: flex; gap: .6em; align-items: flex-end; }
/* La conversation se joue comme en vrai (14.10.2026, demande du propriétaire) : l'IA « travaille » (trois points, comme dans
   l'app) puis sa question s'écrit lettre par lettre ; ta phrase s'écrit telle que tu l'as dite ; « go » est barré en rouge,
   « went » arrive en vert ; l'IA travaille puis répond. L'état de base est l'état final (mouvement réduit, mesure de
   fitWelcome) ; playDemo (onboarding.js) pose wd-run puis les étapes. */
.wd-line { position: relative; }
.welcome-demo del.wrong { position: relative; text-decoration: none; }
.welcome-demo del.wrong::after { content: ''; position: absolute; left: -1px; right: -1px; top: 54%; height: 2px; border-radius: 1px; background: var(--pen); transform-origin: left center; }
.wd-dots { display: none; position: absolute; left: 2.6em; bottom: 0; align-items: center; padding: .9em 1em; background: var(--surface); border-radius: 20px 20px 20px 6px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.wd-dots .dots { gap: .3em; }
.wd-dots .dots i { width: .5em; height: .5em; }
.wd-wait .wd-line, .wd-run .wd-line { visibility: hidden; }
.wd-run .wd-line:is(.think, .on) { visibility: visible; animation: wd-in .4s ease-out both; }
.wd-run .wd-line.think :is(.wd-text, .bubble) { visibility: hidden; }
.wd-run .wd-line.think .wd-dots { display: flex; }
.wd-run .wd-line.think .wd-avatar { animation: wd-work 1s ease-in-out infinite; }
.wd-run .ch:not(.shown) { visibility: hidden; }
.wd-run.struck del.wrong { transition: color .3s; }
.wd-run.struck del.wrong::after { transition: transform .25s ease-out; }
.wd-run:not(.struck) del.wrong { color: var(--text); }
.wd-run:not(.struck) del.wrong::after { transform: scaleX(0); }
.wd-run.fixed ins.right { transition: font-size .3s ease-out, opacity .3s ease-out, padding .3s ease-out, margin .3s ease-out; }
.wd-run:not(.fixed) ins.right { font-size: 0; opacity: 0; padding: 0; margin: 0; }
/* Accueil « qui claque » (choix du propriétaire, 14.10.2026, vidéo 5) : halo derrière le téléphone, « sans gêne » en couleur,
   micro rouge qui pulse pendant que ta phrase s'écrit, « went » qui arrive avec un rebond. */
.welcome-main { isolation: isolate; overflow-x: clip; }
.wd-phone { position: relative; --halo-a: rgba(47, 111, 240, .42); --halo-b: rgba(147, 51, 234, .28); --rec: #E5484D; }
.wd-phone::after { content: ''; position: absolute; inset: -18% -30%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, var(--halo-a), var(--halo-b) 55%, transparent 100%); filter: blur(10px); }
.welcome-title { --hl-a: #2F6FF0; --hl-b: #9333EA; }
.welcome-title .hl { background: linear-gradient(90deg, var(--hl-a), var(--hl-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wd-screen:has(.wd-run .wd-me.on):not(:has(.welcome-demo.struck)) .wd-mic { background: var(--rec); animation: wd-mic 1s ease-out infinite; }
.wd-run.fixed ins.right { display: inline-block; animation: wd-pop .4s ease-out .05s both; }
@keyframes wd-mic { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rec) 55%, transparent); } 100% { box-shadow: 0 0 0 .9em transparent; } }
@keyframes wd-pop { 0% { transform: scale(.5); } 55% { transform: scale(1.3); box-shadow: 0 0 0 .35em var(--fix-soft); } 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; } }
.wd-me { justify-content: flex-end; }
.wd-me .bubble { font-size: 1em; padding: .65em .9em; line-height: 1.45; }
.wd-avatar { flex: none; width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; color: #FFFFFF; background: linear-gradient(135deg, var(--th-a), var(--th-b)); }
.wd-avatar svg { width: 1.06em; height: 1.06em; }
.wd-text { background: var(--surface); border-radius: 20px 20px 20px 6px; padding: .65em .9em; font-size: 1em; line-height: 1.45; box-shadow: var(--shadow); text-wrap: pretty; }
.welcome-lede { margin-top: calc(2.2em * var(--sq)); color: var(--text-2); font-size: 1em; line-height: 1.5; text-wrap: pretty; }
.welcome-exams { display: flex; align-items: center; gap: .5em; margin-top: calc(.9em * var(--sq)); color: var(--muted); font-size: .88em; }
.welcome-exams svg { flex: none; color: var(--ink); width: 1.2em; height: 1.2em; }
@keyframes wd-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes wd-work { 50% { transform: scale(1.12); box-shadow: 0 0 0 .3em rgba(124, 58, 237, .2); } }
.onb-signed { margin: 12px 0 2px; text-align: center; overflow-wrap: anywhere; }
.onb-signed svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--ink-soft); color: var(--ink); font-weight: 780; font-size: 14px; display: grid; place-items: center; }
.key-status { margin-top: 12px; font-size: 15px; display: flex; gap: 8px; align-items: flex-start; }
.key-status.ok { color: var(--fix); }
.key-status.err { color: var(--pen); }
.studio-btn { margin-top: 16px; }
.panel.key-free { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; background: var(--fix-soft); box-shadow: none; }
.panel.key-free > svg { flex: none; color: var(--fix); margin-top: 1px; }
.panel.key-free p { margin: 0; }
.btn.attention { border-color: var(--ink); color: var(--ink); animation: listen 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .btn.attention { animation: none; } }

/* ---------- Tab bar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(var(--appw), 100%); z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab { display: grid; justify-items: center; align-content: center; gap: 3px; height: var(--tabbar-h); border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; text-decoration: none; position: relative; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"]::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--ink-fill); }
.tab .badge { position: absolute; top: 8px; left: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pen); color: var(--on-pen, #fff); font-size: 11px; font-weight: 750; display: grid; place-items: center; }
/* Thème sombre : chiffre foncé sur le rouge clair (contraste suffisant). */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --on-pen: #131C2E; } }
:root[data-theme="dark"] { --on-pen: #131C2E; }

/* ---------- Toast & sheet ---------- */
.toast-host { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); transition: bottom .2s; display: grid; justify-items: center; gap: 8px; pointer-events: none; z-index: 60; padding: 0 16px; }
.toast { pointer-events: auto; max-width: 480px; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 14px; font-size: 15px; box-shadow: var(--shadow); animation: toast-in .2s ease; }
.toast-undo { position: relative; padding: 0; }
.toast-action { display: grid; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: 15px; color: inherit; background: none; border: 0; padding: 12px 16px; cursor: pointer; }
.toast-msg { padding-right: 26px; }
.toast-btn { justify-self: end; font-weight: 700; color: var(--bg); border: 1.5px solid currentColor; border-radius: 999px; padding: 6px 14px; }
body[data-chrome="bare"] .toast-host { bottom: calc(24px + env(safe-area-inset-bottom)); }
body[data-screen="session"] .toast-host { bottom: calc(var(--dock-h, calc(160px + env(safe-area-inset-bottom))) + 16px); }
/* Séance : un message sans bouton ne prend jamais un appui destiné à ce qu'il recouvre (maintenir pour parler). */
body[data-screen="session"] .toast:not(.toast-undo):not(.toast-ask) { pointer-events: none; }
@keyframes toast-in { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.scrim { position: fixed; inset: 0; background: rgba(8, 12, 22, .45); z-index: 70; display: grid; align-items: end; justify-items: center; animation: fade .15s ease; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(var(--appw), 100%); background: var(--surface); border-radius: 22px 22px 0 0; padding: 20px 16px calc(18px + env(safe-area-inset-bottom)); box-shadow: var(--shadow); max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain; animation: sheet-in .2s ease; }
.sheet.settling { transition: transform .18s ease; }
@keyframes sheet-in { from { transform: translateY(24px); } }
.sheet h2 { margin-bottom: 8px; }
.sheet .btn-row { margin-top: 18px; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: -8px auto 14px; }
.mic-help .steps { margin: 12px 0 14px; gap: 10px; }
.mic-help .steps li span { padding-top: 3px; line-height: 1.45; }
.mic-help p + p { margin-top: 10px; }

/* ---------- Session ---------- */
/* La séance occupe exactement l'écran visible (position fixe, comme la barre du bas de l'accueil et les fenêtres) : sur
   certains Android, 100dvh dépasse de la hauteur de la barre du système et la barre de boutons du bas sortait de l'écran
   (retour du propriétaire, 13.10.2026). Le document ne défile pas : plus de rechargement en tirant vers le bas. */
/* Sous le bandeau d'information du serveur s'il y en a un (--notice-h : sa hauteur, posée par service-notice.js). */
/* Pas de zoom de la page à deux doigts dans une séance (16.10.2026) : la page zoomée cachait la croix de la photo
   agrandie, qu'on ne pouvait plus rapetisser (son zoom ne défait pas celui de la page). Les photos ont leur propre zoom. */
.session { touch-action: pan-x pan-y; }
.session { position: fixed; top: var(--notice-h, 0px); right: 0; bottom: 0; left: 0; width: min(var(--appw), 100%); margin: 0 auto; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; background: var(--bg); grid-template-columns: minmax(0, 1fr); }
/* Le bandeau de contexte reste dans la grille même vide : sinon le dock prendrait toute la hauteur. */
.s-context[hidden] { display: block !important; padding: 0; border: 0; }
.s-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px 6px 4px; background: var(--bg); }
.s-head .s-title { flex: 1; min-width: 0; }
/* Bulle « Trop de corrections ? Règle-les ici » sous le bouton ⋮, une seule fois (16.10.2026). */
.s-head { position: relative; }
.opt-tip { position: absolute; top: calc(100% + 4px); right: 8px; z-index: 30; max-width: min(300px, calc(100vw - 32px));
  padding: 10px 14px; border-radius: 14px; background: var(--ink-fill); color: var(--on-ink, #fff); font-size: 15px; line-height: 1.35; font-weight: 600;
  box-shadow: 0 6px 20px rgb(0 0 0 / .18); animation: tip-in .25s ease-out; }
.opt-tip::before { content: ''; position: absolute; top: -7px; right: var(--tip-x, 60px); border: 8px solid transparent; border-top: 0; border-bottom-color: var(--ink-fill); }
@keyframes tip-in { from { opacity: 0; transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .opt-tip { animation: none; } }
.ask-name { display: flex; flex-direction: column; gap: 10px; }
.ask-name .lede { margin: 0; }
/* Mission accomplie, leçon placée : « Terminer » mis en avant (16.10.2026). */
.s-head .end-ready { animation: end-pulse 1.4s ease-in-out 3; }
@keyframes end-pulse { 50% { transform: scale(1.08); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink-fill) 25%, transparent); } }
@media (prefers-reduced-motion: reduce) { .s-head .end-ready { animation: none; } }
.sys-note.lesson-note { color: var(--fix); background: var(--fix-soft); border: 1px solid var(--fix); border-radius: 12px; padding: 10px 12px; font-weight: 650; }
.sys-note.end-note { display: flex; flex-direction: column; align-items: stretch; gap: 10px; text-align: left; }
.sys-note.end-note p { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.sys-note.end-note p svg { flex: none; margin-top: 2px; }
.sys-note.end-note .btn { align-self: center; }
.s-head .s-title b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 16px; font-weight: 700; line-height: 1.2; overflow: hidden; overflow-wrap: anywhere; } /* 2 lignes au plus (audit A4-08 : « Commander au res… » à 360 px) */
.s-head .s-title span { display: block; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-context { padding: 0 16px 8px; }
.character { display: flex; gap: 8px; align-items: flex-start; font-size: 15px; color: var(--text); padding: 2px 4px 8px; }
.character.compact { font-size: 14px; padding-bottom: 4px; align-items: center; }
.character.compact > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.character .icon { color: var(--muted); margin-top: 2px; flex: none; }
.mission { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 14px; padding: 10px 12px; font-size: 14.5px; box-shadow: var(--shadow); }
.mission .icon { color: var(--ink); margin-top: 2px; }
.mission.done { background: var(--fix-soft); }
.mission.done .icon { color: var(--fix); }
/* Séance : la mission bien visible (10.10.2026 : « très discrète, on ne voit pas qu'on doit remplir une mission »). */
.mission.mission-live { gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink-soft); border: 1.5px solid var(--ink-line); }
.mission-live .mission-icon { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--ink-fill); color: var(--on-ink); }
.mission-live .mission-icon .icon { margin: 0; color: inherit; }
.mission-live .mission-body { min-width: 0; }
.mission-live .mission-kicker { font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.mission-live .mission-text { margin-top: 1px; font-size: 16px; font-weight: 650; line-height: 1.35; color: var(--text); }
.mission.mission-live.done { background: var(--fix-soft); border-color: var(--fix); }
.mission-live.done .mission-icon { background: var(--fix); color: var(--surface); }
.mission-live.done .mission-kicker { color: var(--fix); }
/* Étapes de la mission, cochées une à une pendant la scène, et dans le bilan (11.10.2026). */
.mission-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.mission-step { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 7px; border-radius: 999px; font-size: 13.5px; font-weight: 600; line-height: 1.25; color: var(--muted); background: var(--surface); border: 1px solid var(--line); }
.mission .mission-step .icon { flex: none; margin: 0; color: var(--muted); }
.mission-step.done { color: var(--fix); border-color: var(--fix); background: var(--fix-soft); }
.mission .mission-step.done .icon { color: var(--fix); }
.mission.done .mission-step.done { background: var(--surface); }
.mission-step.just { animation: step-pop .9s ease-out; }
/* Mission repliée (après la première réplique, ou au clavier) : une ligne, le compte des étapes, un chevron pour déplier. */
.mission.mission-live { position: relative; }
.mission-live .mission-toggle { flex: none; align-self: center; margin: -6px -4px -6px 0; }
/* Flèche des cartes (mission, expressions) bien visible (propriétaire, 10.11.2026 : « je l'ai vue que sur la capture ») :
   un rond plein comme les autres boutons de la séance. */
.mission-live .mission-toggle { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink-line); color: var(--ink); }
.mission-live.done .mission-toggle { border-color: var(--fix); color: var(--fix); }
.mission-live .mission-toggle .icon { transition: transform .2s; transform: rotate(180deg); }
.mission-live.folded .mission-toggle .icon { transform: none; }
.mission.mission-live.folded { padding: 8px 10px 8px 12px; align-items: center; }
.mission-live.folded .mission-icon { width: 30px; height: 30px; border-radius: 9px; }
.mission-live.folded .mission-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mission-live.folded .mission-steps { flex-wrap: nowrap; margin-top: 6px; }
/* (« go glisser », 13.11.2026 : étapes en texte entier, la rangée glisse au doigt ; avant : rapetissées et coupées) */
.mission-live.folded .mission-step { flex: none; padding: 3px 9px 3px 6px; font-size: 13px; white-space: nowrap; }
.mission-live.folded .mission-body { flex: 1; }
@keyframes step-pop { 0% { transform: scale(.85); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .mission-step.just { animation: none; } }
/* Fête de fin de leçon ou de mission (choix du propriétaire, 12.11.2026, « A + B + C ») : médaillon au centre 2 s sur un
   voile léger (rien ne se bloque : on touche au travers), confettis sur tout l'écran, puis la carte fait la fête (.won) et la
   note de fin arrive en bas avec son bouton (--win-late : délai jusqu'au relais, posé par session.js). */
.win-veil { position: fixed; inset: 0; z-index: 57; pointer-events: none; background: color-mix(in srgb, var(--bg) 58%, transparent); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: win-fade .2s ease-out both; }
.win-veil.out { animation: win-fade-out .3s ease-in forwards; }
.win-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; pointer-events: none; }
.win-card { position: relative; display: grid; justify-items: center; gap: 4px; width: min(100%, 272px); padding: 18px 22px 24px; border-radius: 28px; text-align: center;
  background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); box-shadow: 0 24px 56px rgba(19, 28, 46, .2), 0 3px 10px rgba(19, 28, 46, .08);
  animation: win-card-in .44s cubic-bezier(.22, 1.3, .42, 1) both; }
.win-medal { position: relative; width: 112px; height: 112px; margin-bottom: 6px; }
.win-halo { position: absolute; inset: 0; border-radius: 50%; background: color-mix(in srgb, var(--fix) 13%, transparent); animation: win-pop .46s cubic-bezier(.22, 1.35, .42, 1) both; }
.win-disc { position: absolute; inset: 16px; border-radius: 50%; background: linear-gradient(180deg, #22B472 0%, #0E8A4F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), inset 0 -2px 6px rgba(4, 60, 34, .18), 0 6px 16px rgba(15, 122, 74, .32); animation: win-pop .46s .05s cubic-bezier(.22, 1.6, .42, 1) both; }
.win-check { position: absolute; inset: 16px; width: 80px; height: 80px; overflow: visible; }
.win-check path { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: win-draw .3s .22s cubic-bezier(.6, 0, .25, 1) forwards; }
.win-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(31, 168, 102, .45); opacity: 0; animation: win-ring 1s .3s cubic-bezier(.12, .6, .3, 1) forwards; }
.win-ring.r2 { border-width: 1.5px; animation-delay: .48s; }
.win-rays i { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.win-rays b { position: absolute; left: -2.5px; top: -6px; width: 5px; height: 12px; border-radius: 3px; background: #1FA866; opacity: 0; animation: win-ray .55s .3s cubic-bezier(.2, .75, .3, 1) forwards; }
.win-title { font-size: 23px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; color: var(--text); animation: win-rise .36s .18s cubic-bezier(.2, .8, .3, 1) both; }
.win-sub { font-size: 15px; font-weight: 600; color: var(--text-2); animation: win-rise .36s .26s cubic-bezier(.2, .8, .3, 1) both; }
.win-layer.out .win-card { animation: win-card-out .24s cubic-bezier(.4, 0, .7, .2) forwards; }
@keyframes win-fade { from { opacity: 0; } }
@keyframes win-fade-out { to { opacity: 0; } }
@keyframes win-card-in { from { opacity: 0; transform: translateY(16px) scale(.86); } to { opacity: 1; transform: none; } }
@keyframes win-card-out { to { opacity: 0; transform: translateY(-8px) scale(.94); } }
@keyframes win-pop { from { transform: scale(.4); } to { transform: none; } }
@keyframes win-draw { to { stroke-dashoffset: 0; } }
@keyframes win-ring { 0% { opacity: 1; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
@keyframes win-ray { 0% { opacity: 0; transform: translateY(-54px) scaleY(.35); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-72px) scaleY(1); } }
@keyframes win-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .win-card { box-shadow: 0 24px 56px rgba(0, 0, 0, .5), 0 3px 10px rgba(0, 0, 0, .3); } :root:not([data-theme="light"]) .win-rays b { background: #5CD6A0; } :root:not([data-theme="light"]) .win-ring { border-color: rgba(92, 214, 160, .45); } }
:root[data-theme="dark"] .win-card { box-shadow: 0 24px 56px rgba(0, 0, 0, .5), 0 3px 10px rgba(0, 0, 0, .3); }
:root[data-theme="dark"] .win-rays b { background: #5CD6A0; }
:root[data-theme="dark"] .win-ring { border-color: rgba(92, 214, 160, .45); }
.confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 59; pointer-events: none; }
.sys-note.mission-note { display: flex; gap: 8px; align-items: flex-start; text-align: left; color: var(--fix); background: var(--fix-soft); border: 1px solid var(--fix); border-radius: 12px; padding: 10px 12px; font-weight: 650; }
.sys-note.mission-note svg { flex: none; margin-top: 2px; }
/* Relais du médaillon : la carte de la leçon ou de la mission fait la fête (éclat vert qui s'étend), sa coche saute, puis
   la note de fin monte en bas avec un halo et « Terminer » en haut pulse. */
.mission.mission-live.done.won { position: relative; animation: card-won .62s var(--win-late, 0s) cubic-bezier(.3, 1.5, .5, 1); }
.mission.mission-live.done.won::after { content: ''; position: absolute; inset: -1.5px; border-radius: inherit; pointer-events: none; opacity: 0; animation: won-glow 1.1s var(--win-late, 0s) ease-out; }
.mission-live.done.won .mission-icon { animation: icon-won .6s calc(var(--win-late, 0s) + .1s) cubic-bezier(.3, 1.8, .5, 1) both; }
@keyframes card-won { 0% { transform: none; } 40% { transform: scale(1.025); } 100% { transform: none; } }
@keyframes won-glow { 0% { opacity: 1; box-shadow: 0 0 0 0 color-mix(in srgb, var(--fix) 50%, transparent); } 100% { opacity: 1; box-shadow: 0 0 0 14px color-mix(in srgb, var(--fix) 0%, transparent); } }
@keyframes icon-won { 0% { transform: scale(.2); } 100% { transform: scale(1); } }
.sys-note.end-note.win-late { animation: note-in .5s var(--win-late, 0s) cubic-bezier(.22, 1.3, .42, 1) both, note-glow 1.2s calc(var(--win-late, 0s) + .4s) ease-out; }
@keyframes note-in { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes note-glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--fix) 45%, transparent); } 100% { box-shadow: 0 0 0 12px color-mix(in srgb, var(--fix) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mission.mission-live.done.won, .mission.mission-live.done.won::after, .mission-live.done.won .mission-icon, .sys-note.end-note.win-late { animation: none; } }
/* « Enregistrer ce scénario » : discret, sous la mission (séance, bilan). */
.scene-save-row { margin-top: 4px; }
.btn.scene-save { min-height: 36px; padding: 0 10px; margin-left: -10px; font-size: 14px; gap: 6px; }
.scene-saved { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--fix); font-size: 14px; font-weight: 650; }
.mission .scene-save .icon, .mission .scene-saved .icon { margin-top: 0; color: inherit; }
.targets { display: flex; gap: 6px; flex-wrap: nowrap; align-items: center; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
.targets::-webkit-scrollbar { display: none; }
.targets > * { flex: none; }
.s-context:not([hidden]) { border-bottom: 1px solid var(--line); }
.mission + .targets { margin-top: 8px; }
/* Expressions de la leçon à placer (16.10.2026) : carte comme « Ta mission », pastilles sur plusieurs lignes. */
.mission + .targets-card { margin-top: 8px; }
.targets-card .targets-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.targets-card .targets-count { flex: none; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.targets-card .targets-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.target-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 4px 10px 4px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--ink-line); font-size: 15px; font-weight: 600; line-height: 1.25; color: var(--text); max-width: 100%; overflow-wrap: anywhere; }
.target-chip .icon { flex: none; margin: 0; color: var(--muted); }
.target-chip.done { background: var(--fix-soft); border-color: var(--fix); color: var(--fix); }
.target-chip.done .icon { color: var(--fix); }
.targets-card.folded .targets-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-top: 6px; }
.targets-card.folded .targets-list::-webkit-scrollbar { display: none; }
.targets-card.folded .target-chip { flex: none; white-space: nowrap; max-width: none; }
/* Rangée repliée qui glisse (mission et expressions, « go glisser », 13.11.2026) : s'arrête net sur une pastille, la
   suivante dépasse au bord ; fondu seulement du côté où il reste à voir (data-fade posé par swipeRow de session.js). */
.swipe-row { overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; scroll-padding-left: 0; }
.swipe-row::-webkit-scrollbar { display: none; }
.swipe-row > * { scroll-snap-align: start; flex: none; }
.swipe-row[data-fade="r"] { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
.swipe-row[data-fade="l"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 15%); mask-image: linear-gradient(90deg, transparent, #000 15%); }
.swipe-row[data-fade="lr"] { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mission-live.folded { cursor: pointer; }
.targets .lbl { font-size: 13px; color: var(--muted); margin-right: 2px; white-space: nowrap; }

/* Examen : partie en cours et matériel de l'épreuve (images, photos, idées), compact pour laisser voir la conversation. */
.exam-panel { background: var(--surface); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); max-height: 46vh; overflow-y: auto; }
.exam-panel.has-cards { max-height: 56vh; }
.character + .exam-panel, .mission + .exam-panel { margin-top: 8px; }
.exam-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 14.5px; }
.exam-head .small { white-space: nowrap; }
/* Consigne de la partie (situation de la tâche commune, question des photos) : en gras, elle se détache de la conversation. */
.exam-lead { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 6px; line-height: 1.4; }
.exam-q.exam-title { margin: 8px 0 0; line-height: 1.35; }
.exam-situation { font-size: 14px; font-weight: 400; color: var(--text-2); margin-top: 6px; line-height: 1.4; }
.exam-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.exam-card { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; background: var(--ink-soft); color: var(--ink); border-radius: 12px; padding: 6px 4px; }
.exam-card span { font-size: 12.5px; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
/* Tâche commune : option déjà discutée (cochée, plus discrète). */
.exam-card, .exam-prompts .chip { position: relative; transition: opacity .3s ease; }
.exam-card.done > *, .exam-prompts .chip.done { opacity: .5; }
.exam-card.done::after, .exam-prompts .chip.done::after { content: "✓"; position: absolute; top: 2px; right: 6px; font-size: 16px; font-weight: 800; color: var(--fix); opacity: 1; }
.exam-prompts .chip.done { padding-right: 22px; }
.exam-photos { display: grid; gap: 6px; margin-top: 8px; }
.exam-photos-wrap.photo-in { animation: photo-in .45s ease-out both; }
@keyframes photo-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .exam-photos-wrap.photo-in { animation: none; } }
.exam-photos.n2 { grid-template-columns: 1fr 1fr; }
.exam-photos.n3 { grid-template-columns: 1fr 1fr 1fr; }
.exam-photos figure { position: relative; margin: 0; }
.exam-photo-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.zoom-badge { position: absolute; right: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 13px; background: rgba(0, 0, 0, .6); color: #fff; display: grid; place-items: center; pointer-events: none; }
.exam-photos.n1 .exam-photo-btn { width: fit-content; max-width: 100%; margin: 0 auto; }
.exam-zoom-hint { margin: 6px 0 0; text-align: center; }
.photo-zoom { position: fixed; inset: 0; z-index: 90; touch-action: none; background: #05070C; display: flex; flex-direction: column; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 0 calc(14px + env(safe-area-inset-bottom)); animation: fade-in .18s ease; }
.photo-zoom.with-dock { bottom: var(--dock-h, calc(160px + env(safe-area-inset-bottom))); padding-bottom: 10px; }
.photo-top { display: flex; align-items: flex-start; gap: 8px; padding: 0 12px 0 16px; }
.photo-q { flex: 1; margin: 0; color: #fff; font-size: 17px; font-weight: 650; line-height: 1.35; }
.photo-close { color: #fff; flex: none; }
.photo-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; touch-action: none; cursor: grab; }
.photo-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; display: flex; gap: 8px; padding: 0 8px; box-sizing: border-box; will-change: transform; }
.photo-canvas.column { flex-direction: column; }
.photo-canvas.column figure { flex: none; }
.photo-canvas figure { position: relative; margin: 0; flex: 1 1 0; min-width: 0; }
.photo-canvas img { display: block; width: 100%; height: auto; border-radius: 8px; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.photo-canvas figcaption { position: absolute; top: 6px; left: 6px; min-width: 24px; height: 24px; border-radius: 12px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.photo-foot { margin: 0; padding: 0 16px; text-align: center; color: #fff; font-size: 13.5px; opacity: .85; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.exam-choose { margin: 8px 0 0; }
.photo-aside { display: block; width: 100%; margin-top: 4px; padding: 4px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; }
.exam-photos figure { transition: opacity .25s ease, transform .25s ease; }
.exam-photos figure.leaving { opacity: 0; transform: scale(.85); }
.exam-all { margin-top: 6px; }
/* Photo entière, jamais coupée (les détails comptent à l'examen) : hauteur limitée, centrée sur un grand écran. */
.exam-photos img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; }
.exam-photos.n1 img { width: auto; max-width: 100%; height: 30vh; aspect-ratio: auto; margin: 0 auto; }
.exam-photos figcaption { position: absolute; top: 4px; left: 4px; min-width: 22px; height: 22px; border-radius: 11px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.exam-mind { margin-top: 8px; text-align: center; }
.exam-clock { font-variant-numeric: tabular-nums; display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.exam-clock .ec-part { font-size: 13px; color: var(--muted); }
.exam-clock .ec-left { font-size: 15px; font-weight: 750; color: var(--ink); }
.exam-clock .ec-left.over { color: var(--amber); }
.exam-bar { height: 4px; border-radius: 3px; background: var(--track); margin: 8px 0 2px; overflow: hidden; }
.exam-bar > i { display: block; height: 100%; width: 100%; border-radius: 3px; background: var(--ink-fill); transition: width .9s linear; }
/* Décompte de l'exercice (exposé, préparation, discussion à deux) : il remplace la barre de la partie, dont le temps reste
   écrit en petit et en gris dans l'en-tête (15.10.2026). */
.exam-clock.quiet .ec-left { font-size: 13px; font-weight: 600; color: var(--muted); }
.exam-ex { margin: 8px 0 2px; }
.exam-ex .ex-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.exam-ex .ex-label { font-size: 14px; font-weight: 650; color: var(--text-2); min-width: 0; }
.exam-ex .ex-time { font-size: 22px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.exam-ex .ex-bar { position: relative; height: 8px; border-radius: 5px; background: var(--track); margin-top: 6px; overflow: hidden; }
.exam-ex .ex-bar > i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--g-a), var(--g-b)); transition: width .9s linear; }
.exam-ex .ex-bar > b { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--surface); opacity: .9; }
.exam-ex.over .ex-time { font-size: 16px; color: var(--amber); }
@media (prefers-reduced-motion: reduce) { .exam-ex .ex-bar > i { transition: none; } }
.exam-role { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); margin-top: 6px; }
.exam-role .icon { flex: none; margin-top: 2px; color: var(--ink); }
.exam-cue { margin-top: 8px; background: var(--ink-soft); border-radius: 12px; padding: 10px 12px; font-size: 14.5px; line-height: 1.4; }
.exam-cue b { display: block; font-size: 15px; margin-bottom: 4px; }
.exam-cue ul { margin: 2px 0 2px 18px; }
.exam-prep { margin-top: 8px; font-weight: 700; color: var(--ink); }
.exam-q { font-weight: 700; font-size: 15px; margin-bottom: 6px; }
.exam-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }

.s-log { overflow-y: auto; padding: 10px 16px 28px; display: flex; flex-direction: column; gap: 20px; scroll-behavior: smooth; overscroll-behavior: contain; }
.msg-tutor { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; max-width: 100%; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--ink-soft); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; position: relative; }
.avatar.talking::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ink-line); animation: talk 1s ease-in-out infinite; }
.avatar.partner { background: var(--amber-soft); color: var(--amber); }
@keyframes talk { 50% { transform: scale(1.12); opacity: .4; } }
.tutor-text { font-size: 18.5px; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.tutor-fr { margin-top: 6px; font-size: 15.5px; color: var(--text-2); font-style: italic; }
/* Quatre outils sur une ligne même à 360 px et en allemand (« go traduction et plus simple », 01.11.2026) : un libellé
   long passe sur deux lignes dans son bouton, les icônes restent alignées. */
.tools { display: flex; gap: 2px; margin-top: 6px; margin-left: -8px; align-items: flex-start; flex-wrap: nowrap; }
.tool-btn { display: grid; justify-items: center; align-content: start; gap: 2px; min-width: 0; flex: 0 1 auto; padding: 6px 6px 4px; border: 0; border-radius: 12px; background: none; color: var(--text-2); font: inherit; font-size: 12.5px; font-weight: 600; }
.tool-btn > span { text-align: center; line-height: 1.2; }
@media (max-width: 380px) { .tools { gap: 0; } .tool-btn { padding: 6px 4px 4px; font-size: 12px; } }
.tool-btn:active, .tool-btn.on { background: var(--ink-soft); color: var(--ink); }
.tool-btn[disabled] { opacity: .5; }
.new-words { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.word-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; }
.word-chip b { font-weight: 700; }
.word-chip .fr { color: var(--muted); }
.word-chip button { position: relative; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--ink-soft); color: var(--ink); display: grid; place-items: center; }
.word-chip button.saved { background: var(--fix-soft); color: var(--fix); }

.msg-user { align-self: flex-end; max-width: 90%; display: grid; justify-items: end; gap: 8px; }
.bubble { background: var(--ink-soft); color: var(--text); padding: 12px 15px; border-radius: 20px 20px 6px 20px; font-size: 17.5px; line-height: 1.5; overflow-wrap: anywhere; }
.bubble .typed-tag { display: inline-flex; margin-right: 6px; color: var(--muted); vertical-align: -3px; }
del.wrong { color: var(--pen); text-decoration: line-through 2px var(--pen); text-decoration-skip-ink: none; }
ins.right { color: var(--fix); background: var(--fix-soft); text-decoration: none; font-weight: 700; border-radius: 5px; padding: 0 4px; margin: 0 1px 0 3px; }
.pron-word { text-decoration: underline wavy var(--amber-line) 2px; text-underline-offset: 4px; cursor: pointer; }
.feedback { width: 100%; background: var(--surface); border-radius: 16px; padding: 4px 14px; box-shadow: var(--shadow); font-size: 15px; }
.fb-item { display: grid; grid-template-columns: 4px 1fr auto; gap: 10px; padding: 10px 0; align-items: start; }
.fb-item + .fb-item { border-top: 1px solid var(--line); }
.fb-item::before { content: ''; width: 4px; align-self: stretch; border-radius: 4px; background: var(--pen); }
.fb-item.better::before { background: var(--fix); }
.fb-item.pron::before { background: var(--amber-line); }
.fb-item .fb-main { min-width: 0; }
.fb-item .pair { font-weight: 650; }
.fb-item .pair .from { color: var(--pen); text-decoration: line-through 1.5px; }
.fb-item .pair .to { color: var(--fix); }
.fb-item .why { color: var(--text-2); margin-top: 2px; }
.fb-item .lab { color: var(--muted); font-size: 13px; font-weight: 600; }
.fb-item .icon-btn { margin: -6px -8px 0 0; }
.perfect { display: inline-flex; align-items: center; gap: 6px; color: var(--fix); font-size: 14.5px; font-weight: 650; white-space: nowrap; }
/* Phrase que l'analyse n'a pas entendue : les mots de Google, sans verdict (10.10.2026). */
.unchecked { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
/* Réussites (violet) : un mot ou une tournure au-dessus de ton niveau, bien placé ; dans la bulle, sous la phrase,
   dans le bilan et dans Progrès. */
:root { --praise: #6D28D9; --praise-soft: #F1EAFE; --praise-line: #A88BEB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --praise: #C9BBFF; --praise-soft: #2D2152; --praise-line: #7C5CD6; } }
:root[data-theme="dark"] { --praise: #C9BBFF; --praise-soft: #2D2152; --praise-line: #7C5CD6; }
mark.praise { color: var(--praise); background: var(--praise-soft); font-weight: 700; border-radius: 5px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
mark.praise .pw { white-space: nowrap; }
mark.praise svg { display: inline-block; width: 14px; height: 14px; margin-left: 3px; vertical-align: -1px; }
.fb-item.praise::before { background: var(--praise-line); }
.fb-item.praise .lab { display: inline-flex; align-items: center; gap: 5px; color: var(--praise); font-weight: 700; }
.fb-item.praise b { color: var(--praise); }
.praise-list { display: grid; }
.praise-row { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 10px 0; align-items: start; }
.praise-row + .praise-row { border-top: 1px solid var(--line); }
.praise-row > svg { width: 18px; height: 18px; margin-top: 3px; color: var(--praise); }
.praise-row .ph { color: var(--praise); font-weight: 700; font-size: 16px; }
.praise-row .why { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.praise-row .when { color: var(--muted); font-size: 13px; margin-top: 2px; }
.panel.praise-list { padding-top: 4px; padding-bottom: 4px; }
.praise-list + .bullets { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.tiles.praise-tiles { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
.praise-tiles .t-value { color: var(--praise); }
.pending-bubble { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: 15px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .35; animation: dot 1.1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 30% { opacity: 1; transform: translateY(-3px); } }
.err-bubble { background: var(--pen-soft); border-radius: 16px; padding: 12px 14px; font-size: 15px; max-width: 100%; }
.err-bubble .btn-row { margin-top: 10px; }
.sys-note { align-self: center; text-align: center; color: var(--muted); font-size: 14px; max-width: 90%; }
.wrap-card { align-self: stretch; background: var(--surface); border-radius: 16px; padding: 14px 16px; box-shadow: var(--shadow); display: grid; gap: 10px; }

.dock { position: relative; background: var(--surface); border-top: 1px solid var(--line); padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); }
/* Défilement en pause (« go défilement ») : petite flèche au-dessus du bas de l'écran, qui ramène à la dernière phrase. */
.log-jump { position: absolute; right: 16px; top: -56px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--ink-line); background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.log-jump[hidden] { display: none; }
/* Menu propriétaire : revenir en haut (31.10.2026), même rond que la flèche de la conversation. */
.admin-top { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--ink-line); background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); }
.admin-top[hidden] { display: none; }
.log-jump.has-new { background: var(--ink-fill); border-color: var(--ink-fill); color: var(--on-ink); }
.dock-status { text-align: center; font-size: 14px; color: var(--muted); min-height: 21px; display: flex; justify-content: center; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.rec-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pen); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.dock-row { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; justify-items: center; margin-top: 12px; position: relative; }
/* Onde entre les deux boutons ronds seulement, estompée sur ses bords (audit A4-01 : elle passait derrière eux à 360 px). */
.dock canvas.wave { position: absolute; left: 60px; right: 60px; top: 50%; width: calc(100% - 120px); height: 64px; transform: translateY(-50%); pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent); }
.mic {
  position: relative; z-index: 1; width: 78px; height: 78px; border-radius: 50%; border: 0; background: var(--ink-fill); color: var(--on-ink);
  display: grid; place-items: center; box-shadow: 0 8px 22px rgba(35, 70, 200, .32); transition: transform .1s ease, background-color .15s ease;
}
.mic:active { transform: scale(.95); }
.mic .ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--ink-line); opacity: 0; transition: transform .08s linear, opacity .2s; pointer-events: none; }
.mic.recording .ring { opacity: 1; }
.mic.busy { background: var(--surface-2); color: var(--ink); box-shadow: none; }
/* Rebranchement du son (« go rond 3 », 31.10.2026) : rond qui se remplit après le texte du message. */
.gap-ring { display: inline-grid; place-items: center; pointer-events: none; }
.gap-ring svg { transform: rotate(-90deg); display: block; }
.gap-fill { stroke-linecap: round; animation-name: gap-fill; animation-timing-function: linear; animation-fill-mode: forwards; }
@keyframes gap-fill { to { stroke-dashoffset: 0; } }
.mic.regap { background: var(--surface-2); color: var(--muted); box-shadow: none; pointer-events: none; }
.mic.regap .ring { opacity: 0 !important; animation: none !important; }
.toast-gap { display: flex; align-items: center; gap: 12px; }
.toast-gap .gap-track { stroke: color-mix(in srgb, var(--bg) 35%, transparent); }
.toast-gap .gap-fill { stroke: var(--bg); }
.mic[disabled] { opacity: .55; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--ink-line); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.side-btn { position: relative; z-index: 1; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); display: grid; place-items: center; }
.side-btn.on { background: var(--ink-soft); color: var(--ink); border-color: var(--ink-line); }
.type-row { display: grid; grid-template-columns: 44px 1fr 48px; gap: 8px; align-items: center; margin-top: 6px; }
/* Micro du clavier dans l'axe du volume juste au-dessus (colonne de 56 px de .dock-top, bouton de 44 px : 6 px de décalage ;
   propriétaire, 10.11.2026 : « aligne le bouton micro et haut-parleur »). */
.type-row { padding-left: 6px; }
/* Pause au clavier : une colonne de plus seulement quand elle est visible. */
.type-row:has(.kb-pause:not([hidden])) { grid-template-columns: 44px 44px 1fr 48px; }
.type-row .kb-pause[hidden] { display: none; }
.type-row .input { min-height: 48px; border-radius: 24px; padding: 10px 16px; }
.send-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink-fill); color: var(--on-ink); display: grid; place-items: center; }
.hint-card { position: absolute; left: 16px; right: 16px; bottom: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px 16px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr auto auto; gap: 4px; align-items: center; z-index: 5; }
.hint-card .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.hint-card .txt { font-size: 16.5px; }
/* Exposé d'examen : fenêtre « Continue à parler » après un silence (sans son, disparaît dès qu'on reparle). */
/* Le titre (« Continue à parler ») se voit d'abord, en grand ; la consigne et le temps restant, plus petits (09.10.2026). */
.hint-card.lt-hint { grid-template-columns: 1fr; gap: 4px; background: var(--amber-soft); border-color: var(--amber-line); animation: lt-hint-in .25s ease-out; }
.hint-card.lt-hint .lbl { color: var(--amber); font-size: 23px; font-weight: 800; line-height: 1.2; }
.hint-card.lt-hint .txt { font-size: 15px; color: var(--text-2); }
.hint-card.lt-hint .small { font-size: 13.5px; font-variant-numeric: tabular-nums; }
@keyframes lt-hint-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Report ---------- */
.hero { margin-top: 8px; }
.hero .value { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.hero .label { color: var(--text-2); margin-top: 6px; }
.hero-praise .value { color: var(--praise); display: flex; align-items: center; gap: 10px; }
.hero-praise .label { color: var(--praise); font-weight: 650; }
.hero-time { color: var(--text-2); margin-top: 10px; font-size: 15.5px; }
.hero-time b { color: var(--text); font-weight: 750; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.tile { background: var(--surface); border-radius: 14px; padding: 12px; box-shadow: var(--shadow); min-width: 0; }
.tile .t-label { font-size: 13px; color: var(--muted); line-height: 1.25; }
.tile .t-value { font-size: 23px; font-weight: 760; margin-top: 4px; }
.tile .t-note { font-size: 12.5px; color: var(--muted); }
.tiles.four { grid-template-columns: repeat(2, 1fr); }
.panel { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 12px; }
.paged-more { margin-top: 8px; }
.paged-less { display: block; margin: 4px auto 0; }
.need-account-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.need-account-head svg { flex: none; color: var(--ink); }
.need-account-head h3 { margin: 0; font-size: 18px; line-height: 1.25; text-wrap: balance; }
.need-account .lede { margin: 0 0 14px; }
.support-box { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 4px 0 16px; }
.support-box p { margin: 0; }
.bullets { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.mistake { padding: 10px 0; }
/* « Tes erreurs » du bilan : la correction et son signet côte à côte (la relecture de la conversation garde la ligne simple). */
.mistake.with-save { display: flex; align-items: flex-start; gap: 8px; }
.mistake-main { flex: 1; min-width: 0; }
.mistake + .mistake { border-top: 1px solid var(--line); }
.mistake .pair { font-weight: 650; font-size: 16px; }
.mistake .from { color: var(--pen); text-decoration: line-through 1.5px; }
.mistake .to { color: var(--fix); }
.mistake .why { color: var(--text-2); font-size: 15px; margin-top: 2px; }
.vocab-line { display: flex; align-items: center; gap: 10px; padding: 10px 0; }
.vocab-line + .vocab-line { border-top: 1px solid var(--line); }
.vocab-line .v-main { flex: 1; min-width: 0; }
.vocab-line .en { font-weight: 700; }
.vocab-line .fr { color: var(--text-2); font-size: 15px; }
.vocab-line .ex { color: var(--muted); font-size: 14px; font-style: italic; }
.vocab-line .ex-tr { color: var(--muted); font-size: 13.5px; }
.goal-box { display: flex; gap: 12px; align-items: flex-start; background: var(--ink-soft); border-radius: var(--radius); padding: 16px; }
.goal-box .icon { color: var(--ink); margin-top: 2px; }
/* Bilan en aperçu pendant l'essai (« go bilan aperçu », 18.11.2026) : le reste du bilan flouté sous une carte. */
.trial-lock { position: relative; min-height: 380px; }
.trial-lock-blur { filter: blur(7px); opacity: .55; pointer-events: none; user-select: none; max-height: 520px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.trial-lock-blur > .section { margin-top: 0; }
.trial-lock-card { position: absolute; left: 0; right: 0; top: 84px; margin: 0 auto; max-width: 360px; display: grid; justify-items: center; gap: 8px;
  text-align: center; padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.trial-lock-card b { font-size: 17px; line-height: 1.3; }
.trial-lock-card p { margin: 0; line-height: 1.45; }
.trial-lock-card .btn { margin-top: 6px; }
.trial-lock-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ink-soft); color: var(--ink); }
.level-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-weight: 700; }

/* ---------- Charts ---------- */
.chart-card { background: var(--surface); border-radius: var(--radius); padding: 16px 16px 12px; box-shadow: var(--shadow); position: relative; }
.chart-card + .chart-card { margin-top: 12px; }
.chart-card h3 { font-size: 16px; }
.chart-card .c-sub { color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.chart-svg { display: block; width: 100%; height: auto; margin-top: 10px; overflow: visible; touch-action: pan-y; }
.chart-svg text { font-family: var(--font); fill: var(--muted); font-size: 12px; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .goal { stroke: var(--text-2); stroke-width: 1; shape-rendering: crispEdges; }
.chart-svg .goal-label { fill: var(--text-2); font-weight: 650; }
.chart-svg .bar { fill: var(--seq-4); }
.chart-svg .bar.hit { fill: var(--seq-3); }
.chart-svg .line { fill: none; stroke: var(--seq-4); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .area { fill: var(--seq-4); opacity: .1; }
.chart-svg .dot { fill: var(--seq-4); stroke: var(--surface); stroke-width: 2; }
.chart-svg .end-label { fill: var(--text); font-weight: 700; font-size: 12px; }
:root { --c-learned: #915C00; --c-longterm: #0F7A4A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --c-learned: #C28418; --c-longterm: #26A06C; } }
:root[data-theme="dark"] { --c-learned: #C28418; --c-longterm: #26A06C; }
.chart-svg .mline { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-svg .mline.c-learned, .chart-legend .c-learned i { stroke: var(--c-learned); background: var(--c-learned); }
.chart-svg .mline.c-longterm, .chart-legend .c-longterm i { stroke: var(--c-longterm); background: var(--c-longterm); }
.chart-svg .mdot { stroke: var(--surface); stroke-width: 2; }
.chart-svg .mdot.c-learned { fill: var(--c-learned); }
.chart-svg .mdot.c-longterm { fill: var(--c-longterm); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 13px; color: var(--text-2); }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i { width: 14px; height: 3px; border-radius: 2px; }
.chart-svg .cross { stroke: var(--text-2); stroke-width: 1; }
.chart-svg .cell { rx: 4; }
.chart-tip { position: absolute; pointer-events: none; background: var(--text); color: var(--bg); border-radius: 10px; padding: 6px 10px; font-size: 13px; line-height: 1.3; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); z-index: 3; box-shadow: var(--shadow); }
.chart-tip b { font-size: 15px; display: block; }
.chart-table { margin-top: 8px; font-size: 14px; }
.chart-table summary { color: var(--ink); cursor: pointer; padding: 0; font-weight: 600; }
.chart-table table { width: 100%; border-collapse: collapse; margin-top: 4px; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { text-align: left; padding: 5px 4px; border-bottom: 1px solid var(--line); }
.chart-table th { color: var(--muted); font-weight: 600; }
.heat-legend { display: flex; align-items: center; gap: 4px; justify-content: flex-end; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.heat-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.scorebars { display: grid; gap: 12px; }
.exam-score { display: flex; align-items: center; gap: 14px; }
.exam-big { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; flex: none; }
.exam-verdict { display: flex; align-items: flex-start; gap: 6px; font-size: 16px; margin-top: 4px; }
.exam-verdict .icon { flex: none; margin-top: 2px; }
.exam-verdict.r-above .icon, .exam-verdict.r-pass .icon { color: var(--fix); }
.exam-verdict.r-borderline .icon { color: var(--amber); }
.exam-verdict.r-below .icon { color: var(--muted); }
.exam-result .scorebars { margin-top: 14px; }
.exam-parts { margin: 6px 0 0; padding-left: 0; list-style: none; display: grid; gap: 6px; font-size: 15px; } /* numéros déjà dans le texte (audit A4-09) */
.exam-steps { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 6px; }
.credits { margin: 0 0 0 18px; display: grid; gap: 6px; font-size: 13.5px; max-height: 55vh; overflow-y: auto; overflow-wrap: anywhere; }
.scorebar .sb-top { display: flex; justify-content: space-between; font-size: 15px; }
.scorebar .sb-top b { font-weight: 750; }
.scorebar .track { height: 10px; border-radius: 6px; background: var(--track); margin-top: 6px; overflow: hidden; }
.scorebar .fill { height: 100%; border-radius: 6px; background: var(--seq-4); }

/* ---------- Vocab ---------- */
.search { margin-top: 4px; }
.vocab-item { display: flex; align-items: center; gap: 10px; padding: 12px 8px 12px 16px; }
.list > .vocab-item + .vocab-item { border-top: 1px solid var(--line); }
.vocab-item .v-main { flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.vocab-item .v-main:active { opacity: .6; }
.vocab-item .en { font-weight: 700; font-size: 16.5px; }
.vocab-item .fr { color: var(--text-2); font-size: 15px; }
.box-dots { display: inline-flex; gap: 3px; margin-top: 4px; }
.box-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.box-dots i.on { background: var(--fix); }
.flashcard + .btn-block { margin-top: 16px; } /* audit A4-07 : « Retourner la carte » collé à la carte */
.flashcard { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); padding: 28px 20px; min-height: 280px; display: grid; align-content: center; justify-items: center; text-align: center; gap: 12px; margin-top: 12px; }
.flashcard .front { font-size: 28px; font-weight: 780; line-height: 1.25; }
.flashcard .back { font-size: 19px; color: var(--text-2); }
.flashcard .ex { font-size: 15px; color: var(--muted); font-style: italic; }
/* Haut-parleur au bout de la phrase d'exemple (« go phrase ») : dans le fil du texte, sans agrandir la ligne. */
.ex .ex-say { width: 36px; height: 36px; margin: -8px 0 -8px 2px; vertical-align: middle; color: var(--ink); }
.flashcard .ex-tr { font-size: 14px; color: var(--muted); margin-top: -4px; }
.review-count { color: var(--muted); font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 36px 16px; color: var(--text-2); }
.empty .icon { margin: 0 auto 10px; color: var(--muted); }

/* ---------- Pronunciation & reading ---------- */
.target-sentence { font-size: 25px; font-weight: 720; line-height: 1.35; margin-top: 8px; }
.target-sentence .w { border-radius: 6px; padding: 0 2px; }
.target-sentence .w.good { color: var(--fix); }
.target-sentence .w.close { color: var(--amber); text-decoration: underline wavy var(--amber-line) 2px; text-underline-offset: 5px; }
.target-sentence .w.wrong { color: var(--pen); text-decoration: underline 2.5px var(--pen); text-underline-offset: 5px; }
.target-sentence .w[role="button"] { cursor: pointer; }
.tip-card { display: flex; gap: 12px; align-items: flex-start; background: var(--amber-soft); border-radius: 14px; padding: 12px 14px; margin-top: 16px; font-size: 15px; }
.tip-card .icon { color: var(--amber); margin-top: 2px; }
.score-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.score-ring { position: relative; width: 84px; height: 84px; flex: none; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; font-weight: 800; }
.big-mic-wrap { display: grid; justify-items: center; gap: 10px; margin: 26px 0 8px; position: relative; }
.big-mic-wrap canvas.wave { position: absolute; left: 0; right: 0; top: 39px; height: 64px; width: 100%; transform: translateY(-50%); pointer-events: none; }
.passage { font-size: 18.5px; line-height: 1.65; margin-top: 12px; }
.passage p + p { margin-top: 12px; }
.gloss { text-decoration: underline dotted var(--ink) 2px; text-underline-offset: 4px; cursor: pointer; }
.gloss-pop { display: inline-block; font-size: 14px; background: var(--ink-soft); color: var(--ink); border-radius: 8px; padding: 1px 8px; margin: 0 4px; font-weight: 650; line-height: 1.5; vertical-align: 1px; }
.qlist { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }

/* ---------- Settings ---------- */
.set-group { margin-top: 26px; }
.set-group > h2 { font-size: 15px; color: var(--muted); font-weight: 650; margin: 0 0 10px 4px; }
.set-row { padding: 14px 16px; }
.list > .set-row + .set-row { border-top: 1px solid var(--line); }
.set-row .lbl { font-weight: 650; }
.set-row .desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.set-row .ctrl { margin-top: 10px; }
/* Sélecteurs d'une ligne de réglage : tous la même largeur, quelle que soit la longueur du texte à côté (13.10.2026). */
.switch-row > select.input { flex: 0 0 112px; width: 112px; min-width: 0; }
.set-group:first-of-type { margin-top: 14px; }
.list > * + details.set-row, .list > details.set-row + * { border-top: 1px solid var(--line); }
details.more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; flex: none; transition: transform .15s; }
details.more[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
details.more > .set-row { padding: 14px 0 0; }
details.more > .set-row + .set-row { border-top: 1px solid var(--line); margin-top: 14px; }
.set-menu .row-sub { overflow: hidden; text-overflow: ellipsis; }
.backup-card { margin: 0; }
.screen > .backup-card, .screen > .reminder-card { margin-top: 18px; }
.backup-card .btn-row { margin-top: 10px; }
.backup-card.plain .btn-row { margin-top: 0; }
.backup-card .btn-row .btn { margin-top: 0; }
.range-row { display: flex; align-items: center; gap: 14px; }
.range-row input { flex: 1; min-width: 0; }
.range-row .val { white-space: nowrap; min-width: 58px; text-align: right; color: var(--text-2); font-variant-numeric: tabular-nums; }
.usage-grid { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; font-size: 15px; font-variant-numeric: tabular-nums; }
.usage-grid .k { color: var(--text-2); }
.usage-grid .v { text-align: right; font-weight: 650; }
.kbd-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
/* Options de la séance : petits titres de groupe (Voix, Conversation, Corrections). */
.opt-head { margin: 18px 0 0; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.opt-head:first-child { margin-top: 4px; }
.about p + p { margin-top: 8px; }

/* ---------- v2 : conversation temps réel ---------- */
.s-head .s-title .s-sub { display: flex; align-items: center; gap: 10px; }
.s-head .s-title .s-sub span { display: inline-flex; white-space: nowrap; }
.s-head .s-title .s-sub { overflow: hidden; }
.s-mode { align-items: center; gap: 5px; color: var(--muted); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fix); box-shadow: 0 0 0 3px var(--fix-soft); }
.mic.listening .ring { opacity: 1; animation: listen 1.8s ease-in-out infinite; }
@keyframes listen { 0%, 100% { box-shadow: 0 0 0 0 var(--ink-line); } 50% { box-shadow: 0 0 0 8px transparent; } }
.mic.sam { background: var(--surface); color: var(--ink); border: 2px solid var(--ink-line); box-shadow: var(--shadow); }
.bubble.live { background: transparent; border: 1.5px dashed var(--ink-line); color: var(--text-2); }
.bubble.live .dots { vertical-align: middle; }
.analysing { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.spinner.sm { width: 16px; height: 16px; border-width: 2px; }
.icon-btn .spinner.sm { display: block; }
del.wrong.soft { color: var(--text-2); text-decoration-color: var(--ink-line); }
.fb-item.upgrade::before { background: var(--ink-line); }
.fb-item .lab .pat { color: var(--muted); font-weight: 500; }
.drill-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--ink-line); background: var(--ink-soft); color: var(--ink); font-weight: 650; font-size: 14px; }
.self-card { width: 100%; background: var(--surface); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 6px; }
.self-card .self-q { display: flex; gap: 8px; align-items: center; font-weight: 650; color: var(--pen); }
.self-card .btn-row { margin-top: 4px; }
.tutor-text.hidden-text { min-height: 0; }
.reveal-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px dashed var(--ink-line); background: transparent; color: var(--ink); font-size: 15px; font-weight: 600; }
.link-btn { border: 0; background: none; color: var(--ink); font-weight: 650; text-decoration: none; padding: 0; font-size: inherit; }
/* Un seul style de lien d'action (audit A4-19) : bleu, gras, sans soulignement ; les liens dans un texte restent soulignés. */
.legal-links a, .about-more > summary { color: var(--ink); font-weight: 650; text-decoration: none; }
.hint-card .fr { margin-top: 2px; }
.help-list .row { box-shadow: none; }
.howto { display: grid; gap: 10px; }
.howto textarea { min-height: 84px; }
.howto > .btn { justify-self: start; }
.howto-out { display: grid; gap: 8px; }
.howto-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-radius: 14px; padding: 8px 8px 8px 14px; background: var(--fix-soft); color: var(--text); font-size: 17px; font-weight: 650; }
.howto-line.alt { background: var(--surface-2); font-weight: 500; font-size: 15.5px; }

/* ---------- v2 : exercice sur une correction ---------- */
.drill { display: grid; gap: 12px; }
.drill-orig { display: grid; gap: 2px; font-size: 15px; }
.drill-orig .lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.drill-orig .from { color: var(--pen); text-decoration: line-through 1.5px; }
.drill-hint { display: flex; gap: 8px; align-items: center; color: var(--text-2); font-size: 15px; }
.drill-target-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.drill-target { font-size: 21px; font-weight: 720; line-height: 1.4; }
.drill-target .w.good { color: var(--fix); }
.drill-target .w.close { color: var(--amber); text-decoration: underline wavy var(--amber-line) 2px; text-underline-offset: 5px; }
.drill-target .w.wrong { color: var(--pen); text-decoration: underline 2.5px var(--pen); text-underline-offset: 5px; }
.drill-target .masked { display: inline-block; color: var(--muted); font-weight: 600; font-size: 16px; border: 1.5px dashed var(--line); border-radius: 10px; padding: 6px 12px; }
.drill-mic { position: relative; display: grid; place-items: center; height: 96px; }
.drill-mic canvas.wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.drill-status { text-align: center; color: var(--muted); font-size: 14.5px; }
.drill-result .score-row { margin-top: 0; }
.drill-result .score-ring { width: 64px; height: 64px; }
.drill-result .score-ring b { font-size: 21px; }
.drill-verdict { font-weight: 750; font-size: 18px; }

/* ---------- v2 : points à travailler, bilan ---------- */
.pattern-list { display: grid; padding-top: 6px; padding-bottom: 6px; }
.pattern-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.pattern-row + .pattern-row { border-top: 1px solid var(--line); }
.p-main { display: grid; gap: 2px; min-width: 0; }
.p-main b { font-weight: 700; }
.p-main .ex { font-size: 14.5px; }
.p-main .ex .from { color: var(--pen); text-decoration: line-through 1.5px; }
.p-main .ex .to { color: var(--fix); font-weight: 650; }
.p-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.p-count { font-weight: 750; color: var(--text-2); font-variant-numeric: tabular-nums; }
.trend { font-size: 12.5px; font-weight: 650; border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.trend.down { color: var(--fix); background: var(--fix-soft); }
.trend.up { color: var(--pen); background: var(--pen-soft); }
.trend.flat { color: var(--muted); background: var(--surface-2); }
.pattern-row .p-side .icon-btn { margin-right: -8px; }
.sb-note { font-size: 13.5px; color: var(--text-2); margin-top: 4px; }
.takeaway { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow), inset 0 3px 0 var(--fix); display: grid; gap: 8px; }
.takeaway .kicker { display: flex; align-items: center; gap: 6px; color: var(--fix); font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: .04em; }
.takeaway h3 { font-size: 19px; }
.takeaway .btn { justify-self: start; margin-top: 4px; }
.tk-ex { list-style: none; display: grid; gap: 4px; padding: 0; margin: 0; }
.tk-ex li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--fix-soft); border-radius: 12px; padding: 4px 4px 4px 12px; font-weight: 600; }

/* ---------- v2 : réglages ---------- */
.voice-list { display: grid; gap: 6px; }
.voice-group { font-size: 13px; color: var(--muted); font-weight: 650; margin-top: 6px; }
.voice-row { display: flex; align-items: center; gap: 6px; }
.voice-pick { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; }
.voice-pick .dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.voice-pick[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--ink-soft); }
.voice-pick[aria-checked="true"] .dot { border-color: var(--ink); background: radial-gradient(circle, var(--ink) 45%, transparent 50%); }
.voice-pick .v-name { font-weight: 700; }
/* Voix en cours d'écoute : bouton ■ en couleur et ligne soulignée, qui pulse doucement. */
.voice-row .icon-btn.playing { color: var(--on-ink); background: var(--ink-fill); }
.voice-hint { margin: 2px 4px 4px; }
.voice-row.playing .voice-pick { border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .voice-row .icon-btn.playing { animation: voice-pulse 1.2s ease-in-out infinite; }
  @keyframes voice-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--ink-soft); } 50% { box-shadow: 0 0 0 6px var(--ink-soft); } }
}
.voice-pick .v-style { color: var(--muted); font-size: 14.5px; }
.memory { display: grid; gap: 10px; }
.fact-list { list-style: none; display: grid; gap: 6px; padding: 0; margin: 0; }
.fact-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface-2); border-radius: 12px; padding: 4px 4px 4px 12px; font-size: 15px; }
.inline-add { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.inline-add .input { min-height: 44px; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

@media (min-width: 1000px) {
  :root { --appw: 760px; }
}
@media (min-width: 600px) {
  body { background: var(--bg); }
  .screen { padding-left: 20px; padding-right: 20px; }
}

/* Adresse de test (dev--…) : liseré orange en haut de l'écran. */
html[data-env="dev"] body::after { content: ''; position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); height: 3px; background: #D97706; z-index: 90; pointer-events: none; }

/* Pratiquer : sujets préférés, puis les autres. */
.topic-head { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 8px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.topic-head a { font-weight: 600; }
.chips + .topic-head { margin-top: 16px; }
.deck-card .deck-follow { margin-top: 4px; }
.deck-card .deck-pace { color: var(--text-2); }
/* Pratiquer : « Parle avec Emma » (la voix choisie, une personne avec qui on ose parler). */
/* Dégradé de l'avatar (13.10.2026, retour du propriétaire : on dirait un violet uni) : du bleu vif au violet, avec un reflet doux en
   haut à gauche ; avant, deux teintes voisines (#2346C8 → #7C3AED) à peine distinctes sur un rond de 60 px. */
.tutor-hero { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px 18px 8px; box-shadow: var(--shadow); }
.tutor-hero, .welcome-demo { --th-a: #2F6FF0; --th-b: #9333EA; --th-gloss: .32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) :is(.tutor-hero, .welcome-demo) { --th-a: #4A78F5; --th-b: #A15EEA; --th-gloss: .22; } :root:not([data-theme="light"]) .wd-phone { --bezel: #4A5672; --halo-a: rgba(74, 120, 245, .5); --halo-b: rgba(161, 94, 234, .32); --rec: #F06A6E; } :root:not([data-theme="light"]) .welcome-title { --hl-a: #6E98FF; --hl-b: #B67CF5; } }
:root[data-theme="dark"] :is(.tutor-hero, .welcome-demo) { --th-a: #4A78F5; --th-b: #A15EEA; --th-gloss: .22; }
:root[data-theme="dark"] .wd-phone { --bezel: #4A5672; --halo-a: rgba(74, 120, 245, .5); --halo-b: rgba(161, 94, 234, .32); --rec: #F06A6E; }
:root[data-theme="dark"] .welcome-title { --hl-a: #6E98FF; --hl-b: #B67CF5; }
.th-head { display: flex; gap: 14px; align-items: center; }
.th-avatar { position: relative; flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; font-weight: 800; color: #FFFFFF; background: radial-gradient(circle at 28% 22%, rgba(255, 255, 255, var(--th-gloss)), rgba(255, 255, 255, 0) 52%), linear-gradient(135deg, var(--th-a), var(--th-b)); box-shadow: 0 0 0 4px var(--ink-soft); }
.th-dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border-radius: 50%; background: var(--fix); border: 3px solid var(--surface); }
.th-titles { min-width: 0; }
.tutor-hero h2 { font-size: 27px; line-height: 1.15; letter-spacing: -0.01em; }
.th-tag { margin-top: 3px; font-size: 15px; color: var(--text-2); }
.th-bubble { margin-top: 16px; padding: 12px 15px; border-radius: 4px 18px 18px 18px; background: var(--ink-soft); color: var(--text); font-size: 16px; line-height: 1.45; }
.tutor-hero .btn-block { margin-top: 14px; }
.tutor-hero .th-voice { display: flex; width: fit-content; margin: 4px auto 0; color: var(--text-2); font-weight: 600; }
.tutor-hero.compact { padding: 16px; }
.tutor-hero.compact .th-avatar { width: 52px; height: 52px; font-size: 24px; }
.tutor-hero.compact h2 { font-size: 22px; }
.th-or { margin: 18px 0 10px; font-size: 15.5px; font-weight: 650; color: var(--text); }

/* ---------- Abonnement et menu propriétaire ---------- */
.licence-card { margin-top: 8px; display: grid; gap: 8px; }
.licence-state { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.licence-state .icon { color: var(--fix); flex: none; }
.licence-card.locked .licence-state .icon { color: var(--amber); }
.licence-card .small { color: var(--text-2); }
.licence-card .btn-block { white-space: normal; min-width: 0; margin-top: 2px !important; }
.warn-panel { background: var(--amber-soft); box-shadow: none; }
.ok-panel { background: var(--fix-soft); box-shadow: none; }
.ok-panel p svg { color: var(--fix); }
.backup-status > * { min-width: 0; }
.backup-status .btn { white-space: normal; width: 100%; min-height: 44px; padding: 8px 14px; text-align: center; }
.pubkey { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font: 13px/1.45 ui-monospace, 'SFMono-Regular', Menlo, monospace; white-space: pre-wrap; word-break: break-all; user-select: all; }
.code-result { margin-top: 12px; display: grid; gap: 10px; border: 1px solid var(--ink-line); }
.code-link { word-break: break-all; color: var(--text-2); user-select: all; }
.sub-row { display: flex; align-items: center; gap: 8px; padding: 12px 10px 12px 16px; }
.list > .sub-row + .sub-row { border-top: 1px solid var(--line); }
.sub-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.sub-name { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sub-actions { display: flex; gap: 2px; flex: none; }
/* Boutons en toutes lettres sous l'abonné (Copier le message, Prolonger, Désactiver…), sur une ou deux lignes. */
.sub-buttons { margin-top: 6px; gap: 6px 8px; }
.sub-buttons .btn-sm { min-height: 36px; padding: 6px 12px; }
.chip.st-active, .chip.st-life { background: var(--fix-soft); border-color: transparent; color: var(--fix); }
.chip.st-soon { background: var(--amber-soft); border-color: transparent; color: var(--amber); }
/* Pas encore activé (« go codes », 31.10.2026) : contour ambre, distinct du vert « actif » et de l'ambre plein « se termine bientôt ». */
.chip.st-pending { background: transparent; border: 1px dashed var(--amber); color: var(--amber); }
.chip.st-ended, .chip.st-revoked { background: var(--surface-2); border-color: transparent; color: var(--muted); }
.about-version { cursor: default; -webkit-user-select: none; user-select: none; }

/* Choix de la langue sur le premier écran */
/* En haut à droite (31.10.2026, propriétaire : « le bouton de choix de la langue sur l'accueil, plutôt en haut à droite ») */
/* Discret (31.10.2026, propriétaire : « moins imposant », l'app s'ouvre déjà dans la langue du téléphone) : petit texte gris
   avec le globe et une petite flèche, sans cadre ; la zone à toucher garde 40 px de haut. */
.onb-lang { display: flex; align-items: center; justify-content: flex-end; gap: 4px; color: var(--muted); margin: -4px -4px 6px 0; }
.onb-lang > svg { width: 15px; height: 15px; opacity: .8; }
.onb-lang .lang-select { min-width: 0; width: auto; min-height: 40px; padding: 6px 22px 6px 2px; border: 0; box-shadow: none; background-color: transparent;
  background-size: 14px 14px; background-position: right 2px center; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 8px; }
.onb-lang .lang-select:focus-visible { outline: 2px solid var(--ink-line); outline-offset: 2px; }
.onb-lang .chips { gap: 6px; flex-wrap: nowrap; }
.lang-select { width: auto; min-width: 11em; max-width: 100%; min-height: 44px; }
/* Langue de l'app au bout de la ligne du logo (16.11.2026) : globe et code, le vrai menu invisible par-dessus. */
.welcome-mark .onb-lang { position: relative; margin: 0 0 0 auto; align-self: center; display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 650; letter-spacing: .04em; line-height: 1; }
.welcome-mark .onb-lang > svg { width: 15px; height: 15px; opacity: .85; }
.welcome-mark .onb-lang > svg:last-of-type { width: 13px; height: 13px; }
.welcome-mark .onb-lang .lang-select { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; font-size: 16px; }
.welcome-mark .onb-lang:focus-within { outline: 2px solid var(--ink-line); outline-offset: 2px; }
.onb-lang .chip { min-height: 36px; padding: 6px 11px; font-size: 14px; white-space: nowrap; }
@media (max-width: 380px) { .onb-lang .chip { padding: 6px 9px; } .onb-lang .chip svg { display: none; } }
.key-limit { margin-top: 10px; }
.help-link { display: inline-block; margin-top: 6px; font-weight: 650; color: var(--ink); text-decoration: underline; }
details.faq > .desc { margin-top: 8px; }

/* Schéma de la fenêtre « Créer une clé » de Google AI Studio (écran de la clé). */
.studio-mock { display: grid; gap: 6px; margin-top: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); font-size: 13px; max-width: 300px; }
.studio-mock b { font-size: 14px; }

.studio-mock .sm-field { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; color: var(--muted); }
.studio-mock .sm-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: 2px; }
.studio-mock .sm-go { white-space: nowrap; border: 2px solid var(--ink); color: var(--ink); font-weight: 700; border-radius: 999px; padding: 4px 12px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 18%, transparent); }
.studio-mock .sm-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.studio-mock .sm-muted { color: var(--muted); }
.studio-mock .sm-key { color: var(--ink); font-weight: 700; }
.studio-mock .sm-no { justify-self: center; white-space: nowrap; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; border: 1px dashed var(--line); border-radius: 999px; padding: 3px 10px; }
.studio-mock .sm-copy { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--ink); border: 2px solid var(--ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 18%, transparent); flex: none; }

/* Écran de la clé : mode d'emploi pas à pas. */
.guide { margin: 14px 0 14px; display: grid; gap: 8px; padding: 12px 14px; border: 1.5px dashed var(--line); border-radius: 16px; }
.guide-title { margin: 0; font-weight: 750; display: flex; align-items: center; gap: 6px; color: var(--text-2); }
.guide-step { display: grid; gap: 8px; min-height: 130px; align-content: start; }
.guide-step .studio-mock { margin-top: 2px; }
.guide-step { touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.guide-step.from-right { animation: guide-in-right .22s ease-out; }
.guide-step.from-left { animation: guide-in-left .22s ease-out; }
@keyframes guide-in-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes guide-in-left { from { opacity: 0; transform: translateX(-28px); } }
@media (prefers-reduced-motion: reduce) { .guide-step.from-right, .guide-step.from-left { animation: none; } }
.guide-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.guide-text { margin: 0; }
.guide-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.guide-nav .btn[hidden] { display: none; }
.guide-dots { display: flex; gap: 6px; }
.guide-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.guide-dots i.on { background: var(--ink-fill); }
p.key-free { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--muted); }
p.key-free > svg { flex: none; color: var(--fix); margin-top: 2px; }
.key-more { margin-top: 18px; }
.key-more summary { cursor: pointer; color: var(--ink); font-weight: 650; font-size: 14px; }
.key-more p { margin: 8px 0 0; }

/* Vocabulaire : étapes de mémorisation et révision à 4 niveaux. */
.stage-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stage-tile { display: grid; gap: 2px; justify-items: start; text-align: left; font: inherit; color: var(--text); background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.stage-tile b { font-size: 22px; font-weight: 800; line-height: 1.1; }
.stage-tile span { font-size: 13px; color: var(--muted); line-height: 1.25; }
.stage-tile.st-new b { color: var(--muted); }
.stage-tile.st-learning b { color: var(--amber); }
.stage-tile.st-longterm b { color: var(--fix); }
.stage-tile.on { border-color: var(--ink); background: var(--ink-soft); }
.v-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 4px; }
.stage-chip { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 8px; background: var(--line); color: var(--text-2); }
.stage-chip.st-learning { background: var(--amber-soft); color: var(--amber); }
.stage-chip.st-longterm { background: var(--fix-soft); color: var(--fix); }
.stage-chip.st-off { background: var(--surface-2); color: var(--muted); }
.vocab-item.is-ignored .en, .vocab-item.is-ignored .fr { opacity: .65; }
.not-found-h { margin: 4px 4px 6px; }
.deck-add { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.create-from-search { margin-top: 12px; white-space: normal; padding: 10px 20px; border-radius: 24px; }
.create-from-search > svg { flex: none; }
.create-from-search > span { min-width: 0; overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; text-align: left; }
.level-pick { display: grid; gap: 8px; margin-top: 12px; }
.level-chip { justify-content: space-between; width: 100%; min-height: 48px; border-radius: 14px; }
.deck-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: -2px; }
.deck-actions .link-btn { margin-top: 0; min-height: 40px; }
.card-status { margin: 0; min-height: 1.4em; }
.review-none { display: flex; gap: 8px; align-items: center; margin: 14px 0 0; color: var(--fix); font-weight: 600; }
.review-none > svg { flex: none; }
.vocab-actions { margin-top: 10px; flex-wrap: wrap; }
.vocab-h { margin: 28px 0 0; font-size: 21px; line-height: 1.25; font-weight: 720; color: var(--text); } /* même titre de section que les autres onglets (audit A4-17) */
.vocab-manage { margin-top: 18px; padding-top: 4px; border-top: 1px solid var(--line); }
.card-back { display: grid; gap: 8px; justify-items: center; }
.grade-q { text-align: center; margin: 16px 0 8px; font-weight: 700; }
.grade-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.grade-btn { display: grid; gap: 2px; justify-items: center; font: inherit; border: 0; border-radius: 14px; padding: 10px 4px; cursor: pointer; }
.grade-btn b { font-size: 15px; font-weight: 750; }
.grade-btn span { font-size: 14px; line-height: 1.25; opacity: .9; }
.grade-btn.g-again { background: var(--pen-soft); color: var(--pen); }
.grade-btn.g-hard { background: var(--amber-soft); color: var(--amber); }
.grade-btn.g-good { background: var(--fix-soft); color: var(--fix); }
.grade-btn.g-easy { background: var(--ink-soft); color: var(--ink); }
.review-end { display: grid; gap: 8px; justify-items: center; text-align: center; margin-top: 30px; }
.review-end > svg { color: var(--amber-line); }
.stage-bar { display: flex; height: 12px; border-radius: 999px; overflow: hidden; background: var(--line); gap: 2px; }
.stage-bar i.st-longterm { background: var(--fix); }
.stage-bar i.st-learning { background: var(--amber-line); }
.stage-bar i.st-new { background: var(--line); }
.stage-legend { display: grid; gap: 4px; margin-top: 12px; font-size: 14.5px; color: var(--text-2); }
.stage-legend b { font-size: 17px; margin-right: 6px; }
.stage-legend .st-longterm b { color: var(--fix); }
.stage-legend .st-learning b { color: var(--amber); }
.stage-legend .st-new b { color: var(--muted); }
.how { display: grid; gap: 10px; }
.how p { margin: 0; }
.how-row { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: center; }
.how-row .grade-btn { cursor: default; font-weight: 750; font-size: 14px; padding: 8px 4px; text-align: center; }
.how-why { margin-top: 4px !important; }
.deck-card { margin-top: 14px; display: grid; gap: 8px; justify-items: start; }
.deck-card p { margin: 0; }
.deck-card .stage-bar { width: 100%; height: 8px; }
.deck-head { display: flex; align-items: center; gap: 8px; width: 100%; }
.deck-head > svg { color: var(--ink); flex: none; }
.deck-head .stage-chip { margin-left: auto; }
.card-dir { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.flashcard .front-native { font-size: 24px; }
.flashcard .back-en { font-size: 24px; font-weight: 780; color: var(--ink); }
/* Réponse bien à part de la question (« go A », 15.11.2026, propriétaire : « une petite teinte différente… que visuellement on
   voit tout de suite que l'un c'est ce que l'on demande et l'autre la traduction ») : la réponse anglaise en bleu (la couleur de
   « ta voix »), un petit trait au-dessus de la réponse ; pas sur les cartes d'erreur (mise en page réglée à part). */
.flashcard .card-back:not([hidden]):not(.err-back)::before { content: ''; display: block; justify-self: center; width: 40px; height: 2px; border-radius: 2px; background: var(--line); margin: 2px auto 6px; }
.csv-preview { display: grid; gap: 10px; }
.csv-preview p { margin: 0; }
.csv-row { display: grid; gap: 2px; padding: 10px 14px; }
.list > .csv-row + .csv-row { border-top: 1px solid var(--line); }
.csv-row span { color: var(--text-2); font-size: 14.5px; }
.csv-row i { color: var(--muted); font-size: 13.5px; }
.csv-row.dup { opacity: .45; }
.csv-sample { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Préparation (clé, voix) : bandeau distinct des exercices. */
.setup-band { margin: 12px 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--amber-soft); border: 1px solid var(--amber-line); display: flex; gap: 12px; align-items: flex-start; }
.setup-icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--amber); }
.setup-text { margin: 0; font-size: 15px; line-height: 1.45; color: var(--text); }
.setup-note { margin: 4px 0 0; font-size: 14px; font-weight: 750; color: var(--amber); }
/* Volume : en bas à gauche, au-dessus du bouton clavier. */
.dock-top { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; justify-items: center; }
/* « Problème de son ? » : petit lien à droite de la ligne d'état, orange quand l'app soupçonne un problème (20.10.2026). */
.sound-help { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 2px 0 8px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.sound-help span { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.sound-help.warn { color: var(--amber); font-weight: 600; }
.sound-help.warn svg { animation: blink 1.2s steps(2) 3; }
.dock-top .dock-status { min-width: 0; justify-self: start; justify-content: flex-start; text-align: left; padding-left: 4px; }
.vol-btn { width: 44px; height: 44px; }

/* Bilan : mots à apprendre, bouton « Ajouter » explicite. */
.add-word { flex: none; align-self: center; }
.add-word.on { background: var(--fix-soft); color: var(--fix); border-color: transparent; }
.section-note { margin: -4px 0 10px; }
.studio-mock .sm-check { display: flex; gap: 8px; align-items: flex-start; }
.studio-mock .sm-box { flex: none; width: 18px; height: 18px; border-radius: 4px; border: 2px solid var(--muted); display: grid; place-items: center; margin-top: 1px; }
.studio-mock .sm-box.on { border-color: var(--ink); background: var(--ink); color: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ink) 18%, transparent); }
p.studio-note { margin: 8px 0 0; }

/* Révision : apprentissage d'un mot nouveau avant le premier essai. */
.learn-card .card-dir { color: var(--ink); }
.learn-steps { margin: 16px 0; padding-left: 22px; display: grid; gap: 6px; color: var(--text-2); }

/* Réglages, Vocabulaire : cartes supprimées. */
.trash-row { display: flex; align-items: center; gap: 10px; }
.trash-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.trash-actions { flex: none; margin: 0; align-items: center; }

/* Révision : premier essai écrit. */
.write-box { display: grid; gap: 10px; margin: 14px 0; }
.write-lede { margin: 0; text-align: center; }
.write-input { font-size: 21px; text-align: center; } /* (texte à écrire plus grand, propriétaire, 13.11.2026) */
.write-result { margin: 0; display: flex; justify-content: center; align-items: center; gap: 6px; font-weight: 700; }
.write-result:empty { display: none; }
.write-result.w-exact { color: var(--fix); }
.write-result.w-close { color: var(--amber); }
.write-result.w-wrong { color: var(--amber); } /* (propriétaire, 13.11.2026 : en jaune, jamais en rouge) */
.trash-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }
.deck-line { display: flex; align-items: center; gap: 10px; }
.deck-line .trash-main i { font-style: italic; }
.deck-level summary { cursor: pointer; }
.lvl-tag { justify-self: start; font-size: 12px; font-weight: 800; color: var(--ink); background: var(--ink-soft); border-radius: 6px; padding: 1px 6px; }
/* (15.11.2026, propriétaire : « barre de recherche trop haute », arrondi du cadre du dessus abîmé : son fond plein coupait l'ombre du cadre) */
.vocab-search-top { position: sticky; top: 0; z-index: 2; margin-top: 16px; padding: 6px 0 10px; background: var(--bg); }
#set-levels { scroll-margin-top: 76px; }
/* Zone de toucher agrandie autour du petit bouton des mots proposés, sans changer son dessin. */
.word-chip button::after { content: ''; position: absolute; inset: -7px; }
/* Liste de mots : la corbeille reste discrète, pour ne pas inviter à supprimer par erreur. */
.vocab-item .icon-btn.sm[aria-label^="Supprimer"] { color: var(--muted); }

/* Bilan : notes repliées, erreurs regroupées. */
.score-details > summary { cursor: pointer; list-style: none; display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); font-weight: 750; }
.score-details > summary::-webkit-details-marker { display: none; }
.score-details .score-mini { font-weight: 500; font-size: 13.5px; color: var(--text-2); }
.err-types { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding-top: 10px; margin-top: 4px; border-top: 1px solid var(--line); }
.err-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); }
.err-chip .trend { margin-left: 2px; }
/* Type d'une erreur (« go type en tête », 07.11.2026) : légère surbrillance bleu clair, comme dans la vidéo « Mes erreurs »
   (le texte reste aligné sur la faute), en tête de sa ligne et de sa fiche ; au dos de la carte, sous la bonne réponse,
   juste avant la règle. */
.err-kind { width: fit-content; margin: 0 0 4px -5px; padding: 1px 5px; border-radius: 5px; background: var(--ink-soft); font-size: 12px; font-weight: 750; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.err-back .err-kind { margin: 11px 0 -10px; }
.trash-purge { padding: 10px 0 4px; }

/* ---------- Compte ---------- */
.account-intro { margin-top: 8px; }
.account-mark { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); }
.account-intro h1 { margin-top: 14px; }
.account-points { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.account-points li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.account-points li > svg { flex: none; color: var(--fix); margin-top: 2px; }
.account-form { margin-top: 6px; }
.account-form .btn-block { margin-top: 16px; }
.form-error { color: var(--pen); font-weight: 600; margin: 10px 0 0; min-height: 0; }
.form-error:empty { display: none; }
.code-sent { margin: 18px 0 0; }
.code-input { font-size: 28px; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.account-alt { margin-top: 10px; justify-content: center; }
.account-alt > .btn { flex: 0 1 auto; }
/* Code reçu par mail : le décompte (« Renvoyer le code (29 s) ») change de largeur chaque seconde ; les deux boutons
   l'un sous l'autre, chiffres de même largeur : rien ne saute plus d'une ligne à l'autre. */
.account-alt.stack { flex-direction: column; align-items: center; gap: 2px; }
.account-alt .countdown { font-variant-numeric: tabular-nums; }
.account-legal { margin-top: 24px; text-align: center; }
.account-legal a, .about a { color: var(--ink); }
.account-card .account-email { display: flex; gap: 10px; align-items: center; font-size: 17px; overflow-wrap: anywhere; }
.account-card .account-email > svg { flex: none; color: var(--ink); }
.account-card .account-name { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-weight: 650; }
.account-card .account-name .hint { font-weight: 400; }
.sync-status { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0; color: var(--text-2); font-size: 15px; }
.sync-status > svg { flex: none; color: var(--fix); margin-top: 1px; }
.sync-status.warn > svg { color: var(--amber); }
.device-row { display: flex; gap: 12px; align-items: center; }
.device-row > svg { flex: none; color: var(--muted); }
.set-note { margin: 8px 4px 0; }
.privacy-sec { margin-top: 20px; }
.privacy-sec h2 { font-size: 18px; margin-bottom: 6px; }
.privacy-sec p { color: var(--text-2); margin: 0 0 10px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 20px 0 12px; color: var(--muted); font-size: 14px; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.account-note { margin-top: 14px; }
.qr-box { width: min(260px, 72vw); margin: 20px auto 8px; padding: 10px; background: #fff; border-radius: 16px; border: 1px solid var(--line); min-height: 120px; display: flex; align-items: center; justify-content: center; }
.qr-box svg { width: 100%; height: auto; display: block; }
.qr-note { text-align: center; }
.link-btn { margin-top: 12px; }
.account-actions { display: grid; gap: 10px; margin-top: 18px; }
.recovery-code { margin: 18px 0 12px; padding: 16px; border-radius: 14px; background: var(--surface); border: 1.5px dashed var(--ink-line); font: 700 20px/1.5 ui-monospace, 'SFMono-Regular', Menlo, monospace; letter-spacing: 1px; text-align: center; overflow-wrap: anywhere; user-select: all; }
.recovery-input { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; text-transform: uppercase; letter-spacing: 1px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; font-size: 15px; }
.check-row input { width: 22px; height: 22px; flex: none; margin-top: 1px; accent-color: var(--ink-fill); }
.check-row.rename-code { margin-top: 0; font-size: 14px; }
/* Case « J'ai 18 ans ou plus. » (avant l'essai) : la phrase des conditions juste dessous, alignée sur le texte de la case. */
.adult-check .trial-terms { margin: 6px 0 0 32px; }
.e2e-note { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 12px; }
.e2e-note > svg { flex: none; margin-top: 2px; }
.device-row .grow { flex: 1; min-width: 0; }
.danger-text { color: var(--pen); }
.account-intro .lede { margin-top: 8px; }
.save-code { display: grid; gap: 10px; min-width: 0; }
.save-code > .btn-block { width: 100%; white-space: normal; }
.save-code .btn-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.save-code .btn-row > .btn { min-width: 0; padding-left: 6px; padding-right: 6px; gap: 6px; white-space: nowrap; }
.time-select { max-width: 140px; font-variant-numeric: tabular-nums; }
select.input { font: inherit; }
.reminder-card .btn-row { margin-top: 10px; }

/* ---------- Audit visuel (28.09) ---------- */
.radio-stack { display: grid; gap: 2px; text-align: left; }
.radio-stack .radio-title { font-weight: 720; font-size: 16px; color: var(--text); }
.radio-stack .desc { font-size: 14.5px; }
.vocab-line > .icon-btn.sm:first-child { margin-left: -10px; }
/* Écran étroit : « Ajouter » en bouton rond (icône seule, le nom reste lu par les lecteurs d'écran). */
@media (max-width: 400px) {
  .add-word { position: relative; width: 44px; height: 44px; padding: 0; border-radius: 50%; justify-content: center; }
  .add-word .aw-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.about-more > summary { cursor: pointer; color: var(--ink); font-weight: 650; list-style: none; margin-top: 4px; }
.about-more > summary::-webkit-details-marker { display: none; }
.about-more > summary::after { content: ' ›'; }
.about-more[open] > summary { margin-bottom: 8px; }
.vocab-actions { margin-top: 12px; }
.section > .tiles { margin: 0 0 12px; }
/* Pause (temps réel) : bouton blanc avec le micro, pour reprendre ; compteur arrêté, en gris. */
.mic.paused { background: var(--surface); color: var(--ink); border: 2px solid var(--ink); box-shadow: var(--shadow); }
/* Pause (24.10.2026) : « Touche le micro pour reprendre » juste au-dessus du gros micro, qui pulse (le message en haut, à
   côté de « Problème de son ? », faisait toucher le petit casque). */
.pause-hint { display: flex; flex-direction: column; align-items: center; margin: 6px auto -6px; max-width: 100%; text-align: center; color: var(--ink); font-size: 15px; font-weight: 650; line-height: 1.25; }
.pause-hint svg { margin-top: 1px; animation: hint-nudge 1.6s ease-in-out infinite; }
@keyframes hint-nudge { 50% { transform: translateY(3px); } }
.mic.paused.wake { animation: wake-pulse 1.6s ease-in-out infinite; }
@keyframes wake-pulse { 0%, 100% { box-shadow: var(--shadow), 0 0 0 0 color-mix(in srgb, var(--ink) 35%, transparent); } 50% { box-shadow: var(--shadow), 0 0 0 10px color-mix(in srgb, var(--ink) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .mic.paused.wake, .pause-hint svg { animation: none; } }
.s-sub .paused { color: var(--muted); }
/* Courbe pas encore disponible : cadre pointillé à la place du graphique, avec une phrase. */
.chart-empty { margin-top: 12px; min-height: 120px; display: grid; place-items: center; border: 1.5px dashed var(--line); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); font-size: 15px; }
.chart-empty p { margin: 0; max-width: 26ch; }
/* Boutons dans une ligne de réglages ou du compte : un libellé long (allemand, italien, 360 px) va à la ligne au lieu
   d'être coupé au bord de la carte. */
.set-row .btn, .move-banner .btn, .account-screen .btn { white-space: normal; max-width: 100%; text-align: center; }

/* Bilan en préparation : message gras et lisible (l'attente est normale). */
.loading-strong p { font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.4; }
/* Revoir la conversation : corrections cachées, un bouton par phrase. */
/* Bilan, conversation revue : le bouton des corrections bien visible (retour d'une testeuse, 10.10.2026), en rouge
   comme les corrections ; en ambre pour une phrase dite dans une autre langue. La phrase concernée a un trait à gauche. */
.tr-user .tr-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--pen); background: var(--pen-soft); color: var(--pen); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.tr-user .tr-toggle svg { flex: none; }
/* Propriétaire seulement : phrase de la relecture écartée par l'ancrage (« go relecture gardée »). */
.tr-user .relecture { margin: 4px 0 0; font-style: italic; overflow-wrap: anywhere; }
.tr-user .tr-toggle.foreign { border-color: var(--amber-line); background: var(--amber-soft); color: var(--amber); }
.tr-user .tr-toggle[aria-expanded="true"] { background: transparent; }
.tr-user.has-fixes > p:first-child { border-left: 3px solid var(--pen); padding-left: 9px; }
.tr-user.has-foreign > p:first-child { border-left: 3px solid var(--amber-line); padding-left: 9px; }
.tr-fixes { margin-top: 6px; }
.tr-foreign { margin: 0; color: var(--amber); font-weight: 650; }
.tr-en { margin: 4px 0 0; font-weight: 650; }
/* Bilan : « Revoir toute la conversation » en carte, sous un titre de section (avant : petit lien en bas du bilan). */
.convo-review > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); cursor: pointer; }
.convo-review > summary::-webkit-details-marker { display: none; }
.convo-review .cr-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); }
.convo-review .cr-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.convo-review .cr-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.convo-review .cr-sub { font-size: 14px; color: var(--muted); }
.convo-review .cr-chev { flex: none; display: grid; color: var(--ink); transition: transform .15s ease; }
.convo-review[open] .cr-chev { transform: rotate(180deg); }
.convo-review > .panel { margin-top: 10px; font-size: 15px; }
/* Séance : phrase dite dans une autre langue que l'anglais (10.10.2026) : dit en ambre, avec la phrase en anglais. */
.fb-item.foreign::before { background: var(--amber-line); }
.fb-item.foreign .lab { display: flex; align-items: flex-start; gap: 6px; color: var(--amber); font-size: 14px; font-weight: 700; }
.fb-item.foreign .lab svg { flex: none; margin-top: 2px; }
.fb-item.foreign .fb-main > div[lang] { margin-top: 3px; font-weight: 650; }

/* Vocabulaire : réviser d'abord, puis apprendre (un seul bouton qui change). */
.study-block { margin-top: 14px; display: grid; gap: 6px; }
.study-note { text-align: center; margin: 0; }
.studio-btn.btn-outline { color: var(--ink); border-color: var(--ink); border-width: 1.5px; }
.ai-line { display: flex; gap: 8px; align-items: flex-start; margin: 4px 0; }
.ai-line svg { flex: none; margin-top: 3px; }
.sys-note.sys-warn { display: flex; gap: 8px; align-items: flex-start; text-align: left; color: var(--amber); background: var(--amber-soft); border: 1px solid var(--amber-line); border-radius: 12px; padding: 10px 12px; font-weight: 600; }
.sys-note.sys-warn svg { flex: none; margin-top: 2px; }
.fallback-tag { color: var(--amber); background: var(--amber-soft); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
/* Menu propriétaire : sommaire, puis une partie par cadre (titre de partie net, titres de bloc plus petits). */
.admin-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.admin-toc-item { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.admin-toc-item svg { color: var(--ink); flex: none; }
.admin-toc-item.danger svg { color: var(--pen); }
.admin-group { margin-top: 32px; padding-top: 22px; border-top: 2px solid var(--line); scroll-margin-top: 12px; }
.admin-part { margin: 0 0 6px; }
.admin-part h1 { display: flex; align-items: center; gap: 12px; font-size: 22px; line-height: 1.2; margin: 0; }
.admin-badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ink-soft); color: var(--ink); flex: none; }
.admin-danger .admin-badge { background: var(--pen-soft); color: var(--pen); }
.admin-part p { margin: 6px 0 0; }
.admin-group > .section { margin-top: 18px; }
.admin-group > .section > h2 { font-size: 16px; font-weight: 700; color: var(--text-2); margin: 0 0 8px; }
.admin-group > .admin-fold { margin-top: 18px; }
.admin-fold > .dash-sec-body { gap: 10px; padding: 12px; }
/* Liste des abonnés : des lignes séparées par un trait dans la section, pas une carte dans la carte (19.10.2026, retour du
   propriétaire : « cette espèce de double fenêtre »). */
.admin-fold .list { background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.admin-fold .list > .sub-row { padding: 12px 2px; border-top: 1px solid var(--line); }
.admin-form { display: grid; gap: 4px; min-width: 0; }
/* Prénom et nom côte à côte (28.10.2026) : le prénom va dans le message, « Nom Prénom » dans la liste du propriétaire. */
.name-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; min-width: 0; }
.name-pair .input { min-width: 0; }
.name-cell { display: grid; gap: 4px; min-width: 0; }
.admin-more { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.noise-track .lbl { font-weight: 650; }
.noise-track .desc { color: var(--muted); font-size: 14px; margin-top: 2px; }
.admin-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; font-weight: 600; cursor: pointer; list-style: none; }
.admin-more > summary::-webkit-details-marker { display: none; }
.admin-more > summary svg { color: var(--text-2); transition: transform .2s; flex: none; }
.admin-more[open] > summary svg { transform: rotate(180deg); }
.admin-more > .section { margin: 0; padding: 0 12px 12px; }
.admin-more > .section > h2 { font-size: 16px; font-weight: 700; color: var(--text-2); margin: 8px 4px; }
.owner-leave { margin-top: 32px; padding-top: 22px; border-top: 2px solid var(--line); }

/* Essai avec IA incluse (écran de la clé) et abonnement en ligne */
.trial-offer { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 4px 0 18px; }
.trial-offer .trial-title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.trial-offer .trial-title svg { color: var(--ink); flex: none; }
.trial-offer .btn { margin-top: 10px; }
.trial-offer .trial-or { margin: 14px 0 0; }
.pay-box .btn { margin-top: 4px; }
.pay-wait { display: flex; align-items: center; gap: 10px; }
.pay-wait .spinner { width: 18px; height: 18px; border-width: 2px; flex: none; }
.plan-card { border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-top: 12px; display: grid; gap: 6px; background: var(--surface); }
.plan-card.best { border: 2px solid var(--ink); }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 1.3rem; }
.period-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 12px; border-radius: 999px; background: var(--surface-2); scroll-margin-top: 14px; }
.period-opt { min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: inherit; font-weight: 700; cursor: pointer; }
.period-opt.on { background: var(--ink-fill); color: var(--on-ink); }
.plan-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
/* Prix au mois barré à l'année : même taille que le prix réel, trait en travers (diagonale) et rouge. */
.plan-was { position: relative; display: inline-block; color: var(--muted); font-size: 1.6rem; font-weight: 800; text-decoration: none; margin-right: 4px; }
.plan-was::after { content: ''; position: absolute; left: -3px; right: -3px; top: 50%; border-top: 3px solid var(--pen); transform: rotate(-14deg); border-radius: 2px; }
.plan-amount { font-size: 1.6rem; font-weight: 800; color: var(--text); }
.plan-per { color: var(--text-2); font-weight: 600; }
.plan-card .save-badge { justify-self: start; }
.plan-card .plan-billing { margin-top: -2px; }
.pay-box .trial-link { white-space: normal; text-align: center; height: auto; padding-top: 8px; padding-bottom: 8px; }
.save-badge { font-size: .8rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; background: var(--fix-soft); color: var(--fix); white-space: nowrap; }
.dash-box { display: grid; gap: 6px; }
.dash-row { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.dash-row b { text-align: right; }
.dash-row b.nw { white-space: nowrap; }
/* Modèles de Google au menu propriétaire (18.11.2026). */
.models-panel .model-row { display: grid; gap: 1px; padding: 6px 0; border-top: 1px solid var(--line); }
.models-panel .model-row:first-of-type { border-top: 0; }
.models-panel .model-id { white-space: nowrap; }
.dash-row > span { min-width: 0; }
/* Ligne du tableau de bord qu'on touche pour voir ses comptes (« go détail ») */
.dash-tap { width: 100%; background: none; border: 0; padding: 4px 0; margin: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; border-radius: 8px; }
.dash-tap b { display: inline-flex; align-items: center; gap: 2px; color: var(--ink); }
.dash-tap:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.detail-list { display: grid; gap: 12px; }
.detail-acc { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 3px; }
.detail-acc p { margin: 0; }
.detail-top { overflow-wrap: anywhere; }
.detail-ses { margin: 2px 0 0; padding-left: 18px; display: grid; gap: 2px; }
.dash-grid { display: grid; grid-template-columns: 1fr auto auto; column-gap: 14px; row-gap: 4px; align-items: baseline; }
.dash-grid .dash-h { font-size: .8rem; color: var(--text-2); text-align: right; }
.dash-grid .dash-n { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.dash-grid.four { grid-template-columns: 1fr auto auto auto; }
/* Quatre colonnes du tableau de bord (24.10.2026) : aujourd'hui, 7 jours, ce mois, en tout ; le libellé passe à la ligne. */
/* (Libellé jamais coupé au milieu d'un mot, « Conversati / on libre » à 360 px : il passe à la ligne entre les mots.) */
.dash-grid.five { grid-template-columns: minmax(min-content, 1fr) repeat(4, minmax(2.6em, auto)); column-gap: 10px; }
.dash-grid.five + .dash-grid.five, .dash-grid.five + .small + .dash-grid.five { margin-top: 10px; }
.dash-grid.five > span:not(.dash-n):not(.dash-h) { min-width: 0; overflow-wrap: break-word; }
.dash-grid .dash-2 { display: grid; justify-items: end; line-height: 1.15; }
.dash-grid .dash-2 small { font-weight: 500; font-size: .74rem; color: var(--text-2); white-space: nowrap; }
.dash-grid .dash-2 small.dash-own { color: var(--ink); font-weight: 600; }
.dash-grid.five.stacked { column-gap: 6px; }
.dash-grid .dash-n.muted { font-weight: 500; color: var(--text-3, var(--text-2)); }
.dash-grid .dash-strong { font-weight: 700; }
.dash-grid .dash-top { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; }
.backup-status { display: grid; gap: 8px; margin: 10px 0; }
.backup-status p { display: flex; gap: 8px; align-items: flex-start; margin: 0; }
.backup-status p svg { flex: none; margin-top: 2px; }
.cost-edit { display: grid; gap: 12px; margin: 10px 0; }
.cost-row { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); min-width: 0; }
.cost-line { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr) auto; gap: 6px; align-items: center; }
.dash-grid .dash-h.dash-left { text-align: left; }
.dash-box { gap: 10px; }
.dash-box > .live-box { margin: 0; }
.dash-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 8px; }
.dash-stamp { font-size: .85rem; color: var(--text-2); border-radius: 6px; padding: 2px 4px; margin-left: -4px; }
.dash-stamp.flash { animation: dashFlash 1.2s ease-out; }
@keyframes dashFlash { from { background: var(--ink-soft); color: var(--ink); } to { background: transparent; } }
.dash-refresh.spin svg { animation: dashSpin .8s linear infinite; }
@keyframes dashSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dash-stamp.flash, .dash-refresh.spin svg { animation: none; } }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-kpi { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); display: grid; gap: 1px; min-width: 0; align-content: start; }
.dash-kpi-l { font-size: .8rem; color: var(--text-2); }
.dash-kpi-v { font-size: 1.4rem; font-weight: 800; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--text); overflow-wrap: anywhere; }
.dash-kpi-s { font-size: .78rem; color: var(--text-2); }
.dash-kpi.warn .dash-kpi-v { color: var(--amber); }
.dash-sec { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); min-width: 0; }
.dash-sec > summary { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 52px; cursor: pointer; list-style: none; }
.dash-sec > summary::-webkit-details-marker { display: none; }
.dash-sec > summary::marker { content: ''; }
.dash-sec > summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 14px; }
.dash-sec-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); flex: none; }
.dash-sec-tt { display: grid; gap: 1px; flex: 1; min-width: 0; }
.dash-sec-t { font-weight: 700; }
.dash-sec-v { font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.dash-sec > summary > svg:last-child { color: var(--text-2); flex: none; transition: transform .2s; }
.dash-sec[open] > summary > svg:last-child { transform: rotate(180deg); }
.dash-sec-body { display: grid; gap: 6px; padding: 10px 12px 12px; border-top: 1px solid var(--line); min-width: 0; }
.dash-sec-body .dash-sub:first-child { margin-top: 0; }
/* Argent, partie à part du menu (18.10.2026) : comme le tableau de bord, l'essentiel en haut puis des sections repliées
   (menu plus court, 28.10.2026). Une TVA due se voit sur la ligne de titre. */
.money-box { display: grid; gap: 10px; min-width: 0; }
.money-box > * { min-width: 0; }
.dash-sec.warn .dash-sec-v { color: var(--amber); font-weight: 600; }
/* Tuile qu'on touche (« Journaux », 28.10.2026) : la même tuile, avec une flèche en haut à droite. */
.dash-kpi-btn { position: relative; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.dash-kpi-btn > svg { position: absolute; top: 10px; right: 8px; color: var(--ink); }
.dash-kpi-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dash-kpi-btn:active { background: var(--surface-2); }
/* Volet replié dans un bloc (clé de propriétaire, sauvegarde) : plus près de ce qui le précède. */
.section > .admin-more, .backup-panel > .admin-more { margin-top: 10px; }
.dash-sec-body > .btn { justify-self: start; }
.log-fold { border: 1px solid var(--line); border-radius: 10px; margin-top: 8px; min-width: 0; }
.log-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; min-height: 44px; cursor: pointer; list-style: none; font-weight: 650; color: var(--ink); }
.log-fold > summary::-webkit-details-marker { display: none; }
.log-fold > summary::marker { content: ''; }
.log-fold > summary > svg { transition: transform .2s; flex: none; }
.log-fold[open] > summary > svg { transform: rotate(180deg); }
.log-fold > .sound-log, .log-fold > .paged { margin: 0 10px 10px; }
.log-fold .diag-list { margin-top: 0; }
.warn-text { color: var(--amber); font-weight: 700; margin: 0; }
.plan-badge { font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--ink-fill); color: var(--on-ink); }
.plan-what { margin: 0; font-weight: 700; font-size: 1.06rem; color: var(--text); }
.plan-price { margin: 4px 0 0; font-weight: 700; color: var(--blue); }
.plan-card .small { margin: 0; font-size: .95rem; font-weight: 500; }
.plan-buttons { display: grid; gap: 8px; margin-top: 6px; }
.plan-buttons .btn { white-space: normal; margin-top: 0 !important; }

/* Examen à deux vrais candidats : qui parle (le candidat touche son prénom avant de parler). */
/* Examen à deux : un prénom de chaque côté, au-dessus du micro. */
.duo-who { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 10px; }
.duo-who .chip { min-height: 52px; padding: 0 18px; font-size: 17px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duo-who .chip:first-child { justify-self: start; }
.duo-who .chip:last-child { justify-self: end; }
.duo-who .duo-q { text-align: center; }
.duo-box { display: grid; gap: 8px; }
/* Fiche d'un examen (09.10.2026, refaite d'après le propriétaire) : « Ton partenaire est » dans une seule carte, le
   titre, un curseur glissant sur une ligne et ce qui dépend du choix juste dessous ; titres et textes plus grands. */
.partner-card, .talk-card { margin-top: 16px; padding: 16px; border-radius: 18px; background: var(--surface-2); display: grid; gap: 12px; }
.partner-card p, .talk-card p { margin: 0; }
.partner-card .pc-title, .talk-card .pc-title { font-size: 18px; font-weight: 750; line-height: 1.25; margin: 0; }
.partner-card .pc-text, .talk-card .pc-text { font-size: 15px; line-height: 1.45; color: var(--text-2); }
.virtual-box, .leo-box { display: grid; gap: 12px; }
.leo-box { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--line); }
.slider { position: relative; display: grid; grid-template-columns: repeat(var(--n, 2), 1fr); padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.slider.dragging .slider-thumb { transition: none; }
.slider.dragging .slider-opt { cursor: grabbing; }
.slider-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n, 2)); border-radius: 999px; background: var(--ink-fill); box-shadow: 0 1px 3px rgba(19, 28, 46, .2); transition: transform .22s ease; }
.slider .slider-thumb { transform: translateX(calc(var(--i, 0) * 100%)); }
.slider-opt { position: relative; z-index: 1; min-height: 38px; padding: 4px 6px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--text-2); cursor: pointer; transition: color .22s ease; }
.slider-opt.on { color: var(--on-ink); }
.slider-opt:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .slider-thumb, .slider-opt { transition: none; } }
.duo-fields { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.duo-fields select { min-width: 8.5em; }
.duo-fields.one { grid-template-columns: minmax(0, 1fr); margin-bottom: 8px; }
.duo-ai { font-weight: 600; }
.duo-more summary { cursor: pointer; color: var(--ink); font-size: 15px; font-weight: 600; padding: 4px 0; }
.duo-more p { margin-top: 6px; }
.exam-age { margin-top: 16px; }
.exam-age-line { margin-top: 16px; font-size: 15px; color: var(--text-2); }
.exam-quota { margin: 10px 0 0; }
.exam-age-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.exam-age-row .link-btn { margin-top: 0; }
.exam-age-edit { padding: 4px 0 8px; }
.msg-user[data-who]::before { content: attr(data-who); align-self: flex-end; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin: 0 6px 2px 0; }
/* Deux vrais candidats : rendre une réponse à l'autre candidat (pendant l'examen et dans le bilan). */
.msg-user .who-swap { align-self: flex-end; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.tr-user .who-swap { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
/* Examen à deux, conversation revue : « Changer » et « Séparer » côte à côte ; réponse signalée (peut-être au mauvais
   nom) en ambre, avec la raison. */
.tr-user .who-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-top: 4px; }
.tr-user .who-actions button { line-height: 1.4; padding: 0; }
.tr-user .who-actions .who-swap { display: inline; margin-top: 0; }
.tr-user .who-split { font-size: 13px; font-weight: 600; color: var(--muted); }
.tr-user.flagged { background: var(--amber-soft); border-radius: 12px; padding: 8px 10px; margin: 0 -10px; }
.tr-user.flagged .who-actions button { color: var(--amber); }
.attr-note { display: flex; gap: 6px; align-items: flex-start; margin: 6px 0 0; color: var(--amber); font-size: 14px; font-weight: 600; }
.attr-note svg { flex: none; margin-top: 2px; }
/* Signaler une réponse : les répliques proposées passent à la ligne. */
.flag-turns .chip { white-space: normal; text-align: left; line-height: 1.35; }
/* Modifier une carte de vocabulaire (liste, nouveau mot, révision). */
.edit-card .field { margin-top: 0; }
.edit-card .field > span { font-size: 14px; margin-bottom: 6px; }
.flashcard .card-edit { display: inline-flex; align-items: center; gap: 6px; margin: 12px auto 0; }
.flashcard .card-tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; margin-top: 12px; }
.flashcard .card-tools .card-edit { margin: 0; }
.card-skip { display: inline-flex; align-items: center; gap: 6px; margin: 0; color: var(--text-2); }
.card-tools .link-btn { min-height: 44px; }
/* Bilan prêt, pas encore lu : pastille rouge sur « Progrès », en haut de Progrès et dans l'historique. */
.tab .badge.dot { min-width: 0; width: 10px; height: 10px; padding: 0; top: 10px; left: calc(50% + 10px); box-shadow: 0 0 0 2px var(--bg, #fff); }
.new-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--pen); }
.report-ready { margin: 4px 0 8px; }
/* Liens légaux (À propos) et rappel des conditions avant de s'abonner. */
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.terms-note { margin-top: 12px; text-align: center; }
.pay-box .renew-note { margin-top: 10px; }
/* Accueil après le paiement (« go retour paiement », 20.11.2026). */
.pay-welcome { margin-top: 12px; padding: 20px 18px; text-align: center; display: grid; gap: 8px; justify-items: center; }
.pay-welcome h2 { margin: 2px 0 0; font-size: 1.4rem; }
.pay-welcome p { margin: 0; max-width: 34ch; }
.pay-welcome .btn { margin-top: 6px; justify-self: stretch; }
.pay-welcome-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--fix-soft); color: var(--fix); }
.pay-welcome.wait .pay-welcome-icon, .pay-welcome.slow .pay-welcome-icon { background: var(--ink-soft); color: var(--ink); }
.pay-welcome-icon svg { width: 30px; height: 30px; }
/* Vocabulaire gratuit, juste sous les formules (18.11.2026) : une ligne nette, icône dans une pastille, titre en gras. */
.vocab-free { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.vocab-free > svg { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 50%; background: var(--ink-soft); color: var(--ink); }
.vocab-free > div { display: grid; gap: 2px; line-height: 1.35; }
.vocab-free b { font-size: .98rem; color: var(--text); }
.pay-box .vocab-free + .trial-link { margin-top: 10px; }
/* Parraine tes amis (écran Abonnement) : lien, Partager / Copier, compteur. */
.ref-panel { display: grid; gap: 10px; }
/* Mis en évidence : cadre bleu clair, cadeau, titre fort (un mois offert par ami abonné). */
.ref-highlight { background: var(--ink-soft); border: 1px solid var(--ink-line); box-shadow: none; }
.ref-head { display: flex; gap: 12px; align-items: flex-start; }
.ref-head h2 { margin: 0 0 2px; font-size: 1.15rem; color: var(--ink); }
.ref-head p { margin: 0; color: var(--text); }
.ref-gift { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); color: var(--ink); }
.ref-highlight .ref-link { background: var(--surface); }
/* Formules repliées quand un accès est déjà actif (code de classe, testeur) : « Voir les formules et les prix ». */
.plans-more { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plans-more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; padding: 12px 16px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.plans-more > summary::-webkit-details-marker { display: none; }
.plans-more > summary svg { flex: none; transition: transform .2s; }
.plans-more[open] > summary svg { transform: rotate(180deg); }
.plans-more[open] { padding: 0 12px 12px; }
.plans-more[open] > summary { padding: 12px 4px; }
.ref-panel .ref-link { font-size: 15px; min-height: 46px; padding: 10px 12px; color: var(--text-2); text-overflow: ellipsis; }
.ref-actions > .btn { flex: 1 1 140px; min-width: 0; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref-stat { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; align-content: start; }
.ref-stat b { font-size: 24px; line-height: 1.1; color: var(--ink); }
.ref-stat span { font-size: 13.5px; color: var(--text-2); line-height: 1.3; }
.ref-panel .small { margin: 0; }
/* Apprentissage en 4 étapes : gros bouton d'écoute (étape 1), deux réponses (compris / pas compris). */
.flashcard .listen-big { width: 76px; height: 76px; border-radius: 50%; background: var(--ink-soft); color: var(--ink); }
.flashcard .listen-big:disabled { opacity: .45; }
.grade-row.two { grid-template-columns: 1fr 1fr; margin-top: 14px; }

.learn-more { margin-top: 10px; }
.pick-counts { margin: 6px 0 4px; }
.pick-foot { position: sticky; bottom: 0; padding: 14px 0 calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg) 30%); display: grid; justify-items: center; gap: 4px; }
.pick-foot .pick-go { width: 100%; }
/* Menu d'urgence du propriétaire */
.urg-box { display: grid; gap: 14px; }
.urg-row { display: grid; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.urg-row p { margin: 0; }
.urg-row .btn-row { margin: 2px 0 0; align-items: center; }
.urg-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; align-items: baseline; }
.urg-state { font-weight: 700; color: var(--ink); }
.urg-state.cut { color: var(--pen); }
.urg-cap { width: 110px; flex: 0 0 auto; }
.sound-log { font-size: 11px; line-height: 1.45; max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; background: var(--surface-2, var(--bg)); border-radius: 10px; padding: 8px 10px; margin: 8px 0 0; }

/* Partager le bilan en image */
.btn-row.stack { flex-direction: column; }
/* Largeur écrite (23.10.2026, fenêtre coupée à droite sur le téléphone du propriétaire) : avant, « width: auto » et la
   hauteur maximale laissaient le navigateur déduire la largeur de la hauteur (64 % de l'écran × 0,8), plus large que
   l'écran sur un grand téléphone, et la colonne de la grille, puis la fenêtre, s'élargissaient avec. */
.share-preview { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; justify-items: center; width: 100%; min-width: 0; }
.share-img { display: block; width: min(100%, calc(min(64dvh, 640px) * 0.8)); min-width: 0; height: auto; cursor: zoom-in; aspect-ratio: 1080 / 1350; border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.share-preview p { text-align: center; }

/* Abonnement compact : deux formules, la suivante se devine en bas de l'écran (06.10.2026). */
.pay-box .pay-lede { margin-bottom: 4px; }
/* Repères de sécurité du paiement (« go sécurité paiement ») : trois lignes courtes, icônes vertes, avant les prix. */
.pay-lede { display: flex; gap: 8px; align-items: center; }
.pay-lede svg { flex: none; width: 16px; height: 16px; color: var(--fix); }
.pay-trust { list-style: none; margin: 12px 0 4px; padding: 10px 12px; display: grid; gap: 8px; border-radius: 14px; background: var(--fix-soft); }
.pay-trust li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--text-2); }
.pay-trust svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--fix); }
.pay-box .plan-card { padding: 12px 14px; gap: 4px; margin-top: 10px; }
.pay-box .plan-head { font-size: 1.2rem; }
.pay-box .plan-what { font-size: .98rem; font-weight: 600; line-height: 1.4; }
.pay-box .plan-price-row { margin-top: 2px; align-items: center; }
.pay-box .plan-amount, .pay-box .plan-was { font-size: 1.4rem; }
.pay-box .plan-price-row .save-badge { margin-left: 2px; }
.pay-box .plan-buttons { margin-top: 4px; }
/* Garantie de 14 jours à l'année : sous le prix (formules) et dans Mon abonnement (remboursement). */

.share-zoom { position: fixed; inset: 0; z-index: 1000; background: rgba(5, 10, 25, .92); display: grid; place-items: center; padding: 12px; cursor: zoom-out; }
.share-zoom img { max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 12px; }

.ai-included .btn-block { white-space: normal; height: auto; min-height: 48px; padding-top: 10px; padding-bottom: 10px; line-height: 1.25; text-align: center; }
.dash-sub { margin: 10px 0 2px; font-weight: 700; font-size: .9rem; color: var(--text-2); }

/* Mention d'âge sous les boutons qui lancent la conversation d'essai sans compte (toucher = confirmation). */
.adult-note { margin: 8px 2px 0; line-height: 1.4; }
.adult-note a { color: inherit; text-decoration: underline; }
.feature .adult-note { color: rgba(255, 255, 255, 0.9); margin-top: 10px; }

/* Menu propriétaire : journaux de problèmes envoyés par l'app (un par séance, dépliable). */
.diag-list { display: grid; gap: 8px; margin-top: 8px; }
.diag-item { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.diag-item summary { cursor: pointer; list-style: none; display: grid; gap: 2px; }
.diag-item summary::-webkit-details-marker { display: none; }
.diag-item summary::marker { content: ''; }
.diag-head { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 4px 8px; align-items: center; }
/* Journaux lisibles (29.10.2026) : « Gêne », « À surveiller » ou « Envoi à Claude » devant la raison en clair. */
.diag-tag { font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; white-space: nowrap; }
.diag-tag.warn { background: var(--pen-soft); color: var(--pen); }
.sound-log > span { display: block; }
.sound-log .log-gene { background: var(--amber-soft); color: var(--amber); font-weight: 700; margin: 0 -10px; padding: 0 10px; box-shadow: inset 3px 0 0 var(--amber-line); }
.log-gene-note { margin: 8px 0 0; color: var(--amber); font-weight: 600; }
.diag-tag.calm { background: var(--surface-2); color: var(--text-2); }
.diag-tag.own { background: var(--ink-soft); color: var(--ink); }
.diag-head b { color: var(--ink); overflow-wrap: anywhere; }
.diag-meta { font-size: .85rem; color: var(--text-2); overflow-wrap: anywhere; }
.diag-item[open] summary { margin-bottom: 6px; }
.diag-item .btn-row { margin-top: 8px; }

/* Bilan : télécharger la conversation ; propriétaire : envoyer le journal de la séance. */
.conv-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.conv-actions .btn { display: inline-flex; align-items: center; gap: 6px; }
/* Bouton du propriétaire, texte long : sur deux lignes à 360 px (« go bouton journal », 25.10.2026 : 359 px sans retour à la ligne, page 3 px trop large). */
.conv-actions .conv-log { white-space: normal; text-align: left; max-width: 100%; padding-top: 8px; padding-bottom: 8px; }
/* Progrès : toutes les réussites, dépliables. */
.praise-more { margin-top: 6px; }
.praise-more > summary { cursor: pointer; color: var(--ink); font-weight: 600; padding: 8px 0; }

/* Message de service du propriétaire (service-notice.js) : bandeau calme en haut, bleu (jamais rouge), ou écran de
   maintenance qui recouvre l'app. */
.notice-bar { position: sticky; top: 0; z-index: 50; max-width: var(--appw); margin: 0 auto; display: flex; align-items: flex-start; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 10px 10px 16px; background: var(--ink-soft); border-bottom: 1px solid var(--ink-line); color: var(--text); }
.notice-bar > .icon { color: var(--ink); flex: none; margin-top: 2px; }
.notice-bar .notice-text { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.notice-bar .notice-text b { font-size: 15px; }
.notice-bar .notice-close { flex: none; margin: -6px -2px 0 0; }
.notice-bar.owner { background: var(--amber-soft); border-bottom-color: var(--amber-line); }
.notice-bar.owner > .icon { color: var(--amber); }
.maint { position: fixed; inset: 0; z-index: 95; background: var(--bg); display: grid; place-items: center; padding: calc(24px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom)); overflow-y: auto; }
.maint-card { width: min(100%, 420px); text-align: center; display: grid; gap: 14px; justify-items: center; }
.maint-card h1 { font-size: 24px; line-height: 1.25; margin: 0; }
.maint-card .lede { margin: 0; }
.maint-icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-soft); color: var(--ink); }
.maint-owner { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 8px; justify-items: center; }

/* Tableau de bord du propriétaire : en ce moment (personnes en conversation, voyant des limites). */
.live-box { border: 1px solid var(--line); border-left: 4px solid var(--fix); border-radius: 12px; padding: 10px 12px; margin: 0 0 10px; background: var(--surface); }
.live-box.live-watch { border-left-color: var(--amber-line); }
.live-box.live-act { border-left-color: var(--pen); }
.live-now { display: flex; align-items: center; gap: 12px; }
.live-now p { margin: 2px 0 0; }
.live-n { font-size: 32px; font-weight: 800; line-height: 1; min-width: 1.6ch; text-align: center; color: var(--text); }
.live-verdict { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; color: var(--fix); }
.live-watch .live-verdict { color: var(--amber); }
.live-act .live-verdict { color: var(--pen); }
.live-verdict span { color: var(--text-2); }
.live-issue { margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--amber-soft); color: var(--text); }
.live-issue.live-act { background: var(--pen-soft); }
.live-issue p { margin: 0; }
.live-issue p + p { margin-top: 4px; }

/* ---------- Progrès : missions accomplies et réussites (11.10.2026, « créer de la dopamine ») ---------- */
/* Tuile des missions : verte comme « Mission accomplie », on la touche pour voir la collection et revoir une mission. */
.tile.mission-tile { display: block; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer;
  background: linear-gradient(160deg, var(--fix-soft), var(--surface) 72%); }
.mission-tile .t-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--fix); font-weight: 700; }
.mission-tile .t-label .chev { width: 16px; height: 16px; flex: none; }
.mission-tile .t-value { display: flex; align-items: center; gap: 6px; color: var(--fix); }
.mission-tile .t-value svg { width: 20px; height: 20px; }
.mt-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin: 6px 0 4px; }
.mt-bar > i { display: block; height: 100%; border-radius: inherit; background: var(--fix); min-width: 6px; }
/* Tuile des leçons du jour (16.10.2026) : sur toute la largeur, ambre (l'ampoule), même collection que les missions. */
.tile.lesson-tile { display: block; width: 100%; grid-column: 1 / -1; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer;
  background: linear-gradient(160deg, var(--amber-soft), var(--surface) 72%); }
.lesson-tile .t-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--amber); font-weight: 700; }
.lesson-tile .t-label .chev { width: 16px; height: 16px; flex: none; }
.lesson-tile .lt-row { display: flex; align-items: center; gap: 14px; }
.lesson-tile .t-value { display: flex; align-items: center; gap: 6px; color: var(--amber); flex: none; }
.lesson-tile .t-value svg { width: 20px; height: 20px; }
.lesson-tile .lt-side { flex: 1; min-width: 0; }
.lesson-tile .mt-bar > i, .ms-hero.lesson .mt-bar > i { background: var(--amber-line); }
.ms-hero.lesson { background: var(--amber-soft); }
.ms-hero .ms-icon.lesson { background: var(--amber-line); color: var(--surface); }
.ms-hero.lesson .ms-total { color: var(--amber); }
.lesson-badges .mission-badge.won .mb-icon { background: var(--amber-line); box-shadow: 0 4px 12px rgba(201, 138, 34, .25); }
.lesson-badges .mission-badge .mb-check { color: var(--amber); border-color: var(--amber-line); }
.mission-badge .mb-day { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.missions-sheet h3 { font-size: 16px; margin: 18px 0 8px; }
.ms-hero { display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--fix-soft); }
.ms-hero .ms-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--fix); color: var(--surface); }
.ms-hero > div { flex: 1; min-width: 0; }
.ms-total { display: flex; align-items: baseline; gap: 8px; color: var(--fix); }
.ms-total b { font-size: 32px; line-height: 1; }
.ms-total span { font-weight: 700; }
.mission-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.mission-badge { display: grid; justify-items: center; gap: 6px; text-align: center; text-decoration: none; color: var(--muted); padding: 8px 2px; border-radius: 14px; }
.mission-badge .mb-icon { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; border: 2px dashed var(--line); color: var(--muted); }
.mission-badge .mb-name { font-size: 12.5px; line-height: 1.2; }
.mission-badge.won { color: var(--text); }
.mission-badge.won .mb-icon { border: 0; background: var(--fix); color: var(--surface); box-shadow: 0 4px 12px rgba(15, 122, 74, .25); }
.mission-badge.won .mb-name { font-weight: 700; }
.mission-badge .mb-check { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--fix); border: 2px solid var(--fix); }
.mission-badge .mb-check svg { width: 12px; height: 12px; }
.mission-list { margin-top: 4px; }
/* Réussites : en grand, en violet. */
.praise-hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--praise-soft), var(--surface) 80%); }
.praise-hero .pr-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--praise); color: var(--surface); }
.praise-hero .pr-main { flex: 1; min-width: 0; }
.praise-hero .pr-total { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--praise); }
.praise-hero .pr-total b { font-size: 34px; line-height: 1; }
.praise-hero .pr-total span { font-weight: 700; }
.praise-hero .pr-week { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 99px; background: var(--praise); color: var(--surface); font-size: 13.5px; font-weight: 700; }
.praise-hero .pr-week.none { background: transparent; color: var(--muted); padding: 0; font-weight: 500; }
button.praise-row.tap { width: 100%; text-align: left; font: inherit; color: inherit; background: none; border: 0; border-radius: 0; cursor: pointer; grid-template-columns: 22px 1fr 18px; }
button.praise-row.tap + .praise-row, .praise-row + button.praise-row.tap { border-top: 1px solid var(--line); }
button.praise-row.tap > .chev { width: 18px; height: 18px; color: var(--muted); align-self: center; }
/* Extrait de la conversation où la réussite a été dite. */
.praise-excerpt .pe-phrase { display: flex; gap: 8px; align-items: flex-start; color: var(--praise); font-weight: 800; font-size: 19px; }
.praise-excerpt .pe-phrase svg { flex: none; margin-top: 4px; }
.praise-excerpt .pe-why { color: var(--text-2); margin: 6px 0 0; }
.praise-excerpt .pe-where { margin: 14px 0 6px; }
.pe-convo { display: grid; gap: 10px; box-shadow: none; border: 1px solid var(--line); }
.pe-convo .ex-line { font-size: 15.5px; line-height: 1.45; color: var(--text-2); }
.pe-convo .ex-line.me { color: var(--text); padding: 8px 10px; margin: 0 -4px; border-radius: 10px; background: var(--praise-soft); }
/* Bilan : phrase retrouvée (réussite touchée, mission revue depuis Progrès). */
.convo-review [data-ti].tr-focus { animation: tr-focus 2.6s ease; border-radius: 8px; }
@keyframes tr-focus { 0%, 60% { background: var(--praise-soft); box-shadow: 0 0 0 6px var(--praise-soft); } 100% { background: transparent; box-shadow: 0 0 0 6px transparent; } }
@media (prefers-reduced-motion: reduce) { .convo-review [data-ti].tr-focus { animation: none; background: var(--praise-soft); } }
.mission-list .row-icon { background: var(--fix-soft); color: var(--fix); }

/* Progrès : la série en tête, avec la semaine ; tuile des réussites à côté des missions. */
.streak-hero { padding: 16px; border-radius: var(--radius); box-shadow: var(--shadow); background: linear-gradient(150deg, var(--amber-soft), var(--surface) 78%); margin-bottom: 10px; }
.streak-hero .sh-top { display: flex; gap: 14px; align-items: center; }
.streak-hero .sh-icon { flex: none; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--amber-line); color: #fff; }
.streak-hero.none .sh-icon { background: var(--surface-2); color: var(--muted); }
.streak-hero .sh-main { flex: 1; min-width: 0; }
.streak-hero .sh-count { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--amber); }
.streak-hero .sh-count b { font-size: 34px; line-height: 1; }
.streak-hero .sh-count span { font-weight: 700; color: var(--text); }
.streak-hero .sh-count.none { font-size: 18px; font-weight: 700; color: var(--text); }
.streak-hero .sh-record { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.streak-hero .sh-record.new { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--amber-line); color: #fff; font-weight: 750; }
.streak-hero .streak-week { justify-content: space-between; margin-top: 14px; }
.streak-hero .sw-day i { width: 32px; height: 32px; }
.streak-hero .sw-day.done i svg { width: 16px; height: 16px; }
.streak-hero .sw-day b { font-size: 12px; line-height: 15px; }
.tile.praise-tile { display: block; width: 100%; text-align: left; font: inherit; color: inherit; border: 0; cursor: pointer;
  background: linear-gradient(160deg, var(--praise-soft), var(--surface) 72%); }
.praise-tile .t-label { display: flex; align-items: center; justify-content: space-between; gap: 4px; color: var(--praise); font-weight: 700; }
.praise-tile .t-label .chev { width: 16px; height: 16px; flex: none; }
.praise-tile .t-value { display: flex; align-items: center; gap: 6px; color: var(--praise); }
.praise-tile .t-value svg { width: 20px; height: 20px; }
#progress-praise.flash .praise-hero { animation: tr-focus 1.6s ease; }
#progress-errors.flash .pattern-list { animation: tr-focus 1.6s ease; border-radius: var(--radius, 14px); }

/* Verbes (12.10.2026) : régulier ou irrégulier, et les trois formes, sur la carte ; tableau des verbes irréguliers. */
.verb-forms { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 8px; margin: 2px 0 0; font-size: 16px; }
.verb-forms .verb-tag { font-size: 12.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: var(--ink-soft); color: var(--ink); }
.verb-forms.irr .verb-tag { background: var(--amber-soft); color: var(--amber); }
.verb-forms .verb-parts { font-weight: 700; color: var(--text); }
/* Dans une liste (recherche, Toutes les cartes, Mes mots) : alignée à gauche, plus petite (13.10.2026). */
.verb-forms.mini { justify-content: flex-start; font-size: 14px; margin: 3px 0 0; gap: 2px 8px; }
.verb-forms.mini .verb-tag { font-size: 11.5px; padding: 1px 7px; }
.verb-table-help { margin: 0 0 6px; }
/* 140 verbes : seul le tableau défile, le titre et « Fermer » restent visibles. */
.verb-table { display: grid; gap: 2px; max-height: 56dvh; overflow-y: auto; overscroll-behavior: contain; border-top: 1px solid var(--line); }
.verb-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 4px 4px; border-bottom: 1px solid var(--line); }
.verb-say { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; text-align: left; padding: 5px 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.verb-say > .icon { color: var(--ink); }
.verb-say-text { display: grid; gap: 1px; min-width: 0; }
.verb-row .deck-add .btn-sm { min-height: 36px; padding: 0 10px; font-size: 14px; }
.verb-row-forms { font-size: 16px; }
.verb-row-tr { font-size: 13.5px; color: var(--muted); }

/* Voix incomplète (12.10.2026) : « La voix a été coupée. » + « Faire répéter » sous la réplique. */
.voice-cut { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 2px; font-size: 14px; color: var(--amber); }
.voice-cut .icon { flex: none; }
.voice-cut .btn { margin-left: auto; }

/* Zones tactiles d'au moins 44 px (audit du 13.10.2026) : curseurs, liens en texte et lignes repliables. Le dessin ne change pas
   (la zone grandit autour), seule la hauteur utile augmente. */
input[type="range"] { height: 44px; }
.link-btn, .legal-links a { display: inline-flex; align-items: center; min-height: 44px; }
.topic-head a { display: inline-flex; align-items: center; min-height: 44px; margin: -12px 0; }
.topic-head { align-items: center; }
.chart-table summary, details.more > summary, .deck-level summary, .key-more summary, .duo-more summary, .praise-more summary, .about-more > summary { display: flex; align-items: center; min-height: 44px; }
details.more > summary { justify-content: space-between; }
.help-link { display: inline-flex; align-items: center; min-height: 44px; }

/* Recherche de vocabulaire (13.10.2026) : le mot trouvé en surbrillance, la forme du verbe expliquée, la phrase d'exemple. */
mark.hit { background: var(--amber-soft); color: inherit; border-radius: 3px; padding: 0 1px; }
.via-note { font-size: 13px; color: var(--muted); }
.vocab-item .ex-hit { font-size: 14px; font-style: italic; color: var(--text-2); margin-top: 2px; }
.vocab-item .ex-hit.tr { font-style: normal; color: var(--muted); }

/* Progrès du vocabulaire (13.10.2026) : ligne du haut de Vocabulaire, mini-courbe, fin d'une révision. */
.vocab-pulse { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; padding: 10px 14px; min-height: 56px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.vocab-pulse .vp-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.vocab-pulse b { font-size: 17px; font-weight: 800; }
.vocab-pulse .vp-gain { font-size: 14px; color: var(--muted); }
.vocab-pulse.up .vp-gain { color: var(--fix); font-weight: 700; }
.vocab-pulse .chev { color: var(--muted); flex: none; }
.sparkline { flex: none; display: block; overflow: visible; }
.sparkline .spark-line { fill: none; stroke: var(--c-learned); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sparkline .spark-dot { fill: var(--c-learned); }
.review-total { display: grid; gap: 8px; justify-items: center; margin: 6px 0; width: 100%; }
.review-total .rt-row { display: flex; align-items: center; justify-content: center; gap: 14px; }
.review-total .rt-text { display: grid; gap: 1px; text-align: left; }
.review-total b { font-size: 17px; font-weight: 800; }
.review-total .rt-gain { font-size: 14px; color: var(--fix); font-weight: 700; }
.review-total .milestone { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 12px; border-radius: 12px; background: var(--fix-soft); color: var(--fix); font-weight: 700; font-size: 15px; text-align: left; }
#progress-vocab.flash .vocab-curve { animation: tr-focus 1.6s ease; }

/* Cohérence des cartes (13.10.2026) : la ligne se touche comme un bouton et ouvre la fiche de la carte. */
.vocab-item .v-main[role="button"] { cursor: pointer; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.queue-note { margin: 2px 4px 8px; }
.card-sheet { display: grid; gap: 8px; text-align: left; }
.card-sheet .cs-word { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card-sheet .cs-en { font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.card-sheet .cs-fr { margin: 0; font-size: 17px; color: var(--text-2); }
.card-sheet .verb-forms { justify-content: flex-start; margin: 0; }
.card-sheet .ex { margin: 0; font-size: 15px; color: var(--muted); font-style: italic; }
.card-sheet .ex-tr { margin: 0; font-size: 14px; color: var(--muted); }
.card-sheet .v-meta { margin-top: 2px; }
.card-sheet .cs-tools { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 2px; }
.card-sheet .cs-tools .link-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 44px; }
/* Remarque d'une carte (une correction gardée : pourquoi on le dit ainsi). */
.card-note { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.vocab-item .fr.note { font-size: 14px; font-style: italic; }
.card-sheet .card-note { margin: 0; }
.pick-more { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 8px; margin: 0 0 10px; }
.pick-more .trash-link { margin-top: 0; min-height: 40px; }
.pick-or-create { display: inline-flex; align-items: center; gap: 8px; }
/* Créer une carte : la carte qui existe déjà (« go carte existante », 28.10.2026), à la place des champs. */
.create-card, .create-form { display: grid; gap: 10px; }
.card-known { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.card-known .known-head { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; color: var(--fix); }
.card-known .known-head svg { flex: none; }
.card-known .known-card .cs-en { font-size: 20px; }
.card-known .known-others { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; margin: 0; }
.card-known .known-others .link-btn { min-height: 40px; margin: 0; }
.card-known .known-ask { margin: 0; font-weight: 600; }
.card-known .known-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.card-known .known-own { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 44px; }
/* Pratiquer : jeux de rôle réussis et mission du jour (13.10.2026). */
.row .won-mark { color: var(--fix); display: inline-grid; place-items: center; }
.today-badge { background: var(--amber-soft); color: var(--amber); margin-left: 0; }
.row-title .today-badge { margin-left: 8px; }
.level-links { display: flex; flex-wrap: wrap; gap: 0 18px; font-size: 14px; }
.level-links .link-btn, p.small .link-btn { margin-top: 0; }
.mission-badge.todo { cursor: pointer; }
/* Mots longs (allemand : « Vorstellungsgespräch ») : ils passent à la ligne au lieu d'être rognés (revue du 13.10.2026). */
.vocab-item .en, .vocab-item .fr, .vocab-item .ex-hit, .vocab-item .via-note { overflow-wrap: anywhere; }
/* Lignes de carte de Réglages › Toutes les cartes : elles se touchent comme celles de Vocabulaire (revue du 13.10.2026). */
.trash-main[role="button"] { cursor: pointer; min-height: 44px; align-content: center; }
.trash-main[role="button"]:active { opacity: .6; }
/* Une fenêtre est ouverte (tableau des verbes…) : le message, avec son « Annuler », passe au-dessus du voile, en haut de l'écran
   (avant : caché sous la fenêtre, revue du 13.10.2026). */
html.sheet-open .toast-host { z-index: 80; bottom: calc(96px + env(safe-area-inset-bottom)); }
/* (14.11.2026, propriétaire : « beaucoup trop haute, d'habitude c'est plus bas » : en bas, juste au-dessus des boutons de la fenêtre.) */

/* Vocabulaire : niveaux de la liste choisis dans la carte (14.10.2026). */
.deck-levels-title { font-weight: 700; font-size: 15px; margin-top: 12px; }
.deck-levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.deck-levels .level-mini { min-width: 52px; justify-content: center; font-weight: 750; }
.deck-levels-note { margin-top: 8px; }
.nowrap { white-space: nowrap; }

/* Page Examens : une phrase, la liste, puis le détail replié (audit A4-20). */
.exam-intro { font-size: 16.5px; color: var(--text-2); }
.exam-how { margin-top: 20px; padding: 0; }
.exam-how > summary { padding: 14px 16px; min-height: 44px; font-weight: 700; cursor: pointer; }
.exam-how > p { padding: 0 16px 14px; color: var(--text-2); font-size: 15.5px; }

.review-actions { position: sticky; bottom: 0; padding: 4px 0 calc(12px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to bottom, transparent, var(--bg) 18px); }
.exam-how > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.exam-how > summary::-webkit-details-marker { display: none; }
.exam-how > summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: -4px 4px 0 0; flex: none; transition: transform .15s; }
.exam-how[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }

/* ---------- Habillage « halo doux » (proposition A, choisie par le propriétaire le 14.10.2026) ----------
   La famille du nouvel accueil sur tous les écrans : halo bleu-violet en haut de page, boutons principaux, leçon du jour,
   onglet actif et barres de notes en dégradé, cartes plus douces. Couleurs, fonds et ombres seulement. Le dégradé des
   boutons est le même en clair et en sombre (texte blanc lisible : 5,2:1 au moins). */
:root { --g-a: #2F6FF0; --g-b: #9333EA; --g-btn: linear-gradient(135deg, #2B63E6, #8B2FE0); --halo-a: rgba(47, 111, 240, .15); --halo-b: rgba(147, 51, 234, .11); --glow: rgba(99, 62, 227, .45); --tab-on: #7C3AED; --card-shadow: 0 1px 2px rgba(19, 28, 46, .05), 0 10px 28px -12px rgba(40, 50, 120, .22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --g-a: #4A78F5; --g-b: #A15EEA; --halo-a: rgba(74, 120, 245, .24); --halo-b: rgba(161, 94, 234, .16); --glow: rgba(120, 90, 240, .55); --tab-on: #C4A6FF; --card-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 28px -12px rgba(0, 0, 0, .55); } }
:root[data-theme="dark"] { --g-a: #4A78F5; --g-b: #A15EEA; --halo-a: rgba(74, 120, 245, .24); --halo-b: rgba(161, 94, 234, .16); --glow: rgba(120, 90, 240, .55); --tab-on: #C4A6FF; --card-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 10px 28px -12px rgba(0, 0, 0, .55); }
body { background-image: radial-gradient(60% 300px at 90% -40px, var(--halo-b), transparent 72%), radial-gradient(70% 320px at 0% -60px, var(--halo-a), transparent 72%); background-repeat: no-repeat; }
.btn-primary { background: var(--g-btn); box-shadow: 0 8px 18px -8px var(--glow); }
.btn-primary:active { background: var(--g-btn); filter: brightness(.92); }
.feature { background: radial-gradient(circle at 18% 0%, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 45%), var(--g-btn); box-shadow: 0 14px 30px -14px var(--glow); }
.feature .btn { color: #5B2BD0; }
.list, .panel, .tile, .mission-day, .tutor-hero { border-radius: 20px; box-shadow: var(--card-shadow); }
.tutor-hero, .mission-day { border-color: transparent; }
.tab[aria-current="page"] { color: var(--tab-on); }
.tab[aria-current="page"]::before { left: 32%; right: 32%; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--g-a), var(--g-b)); }
.chip[aria-pressed="true"] { border: 1.5px solid transparent; background: linear-gradient(var(--ink-soft), var(--ink-soft)) padding-box, linear-gradient(135deg, var(--g-a), var(--g-b)) border-box; }
.scorebar .fill, .exam-bar > i { background: linear-gradient(90deg, var(--g-a), var(--g-b)); }

/* Proposition B « Vivant » (14.10.2026), essayée sur dev le 21.10.2026 puis mise partout (demande du propriétaire du 21.10.2026).
   `:root:not([data-design="a"])` garde la même force que l'ancien `:root[data-env="dev"]` ; poser data-design="a" sur <html> revient à A.
   A + titres et chiffres en dégradé, icônes et choix actifs en couleur, cartes principales bordées d'un dégradé avec halo. */
:root:not([data-design="a"]) .topbar h1 { background: linear-gradient(90deg, var(--text) 0%, var(--text) 35%, var(--g-a) 70%, var(--g-b) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Titres de section : un rond en dégradé devant (21.10.2026, à la place du trait jugé « chenille »). */
:root:not([data-design="a"]) :is(.section > h2, .section-head h2) { display: flex; align-items: center; gap: 10px; }
:root:not([data-design="a"]) :is(.section > h2, .section-head h2)::before { content: ''; flex: none; width: 10px; height: 10px; border-radius: 50%; background: linear-gradient(135deg, var(--g-a), var(--g-b)); }
/* Jeux de rôle encadrés d'un trait fin (21.10.2026) ; l'entrée des examens garde le cadre en dégradé, plus marqué. */
:root:not([data-design="a"]) :is(.scene-list > .row, .scene-list > .saved-row, .scene) { border: 1.5px solid color-mix(in srgb, var(--g-a) 28%, var(--line)); }
:root:not([data-design="a"]) :is(.tile .t-value:not(:has(svg)), .hero .value) { background: linear-gradient(90deg, var(--g-a), var(--g-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root:not([data-design="a"]) .row-icon { background: var(--g-btn); color: #FFFFFF; box-shadow: 0 6px 14px -8px var(--glow); }
:root:not([data-design="a"]) .chip[aria-pressed="true"] { background: var(--g-btn); color: #FFFFFF; border: 1.5px solid transparent; }
:root:not([data-design="a"]) :is(.tutor-hero, .exam-entry) { position: relative; isolation: isolate; border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--g-a), var(--g-b)) border-box; }
:root:not([data-design="a"]) .tutor-hero::after { content: ''; position: absolute; inset: -12px; z-index: -1; border-radius: 30px; background: radial-gradient(closest-side, var(--halo-a), transparent); filter: blur(6px); pointer-events: none; }
/* Mission du jour et « Tes points à travailler » : même cadre en dégradé, très atténué (15 %, choix du propriétaire du 21.10.2026 après 30 %), pour ranger sans
   concurrencer « Parle avec » (choix du propriétaire, 21.10.2026). */
:root:not([data-design="a"]) :is(.mission-day, .pattern-list.panel, .home-words > .scene) { --frame-in: var(--surface); border: 1.5px solid transparent; background: linear-gradient(var(--frame-in), var(--frame-in)) padding-box, linear-gradient(135deg, color-mix(in srgb, var(--g-a) 15%, var(--surface)), color-mix(in srgb, var(--g-b) 15%, var(--surface))) border-box; }
/* Tuile « mots à réviser » de l'accueil (21.10.2026) : même cadre ; la pression assombrit l'intérieur sans perdre le cadre. */
:root:not([data-design="a"]) .home-words > .scene:active { --frame-in: var(--surface-2); }
:root:not([data-design="a"]) .th-bubble { background: linear-gradient(135deg, color-mix(in srgb, var(--g-a) 12%, var(--surface)), color-mix(in srgb, var(--g-b) 12%, var(--surface))); }

/* Examen à deux vrais candidats : deux bilans bien séparés, chacun sous son prénom et sa couleur (15.10.2026). */
:root { --cand-a: #2459D6; --cand-a-soft: #E6EEFE; --cand-b: #0B7A6E; --cand-b-soft: #DDF3EF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --cand-a: #8FB0FF; --cand-a-soft: #1E2C52; --cand-b: #6FD8C8; --cand-b-soft: #143A37; } }
:root[data-theme="dark"] { --cand-a: #8FB0FF; --cand-a-soft: #1E2C52; --cand-b: #6FD8C8; --cand-b-soft: #143A37; }
.duo-intro .duo-intro-t { margin: 0 0 8px; font-weight: 650; color: var(--text-2); }
.cand-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cand-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1.5px solid transparent; font: inherit; font-weight: 700; cursor: pointer; }
.cand-chip.a { background: var(--cand-a-soft); color: var(--cand-a); }
.cand-chip.b { background: var(--cand-b-soft); color: var(--cand-b); }
.cand-avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 18px; color: #fff; }
.cand-avatar.sm { width: 32px; height: 32px; font-size: 15px; }
.cand-head.a .cand-avatar, .cand-chip.a .cand-avatar { background: var(--cand-a); }
.cand-head.b .cand-avatar, .cand-chip.b .cand-avatar { background: var(--cand-b); }
:root[data-theme="dark"] .cand-avatar { color: #0E1626; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cand-avatar { color: #0E1626; } }
.cand-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin-bottom: 12px; }
.cand-head.a { background: var(--cand-a-soft); }
.cand-head.b { background: var(--cand-b-soft); }
.cand-head .cand-txt { min-width: 0; }
.cand-head h2 { margin: 0; font-size: 22px; line-height: 1.2; text-wrap: balance; }
.cand-head.a h2 { color: var(--cand-a); }
.cand-head.b h2 { color: var(--cand-b); }
.cand-head p { margin: 2px 0 0; }
.cand-block.b { margin-top: 28px; padding-top: 24px; border-top: 2px dashed var(--line); }
.cand-block { scroll-margin-top: 12px; }
.cand-head { scroll-margin-top: 12px; }
/* Discussion à deux : « Avant de parler, touchez votre prénom » (15.10.2026). */
.hint-card.duo-tip { grid-template-columns: 1fr auto; gap: 10px; background: var(--cand-a-soft); border-color: var(--cand-a); animation: lt-hint-in .25s ease-out; }
.hint-card.duo-tip .lbl { color: var(--cand-a); font-size: 17px; font-weight: 800; line-height: 1.25; }
.hint-card.duo-tip .txt { font-size: 14.5px; color: var(--text-2); margin-top: 2px; }
.hint-card.duo-tip .duo-tip-ok { min-width: 56px; min-height: 44px; }

/* Bilan d'un examen : repère au début de chaque partie dans « Revoir toute la conversation » (15.10.2026). Photos et
   parties simples en bleu discret ; tâche commune (ping-pong) et question à discuter ensemble en bleu plein (l'ambre est
   déjà pris par les réponses à vérifier). */
.conv-part { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 8px; padding: 8px 12px; border-radius: 10px; background: var(--ink-soft); color: var(--ink); font-size: 14px; font-weight: 700; }
.conv-part:first-child { margin-top: 0; }
.conv-part svg { flex: none; }
.conv-part.k-collab, .conv-part.together { background: var(--ink-fill); color: var(--on-ink); }
.conv-part-sub { font-weight: 500; opacity: .85; }

/* Vocabulaire (15.10.2026) : compteur des verbes irréguliers appris, pause d'une longue révision. */
.vocab-pulse .vp-verbs, .review-total .rt-verbs { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: 14px; }
.review-total .rt-verbs { margin: 8px 0 0; }
.deck-card .irr-count { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px; }
.deck-card .irr-count b { font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.deck-card .irr-count span { font-weight: 600; }
.review-break { text-align: center; }
/* Bilan : ce qui est analysé, bien en vue (16.10.2026). */
.report-head { margin: 4px 0 14px; }
.report-head .report-kind { margin: 0; color: var(--ink); font-size: 13px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.report-head .report-title { margin: 2px 0 0; font-size: 24px; line-height: 1.2; text-wrap: balance; overflow-wrap: anywhere; }
.report-head .report-date { margin: 4px 0 0; color: var(--muted); font-size: 14px; }

/* Maintenir pour parler (refait le 19.10.2026) : le micro rond sert à parler (rouge pendant qu'on le maintient), un par
   prénom à deux ; la pause est un bouton à part, écrit, à droite ; « Envoyer » et « C'est à … de répondre » sous le micro,
   place gardée. Pas de sélection de texte ni de menu du téléphone sur un appui long. */
.dock-row.hold-dock { grid-template-columns: 64px minmax(0, 1fr) 64px; }
.dock-row.hold-dock > * { grid-row: 1; }
.mic.hold-pill, .hold-pill { width: auto; height: auto; min-width: 88px; max-width: 100%; border: 0; border-radius: 16px; background: none; box-shadow: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 2px 4px; line-height: 1.2; text-align: center;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mic.hold-pill:active { transform: none; }
.hold-disc { position: relative; width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--ink-fill); color: var(--on-ink);
  box-shadow: 0 8px 22px rgba(35, 70, 200, .32); transition: transform .1s ease, background-color .15s ease; }
/* Délai d'envoi au relâchement (19.10.2026) : un anneau se remplit autour du micro, la réponse part quand il est plein ;
   réappuyer pendant ce temps continue la même réponse. */
@property --hold-p { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
.hold-ring { position: absolute; inset: -7px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--ink) var(--hold-p), var(--ink-line) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 5px));
  animation: hold-ring 1.5s linear forwards; }
@keyframes hold-ring { to { --hold-p: 100%; } }
@media (prefers-reduced-motion: reduce) { .hold-ring { animation-timing-function: steps(3, end); } }
.hold-pill b { font-size: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hold-pill .hold-pill-l { font-size: 13px; font-weight: 600; color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mic.hold-pill.recording .hold-disc, .hold-pill.rec .hold-disc { background: var(--pen); color: var(--surface); box-shadow: 0 8px 22px rgba(196, 48, 29, .32); transform: scale(1.08); }
.mic.hold-pill.recording .hold-pill-l, .hold-pill.rec .hold-pill-l { color: var(--pen); }
.hold-pill.on:not(.rec) .hold-disc { box-shadow: 0 0 0 4px var(--ink-line); }
.mic.hold-pill[disabled], .hold-pill[disabled], .mic.hold-pill.off, .hold-pill.off { opacity: .45; }
.mic.hold-pill.paused, .mic.hold-pill.sam, .mic.hold-pill.busy { border: 0; background: none; box-shadow: none; }
/* Pause écrite : icône et mot ; « Reprendre » en bouton plein pendant la pause. */
.side-btn.pause-lab { width: 64px; height: auto; min-height: 64px; border-radius: 16px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; padding: 6px 2px; font-size: 12px; font-weight: 700; color: var(--ink); }
.side-btn.pause-lab.on { background: var(--ink-fill); color: var(--on-ink); border-color: var(--ink-fill); box-shadow: 0 6px 16px rgba(35, 70, 200, .28); }
.hold-row { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 52px; margin-top: 8px; }
.hold-row .hold-switch { padding-top: 0; padding-bottom: 0; }
.hold-switch[hidden] { display: none; }
/* Fiche d'examen : la raison du choix en évidence, l'explication dessous (19.10.2026). */
.talk-note .talk-why { margin: 0 0 4px; font-weight: 700; color: var(--ink); font-size: 16px; }
.talk-note .pc-text { margin-top: 0; }
/* À deux sur un seul téléphone : un micro de chaque côté de l'écran, la pause au milieu (19.10.2026, propriétaire :
   « plus espacer les boutons des candidats pour qu'on ne se trompe pas ») ; une question posée à l'un : seul le sien,
   à sa place. Deux téléphones : un seul micro, au centre. */
.hold-duo-wrap { min-width: 0; width: 100%; }
.hold-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; justify-items: center; }
.hold-duo.single, .hold-duo.one { grid-template-columns: minmax(0, 1fr); }
.dock-row.hold-dock.duo2 { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); column-gap: 8px; }
.dock-row.hold-dock.duo2 .hold-duo-wrap, .dock-row.hold-dock.duo2 .hold-duo { display: contents; }
.dock-row.hold-dock.duo2 .hold-pill[data-who="a"] { grid-column: 1; justify-self: start; }
.dock-row.hold-dock.duo2 .hold-pill[data-who="b"] { grid-column: 3; justify-self: end; }
.dock-row.hold-dock.duo2 .pause-lab { grid-column: 2; justify-self: center; }
.hold-switch { min-height: 44px; font-size: 14px; }
.partner-card + .talk-card { margin-top: 12px; }
/* Page QR code à projeter (#/qr) : le plus grand carré qui tient, toujours noir sur blanc. */
.qr-page { text-align: center; }
.qr-page .qr-title { margin: 8px 0 6px; text-wrap: balance; }
.qr-page .lede { max-width: 34em; margin: 0 auto; }
.qr-big { width: min(92vw, 62vh, 560px); margin: 18px auto 10px; padding: 12px; background: #fff; border-radius: 18px; border: 1px solid var(--line); }
.qr-big svg { width: 100%; height: auto; display: block; }
.qr-link { word-break: break-all; max-width: 40em; margin: 0 auto; }
.qr-sheet .qr-box { margin-top: 4px; }
/* Examen sur deux téléphones (version de test) : le bouton du partenaire n'est qu'un témoin ici (il maintient le sien). */
.hold-duo .hold-pill.remote[disabled] { opacity: 1; cursor: default; }
.hold-duo .hold-pill.remote .hold-disc { background: var(--surface); color: var(--ink); border: 2px dashed var(--ink-line); box-shadow: none; }
.hold-duo .hold-pill.remote.rec .hold-disc { background: var(--pen); color: var(--surface); border-style: solid; }
.two-box > * + * { margin-top: 10px; }
.room-host { text-align: center; }
.room-host .qr-box { margin-top: 14px; }
.room-copy { justify-content: center; }
.room-wait { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; color: var(--muted); font-weight: 600; }
/* Écran du partenaire (#/rejoindre) : même présentation que le téléphone de l'examen (19.10.2026) : la partie et son
   matériel, les bulles, et en bas un micro rond à tenir avec la pause à sa droite. */
.join-page { padding-bottom: calc(180px + env(safe-area-inset-bottom)); }
.join-title { margin: 8px 0 6px; text-wrap: balance; }
.join-wait { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.join-how p + p { margin-top: 8px; }
.join-intro .btn-block { margin-top: 16px; }
.join-top { margin-top: 6px; }
.join-top .exam-head { margin-bottom: 8px; }
.join-top .exam-head .join-part { min-width: 0; }
.join-panel { max-height: none; }
.join-msgs { display: flex; flex-direction: column; gap: 20px; margin-top: 16px; }
.join-dock { position: fixed; left: 0; right: 0; bottom: 0; background: var(--bg); border-top: 1px solid var(--line); padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 5; }
.join-dock .dock-top { display: block; }
.join-status { margin: 0; text-align: center; color: var(--muted); font-size: 14px; min-height: 2.6em; }
.join-row { margin-top: 4px; }
.join-row > :first-child { grid-column: 1; }
.join-row .join-hold { grid-column: 2; justify-self: center; }
.join-row .join-pause { grid-column: 3; }
.join-zoom { width: 100%; height: auto; border-radius: 12px; }
.join-report .cand-block { margin-top: 12px; }
.join-cta { margin-top: 16px; }
.join-cta .btn { margin-top: 12px; }
.join-page .topbar .back-row { padding-left: 8px; }
.qr-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 14px; }
.qr-actions .btn { width: 100%; min-height: 48px; padding-inline: 10px; text-align: center; justify-content: center; white-space: normal; line-height: 1.2; }
.qr-sheet ~ .btn-row .btn, .room-host ~ .btn-row .btn { flex: 1; justify-content: center; }
.room-copy .btn { min-width: 60%; justify-content: center; }
/* À deux, deux micros côte à côte : le libellé passe sur deux lignes plutôt que d'être coupé (360 px). */
.hold-duo:not(.single) .hold-pill .hold-pill-l { white-space: normal; font-size: 12px; overflow: visible; }
.room-start { margin-top: 14px; }
.join-ready-wait { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; margin: 18vh 16px 0; color: var(--fix); }
.join-ready-wait .join-ready-t { font-size: 1.15rem; font-weight: 700; color: var(--text); margin: 4px 0 0; }
/* « Avant de commencer » (22.10.2026) : les trois façons de parler, avant la première conversation. */
.ask-talk { display: flex; flex-direction: column; gap: 12px; }
.ask-talk .lede { margin: 0; }
.ask-talk .hint { margin: 0; }
/* Test de niveau (22.10.2026) : vitesse de la voix réglable pendant le test. */
.pl-speed { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 6px 2px; }
.pl-speed-lbl { font-size: 14px; color: var(--muted); }
.pl-speed-btns { display: flex; gap: 8px; }

/* Niveau dans Réglages, Moi (23.10.2026) : le menu déroulant du téléphone, invisible, posé sur un cadre identique à
   l'ancien (une ligne, phrase coupée par « … ») ; seul le niveau, au début, est en grand, en gras et en couleur. */
.lvl-menu { position: relative; width: 100%; min-width: 0; }
.level-face { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 50px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.level-face .level-code { flex: none; font-size: 24px; font-weight: 850; line-height: 1; background: var(--g-btn, var(--ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.level-face .level-text { flex: 1; min-width: 0; color: var(--text); font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.level-face svg { flex: none; color: var(--muted); }
/* Sombre : le dégradé de l'app est trop foncé sur fond sombre (retour du propriétaire, 23.10.2026) : bleu et violet clairs. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .level-face .level-code { background: linear-gradient(135deg, #9DB4FF, #D2B6FF); -webkit-background-clip: text; background-clip: text; } }
:root[data-theme="dark"] .level-face .level-code { background: linear-gradient(135deg, #9DB4FF, #D2B6FF); -webkit-background-clip: text; background-clip: text; }
.level-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lvl-menu:has(.level-native:focus-visible) .level-face { outline: 2px solid var(--ink); border-color: transparent; }

/* Choix uniques (23.10.2026, propriétaire : « ne ressemblent pas à des boutons », puis « go ronds partout ») : des cartes à
   toucher, avec le rond des choix uniques à gauche ; le choisi en dégradé, rond plein. Toutes les listes radioList. */
.radio-list .radio { align-items: flex-start; padding: 14px 16px; box-shadow: var(--card-shadow, var(--shadow)); }
.radio-list .radio::before { content: ''; flex: none; box-sizing: border-box; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--muted); background: var(--surface); }
.target-list .target-native { font-weight: 500; color: var(--text-2); }
.target-list .radio[aria-disabled="true"] { opacity: .6; border-style: dashed; box-shadow: none; cursor: default; }
.radio-list .radio[aria-checked="true"] { border: 1.5px solid transparent; box-shadow: var(--card-shadow, var(--shadow)); background: linear-gradient(var(--ink-soft), var(--ink-soft)) padding-box, linear-gradient(135deg, var(--g-a, var(--ink)), var(--g-b, var(--ink))) border-box; }
.radio-list .radio[aria-checked="true"]::before { border: 0; background: radial-gradient(circle, #FFFFFF 0 4px, transparent 4.5px), linear-gradient(135deg, var(--g-a, var(--ink)), var(--g-b, var(--ink))); }
.radio-list .radio:active { transform: scale(.99); }
.sheet:focus { outline: none; }

/* Sous-titres de la séance : « CC » au contour, comme sur YouTube (29.10.2026, propriétaire : sans fond bleu, en bleu),
   centré dans son bouton ; masqués : gris et barré. */
.cap-btn { display: inline-flex; align-items: center; justify-content: center; }
.cap-btn .cc-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 30px; height: 22px;
  border: 2px solid var(--ink); border-radius: 4px; font-weight: 800; font-size: 11px; line-height: 1; letter-spacing: .3px;
  color: var(--ink); background: transparent; position: relative; }
.cap-btn.off .cc-badge { border-color: var(--muted); color: var(--muted); }
.cap-btn.off .cc-badge::after { content: ''; position: absolute; left: -5px; right: -5px; top: 50%; height: 2px; margin-top: -1px;
  background: var(--muted); transform: rotate(-32deg); }

/* Corrections masquées (« go corrections », 09.11.2026) : ✎ au contour comme « CC », barré quand elles sont masquées ;
   pastille sous la phrase ; bulle de la première fois avec « Compris ». */
.fix-btn { display: inline-flex; align-items: center; justify-content: center; }
.fix-btn .fix-badge { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: 30px; height: 22px;
  border: 2px solid var(--ink); border-radius: 4px; color: var(--ink); position: relative; }
.fix-btn.off .fix-badge { border-color: var(--muted); color: var(--muted); }
.fix-btn.off .fix-badge::after { content: ''; position: absolute; left: -5px; right: -5px; top: 50%; height: 2px; margin-top: -1px;
  background: var(--muted); transform: rotate(-32deg); }
/* Quatre boutons dans l'en-tête (CC, ✎, ⋮, Terminer) : plus serrés sur un petit écran, le titre garde sa ligne. */
@media (max-width: 420px) { .s-head { gap: 2px; } .s-head .cap-btn, .s-head .fix-btn { width: 34px; } .s-head .opt-btn { width: 28px; } .s-head .btn-sm { padding-left: 10px; padding-right: 10px; } }
.fix-pill { display: inline-flex; align-items: center; gap: 6px; align-self: flex-end; margin: 4px 0 2px; padding: 5px 12px; border-radius: 999px;
  border: 1.5px solid var(--ink-line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.fix-pill.good { color: var(--praise); border-color: var(--praise-line); }
.fix-hide { display: inline-flex; align-items: center; gap: 4px; align-self: flex-end; margin-top: 4px; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.fix-tip { display: flex; flex-direction: column; gap: 4px; font-weight: 500; }
.fix-tip b { font-weight: 800; }
.fix-tip .tip-ok { align-self: flex-start; margin-top: 6px; padding: 5px 14px; border: 0; border-radius: 9px; background: var(--surface, #fff); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }

/* Vue « Appel » (planche B, 09.11.2026) : rangées fixes pour que la vue et son bouton se posent sur la conversation. */
.session > * { grid-column: 1; }
.session > .s-head { grid-row: 1; } .session > .s-context { grid-row: 2; } .session > .s-log { grid-row: 3; } .session > .dock { grid-row: 4; }
.call-fab { grid-row: 3; grid-column: 1; align-self: start; justify-self: end; margin: 10px 12px 0 0; z-index: 6; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--ink-line); background: var(--surface); color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 800;
  box-shadow: 0 6px 16px -8px rgb(20 30 70 / .45); cursor: pointer; }
.call-fab[hidden], .call-stage[hidden] { display: none; }
.session.with-call-fab > .s-log { padding-top: 54px; }
.call-stage { grid-row: 3; grid-column: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 12px 16px; color: #fff; text-align: center; }
.session.call-on { background: linear-gradient(165deg, #2346C8 0%, #4B3FD6 55%, #6A2BD9 100%); }
.session.call-on > .s-log { display: none; }
.session.call-on .s-head { background: transparent; --ink: #fff; --text: #fff; --text-2: #fff; --muted: rgb(255 255 255 / .78); color: #fff; }
.session.call-on .s-head .cap-btn, .session.call-on .s-head .fix-btn { display: none; }
.session.call-on .dock { background: transparent; border-top-color: transparent; }
.session.call-on .dock .dock-status, .session.call-on .dock .sound-help:not(.warn) { color: rgb(255 255 255 / .9); }
.session.call-on .s-context .character { color: rgb(255 255 255 / .88); }
.session.call-on .dock .wave { color: #fff !important; }
.call-orb { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 26px; }
.call-orb::before, .call-orb::after { content: ''; position: absolute; border-radius: 50%; border: 2px solid rgb(255 255 255 / .35); }
.call-orb::before { inset: -18px; } .call-orb::after { inset: -40px; border-color: rgb(255 255 255 / .16); }
.call-orb.talk::before { animation: call-ring 1.4s ease-out infinite; } .call-orb.talk::after { animation: call-ring 1.4s .35s ease-out infinite; }
@keyframes call-ring { 0% { transform: scale(.92); opacity: 1; } 100% { transform: scale(1.12); opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .call-orb.talk::before, .call-orb.talk::after { animation: none; } }
.call-face { width: 128px; height: 128px; border-radius: 50%; background: #fff; color: #2346C8; display: grid; place-items: center; font-weight: 800; font-size: 54px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .45); }
.call-who { margin-top: 18px; font-weight: 800; font-size: 26px; }
.call-clock { font-size: 16px; color: rgb(255 255 255 / .82); }
.call-note { margin-top: 8px; max-width: 320px; padding: 8px 14px; border-radius: 12px; background: #FFF4D6; color: #6B4A00; font-size: 14.5px; font-weight: 600; }
.call-text { margin-top: 18px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 18px; border-radius: 999px; border: 1.5px solid rgb(255 255 255 / .55);
  background: rgb(255 255 255 / .14); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }

/* Vérification « une vraie personne » (Cloudflare Turnstile, « go turnstile ») : visible seulement si Cloudflare demande un geste. */
.human-check { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2000; }
.human-check:empty { display: none; }

/* Série en cours (« go reprise série 24h ») : les 4 étapes, celles faites cochées, l'étape où reprendre en couleur. */
.series-card { margin: 4px 0 14px; display: grid; gap: 12px; }
.series-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0; }
.series-words { display: flex; flex-wrap: wrap; gap: 6px; }
.series-word { padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); font-size: 14px; font-weight: 600; }
.series-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.series-seg { display: grid; gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.series-seg i { display: block; height: 6px; border-radius: 999px; background: var(--seq-0); }
.series-seg.done i { background: var(--ink-fill); }
.series-seg.done { color: var(--text-2); }
.series-seg.now i { background: linear-gradient(90deg, var(--ink-fill) 0 50%, var(--seq-0) 50% 100%); }
.series-seg.now { color: var(--ink); font-weight: 700; }
.series-now { margin: 0; font-weight: 700; text-align: center; }
.series-until { margin: -4px 0 0; text-align: center; }
/* Case de Cloudflare dans le formulaire de connexion, au-dessus du bouton (30.10.2026). */
.human-place { display: flex; justify-content: center; }
.human-place:empty { display: none; }
.human-note { margin: 4px 0 8px; text-align: center; font-weight: 600; }
.sound-steps { padding-left: 20px; margin-top: 4px; }
.sound-steps li { margin: 4px 0; }
/* Activité par type de séance (« go activité par séance », 30.10.2026) : une ligne par type, dépliable sur ses chiffres et
   sur les comptes qui l'ont pratiqué ; volets « Par type de compte » et « Autres chiffres ». */
.act-types { display: grid; gap: 6px; min-width: 0; }
.act-types > *, .act-body > *, .act-who > *, .dash-more, .dash-more > * { min-width: 0; }
.act-type { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2, var(--surface)); }
.act-type > summary, .dash-more > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 10px; cursor: pointer; list-style: none; }
.act-type > summary::-webkit-details-marker, .dash-more > summary::-webkit-details-marker { display: none; }
.act-type > summary::marker, .dash-more > summary::marker { content: ''; }
.act-type > summary svg, .dash-more > summary svg { flex: none; color: var(--text-2); transition: transform .2s; }
.act-type[open] > summary svg, .dash-more[open] > summary svg { transform: rotate(180deg); }
.act-name { flex: 1; min-width: 0; font-weight: 600; }
.act-sum { color: var(--text-2); font-size: 13.5px; white-space: nowrap; }
.act-body { padding: 0 10px 10px; display: grid; gap: 8px; }
.act-who { display: grid; gap: 6px; }
.act-acc { border-top: 1px solid var(--line); padding-top: 6px; }
.act-acc p { margin: 0; }
.dash-more { margin-top: 10px; border-top: 1px solid var(--line); }
.dash-more > summary { padding: 8px 0; font-weight: 600; justify-content: space-between; }
.dash-more > :not(summary) { margin-bottom: 8px; }
.dash-kpi.new .dash-kpi-v { color: var(--ink); }
.dash-kpi.bad .dash-kpi-v { color: var(--pen); }
.dash-kpi.bad { border-color: var(--pen); }
.dash-kpi.new { border-color: var(--ink); }
/* Tableau de bord et Argent : une seule taille de police pour les titres et les données (propriétaire, 30.10.2026 :
   « Pourquoi les titres sont si petits ? Uniforme la taille de police entre titres, données etc. »). Seules les notes
   d'explication (.small) restent plus petites. */
.dash-grid .dash-h, .dash-sub, .dash-sec-v, .act-sum, .dash-kpi-l, .dash-kpi-s, .dash-grid .dash-2 small { font-size: 1rem; }
.dash-grid .dash-h.dash-left, .dash-sub { color: var(--text); font-weight: 700; }
.dash-grid .dash-2 { line-height: 1.25; }
/* Question en bas de l'écran (« go 1-5 », 01.11.2026) : texte, « Non merci » et « Oui », croix pour fermer. */
.toast-ask { position: relative; display: grid; gap: 10px; width: min(100%, 480px); padding: 14px 44px 12px 16px; text-align: left; }
.toast-ask-text { margin: 0; font-size: 15px; line-height: 1.4; }
/* Titre (« Suggestion », avec l'ampoule) au niveau de la croix : on voit tout de suite ce que c'est. */
.toast-ask-head { display: flex; align-items: center; gap: 6px; margin: 0 0 -4px; font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 72%, transparent); }
.toast-ask-btns { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.toast-ask-btns button { font: inherit; font-size: 15px; font-weight: 700; border-radius: 999px; padding: 7px 16px; cursor: pointer; }
.toast-ask-no { background: none; color: var(--bg); border: 1.5px solid color-mix(in srgb, var(--bg) 45%, transparent); }
.toast-ask-yes { background: var(--bg); color: var(--text); border: 1.5px solid var(--bg); }
/* « Ne plus recevoir aucune suggestion » : un lien discret sous les boutons (radical, donc dit en toutes lettres). */
.toast-ask-off { justify-self: start; margin: -2px 0 0; padding: 4px 0; border: 0; background: none; color: color-mix(in srgb, var(--bg) 72%, transparent); font: inherit; font-size: 13.5px; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.toast-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--bg); opacity: .8; cursor: pointer; }
/* Recherche de la liste des abonnés (menu propriétaire, 02.11.2026). */
.sub-search-box { margin: 0 0 10px; }
/* Copie des données d'un abonné (menu propriétaire, 02.11.2026) : texte du mail à copier. */
.admin-more > .export-box { padding: 0 16px 16px; }
.export-box > p:first-child { margin-top: 0; }
.export-mail { white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.45; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; margin: 8px 0; }
.sub-search-box .search { margin-top: 0; }

/* Mes erreurs (« go mes erreurs », 05.11.2026) : carte d'erreur de la révision et rubrique de Vocabulaire. */
.flashcard.err-card { gap: 10px; }
.err-said-lab { margin: 0; font-size: 15px; color: var(--text-2); }
.err-said { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.5; }
.err-wrong { color: var(--pen); text-decoration: underline wavy var(--pen) 1.5px; text-underline-offset: 5px; text-decoration-skip-ink: none; }
.err-wrong.struck { text-decoration: line-through 2px; font-weight: 500; }
.err-card.revealed .err-said { font-weight: 500; }
.err-blank { display: inline-block; min-width: 88px; border-bottom: 2.5px solid var(--text); margin: 0 4px; }
.err-blank.filled { min-width: 0; border-bottom: 0; color: var(--fix); font-weight: 780; }
.err-gap-tr { font-weight: 500; font-style: italic; color: var(--text-2); }
.err-letters { margin: 0; letter-spacing: .02em; }
.err-back { display: grid; justify-items: center; gap: 10px; }
/* La réponse comme dans la vidéo « Mes erreurs » (propriétaire, 07.11.2026 : « centre la réponse comme sur la vidéo, c'est plus
   joli visuellement ») : à mi-chemin entre ta phrase et le type (blancs visibles égaux, environ 24 px ; avant : 34/18, puis
   13/28, puis 21/28), le type et la règle ensemble (9 px) ; le haut-parleur en rond bleu clair collé au mot, comme dans la
   vidéo et sur les cartes de vocabulaire. */
.err-right { display: flex; align-items: center; margin: 3px 0 0; font-size: 28px; font-weight: 780; color: var(--fix); }
.err-right > .icon-btn { width: 36px; height: 36px; margin-left: 10px; background: var(--ink-soft); color: var(--ink); }
/* Le mot sur l'axe de la carte : un vide de la largeur du haut-parleur à gauche (« proportions », 07.11.2026). */
.err-right::before { content: ''; flex: 0 1 auto; width: 46px; min-width: 0; } /* cède sa place en premier à une longue réponse */
.err-right > span { flex: 0 0 auto; max-width: calc(100% - 46px); } /* le mot garde sa largeur ; trop long, il passe à la ligne */
.err-fixed { margin: 4px 0 0; font-size: 17px; line-height: 1.5; }
/* Haut-parleur de la phrase corrigée compact, comme celui des exemples : il n'écarte plus la ligne où il tombe (38 px → 25). */
.err-fixed .ex-say { width: 36px; height: 36px; margin: -8px 0 -8px 2px; vertical-align: middle; }
.err-fixed b { color: var(--fix); }
.err-gap-tools { display: flex; gap: 6px; }
.err-learn { display: grid; justify-items: center; gap: 6px; margin-top: 4px; }
.err-learn p { margin: 0; }
.err-learn-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.err-learn-words .chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; }
.errors-section { margin-top: 22px; scroll-margin-top: 12px; }
.err-intro { margin: 4px 0 2px; }
.err-mode { margin: 0 0 10px; }
.link-btn.inline { display: inline; min-height: 0; margin: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.err-list { padding-top: 4px; padding-bottom: 4px; }
.err-row { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.err-row .v-meta { margin-top: 6px; }
.err-row.is-ignored .mistake-main { opacity: .65; }
/* Erreur mise de côté : « Revoir de nouveau » sous le texte, à gauche (06.11.2026 : à côté, il serrait le texte dans une colonne étroite). */
.err-row.is-ignored { flex-direction: column; align-items: flex-start; }
.err-row.is-ignored > .mistake-main { width: 100%; }
.err-row.is-ignored > .btn { margin-top: 8px; }
.err-review { margin-top: 12px; }
.err-none { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; }
.err-sheet .err-said { font-size: 17px; font-weight: 500; }
.err-sheet .err-right-sm { color: var(--fix); }
/* Signet d'une carte proposée : en couleur, on voit qu'elle est ajoutée (un toucher la retire, 06.11.2026). */
.icon-btn.saved { background: var(--fix-soft); color: var(--fix); }
/* Invitation à garder une faute, au-dessus des erreurs du bilan (07.11.2026). */
.err-tip { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: var(--ink-soft); color: var(--ink); }
.err-tip > svg { flex: none; margin-top: 2px; }
.err-tip p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.45; }
.err-tip .link-btn { margin-top: 4px; padding-left: 0; }
.err-empty { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--ink); }
.err-empty p { margin: 0; color: var(--text); }
.err-empty p.small { color: var(--text-2); }
/* Invitation à l'empreinte : le dessin d'abord, le texte ensuite. */
.pk-offer { display: grid; justify-items: center; gap: 10px; text-align: center; }
.pk-offer-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 12%, transparent); color: var(--ink); }
.pk-offer .lede { margin: 0; }
/* Mots passés en mémoire à long terme pendant la révision (06.11.2026) : une ligne sobre, les mots en violet. */
.longterm-gain { display: flex; align-items: flex-start; justify-content: center; gap: 6px; margin: 2px 0; color: var(--text); text-align: center; }
.longterm-gain svg { flex: none; margin-top: 3px; color: var(--praise); }
.longterm-gain b { color: var(--praise); }
/* Vue Appel : mission, expressions et boutons du bas en verre translucide, comme la maquette (propriétaire, 10.11.2026 :
   « trop marquées… ça fait contraste sur un joli écran qui se veut sans distraction »). Même rendu en thème clair et sombre :
   le fond de la vue Appel est le même dans les deux. */
.session.call-on .s-context:not([hidden]) { border-bottom-color: transparent; }
.session.call-on .s-context .character .icon { color: rgb(255 255 255 / .7); }
.session.call-on .mission.mission-live { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .2); box-shadow: none; }
.session.call-on .mission.mission-live.done { background: rgb(255 255 255 / .14); border-color: #34D27B; }
.session.call-on .mission-live .mission-icon { background: rgb(255 255 255 / .18); color: #fff; }
.session.call-on .mission-live.done .mission-icon { background: #34D27B; color: #06361B; }
.session.call-on .mission-live .mission-kicker, .session.call-on .mission-live.done .mission-kicker, .session.call-on .targets-count { color: rgb(255 255 255 / .85); }
.session.call-on .mission-live .mission-text, .session.call-on .mission-live .mission-toggle { color: #fff; }
.session.call-on .mission-live .mission-toggle { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .3); }
.session.call-on .mission-step, .session.call-on .target-chip, .session.call-on .mission.done .mission-step.done { background: transparent; border-color: rgb(255 255 255 / .45); color: #fff; }
.session.call-on .mission .mission-step .icon, .session.call-on .target-chip .icon { color: rgb(255 255 255 / .75); }
.session.call-on .mission-step.done, .session.call-on .target-chip.done, .session.call-on .mission.done .mission-step.done { background: #34D27B; border-color: #34D27B; color: #06361B; }
.session.call-on .mission .mission-step.done .icon, .session.call-on .target-chip.done .icon { color: #06361B; }
.session.call-on .dock .side-btn { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .28); color: #fff; }
.session.call-on .type-row input { background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .3); color: #fff; }
.session.call-on .type-row input::placeholder { color: rgb(255 255 255 / .7); }
.session.call-on .pause-hint { color: #fff; }
/* Filtre du tableau de bord (10.11.2026) : en-têtes Auj., Hier, 7 j, 30 j touchables ; une seule colonne quand un filtre est posé. */
.dash-grid.one { grid-template-columns: minmax(min-content, 1fr) minmax(3.2em, auto); column-gap: 10px; }
.dash-grid.one + .dash-grid.one, .dash-grid.one + .small + .dash-grid.one { margin-top: 10px; }
.dash-grid .dash-hbtn { border: 0; background: none; padding: 2px 4px; margin: -2px -4px; border-radius: 8px; font: inherit; color: var(--ink); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; justify-self: end; }
.dash-grid .dash-hbtn.on { background: var(--ink-fill); color: var(--on-ink); text-decoration: none; }
.dash-filter { display: flex; align-items: center; gap: 8px; margin: 4px 0 10px; padding: 8px 12px; border-radius: 12px; background: var(--ink-soft); border: 1px solid var(--ink-line); color: var(--ink); font-weight: 700; }
.dash-filter span { flex: 1; }
/* Minutes d'un compte (tableau de bord, 10.11.2026) : en gros, alignées sur les colonnes des tableaux. */
.dash-grid.acc-fig { margin-top: 4px; }
.dash-grid .acc-min { font-size: 1.15rem; font-weight: 800; color: var(--text); }
.act-acc + .act-acc { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }

/* Petit écran (moins de 700 px de haut, « go proposition de place », 10.11.2026) : bas de l'écran resserré, gros micro
   un peu plus petit ; la carte des expressions part repliée (session.js). Rien ne change sur les écrans plus hauts. */
@media (max-height: 700px) {
  .dock { padding-top: 4px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .dock-row { margin-top: 4px; }
  .mic { width: 66px; height: 66px; }
  .side-btn { width: 44px; height: 44px; }
  .mission.mission-live { padding: 10px 12px; }
}

/* « Apprendre de nouveaux mots » un peu plus loin de « Réviser » (propriétaire, 10.11.2026 : « un peu trop proche »). */
.btn-block + .learn-new { margin-top: 10px; }
/* « Suivie » bien visible (10.11.2026) : pastille verte pleine avec une coche, à droite du titre de la liste. */
/* « Suivre cette liste » une fois suivie : même taille que le bouton, état vert doux, « Arrêter de suivre » à côté. */
.deck-state { display: flex; align-items: center; gap: 18px; width: 100%; margin-top: 6px; }
/* Plus discrète (propriétaire, 10.11.2026 : « le remplissage pourrait être moins gros ») : à sa taille, 34 px de haut. */
.deck-followed { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 34px; padding: 0 14px 0 11px; border-radius: 999px; background: var(--fix-soft); color: var(--fix); font-size: 15px; font-weight: 700; white-space: nowrap; }
.deck-followed .icon { margin: 0; color: inherit; }
.deck-state .link-btn { margin-top: 0; flex: none; }

/* Apprentissage, étape « Écris-le » (« go lot vocabulaire », 13.11.2026) : phrase à trous, mots déjà justes en vert. */
.write-area { display: grid; }
.write-gaps { margin: 0; font-size: 22px; line-height: 2.2; text-align: center; color: var(--text); overflow-wrap: anywhere; }
.write-gaps .w-kept { color: var(--fix); font-weight: 700; }
.write-legend { margin: -4px 0 6px; text-align: center; letter-spacing: .01em; }
.write-gaps .gap-glue { white-space: nowrap; }
.gap-input {
  /* (« go lot vocabulaire », 13.11.2026, propriétaire : « pas fan de cette forme » : un simple trait, comme une ligne à remplir) */
  display: inline-block; width: calc(var(--n, 6) * .6em + 14px); max-width: 100%; min-height: 0; vertical-align: baseline;
  margin: 0 3px; padding: 0 2px 1px; font: inherit; font-size: 22px; font-weight: 700; line-height: 1.35; text-align: center;
  border: 0; border-bottom: 2px solid var(--switch-off); border-radius: 0; background: transparent; color: var(--ink); caret-color: var(--ink);
}
.gap-input:focus { outline: none; border-bottom-color: var(--ink); box-shadow: 0 2px 0 var(--ink); }
.gap-done { font-weight: 700; padding: 0 2px; border-bottom: 2px solid currentColor; }
.gap-done.w-exact { color: var(--fix); }
.gap-done.w-close { color: var(--fix); }
.gap-done.w-wrong, .gap-done.w-shown { color: var(--fix); }
.gap-done .typo { background: var(--amber-soft); color: var(--amber); border-radius: 3px; padding: 0 1px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gap-pair { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
.gap-typed { color: var(--text-2); font-weight: 600; text-decoration-line: line-through; text-decoration-color: var(--pen); text-decoration-thickness: 2px; -webkit-text-decoration-line: line-through; -webkit-text-decoration-color: var(--pen); } /* (ce qui a été écrit : même taille, barré d'un trait rouge, propriétaire, 13.11.2026) */
.write-answer { margin: 0; text-align: center; font-size: 22px; line-height: 1.5; }
.write-answer .gap-done { border-bottom: 0; }
.write-dunno { justify-self: center; }
.learn-bar { height: 4px; margin: -4px 0 14px; border-radius: 999px; background: var(--seq-0); overflow: hidden; }
.learn-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink-fill); transition: width .3s ease; }
.learn-last { margin: 14px 0; text-align: center; font-weight: 700; color: var(--ink); }

/* Vocabulaire (« go lot vocabulaire », 13.11.2026) : rien à réviser au même endroit et de la même forme que « Réviser ». */
.study-block .review-none { margin: 0 0 10px; min-height: 50px; padding: 0 16px; justify-content: center; text-align: center; border-radius: 14px; background: var(--fix-soft); color: var(--fix); font-weight: 700; }
/* Tes progrès : la même carte en haut de Vocabulaire et à la fin d'une révision. */
.progress-card { display: grid; gap: 10px; margin: 14px 0 0; padding: 14px 16px; color: var(--text); text-decoration: none; width: 100%; box-sizing: border-box; text-align: left; }
.progress-card:active { opacity: .75; }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.pc-kicker { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.pc-total { font-size: 20px; font-weight: 800; line-height: 1.2; }
.pc-gain { font-size: 14px; color: var(--muted); }
.progress-card.up .pc-gain { color: var(--fix); font-weight: 700; }
.progress-card .chev { color: var(--muted); flex: none; }
.pc-bar { height: 8px; }
.pc-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: -2px 0 0; font-size: 13px; color: var(--text-2); }
.pc-legend .lg { display: inline-flex; align-items: center; gap: 5px; }
.pc-legend .lg > i { width: 8px; height: 8px; border-radius: 50%; background: var(--track); box-shadow: inset 0 0 0 1.5px var(--switch-off); }
.pc-legend .lg.st-longterm > i { background: var(--fix);  box-shadow: none; }
.pc-legend .lg.st-learning > i { background: var(--amber-line);  box-shadow: none; }
.pc-list { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; font-size: 14px; padding-top: 8px; border-top: 1px solid var(--line); }
.pc-list-name { font-weight: 600; color: var(--text); }
.pc-list-n { color: var(--text-2); font-variant-numeric: tabular-nums; }
.pc-list-bar { grid-column: 1 / -1; height: 4px; border-radius: 999px; background: var(--seq-0); overflow: hidden; }
.pc-list-bar i { display: block; height: 100%; border-radius: inherit; background: var(--ink-fill); }
/* Mes listes : suivie = une ligne ; pas suivie = une carte courte avec « Suivre ». */
.vocab-lists { display: grid; gap: 8px; }
.vocab-lists .vocab-h { margin-bottom: 2px; }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; font: inherit; text-align: left; color: var(--text); background: var(--surface); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer; }
.list-row:active { opacity: .75; }
.lr-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--ink-soft); color: var(--ink); }
.lr-text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lr-text b { font-size: 15.5px; line-height: 1.25; }
.lr-state { flex: none; display: inline-flex; align-items: center; gap: 3px; font-size: 12.5px; font-weight: 700; color: var(--fix); }
.list-row .chev { flex: none; color: var(--muted); }
.list-offer { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 12px 14px; }
.list-offer .lo-more { justify-self: start; margin-top: 2px; }
.list-offer .lo-follow { flex: none; align-self: center; }
.list-sheet { display: grid; gap: 8px; }
/* Mes mots : filtres en pastilles, recherche et « Créer une carte » juste dessous, lignes compactes. */
.vocab-filters { margin-top: 10px; }
.vocab-search { margin-top: 12px; display: grid; gap: 4px; }
.vocab-create { justify-self: start; }
.vocab-item.compact { padding-top: 10px; padding-bottom: 10px; }
.vocab-item.compact .v-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.vocab-item.compact .v-main > * { grid-column: 1 / -1; }
.vocab-item.compact .v-main > .en { grid-column: 1; grid-row: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vocab-item.compact .v-main > .v-meta { grid-column: 2; grid-row: 1; margin: 0; }
.vocab-item.compact .v-main > .fr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--track); box-shadow: inset 0 0 0 1.5px var(--switch-off); }
.stage-dot.st-learning { background: var(--amber-line); box-shadow: none; }
.stage-dot.st-longterm { background: var(--fix); box-shadow: none; }
.vocab-item.compact .stage-chip { font-size: 11.5px; padding: 2px 7px; }
/* Mes erreurs : lignes compactes, mises de côté à part. */
.err-row .pair { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.err-ignored-btn { margin-top: 10px; }
.err-ignored .err-list { margin-top: 8px; }
/* Bas de Vocabulaire : importer, exporter. */
.vocab-manage { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 22px; padding-top: 10px; }
/* Nouvel abonné : une seule carte pour commencer. */
.vocab-start { margin-top: 14px; padding: 20px 18px; display: grid; gap: 12px; text-align: center; justify-items: center; }
.vocab-start h3 { margin: 0; font-size: 21px; }
.vocab-start p { margin: 0; color: var(--text-2); }
.vs-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--ink-soft); color: var(--ink); }
.vocab-start .vs-go { margin-top: 4px; }
.vs-signet { display: flex; gap: 8px; align-items: flex-start; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 14px; }
.vs-signet > svg { flex: none; color: var(--ink); margin-top: 1px; }
.vs-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; }
/* Choisir mes mots : la phrase d'introduction en une ligne. */
.pick-lede { margin-bottom: 10px; }
/* Fins de révision et de série (« go lot vocabulaire », 13.11.2026) : sobres, la coupe dans un halo, deux chiffres. */
.end-screen { gap: 10px; margin-top: 22px; }
.end-trophy { display: grid; place-items: center; width: 60px; height: 60px; margin: 8px; border-radius: 50%; color: var(--amber-line);
  background: var(--amber-soft); box-shadow: 0 0 0 8px rgba(216, 150, 42, .13); } /* (sans color-mix : anciens iPhone) */
.end-title { margin: 4px 0 0; font-size: 24px; font-weight: 800; }
.end-sub { margin: -4px 0 0; color: var(--text-2); }
.end-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 6px; }
.end-stats > div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.end-stats b { font-size: 28px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.end-stats span { font-size: 14px; color: var(--text-2); }
.end-stats .es-good b { color: var(--fix); }
.end-stats .es-again b { color: var(--muted); }
.end-stats .es-again.some b { color: var(--amber); }
.end-detail { margin: 0; }
.end-screen .review-total { margin: 4px 0 0; }
.end-screen .review-total .progress-card { margin: 0; }
.end-actions { width: 100%; margin-top: 12px; }
.study-block .review-none { font-size: 15px; text-wrap: balance; }
.err-row .mistake-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.err-row .mistake-main > * { grid-column: 1 / -1; }
.err-row .mistake-main > .err-kind { grid-column: 1; grid-row: 1; justify-self: start; }
.err-row .mistake-main > .v-meta { grid-column: 2; grid-row: 1; margin: 0; }
.err-row .mistake-main > .v-meta .small { display: none; }
.vocab-filters { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.vocab-filters .chip { flex: none; padding: 0 10px; font-size: 13.5px; white-space: nowrap; }
.list-offer .lo-more { min-height: 0; padding: 4px 0; text-align: left; }
.errors-section.focus { min-height: calc(100vh - var(--tabbar-h) - 24px); min-height: calc(100dvh - var(--tabbar-h) - 24px); }
/* Recherche dans Mes mots : l'étape en toutes lettres et quand le mot revient, sur sa propre ligne (le mot garde toute la place). */
.vocab-item.compact.hit .v-main > .en { grid-column: 1 / -1; white-space: normal; }
.vocab-item.compact.hit .v-main > .v-meta { grid-column: 1 / -1; grid-row: auto; margin-top: 4px; }
/* Détails du vocabulaire (14.11.2026, propriétaire : « des espaces qui manquent, des trucs collés ensemble ») : la fiche
   d'une liste et le bas de Vocabulaire prennent les espaces des anciennes fiches. */
.list-sheet .irr-count { display: flex; align-items: baseline; gap: 8px; margin: 10px 0 2px; }
.list-sheet .irr-count b { font-size: 30px; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.list-sheet .irr-count span { font-weight: 600; }
.list-sheet .cs-tools { display: flex; flex-wrap: wrap; gap: 0 18px; margin-top: 2px; }
.list-sheet .cs-tools .link-btn, .vocab-manage .link-btn, .vs-links .link-btn { display: inline-flex; align-items: center; gap: 6px; margin: 0; min-height: 44px; }
/* Fin de série : la coupe arrive avec un rebond, son halo s'élargit deux fois, quelques étincelles ; titre en vert. */
.end-trophy.win { position: relative; color: var(--amber-line); animation: trophy-pop .62s cubic-bezier(.2, .9, .3, 1.2) both; }
.end-trophy.win::before, .end-trophy.win::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--amber-line); opacity: 0; animation: trophy-ring 1s ease-out .35s 1 both; pointer-events: none; }
.end-trophy.win::after { animation-delay: .75s; }
.end-trophy.win .spark { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px; border-radius: 50%; background: var(--amber-line); opacity: 0; animation: trophy-spark .8s ease-out .3s both; }
.end-trophy.win .spark:nth-child(odd) { background: var(--fix); width: 5px; height: 5px; margin: -2.5px; }
.end-title.win { color: var(--fix); }
@keyframes trophy-pop { 0% { transform: scale(.3) rotate(-14deg); opacity: 0; } 55% { transform: scale(1.18) rotate(7deg); opacity: 1; } 78% { transform: scale(.95) rotate(-3deg); } 100% { transform: none; opacity: 1; } }
@keyframes trophy-ring { 0% { transform: scale(.9); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes trophy-spark { 0% { transform: translate(0, 0) scale(.4); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .end-trophy.win, .end-trophy.win::before, .end-trophy.win::after, .end-trophy.win .spark { animation: none; } }
/* « Ta file est vide » : le rond coché en vert. */
.empty.empty-ok .icon { color: var(--fix); }
/* « Changer les niveaux » toujours visible sous la ligne des mots utiles (14.11.2026). */
.list-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.list-card .list-row { box-shadow: none; border-radius: 0; background: transparent; }
.list-card .lr-change { display: flex; align-items: center; gap: 6px; width: 100%; min-height: 44px; margin: 0; padding: 0 14px 0 62px; border-top: 1px solid var(--line); }
.pick-levels { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 2px 0 0; }
.pick-levels .link-btn { margin: 0; min-height: 40px; }
/* Révisions d'abord (14.11.2026) : le bouton des nouveaux mots porte un cadenas, l'écran dit pourquoi. */
.learn-new.locked { color: var(--text-2); }
.learn-lock-note { margin: -2px 0 0; text-align: center; }
.learn-gate { display: grid; justify-items: center; gap: 12px; margin-top: 18px; padding: 22px 18px; text-align: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.learn-gate h3 { margin: 0; font-size: 21px; }
.learn-gate p { margin: 0; color: var(--text-2); }
.learn-gate .lg-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--ink-soft); color: var(--ink); }
.grade-tip { margin: 10px 0 0; text-align: center; }
.vocab-search .search { margin-top: 0; }
.list-card .lr-change { justify-content: flex-start; }
.trans-fixed { margin: 6px 0 0; font-weight: 700; color: var(--text); }
/* Interrupteur « Réviser avec mes mots » de Mes erreurs, sous la phrase d'introduction (« go lien erreur », 14.11.2026). */
.err-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin: 2px 0 8px; }
.err-switch > span { font-weight: 650; }
/* « Revoir mes N erreurs » (erreurs à part) : fond de carte et filet, bien visible sur le fond de la page, un peu détaché de
   « Réviser » (14.11.2026, propriétaire : « son remplissage se confond un peu avec le fond »). */
.err-fixed-count { display: flex; gap: 6px; align-items: center; margin: 2px 0 8px; color: var(--fix); font-weight: 600; }
.err-fixed-count > svg { flex: none; }
.study-block .err-review-top { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm, 0 1px 2px rgba(15, 23, 42, .06)); margin-top: 4px; }
/* Fin d'une révision ou d'une série : les boutons restent au bas de l'écran quand le bilan est plus haut que l'écran
   (14.11.2026, propriétaire : « le bouton Terminer après une révision est coupé »). */
.end-screen > .end-actions:last-child, .end-screen > .study-block.end-actions { position: sticky; bottom: 0; z-index: 2; padding: 14px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(to bottom, transparent, var(--bg) 18px); }

/* « Voir la prononciation » (« go prononciation dans l'app », 15.11.2026 ; présentation du 16.11.2026, propriétaire : « plus
   petite que les mots à apprendre… ne doit pas se confondre avec la traduction… discret et sur demande ») : une petite
   pastille grise, puis un encart ambré (la couleur de la prononciation dans les conversations) qui se referme. */
.pron { margin-top: 10px; }
.flashcard .pron { display: flex; justify-content: center; }
.pron-btn { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; }
.pron-btn:active { background: var(--surface-2); }
.pron-btn svg { width: 14px; height: 14px; }
.pron-body { width: 100%; box-sizing: border-box; padding: 6px 12px 9px; border-radius: 12px; background: var(--amber-soft); border: 1px dashed var(--amber-line); text-align: center; display: flex; flex-direction: column; gap: 3px; }
.pron-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1px; }
.pron-head::before { content: ''; width: 24px; }
.pron-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--amber); }
.pron-close { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: transparent; color: var(--amber); cursor: pointer; }
.pron-close svg { width: 14px; height: 14px; }
.pron-w { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--amber); overflow-wrap: anywhere; }
.pron-x { margin: 0; font-size: 13px; color: var(--amber); opacity: .9; overflow-wrap: anywhere; }
.pron-leg { margin: 2px 0 0; font-size: 11px; color: var(--muted); }
