/* Jetons de design, etape 1 (c1453) : un seul endroit. Source : D:/dev/.scratch/consignes-2026-11-15/kita10-design-dna/proposition/tokens.css (c1432).
   Texte : 12, 14, 16 px (corps = 16). Espacements : grille de 4 px. Rayons : 8, 12, 16. Ombres : e1, e2, e3 (flou 30 px au plus).
   Concentricite : le rayon d'un element imbriqué = rayon du parent moins la marge intérieure (--k-r-dedans), jamais un nombre libre. */
:root {
  --k-fs-etiquette: 12px;
  --k-fs-petit: 14px;
  --k-fs-corps: 16px;
  --k-sp-4: 4px; --k-sp-8: 8px; --k-sp-12: 12px; --k-sp-16: 16px; --k-sp-20: 20px; --k-sp-24: 24px;
  --k-sp-32: 32px; --k-sp-40: 40px; --k-sp-48: 48px; --k-sp-64: 64px;
  --k-r-8: 8px; --k-r-12: 12px; --k-r-16: 16px;
  --k-ombre-e1: 0 1px 3px rgba(15, 23, 32, 0.10);
  --k-ombre-e2: 0 4px 18px rgba(15, 23, 32, 0.14);
  --k-ombre-e3: 0 8px 30px rgba(15, 23, 32, 0.20);
}

/* Première manche : une feuille au-dessus de l'accueil. */
.premiere-parcours { position: fixed; inset: 0; z-index: 10000; overflow: auto; background: var(--bg); color: var(--text); padding: var(--k-sp-24); text-align: left; }
.premiere-lang { display: flex; justify-content: flex-end; align-items: center; gap: var(--k-sp-8); }
.premiere-lang button { min-width: 44px; min-height: 44px; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.premiere-lang button[aria-pressed="true"] { color: var(--accent-text); font-weight: bold; text-decoration: underline; }
.premiere-contenu { max-width: 480px; margin: var(--k-sp-32) auto; }
.premiere-carte { background: var(--card); border: 1px solid var(--border); border-radius: var(--k-r-16); padding: var(--k-sp-24); box-shadow: var(--k-ombre-e2); }
.premiere-compte { color: var(--dim); }
.premiere-mot { font-family: 'Frank Ruhl Libre', serif; font-size: calc(2.5rem * var(--text-scale, 1)); text-align: center; margin: var(--k-sp-32) 0; }
.premiere-choix { display: grid; gap: var(--k-sp-12); margin: var(--k-sp-24) 0; }
.premiere-choix button { width: 100%; }
.premiere-carte button.cta { display: block; width: 100%; min-height: 44px; margin-top: var(--k-sp-16); border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.premiere-lien { display: block; margin-top: var(--k-sp-24); color: var(--accent-text); }

/* Sentence variants keep the notebook palette: controls below the sentence, not a table. */
.sentence-forms { direction: ltr; text-align: left; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.sentence-forms button, .sentence-forms select { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: var(--k-r-8); background: var(--card); color: var(--text); font: inherit; font-size: max(var(--k-fs-corps), calc(var(--k-fs-corps) * var(--text-scale, 1))); padding: 0.5rem 0.75rem; cursor: pointer; }
.sentence-forms button:hover { border-color: var(--accent); background: var(--card-hover); }
/* MODE SIMPLE (05.10.2026) : une rangee de formes du temps de la phrase. Pas de filet, pas de
   titre : la rangee se lit comme les pastilles sous la carte. La forme affichee est pleine
   (accent), les autres sont des contours ; chaque pastille porte le pronom en hebreu puis son
   nom. role=group + aria-pressed, deja poses par le moteur. */
.sentence-forms.sf-simple { border-top: 0; padding-top: 0; margin-top: .75rem; }
.sf-forms { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); }
.sentence-forms .sf-form {
  display: inline-flex; align-items: baseline; gap: var(--k-sp-8);
  border-radius: 999px; padding: 0.5rem 0.75rem; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
}
.sf-form-he { font-family: 'Frank Ruhl Libre', serif; font-size: calc(1.05rem * var(--text-scale, 1)); }
body.cursive .sf-form-he { font-family: 'Gveret Levin', cursive; }
.sf-form-l { color: var(--dim); }
.sentence-forms .sf-form[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.sentence-forms .sf-form[aria-pressed="true"] .sf-form-l { color: #fff; }
.sf-simple .sf-status:empty { display: none; }
.sf-simple .sf-provenance { margin: .5rem 0 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
.sentence-forms button:focus-visible, .sentence-forms select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sentence-forms button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-dim); color: var(--accent-text); }
.sentence-forms button:disabled { color: var(--dim); cursor: wait; }
.sf-open { color: var(--accent-text) !important; }
.sf-original { margin-inline-start: .5rem; }
.sf-controls { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .75rem; }
.sf-controls fieldset { min-width: 0; max-width: 100%; width: 100%; border: 0; padding: 0; }
.sf-controls legend, .sf-controls label { color: var(--dim); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }
.sf-controls legend { margin-bottom: 0.25rem; }
.sf-controls label { display: grid; gap: 0.25rem; width: 100%; }
.sf-controls select { width: 100%; max-width: 100%; }
.sf-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sf-controls fieldset > button { margin: 0.25rem 0.25rem 0.25rem 0; }
.sentence-forms .sf-tense { font-family: 'Frank Ruhl Libre', serif; font-size: calc(1.25rem * var(--text-scale, 1)); }
.sf-person span[lang="he"], .sf-person .sf-he { font-family: 'Frank Ruhl Libre', serif; font-size: calc(1.1rem * var(--text-scale, 1)); direction: rtl; unicode-bidi: isolate; }
.sf-displayed { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); margin-bottom: 0.5rem; }
.sf-status, .sf-provenance, .sf-temporal { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); line-height: 1.5; margin-top: 0.75rem; }
.sf-status:empty { display: none; }
.sf-provenance { color: var(--accent-text); }
.sf-edits { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin-top: 0.75rem; }
.sf-edits summary { cursor: pointer; color: var(--accent-text); min-height: 44px; display: flex; align-items: center; }
.sf-edits p { margin: .25rem 0; overflow-wrap: anywhere; }
.sf-edits del, .sf-edits ins { unicode-bidi: isolate; }
.sf-edits ins, .sf-changed { background: var(--accent-dim); color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent); text-underline-offset: .2em; }
.sf-edits del { color: var(--dim); }
.sf-temporal button { margin: 0.25rem 0.25rem 0 0; }
.sentence-forms [lang="he"] { unicode-bidi: isolate; }
@media (max-width: 400px) {
  .sentence-forms .sf-person { padding-inline: 0.5rem; }
}

/* Light palette, same values as the sister project ulpan-hebrew. */
:root {
  --bg: #fafafa;
  --card: #ffffff;
  --card-hover: #f3f4f6;
  --border: #e5e7eb;
  --text: #1a1a1a;
  --dim: #525252;
  --faint: #6b7280;
  --accent: #0071B9;
  --accent-dim: #d0e7f4;
  --accent-text: #005c96; /* the accent one shade darker, for 12px readings: #0071B9 measured 4.04:1 (verify-legibility, 03.09.2026) */
  --warn: #dc2626;
}

@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('frank-ruhl-he.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('frank-ruhl-lext.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;
}
@font-face {
  font-family: 'Frank Ruhl Libre'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('frank-ruhl-lat.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: 'Gveret Levin';
  src: url('GveretLevin-Regular.woff2') format('woff2');
  font-display: swap;
}
/* Ktav Yad carries 54 glyphs: letters, geresh, gershayim, maqaf. The separators the
   corpus writes inside a Hebrew run (· between examples, — between question and answer,
   …) are not among them, and the generic `cursive` after it hands them to Comic Sans on
   Windows (measured 03.09.2026: 16 glyphs on day 09.08). A second face under the SAME
   family, declared after the handwriting one and limited to those code points, wins for
   them alone: the symbols come from the site's own print face, nothing else changes.
   U+0021-003F is the ASCII punctuation and the digits (no letter): the numbers a line
   carries, and their parentheses, since 03.09 (numerals.mjs). */
@font-face {
  font-family: 'Gveret Levin';
  src: url('frank-ruhl-lat.woff2') format('woff2');
  font-display: swap;
  unicode-range: U+0021-003F, U+00B7, U+2013-2014, U+2026, U+2039-203A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* word-tap.js : un mot hebreu se touche (le curseur le dit sur ordinateur ; sur le telephone
   le tap suffit). Pose par le script, donc absent la ou il ne tourne pas. */
body.word-tap .he, body.word-tap .he-in { cursor: pointer; }

/* The hidden attribute must win over any element's own display rule
   (.srs-answer, .srs-grades, .install all set display). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, 'Inter', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: calc(17px * var(--text-scale, 1));
  padding: 72px var(--k-sp-20) var(--k-sp-64);
  -webkit-text-size-adjust: 100%;
}

.container { max-width: 900px; margin: 0 auto; }

/* --------------------------------------------------------- menu (hamburger) */

.menu { position: fixed; top: 12px; inset-inline-end: 14px; z-index: 60; }

.menu-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--k-sp-4);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
  cursor: pointer;
  transition: border-color 0.15s;
}
.menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--dim);
  transition: transform 0.2s, opacity 0.2s;
}
.menu-btn:hover { border-color: var(--accent); }
.menu-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.menu.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu.open .menu-btn span:nth-child(2) { opacity: 0; }
.menu.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* LA BARRE LATERALE, MIROIR DE CELLE DE CLAUDE (05.10.2026 : « toute l'app devient un
   miroir de l'ui et ux Claude ? Avec les cours aussi qui apparaissent dans la barre
   laterale ? »). Le menu deroulant de 232px devient une feuille pleine hauteur qui glisse
   depuis la gauche, sur un voile. Le panneau defile seul (overscroll contenu) ; le haut
   (marque, nouvelle traduction, recherche) reste colle. Ouverte, la barre passe au-dessus des
   carres fixes de la barre du haut : meme niveau (z-index 60), mais le menu vient apres eux
   dans la page. Une regle `z-index: 90` a l'ouverture a ete essayee et retiree le jour meme :
   la matrice a montre qu'elle ne changeait rien d'observable. C'est le niveau du menu que
   verify-sidebar garde (M12 le baisse a 59). */
.menu-veil {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 32, 0.32);
  touch-action: none;
}
.menu.open .menu-veil { display: block; animation: side-veil-in .2s ease-out; }
.menu-panel {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(86vw, 330px);
  display: none;
  flex-direction: column;
  box-sizing: border-box;
  padding: 0 var(--k-sp-12);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  box-shadow: var(--k-ombre-e2);
  direction: ltr;
  outline: none;
}
.menu.open .menu-panel { display: flex; animation: side-in .2s ease-out; }
@keyframes side-in { from { transform: translateX(-100%); } to { transform: none; } }
@keyframes side-veil-in { from { opacity: 0; } to { opacity: 1; } }
/* LA FERMETURE GLISSE AUSSI (23.11.2026, ordre : « l'animation et le motion de quand en fait on
   clique sur la croix, comment le panneau il se ferme [...] le plus graceful possible »). Avant,
   la croix, le voile et Echap cachaient le panneau d'un coup : 0 image intermediaire, mesure par
   verify-sidebar-fermeture. Maintenant le panneau repart par la gauche, d'abord lentement puis de
   plus en plus vite (courbe d'acceleration standard : il bouge des le clic, puis quitte l'ecran sans s'y poser), un peu
   plus vite qu'il n'est entre ; le voile s'efface dans le meme temps. Pendant ce temps la classe
   `closing` (app.js) garde les deux visibles, sans prise : un toucher passe deja a la page. */
:root { --side-out-ms: 220ms; --side-out-ease: cubic-bezier(0.4, 0, 1, 1); }
.menu.closing .menu-panel { display: flex; pointer-events: none; animation: side-out var(--side-out-ms) var(--side-out-ease) forwards; }
.menu.closing .menu-veil { display: block; pointer-events: none; animation: side-veil-out var(--side-out-ms) ease-out forwards; }
@keyframes side-out { from { transform: none; } to { transform: translateX(-100%); } }
@keyframes side-veil-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .menu.open .menu-panel, .menu.open .menu-veil { animation: none; }
  .menu.closing .menu-panel, .menu.closing .menu-veil { animation: none; display: none; }
}
/* La page derriere ne defile pas. overflow et non position: fixed : la position de la page
   reste ou on l'a laissee (mutation M18 de mutations-ut-sessions). */
html:has(body.menu-open), body.menu-open { overflow: hidden; }

.side-top {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0 -12px;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: var(--bg);
}
.side-head { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.side-brand { padding: 0 var(--k-sp-8); font-size: calc(18px * var(--text-scale, 1)); font-weight: 700; color: var(--text); text-decoration: none; }
.side-x {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--k-r-12);
  background: transparent;
  cursor: pointer;
}
.side-x::before, .side-x::after {
  content: ''; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px;
  border-radius: 2px; background: var(--dim);
}
.side-x::before { transform: rotate(45deg); }
.side-x::after { transform: rotate(-45deg); }
.side-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* LE PIED DE LA BARRE (06.10.2026 : « Regarde nouvelle traduction on le veut en bas aussi.
   Et pour tout ce qui est reglage on veut le mettre tout en bas a gauche dans une pastille ronde,
   [...] vraiment comme Claude »). Colle au bas de la barre : pousse par margin-top: auto quand la
   liste est courte, colle par sticky quand elle defile. La liste s'efface sous lui par un degrade ;
   la bande transparente laisse passer les touchers vers la liste, seuls ses boutons les prennent.
   A gauche la pastille ronde (les Reglages, demain le compte), a droite « Nouvelle traduction »,
   une pilule qui flotte. */
.side-foot {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--k-sp-12);
  margin: auto -12px 0;
  padding: 18px 12px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(250, 250, 250, 0), var(--bg) 16px);
  pointer-events: none;
}
.side-foot > * { pointer-events: auto; }
.side-me {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 50%;
  box-shadow: var(--k-ombre-e2);
  cursor: pointer;
  touch-action: manipulation;
}
.side-me:hover, .side-me[aria-expanded="true"] { border-color: var(--accent); }
.side-me:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* L'avatar sans compte : une silhouette, tete et epaules, dessinee en CSS. Quand les comptes
   viendront, les initiales prendront sa place. */
.side-avatar {
  position: relative;
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent-dim);
}
.side-avatar::before, .side-avatar::after { content: ''; position: absolute; left: 50%; border-radius: 50%; background: var(--accent); }
.side-avatar::before { top: 20%; width: 38%; height: 38%; transform: translateX(-50%); }
.side-avatar::after { top: 64%; width: 74%; height: 64%; transform: translateX(-50%); }
.side-avatar.is-lg { width: 48px; height: 48px; }
.side-new {
  display: inline-flex;
  align-items: center;
  gap: var(--k-sp-8);
  min-height: 44px;
  padding: 0 var(--k-sp-20) 0 var(--k-sp-16);
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: var(--k-ombre-e2);
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}
.side-new::before { content: '+'; font-size: calc(22px * var(--text-scale, 1)); font-weight: 400; line-height: 1; }
.side-new:hover { background: #005e9c; }
.side-new:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* LES REGLAGES (06.10.2026, capture des Parametres de Claude a l'appui). Sur un
   telephone, la feuille couvre l'ecran et monte du bas, la croix a gauche du titre ; sur un
   ecran plus large, une carte au centre sur un voile. Les reglages se rangent en groupes : une
   carte par groupe, une ligne par reglage, un trait entre deux lignes.
   La feuille est un enfant direct de <body> (frame() de build/page.mjs), jamais un enfant de
   .menu-panel : dans la barre elle ne couvrait que 84 % de l'ecran sur iPhone, la largeur de la
   barre. Son z-index compte donc dans la page entiere : 70, au-dessus de la barre (.menu, 60) et
   des carres fixes de la barre du haut (60 et moins). verify-settings garde sa place. */
.set { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; direction: ltr; }
.set[hidden] { display: none; }
/* Les Reglages ouverts, la page derriere ne defile pas : sur un ordinateur la barre fixe ne la
   bloque pas, et la molette sur le voile la faisait defiler. */
html:has(.set:not([hidden])), body:has(.set:not([hidden])) { overflow: hidden; }
.set-veil { position: absolute; inset: 0; background: rgba(15, 23, 32, 0.32); opacity: 0; transition: opacity .22s ease; }
.set.is-open .set-veil { opacity: 1; }
.set-card {
  position: relative;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: var(--bg);
  color: var(--text);
  transform: translateY(100%);
  transition: transform .24s ease-out;
  outline: none;
}
.set.is-open .set-card { transform: none; }
.set-head {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 10px 6px;
}
.set-x {
  position: relative;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.set-x::before, .set-x::after {
  content: ''; position: absolute; left: 13px; top: 21px; width: 18px; height: 2px;
  border-radius: 2px; background: var(--dim);
}
.set-x::before { transform: rotate(45deg); }
.set-x::after { transform: rotate(-45deg); }
.set-x:hover { background: var(--card-hover); }
.set-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* display: block, parce que h2 est un flex du site : text-align n'y centrerait rien. */
.set-title { grid-column: 2; display: block; margin: 0; text-align: center; font-size: calc(17px * var(--text-scale, 1)); font-weight: 600; }
.set-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px calc(28px + env(safe-area-inset-bottom));
}
.set-account {
  display: flex;
  align-items: center;
  gap: var(--k-sp-16);
  padding: var(--k-sp-16);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-16);
}
.set-account-t { display: flex; flex-direction: column; gap: var(--k-sp-4); min-width: 0; }
.set-account-l { font-size: calc(16px * var(--text-scale, 1)); font-weight: 600; }
.set-account-h { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.4; color: var(--dim); }
.set-sec { margin-top: var(--k-sp-24); }
.set-sec[hidden] { display: none; }
.set-sec-h { margin: 0 var(--k-sp-8) var(--k-sp-8); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); font-weight: 600; color: var(--faint); }
.set-group { background: var(--card); border: 1px solid var(--border); border-radius: var(--k-r-16); overflow: hidden; }
.set-group > * + * { border-top: 1px solid var(--border); }
.set-group > .ut-row { border-radius: 0; }
.set-group > button.ut-row:hover { background: var(--card-hover); }
.set-size { padding: var(--k-sp-16) var(--k-sp-16) var(--k-sp-12); }
.set-size-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--k-sp-12); }
.set-size-l { font-size: calc(16px * var(--text-scale, 1)); }
.set-size-v { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.set-size-bar { display: flex; align-items: center; gap: var(--k-sp-12); margin-top: var(--k-sp-8); }
.set-size-a { flex: 0 0 auto; width: 22px; text-align: center; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1; color: var(--dim); }
.set-size-a.is-big { font-size: calc(22px * var(--text-scale, 1)); }
.set-size-in { flex: 1 1 auto; min-width: 0; height: 32px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.set-size-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--k-r-8); }
.set-size-sample { display: flex; flex-direction: column; gap: var(--k-sp-4); margin: var(--k-sp-12) 0 0; padding: var(--k-sp-12) var(--k-sp-12); background: var(--bg); border-radius: var(--k-r-12); }
/* Pas la classe .he : la phrase d'apercu n'est pas un mot du cours (pas de bouton Ecouter, pas
   de fiche). data-he la garde dans le balayage du niqqud. */
.set-size-he { font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(22px * var(--text-scale, 1)); line-height: 1.4; text-align: right; }
body.cursive .set-size-he { font-family: 'Gveret Levin', cursive; font-size: calc(24px * var(--text-scale, 1)); }
.set-size-tr { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.4; color: var(--dim); }
.set-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--k-sp-4); padding: var(--k-sp-4); background: var(--card); border: 1px solid var(--border); border-radius: var(--k-r-16); }
.set-seg-b {
  min-height: 40px;
  padding: 0 var(--k-sp-8);
  font: inherit;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  color: var(--dim);
  background: transparent;
  border: 0;
  border-radius: var(--k-r-12);
  cursor: pointer;
  touch-action: manipulation;
}
.set-seg-b:hover { color: var(--text); }
.set-seg-b:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.set-seg-b[aria-pressed="true"] { color: var(--accent-text); background: var(--accent-dim); font-weight: 600; }
.set-act { min-height: 52px; }
.set-install:has(> .install[hidden]) { display: none; }
.set-install .install { width: 100%; justify-content: center; margin: 0; }
@media (min-width: 720px) {
  .set { align-items: center; padding: var(--k-sp-24); }
  .set-card {
    width: min(560px, 100%);
    height: auto;
    max-height: min(86vh, 780px);
    border-radius: var(--k-r-16);
    box-shadow: 0 24px 60px rgba(15, 23, 32, 0.28);
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition: transform .2s ease-out, opacity .2s ease-out;
  }
  .set.is-open .set-card { opacity: 1; transform: none; }
  .set-head { padding-top: var(--k-sp-12); }
}
@media (prefers-reduced-motion: reduce) {
  .set-card, .set-veil { transition: none; }
}
/* 16px : sous cette taille, Safari zoome sur le champ au toucher. */
.side-q {
  width: 100%;
  box-sizing: border-box;
  padding: var(--k-sp-12) var(--k-sp-12);
  font: inherit;
  font-size: max(16px, calc(16px * var(--text-scale, 1)));
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
}
.side-q:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.side-none { margin: var(--k-sp-16) var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.side-none[hidden] { display: none; }

.menu-nav { display: flex; flex-direction: column; margin: var(--k-sp-8) 0 0; }
.menu-link {
  padding: var(--k-sp-8) var(--k-sp-12);
  border-radius: var(--k-r-8);
  color: var(--text);
  text-decoration: none;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
}
.menu-link:hover { background: var(--card-hover); color: var(--accent); }
.menu-link[aria-current="page"] { background: var(--accent-dim); color: #003356; }
/* Pendant une recherche, la barre ne montre que les resultats, comme celle de Claude. */
.menu-panel.is-searching .menu-nav { display: none; }

.side-sec { margin-top: var(--k-sp-16); }
.side-sec[hidden] { display: none; }
.side-h { margin: 0; }
/* LE TITRE D'UNE CATEGORIE LA PLIE ET LA DEPLIE (05.10.2026 : « Il faudra pouvoir plier
   et deplier les categories dans la barre laterale »). Le chevron pointe vers le bas quand la
   categorie est ouverte, vers la droite quand elle est pliee. Les mois des cours font de meme. */
.side-hbtn, .side-month {
  display: flex;
  align-items: center;
  gap: var(--k-sp-8);
  width: 100%;
  margin: 0;
  padding: var(--k-sp-8) var(--k-sp-12);
  font: inherit;
  text-align: left;
  background: none;
  border: 0;
  border-radius: var(--k-r-8);
  cursor: pointer;
  touch-action: manipulation;
}
.side-hbtn {
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--faint);
}
.side-hbtn::after, .side-month::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .15s ease;
}
.side-hbtn[aria-expanded="false"]::after, .side-month[aria-expanded="false"]::after { transform: rotate(-45deg); }
.side-hbtn:hover, .side-month:hover { background: rgba(17, 24, 39, 0.05); }
.side-hbtn:focus-visible, .side-month:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.is-folded > .side-fold { display: none; }
/* Pendant une recherche, tout se deplie a l'ecran : un resultat ne se cache pas dans un pli. */
.menu-panel.is-searching .is-folded > .side-fold { display: block; }
.side-group { margin: var(--k-sp-8) var(--k-sp-12) var(--k-sp-4); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); }
.side-empty { margin: var(--k-sp-4) var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.45; color: var(--dim); }
.side-sess { display: flex; align-items: center; border-radius: var(--k-r-12); }
.side-sess:hover { background: rgba(17, 24, 39, 0.05); }
.side-sess.is-current, .side-sess.is-current:hover { background: var(--accent-dim); }
.side-sess-pick {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: var(--k-sp-8) var(--k-sp-8) var(--k-sp-8) var(--k-sp-12);
  color: var(--text);
  text-decoration: none;
  touch-action: manipulation;
}
.side-sess-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
/* Une requete en hebreu prend la face hebraique du site : UNE face par page. */
.side-sess-name.is-he { font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(18px * var(--text-scale, 1)); line-height: 1.3; }
body.cursive .side-sess-name.is-he { font-family: 'Gveret Levin', cursive; font-size: calc(20px * var(--text-scale, 1)); }
.side-sess-meta { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); }
.side-sess-pick:focus-visible, .side-sess-more:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--k-r-12); }
/* LE BOUTON « … » DE CHAQUE TRADUCTION (comme dans la barre de Claude) : trois points, discrets
   jusqu'au survol ; toujours visibles au doigt, ou rien ne se survole. */
.side-sess-more {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--dim);
  border: 0;
  border-radius: var(--k-r-12);
  background: none;
  cursor: pointer;
  opacity: 0.6;
  touch-action: manipulation;
}
.side-sess-more span, .side-sess-more span::before, .side-sess-more span::after {
  position: absolute;
  top: 19px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.side-sess-more span { left: 18px; }
.side-sess-more span::before, .side-sess-more span::after { content: ''; top: 0; }
.side-sess-more span::before { left: -7px; }
.side-sess-more span::after { left: 7px; }
.side-sess-more:hover, .side-sess-more[aria-expanded="true"] { opacity: 1; background: rgba(17, 24, 39, 0.06); }
/* Avec une souris, le « … » n'apparait qu'au survol de sa ligne, comme dans Claude. */
@media (hover: hover) and (pointer: fine) {
  .side-sess-more { opacity: 0; }
  .side-sess:hover .side-sess-more, .side-sess:focus-within .side-sess-more,
  .side-sess-more[aria-expanded="true"] { opacity: 1; }
}
.side-pop {
  position: absolute;
  right: 14px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-width: 170px;
  padding: var(--k-sp-8);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
  box-shadow: var(--k-ombre-e3);
}
.side-pop button {
  padding: var(--k-sp-8) var(--k-sp-12);
  font: inherit;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  text-align: left;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: var(--k-r-8);
  cursor: pointer;
}
.side-pop button:hover, .side-pop button:focus-visible { background: rgba(17, 24, 39, 0.06); outline: none; }
.side-pop .is-danger { color: #c62828; }
/* Renommer sur place : le nom devient un champ, a la meme place. 16px : Safari ne zoome pas. */
.side-sess-edit {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: var(--k-sp-4) var(--k-sp-8);
  font: inherit;
  font-size: max(16px, calc(16px * var(--text-scale, 1)));
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--accent);
  border-radius: 6px;
}
.side-sess-edit:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.side-more {
  margin: var(--k-sp-4) 0 0;
  padding: var(--k-sp-8) var(--k-sp-12);
  font: inherit;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  color: var(--accent);
  background: none;
  border: 0;
  border-radius: var(--k-r-8);
  cursor: pointer;
}
.side-more:hover { background: var(--card-hover); }
.side-month { margin-top: var(--k-sp-4); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); }
.side-mgroup[hidden], .side-day[hidden] { display: none; }
.side-day {
  display: flex;
  align-items: baseline;
  gap: var(--k-sp-12);
  padding: var(--k-sp-8) var(--k-sp-12);
  border-radius: var(--k-r-8);
  color: var(--text);
  text-decoration: none;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
}
.side-day:hover { background: rgba(17, 24, 39, 0.05); }
.side-day[aria-current="page"] { background: var(--accent-dim); }
.side-day-n { flex: 0 0 auto; min-width: 20px; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); font-variant-numeric: tabular-nums; }
.side-day-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Le bouton qui masque la barre fixe : seulement sur ordinateur (voir la fin de la feuille). */
.side-collapse {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--dim);
  background: none;
  border: 0;
  border-radius: var(--k-r-12);
  cursor: pointer;
}
.side-collapse span { position: relative; width: 20px; height: 16px; box-sizing: border-box; border: 2px solid currentColor; border-radius: 4px; }
.side-collapse span::before { content: ''; position: absolute; top: 0; bottom: 0; left: 4px; width: 2px; background: currentColor; }
.side-collapse:hover { background: rgba(17, 24, 39, 0.05); color: var(--text); }
.side-collapse:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.side-backup .side-status { margin: var(--k-sp-8) var(--k-sp-8) 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--accent-text); }
.side-backup .side-status:empty { display: none; }
.side-backup .side-note { margin: var(--k-sp-8) var(--k-sp-8) 0; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); line-height: 1.45; color: var(--faint); }

.ctl {
  font: inherit;
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  letter-spacing: 0.3px;
  color: var(--dim);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--k-sp-4) var(--k-sp-12);
  cursor: pointer;
  transition: all 0.15s;
}
.ctl:hover { color: var(--text); border-color: var(--accent); }
.ctl[aria-pressed="true"] { color: #003356; border-color: var(--accent); background: var(--accent-dim); }

/* --------------------------------------------------------- structure */

/* LE LIEN DE RETOUR SE LIT « ← Home », A GAUCHE. Sous le dir=rtl de la page il s'affichait
   « Home → » colle au bord droit : la fleche passe apres son libelle et le bloc part du cote
   oppose a tout le reste du chrome, qui est latin et ancre a gauche (hamburger, onglets,
   titres). Un retour qui pointe vers l'avant et se range du mauvais cote se lit comme un
   accident, pas comme une convention. `display: block` + marge auto physique : sans elle
   l'element en ligne reste pose sur le bord droit du bloc rtl qui le contient. */
.back {
  display: block;
  direction: ltr;
  text-align: left;
  margin-right: auto;
  width: fit-content;
  color: var(--faint);
  text-decoration: none;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  margin-bottom: var(--k-sp-20);
}
.back:hover { color: var(--accent); }

/* L'en-tete est du chrome latin (surtitre + titre de page) : sous le dir=rtl de la page, un
   flex a un seul enfant le posait au bord DROIT et alignait son texte a droite — « 26 DAYS /
   Practice » flottait a l'oppose du lien de retour, des onglets et de la prose, tous a
   gauche. Mesure du 30.08.2026 sur la page S'entrainer. Les titres hebreux gardent leur
   propre dir=rtl, pose par le build sur le mot lui-meme. */
header {
  border-bottom: 1px solid var(--border);
  padding-bottom: var(--k-sp-20);
  margin-bottom: 28px;
  display: flex;
  direction: ltr;
  text-align: left;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--k-sp-16);
}

.eyebrow {
  color: var(--faint);
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  text-transform: uppercase;
  letter-spacing: 1.6px;
  margin-bottom: var(--k-sp-8);
}

h1 { font-size: calc(30px * var(--text-scale, 1)); font-weight: 600; letter-spacing: -0.4px; line-height: 1.25; }

.intro { color: var(--dim); max-width: 66ch; margin-bottom: var(--k-sp-32); margin-inline-end: auto; }

.block { margin-bottom: 44px; }

/* The entry count beside a section heading: how much is under it, without hiding it. */
.sec-k { color: var(--faint); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); font-variant-numeric: tabular-nums; }

h2 {
  font-size: calc(19px * var(--text-scale, 1));
  font-weight: 600;
  margin-bottom: var(--k-sp-8);
  display: flex;
  align-items: baseline;
  gap: var(--k-sp-12);
  flex-wrap: wrap;
}
/* The kind sits ABOVE the title, not beside it (25.08.2026). Beside it, the two shared a
 * flex line and the pair wrapped as one block: on a phone the chip took the start of the
 * title's line and pushed the words down, which is what put it under the floating menu
 * button in the author's screenshot. Above, it reads as an eyebrow — what this block is, then
 * what it says — and the title starts where every other title starts.
 * The border goes with the move: a chip needs an outline to be a chip, an eyebrow does not,
 * and five outlined chips down a page is five things asking to be looked at. */
.kind {
  flex-basis: 100%;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: var(--k-sp-4);
}

.section-note { color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin: var(--k-sp-4) 0 var(--k-sp-16); max-width: 66ch; margin-inline-end: auto; }

/* --------------------------------------------------------- hebrew */

.he {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 1.45em;
  line-height: 1.75;
}
body.cursive .he { font-family: 'Gveret Levin', cursive; font-size: 1.7em; }
/* Une ligne a majorite latine porte dir="ltr" (build/lib.mjs, baseDir) : la regle .he ne doit pas le recouvrir. */
.he[dir="ltr"] { direction: ltr; }

/* --------------------------------------------------------- play buttons

   One button per Hebrew word, several hundred on the browse page, so the icon is a
   mask on an empty element: a single rule paints all of them and no instance carries
   markup of its own. Quiet at rest (the taste rule: an effect you notice immediately
   is too strong), full strength on hover, focus and while speaking. */
:root {
  /* Copier, dessine comme le haut-parleur : un masque sur un pseudo-element vide, donc une
     seule regle peint toutes les instances et aucune ne porte de balisage. */
  /* La loupe du champ d'accueil. Meme technique que le haut-parleur et le bouton copier :
     un masque sur un pseudo-element vide, donc la couleur suit l'etat sans toucher au balisage. */
  --mag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M16.5 16.5 21 21'/%3E%3C/svg%3E");
  --cpy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='11' height='11' rx='2'/%3E%3Cpath d='M5 15V6a2 2 0 0 1 2-2h9'/%3E%3C/svg%3E");
  --spk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h3.5L13 20V4L7.5 9H4z'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7'  fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M19 6a8 8 0 0 1 0 12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* The speaker is drawn by a PSEUDO-ELEMENT, and the button itself carries no mask.
 *
 * Measured 19.08.2026: the button was 14 x 14px — the whole glyph was the hit area — in 2 920
 * places, on the one control that gives the pronunciation, used while walking. It is now a
 * 40 x 40 target pulled back into the line by negative margins, so the corpus is the same
 * height to the pixel (189 157px across 20 day pages, before and after) and 205 buttons out of
 * 205 still resolve to their own centre.
 *
 * The trap, and it was measured too: enlarging the hit area with `.say::before { inset: -15px }`
 * on the old rule does NOTHING. A mask on the button masks its pseudo-element with it, so the
 * effective target stayed 26px whatever the inset and the z-index. The mask has to move. */
.say {
  appearance: none;
  border: 0;
  padding: 0;
  position: relative;
  width: 40px;
  height: 40px;
  margin: -13px -13px -13px calc(.35em - 13px);
  flex: 0 0 auto;
  vertical-align: middle;
  background: none;
  opacity: .28;
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity .18s ease, transform .18s ease;
}
.say::before {
  content: '';
  position: absolute;
  inset: 13px;
  background-color: var(--faint);
  transition: background-color .18s ease;
  -webkit-mask: var(--spk) center / contain no-repeat;
  mask: var(--spk) center / contain no-repeat;
}
/* The colour and the pulse follow the mask onto the pseudo-element. Left on the button they
 * would paint, and scale, a 40px transparent box instead of the 14px speaker. */
.say:hover, .say:focus-visible { opacity: 1; }
.say:hover::before, .say:focus-visible::before { background-color: var(--accent); }
.say:focus-visible { outline: 2px solid var(--accent); outline-offset: -11px; border-radius: 3px; }
.say.playing { opacity: 1; }
.say.playing::before { background-color: var(--accent); animation: say-pulse .9s ease-in-out infinite; }
@keyframes say-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* No Hebrew voice on the device: the buttons go rather than fail silently. */
body.no-speech .say { display: none; }

/* Bigger target on the SRS card, where hearing the word is the exercise. */
/* Bigger speaker on the practice card, same 40px target: the glyph grows by shrinking
 * the inset, not by resizing the button — resizing it would shrink the hit area again. */
.srs-front .say { opacity: .5; margin-inline-start: calc(.5em - 13px); }
.srs-front .say::before { inset: 8px; }

.say-hint {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: min(34rem, 92vw);
  z-index: 60;
  background: var(--text);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: var(--k-r-12);
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  line-height: 1.45;
  box-shadow: var(--k-ombre-e2);
}

@media (prefers-reduced-motion: reduce) {
  .say { transition: none; }
  .say.playing::before { animation: none; }
}

/* --------------------------------------------------------- vocab rows */

.rows { border-top: 1px solid var(--border); }

.row {
  display: grid;
  grid-template-columns: minmax(170px, 1.1fr) minmax(120px, 0.9fr) minmax(180px, 1.4fr);
  gap: var(--k-sp-8) var(--k-sp-20);
  align-items: baseline;
  padding: var(--k-sp-12) var(--k-sp-4);
  border-bottom: 1px solid var(--border);
}
.row:hover { background: var(--card-hover); }

/* The browse list is over a thousand rows, and every reading and meaning on it is a flip
   card. Without this, turning ONE card over cost a full style+layout pass across the whole
   list: measured at 1310-2500ms to the next painted frame, which is the lag you feel as
   'nothing happened, then it happened'. The click handler itself was 0.2ms — it was never
   the JavaScript. content-visibility lets the browser skip rows that are off screen
   entirely; the same measurement then reads 14-33ms. contain-intrinsic-size keeps the
   scrollbar honest by telling it what a skipped row would have been worth. */
.row { content-visibility: auto; contain-intrinsic-size: 0 84px; }

.row-he { display: flex; align-items: baseline; gap: var(--k-sp-8); flex-wrap: wrap; }
.row-tr { color: var(--accent); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); letter-spacing: 0.2px; }

/* HOW WELL YOU KNOW IT — five segments, one per Leitner box, filled up to the word's own.
 * A word never met has no bar at all (the element stays hidden): "not started" and "started
 * and forgotten" must not look alike. Painted by strengthPass() in app.js, because the box
 * lives in localStorage and the page is static. */
.strength {
  display: inline-flex;
  gap: var(--k-sp-4);
  align-items: center;
  vertical-align: middle;
}
.strength i { display: block; width: 6px; height: 4px; border-radius: 2px; background: var(--border); }
.strength i.on { background: var(--accent); }
.strength[data-box="0"] i.on { background: #c96; }

/* Practise this word. 40px of box for the same reason every tap target here is 40px, pulled
 * back into the line by negative margins so a list of 1 874 rows does not grow by 1 874 x 26px. */
.row-go {
  display: inline-block;
  position: relative;
  width: 40px;
  height: 40px;
  margin: -12px -8px -12px 0;
  flex: 0 0 auto;
  text-decoration: none;
  touch-action: manipulation;
}
.row-go::before {
  content: '';
  position: absolute;
  inset: 15px 17px;
  border-style: solid;
  border-width: 5px 0 5px 7px;
  border-color: transparent transparent transparent var(--faint);
  opacity: .45;
}
.row-go:hover::before, .row-go:focus-visible::before { border-left-color: var(--accent); opacity: 1; }
.row-go:focus-visible { outline: 2px solid var(--accent); outline-offset: -12px; border-radius: 6px; }
.row-gl { display: flex; flex-direction: column; gap: var(--k-sp-4); }
.row-note, .row-src { grid-column: 1 / -1; color: var(--faint); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }
.row-src a { color: var(--dim); }

.gloss { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.gloss i {
  font-style: normal;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  letter-spacing: 1px;
  color: var(--faint);
  margin-inline-end: var(--k-sp-8);
  vertical-align: 1px;
}
.gloss-fr { color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }

/* --------------------------------------------------------- reading cards

   Every reading on the site (.cell-tr, .poal-tr, .line-tr, .row-tr and the
   Reading column) is a card that flips face-down instead of disappearing. The
   box keeps its size either way, so hiding the readings never reflows the page
   and you never lose the line you were reading. Click one card to peek at it. */

/* AJOUT DU 19/08 : une lecture ne se coupe JAMAIS au milieu d'un mot.
   Mesure avant : 212 coupures sur 24 pages — « lehamshich » rendu « lehamsh / ich »,
   « machberet » rendu « machb / eret ». Aucune sonde ne le voyait, parce qu'un mot coupe
   ne deborde pas et ne chevauche rien : verify-table-fit et verify-collide mesuraient
   tous les deux autre chose. verify-wordbreak.cjs mesure celle-ci.
   Si le mot ne tient pas, il DEBORDE — et le debordement, lui, est deja surveille. Mieux
   vaut un defaut qu'un instrument voit qu'un defaut qu'aucun ne voit. */
.tr, .poal-tr, .cell-tr, .line-tr, .row-tr, .srs-tr, .srs-poal-tr, .reveal-tr {
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}

/* Et la contrepartie du bloc ci-dessus, mesuree le 19/08 : interdire la coupure transforme
   le defaut invisible en debordement, et 37 debordements sont apparus la ou il n'y en avait
   aucun. Tous dans la colonne Lecture du vocabulaire, qui fait 73px sous 440px, pour cinq
   lectures du corpus demandant 75 a 96px a 14,5px. Un mot ne se coupe pas, donc c'est le
   corps qui cede — exactement le marche deja passe pour l'hebreu (.he-long, plus bas).
   Le marquage se fait a la compilation (`trClass` dans build.mjs) sur le NOMBRE DE SIGNES,
   qui n'est qu'un proxy de la largeur : c'est verify-table-fit qui dit si le seuil rate un
   mot, pas ce commentaire. */
@media (max-width: 440px) {
  .tr.tr-long { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
  .tr.tr-xlong { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
}
/* 14 signes et plus (tr-xxlong) : la lecture passe a la ligne au lieu d'etre rognee — le
   nowrap herite de he-solid est leve pour elle seule. Mesure du 03.09.2026 sur
   « metzachtzechot » a 700 et 768px. */
/* (la coupure elle-meme est scopee aux tableaux compacts, en fin de feuille : sur une page de
   cours la case est plus large et une lecture coupee en deux y serait un mot casse pour rien —
   verify-wordbreak l'a dit sur « arche'ologiyot » a 360px, 03.09.2026) */
/* Sous 340px la colonne se resserre encore et le corpus garde exactement une lecture qui
   n'y tient plus, « arche'ologiyot » : 96px a 14,5px pour 73px de colonne. */
@media (max-width: 340px) {
  .tr.tr-xlong { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
}

/* La lecture du po'al peignait jusqu'a 10px AU-DELA de sa carte accentuee, a toutes les
   largeurs sous 900px : le bloc se dimensionnait sur la ligne hebreu (39,89px pour
   « lehakhin ») et la lecture en demandait 46. Un enfant de type bloc ne portait donc pas
   sa largeur intrinseque jusqu'au parent ; en inline-block il la porte, et le
   `min-width: max-content` sur le bloc accentue ferme le dernier cas a 320px.
   Mesure : 11 debordements a 320px et 3 a 899px avant, 0 partout apres.

   AVERTISSEMENT DE METHODE. Les quatre premiers candidats testes ont rendu des chiffres
   RIGOUREUSEMENT IDENTIQUES au temoin sans correctif — parce que le CSP de la page
   (`style-src 'self'`) bloque `addStyleTag` et tout <style> injecte. Un banc d'essai qui
   n'applique rien rend un resultat parfaitement stable, donc credible. Tester un candidat
   CSS ici veut dire ECRIRE DANS site/style.css, et garder un temoin cense tout casser :
   c'est lui, et lui seul, qui prouve que le banc mesure quelque chose.

   PORTEE. Les deux regles ne sont PAS restreintes a la copie telephone, et l'essai inverse
   est ce qui l'a montre : scopees a .poal-inline, dix combinaisons de 641 a 899px sont
   reparties au rouge, la ou c'est la cellule .c-poal du tableau qui est affichee. Le meme
   defaut vit dans les deux copies du po al, donc la regle porte sur les deux. */
.poal .poal-tr { display: block; padding-inline: 0; }
.poal { min-width: max-content; }

.tr, .en {
  /* REVERTED to 1px/5px on 19.08.2026, an hour after being enlarged to 8px/6px for the tap
   * target. On a phone: "ça plie et déplie lorsqu'on veut dévoiler la carte".
   * Measured after the report: 8px of vertical padding on a two-line po'al block makes the
   * card 76px tall for one line of text, so neighbouring cards' boxes overlap and one tap
   * reveals the card you aimed at while folding the one beside it back.
   *
   * The report's own measure — "156 of 156 keep their own centre" — is true and was not
   * enough: keeping your centre says nothing about whose EDGE you are now under. A tap does
   * not land on a centre. Any future attempt at this must measure the gap between adjacent
   * card boxes, the way verify-collide measures words. */
  display: inline-block;
  position: relative;
  padding: 1px var(--k-sp-4);
  margin: -1px -4px;
  border-radius: 4px;
  perspective: 320px;
  /* The padding and the negative margin cancel, so the card takes no room in the layout
     while the tile still has something to cover — but that only holds while the text is
     shorter than the line. Fill the line and the box grows to the line PLUS its 10px, and
     the 5px past the end edge scrolls the whole document. It went unseen because it needs
     a gloss long enough to fill the line: every day page was clean in English and every
     one of them scrolled sideways in French, at all four phone widths measured.
     Capping the box makes the text wrap 10px earlier instead of the page growing. */
  max-width: 100%;
}
/* The back of the card: a blank tile filling the card, never wider than it.
   The TILE turns over, never the card itself — a card rotated away with its
   backface hidden is dropped out of hit-testing, so tapping it did nothing at
   all. A card that stays flat is a card you can still click. */
/* No tile, no flip: the fold mechanic was removed on 19.08.2026 ("plus de feature
   pliage"). The reading and the meaning are simply printed. .tr / .en stay as layout
   hooks — the columns still exist, they are just never covered. */


/* ---------- language ----------------------------------------------------
   The page carries every language at once (a static file cannot know which
   was chosen) and shows one. `display: none` rather than visibility so the
   hidden copy takes no space, is not read out by a screen reader, and is not
   found by ctrl-F. Inline, because most of these sit inside a sentence.

   Default when no language class is on yet — the first paint, before app.js
   runs, and any page built with a single language: show the FIRST language
   only, never all of them stacked. */
.lg { display: none; }
.lg-en { display: inline; }
/* GENERATED by build.mjs from config.json's language list, stamped over the placeholder
   below. These rules used to name `en` and `fr` literally, which works only for as long
   as those are exactly the two languages shipped: give the app a third, or swap French
   for another language, and every selector here matches nothing. The pills still move,
   the body class still changes, and every visible word stays in the first language — a
   silent half-failure, because nothing errors when a selector simply matches nothing.
   That is what happened on the sister app Kita12 the day it shipped Russian.
   Do not hardcode a language here again. */
.lg-en { display: inline; }
body.lang-en .lg-en { display: inline; }
body.lang-en .lg-fr { display: none; }
body.lang-fr .lg-fr { display: inline; }
body.lang-fr .lg-en { display: none; }
.unit-bar.w-0 i { width: 0%; }
.unit-bar.w-5 i { width: 5%; }
.unit-bar.w-10 i { width: 10%; }
.unit-bar.w-15 i { width: 15%; }
.unit-bar.w-20 i { width: 20%; }
.unit-bar.w-25 i { width: 25%; }
.unit-bar.w-30 i { width: 30%; }
.unit-bar.w-35 i { width: 35%; }
.unit-bar.w-40 i { width: 40%; }
.unit-bar.w-45 i { width: 45%; }
.unit-bar.w-50 i { width: 50%; }
.unit-bar.w-55 i { width: 55%; }
.unit-bar.w-60 i { width: 60%; }
.unit-bar.w-65 i { width: 65%; }
.unit-bar.w-70 i { width: 70%; }
.unit-bar.w-75 i { width: 75%; }
.unit-bar.w-80 i { width: 80%; }
.unit-bar.w-85 i { width: 85%; }
.unit-bar.w-90 i { width: 90%; }
.unit-bar.w-95 i { width: 95%; }
.unit-bar.w-100 i { width: 100%; }

body.no-gloss-fr .gloss-fr { display: none; }

.tag {
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  letter-spacing: 0.6px;
  color: var(--faint);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0 var(--k-sp-4);
  white-space: nowrap;
}

/* --------------------------------------------------------- tables */

/* Tables fit the column and the PAGE never scrolls sideways. A paradigm with more forms than
   fit is rendered as a wrapping grid instead (.para).
   One documented exception, added after measuring: a COLLECTION table between 641px and 899px
   carries six form columns for rows that use at most four, and squeezing it there broke 186
   words down the middle at 700px. Between those two widths that table scrolls inside its own
   .tbl-wrap. The page still does not scroll — the box does, which is the same rule the tab
   strip already follows. A word split in half is worse than a scrollbar. */
.tbl-wrap { margin: var(--k-sp-4) 0 var(--k-sp-8); }

.tbl {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
}
.tbl th {
  text-align: start;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--faint);
  padding: 0 var(--k-sp-12) var(--k-sp-8) 0;
  border-bottom: 1px solid var(--border);
}
.tbl td {
  vertical-align: top;
  padding: var(--k-sp-12) var(--k-sp-12) var(--k-sp-12) 0;
  border-bottom: 1px solid var(--border);
  overflow-wrap: break-word;
}
.tbl tbody tr:hover { background: var(--card-hover); }

/* The meaning column is the anchor; the form columns share what is left. */
.tbl-forms th:first-child, .tbl-forms td:first-child { width: 27%; }
.tbl-poal th:first-child, .tbl-poal td:first-child { width: 21%; }
.tbl-poal th:nth-child(2), .tbl-poal td:nth-child(2) { width: 19%; }

/* The po'al carries the verb's identity, so it is marked out rather than
   dissolved into the row: accent block, infinitive on top, root and binyan under. */
.poal {
  display: block;
  background: var(--accent-dim);
  border-radius: 4px;
  padding: var(--k-sp-8) var(--k-sp-8) var(--k-sp-8);
  color: #003356;
}
.c-poal { padding-inline-end: var(--k-sp-16); }
.poal .he { font-size: 1.3em; line-height: 1.5; }
.poal-tr { display: block; color: var(--accent-text); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
.poal-root {
  display: block;
  color: var(--accent-text);
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  letter-spacing: 0.3px;
  margin-top: var(--k-sp-4);
}
/* Inside a wide paradigm the po'al sits under the meaning, same highlight.
   Its reading STACKS under the Hebrew exactly as in the table cell: the generic
   `.poal .poal-tr { display: inline-block }` (the phone-card rule) put the reading in
   the same inline line as the infinitive here, and measured on day 23 the two overlapped
   by 5px — lichtov printed through לִכְתּוֹב. */
.para-head .poal { display: inline-block; margin-top: var(--k-sp-8); }
.para-head .poal .poal-tr { display: block; }

/* --------------------------------------------------------- collections */

/* Cumulative pages (adjectives, nouns): same table, plus where it was met. The narrow
   column is the "seen on" one, and it is now NAMED — which is what the previous version of
   this comment already demanded and the selector did not do.

   It said: the verbs table has no such column since 24.08, so its last child is the FORMS,
   and 11% squeezed a ten-cell paradigm into 31px; "a width written for one column must name
   it, not its position". The fix applied then was `:not(.tbl-tenses)` — patching the one
   table that had been caught instead of the selector that caught it. So it caught a second,
   on 26.08: the prefix table's last column is the MEANING, which is half its lesson, and it
   was pinned to 9% — 44px holding "a flight", in a row 81px tall. The exclusion list could
   not have prevented that; naming the column does. */
.tbl-collection th.c-seen,
.tbl-collection td.c-seen { width: 11%; }
/* Desktop only. Written flat, this width beats the phone rule that makes the same cell a
   full-width block: same file, later line, higher specificity — the trap this stylesheet
   already documents for `.tbl th`. */
@media (min-width: 700px) {
  /* 34%, not 30%, since the po'al moved into this cell on 26.08.2026. The column now carries
     the infinitive AND the four pills on one line where it carried a two-word gloss and the
     pills; at 30% the meaning under them wrapped ("to hurt, to / ache") on a 1280px screen
     with the forms column half empty beside it. */
  .tbl-tenses th.c-word, .tbl-tenses td.c-word { width: 34%; }
}

/* A collection table carries SIX form columns, because two paradigm shapes (m.s/f.s/m.pl/f.pl
   and sg/pl) share one table, while no single row uses more than four. Under `table-layout:
   fixed` the unused columns are still paid for, so each form cell got 73%/7 ≈ 93px and
   `overflow-wrap: break-word` then split vocalised words down the middle —
   אִינְסְטָלָטוֹרִיּוֹת rendered as אִינְסְטָלְטוֹ / רִיּוֹת, which reads as two words and
   strands the niqqud across the break. Letting the columns size to their content instead
   spends the width where it is actually used and the words stay whole.
   Bounded at 900px on purpose: that is where the widest row's own content still fits the
   900px container. Measured — at 900 the tables need 0px more than they have, at 880 they
   would need more, and a table that does not fit its column is the one thing this stylesheet
   refuses (see the note above .tbl-wrap). Below the breakpoint the fixed layout stays. */
@media (min-width: 900px) {
  .tbl-collection { table-layout: auto; }
  .tbl-collection td.c-form, .tbl-collection th { overflow-wrap: normal; }
}

/* The 641-899 band used to have its own rule here: let the wrapper scroll sideways, on the
   argument that a word split down the middle is worse than a scrollbar. The argument was
   sound and the choice was still false — the card layout keeps words whole AND does not
   scroll, and it now covers this band (see the 899px query below). A sideways-scrolling table
   with no affordance is what a phone in landscape was showing, and it reads as broken.

   Nothing replaces it: the rule that made the band tolerable is exactly the rule that has to
   go once the band is no longer a table. Left as a note rather than deleted silently, because
   the reasoning it records is right about everything except which options existed. */
.c-seen { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }
.c-seen a { color: var(--faint); text-decoration: none; display: block; white-space: nowrap; }
.c-seen a:hover { color: var(--accent); }

/* Under 430px the day links become one compact wrapping line. */
@media (max-width: 430px) {
  .tbl-collection th.c-seen,
  .tbl-collection td.c-seen { width: 9%; }
  .c-seen { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
  .c-seen a { display: inline; white-space: normal; }
}

/* Second copy of the po'al, folded under the meaning on narrow screens where
   six columns stop being readable. Only ever one of the two is displayed. */
.poal-inline { display: none; }
.tbl-vocab th:first-child, .tbl-vocab td:first-child { width: 34%; }
.tbl-vocab th:nth-child(2), .tbl-vocab td:nth-child(2) { width: 24%; }
/* 320 a 380 px : 24 % de la table laissait la translitteration (parlament, metzuyan, kaduregel) depasser sa cellule de 3 a 7 px ;
   la colonne de translitteration prend 4 points a la colonne du sens (verify-table-fit, 24 cas). */
@media (max-width: 380px) {
  .tbl-vocab th:nth-child(2), .tbl-vocab td:nth-child(2) { width: 28%; }
}

/* The connectors table's function column. Latin in an rtl row, so it lands on the end edge
   like every other Latin column here (.c-mean, .c-tr, .c-seen). Quiet type: it labels the
   row, it is not the row. */
.tbl td.c-role, .tbl th.c-role { direction: ltr; text-align: end; }
.tbl td.c-role {
  color: var(--faint);
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.tbl .c-tr { color: var(--accent); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.cell-word { font-weight: 500; }
.cell-word .tag { margin-inline-start: var(--k-sp-8); vertical-align: 2px; }

/* Reading under the word, so a column stays one word wide. */
.cell-tr { display: block; color: var(--accent); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); margin-top: var(--k-sp-4); }
.cell-sub { display: block; color: var(--faint); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); margin-top: var(--k-sp-4); line-height: 1.5; }
.cell-sub .he { font-size: 1.15em; }


/* --------------------------------------------------------- wide paradigms */

.para { margin: var(--k-sp-20) 0 var(--k-sp-24); }
.para-head { margin-bottom: var(--k-sp-12); }
.para-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(calc(150px * var(--text-scale, 1)), 1fr));
  gap: var(--k-sp-8);
}
.para-cell {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--k-sp-8) var(--k-sp-12);
}
.para-cell:hover { border-color: var(--accent); }
.para-tag { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); letter-spacing: 1px; color: var(--faint); text-transform: uppercase; }

/* --------------------------------------------------------- dialogue */

.dialogue { border-top: 1px solid var(--border); }
.line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: var(--k-sp-16);
  padding: var(--k-sp-16) var(--k-sp-4);
  border-bottom: 1px solid var(--border);
}
.line:hover { background: var(--card-hover); }
.line-n { color: var(--faint); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); padding-top: var(--k-sp-8); }
.speaker { font-family: 'Frank Ruhl Libre', serif; direction: rtl; unicode-bidi: isolate; font-size: calc(16px * var(--text-scale, 1)); color: var(--dim); }
body.cursive .speaker { font-family: 'Gveret Levin', cursive; }
.line-he { display: flex; align-items: baseline; gap: var(--k-sp-8); min-height: 44px; }
.line-tr { color: var(--accent); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.line-gl { display: flex; flex-direction: column; gap: var(--k-sp-4); margin-top: var(--k-sp-4); }

/* --------------------------------------------------------- reading passages

   A passage is read RIGHT TO LEFT as a run of words that wrap like prose, and each word
   carries its own reading and meaning stacked directly under it. The stack is the point:
   a crib beside the line makes you count along to find which word it belongs to, and by
   the time you have counted you have stopped reading.

   The two lower rows are the same .tr and .en peek cards used everywhere else, so "No
   reading" and "No meaning" hide them here as they do on a lesson page, and a single card
   can still be tapped to reveal just that one — which is what makes a passage usable at
   two different stages: everything showing while the words are new, everything hidden once
   they are not, and one tap for the word that got away. */

.rintro { max-width: 60ch; }

.rline {
  padding: var(--k-sp-16) var(--k-sp-4) var(--k-sp-12);
  border-block-start: 1px solid var(--border);
}
.rline:hover { background: var(--card-hover); }

.rw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding-block-end: var(--k-sp-4);
}

@media (max-width: 640px) {
  .rline-words { gap: var(--k-sp-4) var(--k-sp-8); }
  .rw-he { font-size: calc(19px * var(--text-scale, 1)); }
  .rw-tr, .rw-gl { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
  .rw-gl { max-width: 12ch; }
  .rline-tr { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
}

/* --------------------------------------------------------- points, pager */

/* The notes block, reworked 25.08.2026. Demande : "pas fan des parties cours, au niveau du
 * design", and he named three things — the slabs of text, the Hebrew drowning in the English,
 * and the bullet/title layout. Measured before touching it, on day 24 at 390px: five bullets
 * of 48 to 71 words, 649px of prose, round discs, and the section chip sitting on the title's
 * own line where the floating menu button crosses it.
 *
 * What each rule answers:
 *   the disc becomes a NUMBER, because these are numbered rules and a reader returns to "the
 *   third one" — a disc gives nothing to return to;
 *   the measure is capped, because a 71-word note set the full width of a phone is what makes
 *   a slab a slab;
 *   the example leaves the sentence and takes its own line, set larger, so the Hebrew is the
 *   thing the eye lands on rather than a run of the same size as the prose around it. */
.points { margin: 0; padding: 0; list-style: none; color: var(--dim); counter-reset: pt; }
/* Mesuré, pas estimé : la première version de ce bloc a fait MONTER la hauteur du panneau de
 * 649 à 782px sur un téléphone. Le texte avait bien raccourci (70,48,71,67,63 mots ->
 * 67,43,48,57,59) mais l'interligne, la marge et la ligne d'exemple reprenaient plus que ce
 * que les mots rendaient. Un pavé plus aéré reste un pavé, en plus long. */
.points li {
  counter-increment: pt;
  position: relative;
  margin: 0 0 var(--k-sp-12);
  padding-inline-start: 28px;
  max-width: 62ch;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  line-height: 1.45;
}
.points li::before {
  content: counter(pt);
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  min-width: 20px;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.points li:last-child { margin-bottom: 0; }
/* The example, on its own line and unmistakably the Hebrew of the rule above it. Left of it a
 * hairline rather than a box: a box would make five of these read as five cards competing with
 * the vocabulary tables below. */
.point-ex {
  display: block;
  margin-block-start: var(--k-sp-4);
  padding-inline-start: var(--k-sp-12);
  border-inline-start: 2px solid var(--accent-dim);
  line-height: 1.3;
}
.point-ex .he { font-size: 1.45em; }

.pager {
  display: flex;
  justify-content: space-between;
  gap: var(--k-sp-16);
  border-top: 1px solid var(--border);
  padding-top: var(--k-sp-20);
  margin-top: var(--k-sp-40);
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
}
.pager a { color: var(--dim); text-decoration: none; }
.pager a:hover { color: var(--accent); }

.source { color: var(--faint); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); margin-top: var(--k-sp-24); }

/* --------------------------------------------------------- home dashboard */


/* ------------------------------------------------------------------ l accueil : le heros
 *
 * 29.08.2026 : « quelque chose de stable solide, limite qui nous prend tout l'ecran
 * d'accueil ». Mesure avant : sept blocs sur 844px, et le champ de recherche en occupait 48px,
 * soit 5,7 % — l'element le plus petit et le plus pale de l'ecran etait la seule chose qu'on
 * vient y faire.
 *
 * « Solide » ne s'obtient pas en agrandissant mais en NE BOUGEANT PAS. La boite a une hauteur
 * minimale et deux etats qui s'echangent dedans ; la reponse, la barre d'actions et le
 * paradigme arrivent en trois temps sur ~600 ms, et sans reservation chacun poussait ce qui
 * suit. La litterature CLS dit la meme chose : l'essentiel des sauts vient d'une place non
 * reservee, pas d'un chargement lent.
 */

.hero {
  /* UN ECRAN, moins la barre de menu au-dessus. `svh` et pas `vh` : sur un telephone, `vh`
     compte la barre d'adresse comme si elle n'existait pas, et la boite depasse d'autant.
     La MEME hauteur dans les deux etats, c'est tout le mecanisme : au repos elle porte ce
     qu'il faut faire ensuite, en recherche elle porte la reponse, et ce qui est en dessous ne
     bouge pas d'un pixel entre les deux. Mesure : l'echange coutait 0,435 de decalage cumule
     quand la boite se redimensionnait, contre 0,02 a hauteur constante — et un decalage, ce
     sont les boutons qui se derobent sous le doigt. */
  /* 05.10.2026 : plus de hauteur reservee. Le heros ne porte plus de reponse (le traducteur
     est dans la fenetre), donc rien n'y change de taille et la reserve ne protegeait plus
     qu'un vide de 400 px entre la date et le dernier cours. */
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}
/* Le nom de l'app tient sur une ligne. L'ancien bandeau titre coutait 150px du premier ecran
   pour nommer une app qu'on vient d'ouvrir ; il reste, en plus petit, parce qu'une page sans
   nom du tout ne se reconnait pas au reveil. */
/* LA BARRE DU HAUT, SUR TOUTES LES PAGES (30.08.2026 : « cette barre avec sandwich
   bouton translator et date reste tjs »). Le corps a 72px de marge haute et le hamburger est
   FIXE a top:12px : la marge negative remonte cette ligne a sa hauteur. Le bouton est centre
   en ABSOLU — un centrage flex sous dir=rtl depend du sens d'ecriture, le milieu de l'ecran
   n'en depend pas ; la date est poussee a droite par la marge auto physique. */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-top: -60px;
  margin-bottom: var(--k-sp-20);
}
.hero-brand h1 { font-size: calc(20px * var(--text-scale, 1)); margin: 0; line-height: 1.2; font-weight: 600; }
/* LE BOUTON DU TRADUCTEUR EST LE JUMEAU DU HAMBURGER (30.08.2026) : meme carre de
   44px, meme rayon, pose juste a cote — donc FIXE comme lui, sinon il defile pendant que
   l'autre reste et les deux se decalent des le premier geste. La pilule centree qui le
   precedait flottait entre deux elements qui, eux, ne bougeaient pas : trois objets, trois
   comportements, aucun alignement. Deux carres a gauche et la date a droite, c'est une ligne
   qu'on lit d'un coup.
   Le bleu et la lettre : il porte le ת de תַּרְגּוּם, « traduction ». Une lettre hebraique dit
   ce que fait le bouton dans la langue qu'on vient apprendre, la ou une icone de globe ou de
   double fleche aurait dit « international ». */
.topbar-ut {
  position: fixed;
  top: 12px;
  inset-inline-end: 66px;      /* 14 (bord) + 44 (hamburger) + 8 (ecart) */
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  font-family: 'Frank Ruhl Libre', 'David', serif;
  font-size: calc(22px * var(--text-scale, 1));
  line-height: 1;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: var(--k-r-12);
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s, box-shadow .15s, transform .15s;
}
/* Le ת suit la bascule cursive comme tout hebreu du site : UNE face par page, c'est
   l'invariant que verify-typography mesure — et il a rougi le jour meme, six assertions,
   parce que ce bouton imposait la face imprimee sur une page passee en ktav yad. */
body.cursive .topbar-ut { font-family: 'Gveret Levin', cursive; font-size: calc(25px * var(--text-scale, 1)); }
.topbar-ut:hover { background: #005e9c; box-shadow: var(--k-ombre-e2); }
.topbar-ut:active { transform: scale(0.96); }
.topbar-ut:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* La barre ne porte plus que la date : elle n'a plus a reserver la place d'un bouton qui a
   quitte le flux. Sa hauteur reste celle des carres pour que la date s'aligne sur eux. */
.topbar { justify-content: flex-end; }

/* LA PAGE TRADUIRE, UNE CONVERSATION (05.10.2026 : « quand on valide ce qu'on veut faire
   traduire dans la boite de dialogue, ca l'envoie comme une conversation IA »). C'est la PAGE qui
   defile : le fil se pose contre le dock, et le dock reste colle en bas (sticky), au-dessus du
   clavier grace a --kb que translator-mount.js tient a jour depuis visualViewport. Une page
   courte remplit l'ecran, sinon le dock flotterait a mi-hauteur.
   L'hebreu de chaque reponse est le sujet : grand, aere, sans cadre, comme une reponse de
   Claude. Le reste est a un toucher. Le mouvement ne repond qu'aux gestes (0,2 s). */
body.translate { display: flex; flex-direction: column; box-sizing: border-box; min-height: 100svh; padding-bottom: 0; }
body.translate > .container { flex: 1 1 auto; width: 100%; display: flex; flex-direction: column; }
body.translate .container > .ut { flex: 1 1 auto; display: flex; flex-direction: column; margin: 0; }
.ut {
  --sav: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10a1 1 0 0 1 1 1v15l-6-4-6 4V5a1 1 0 0 1 1-1z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --sav-on: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4h10a1 1 0 0 1 1 1v15l-6-4-6 4V5a1 1 0 0 1 1-1z' fill='black' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --edt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16v4z'/%3E%3Cpath d='M13.5 6.5l4 4'/%3E%3C/svg%3E");
  --rty: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v5h-5'/%3E%3C/svg%3E");
  --chv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  --pls: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  --snd: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5.5 11.5L12 5l6.5 6.5'/%3E%3C/svg%3E");
  --chk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E");
  --bubble: #e9eef4;
  --bubble-on: #dde5ee;
}

/* Le moteur en coulisse : rendu, touchable par programme, jamais vu ni atteint au clavier.
   Une boite d'un pixel, decoupee, SANS decalage : la page est dir=rtl, et un element pousse a
   left: -10000px y agrandit la zone de defilement vers la gauche. Un telephone dezoome alors
   toute la page pour la montrer (mesure du 05.10.2026, page reduite de moitie). */
.ut-engine {
  position: absolute; top: 0; right: 0;
  width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%);
  visibility: hidden; pointer-events: none;
}

/* La croix : le carre du ת, a la meme place, avec deux traits blancs (translator-mount.js la
   fait revenir a la page quittee). Les traits vivent dans le <span> : les pseudo-elements du
   bouton portent le verre (09.11.2026, boutons plus petits a cible de 44 px). */
.topbar-ut-x span { display: block; position: absolute; inset: 0; }
.topbar-ut-x span::before, .topbar-ut-x span::after {
  content: ''; position: absolute; left: 14.5px; top: 21px; width: 15px; height: 2px;
  border-radius: 2px; background: #fff;
}
.topbar-ut-x span::before { transform: rotate(45deg); }
.topbar-ut-x span::after { transform: rotate(-45deg); }
/* Copier toute la conversation : un rond dans la rangee du bas de la boite, avant la fleche. */
.ut-copy-all {
  flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  color: var(--dim); background: var(--card); border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer; touch-action: manipulation;
}
.ut-copy-all[hidden] { display: none; }
.ut-copy-all:hover { color: var(--accent); border-color: var(--accent); }
.ut-copy-all.is-done { color: var(--accent); border-color: var(--accent); }
.ut-copy-all.is-done .ut-i-copy { --m: var(--chk); }

/* --- LE FIL ----------------------------------------------------------------------------- */
.ut-thread {
  flex: 1 1 auto;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: var(--k-sp-32);
  padding: var(--k-sp-12) 0 var(--k-sp-24);
  direction: ltr;
}
.ut-turn { display: flex; flex-direction: column; gap: var(--k-sp-12); }
.ut-turn.is-new { animation: ut-in .22s ease-out; }
@keyframes ut-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* LE BROUILLON (06.10.2026) : la traduction de ce qui est dans le champ, sous la derniere
   bulle, plus pale tant qu'elle n'est pas envoyee, plus pale encore quand le texte a change
   depuis. A l'envoi, seule la bulle entre : la reponse etait deja la, elle se fonce. */
.ut-turn.is-draft .ut-a { opacity: .6; transition: opacity .2s ease; }
.ut-turn.is-draft.is-stale .ut-a { opacity: .32; }
.ut-turn.is-sent .ut-q-row { animation: ut-in .22s ease-out; }
.ut-turn.is-sent .ut-a { animation: ut-firm .22s ease-out; }
@keyframes ut-firm { from { opacity: .6; } to { opacity: 1; } }

/* La bulle : la demande, a droite, comme un message envoye. */
.ut-q-row { display: flex; justify-content: flex-end; }
.ut-q {
  max-width: min(85%, 560px);
  margin: 0;
  padding: var(--k-sp-12) var(--k-sp-16) var(--k-sp-12);
  font: inherit; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.45;
  text-align: start; unicode-bidi: plaintext;
  color: var(--text);
  background: var(--bubble);
  border: 0; border-radius: var(--k-r-16);
  overflow-wrap: anywhere;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .15s ease;
}
.ut-q:hover { background: var(--bubble-on); }
.ut-q[aria-expanded="true"] { background: var(--bubble-on); }
.ut-q:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ut-q.is-he { font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(21px * var(--text-scale, 1)); line-height: 1.4; }
body.cursive .ut-q.is-he { font-family: 'Gveret Levin', cursive; font-size: calc(23px * var(--text-scale, 1)); }

/* Les gestes d'une bulle : Modifier, Copier. Au doigt, un toucher sur la bulle les montre ; a
   la souris, le survol aussi, comme sous un message de Claude. */
.ut-q-acts { display: flex; justify-content: flex-end; gap: var(--k-sp-8); margin-top: -4px; }
.ut-q-acts[hidden] { display: none; }
@media (hover: hover) and (pointer: fine) {
  .ut-turn:hover .ut-q-acts[hidden] { display: flex; }
}
.ut-act-btn {
  display: inline-flex; align-items: center; gap: var(--k-sp-8);
  min-height: 40px; padding: 0 var(--k-sp-16);
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim);
  background: transparent;
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .15s ease, color .15s ease;
}
.ut-act-btn:hover { background: var(--card); color: var(--text); }
.ut-act-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ut-act-btn.is-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.ut-act-btn.is-primary:hover { background: #005e9c; }
.ut-act-btn .ut-i { width: 16px; height: 16px; }

/* Modifier sur place : la bulle devient un champ, a sa place. */
.ut-q-edit { width: min(85%, 560px); display: flex; flex-direction: column; gap: var(--k-sp-8); }
.ut-q-edit textarea {
  box-sizing: border-box; width: 100%; max-height: 40vh;
  margin: 0; padding: var(--k-sp-12) var(--k-sp-16);
  font: inherit; font-size: max(17px, calc(17px * var(--text-scale, 1))); line-height: 1.45;
  unicode-bidi: plaintext; text-align: start;
  color: var(--text); background: var(--card);
  border: 1px solid var(--accent); border-radius: var(--k-r-16);
  box-shadow: 0 0 0 3px var(--accent-dim);
  outline: none; resize: none;
}
.ut-q-edit-acts { display: flex; justify-content: flex-end; gap: var(--k-sp-8); }

/* --- LA REPONSE -------------------------------------------------------------------------- */
.ut-a { position: relative; display: flex; flex-direction: column; gap: var(--k-sp-12); }
.ut-a-he {
  display: flex; flex-wrap: wrap; justify-content: flex-start;
  direction: rtl;
  gap: var(--k-sp-8) var(--k-sp-16);
}
.ut-a .ut-wp { display: flex; flex-direction: column; align-items: center; gap: 1px; }
:root body.translate .ut-a .ut-wp { border: 0; background: transparent; }
.ut-w {
  min-width: 40px; margin: 0; padding: 0 var(--k-sp-4);
  font: inherit; color: inherit;
  background: none; border: 0; border-radius: var(--k-r-12);
  cursor: pointer; touch-action: manipulation;
  transition: background-color .15s ease, color .15s ease;
}
.ut-hw { font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(31px * var(--text-scale, 1)); line-height: 1.35; color: var(--text); }
body.cursive .ut-a .ut-hw { font-family: 'Gveret Levin', cursive; font-size: calc(33px * var(--text-scale, 1)); }
/* Le pointille dit qu'un mot ouvre ses formes, sans crier. */
.ut-w .ut-hw {
  text-decoration: underline dotted;
  text-decoration-color: rgba(0, 113, 185, 0.45);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 8px;
}
.ut-w:hover, .ut-w:focus-visible { background: var(--accent-dim); outline: none; }
.ut-w.is-sel { background: var(--accent); }
.ut-w.is-sel .ut-hw { color: #fff; text-decoration-color: transparent; }
.ut-wt { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.3; color: var(--accent-text); direction: ltr; unicode-bidi: isolate; }
.ut-wt-missing { color: var(--faint); font-weight: 600; }
.ut-wg { max-width: 9em; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.25; color: var(--faint); text-align: center; direction: ltr; unicode-bidi: isolate; }
body.no-translit .ut-wt, body.no-translit .ut-a-tr,
html[data-translit-cache] body.translate :is(.ut-wt, .ut-a-tr) { display: none; }
.ut-a-tr { margin: 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.45; color: var(--accent-text); text-align: right; word-spacing: .3em; }
/* Le sens dans SON sens d'ecriture : le point d'une phrase francaise reste a la fin. */
.ut-a-m { margin: 0; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.5; color: var(--dim); text-align: right; unicode-bidi: plaintext; }
.ut-a-ex { display: flex; flex-direction: column; gap: var(--k-sp-4, 4px); }
.ut-a-ex p { margin: 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.5; color: var(--faint); text-align: right; unicode-bidi: plaintext; }
.ut-a-check { margin: .25rem 0 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); opacity: .75; }
.ut-a-check.is-unverified { color: var(--accent); opacity: 1; }
.ut-gen { color: var(--accent); font-size: .85em; cursor: help; }
.ut-a-note { margin: 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.5; color: var(--dim); text-align: right; }
.ut-a-flash { margin: 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--warn); text-align: right; }
.ut-a-sub { margin: 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); text-align: right; }
.ut-a-nat, .ut-a-mw { display: flex; flex-direction: column; gap: var(--k-sp-8); padding-top: var(--k-sp-12); border-top: 1px solid var(--border); }
.ut-a-mw { flex-direction: row; flex-wrap: wrap; direction: rtl; gap: var(--k-sp-8) var(--k-sp-16); }
.ut-a-nat .ut-hw, .ut-a-mw .ut-hw { font-size: calc(24px * var(--text-scale, 1)); }
/* LES SENS d'un mot (translator.senses, 26.10.2026) : chaque sens a sa langue, son sens et son exemple
   au-dessus, tous ses mots hebreux dessous, chacun avec sa nuance et sa source. */
.ut-sx { display: flex; flex-direction: column; gap: var(--k-sp-16); }
.ut-sx-s { display: flex; flex-direction: column; gap: var(--k-sp-8); padding-top: var(--k-sp-12); border-top: 1px solid var(--border); }
.ut-sx-s:first-child { padding-top: 0; border-top: 0; }
.ut-sx-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--k-sp-4) var(--k-sp-8); margin: 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.4; color: var(--dim); unicode-bidi: plaintext; }
.ut-sx-lang { padding: 1px var(--k-sp-8); border-radius: 999px; background: var(--accent-dim); color: var(--accent-text); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); font-weight: 600; letter-spacing: .04em; }
.ut-sx-pos { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); }
.ut-sx-g { font-weight: 600; color: var(--text); }
.ut-sx-ex { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); }
.ut-sx-he { display: flex; flex-wrap: wrap; justify-content: flex-start; direction: rtl; gap: var(--k-sp-8) var(--k-sp-20); }
.ut-sx-n { max-width: 11em; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.3; color: var(--dim); text-align: center; direction: ltr; unicode-bidi: plaintext; }
.ut-sx-srcs { display: flex; gap: var(--k-sp-8); justify-content: center; direction: ltr; }
.ut-dym { margin: 0 0 var(--k-sp-8); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.4; color: var(--dim); unicode-bidi: plaintext; }
.ut-dym-b { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--accent-text); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.ut-dym-t { font-weight: 600; color: var(--text); }
.ut-alt { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--k-sp-4) var(--k-sp-12); margin: var(--k-sp-8) 0 0; color: var(--dim); }
.ut-alt-l { padding: 1px var(--k-sp-8); border-radius: 999px; background: var(--accent-dim); color: var(--accent-text); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); font-weight: 600; }
.ut-sx-src { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.3; color: var(--faint); text-decoration: none; }
a.ut-sx-src { color: var(--accent-text); text-decoration: underline dotted; text-underline-offset: 3px; }
/* LA SECONDE OPINION (06.10.2026) : quand la version naturelle mene, la traduction automatique
   descend dessous, plus petite et plus pale. Elle reste lisible : c'est ce que le service a
   rendu, et l'ecart entre les deux est ce qu'on apprend. */
.ut-a-lead { margin-top: -4px; }
/* Un ENCART dans la reponse, pas une seconde reponse (06.10.2026, video de l'auteur : avec son trait
   de separation et un hebreu presque aussi grand, on la lisait comme un nouvel echange). Fond
   teinte, coins ronds, plus petite ; la couleur descend d'un ton au lieu d'une opacite (regle 12). */
.ut-a-lit {
  border-top: 0; margin-top: var(--k-sp-4); padding: var(--k-sp-12) var(--k-sp-12) var(--k-sp-12); gap: var(--k-sp-4);
  background: transparent; border: 1px dashed var(--border); border-radius: var(--k-r-16);
}
.ut-a-lit .ut-a-sub { color: var(--dim); }
.ut-a-lit .ut-hw { font-size: calc(19px * var(--text-scale, 1)); color: var(--dim); }
/* LES VERSIONS (11.10.2026 : « pouvoir switcher entre plusieurs versions ! mais pas avoir
   deux voire trois versions qui s'empilent ») : des pastilles sous la phrase, a droite comme les
   gestes ; celle qui est montree est pleine. Une pastille de sens porte le mot hebreu et les
   quelques mots qui disent lequel. 40 px de haut : ce qu'un doigt peut toucher (verify-tap). */
/* UNE SEULE PASTILLE POUR CIRCULER ENTRE LES VERSIONS (11.10.2026, capture iPhone de l'auteur : la
   rangee de pastilles sous chaque reponse prenait trop de place). A gauche de la rangee des
   actions ; le nom se coupe en points de suspension avant de pousser les icones. */
/* COURTE (12.10.2026 : « le faire plus petit, raccourci, pas la peine de faire rentrer
   toute la phrase dedans ») : le rang et un mot (Nat., Litt., Sens), jamais la phrase. 40 px de
   haut restent la cible du doigt (verify-tap) ; la pastille dessinee fait 30 px, par le fond
   d'un ::before, pour que la rangee des actions reste basse. */
.ut-cycle {
  position: relative; display: inline-flex; align-items: center; gap: var(--k-sp-4);
  min-height: 40px; min-width: 0; margin-right: auto; padding: 0 var(--k-sp-8) 0 var(--k-sp-12);
  font: inherit; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 500; color: var(--accent-text);
  background: transparent; border: 0; border-radius: 999px;
  cursor: pointer; touch-action: manipulation;
}
.ut-cycle::before {
  content: ''; position: absolute; inset: 5px 0; z-index: -1;
  border: 1px solid var(--border); border-radius: 999px; transition: background-color .15s ease;
}
.ut-cycle:hover::before { background: var(--accent-dim); border-color: transparent; }
.ut-cycle:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.ut-cycle-n { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ut-cycle-l { white-space: nowrap; }
.ut-cycle .ut-gen { font-size: .9em; cursor: inherit; }
.ut-cycle .ut-i-chev { width: 12px; height: 12px; }
.ut-ver-note { margin: var(--k-sp-4) 0 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.4; color: var(--faint); text-align: right; }
.ut-a.is-forming .ut-a-he, .ut-a.is-forming .ut-a-m, .ut-a.is-forming .ut-a-tr { opacity: .4; transition: opacity .2s ease; }

/* Les gestes d'une reponse : discrets, sous l'hebreu, a droite. */
.ut-a-acts { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: var(--k-sp-4); direction: ltr; }
.ut-ic {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--faint);
  background: none; border: 0; border-radius: var(--k-r-12);
  cursor: pointer; touch-action: manipulation;
  transition: background-color .15s ease, color .15s ease;
}
.ut-ic:hover { color: var(--text); background: rgba(17, 24, 39, 0.05); }
.ut-ic:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ut-ic.is-on, .ut-ic.is-done { color: var(--accent); }
.ut-i {
  display: block; width: 19px; height: 19px;
  background-color: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat;
  mask: var(--m) center / contain no-repeat;
}
.ut-i-listen { --m: var(--spk); }
.ut-i-copy { --m: var(--cpy); }
.ut-i-save { --m: var(--sav); }
.ut-ic.is-on .ut-i-save { --m: var(--sav-on); }
.ut-ic.is-done .ut-i-copy, .ut-act-btn.is-done .ut-i-copy { --m: var(--chk); }
.ut-i-edit { --m: var(--edt); }
.ut-i-retry { --m: var(--rty); }
.ut-i-chev { --m: var(--chv); width: 14px; height: 14px; }

/* La forme de la phrase : une pastille qui ouvre les formes de son temps. */
.ut-form-btn {
  display: inline-flex; align-items: center; gap: var(--k-sp-4);
  min-height: 40px; margin-left: var(--k-sp-8); padding: 0 var(--k-sp-12) 0 var(--k-sp-16);
  font: inherit; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--accent-text);
  background: transparent;
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .15s ease;
}
.ut-form-btn:hover, .ut-form-btn[aria-expanded="true"] { background: var(--accent-dim); border-color: transparent; }
.ut-form-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ut-pop {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 7;
  display: flex; flex-direction: column;
  min-width: 200px; max-height: min(52vh, 440px); overflow-y: auto;
  padding: var(--k-sp-8);
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--k-r-16);
  box-shadow: var(--k-ombre-e3);
  animation: ut-pop-in .16s ease-out;
}
@keyframes ut-pop-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ut-pop button {
  display: flex; align-items: center; gap: var(--k-sp-12);
  min-height: 40px; padding: 0 var(--k-sp-12);
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); text-align: left;
  color: var(--text); background: none;
  border: 0; border-radius: var(--k-r-12); cursor: pointer;
}
.ut-pop button:hover, .ut-pop button:focus-visible { background: rgba(17, 24, 39, 0.05); outline: none; }
.ut-pop button[aria-checked="true"] { background: var(--accent-dim); color: var(--accent-text); font-weight: 600; }
.ut-pop-he { min-width: 2.6em; font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(19px * var(--text-scale, 1)); text-align: right; }

/* Trois points qui respirent : la traduction arrive. */
.ut-dots { display: inline-flex; align-self: flex-end; gap: var(--k-sp-8); padding: var(--k-sp-12) var(--k-sp-4); }
.ut-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); opacity: .3; animation: ut-dot 1.2s infinite ease-in-out; }
.ut-dots i:nth-child(2) { animation-delay: .15s; }
.ut-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes ut-dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: .9; transform: translateY(-3px); } }
.ut-spin { width: 11px; height: 11px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ut-spin .8s linear infinite; }
@keyframes ut-spin { to { transform: rotate(360deg); } }

/* --- LA FLECHE VERS LE BAS (08.11.2026 : « une fleche pour descendre en bas de la conv du
   traducteur comme sur claude »). Ronde, centree au-dessus du champ, visible seulement quand le
   fil est remonte. Le dock est colle au bas et suit le clavier : la fleche le suit, et la zone
   sure du bas est deja dans la marge du dock. Cible de 44 px. Clair par defaut, sombre si
   l'appareil le demande. */
.ut-down {
  /* 08.11.2026 : « plus petite et transparente, liquide glass ». 32 px a l'oeil, cible
     tactile gardee a 44 px par ::before. Verre : fond translucide, flou et saturation de ce qui
     passe dessous, liseré clair et reflet interne en haut. */
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translateX(-50%);
  display: grid; place-items: center; width: 32px; height: 32px; padding: 0;
  color: rgba(20, 24, 31, .78);
  background: rgba(255, 255, 255, .38);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .55); border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 4px 14px rgba(15, 23, 42, .12);
  cursor: pointer; touch-action: manipulation;
}
.ut-down::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; }
.ut-down span {
  display: block; width: 15px; height: 15px; background-color: currentColor; transform: rotate(180deg);
  -webkit-mask: var(--snd) center / contain no-repeat; mask: var(--snd) center / contain no-repeat;
}
.ut-down:active { transform: translateX(-50%) scale(.92); }
.ut-down:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  .ut-down {
    color: rgba(241, 245, 249, .85); background: rgba(40, 46, 56, .42);
    border-color: rgba(255, 255, 255, .14);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 4px 14px rgba(0, 0, 0, .35);
  }
}

/* --- LE DOCK : la rangee de preferences, puis le champ --------------------------------------- */
body.translate .ut-dock {
  position: sticky; z-index: 5;
  bottom: calc(12px + env(safe-area-inset-bottom) + var(--kb, 0px));
  margin-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: var(--k-sp-8);
  direction: ltr;
}
/* Sous le dock, le fond de la page et rien d'autre : une bande fixe couvre du bas de l'ecran
   jusqu'au dock, clavier compris (iOS peint la page sous un clavier translucide). */
body.translate::after {
  content: ''; position: fixed; left: 0; right: 0; bottom: 0; z-index: 4;
  height: calc(12px + env(safe-area-inset-bottom) + var(--kb, 0px));
  background: var(--bg);
}
/* LE + DU CHAMP ET LA FEUILLE DES OPTIONS (06.10.2026, captures de Claude a l'appui :
   « toutes les options qui sont au dessus de la zone de texte on va les mettre toutes sous un
   bouton plus en bas a gauche comme ici dans Claude »). Le + se tient en bas a gauche du champ,
   la fleche en bas a droite. A cote du +, ce qui est allume parmi les preferences des reponses,
   comme le modele choisi chez Claude. La feuille monte du bas, sans voile : une ligne par
   option, son nom, ce qu'elle fait, son interrupteur. */
.ut-acts-l { display: flex; align-items: center; gap: var(--k-sp-8); min-width: 0; margin-right: auto; }
.ut-plus {
  flex: 0 0 auto; display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  color: var(--dim); background: var(--card);
  border: 1px solid var(--border); border-radius: 50%;
  cursor: pointer; touch-action: manipulation;
  transition: color .15s ease, border-color .15s ease;
}
.ut-plus span {
  display: block; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: var(--pls) center / contain no-repeat; mask: var(--pls) center / contain no-repeat;
}
.ut-plus:hover, .ut-plus[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }
.ut-plus.is-on { color: var(--accent); }
.ut-plus:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* 40 px de haut : le plancher de cible du site (display.minTapPx), comme le + a cote. */
.ut-opts-sum {
  min-width: 0; height: 40px; padding: 0 var(--k-sp-16);
  font: inherit; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  color: var(--accent-text); background: var(--accent-dim);
  border: 0; border-radius: 999px; cursor: pointer;
}
.ut-opts-sum[hidden] { display: none; }
.ut-sum-i + .ut-sum-i::before { content: ' · '; }

/* z-index 59 : sous la barre laterale (.menu, 60), qui vient AVANT dans la page et perdrait a
   egalite. La barre et ses Reglages passent toujours au-dessus de la feuille. */
.ut-opts {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 59;
  width: 100%; max-width: 680px; margin: 0 auto; max-height: 82svh;
  display: flex; flex-direction: column; box-sizing: border-box;
  padding-bottom: calc(10px + env(safe-area-inset-bottom));
  background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-bottom: 0; border-radius: var(--k-r-16) var(--k-r-16) 0 0;
  box-shadow: var(--k-ombre-e3);
  transform: translateY(100%); transition: transform .22s ease-out;
  direction: ltr;
}
.ut-opts.is-open { transform: none; }
.ut-opts[hidden] { display: none; }
.ut-opts-grip { flex: 0 0 auto; width: 40px; height: 5px; margin: var(--k-sp-8) auto 0; border-radius: 3px; background: var(--border); }
.ut-opts-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--k-sp-12); padding: var(--k-sp-8) var(--k-sp-12) var(--k-sp-4) var(--k-sp-20); }
.ut-opts-title { margin: 0; font-size: calc(17px * var(--text-scale, 1)); font-weight: 600; }
.ut-opts-x {
  position: relative; flex: 0 0 auto; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 50%; background: var(--bg); cursor: pointer;
}
.ut-opts-x::before, .ut-opts-x::after {
  content: ''; position: absolute; left: 12px; top: 19px; width: 16px; height: 2px; border-radius: 2px; background: var(--dim);
}
.ut-opts-x::before { transform: rotate(45deg); }
.ut-opts-x::after { transform: rotate(-45deg); }
.ut-opts-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ut-opts-body { flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--k-sp-4); min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 var(--k-sp-12) var(--k-sp-8); }
.ut-opts-sec { margin: var(--k-sp-16) var(--k-sp-12) var(--k-sp-4); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); }
.ut-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--k-sp-16);
  width: 100%; min-height: 56px; padding: var(--k-sp-12) var(--k-sp-12); box-sizing: border-box;
  font: inherit; text-align: left; color: var(--text);
  background: transparent; border: 0; border-radius: var(--k-r-16);
  cursor: pointer; touch-action: manipulation;
}
button.ut-row:hover { background: var(--bg); }
.ut-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ut-row-t { display: flex; flex-direction: column; gap: var(--k-sp-4); min-width: 0; }
.ut-row-l { font-size: calc(16px * var(--text-scale, 1)); }
.ut-row-h { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.35; color: var(--dim); }
.ut-switch { position: relative; flex: 0 0 auto; width: 44px; height: 26px; border-radius: var(--k-r-12); background: var(--border); transition: background-color .15s ease; }
.ut-switch::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: var(--k-ombre-e1); transition: transform .15s ease;
}
.ut-row[aria-pressed="true"] .ut-switch { background: var(--accent); }
.ut-row[aria-pressed="true"] .ut-switch::after { transform: translateX(18px); }
.ut-row-forms { flex-direction: column; align-items: stretch; gap: var(--k-sp-12); cursor: default; }
.ut-tool-set { display: grid; grid-template-columns: 1fr 1fr; gap: var(--k-sp-8); }
.ut-chip {
  min-height: 40px; padding: 0 var(--k-sp-12);
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); white-space: nowrap;
  color: var(--dim); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px;
  cursor: pointer; touch-action: manipulation;
}
.ut-chip:hover { color: var(--text); }
.ut-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ut-chip[aria-pressed="true"] { color: var(--accent-text); background: var(--accent-dim); border-color: transparent; font-weight: 600; }
.ut-row-act { justify-content: flex-start; gap: var(--k-sp-12); color: var(--accent); }
.ut-row-act .ut-i { width: 20px; height: 20px; }
.ut-row-act:disabled { color: var(--faint); cursor: default; }
.ut-row-act:disabled:hover { background: transparent; }
@media (min-width: 1280px) { html:not(.side-collapsed) .ut-opts { left: var(--side-w, 300px); } }

body.translate .ut-box {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-16);
  box-shadow: var(--k-ombre-e2);
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.translate .ut-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim), 0 6px 24px rgba(15, 23, 32, 0.12); }
/* LE CHAMP EN DEUX ETAGES, comme celui de Claude (06.10.2026, capture de l'auteur : « on veut la
   fleche en bas a droite pour envoyer le texte ») : le texte sur toute la largeur, puis la
   rangee du bas, ou la fleche se tient a droite. Le rang est ltr (regle de .ut-field) :
   flex-end y est la droite, meme sur la page rtl. */
body.translate .ut-field { flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: var(--k-sp-4) var(--k-sp-8) var(--k-sp-8); border: 0; border-radius: var(--k-r-16); background: transparent; box-shadow: none; }
body.translate .ut-field:focus-within { box-shadow: none; }
body.translate .ut-field textarea { padding: var(--k-sp-12) var(--k-sp-12) var(--k-sp-4) var(--k-sp-12); }
.ut-field-acts { display: flex; align-items: center; justify-content: flex-end; gap: var(--k-sp-4); min-height: 40px; }
/* La fleche d'envoi : pleine et bleue quand il y a quelque chose a envoyer, grise sinon. */
.ut-send {
  flex: 0 0 auto;
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0;
  color: #fff; background: var(--accent);
  border: 0; border-radius: 50%;
  cursor: pointer; touch-action: manipulation;
  transition: background-color .15s ease, transform .1s ease;
}
.ut-send span {
  display: block; width: 20px; height: 20px; background-color: currentColor;
  -webkit-mask: var(--snd) center / contain no-repeat; mask: var(--snd) center / contain no-repeat;
}
.ut-send:hover { background: #005e9c; }
.ut-send:not(:disabled):active { transform: scale(.94); }
.ut-send:disabled { background: #d5dce4; cursor: default; }
.ut-send:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- LA FEUILLE D'UN MOT : elle monte du bas, sans voile ------------------------------------- */
.ws {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 58;
  width: 100%; max-width: 680px; margin: 0 auto;
  max-height: 62svh;
  display: flex; flex-direction: column;
  box-sizing: border-box;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--card);
  border: 1px solid var(--border); border-bottom: 0;
  border-radius: var(--k-r-16) var(--k-r-16) 0 0;
  box-shadow: var(--k-ombre-e3);
  transform: translateY(100%);
  transition: transform .24s cubic-bezier(.2, .8, .2, 1);
  direction: ltr;
}
.ws[hidden] { display: none; }
.ws.is-open { transform: none; }
/* Tant que la feuille est ouverte, le fil gagne sa hauteur en bas : tout mot peut remonter
   au-dessus d'elle (word-sheet.js pose --ws-h). */
/* Le clavier ouvert, le dock monte de sa hauteur (--kb) et couvrait d'autant le bas du fil :
   le fil gagne la meme hauteur, et la derniere reponse remonte au-dessus du dock (trouve le
   05.10.2026 par verify-ut-keyboard). La regle de la feuille vient APRES : meme specificite. */
body.translate .ut-thread { padding-bottom: calc(22px + var(--kb, 0px)); }
body.ws-open .ut-thread { padding-bottom: calc(22px + var(--kb, 0px) + var(--ws-h, 0px)); }
/* Sur un grand ecran, la conversation tient dans une colonne de lecture, comme celle de
   Claude ; la feuille d'un mot se centre sur elle quand la barre laterale est fixe. */
body.translate .container > .ut { width: 100%; max-width: 760px; margin: 0 auto; }
@media (min-width: 1280px) {
  html:not(.side-collapsed) .ws { left: var(--side-w, 300px); }
}
.ws.is-dragging { transition: none; }
.ws-grip { flex: 0 0 auto; width: 40px; height: 5px; margin: var(--k-sp-8) auto 0; border-radius: 3px; background: #d5dce4; }
.ws-head {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: var(--k-sp-12);
  direction: rtl;
  padding: var(--k-sp-4) var(--k-sp-16) var(--k-sp-12) var(--k-sp-12);
  border-bottom: 1px solid var(--border);
}
.ws-word { margin: 0; font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(30px * var(--text-scale, 1)); font-weight: 600; line-height: 1.3; color: var(--text); }
body.cursive .ws-word { font-family: 'Gveret Levin', cursive; }
.ws-x {
  position: relative; flex: 0 0 auto;
  width: 40px; height: 40px; padding: 0;
  background: none; border: 0; border-radius: 50%; cursor: pointer;
}
.ws-x::before, .ws-x::after {
  content: ''; position: absolute; left: 12px; top: 19px; width: 16px; height: 2px;
  border-radius: 2px; background: var(--dim);
}
.ws-x::before { transform: rotate(45deg); }
.ws-x::after { transform: rotate(-45deg); }
.ws-x:hover { background: rgba(17, 24, 39, 0.05); }
.ws-x:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ws-body { flex: 1 1 auto; min-height: 120px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: var(--k-sp-12) var(--k-sp-16) var(--k-sp-20); }
.ws-body .ut-dots { display: flex; justify-content: center; }
.ws-binyan-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:0 0 12px; }
.ws-binyan, .ws-racine { display:inline-flex; align-items:center; gap:5px; min-height:44px; padding:4px 14px; border-radius:22px; font:600 16px/1.4 system-ui,sans-serif; white-space:nowrap; text-decoration:none; }
.ws-racine { font-size:20px; }
.ws-racine:focus-visible { outline:2px solid currentColor; outline-offset:3px; }
.ws-none { margin: var(--k-sp-8) 0; color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
/* L'analyse de la forme touchee : le mot, ce qu'il est, de quel verbe (05.11.2026). */
.ws-analysis { margin: 0 0 var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.5; color: var(--ink, inherit); }
.ws-analysis .he { font-size: 1.15em; }
.ws-an-how, .ws-an-bn { color: var(--dim); }
.ws-an-approx { margin: 0 0 var(--k-sp-12); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
/* Les formes n'ont pas pu se charger : le dire, et offrir de reessayer (06.10.2026). */
.ws-failed { margin: var(--k-sp-8) 0 var(--k-sp-12); color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.45; }
.ws-save-status:not(:empty) { padding: var(--k-sp-4) var(--k-sp-16); }
.ws-save, .ws-retry {
  min-height: 40px; padding: 0 var(--k-sp-16);
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600;
  color: var(--accent-text); background: var(--accent-dim);
  border: 0; border-radius: 999px; cursor: pointer; touch-action: manipulation;
}
.ws-retry:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ut-turn.is-new, .ut-turn.is-sent .ut-q-row, .ut-turn.is-sent .ut-a, .ut-pop, .ut-dots i, .ut-spin { animation: none; }
  .ws, .ut-opts, .ut-send, .ut-w, .ut-q, .ut-box, .ut-turn.is-draft .ut-a { transition: none; }
}

/* La date hebraique du jour, en haut A DROITE (29.08.2026, « comme dans ulpanhebrew »).
   Marge auto PHYSIQUE : la page est dir=rtl, ou margin-inline-start pousserait a gauche —
   margin-left: auto en flex absorbe l'espace a gauche quel que soit le sens d'ecriture.
   Remplie a l'execution par hero-date.js ; cachee sans JS plutot qu'une boite vide. */
/* La date ne passe jamais sous les deux carres fixes de gauche (hamburger, ת) : elle s'arrete
   108 px avant le bord gauche de la barre (les carres finissent a 110 px de l'ecran, la barre
   commence a 10 px, plus 8 px d'air), et sa lecture passe a la ligne. Mesure du 06.10.2026,
   avec la taille du texte reglable : a 150 %, la lecture glissait sous le ת ; a 320 px elle y
   passait deja a 100 %. */
.hero-date { margin-left: auto; text-align: right; max-width: calc(100% - 222px); }   /* 14 + 4 x 52 : la date ne passe pas sous les quatre boutons */
/* 23/11/2026, rapport sur un iPhone : « la date est masque par le bandeau haut sur la home page ». Les boutons
   flottants sont a safe-area + 12 px ; la date restait a 4 px, sous la barre d'etat. Elle descend de l'encoche, comme eux. */
.hero-date { margin-top: env(safe-area-inset-top); position: relative; z-index: 51; }   /* au-dessus de la bande pleine du haut (body::before, z-index 50), comme les boutons */
.hero-date-he {
  display: block;
  font-family: 'Frank Ruhl Libre', 'David', serif;
  font-size: calc(19px * var(--text-scale, 1));
  font-weight: 600;
  line-height: 1.25;
  color: var(--accent);
}
/* La date suit la bascule cursive comme tout hebreu du site : UNE face par page, c'est
   l'invariant que verify-typography mesure. Elle n'a pas de niqqud, la police cursive (Gveret Levin) la porte. */
body.cursive .hero-date-he { font-family: 'Gveret Levin', cursive; font-size: calc(22px * var(--text-scale, 1)); }
.hero-date-tr {
  display: block;
  direction: ltr;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 1px;
}

/* LA CARTE DE REPONSE EST UNE LIGNE ET DEMIE, PAS QUATRE.
   Le moteur empile hebreu, lecture, sens, nature — quatre lignes hautes dont chacune tient en
   deux mots, dans une carte dont 60 % de la largeur restait blanche : 320px de haut mesures a
   390px de large, sur un ecran ou la carte suivante porte le paradigme entier. Le mot et sa
   lecture partagent une ligne, le sens et la nature la suivante ; la carte tombe a la moitie.
   Regle propre a l'accueil : la page Traduire a la place, et c'est la qu'on lit longuement. */
.home .ut-main .ut-text { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--k-sp-4) var(--k-sp-16); }
.home .ut-main .ut-he { flex: 0 1 auto; }
.home .ut-main .ut-tr { flex: 0 1 auto; margin: 0; }
.home .ut-main .ut-meaning { flex: 1 0 100%; margin-top: var(--k-sp-4); }
.home .ut-main .ut-gnp { flex: 0 0 auto; margin-top: var(--k-sp-4); }
.home .ut-main .ut-meaning { display: flex; align-items: baseline; gap: var(--k-sp-12); flex-wrap: wrap; }

/* Au repos : ce qu'il faut faire ensuite. Un champ vide au-dessus de rien est un cul-de-sac —
   l'etat vide doit dire par ou commencer, sinon le premier ecran ne dit plus rien du tout. */
.hero-idle { margin-top: var(--k-sp-20); }
.hero-idle .home-stats { margin-bottom: var(--k-sp-20); }
.hero-idle .latest { margin: 0; }
/* Les compteurs sont l'etat de l'app : ce qui est su, ce qui est du, la serie. Ecrits a la
   taille du texte courant ils se lisaient comme une phrase de plus ; le nombre porte donc la
   taille, et le mot passe dessous en petit. C'est le seul endroit du premier ecran ou un
   chiffre change tout seul, et c'est ce qui fait revenir. */
.hero-idle .hs { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.hero-idle .hs b { font-size: calc(21px * var(--text-scale, 1)); line-height: 1.1; color: var(--accent); font-weight: 600; }
.hero-idle .home-stats { gap: var(--k-sp-24); }
/* Rien en memoire encore : une seule phrase, a GAUCHE. Elle est deja forcee ltr plus bas,
   mais .home-stats est un flex sous dir=rtl : l'enfant partait au bord droit du rang — une
   phrase latine collee a droite se lit comme un accident. La marge auto physique le pousse
   a gauche quel que soit le sens d'ecriture. */
.hero-idle .hs-empty { display: block; text-align: left; margin-right: auto; color: var(--dim); }
/* Le resume de la derniere lecon est un rappel, pas la lecon : deux lignes sur l'accueil, le
   texte entier est sur sa page. Il pesait 229px, le plus gros bloc du premier ecran. */
.hero-idle .latest-sum {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* La reponse peut depasser l'ecran (un verbe a quatre temps fait ~520px) : la boite grandit
   alors, elle ne se met jamais a scroller dans elle-meme. Un cadre qui defile a l'interieur
   d'une page qui defile est deux gestes pour un doigt, et c'est le prix qu'on ne paie pas. */
.hero-idle { display: flex; flex-direction: column; flex: 1 1 auto; }

/* La derniere lecon est POUSSEE au bas de la boite, et le vide se retrouve donc sous le
   champ — exactement la ou la reponse va s'afficher. Mesure du 30.08.2026 a 390px : la plus
   haute reponse du corpus fait 567px, la reserve du heros 726px ; ce vide n'est pas du
   gaspillage, c'est la place que la reponse occupera, et la garder vide est ce qui empeche
   la page de sauter. En bas, la carte touche en plus la liste des lecons, dont elle parle. */
.hero-idle .latest { margin-top: auto; }

@media (max-width: 420px) {
  .hero-brand h1 { font-size: calc(19px * var(--text-scale, 1)); }
}
/* Sur un grand ecran, un ecran entier de haut pour un champ et trois blocs est une piece vide.
   La regle ne vaut que la ou l'ecran est petit et ou le premier ecran est TOUT ce qu'on voit. */
@media (min-width: 900px) {
  .hero { min-height: 0; }
}

.home-head { border-bottom: none; margin-bottom: var(--k-sp-16); padding-bottom: 0; }

/* Les compteurs et la phrase d'etat vide sont latins : sous le dir=rtl de la page ils
   partaient du bord DROIT, alors que tout ce qui les entoure commence a gauche. */
.home-stats {
  display: flex;
  direction: ltr;
  flex-wrap: wrap;
  gap: var(--k-sp-24);
  align-items: baseline;
  padding: var(--k-sp-8) 0 var(--k-sp-20);
  color: var(--faint);
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
}
.hs b { color: var(--text); font-size: calc(20px * var(--text-scale, 1)); font-weight: 600; margin-inline-end: var(--k-sp-4); font-variant-numeric: tabular-nums; }
.hs-empty { color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }

.cta {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-size: calc(16px * var(--text-scale, 1));
  font-weight: 500;
  padding: var(--k-sp-16);
  border-radius: var(--k-r-12);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.cta-main { color: #fff; background: var(--accent); }
/* The day page's own link into its practice unit. `.cta` is `flex: 1`, meant for the pair
 * of buttons on the home page; standing alone it needs to be a block. */
.cta-day { display: block; flex: none; margin: 0 0 var(--k-sp-20); color: #fff;
           background: var(--accent); }
.cta-day:hover { background: #005e9c; }
.cta-main:hover { background: #005e9c; transform: translateY(-1px); }
.cta-alt { color: var(--dim); background: var(--card); border: 1px solid var(--border); }
.cta-alt:hover { border-color: var(--accent); color: var(--accent); }

.latest {
  display: flex;
  flex-direction: column;
  gap: var(--k-sp-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-16);
  padding: var(--k-sp-20);
  text-decoration: none;
  color: var(--text);
  margin-bottom: 36px;
  box-shadow: var(--k-ombre-e1);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.latest:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--k-ombre-e2); }
/* La ligne est du latin compose (« Latest · Day 26 · Wednesday... ») : le contexte rtl de la
   page inversait l'ordre de ses segments — elle affichait « 26 DAY · LATEST ». */
.latest-eyebrow { direction: ltr; text-align: left; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); text-transform: uppercase; letter-spacing: 1.4px; color: var(--accent); }
.latest-title { font-size: calc(21px * var(--text-scale, 1)); font-weight: 600; line-height: 1.3; }
/* Le titre suit le sens de SON texte, comme la ligne au-dessus : sous le dir=rtl de la page,
   un titre francais se posait au bord droit pendant que sa ligne-titre restait a gauche
   (capture du 05.10.2026). plaintext + start : un titre latin a gauche, un titre hebreu a droite. */
.latest-title { unicode-bidi: plaintext; text-align: start; }
.latest-sum { color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin-top: var(--k-sp-4); }

/* The irregulars page: several small tables rather than one long one, because the
   families are the lesson — a masculine noun with a ־וֹת plural is a different thing
   to remember than a dual. */
.irr-family { margin-bottom: 36px; }
.coll-family { margin-bottom: 36px; }
.coll-family .section-note { margin-bottom: var(--k-sp-12); }
.irr-family .section-note { margin-bottom: var(--k-sp-12); }
.gender-tag { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--accent); border: 1px solid var(--accent-dim);
  border-radius: 5px; padding: 1px var(--k-sp-4); margin-inline-end: var(--k-sp-8); }

/* Rangee entierement latine : sous dir=rtl elle se posait a l'envers — le titre « All
   lessons » a l'extreme DROITE (l=294 sur 390px, mesure du 30.08.2026) et le champ a gauche,
   donc l'etiquette se lisait apres la chose qu'elle nomme. `direction: ltr` remet l'ordre des
   BOITES ; verify-bidi ne pouvait pas le voir, il ne juge que les runs de texte. */
.lessons-head { display: flex; direction: ltr; align-items: center; gap: var(--k-sp-16); margin-bottom: var(--k-sp-12); flex-wrap: wrap; }
.lessons-title { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--faint); }
.search-days { flex: 1; min-width: 170px; margin-bottom: 0; font-size: max(var(--k-fs-corps), calc(var(--k-fs-corps) * var(--text-scale, 1))); padding: var(--k-sp-8) var(--k-sp-12); }
/* Sur telephone le champ passe SOUS le titre, sur toute la largeur : a cote, il tenait en
   240 px et son invite etait coupee (« un thèn », capture du 05.10.2026). 16px minimum, sinon
   iOS zoome au focus. */
@media (max-width: 520px) { .search-days { flex: 1 1 100%; font-size: max(16px, calc(16px * var(--text-scale, 1))); } }

.week { border-top: 1px solid var(--border); }
.week:last-of-type { border-bottom: 1px solid var(--border); }
.week-sum {
  display: flex;
  align-items: center;
  gap: var(--k-sp-12);
  padding: var(--k-sp-12) var(--k-sp-8);
  border-radius: var(--k-r-8);
  cursor: pointer;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  font-weight: 500;
  list-style: none;
  transition: background 0.15s, color 0.15s;
}
.week-sum::-webkit-details-marker { display: none; }
/* Une ligne cliquable doit LE DIRE avant le clic : la rangee des semaines n'avait ni survol
   ni anneau de focus, donc rien ne distinguait un titre depliable d'un titre. Le survol
   teinte la ligne et passe le chevron a l'accent — la meme grammaire que .lesson juste en
   dessous, pour que « ceci s'ouvre » se lise partout pareil. */
.week-sum:hover { background: var(--card-hover); }
.week-sum:hover::before { border-color: var(--accent); }
.week-sum:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--k-r-8); }
.week-sum::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-inline-end: 2px solid var(--faint);
  border-bottom: 2px solid var(--faint);
  transform: rotate(-45deg);
  transition: transform 0.2s, border-color 0.15s;
}
.week[open] .week-sum::before { transform: rotate(45deg); }
/* La semaine ouverte porte son etat au-dela du chevron : son titre passe en pleine encre,
   les fermees restent en gris. Le rang ouvert se retrouve sans relire tous les chevrons. */
.week[open] > .week-sum { color: var(--text); }
.week:not([open]) > .week-sum { color: var(--dim); }
.week-sum > span:first-of-type { flex: 1; }
.week-k { color: var(--faint); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); font-weight: 400; }

.week-days { display: flex; flex-direction: column; padding-bottom: var(--k-sp-8); }
/* La ligne de lecon est entierement latine : « jour, titre, date » se lisait a l'envers,
   le numero du jour rejete au bord droit. */
.lesson {
  display: grid;
  direction: ltr;
  grid-template-columns: 56px 1fr auto;
  gap: var(--k-sp-12);
  align-items: baseline;
  padding: var(--k-sp-12) var(--k-sp-8);
  border-radius: var(--k-r-8);
  text-decoration: none;
  color: var(--text);
}
.lesson:hover { background: var(--card-hover); }
.lesson-n { color: var(--accent); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.lesson-t { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.35; }
.lesson-d { color: var(--faint); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); white-space: nowrap; }

@media (max-width: 460px) {
  .lesson { grid-template-columns: 52px 1fr; row-gap: var(--k-sp-4); }
  .lesson-d { grid-column: 2; }

  /* Sur un phone les CTA restants (cta-day, et le S'entrainer de la barre du haut qui garde
     sa propre taille par specificite) se compactent un peu. La rangee .home-cta n'existe
     plus depuis le 30.08.2026. */
  .cta { flex: 1 1 calc(50% - 5px); padding: var(--k-sp-16) var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
}


/* --------------------------------------------------------- search */

.search {
  width: 100%;
  font: inherit;
  font-size: max(16px, calc(16px * var(--text-scale, 1)));
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--k-sp-12) var(--k-sp-16);
  margin-bottom: var(--k-sp-20);
}
.search:focus { outline: none; border-color: var(--accent); }
.empty { color: var(--faint); padding: var(--k-sp-20) var(--k-sp-4); }

/* --------------------------------------------------------- practice (SRS) */

/* WRAPS AT EVERY WIDTH. The wrap used to live in a `max-width: 520px` query, which is a
   guess about how many tabs there will be dressed up as a breakpoint: the reference pane
   strip went from seven tabs to nine on 26.08.2026 (Pronouns, Numbers) and the page then
   scrolled sideways at 568px and 641px — 668px of content in 568px — while every phone width
   stayed clean, because only the phone had the wrap. A tab strip has no business setting the
   page's width at any size, so the rule is unconditional and the query below keeps only the
   spacing it tunes. */
/* Rangee de pastilles ENTIEREMENT LATINE : sous le dir=rtl de la page elle se posait
   a l'envers et son retour a la ligne renvoyait le dernier element a droite, en
   laissant un trou a gauche. Meme correction que .pagetabs (30.08.2026) : c'est
   l'ordre des BOITES qui se decide ici, et verify-bidi ne le voit pas — il ne juge
   que les runs de texte. */
.tabs { display: flex; direction: ltr; flex-wrap: wrap; gap: var(--k-sp-20); margin-bottom: 28px; border-bottom: 1px solid var(--border); }
.tab {
  font: inherit;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  color: var(--faint);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: var(--k-sp-8) var(--k-sp-4);
  cursor: pointer;
}
.tab:hover { color: var(--dim); }
.tab-on { color: var(--text); border-bottom-color: var(--accent); }
.srs-poal .he { font-size: 1.2em; }
.srs-front .he { font-size: 2.5em; line-height: 1.6; }

/* --------------------------------------------------------- install (PWA) */

.install {
  display: inline-flex;
  align-items: center;
  gap: var(--k-sp-8);
  font: inherit;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: var(--k-sp-12) var(--k-sp-20);
  margin: 0 0 var(--k-sp-32);
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.install::before {
  content: '';
  width: 15px;
  height: 15px;
  /* down-arrow-into-tray glyph, drawn so it needs no extra asset */
  background: currentColor;
  -webkit-mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 3h2v9.2l3.1-3.1 1.4 1.4L12 16 6.5 10.5 7.9 9.1 11 12.2V3zM5 19h14v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-6h2v5z'/%3E%3C/svg%3E");
  mask: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M11 3h2v9.2l3.1-3.1 1.4 1.4L12 16 6.5 10.5 7.9 9.1 11 12.2V3zM5 19h14v-5h2v6a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1v-6h2v5z'/%3E%3C/svg%3E");
}
.install:hover { background: #005e9c; transform: translateY(-1px); }
.install:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.install-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 20, 20, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--k-sp-24);
}
.install-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
  padding: var(--k-sp-24) var(--k-sp-24) var(--k-sp-20);
  max-width: 360px;
  width: 100%;
  box-shadow: var(--k-ombre-e3);
}
.install-title { font-size: calc(18px * var(--text-scale, 1)); font-weight: 600; margin-bottom: var(--k-sp-16); line-height: 1.3; }
.install-steps { list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: var(--k-sp-12); margin-bottom: var(--k-sp-20); }
.install-steps li {
  display: flex;
  align-items: center;
  gap: var(--k-sp-12);
  counter-increment: step;
  color: var(--dim);
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  line-height: 1.4;
}
.install-steps li::before {
  content: counter(step);
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: #003356;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ios-share { color: var(--accent); flex: 0 0 auto; vertical-align: middle; }
.install-generic { color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.5; margin-bottom: var(--k-sp-20); }
.install-close {
  font: inherit;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  font-weight: 500;
  color: var(--dim);
  background: var(--card-hover);
  border: 1px solid var(--border);
  border-radius: var(--k-r-8);
  padding: var(--k-sp-12) var(--k-sp-16);
  width: 100%;
  cursor: pointer;
}
.install-close:hover { border-color: var(--accent); color: var(--text); }

@media (prefers-reduced-motion: reduce) {
  .install { transition: none; }
}

/* --------------------------------------------------------- responsive */

@media (max-width: 640px) {
  body { padding: var(--k-sp-64) var(--k-sp-16) var(--k-sp-48); font-size: calc(16px * var(--text-scale, 1)); }
  h1 { font-size: calc(25px * var(--text-scale, 1)); }
  .row { grid-template-columns: 1fr; gap: var(--k-sp-4); padding: var(--k-sp-16) var(--k-sp-4); }
  .line { grid-template-columns: 44px 1fr; gap: var(--k-sp-12); }
  .tbl { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
  .tbl td { padding: var(--k-sp-8) var(--k-sp-12) var(--k-sp-8) 0; }
  .para-grid { grid-template-columns: repeat(auto-fill, minmax(calc(128px * var(--text-scale, 1)), 1fr)); }
  /* Drop the po'al column, show the copy under the meaning instead. */
  .tbl-poal th:nth-child(2), .tbl-poal td:nth-child(2) { display: none; }
  .tbl-poal th:first-child, .tbl-poal td:first-child { width: 32%; }
  .poal-inline { display: block; margin-top: var(--k-sp-8); }
  .poal-inline .poal { padding: var(--k-sp-4) var(--k-sp-8); }
}

/* Below this the four construct columns no longer fit at full type size. */
@media (max-width: 430px) {
  body { padding: var(--k-sp-64) var(--k-sp-12) 44px; }
  .tbl { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }
  .tbl th { padding-inline-end: var(--k-sp-8); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); letter-spacing: 0.6px; }
  .tbl td { padding: var(--k-sp-8) var(--k-sp-8) var(--k-sp-8) 0; }
  /* ABSOLUTE, not em, and this is the point of the rule. The Hebrew used to be shrunk twice
     over on a phone: .tbl drops to 13px to fit the labels and the readings, and then the
     word — the only thing on the row anyone is trying to learn — inherited that reduction
     and multiplied it by 1.2, landing at 15.6px with niqqud on it. Cursive escaped, because
     body.cursive .he sets 1.7em and came out at 22.1px, so switching to classic dropped the
     type by 42% and the vowel points with it. Chrome, ruler on the screenshots: the dots
     under a 15.6px Frank Ruhl are about one device pixel. The surrounding furniture may
     shrink to fit the column; the word may not. 20px matches the compact number tables, so
     printed Hebrew is now one size across the app. */
  .tbl .he { font-size: calc(20px * var(--text-scale, 1)); }
  .cell-tr { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
  .tbl-forms th:first-child, .tbl-forms td:first-child { width: 24%; }
}

@media (max-width: 340px) {
  body { padding: var(--k-sp-64) var(--k-sp-8) 44px; }
  .tbl { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
  .tbl td { padding-inline-end: var(--k-sp-4); }
  .tbl th { padding-inline-end: var(--k-sp-4); }
  .tbl .he { font-size: calc(18px * var(--text-scale, 1)); }
  /* Under ~340px only a handful of PHRASES are too wide, and they break at their spaces
     on their own. Nothing here may break inside a word: `overflow-wrap: anywhere` used to,
     and a word chopped across two lines is unreadable in a language you are learning. */
  .tbl .he, .tbl .cell-tr, .tbl th { overflow-wrap: normal; word-break: keep-all; }
  .ctl { padding: var(--k-sp-4) var(--k-sp-8); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
}

@media print {
  .controls, .back, .pager { display: none; }
  body { background: #fff; color: #111; padding: 0; }
  .row, .line, .tbl tr { break-inside: avoid; }
}

/* Revision page: the countdown sits in the eyebrow and turns warm when the test
   is within two days. Everything else on the page reuses the day-page blocks. */
.countdown { font-variant-numeric: tabular-nums; }
.countdown.is-soon { color: var(--accent); font-weight: 600; }

/* Home banner for a live test. Reads as urgent without shouting: the accent border
   and the countdown carry the signal, the rest matches the other home cards. */
.test-cta {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--accent); border-inline-start-width: 4px; border-radius: var(--k-r-12);
  padding: var(--k-sp-16) var(--k-sp-16); margin: 0 0 var(--k-sp-16); background: var(--card, #fff);
  transition: transform .12s ease, box-shadow .12s ease;
}
.test-cta:hover { transform: translateY(-1px); box-shadow: var(--k-ombre-e2); }
.test-cta-eyebrow { display: block; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--accent); font-weight: 600;
  letter-spacing: .02em; text-transform: uppercase; }
.test-cta-title { display: block; font-size: calc(18px * var(--text-scale, 1)); font-weight: 600; margin-top: var(--k-sp-4); }
.test-cta-sub { display: block; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); margin-top: var(--k-sp-4); }

/* Test trainer. Deliberately plain: the question is the interface. */
.drill { text-align: center; }
.drill-bar { display: flex; justify-content: flex-end; margin-bottom: var(--k-sp-12); }
.drill-score { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); font-variant-numeric: tabular-nums; }
.drill-prompt { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); margin-bottom: var(--k-sp-12); }
/* Le binyan du verbe, sur toute question qui porte un verbe (05.10.2026 : « toujours
   afficher le binyan »). Une pastille, pas une phrase : le schema se lit d'un coup d'oeil.
   Couleur par la couleur et non par l'opacite (regle 12) : accent-text sur accent-dim. */
.drill-binyan {
  display: inline-block; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.4; padding: var(--k-sp-4) var(--k-sp-12); margin: 0 0 var(--k-sp-8);
  border-radius: 999px; background: var(--accent-dim); color: var(--accent-text);
}
.drill-subject { font-size: calc(34px * var(--text-scale, 1)); line-height: 1.6; }
.drill-sub { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); margin-top: var(--k-sp-4); }
.drill-opts { display: grid; gap: var(--k-sp-8); margin: var(--k-sp-20) 0 var(--k-sp-12); }
@media (min-width: 520px) { .drill-opts { grid-template-columns: 1fr 1fr; } }
.drill-opt {
  font: inherit; font-size: calc(18px * var(--text-scale, 1)); padding: var(--k-sp-12) var(--k-sp-16); border-radius: var(--k-r-12);
  border: 1px solid var(--line, #ddd); background: var(--card, #fff); color: inherit;
  cursor: pointer; touch-action: manipulation; transition: border-color .12s ease, background .12s ease;
}
.drill-opt:hover:not(:disabled) { border-color: var(--accent); }
.drill-opt:disabled { cursor: default; }
.drill-opt.is-right { border-color: #2a7; background: rgba(34,170,119,.10); }
.drill-opt.is-wrong { border-color: #c33; background: rgba(204,51,51,.08); }
.drill-final { font-size: calc(40px * var(--text-scale, 1)); font-weight: 600; margin: var(--k-sp-12) 0 var(--k-sp-4); font-variant-numeric: tabular-nums; }
.drill-go { display: inline-block; }

/* The verification step after an answer: the reading, and the word behind it. */
.drill-reveal {
  margin: var(--k-sp-16) auto var(--k-sp-4); padding: var(--k-sp-12) var(--k-sp-16); max-width: 34rem;
  border-radius: var(--k-r-12); background: rgba(0,113,185,.05);
  border: 1px solid rgba(0,113,185,.18);
}
.reveal-main { font-size: calc(24px * var(--text-scale, 1)); line-height: 1.7; }
.reveal-tr { display: block; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--accent); margin-top: var(--k-sp-4); }
.reveal-en { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); margin-top: var(--k-sp-8); }
/* The po'al's own meaning, beside its reading, so "préparer" stands under לְהָכִין and not
   under מֵכִין, whose line above reads "il prépare". */
/* Le binyan et la racine quand la carte montre deja l'infinitif : le bloc po'al serait un
   doublon, la ligne de schema ne l'est pas. Meme place, meme discretion, sans le cadre. */
/* Le tableau des temps (niveau 2 de la carte reponse) : voir le bloc « carte reponse a deux niveaux » en fin de fichier. */
/* A conversation is a column, not a page width. Left full width on a laptop the Hebrew
   sat hard right and its translation hard left, a thousand pixels apart, and the three
   replies tiled into a staggered mess because each one is a whole sentence. */
.scene-script, .scenes .drill-opts, .scenes .drill-reveal { max-width: 36rem; margin-inline: auto; }
.scenes .drill-opts { display: grid; grid-template-columns: 1fr; gap: var(--k-sp-8); }
.scenes .drill-opt { text-align: center; }
/* The gloss reads left-to-right but hangs on the same side as the Hebrew above it, so the
   eye does not have to cross the column to pair a line with its meaning. */
.scene-line .line-gl { align-items: flex-end; text-align: right; }

/* Producing the answer: the word is BUILT from Hebrew letters. No keyboard needed on
   either device, and what is produced is Hebrew rather than a romanisation. */
.drill-type { display: flex; flex-direction: column; align-items: center; gap: var(--k-sp-12); margin: var(--k-sp-20) 0 var(--k-sp-12); }
.tile-hint { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); }
.tile-slots {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--k-sp-8);
  font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(30px * var(--text-scale, 1)); line-height: 1.1;
}
.tile-slots .slot {
  min-width: 30px; height: 42px; display: flex; align-items: center; justify-content: center;
  border-bottom: 2px solid var(--line, #ddd);
}
.tile-slots.is-right .slot { border-bottom-color: #2a7; color: #2a7; }
.tile-slots.is-wrong .slot { border-bottom-color: #c33; color: #c33; }
.tile-board { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--k-sp-8); max-width: 24rem; }
.tile {
  font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(26px * var(--text-scale, 1)); line-height: 1;
  min-width: 46px; padding: var(--k-sp-8) var(--k-sp-8); border-radius: var(--k-r-12); cursor: pointer;
  border: 1px solid var(--line, #ddd); background: var(--card, #fff); color: inherit;
}
.tile:hover:not(:disabled) { border-color: var(--accent); }
/* A spent tile keeps its slot in the board rather than vanishing: letters that jump
   around after every tap make the row unreadable half way through a long word. */
.tile:disabled { opacity: .22; cursor: default; }
/* The cursive toggle has to reach the tiles too: building a word in a script you are
   not reading it in is a different exercise from the one you asked for. */
body.cursive .tile-slots, body.cursive .tile { font-family: 'Gveret Levin', cursive; }
body.cursive .tile-slots { font-size: calc(34px * var(--text-scale, 1)); }
body.cursive .tile { font-size: calc(30px * var(--text-scale, 1)); }
.tile-actions { display: flex; gap: var(--k-sp-8); justify-content: center; }
.tile-back {
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); padding: var(--k-sp-12) var(--k-sp-16); border-radius: var(--k-r-12); cursor: pointer;
  border: 1px solid var(--line, #ddd); background: var(--card, #fff); color: inherit;
}
.tile-back:disabled, .drill-check:disabled { opacity: .4; cursor: default; }
.drill-check {
  font: inherit; font-size: calc(16px * var(--text-scale, 1)); padding: var(--k-sp-12) var(--k-sp-16); border-radius: var(--k-r-12); cursor: pointer;
  border: 1px solid var(--accent); background: var(--accent); color: #fff;
}
.drill-stats { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); }
.drill-bar { justify-content: space-between; }
.drill-reveal.is-wrong { background: rgba(204,51,51,.05); border-color: rgba(204,51,51,.22); }
.reveal-again { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: #c33; margin-top: var(--k-sp-8); }

/* A listening question has no word to show, so the replay button IS the subject. */
.drill-replay {
  font: inherit; font-size: calc(16px * var(--text-scale, 1)); padding: var(--k-sp-16) var(--k-sp-24); border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
}
.drill-replay:hover { background: rgba(0,113,185,.07); }
.reveal-why { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin-top: var(--k-sp-8); padding-top: var(--k-sp-8); border-top: 1px solid rgba(0,0,0,.08); }

/* Focus: attack one weak area instead of waiting for it to come round. */
.drill-focus { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); justify-content: center; margin-bottom: var(--k-sp-12); }
.drill-focus-btn {
  font: inherit; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); padding: var(--k-sp-4) var(--k-sp-12); border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line, #ddd); background: transparent; color: var(--faint);
}
.drill-focus-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 600; }

/* The end of a round is the moment to consolidate, not just to be scored. */
.drill-missed { margin-top: var(--k-sp-20); text-align: start; max-width: 34rem; margin-inline: auto; }
.missed-title { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); text-transform: uppercase; letter-spacing: .03em; margin-bottom: var(--k-sp-8); }
.missed-row { padding: var(--k-sp-8) 0; border-top: 1px solid rgba(0,0,0,.07); font-size: calc(20px * var(--text-scale, 1)); line-height: 1.6; }
.missed-en { display: block; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); }

/* A cloze sentence is the subject: full width, right to left, blank in place. */
.drill-sentence { display: block; font-size: calc(24px * var(--text-scale, 1)); line-height: 1.9; max-width: 34rem; margin-inline: auto; }
/* The verb form of the sentence that the learner answers for (answerPerson). One line under
   the sentence, a little smaller, so the sentence stays the subject. */
.drill-target { display: block; font-size: calc(22px * var(--text-scale, 1)); line-height: 1.6; margin-top: var(--k-sp-4); }
/* "you -> I" in the answer card (answerPerson): the form of the question and the form of the
   answer side by side, left to right like the label that names them. Each side is a pronoun,
   the form and its reading. */
.reveal-person { margin: 0; }
.rv-label { display: block; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); letter-spacing: .02em; }
.rv-pair { display: flex; flex-direction: column; margin-top: var(--e1); }
/* « tu » devient « je » (c1427) : deux rangees sur les deux axes, lecture et sens a gauche, pronom et forme a droite. */
.rv-cell { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; column-gap: var(--e2); min-height: var(--cible); }
.rv-cell .rv-tr { grid-column: 1; grid-row: 1; } .rv-cell .rv-gl { grid-column: 1; grid-row: 2; }
.rv-cell .rv-form { grid-column: 2; grid-row: 1 / span 2; direction: rtl; display: flex; align-items: center; }
.rv-cell .rv-pro { grid-column: 3; grid-row: 1 / span 2; direction: rtl; }
.rv-pro { font-size: calc(16px * var(--text-scale, 1)); line-height: 1.5; color: var(--faint); }
.rv-form { font-size: calc(22px * var(--text-scale, 1)); line-height: 1.5; }
.rv-cell .reveal-tr { display: block; text-align: left; margin: 0; }
.rv-arrow { display: none; }

/* ---- page tab strip -------------------------------------------------------------
   The reference tables and the tests read as one set you move around inside, not four
   pages that happen to link to each other. Deliberately NOT the same class as .tabs,
   which the practice page already uses for its own in-page Practice / Browse switch.
   Written in logical properties (inline-start, padding-inline) so that turning the site
   right-to-left needs no second version of any of this. On a phone the strip scrolls
   sideways inside itself rather than making the page scroll, which is the rule
   everywhere here: wide content scrolls in its own box, the body never does. */
.pagetabs {
  display: flex;
  /* Les six libelles sont latins et l'ordre du chemin de fer est celui du DOM. Sous dir=rtl
     le flex les posait a l'envers (Lessons a l'extreme droite) et le retour a la ligne
     renvoyait « My words » a DROITE en laissant un trou a gauche — mesure du 30.08.2026 a
     390px. L'ordre des boites se decide ici, pas dans les proprietes logiques. */
  direction: ltr;
  gap: var(--k-sp-4);
  margin-block: 0 var(--k-sp-24);
  padding-block-end: var(--k-sp-4);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.pagetabs::-webkit-scrollbar { display: none; }
/* SIX PASTILLES CERCLEES D'EGAL POIDS NE HIERARCHISENT RIEN (audit /premium, 30.08.2026 :
   emphase partout = emphase nulle part). La destination courante garde l'aplat d'accent ;
   les autres perdent leur bordure et deviennent du texte pose sur une teinte a peine
   perceptible. La rangee redevient UNE chose — un chemin de fer — au lieu de six objets qui
   se disputent l'oeil, et l'element actif se lit d'un coup d'oeil au lieu de se chercher.
   La cible tactile ne bouge pas : le rembourrage est inchange, seul l'habillage tombe. */
.pagetab {
  flex: 0 0 auto;
  padding: var(--k-sp-8) var(--k-sp-16);
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.pagetab:hover { background: var(--card-hover); color: var(--text); }
.pagetab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pagetab.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* a test row on tests.html reuses .lesson; the upcoming one is marked */
.test-row.is-next { border-color: var(--accent); background: var(--accent-dim); }

/* ---- a four-form paradigm on a phone --------------------------------------------
   On a wide screen a forms table is the right shape: one row per word, the forms
   aligned in columns, so two paradigms can be compared down the page. On a phone that
   same row puts four Hebrew words plus their readings side by side in ~360px, and the
   words break mid-word. So the row becomes a 2x2 block: the word spans the full width
   as a heading, and its four forms sit two-by-two underneath. Same markup, no second
   copy of anything — the table simply stops behaving like a table.
   The column header disappears with the thead, so each cell grows its own label from
   the data-tag the build writes on it.

   THE BREAKPOINT IS 899, NOT 640, AND THAT WAS A QUARTER OF THE SIZE RANGE BROKEN.
   Between 641 and 899 the card grid had not kicked in yet and the real table does not fit:
   measured on the live verbs list, the table wants 1281px inside a 620-830px wrapper, so it
   overflowed its column by 450-660px at every width in that band. What you see is a row cut
   off at the right edge with the glosses truncated mid-word — which is exactly what a phone
   in LANDSCAPE, or a tablet, shows, and neither is an unusual way to hold the app.

   It was not an oversight: the band had its own rule, deliberately letting the wrapper scroll
   sideways on the argument that a word split down the middle is worse than a scrollbar. Both
   are true and the choice between them was a false one — the card layout keeps the words
   whole AND does not scroll. It was never considered there only because this query said 640,
   the number for "phone", when the question was "does the table fit". */
@media (max-width: 899px) {
  .tbl-forms { display: block; }
  .tbl-forms thead { display: none; }
  .tbl-forms tbody { display: block; }
  .tbl-forms tr {
    display: grid;
    /* Two across, and deliberately NOT auto-filled. Packing three per row fits more words
       but destroys what the grid means: the columns are gender and the rows are number, so
       m.s sits above m.pl and f.s above f.pl. Three across breaks every pair. */
    grid-template-columns: 1fr 1fr;
    gap: var(--k-sp-8);
    padding: var(--k-sp-12) 0 var(--k-sp-16);
    border-block-end: 1px solid var(--border);
  }
  .tbl-forms tr:last-child { border-block-end: 0; }
  .tbl-forms td { display: block; padding: 0; border: 0; }
  .tbl-forms td.c-word,
  .tbl-forms td.c-poal,
  .tbl-forms td.c-seen { grid-column: 1 / -1; }
  .tbl-forms td.c-word { margin-block-end: var(--k-sp-4); }
  .tbl-forms td.c-form {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: var(--k-sp-8) var(--k-sp-12);
    min-width: 0;                 /* a grid child must be allowed to shrink or it overflows */
  }
  .tbl-forms td.c-form:empty { display: none; }
  .tbl-forms td.c-form::before {
    content: attr(data-label);
    display: block;
    font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--faint);
    margin-block-end: var(--k-sp-4);
  }
  /* A person label is a Hebrew pronoun, not a code: uppercase does nothing to it and the
     letter-spacing pulls its letters apart. */
  .tbl-forms td.c-form[data-person]::before {
    letter-spacing: 0;
    text-transform: none;
    font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
    direction: rtl;
  }
  /* A compact paradigm opts OUT of the card grid above and stays a table.
     Two short forms plus a numeral fit 340px comfortably; four do not, which is the only
     reason the grid exists. Numbers are the case: the lesson IS the column contrast, and
     eleven bordered cards hide exactly that. */
  .tbl-forms.tbl-compact { display: table; }
  .tbl-forms.tbl-compact thead { display: table-header-group; }
  .tbl-forms.tbl-compact tbody { display: table-row-group; }
  .tbl-forms.tbl-compact tr { display: table-row; padding: 0; border: 0; }
  .tbl-forms.tbl-compact td,
  .tbl-forms.tbl-compact th { display: table-cell; width: auto; padding: var(--k-sp-8) var(--k-sp-8); }
  .tbl-forms.tbl-compact td.c-word { margin: 0; }
  /* the per-cell tag label belongs to the card layout; the column header says it here */
  .tbl-forms.tbl-compact td.c-form::before { content: none; }
  .tbl-forms.tbl-compact td.c-form {
    background: transparent; border: 0; border-radius: 0; padding: var(--k-sp-8) var(--k-sp-8);
  }
  /* Reading BESIDE the word, not under it, and the word given the size it deserves.
     Measured on the one-to-ten table at 390px before this rule: the Hebrew occupied 24px of a
     123px cell at 15.6px type while its reading, set to display:block, took a whole second
     line. Every row therefore cost 62px, the table 711px — and the thing being learnt was the
     smallest text in it. Side by side the two use about half the cell, so the row is one line
     and the numeral is finally the biggest thing on it. The card still flips: the reading is
     hideable here exactly as everywhere else.

     The gap between them is set on the HEBREW, not on the reading. The reading card carries
     `margin: -1px -5px` so its tile can cover the text without taking room, and that -5px
     reaches into whatever sits next to it — 5px of tile over the last letter of all 22 words,
     measured. Cancelling it from the card's own side needs to know which side faces the word,
     and `margin-inline-start` on .tr resolves against .tr's direction, which is Latin. The
     .he span carries dir="rtl" in the markup, so ITS inline-end is the side facing the tile
     whatever the surrounding direction does. Put the gap there and the question disappears.

     The reading goes on its OWN line, sharing the word's edge. Beside the word it fitted for
     one to ten and cost nothing in height — but a reading placed after a word starts wherever
     that word happens to end, and the numerals are all different widths, so the column of
     tiles wandered: the Hebrew right edges were dead level (0px spread across eleven rows)
     while the readings scattered over 37px. Eleven to nineteen were already stacking, because
     two-word numerals need 170px in a 111px cell, so the inline version was not even
     consistent between the day's two tables. Stacked and end-aligned, every word and every
     reading sits on one edge in both. The tighter line-height pays for most of the second
     line: 1.4 against the 1.75 body default, still clear of the niqqud. */
  .tbl-forms.tbl-compact td.c-form .he { font-size: calc(20px * var(--text-scale, 1)); line-height: 1.4; }
  .tbl-forms.tbl-compact td.c-form .tr {
    display: block;
    width: fit-content;
    /* PHYSICAL, like the chevron above, and for the same reason: a logical auto margin
       resolves against THIS element's direction, and .tr computes ltr because its text is
       Latin — so margin-inline-start here means the left, the opposite side from the one
       intended. These tables are rtl by construction, so name the side. Full width worked
       and aligned, but a grey slab under every word is a weight reading cards carry nowhere
       else in the app; fit-content keeps the tile the size of its text and the auto margin
       keeps its edge on the word's. */
    margin-left: auto;
    margin-right: 0;
  }
  /* A reading may wrap here; the Hebrew above it may not.
     `.he-solid` sets nowrap so a single Hebrew word never breaks at its maqaf, and the
     transliteration inherits the class because it is generated alongside the word it reads.
     For Latin text that protection buys nothing and costs the fit: measured with the compact
     layout on, 48 of 280 combinations clipped, every one of them a reading (mechapeset,
     meshalemet, mechapsim) over by 2-10px, and never the Hebrew. Letting the LATIN break
     is what the nowrap was never protecting. */
  /* A reading may break; the Hebrew above it may not.
     `.he-solid` sets nowrap so a single Hebrew word never splits at its maqaf, and the
     transliteration inherits the class because it is generated beside the word it reads.
     For Latin that protection buys nothing and costs the fit.
     `word-break: keep-all` (set for the tables generally, so Hebrew is never split) has to
     be lifted too: measured, "olim chadashim" DID break at its space, and the remaining
     "chadashim" still wanted 57px in a 49px cell. Allowing the space to break is not enough
     when one word alone is wider than the column. */
  .tbl-forms.tbl-compact td.c-form .tr {
    max-width: 100%;
    white-space: normal;
    word-break: normal;
    overflow-wrap: anywhere;
  }

  /* Five columns in 320px leaves each about 60px, and the corpus holds two words that need
     61: מְחַפְּשׂוֹת and מְשַׂחֲקוֹת. One pixel each, and the whole page scrolled sideways for it.
     A word may not break (the nowrap above is the point), so the type gives way instead —
     only on the narrowest phones, where nothing else fits either. */
  /* The po'al is in the markup TWICE — `.c-poal` for the table, `.poal-inline` under the word
     for the phone card grid — and exactly one may show. The phone rules above hide the po'al
     COLUMN and reveal the inline copy; `.tbl-compact` puts every cell back to `table-cell` at
     equal specificity and, coming later, wins — so the column returned while the inline copy
     was still displayed, and every verb printed its infinitive twice side by side. Compact
     keeps the column, so it must take the inline copy back out. */
  .tbl-forms.tbl-compact .poal-inline { display: none; }

  /* Five or six columns on a phone leave each about 60px, and a pointed pi'el form wants
     more: measured at 20px type, neighbouring words sat -4px apart at 360 and +1px at 390,
     i.e. touching or overlapping — unreadable, and invisible to verify-table-fit, which asks
     whether a word overflows its OWN cell and never whether it collides with the next one.
     At 15px the same pairs sit 5 to 23px apart across 320-430. */
  @media (max-width: 440px) {
    .tbl-forms.tbl-compact td.c-form .he { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
    /* Only the words that do not fit. 75px at 15px becomes 60px at 12px, inside a 68px
     * cell at 360 and a 61px cell at 320. Two words in the corpus need this; the other
     * 2 900 keep their size. */
    .tbl-forms.tbl-compact td.c-form .he.he-long { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
  }
  /* Under 340px the paradigm columns fall to about 50px and the length of a word stops
   * predicting the overflow — a six-consonant form at 49px overflows a 47px cell. So the
   * step here is on every paradigm form, not on the long ones: measured 9 cells too narrow
   * out of 426 at 15px, 0 at 13px. The rest of the table already drops to 12.5px here. */
  @media (max-width: 340px) {
    .tbl-forms.tbl-compact td.c-form .he { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }
    .tbl-forms.tbl-compact td.c-form .he.he-long { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
    .tbl-forms.tbl-compact td, .tbl-forms.tbl-compact th { padding: var(--k-sp-8) var(--k-sp-4); }
  }

  /* the paradigm grid gets the same treatment: two across, never one long line */
  .para-grid { grid-template-columns: repeat(auto-fill, minmax(calc(104px * var(--text-scale, 1)), 1fr)); }

  /* The tab strip scrolled sideways at first, and the scrollbar is hidden here on purpose,
     which left the only way of reaching the last tab a swipe nobody is told about. So it
     wraps instead: nothing off-screen, no affordance to teach.

     What wrapping costs is vertical, and that cost grows with every tab added. At nine
     pills the strip measured 760px of content against 340px of container — three rows,
     112px, on top of the back link and the header, so a collection page opened with its
     first word 325px down a 390px-wide phone. The desktop pill (14px text, 7/14 padding)
     is what makes it expensive, and a chip does not need to be that big to be tappable.
     At 13px text and 5/8 padding the same nine measure 558px and land on two rows, 62px,
     from 360px up. The tabs stay legible, they all stay visible, and 50px of the screen
     comes back.

     Read that as packing, not as a law: two rows holds while the pills fit two lines of
     the container, so a tenth tab can put a row back (and at 320px, where the container
     is 304, nine already need three). Nothing breaks when it does — the strip grows down,
     it never scrolls sideways — but if this keeps growing the honest fix is fewer tabs,
     not smaller text. */
  .pagetabs { flex-wrap: wrap; overflow-x: visible; row-gap: var(--k-sp-4); gap: var(--k-sp-4); margin-block-end: var(--k-sp-20); }
  .pagetab { padding: var(--k-sp-4) var(--k-sp-8); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }

  /* Le fold des pages collections vivait ici — rangees pliables, curseurs, chevron. Parti
     le 20/08 : le chevron (un ::after sur td.c-word) prenait la place d'une colonne et
     desalignait toute la ligne, et le pliage lui-meme avait deja ete refuse pour les pages
     de cours le 17/08. Une table de reference est une liste qu'on lit, pas un accordeon. */

  /* The desktop table pins the first column to a share of the row (27% / 21%). Inside the
     grid above that width is NOT reset by `grid-column: 1 / -1` — an explicit width still
     wins over a grid item's stretch — so the word, its meaning and its example sentence
     painted into 89px of the 370 available while the form cells below used the full width.
     The grid owns the geometry here; the desktop shares must let go. */
  .tbl-forms th:first-child, .tbl-forms td:first-child,
  .tbl-poal th:first-child, .tbl-poal td:first-child,
  .tbl-forms td.c-poal, .tbl-forms td.c-seen { width: auto; }
}

/* ---- right to left ---------------------------------------------------------------
   The page is Hebrew, so the whole layout runs right to left: <html dir="rtl">. Every
   direction-dependent rule above is written in logical properties, so that one attribute
   is the whole switch and there is no mirrored copy of anything to keep in sync.

   What still needs saying explicitly is the LATIN runs. A transliteration or an English
   gloss is left-to-right text sitting inside a right-to-left page, and left to itself the
   bidi algorithm moves its trailing punctuation to the wrong end: "chadash." renders as
   ".chadash", and "(m.s)" loses its brackets to opposite sides. Marking those runs ltr
   fixes it at the source instead of fighting it per string. */
/* EVERY bilingual string travels in a .lg span, and prose is Latin prose even when it has
   Hebrew words inside it. Left to inherit rtl, 183 of 365 Latin runs ending in punctuation
   had that punctuation flung to the far side of the line: a full stop landing 245px into
   the middle of a sentence.

   It takes BOTH declarations below and neither alone. Measured 29.07 by forcing the block
   selectors underneath back to rtl and counting Latin runs whose trailing stop leaves the
   character it follows, over 649 runs on 8 pages at 390px: no rule 611 fail · direction:ltr
   alone 611 · unicode-bidi:isolate alone 611 · the pair 54. `direction` on an INLINE box
   does nothing until the box is bidi-isolated, so for its whole life this rule computed
   `unicode-bidi: normal` and had no effect at all — which is why every fix so far has had
   to be an enumerated block selector below, and why the enumeration is not optional now
   either: those last 54 are runs with no .lg wrapper (.cell-sub, .c-word), and the list is
   what holds them. A Hebrew word inside keeps its own dir="rtl" from the build and renders
   correctly as an embedded run. */
.lg { direction: ltr; unicode-bidi: isolate; }
/* Une glose est de la PROSE, pas une lecture : « granddaughter » dans une colonne de 81px a
   320px doit pouvoir se couper, et se couper avec un TRAIT D'UNION, comme dans n'importe
   quel journal. C'est l'inverse exact de la regle des lectures juste au-dessus, ou la
   coupure est interdite parce qu'une translitteration coupee ne se relit pas.
   Le `lang` porte par chaque span est ce qui donne au moteur son dictionnaire de cesure. */
.lg { hyphens: auto; }
.tr, .reveal-tr, .srs-tr, .poal-tr, .srs-poal-tr,
.en, .reveal-en, .missed-en, .lesson-d, .eyebrow, .para-tag,
/* Runtime-drawn prose. These are built by app.js as PLAIN TEXT — an English or French
   sentence with bare Hebrew words inside it, no per-word span to carry a direction. Left
   to inherit rtl they do not merely lose their full stop: the paragraph orders the two
   Hebrew runs right-to-left, so "הֵן is feminine plural, so it takes שׁוֹאֲלוֹת." reads on
   screen as "שׁוֹאֲלוֹת is feminine plural, so it takes הֵן." — the rule stated backwards,
   in the one place the learner has just been told they were wrong. The enumeration below
   is the whole answer face of both trainers; adding a class that prints a sentence and
   forgetting this list is how that bug is written again. */
.drill-prompt, .reveal-why, .reveal-again, .reveal-para,
/* Scenes: the role line ("You are דוד") mixes Latin and Hebrew in one run, and the
   English under each reply is plain prose. Both read backwards without this — the role
   line printed "דוד You are". */
.scene-you, .scene-cue, .scene-line .line-gl,
.poal-root, .gender-tag, .srs-en, .srs-src, .srs-tag, .srs-poal-root, .srs-poal-gl,
.tbl th, .c-form::before, .drill-stats, .drill-score, .hs,
.latest-sum, .cell-sub, .intro, .summary, .section-note, .points, .hs-empty, h1, h2, h3,
.search, input[type="search"], input[type="text"],
/* UI chrome is Latin, and a chrome element holding two inline spans gets them reordered by
   an rtl block: "4 days" became "days 4". These read as Latin lines even on a Hebrew page. */
.week-sum, .lesson-n, .lesson-t, .pagetab, .tab, .ctl, .menu-link, .empty, .missed-title,
/* L'etat vide du carnet : une phrase latine entiere, qui se peignait a l'envers dans le
   conteneur rtl. Signalee par verify-bidi et restee la faute d'un nom absent de cette
   liste — c'est exactement le mode d'echec que la sonde existe pour rendre visible. */
.col-empty,
/* The practice counters are the same shape as .week-sum and were missed: the card page
   printed "words 955 · known 0 · new 950 · due 0", every count reading as a label followed
   by a number instead of a number followed by its label. */
.srs-stat,
/* The home page's test banner. Its eyebrow holds three inline runs — the label, the date and
   the live countdown span — so an rtl block printed "TOMORROW · THURSDAY, 20 AUGUST 2026 ·
   TEST". It sat outside this list for as long as it existed and nothing said so, because the
   only test in the repo was already `done` and the banner therefore never rendered: an element
   that never paints is an element no probe can measure. */
.test-cta-eyebrow {
  direction: ltr;
  text-align: start;
}
/* A cell whose content is Latin still sits in an rtl row, so start = right. Put the text
   back on the reading edge of its own box. */
.tbl td.c-mean, .tbl td.c-tr, .c-seen { direction: ltr; text-align: end; }

/* Column headers sit on the same edge as the values under them. Everything in these
   tables lands on the END edge of its cell — the Hebrew because the row is rtl, the Latin
   columns because the rule above says so — and the header was the only thing hugging the
   other side. That is what read as 'everything is shifted'. This has to come AFTER the
   ltr block that sets `.tbl th { text-align: start }`, or it silently loses to it. */
.tbl th { text-align: end; }
/* La colonne de lecture des tableaux de vocabulaire (modules, racines, Comprendre) : son en-tete et ses cellules sur le meme bord gauche (demande du 09/11 : « Les transliterrations la il faut les aligner ! »). */
.tbl-vocab th:nth-child(2), .tbl-vocab td.c-tr { direction: ltr; text-align: left; }
.tbl-vocab th:nth-child(2) { padding-left: 0; }
.tbl .cell-tr, .para-cell .cell-tr { text-align: end; }
/* One word, one line — see oneWord() in build.mjs. Phrases keep breaking at spaces. */
.he-solid { white-space: nowrap; }

/* ------------------------------------------------- tenses inside the verb row */

/* The switch sits under the verb and its po'al, where the meaning is — that is where it
   was asked for. Icons by default (two Hebrew letters: הו עב עת צי, the initials of the
   tense names), the full word only where there is room for it. */
/* The switch sits ON the translation line, sharing it with the meaning: the gloss is a
   couple of words and the rest of the line was empty. Its own line cost 115 rows a line of
   height each. */
.wline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--k-sp-12);
  flex-wrap: wrap;
}
.wline .cell-word { flex: 1 1 auto; min-width: 0; }
.wline .tstrip { flex: 0 0 auto; }   /* the switch keeps its size; the meaning takes the rest */

/* The verbs table puts the PO'AL on that line and the meaning under it (26.08.2026). The
   infinitive keeps the accent block it had in the po'al cell — it is still the verb's
   identity card, it has only moved up next to the pills that conjugate it. */
.tbl-tenses .wline, .para-card .wline { margin-bottom: var(--k-sp-8); }
.poal-he {
  flex: 1 1 auto;
  min-width: 0;
  display: inline-block;
  background: var(--accent-dim);
  border-radius: 4px;
  padding: var(--k-sp-4) var(--k-sp-8) var(--k-sp-4);
  color: #003356;
}
.poal-he .he { font-size: 1.3em; line-height: 1.5; }
/* The meaning, its reading and the root on one line, wrapping rather than truncating: a
   gloss with a parenthetical is long and a row that clips it says less than one that wraps. */
/* LTR, and it is not cosmetic: the three pieces are all Latin, and laid out by an rtl flex
   container they paint in reverse — "כ.א.ב · pa'al  lichov  to hurt, to ache" — so the
   meaning, the thing being looked up, ended up last and wrapped while the root sat first
   with room to spare. Same rule as .c-mean and .c-tr right above; verify-bidi measures it. */
.mline {
  display: flex;
  direction: ltr;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--k-sp-4) var(--k-sp-12);
}
.mline .poal-tr { display: inline; margin-top: 0; }
/* The meaning takes the width the reading does not, explicitly. Left to size itself it used
   105px of 294 and wrapped ("to hurt, to / ache") while the reading sat whole beside it: the
   gloss is wrapped in `.en`, which is `display: inline-block; max-width: 100%`, and a
   percentage max-width inside a shrink-to-fit flex item has nothing stable to resolve
   against. `flex: 1 1 auto` with `min-width: 0` gives the box a definite width first, which
   is the same fix `.wline .cell-word` already carries — and it was measured, not guessed. */
.mline .cell-word { flex: 1 1 auto; min-width: 0; }
/* La carte du traducteur porte les MEMES pieces que la ligne du verbe (build/paradigms.mjs
   les rend avec les memes fonctions), donc les regles qui etaient portees par la table la
   nomment aussi. Sans cela le binyan et la racine, tous deux latins, peignent a l'envers
   dans le conteneur rtl : « pa'al · כ.ת.ב » sortait « כ.ת.ב · pa'al ». */
.tbl-tenses .poal-root, .para-card .poal-root { direction: ltr; text-align: start; margin-top: var(--k-sp-4); }
.tstrip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--k-sp-4);
  direction: rtl;
}
.tpill {
  font: inherit;
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  line-height: 1;
  padding: var(--k-sp-4) var(--k-sp-8);
  min-height: 30px;               /* a real tap target, the .say lesson of 19.08 */
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--accent);
  cursor: pointer;
  touch-action: manipulation;
}
.tpill.is-on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.tpill-name { display: none; }    /* the icon speaks; the word is in the title attribute */
/* A noun's pills say their name (12.10.2026, מָזוֹן: the two-letter codes read like a
   verb's tenses). Only a verb's tense strip stays icon-only. */
.tstrip-named .tpill-icon { display: none; }
.tstrip-named .tpill-name { display: inline; }
.tstrip-named .tpill { border-radius: 999px; padding: var(--k-sp-4) var(--k-sp-12); }
/* Named pills are Latin words: the strip takes its own full line, wraps, and reads left to
   right, or the first family sits cut off at the right edge of a 330px card. */
.wline .tstrip-named { flex: 1 1 100%; min-width: 0; direction: ltr; gap: var(--k-sp-8); }

/* One tense's forms, as the paradigm grid the day pages already use: it holds four gender
   forms or ten persons without the table having to know which. */
/* 128px et non 96 : מִשְׁתַּמְּשׁוֹת mesure 80px en imprime, et une case de 96px ne lui laisse que 43px
   apres l'etiquette. A 700px il debordait de la page de 2px (verify-table-fit, 23.09.2026). */
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(calc(128px * var(--text-scale, 1)), 1fr));
  gap: var(--k-sp-8);
  direction: rtl;
}
.tbl-tenses td.c-tenses { padding: var(--k-sp-8); }
.tbl-tenses td.c-word { vertical-align: top; }
/* A verb with more forms than another makes rows of different heights; the label of each
   cell keeps them readable on their own rather than by alignment with the row above. */
.tgrid .para-cell {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: var(--k-sp-8) var(--k-sp-8);
  min-width: 0;
}
.tgrid .para-tag {
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  color: var(--faint);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-block-end: var(--k-sp-4);
}
/* A person label is a Hebrew pronoun: uppercase does nothing to it and letter-spacing
   pulls it apart. Same rule as the phone cards. */
.tgrid .para-cell[data-person] .para-tag {
  letter-spacing: 0;
  text-transform: none;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
}
/* Plus de nom de temps a cote de l'icone sur grand ecran (16.09.2026 : « j'aime pas que
   les boutons d'onglets pour les tables affichent present, passe, futur, imperatif »). Les
   quatre noms elargissaient la bande au-dela de la colonne du mot et la pastille « Imperative »
   chevauchait la premiere carte de formes. L'icone hebraique suffit, comme sur telephone ; le
   nom reste dans l'attribut title. */

/* On a phone the row stops behaving like a row: three columns side by side gave the forms
   a single narrow file down half the screen while the verb sat in the other half, and one
   verb ran past 600px of height. Stacked, the verb heads its own block and its forms use
   the full width two at a time — the same move the other collection tables already make,
   and the same 2x2 reasoning as the day pages: four forms plus their readings do not share
   340px. */
@media (max-width: 699px) {
  .tbl-tenses thead { display: none; }
  .tbl-tenses,
  .tbl-tenses tbody,
  .tbl-tenses tr,
  .tbl-tenses td { display: block; width: auto; }
  .tbl-tenses tr {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: var(--k-sp-12);
    margin-block-end: var(--k-sp-12);
    background: var(--card);
  }
  .tbl-tenses td { border: 0; padding: 0; }
  .tbl-tenses td.c-tenses { padding-block-start: var(--k-sp-8); }
  .tbl-tenses td.c-seen { padding-block-start: var(--k-sp-8); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
  .tbl-tenses td.c-seen:empty { display: none; }
  .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Same trade as the compact tables, on the collection tables at desktop widths: the past
   family carries eleven person columns, and at 900-1024px twelve readings (lamadta,
   lemadtem…) clipped by 3-4px. `.he-solid` protects a Hebrew word from breaking at its
   maqaf; the Latin reading under it never needed that protection and pays for it in fit. */
.tbl-collection .cell-tr {
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

/* Hebrew keeps its own explicit dir="rtl" from the build; nothing here overrides it. */

/* The day pager: "previous" and "next" swap sides on their own because the flex row is
   rtl now, but the arrow GLYPHS are drawn in the markup and would point the wrong way.
   Flip them with a transform rather than editing eight template strings. */
/* Arrow GLYPHS are drawn in the markup, so the layout flip leaves them pointing the wrong
   way: "back" would still be a left arrow on a page that reads right to left. Mirror every
   one of them from CSS rather than maintaining a second set of template strings. */
[dir="rtl"] .arrow { display: inline-block; transform: scaleX(-1); }
/* SAUF dans le lien de retour, qui ne miroite plus depuis le 30.08.2026 : il se lit
   « ← Home », a gauche, comme le reste du chrome latin. Le miroir le faisait pointer vers
   l'avant — « → Home » pour revenir en arriere, ce qu'aucun lecteur ne lit comme un retour.
   Le pager, lui, garde son miroir : ses deux fleches encadrent une rangee qui, elle, se
   retourne vraiment avec le sens d'ecriture. */
[dir="rtl"] .back .arrow { transform: none; }

/* A theme table is a REVISION LIST — four hundred rows of it — so its rows are compact: the
   reading and the gender tag ride on one line beside each other instead of stacking into a
   third. At three lines a row the body theme alone was 2 600px. */
.tbl-theme td.c-word .cell-tr { display: inline-block; margin-inline-start: var(--k-sp-8); }
.tbl-theme td.c-word .tag { margin-inline-start: var(--k-sp-8); vertical-align: 1px; }
.tbl-theme td { padding-block: var(--k-sp-8); }
/* On a phone the theme table drops its "seen on" column. The phone rule for .c-seen lets the
   links wrap, so "day 24" became two lines in a column nobody consults here — this table is
   for revision, and the day a word was met is on the word's own day page. */
@media (max-width: 560px) {
  .tbl-theme th.c-seen, .tbl-theme td.c-seen { display: none; }
  .tbl-theme th.c-word, .tbl-theme td.c-word { width: 52%; }
}
/* La table des prefixes, sur telephone. Ses deux colonnes hebreux sont `he-solid` — donc
   insecables, donc elles reclament leur largeur intrinseque — et la SEULE colonne qui peut
   ceder est le sens. Mesure a 390px avant correction : 168 / 168 / 33px, c'est-a-dire « un
   vol » plie dans 33 pixels et une ligne haute de 81px pour l'accueillir. Le sens n'est pas
   un reste : c'est la moitie de la lecon (« ha- fait LE vol »).
   Ces largeurs n'ont d'effet que depuis que la regle du « seen on » nomme sa colonne (voir
   plus haut) : tant qu'elle disait `td:last-child`, elle epinglait le sens a 9% avec une
   specificite superieure, et rien d'ecrit ici ne bougeait — pas meme un `!important`, ce qui
   est ce qui a fini par designer le coupable. Verifie par verify-table-fit (rien ne deborde)
   et verify-wordbreak (aucun mot coupe au milieu) : c'est ce couple qui dit si le partage
   tient, pas l'oeil. Mesure a 390px apres correction : 148 / 100 / 122. */
@media (max-width: 560px) {
  .tbl-prefix th.c-word, .tbl-prefix td.c-word { width: 40%; }
  .tbl-prefix th.c-form, .tbl-prefix td.c-form { width: 27%; }
  .tbl-prefix th.c-mean, .tbl-prefix td.c-mean { width: 33%; }
}

/* The prefix pane's heading carries the letter, then what it means, in quieter type. */
.pre-gloss { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 400; color: var(--dim); margin-inline-start: var(--k-sp-4); }
.pre-more { color: var(--faint); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); margin-top: var(--k-sp-8); }

/* ------------------------------------------------- the pronouns pane

   One block per pronoun, its forms in the same paradigm grid the verb rows use for tenses.
   Two blocks abreast on a wide screen, one on a phone: a ten-person grid needs the width. */
.pron-grid {
  display: grid;
  direction: ltr;
  grid-template-columns: 1fr;
  gap: var(--k-sp-16);
  margin-top: var(--k-sp-12);
}
@media (min-width: 900px) {
  .pron-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* A paradigm of PHRASES takes the whole width: five columns of 84px break בָּא לִי in two. */
  .pron-grid .pron-wide { grid-column: 1 / -1; }
}
.pron-card {
  border: 1px solid var(--border);
  border-radius: var(--k-r-8);
  padding: var(--k-sp-12) var(--k-sp-16) var(--k-sp-16);
  background: var(--card);
  min-width: 0;
}
.pron-head {
  display: flex;
  direction: ltr;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--k-sp-12);
  margin-bottom: var(--k-sp-8);
}
.pron-head .cell-word { flex: 1 1 auto; min-width: 0; }
.pron-seen { flex: 0 0 auto; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
.pron-seen a { color: var(--faint); text-decoration: none; white-space: nowrap; }
.pron-seen a:hover { color: var(--accent); }
.pron-card .cell-sub { margin: 0 0 var(--k-sp-12); }
/* The grid itself stays rtl — it holds Hebrew and reads right to left, which is right here
   and is exactly what the numbers grid must NOT do (there the labels are digits). */
.pron-card .tgrid { grid-template-columns: repeat(auto-fit, minmax(calc(84px * var(--text-scale, 1)), 1fr)); }
/* Ten persons break 5 + 5: the singular on one line, the plural under it, each person above
   its own plural. auto-fit gave 4 + 4 + 2 and the halves no longer answered each other. */
.pron-card .tgrid[data-n="10"] { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pron-card .tgrid[data-n="4"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 620px) {
  .pron-card .tgrid[data-n="10"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------- the numbers chart

   Cards, not table rows. A number's meaning IS its digit, so the digit is the label and the
   two Hebrew forms are the content — a table spent a whole column printing "7" as a meaning
   and another saying which day it was met. Auto-fill so the grid reflows from one column on a
   narrow phone to five on a desktop without a breakpoint per width. */
.num-band { margin-bottom: var(--k-sp-32); }
/* LTR on the GRID, not only on the card. The page is dir="rtl", so a grid laid out in the
   inherited direction filled its first row 4, 3, 2, 1, 0 — a chart of numbers running
   backwards, which is the one thing a chart of numbers may not do. The Hebrew inside each
   card keeps its own dir and is unaffected. */
.num-grid {
  display: grid;
  direction: ltr;
  grid-template-columns: repeat(auto-fill, minmax(calc(190px * var(--text-scale, 1)), 1fr));
  gap: var(--k-sp-12);
  margin-top: var(--k-sp-12);
}
.num-card {
  border: 1px solid var(--border);
  border-radius: var(--k-r-8);
  padding: var(--k-sp-12) var(--k-sp-12) var(--k-sp-12);
  background: var(--card);
  /* LTR: the digit is Latin and sits at the start, the Hebrew forms carry their own dir. */
  direction: ltr;
}
.num-v {
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.5px;
  margin-bottom: var(--k-sp-8);
}
/* Masculine and feminine side by side, because the pair IS the lesson and the difference is
   often one vowel — they have to be readable against each other, not one under the other. */
/* Each form is CENTRED in its own half, tag above word. Aligned to the half's end edge
   instead, the two words drifted to opposite sides of a full-width phone card with a gap
   between them — the pair stops reading as a pair, which is the only reason it is a pair. */
.num-forms { display: flex; gap: var(--k-sp-12); }
.num-form { flex: 1 1 0; min-width: 0; text-align: center; }
.num-tag {
  display: block;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--faint);
}
.num-form .he { font-size: 1.15em; }
.num-form .cell-tr { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }

/* Under this the two forms stop fitting side by side without breaking a word in half. */
@media (max-width: 400px) {
  .num-grid { grid-template-columns: 1fr; }
  .num-forms { gap: var(--k-sp-16); }
}

/* One bound phrase can hold two numbers (רוֹפֵא / רוֹפְאֵי שִׁנַּיִם) and they merged into one row
   on 26.08.2026. Each number is its own BLOCK: inline, the two head transformations ran
   together into "סִימָן ← סִימַןסִימָנִים ← סִימָנֵי", one unreadable string where there are two
   separate lessons, and the number tag landed against the wrong form. */
.sm-form { display: block; }
.sm-form + .sm-form { margin-top: var(--k-sp-8); padding-top: var(--k-sp-8); border-top: 1px solid var(--border); }
.sm-form .tag { margin-inline-start: var(--k-sp-8); }

/* Latin numerals and dates read left-to-right wherever they appear. */
time, .lesson-n, .drill-score { unicode-bidi: isolate; }


/* ---- the reference page: four tables behind one tab ------------------------------
   The pane title is redundant while browsing (the in-page tab above it says the same
   thing) and necessary while searching, when all four panes are open at once and a
   match has to say which table it came from. */
.ref-pane-title { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); margin-bottom: var(--k-sp-12); display: none; }
body.is-searching .ref-pane-title { display: block; }
body.is-searching .ref-pane { margin-bottom: 28px; }
/* The in-page tabs wrap at every width now (see .tabs above); this query only tightens the
   spacing where the line is shortest. They wrap rather than scroll, for the same reason the
   page tab strip does: a hidden scrollbar makes the last one unreachable without a swipe
   nobody is told about. */
@media (max-width: 520px) {
  .tabs { gap: var(--k-sp-12) var(--k-sp-16); }
  .tab { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
}

/* Binyan blocks inside the verbs table. The heading has to read as a level BELOW the
   family heading, or the page looks like five separate collections rather than one
   table cut five ways. */
.coll-sub { margin-bottom: 28px; }
.sub-title {
  font-size: calc(1.02rem * var(--text-scale, 1));
  font-weight: 600;
  margin: 0 0 var(--k-sp-4);
  padding-bottom: var(--k-sp-4);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: baseline;
  gap: var(--k-sp-8);
}
.sub-count {
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  font-weight: 400;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.coll-sub .section-note { margin: 0 0 var(--k-sp-12); }



/* The tile is not the mechanism here. Leaving it on gives two competing reveals on one word. */

/* A list at every width. The column table is not a narrower version of this idea, it is the
   other side of the comparison — so the mode does not wait for a phone breakpoint. */
/* The word gets the size it is owed. It is the only thing on the line at rest. */

/* How far this line is open, readable without reading it: a rail on the leading edge,
   invisible at rest so a page of untouched words carries no decoration at all. */

/* Step 0 keeps the Hebrew alone; step 1 adds the reading; step 2 adds the meaning.

   The paradigm cells go with the MEANING, not with the word, and that was worth measuring
   before believing. Showing a verb's four present forms from step 0 made a row 173px against
   the shipped layout's 108px — the new mode was 60% TALLER while claiming to be denser, and
   the whole justification for it is density. On a verb row the word is the po'al; the four
   forms are a paradigm hanging off it, so they belong to the last step with everything else.
   Step 0 is then one Hebrew word on one line, which is what makes a screenful of them worth
   reading down. */

/* A paradigm row keeps its forms — there the forms ARE the word, and hiding them would leave
   an empty line. Only a row that has a po'al to stand in for them may drop them. */

/* Hide the WRAPPER, not only the text inside it.
   .cell-word holds the gloss plus the whitespace between its tags. Hiding the gloss alone
   leaves the wrapper as an empty block whose whitespace still opens a line box — 24 invisible
   pixels on every row, a quarter of the row's height, and nothing on screen to attribute them
   to. Measured, not guessed: the cell reported 74px while its only visible child was 50px. */

/* At rest the row is one word, so it does not need the leading of a paragraph. */

/* The po'al block is the row's heading here, not a cell beside the others. */

/* The stepper. Hidden unless this layout is on AND the scope asks for a page-level control. */
/* Per-word tapping is what "page only" opts out of. */

/* Folding is the other layout's answer to length; this one has its own. */

/* The scope choice means nothing while the table layout is selected. */






/* Hebrew quoted INSIDE an English or French sentence.

   Until now it was raw text in the middle of a prose string, so it inherited the body font at
   the body size — the one place on the site where the Hebrew being taught was smaller than the
   sentence teaching it. build.mjs now wraps each run (see markHebrew), so it can be given the
   same face as everywhere else and a size that lets the niqqud actually be read.

   Sized in em, not px, so it stays proportional wherever it lands: a note, a drill line, a
   section title. Kept below the 1.45em of a standalone .he — a quoted word should be legible
   without breaking the line rhythm of the paragraph around it. */
.he-in {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  font-size: 1.28em;
  line-height: 1.5;
  unicode-bidi: isolate;
}
body.cursive .he-in { font-family: 'Gveret Levin', cursive; font-size: 1.55em; }

/* A title takes the title's SIZE. It does not get its own face.

   Two goes at this, and the second one is the lesson. The measured fault on day 13 was that
   'פִּעֵל verbs' rendered its Hebrew at 27.5px against 25px of Latin in print and 38.75px in
   cursive — 1.55x of size inside four words. So the first fix pinned headings to the print
   face at the title's size, and it made things worse in the way that matters: with cursive on,
   every other Hebrew string on the page is handwriting and the eight to thirteen title runs
   became the only printed ones. Measured on the live site, 177 KtavYad against 8 Frank Ruhl.
   The page went from one mixed LINE to one mixed PAGE, which is more visible, not less.

   A face is the reader's choice and applies to the whole page. What a heading may not have is
   the size boost, because a boost is what makes the line jump. So: same face as everywhere
   else, and only the size is held down — 1.15em rather than 1.55em, enough for the handwriting
   to stay legible at title size without the Latin beside it looking shrunken.

   The Latin/Hebrew contrast inside the line remains and is not a choice: the interface font
   carries no Hebrew glyph at all, so the browser substitutes something regardless. */
:is(h1, h2, h3, h4, .section-title, .latest-title, .day-title, summary) .he-in,
body.cursive :is(h1, h2, h3, h4, .section-title, .latest-title, .day-title, summary) .he-in {
  font-size: 1.15em;
  line-height: inherit;
}



/* the same edge rail as the paradigms, so "how far is this one open" reads identically */


/* Hebrew that never got the Hebrew face.

   The root label on a verb block renders "ח.פ.שׂ · pi'el" — and its Hebrew letters were drawn
   in the INTERFACE font, beside a paradigm set in Frank Ruhl. Fourteen of them on a verb page,
   in both cursive states, since the day the label existed. Two probes asserted things about
   titles and passed the whole time; the property a reader actually sees is whether the page is
   consistent with itself, and nothing measured that until it was written as an invariant.

   Frank Ruhl is loaded as three subsets with unicode-range, so naming it first hands the
   Hebrew to the Hebrew subset and lets the Latin resolve normally. With cursive on it follows
   the rest of the page, because one face per page is the whole point of this block.

   The tense pills and the person labels joined this block the day the four-tense tables
   landed: both hold Hebrew (הווה on a pill, אֲנִי on a label) and neither inherits the Hebrew
   face — a button carries the UA font, and .para-tag was written when it only ever held
   Latin tags like m.s. That put 732 Hebrew strings on the reference page in the UI face while
   1105 used the chosen one, which is exactly the mixed page this block exists to forbid. */
.poal-root, .srs-poal-root, .gender-tag,
.tpill-icon, .para-cell[data-person] .para-tag {
  font-family: 'Frank Ruhl Libre', -apple-system, 'Inter', 'Segoe UI', system-ui, sans-serif;
}
body.cursive .poal-root,
body.cursive .srs-poal-root,
body.cursive .gender-tag,
body.cursive .tpill-icon,
body.cursive .para-cell[data-person] .para-tag {
  font-family: 'Gveret Levin', -apple-system, 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* ---- the practice path -----------------------------------------------------------------
 *
 * A column of units, newest lesson at the top, each one a session. It reads down like the
 * lesson list on the home page on purpose: the two are the same seventeen days seen from
 * either side — read there, practised here — and giving them two different visual languages
 * would make that relationship invisible.
 *
 * `direction: ltr` on the card is not optional here: <html> is rtl, and every line on a unit
 * except the title is Latin. It is the rule the whole stylesheet already follows (verify-bidi
 * measures it), and a new block is exactly where it gets forgotten. */
.path { display: flex; flex-direction: column; gap: var(--k-sp-8); margin: var(--k-sp-4) 0 28px; }

.unit {
  direction: ltr;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--k-sp-4) var(--k-sp-12);
  align-items: baseline;
  width: 100%;
  padding: var(--k-sp-12) var(--k-sp-16);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
  background: var(--card);
  font: inherit;
  color: var(--text);
  text-align: start;
  cursor: pointer;
}
.unit:hover { background: var(--card-hover); border-color: var(--accent); }
.unit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.unit-head { grid-column: 1 / -1; display: flex; align-items: center; gap: var(--k-sp-8); }
.unit-n { color: var(--accent); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.unit-crown { color: #b8860b; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1; }
.unit-t { grid-column: 1; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.35; }
.unit-sub {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  line-height: 1.4;
  /* A day summary is a paragraph. Two lines of it under every one of seventeen bubbles is a
   * wall, and the bubble is a button, not a place to read. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.unit-bar {
  grid-column: 1 / -1;
  height: 6px;
  margin-top: var(--k-sp-4);
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}
.unit-bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.unit-pct {
  grid-column: 2; grid-row: 2;
  color: var(--faint); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* Révision is the one entry that is not a lesson and it is the one most often wanted, so it
 * is the only one that carries the accent. */
.unit-review { border-color: var(--accent-dim); background: #f4fafd; }
.unit-review .unit-t { font-weight: 600; }
.unit.is-crowned { border-color: #e6cd8a; background: #fffdf5; }

.drill-quit {
  direction: ltr;
  display: inline-block;
  margin-bottom: var(--k-sp-16);
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  color: var(--dim);
  cursor: pointer;
}
.drill-quit:hover { color: var(--accent); }

/* Les onglets binyan de la page des verbes : memes pills que le selecteur d'ordre. */
.btabs { display: flex; direction: ltr; flex-wrap: wrap; gap: var(--k-sp-8); margin-block: var(--k-sp-12) var(--k-sp-16); }
.btab .sub-count { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); opacity: .65; margin-inline-start: var(--k-sp-4); }
.btab.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.btab.is-on .sub-count { opacity: .85; }

/* La barre de sous-onglets d'un volet (26.08). Memes pastilles que la barre binyan, un cran
 * plus petites parce qu'il y en a seize (les themes) ou treize (les classes de mots) contre
 * quatre binyanim.
 *
 * ELLE ENVELOPPE, elle ne defile pas lateralement, et c'est une mesure, pas un gout. La
 * premiere version tenait sur une ligne avec `overflow-x: auto` : a 390px, la bande des
 * themes faisait alors 2 977px de large pour 370px visibles — huit balayages pour atteindre
 * le seizieme theme. C'est le probleme de depart (« plutot que de scroller tout en bas »)
 * remis a l'horizontale. Enveloppee, la meme bande coute une centaine de pixels UNE fois et
 * chaque theme est atteignable sans rien balayer.
 *
 * `max-height` + defilement en dernier recours : le jour ou un volet portera quarante blocs,
 * la barre ne mangera pas l'ecran. */
.btabs-sec {
  flex-wrap: wrap;
  gap: var(--k-sp-4);
  max-height: 26vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
/* Sur telephone la bande des themes montait a 297px — un tiers de l'ecran avant la premiere
 * table. Le compteur est ce qui coute : seize pastilles portent seize «  12  » de plus, sur
 * une bande qui enveloppe. Il reste sur le titre du bloc, ou il est lu; ici il partait en
 * hauteur. Mesure au dessous de 560px seulement, la ou la bande enveloppe vraiment. */
@media (max-width: 560px) {
  .btabs-sec .btab .sub-count { display: none; }
  .btabs-sec .btab { padding: var(--k-sp-4) var(--k-sp-8); }
}
.btabs-sec .btab {
  flex: 0 0 auto;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  padding: var(--k-sp-4) var(--k-sp-12);
}
/* Le conteneur d'un bloc n'a pas de style a lui : c'est un niveau de portee pour le script,
 * pas une boite. Declare pour que personne ne le prenne plus tard pour un oubli. */
.sec-host { display: block; }

/* --------------------------------------------------------- la rangee des gzarot
 *
 * Le SECOND filtre de la table des verbes : le binyan choisit le bloc, la gizra restreint les
 * lignes. Elle porte donc moins de poids que la barre des binyanim — memes pastilles, un cran
 * plus discretes, et une etiquette devant qui dit de quoi il s'agit (sans elle, deux rangees
 * de pastilles superposees ne se distinguent que par leur contenu, ce qui demande de lire
 * l'hebreu avant de savoir ce qu'on regarde). */
.btabs-gz {
  align-items: center;
  flex-wrap: wrap;
  gap: var(--k-sp-4);
  margin-block: 0 var(--k-sp-12);
}
.gz-lbl {
  color: var(--faint);
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-inline-end: var(--k-sp-4);
}
.btabs-gz .btab { flex: 0 0 auto; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); padding: var(--k-sp-4) var(--k-sp-12); }
/* Dix pastilles font quatre rangees sur un telephone, avant la premiere table. Le compteur
   est ce qui coute : dix pastilles portent dix « 23 » de plus, sur une bande qui enveloppe.
   Meme mesure et meme remede que la bande des themes juste au-dessus. */
@media (max-width: 560px) {
  .btabs-gz .btab .sub-count { display: none; }
  .btabs-gz .btab { padding: var(--k-sp-4) var(--k-sp-8); }
}
/* La note de la classe choisie : c'est elle qui fait la difference entre un tri et une lecon.
   Encadree a gauche par un filet d'accent pour se distinguer de la note du binyan juste
   au-dessus, qui parle, elle, du schema. */
.gz-note {
  border-inline-start: 2px solid var(--accent-dim);
  padding-inline-start: var(--k-sp-12);
  margin-block: 0 var(--k-sp-16);
}
/* La ligne ecartee par la gizra. PAS `hidden` : la recherche possede deja cet attribut, et
   deux filtres qui se partagent le meme etat se rouvrent l'un l'autre. */
.gz-off { display: none; }

/* The order picker on the reference page. Its own bar since 20.08: the fold is gone. */
.sortbar {
  display: flex;
  direction: ltr;
  align-items: center;
  gap: var(--k-sp-8);
  flex-wrap: wrap;
  margin: 0 0 var(--k-sp-16);
}
.sort-lbl {
  color: var(--faint);
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-inline-end: var(--k-sp-4);
}
.sortbar .ctl { flex: 0 0 auto; }
.sort-btn.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }

/* --------------------------------------------------------- traducteur
 *
 * Une réponse, et une seule, en haut. Les variantes sont repliées dans un <details>.
 *
 * La mesure qui a dicté cette mise en page (production, 27/08/2026) : sur 19 requêtes,
 * 14 s'affichaient sous un titre « Hebrew — did you mean? » qui mettait en doute des mots
 * parfaitement corrects, et 18 portaient un badge de provenance. Trois badges de 10 px, même
 * forme et même bleu, donnaient la même autorité visuelle à une phrase relue à la main et à
 * une devinette de machine. Un signe affiché sur presque tout ne distingue plus rien.
 *
 * D'où la règle tenue ici : le badge n'existe QUE pour l'exception, une réponse non vérifiée.
 * Une réponse vue en cours ne porte aucune marque — c'est le cas normal, et le cas normal ne
 * se signale pas.
 */

.ut { margin-top: var(--k-sp-20); }

.ut-field {
  display: flex;
  align-items: flex-end;           /* la croix reste en bas a droite quand le texte grandit */
  direction: ltr;                  /* le RANG est ltr : la croix a droite, comme le champ de Claude ;
                                      le TEXTE garde dir=auto et s'aligne selon son ecriture */
  margin-bottom: var(--k-sp-20);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
}
.ut-field:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.ut-field textarea {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  padding: var(--k-sp-12) var(--k-sp-16);
  font-size: max(17px, calc(17px * var(--text-scale, 1)));                 /* 16px minimum, sinon iOS zoome au focus */
  font-family: inherit;
  line-height: 1.4;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: none;
  resize: none;
  overflow-y: auto;                /* au-dela de sept lignes, le texte defile dans le champ */
  /* Deux lignes au repos, sept au plus (07.10.2026 : « boite qui devrait avoir un peu
     plus de hauteur ») : une ligne seule laissait a peine voir ce qu'on tapait. */
  min-height: calc(2 * 1.4em + 24px);
  max-height: calc(7 * 1.4em + 24px);
}
/* L'hébreu tapé dans le champ doit s'afficher à droite, le latin à gauche. `dir=auto` laisse
   le navigateur trancher sur le premier caractère fort, ce qui est exactement la bonne règle
   pour un champ où les deux écritures arrivent. */
.ut-field textarea { unicode-bidi: plaintext; text-align: start; }

/* Le chargement a la forme de ce qui va arriver : deux barres qui scintillent la ou l'hebreu
   et sa lecture vont se poser, pas trois points. Le texte du moteur reste dans le DOM (les
   lecteurs d'ecran le lisent), seul son rendu est remplace par les barres. */
.ut-loading {
  position: relative;
  color: transparent;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  margin: var(--k-sp-8) 0;
  min-height: 48px;
}
.ut-loading::before, .ut-loading::after {
  content: '';
  position: absolute;
  right: 2px;                 /* la reponse est de l'hebreu : elle arrivera par la droite */
  height: 13px;
  border-radius: var(--k-r-8);
  background: linear-gradient(90deg, var(--card-hover) 25%, var(--border) 50%, var(--card-hover) 75%);
  background-size: 200% 100%;
  animation: ut-shimmer 1.1s linear infinite;
}
.ut-loading::before { top: 6px; width: 44%; }
.ut-loading::after { top: 30px; width: 28%; }
@keyframes ut-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.ut-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
  padding: var(--k-sp-16) var(--k-sp-20);
  display: flex;
  align-items: flex-start;
  gap: var(--k-sp-12);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ut-card:hover { border-color: var(--accent-dim); box-shadow: var(--k-ombre-e2); }
.ut-card + .ut-card { margin-top: var(--k-sp-8); }
.ut-text { flex: 1 1 auto; min-width: 0; }

.ut-he {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 2em;
  line-height: 1.6;
  color: var(--text);
}
body.cursive .ut-he { font-family: 'Gveret Levin', cursive; font-size: 2.3em; }
.ut-cursive {
  font-family: 'Gveret Levin', cursive;
  direction: rtl;
  unicode-bidi: isolate;
  font-size: 1.6em;
  color: var(--dim);
  line-height: 1.5;
}

/* La lecture ne se coupe jamais en fin de ligne : « me-tak- » sur une ligne et « NIM » sur la
   suivante enseigne un découpage syllabique qui n'existe pas. Même marché que .tr ailleurs
   dans ce fichier — si le mot ne tient pas, il déborde, et le débordement se voit. */
.ut-tr {
  /* La lecture en couleur d'accent, comme chez la grande soeur ulpan-hebrew : c'est la ligne
     qu'on vient chercher quand on ne sait pas encore lire l'hebreu, elle ne peut pas etre la
     plus grise de la carte. L'ecart entre les mots s'elargit pour que la frontiere de mot
     reste visible malgre les traits de syllabe. */
  color: var(--accent);
  font-size: calc(16px * var(--text-scale, 1));
  margin-top: var(--k-sp-4);
  word-spacing: 0.45em;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.ut-tr .tr-h { opacity: 0.42; }     /* les traits de syllabe s'effacent : ils séparent, ils ne se lisent pas */

/* L'appariement mot à mot (moteur, mode .ut-pairs) : chaque mot hébreu au-dessus de SA
   lecture, colonnes de droite à gauche. Le .ut-he plein reste dans le DOM pour les sondes et
   les hôtes (translator-recent) mais ne s'affiche pas — les paires portent le même hébreu. */
.ut-he-paired { display: none; }
.ut-pairs { display: flex; flex-wrap: wrap; direction: rtl; column-gap: var(--k-sp-16); row-gap: var(--k-sp-12); }
.ut-wp { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ut-wp-he {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  font-size: 1.6em;
  line-height: 1.4;
  color: var(--text);
  direction: rtl;
  unicode-bidi: isolate;
}
body.cursive .ut-wp-he { font-family: 'Gveret Levin', cursive; font-size: 1.9em; }
.ut-wp-tr {
  direction: ltr;
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  color: var(--accent);
  margin-top: var(--k-sp-4);
  overflow-wrap: normal; word-break: keep-all; hyphens: none;
}
.ut-wp-tr .tr-h { opacity: 0.42; }

.ut-meaning { margin-top: var(--k-sp-8); font-size: calc(16px * var(--text-scale, 1)); color: var(--text); }

/* Le badge, réservé à l'exception. Discret mais pas décoratif : c'est un avertissement, pas
   une étiquette de rangement, donc il emprunte la couleur d'alerte et non l'accent. */
.ut-badge {
  display: inline-block;
  margin-inline-start: var(--k-sp-8);
  padding: 1px var(--k-sp-8);
  border: 1px solid var(--warn);
  border-radius: 999px;
  color: var(--warn);
  background: transparent;
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  letter-spacing: 0.3px;
  text-transform: lowercase;
  vertical-align: 1px;
}

/* Le badge phonétique : ni alerte, ni silence. Le CONTENU vient du corpus — c'est la route qui
   était approximative, l'apprenant ayant écrit le son plutôt que les lettres. Lui donner la
   couleur d'alerte ferait douter d'un mot que la classe a donné ; le supprimer cacherait que
   l'app a interprété une orthographe. Il emprunte donc la couleur douce du texte secondaire. */
.ut-badge-phon {
  border-color: var(--border);
  color: var(--dim);
}


.ut-gnp { margin-top: var(--k-sp-8); color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.ut-gnp:empty { display: none; }
.ut-inf { margin-top: var(--k-sp-4); color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.ut-inf-he { font-size: calc(17px * var(--text-scale, 1)); color: var(--ink, inherit); }
/* La nature d'un mot est du latin dans une carte de droite a gauche : sans isolement, le point
   final de « noun · f. sing. » sautait en tete (capture du 05.10.2026). */
.ut-gnp > span { display: inline-block; direction: ltr; unicode-bidi: isolate; }
/* La racine merite mieux que la couleur du bruit : c'est la cle qui relie ce mot a tous ses
   freres, elle se lit, elle ne decore pas. */
.ut-root { margin-inline-start: var(--k-sp-12); font-family: 'Frank Ruhl Libre', 'David', serif; direction: rtl; unicode-bidi: isolate; color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }

.ut-tools { flex: 0 0 auto; display: flex; gap: var(--k-sp-8); }


/* --------------------------------------------------- traducteur : les deux boutons de la carte
 *
 * Le moteur pose `.ut-play` et `.ut-copy` ; leur apparence appartient a l'hote, et kita10 n'en
 * avait aucune. Mesure du 29.08.2026 : la carte de reponse montrait un triangle nu au chrome
 * de bouton par defaut et, a cote, une case vide de 25 x 21px — le bouton Copier, sans glyphe
 * et sous la moitie de la cible de 40px que la mesure d'ergonomie du 19.08 a etablie.
 *
 * Meme patron que `.say`, pour la meme raison : la couleur et l'etat suivent le masque sur le
 * pseudo-element, jamais sur le bouton, sinon c'est une boite transparente de 40px qu'on peint.
 */

.ut-play, .ut-copy {
  appearance: none;
  border: 0;
  padding: 0;
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  background: none;
  color: transparent;          /* le ▶ du moteur : la place est au masque */
  font-size: 0;
  opacity: .3;
  cursor: pointer;
  touch-action: manipulation;
  border-radius: var(--k-r-8);
  transition: opacity .18s ease;
}
.ut-play::before, .ut-copy::before {
  content: '';
  position: absolute;
  inset: 11px;
  background-color: var(--faint);
  transition: background-color .18s ease;
}
.ut-play::before { -webkit-mask: var(--spk) center / contain no-repeat; mask: var(--spk) center / contain no-repeat; }
.ut-copy::before { -webkit-mask: var(--cpy) center / contain no-repeat; mask: var(--cpy) center / contain no-repeat; }
.ut-play:hover, .ut-copy:hover, .ut-play:focus-visible, .ut-copy:focus-visible { opacity: 1; }
.ut-play:hover::before, .ut-copy:hover::before,
.ut-play:focus-visible::before, .ut-copy:focus-visible::before { background-color: var(--accent); }
.ut-play:focus-visible, .ut-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: -9px; }
/* `ut-copied` est pose par le moteur pendant 1,2 s. Sans regle ici, le clic ne repondait rien
   et le seul retour etait le presse-papier — invisible. */
.ut-copy.ut-copied { opacity: 1; }
.ut-copy.ut-copied::before { background-color: var(--accent); }
/* Pas de voix hebraique sur l'appareil : le bouton part, comme partout ailleurs. */
body.no-speech .ut-play { display: none; }

.ut-note {
  margin: var(--k-sp-12) var(--k-sp-4) 0;
  color: var(--dim);
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  line-height: 1.5;
  max-width: 60ch;
}

/* Les variantes. Repliées par défaut, et le compte est dans le libellé : « 3 autres
   possibilités » dit ce qu'on ouvre, là où un chevron seul n'annonce rien. */
/* Hors corpus : NOTRE carte, avec une ligne qui dit d'ou elle vient (04.09.2026). */
.ut-para-note { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); margin: -8px 0 var(--k-sp-12); text-align: end; }

.ut-alts { margin-top: var(--k-sp-12); }
/* Le pliant en micro-titre de section : capitales espacees + un filet qui court jusqu'au bord.
   Le filet dit « une section commence ici » la ou un chevron seul flotte dans le blanc. */
.ut-alts > summary {
  display: flex;
  align-items: center;
  gap: var(--k-sp-12);
  cursor: pointer;
  color: var(--faint);
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  text-transform: uppercase;
  letter-spacing: 1.1px;
  padding: var(--k-sp-8) var(--k-sp-4);
  list-style: none;
}
.ut-alts > summary::-webkit-details-marker { display: none; }
.ut-alts > summary::before { content: '▸'; }
.ut-alts[open] > summary::before { content: '▾'; }
.ut-alts > summary::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.ut-alts > summary:hover { color: var(--accent); }
.ut-alts .ut-card { background: transparent; border-style: dashed; }
.ut-alts .ut-he { font-size: 1.5em; }


/* --------------------------------------------------------- traducteur : le paradigme
 *
 * Toutes les conjugaisons et toutes les declinaisons du mot trouve, sous la reponse, par
 * defaut (29.08.2026). La carte EST celle de la table des verbes : elle est rendue au
 * build par verbWordCell / tenseStrip / tenseGrids, donc rien de sa mise en forme n'est
 * decide ici — .wline, .mline, .tstrip, .tgrid, .para-cell font deja tout le travail. Ce qui
 * suit est seulement le cadre autour, et le fait qu'une carte n'est pas une case de tableau.
 */

.ut-para { margin-top: var(--k-sp-20); }
.ut-para-lbl {
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--faint);
  text-transform: uppercase;
  margin: 0 0 var(--k-sp-8);
}
.para-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
  padding: var(--k-sp-12) var(--k-sp-16) var(--k-sp-16);
}
.para-card + .para-card { margin-top: var(--k-sp-12); }
/* La tete garde sa propre largeur : dans la table elle est une colonne de 32 %, ici elle a
   toute la carte, et le paradigme se pose dessous plutot qu'a cote. C'est la seule difference
   de forme entre la ligne et la carte, et elle est voulue — une carte n'a pas de colonnes. */
.para-card-head { margin-bottom: var(--k-sp-12); }
/* Un paradigme a un seul temps n'a pas de pastilles, donc rien ne separe sa tete de sa
   grille ; sans marge la glose touchait la premiere case. */
.para-card .tgrid { margin-top: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------- traducteur : les extras
 *
 * Ce qui s'ajoute SOUS la reponse, sur clic, jamais avant : mot a mot, version naturelle,
 * formes genrees. Chacune coute un appel au modele, d'ou le clic. Et chacune est ADDITIVE :
 * elle ne remplace pas la reponse et ne peut pas la retirer.
 *
 * Le style est deliberement plus discret que celui de la carte principale. Ces reponses
 * viennent toutes d'un modele et ne sont jamais verifiees ; leur donner le meme poids visuel
 * qu'une reponse vue en cours refarait le defaut qu'on vient de corriger.
 */

.ut-extras { margin-top: var(--k-sp-12); }

.ut-actbar { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); }
.ut-act {
  font: inherit;
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  color: var(--dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: var(--k-sp-4) var(--k-sp-12);
  cursor: pointer;
}
.ut-act:hover { color: var(--accent); border-color: var(--accent); }
.ut-act.on { background: var(--accent); color: #fff; border-color: var(--accent); }
/* Les actions qui APPELLENT le modele (mot a mot, version naturelle) portent la signature
   pointillee-accent de la grande soeur : pointille = pas relu par personne, accent = ca part
   sur le reseau quand on clique. Enregistrer, local et sur, garde le trait plein. */
.ut-act[data-act] { border-style: dashed; border-color: var(--accent-dim); color: var(--accent); }
.ut-act[data-act]:hover { border-style: solid; border-color: var(--accent); background: var(--accent-dim); }

.ut-working { color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); padding: var(--k-sp-8) var(--k-sp-4); }
.ut-act-out:empty, .ut-forms-out:empty { display: none; }
.ut-act-out, .ut-forms-out { margin-top: var(--k-sp-12); }

/* Une reponse de modele : encadre pointille, comme les variantes. Le pointille est le signe
   commun de « ceci n'a ete relu par personne ». */
.ut-mini {
  border: 1px dashed var(--border);
  border-radius: var(--k-r-12);
  padding: var(--k-sp-12) var(--k-sp-16);
}
.ut-mini + .ut-mini { margin-top: var(--k-sp-8); }
.ut-mini-he {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  direction: rtl; unicode-bidi: isolate;
  font-size: 1.6em; line-height: 1.6;
}
body.cursive .ut-mini-he { font-family: 'Gveret Levin', cursive; font-size: 1.9em; }
.ut-mini-tr {
  color: var(--accent); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); word-spacing: 0.45em;
  overflow-wrap: normal; word-break: keep-all; hyphens: none;
}
.ut-mini-note { color: var(--faint); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); margin-top: var(--k-sp-4); }

/* Le mot a mot. Colonnes de droite a gauche, chaque mot au-dessus de sa lecture et de son sens
   — la meme mise en page que les tables de vocabulaire du reste du site, pour que l'oeil n'ait
   pas a reapprendre a lire une fois arrive ici. */
.ut-mw {
  display: flex; flex-wrap: wrap; gap: var(--k-sp-12);
  direction: rtl;
}
/* Chaque mot est une vraie carte, pas une colonne nue dans un cadre : l'oeil isole un mot
   d'un coup d'oeil, et le pointille garde son sens (une reponse de modele, relue par
   personne). Meme mouvement que la grande soeur (.mw). */
.ut-mw-w {
  min-width: 84px;
  border: 1px dashed var(--border);
  border-radius: var(--k-r-12);
  padding: var(--k-sp-12) var(--k-sp-12) var(--k-sp-12);
  background: var(--card);
  transition: border-color .2s ease;
}
.ut-mw-w:hover { border-color: var(--accent-dim); }
.ut-mw-he {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  direction: rtl; unicode-bidi: isolate;
  font-size: 1.35em; line-height: 1.5;
}
.ut-mw-tr {
  color: var(--accent); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); direction: ltr; text-align: right;
  overflow-wrap: normal; word-break: keep-all; hyphens: none;
}
.ut-mw-gl { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); direction: ltr; text-align: right; }
.ut-mw-gl:empty { display: none; }
.ut-mw-root {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  color: var(--faint); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
}
.ut-mw-m { color: var(--faint); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); direction: ltr; text-align: right; }

.ut-forms { margin-top: var(--k-sp-12); display: flex; flex-wrap: wrap; align-items: center; gap: var(--k-sp-8); }
.ut-forms-lbl { color: var(--faint); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }
.ut-forms-out { flex: 1 0 100%; }

/* --------------------------------------------------------- ou ranger un mot
 * La liste qui s'ouvre sous le bouton Enregistrer. Elle se ferme au clic ailleurs : deux listes
 * ouvertes en meme temps et on ne sait plus laquelle range quoi. */
.ut-pick {
  position: relative;
  margin-top: var(--k-sp-8);
  border: 1px solid var(--border);
  border-radius: var(--k-r-12);
  background: var(--card);
  overflow: hidden;
  min-width: 190px;
}
.ut-pick-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--k-sp-12);
  width: 100%; padding: var(--k-sp-8) var(--k-sp-12);
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); text-align: start;
  color: var(--text); background: transparent; border: 0; cursor: pointer;
}
.ut-pick-row + .ut-pick-row { border-top: 1px solid var(--border); }
.ut-pick-row:hover { background: var(--card-hover); }
.ut-pick-n { color: var(--faint); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
.ut-pick-new { color: var(--accent); }

/* --------------------------------------------------------- le carnet
 * Les mots enregistres. Suppression d'une COLLECTION sans confirmation (elle ne detruit rien,
 * les mots retombent ailleurs) ; suppression d'un MOT avec, parce que la, oui. Le rouge est
 * reserve a la seconde. */
.col { margin-top: var(--k-sp-20); }

/* Rangee latine : sous le dir=rtl de la page elle se posait a l'envers (mesure de
   verify-bidi, 30.08.2026, qui juge desormais aussi l'ordre des BOITES). */
.col-tabs { display: flex; direction: ltr; flex-wrap: wrap; gap: var(--k-sp-8); margin-bottom: var(--k-sp-16); }
.col-tab {
  display: inline-flex; align-items: center; gap: var(--k-sp-8);
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  color: var(--dim); background: transparent;
  border: 1px solid var(--border); border-radius: 999px;
  padding: var(--k-sp-8) var(--k-sp-16); cursor: pointer;
}
.col-tab:hover { color: var(--accent); border-color: var(--accent); }
.col-tab.is-on { background: var(--accent); color: #fff; border-color: var(--accent); }
.col-tab.is-on .col-n { color: rgba(255,255,255,0.75); }
.col-n { color: var(--faint); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
.col-add { color: var(--accent); border-style: dashed; }

.col-head { display: flex; gap: var(--k-sp-8); margin-bottom: var(--k-sp-12); }

.col-btn {
  font: inherit; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  color: var(--dim); background: transparent;
  border: 1px solid var(--border); border-radius: 999px;
  padding: var(--k-sp-4) var(--k-sp-12); cursor: pointer;
}
.col-btn:hover { color: var(--accent); border-color: var(--accent); }
.col-del:hover { color: var(--warn); border-color: var(--warn); }

.col-list { list-style: none; margin: 0; padding: 0; }
.col-item {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--k-sp-16);
  background: var(--card);
  border: 1px solid var(--border); border-radius: var(--k-r-12);
  padding: var(--k-sp-16) var(--k-sp-16);
}
.col-item + .col-item { margin-top: var(--k-sp-8); }
.col-item-main { flex: 1 1 auto; min-width: 0; }
.col-item-acts { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: var(--k-sp-8); justify-content: flex-end; }

.col-he {
  font-family: 'Frank Ruhl Libre', 'David', serif;
  direction: rtl; unicode-bidi: isolate;
  font-size: 1.6em; line-height: 1.6;
}
body.cursive .col-he { font-family: 'Gveret Levin', cursive; font-size: 1.9em; }
.col-tr {
  color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  overflow-wrap: normal; word-break: keep-all; hyphens: none;
}
.col-en { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin-top: var(--k-sp-4); }
.col-note { color: var(--faint); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); margin-top: var(--k-sp-4); font-style: italic; }

.col-move {
  font: inherit; font-size: max(var(--k-fs-petit), calc(var(--k-fs-petit) * var(--text-scale, 1)));
  color: var(--dim); background: var(--card);
  border: 1px solid var(--border); border-radius: 999px;
  padding: var(--k-sp-4) var(--k-sp-12); max-width: 150px;
}

.col-edit { margin-top: var(--k-sp-12); display: grid; gap: var(--k-sp-8); }
.col-edit label { display: grid; gap: var(--k-sp-4); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); }
.col-edit input {
  font: inherit; font-size: max(var(--k-fs-corps), calc(var(--k-fs-corps) * var(--text-scale, 1))); color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--k-r-8);
  padding: var(--k-sp-8) var(--k-sp-12);
}
.col-edit input:focus { outline: none; border-color: var(--accent); }
.col-edit-acts { display: flex; gap: var(--k-sp-8); }

.col-empty { color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); max-width: 56ch; }
.col-tools { display: flex; direction: ltr; gap: var(--k-sp-8); margin-top: var(--k-sp-20); }

@media (max-width: 520px) {
  .col-item { flex-direction: column; gap: var(--k-sp-12); }
  .col-item-acts { justify-content: flex-start; }
}

/* --------------------------------------------------------- les bandes de commandes
 *
 * MESURE DU 30.08.2026, page des tableaux a 390px : le premier verbe commencait a 1087px,
 * soit 1,3 ecran de commandes avant le moindre contenu. Trois bandes de pastilles y
 * pesaient 447px a elles seules — onze volets sur trois rangees, cinq binyanim sur trois,
 * douze gzarot sur quatre. Demande : « ca fait bordel quand t'arrives dessus ».
 *
 * Chaque bande tient desormais sur UNE ligne et defile dans sa propre boite. C'est le patron
 * deja etabli pour le rail de navigation (« le contenu large defile dans sa boite, le corps
 * jamais ») : rien n'est retire, rien n'est cache derriere un depliant — que l'auteur a refuse
 * le 17/08 — et la page rend sa hauteur au contenu.
 */
.tabs, .btabs, .btabs-gz, .sortbar {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar, .btabs::-webkit-scrollbar,
.btabs-gz::-webkit-scrollbar, .sortbar::-webkit-scrollbar { display: none; }
/* Sur un ecran large la place existe : la bande reprend son enveloppement, ou tout se voit
   d'un coup sans avoir a balayer. */
@media (min-width: 900px) {
  .tabs, .btabs, .btabs-gz, .sortbar { flex-wrap: wrap; overflow-x: visible; }
}
/* Une pastille ne se laisse pas ecraser par la boite qui defile. */
.tabs .tab, .btabs .btab, .sortbar .ctl { flex: 0 0 auto; }

/* L'EN-TETE TIENT SUR UNE LIGNE. Le surtitre (« 1432 entrées, 26 jours ») prenait une ligne
   entiere pour un compte, au-dessus d'un titre qui, lui, tient en deux mots : 105px d'en-tete
   plus 83px d'intro sur une page qu'on ouvre tous les jours. Poses cote a cote, le titre se
   lit et le compte l'accompagne au lieu de le preceder. `row-reverse` parce que le surtitre
   vient AVANT le titre dans le balisage — l'ordre du DOM sert le lecteur d'ecran, qui entend
   le contexte d'abord ; l'ordre visuel le suit. */
header > div {
  display: flex;
  flex-direction: row-reverse;
  align-items: baseline;
  justify-content: flex-end;
  gap: var(--k-sp-12);
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  header { padding-bottom: var(--k-sp-12); margin-bottom: var(--k-sp-16); }
  .intro { margin-bottom: var(--k-sp-20); }
}

/* Les etiquettes des bandes ne se cassent pas en deux : « ROOT CLASS » passait a la ligne et
   faisait grimper une bande d'une ligne entiere pour deux mots. Elles restent — sans elles,
   trois rangees de pastilles a la suite ne disent pas de quoi elles parlent, et « sain /
   creux » ne veut rien dire pour qui ne sait pas encore que c'est une classe de racine. */
.sort-lbl, .gz-lbl { white-space: nowrap; flex: 0 0 auto; }

/* ================================================================= go all — 30.08.2026
 *
 * Six defauts mesures le meme jour, corriges ensemble parce qu'ils tirent tous sur la
 * meme chose : ce qu'on peut LIRE et ce qu'on peut TOUCHER. Pose en fin de feuille parce
 * que les regles d'origine sont plus loin dans le fichier et gagnaient a specificite egale
 * (leçon du 30.08 : un bloc identique place plus haut n'avait aucun effet).
 */

/* --- 1 · la rangee de focus tient sur UNE ligne -----------------------------------------
 * Onze boutons enveloppes sur trois rangees : 110px de commandes entre « Reviser » et la
 * premiere question, sur l'ecran qu'on ouvre tous les jours. Meme remede que les bandes de
 * la reference — une ligne qui defile — et la hauteur passe a celle d'un seul bouton. */
.drill-focus {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  justify-content: flex-start;
}
.drill-focus::-webkit-scrollbar { display: none; }
.drill-focus-btn { flex: 0 0 auto; min-height: 40px; }
@media (min-width: 900px) {
  .drill-focus { flex-wrap: wrap; overflow-x: visible; justify-content: center; }
}

/* --- 2 · ce qu'on touche fait au moins 40px ---------------------------------------------
 * Le depot s'est fixe 40px et trois commandes etaient dessous : les onglets a 28px, le
 * bouton qui sort d'un tour a 21px. Les agrandir vraiment aurait ajoute douze pixels de
 * chrome a CHAQUE page, ce qui defait le travail d'epure du meme jour. La zone sensible
 * s'etend donc par-dessus, sans toucher a la hauteur posee : le doigt gagne, la page non.
 * Les debords horizontaux restent sous la moitie de l'ecart entre deux pastilles, sinon
 * deux zones voisines se recouvriraient et le mauvais onglet s'ouvrirait. */
.pagetab { position: relative; }
.pagetab::after {
  content: '';
  position: absolute;
  inset: -6px -3px;
}
.drill-quit { position: relative; }
.drill-quit::after {
  content: '';
  position: absolute;
  inset: -10px -8px;
}

/* --- 3 · le compte sur une pastille selectionnee se lit -----------------------------------
 * `.sub-count` est gris (var(--dim)) et la pastille active est bleue : gris sur bleu, autour
 * de 1,5:1. Seule l'opacite changeait, ce qui ne peut pas rattraper une couleur. */
.btab.is-on .sub-count,
.btab.is-on .sub-count * { color: #fff; opacity: .92; }
/* 0,92 et pas 0,8 : le blanc a 80% donne #cce3f1 sur #0071B9, soit 3,90:1, sous le seuil de
   4,5:1 que ce texte de 11px doit tenir. A 0,90 on est a 4,51:1, a 0,92 un peu au-dessus, et
   le compte reste visiblement second par rapport au nom du binyan. Le gris d'origine etait a
   1,51:1 — calcule, pas estime. */

/* --- 4 · la translitteration n'est plus le plus petit texte de l'app ----------------------
 * 11px pour la lecture, 10,5px pour l'etiquette de forme — c'est-a-dire que la bequille dont
 * un debutant se sert le plus etait ecrite plus petit que tout le reste de la page. Les
 * tailles remontent ; verify-table-fit et verify-collide disent si la colonne le supporte,
 * et ce sont eux qui tranchent, pas l'oeil. */
@media (max-width: 560px) {
  .cell-tr { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
}
.tgrid .para-tag { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); letter-spacing: .5px; }
.tgrid .para-cell[data-person] .para-tag { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }

/* --- 5 · la paire de boutons de la page hors-ligne ---------------------------------------
 * `.cta` est `flex: 1` et attendait un parent en flex qu'aucune regle ne posait. */
.ctas { display: flex; direction: ltr; gap: var(--k-sp-12); margin-top: var(--k-sp-20); }

/* --- 6 · la profondeur de la table des verbes -------------------------------------------
 * 161 fiches, 313px de mediane, 54 753px en tout : cinquante-deux ecrans, ou l'on ne voit
 * jamais deux verbes a la fois. Les 192px de grille font 61% d'une fiche, et dans chaque
 * case la lecture etait EMPILEE sous le mot — donc trois lignes empilees (etiquette, mot,
 * lecture) pour trois choses qui tiennent cote a cote. Rien n'est cache, rien ne se replie
 * (17.08 : « j'aime pas les parties depliables ») : c'est la meme information posee
 * a plat. La ligne peut retomber a deux si un mot est long — c'est voulu, un mot ne se
 * casse jamais ici, c'est la case qui cede.
 */
.tgrid .para-cell {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--k-sp-4) var(--k-sp-8);
  padding: var(--k-sp-4) var(--k-sp-8);
}
.tgrid .para-tag { margin-block-end: 0; flex: 0 0 auto; }
.tgrid .para-cell > div:not(.para-tag) { min-width: 0; }
/* La lecture se range SOUS le mot, toujours. 01.09.2026 : « des translitterations se
   trouvent a gauche de l'hebreu alors que ca devrait tjs etre en dessous, surtout la forme
   masc singulier ». La regle precedente la posait a cote pour gagner de la hauteur ; restant
   dans le flux, elle n'y tenait que si elle rentrait, et c'est la LARGEUR DE L'ECRAN qui
   decidait. Mesure du 01.09 sur les 649 cases de la page : a cote pour 147 cases a 320px,
   380 a 390px, 561 a 430px — et la forme masculin singulier, la plus courte, y passait la
   premiere (137 des 380 a 390px). Une mise en page qui change de sens avec la largeur n'est
   pas une mise en page.
   `display: block` remet la lecture sur sa propre ligne dans les deux volets qui portent des
   paradigmes (les tableaux et la carte du traducteur), au prix d'une ligne par case. */
/* La lecture prend la case ENTIERE, etiquette comprise. Elle n'avait que la colonne du mot,
   soit trente-quatre pixels de moins, et « heyitem » (הֱיִיתֶם) y etait rogne de 5px sur les
   grands ecrans — mesure de verify-table-fit, 20 combinaisons sur 280. Une lecture ne se coupe
   pas au milieu d'un mot ; c'est donc la place qu'on lui donne. Effet de bord assume : les
   lectures partagent desormais le bord droit de la CASE, pas celui du mot. */
.tgrid .cell-tr { display: block; margin-inline-start: 0; grid-column: 1 / -1; grid-row: 2; }

/* --- 7 · les commandes qu'on touche vraiment font 40px ------------------------------------
 * Le reste du recensement du 30.08 : 642 pastilles de temps a 30x30, les pastilles de binyan
 * a 37, le selecteur d'ordre a 33. Ici on agrandit POUR DE BON plutot que d'etendre la zone
 * par-dessus : ces commandes sont serrees les unes contre les autres, et deux zones sensibles
 * qui se recouvrent ouvrent le mauvais onglet — un defaut pire que celui qu'on repare. Le
 * cout est de dix pixels par fiche de verbe, sur les onze mille cinq cents que la mise a plat
 * des cases vient de rendre. */
.tpill { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.ctl.btab, .ctl.sort-btn, .tab { min-height: 40px; }

/* --- 8 · les trois dernieres cibles, mesurees par verify-tap ------------------------------
 * `::after` ne sert a rien dans une boite qui defile : `overflow-x: auto` implique un
 * rognage vertical, donc la zone etendue de l'onglet de page etait coupee net par sa bande.
 * Mesure a l'appui (verify-tap, 320px) : quatre points sur cinq lui revenaient, le cinquieme
 * partait au conteneur. Ces trois-la grandissent donc pour de vrai. Douze pixels de plus
 * dans la bande d'onglets, sur toutes les pages ; c'est le prix d'un onglet qu'on touche du
 * premier coup, et le meme jour a rendu 129px sur Réviser et 11 500 sur les Tables. */
.pagetab { min-height: 40px; display: inline-flex; align-items: center; }
.pagetab::after { content: none; }
.pager a { display: inline-flex; align-items: center; min-height: 40px; }
.col-btn { min-height: 40px; }
.col-tab { min-height: 40px; }

/* --- 9 · le plancher de lisibilite, applique la ou verify-legibility l'a trouve ------------
 * La sonde des tailles et des contrastes, ecrite le meme jour, a trouve sept textes sous 12px
 * et deux sous le seuil de contraste — dont des choses qu'aucun oeil n'avait relevees en six
 * semaines : les en-tetes de colonne d'un paradigme a 9,5px, une translitteration longue a
 * 10,5px alors qu'on venait de « reparer » les translitterations, et deux comptes rendus
 * pales par une simple opacite posee sur une couleur deja claire. Une opacite ne rattrape
 * jamais une couleur : elle ne fait que rapprocher le texte de son fond. */
.hero-date-tr { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
.latest-eyebrow { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
.tag { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
/* `:not(.tr-xlong)` — sans quoi cette ligne, plus tardive dans la cascade, ecrasait le
   palier deja mesure pour les lectures les plus longues (10,5px sous 440px, 9,5px sous
   340px) et « arche'ologiyot » debordait sa colonne de douze pixels a 320px. Le depot a
   deja tranche ce marche : un mot ne se coupe jamais, donc c'est le corps qui cede. */
.tr.tr-long:not(.tr-xlong), .tr-long:not(.tr-xlong) { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
.tbl th { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
/* Le compte a cote d'un nom de binyan : 11px et une opacite de 0,65 sur du gris, soit 3,25:1.
   Il redescend d'un ton par la COULEUR, ce qui garde la hierarchie sans rendre le chiffre
   illisible. */
.btab .sub-count { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); opacity: 1; color: var(--faint); }
.col-tab.is-on .col-n { color: rgba(255, 255, 255, 0.92); }
/* Les etiquettes de bande et de type de section : 10,5 et 11px. Elles nomment ce qu'on
   regarde (« ORDRE », « CLASSE DE RACINE », « Notes ») ; illisibles, elles ne nomment rien. */
.sort-lbl, .gz-lbl, .kind { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }

/* --- 10 · l'en-tete d'un paradigme se lit de gauche a droite -------------------------------
 * verify-bidi, apres la remontee des tailles : « desertm », « touristm », « classroomf ».
 * `.para-head` ne porte que du latin — une glose et une etiquette de genre — et heritait du
 * `dir="rtl"` du document, donc l'etiquette se posait AVANT le mot. Le defaut existait avant
 * aujourd'hui ; c'est en ramenant l'etiquette a 12px qu'elle a cesse de passer a la ligne, et
 * la sonde, qui ne juge que des runs poses sur la MEME ligne, a enfin pu le voir. Chaque run
 * hebreu garde son propre `dir="rtl"` pose par le build, donc forcer le conteneur ne retourne
 * rien de ce qui doit courir a l'envers. */
.para-head { direction: ltr; }
/* Une lecture ne se coupe JAMAIS au milieu d'un mot : « mitrachatzim » ecrit sur deux lignes
   est illisible dans une langue qu'on apprend, et c'est une regle du depot, pas un gout.
   La regle date du temps ou la lecture etait posee a cote du mot et manquait de largeur ; elle
   a maintenant la case entiere et n'a plus besoin d'etre secourue, mais l'interdit de coupure
   vaut pour lui-meme et se garde. */
.tgrid .cell-tr { white-space: nowrap; }

/* --- 11 · le filtre par classe de racine ne masquait rien sur telephone -------------------
 * 31.08.2026 : « quand je clique sur une classe de racine ca ne trie pas les verbes ».
 * `.gz-off { display: none }` a une specificite de (0,1,0) ; sous 700px la fiche de verbe est
 * posee par `.tbl-tenses tr { display: block }`, qui vaut (0,1,1) et gagne. La classe etait
 * bien posee sur les bonnes lignes — le DOM disait vrai — et l'ecran ne bougeait pas. Sur un
 * ecran large, ou cette regle de telephone ne s'applique pas, le filtre marchait : c'est ce
 * qui a laisse passer la sonde, qui mesurait la ou c'etait facile.
 * On ne met pas `!important` : on nomme le meme element assez precisement pour gagner. */
.tbl-tenses tr.gz-off,
.tbl-collection tr.gz-off,
tr.gz-off { display: none; }

/* ================================================================ LA LIGNE DE FIL — 31.08.2026
 *
 * Quatre bandes de pastilles empilees en tete de la page des tableaux : volet, ordre, binyan,
 * classe de racine — 26 commandes et 200px avant le premier verbe, alors qu'on ne manipule
 * qu'un axe a la fois. Le fil les remplace par une ligne qui DIT ou l'on est ; toucher un
 * segment ouvre sa bande, et une seule est ouverte a la fois.
 *
 * Les bandes ne sont pas supprimees, elles sont repliees sous `body.has-fil` : leur logique et
 * les sondes qui la gardent restent entieres, et un lecteur sans JS garde les quatre bandes
 * plutot qu'une ligne morte (le fil naît `hidden`, le script le devoile). */
.fil {
  display: flex;
  direction: ltr;
  align-items: center;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  gap: var(--k-sp-4);
  margin-block: var(--k-sp-12) var(--k-sp-16);
  min-height: 40px;
}
.fil::-webkit-scrollbar { display: none; }
.fil-seg {
  flex: 0 0 auto;
  font: inherit;
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1));
  font-weight: 600;
  color: var(--text);
  background: none;
  border: 0;
  border-radius: var(--k-r-8);
  padding: var(--k-sp-8) var(--k-sp-8);
  min-height: 40px;
  cursor: pointer;
}
/* Un axe sur « tout » porte son NOM et se tient en retrait : il dit ce qu'on peut y choisir,
   sans se donner l'air d'un filtre actif. La couleur descend d'un ton — jamais l'opacite,
   qui rapprocherait le texte de son fond (mesure du 30.08 : 3,25:1). */
.fil-seg.is-any { color: var(--faint); font-weight: 400; }
.fil-seg.is-open { background: var(--accent); color: #fff; }
.fil-seg.is-open .fil-n { color: #fff; }
.fil-seg:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fil-n {
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  color: var(--faint);
  margin-inline-start: var(--k-sp-4);
}
/* `--faint` et pas `--border` : le point separateur en couleur de bordure donnait 1,19:1,
   soit un caractere qu'on ne voit pas — et c'est lui qui dit ou finit un segment et ou
   commence le suivant. verify-legibility l'a releve le jour meme ou il est ne. */
.fil-sep { flex: 0 0 auto; color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }

/* Repliees par defaut, montrees une a la fois. `.fil-open` est pose par app.js sur la seule
   bande ouverte. La regle vise `body.has-fil` : sans script, rien n'est cache. */
body.has-fil .tabs,
body.has-fil .sortbar,
body.has-fil .btabs { display: none; }
body.has-fil .tabs.fil-open,
body.has-fil .sortbar.fil-open,
body.has-fil .btabs.fil-open { display: flex; }
/* Le libelle de la bande ouverte ne sert plus a rien : le segment qu'on vient de toucher dit
   deja de quel axe il s'agit, et le repeter juste dessous est le doublon qu'on retire ailleurs. */
body.has-fil .sort-lbl,
body.has-fil .gz-lbl { display: none; }

/* --- 12 · les deux doublons de la page des tableaux (31.08.2026) --------------------------
 * Le titre d'un bloc de binyan repete, mot pour mot et compte compris, le segment du fil
 * qu'on vient de toucher. Sous « tout » les cinq titres restent : ils separent les blocs.
 * Des que le fil montre un binyan choisi, le titre qui reste ne dit plus rien de neuf. */
body.one-binyan .coll-sub > .sub-title { display: none; }
/* Les notes de bloc : cinq notes, 380px, pour un texte lu une fois puis franchi tous les
   jours. Le texte reste dans la config et dans le document ; `showBlockNotes: true` le rend. */
body.no-block-notes .ref-pane .section-note { display: none; }

/* --- 14 · le cursif sous la main, sur la page du traducteur (01.09.2026) ------------------
 * Demande : « pas de clavier hebreu mais bouton cursif ». Le reglage existait, dans le menu, a
 * un geste ; sur la page ou l'on lit une reponse en ktav yad, un geste par mot est un geste de
 * trop. Le bouton n'est pas un nouveau reglage : meme cle, meme stockage, meme etat que celui
 * du menu (cf. `translator.cardControls`).
 * Il est POSE SOUS LE CHAMP et non a cote : a cote, il prend de la largeur a l'endroit ou l'on
 * tape, qui est le pire endroit ou en perdre. Il s'aligne sur le bord OU COMMENCE le champ.
 * `direction: ltr` est pose explicitement : la barre du traducteur herite `rtl` (elle porte de
 * l'hebreu), et sans cela l'alignement de cette bande latine dependrait d'un heritage — il
 * etait juste par accident, ce qui tient jusqu'au jour ou l'heritage change. */
.ut-ctls {
  display: flex;
  direction: ltr;
  justify-content: flex-start;
  gap: var(--k-sp-8);
  margin: var(--k-sp-8) 0 0;
}
/* Le plancher de 40px du depot vaut ici aussi : la premiere version faisait 64x32 et
   verify-tap l'a rougie le jour meme. Un bouton qu'on presse a chaque mot est le dernier ou
   economiser huit pixels.
   `position: relative` + `z-index` parce que la barre du traducteur pose un decor par-dessus
   ses enfants : la pastille etait mesuree comme recouverte, donc pressable par endroits
   seulement. */
.ut-ctl {
  font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1));
  padding: var(--k-sp-4) var(--k-sp-12);
  min-height: 40px;
  position: relative;
  z-index: 1;
}

/* --- 13 · l'hebreu s'aligne dans les paradigmes (31.08.2026) -------------------------------
 * Demande : « surtout l'hebreu dans les tables, c'est desaligne ». Mesure : la case est une
 * rangee souple, l'etiquette y est un bloc de largeur VARIABLE (m.s 21px, f.s 16px, m.pl 28px,
 * et jusqu'a 33px pour « הֵם / הֵן »), et comme elle vient avant le mot en lecture RTL, elle
 * pousse l'hebreu d'autant. Bords droits mesures : 7px d'ecart sur une grille d'accord, 19px
 * sur une grille de personnes. Rien ne s'alignait verticalement.
 *
 * Une GRILLE a deux colonnes plutot qu'une rangee souple : l'etiquette tient une colonne de
 * largeur fixe, le mot prend le reste. Le bord droit de l'hebreu devient alors le meme dans
 * toute la case, donc dans toute la fiche, donc dans toute la table — il ne depend plus de la
 * longueur de l'etiquette. La largeur vient de la plus large mesuree, pas d'un chiffre choisi
 * a l'oeil. */
.tgrid .para-cell {
  display: grid;
  /* etiquette · mot. Le bord de depart du mot ne depend que de la colonne fixe qui le precede,
     donc il est le meme dans toute la case, toute la fiche, toute la table. Deux colonnes et
     non trois : un troisieme couloir pour le bouton d'ecoute ajouterait un second `column-gap`
     a chaque case, et la page des tableaux debordait alors d'un pixel a 700px exactement. */
  grid-template-columns: 34px 1fr;
  align-items: baseline;
  column-gap: var(--k-sp-8);
  row-gap: var(--k-sp-4);
}
.tgrid .para-tag {
  grid-column: 1;
  min-width: 0;
  text-align: start;
}
/* Le mot et son bouton d'ecoute tiennent la colonne 2 ; la lecture est leur SOEUR, pas leur
   fille (cf. paraCellParts) — imbriquee, elle serait bornee a cette colonne, et une ligne de
   grille ne se prend pas depuis l'interieur d'un autre element.
   Pas de `min-width: 0` sur le mot, et c'est mesure : il autorise la colonne a passer sous sa
   propre largeur, et sur les grands ecrans huit formes se faisaient rogner de 2 a 10px
   (verify-table-fit). Le mot garde sa largeur ; c'est la lecture qui prend la case entiere. */
.tgrid .para-word { grid-column: 2; grid-row: 1; text-align: start; }
/* Sous 340px la case tombe sous 140px : trente-quatre pixels d'etiquette y prendraient le
   quart de la ligne et pousseraient le mot a la casse. La colonne se resserre — l'alignement
   tient toujours, il tient simplement plus pres. */
@media (max-width: 340px) {
  .tgrid .para-cell { grid-template-columns: 28px 1fr; column-gap: var(--k-sp-4); }
}

/* --------------------------------------------------------- text passages (03.09.2026)

   A `text` section prints a passage the class read, one sentence per line: Hebrew, reading,
   meaning. Same bones as a dialogue, more air, no speaker column. the Ofakim day:
   « épuré et aéré ». A `line-head` is the title of a slide or a page, set small above its
   sentences. */
.text .line { grid-template-columns: 36px 1fr; gap: var(--k-sp-12); padding: var(--k-sp-20) var(--k-sp-4) var(--k-sp-16); }
.text .line-n { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); padding-top: var(--k-sp-8); }
.text .line-he .he { font-size: 1.35em; line-height: 1.7; }
.text .line-tr { margin-top: var(--k-sp-4); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.text .line-gl { margin-top: var(--k-sp-8); color: var(--dim); }
/* Une adresse web imprimee dans un texte (le sujet Bet cite sa page Wikipedia) ne se coupe a aucun espace :
   sans cette regle elle elargissait la page de 60 px a 390 px. */
.text .line-body { min-width: 0; }
.text .line-he .he, .text .line-tr, .text .line-gl { min-width: 0; overflow-wrap: anywhere; }
.line-head { padding: 28px var(--k-sp-4) var(--k-sp-4) 52px; }
.line-head .he { font-size: 1.05em; color: var(--dim); }
.text .line-head + .line { border-top: 1px solid var(--border); }

/* The head of a wide paradigm (the past tenses) put the po'al card BESIDE the meaning, and
   the card floated to the right of a short gloss with the root squeezed under it —
   03.09.2026: « mieux mettre en page les infinitifs ». The infinitive now leads, on its own
   line, reading under it; the meaning and the root follow, one thing per line. */
.para-head { display: flex; flex-direction: column; gap: var(--k-sp-4); padding: var(--k-sp-12) var(--k-sp-16); background: var(--accent-dim); border-radius: var(--k-r-8); }
.para-head .poal { order: -1; display: block; margin-top: 0; padding: 0; background: none; }
.para-head .poal .he { font-size: 1.7em; line-height: 1.5; }
.para-head .poal .poal-tr { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); margin-top: var(--k-sp-4); }
.para-head .poal .poal-root { margin-top: var(--k-sp-8); }
.para-head .cell-word { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.para-head .cell-sub { margin-top: var(--k-sp-4); }
/* The infinitive sits on the same edge as the forms below it (Hebrew hugs the right). */
.para-head .poal { text-align: end; }

/* Dialogues print again (03.09.2026 : « plus de phrases hébreu traduites, avoir des
   phrases à apprendre ») and take the same air as a text passage. They had been hidden on
   17.08.2026 for the height they cost; the sentences are now what the page is for. */
.dialogue .line { gap: var(--k-sp-12); padding: var(--k-sp-20) var(--k-sp-4) var(--k-sp-16); }
.dialogue .line-he .he { font-size: 1.35em; line-height: 1.7; }
.dialogue .line-tr { margin-top: var(--k-sp-4); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.dialogue .line-gl { margin-top: var(--k-sp-8); color: var(--dim); }
/* Measured after promoting the sentence drills: day 29's page reached 47 screens at 390px.
   The line keeps its air but not 18px on both sides. */
.text .line, .dialogue .line { padding: var(--k-sp-12) var(--k-sp-4) var(--k-sp-12); }

/* tr-xxlong dans un tableau : `.tbl .cell-tr { word-break: keep-all }` (plus bas dans la
   cascade, meme specificite) rendait la regle generale lettre morte — les quatre lectures de
   לְצַחְצֵחַ restaient rognees de 2 a 16px a 700 et 768px. Une specificite au-dessus, en fin de
   feuille, pour ces lectures seules (03.09.2026). */
.tbl .cell-tr.tr-xxlong, .para-cell .cell-tr.tr-xxlong { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); letter-spacing: -0.02em; }

/* « Sans translitteration » (menu et barre du traducteur), 16.09.2026. Masquer, jamais plier :
   le pliage a ete retire le 19.08. Toute lecture du site porte une de ces classes (recensement
   des classes du site et des scripts le 16.09) ; une nouvelle classe de lecture s'ajoute ici. */
body.no-translit :is(.tr, .cell-tr, .row-tr, .line-tr, .rline-tr, .poal-tr, .reveal-tr, .rp-tr,
  .col-tr, .srs-tr, .srs-poal-tr, .ut-tr, .ut-wp-tr, .ut-mw-tr, .ut-mini-tr, .hero-date-tr, .ut-turn-tr),
html[data-translit-cache] body.translate :is(.tr, .cell-tr, .row-tr, .line-tr, .rline-tr, .poal-tr, .reveal-tr, .rp-tr,
  .col-tr, .srs-tr, .srs-poal-tr, .ut-tr, .ut-wp-tr, .ut-mw-tr, .ut-mini-tr, .hero-date-tr, .ut-turn-tr) {
  display: none !important;
}

/* Version ordinateur des tables (16.09.2026 : « la version web ordinateur pourrait etre
   mieux »). A 1440px la page gardait 900px au centre et 540px de marges vides, pendant que les
   dix personnes du passe s'empilaient sur trois rangees. Les pages de collection seules
   s'elargissent : une page de cours reste a 900px, une ligne de prose plus longue se lit mal. */
@media (min-width: 1280px) {
  body.collection .container { max-width: 1180px; }
}
/* La racine prenait la place laissee par le mot : sur la meme ligne que les pastilles pour un
   verbe court, en dessous pour un verbe long, donc une rangee sur trois ne ressemblait pas aux
   autres. Sur ordinateur elle a toujours sa ligne, sous l'infinitif. */
@media (min-width: 700px) {
  .tbl-tenses .wline .poal-root-up { flex-basis: 100%; }
}
@media (min-width: 700px) {
  .tbl-tenses .wline .poal-root-up { text-align: end; }   /* sous l'infinitif, pas a l'autre bout */
}
/* Les dix personnes du passe et du futur : cinq par rangee plutot que sept puis trois, et une
   case assez large pour אֲסַפְתֶּם, qui touchait son bord a 96px. */
@media (min-width: 1280px) {
  body.collection .tgrid { grid-template-columns: repeat(auto-fit, minmax(calc(140px * var(--text-scale, 1)), 1fr)); }
}

/* Revision : rangees binyan / temps sous les focus (16.09.2026). Meme pastille que les focus. */
.drill-vf { display: grid; gap: var(--k-sp-8); margin: -4px 0 var(--k-sp-12); }
.vf-row { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); justify-content: center; align-items: center; }
.vf-label { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; margin-inline-end: var(--k-sp-4); direction: ltr; }
.vf-btn .sub-count { font-weight: 400; color: var(--faint); margin-inline-start: var(--k-sp-4); }

/* ============================================================ la seance plein ecran (16.09.2026)
   Demande : « premium, qu'il tienne toujours sur l'ecran sans avoir a scroller, en mode Duolingo ».
   Mesure avant : sur 390x844 la question commencait a ~620px (en-tete, intro, trois rangees
   de pastilles au-dessus) et la reponse descendait jusqu'a 1 300-1 940px. Ici la page ne
   defile plus : la seance est une colonne fixe de la hauteur de l'ecran, la reponse est un
   panneau qui defile EN LUI-MEME, le bouton d'action ne bouge jamais. */
.sess-top { display: none; }
body.in-session { overflow: hidden; }
body.in-session .container > :not(:has(#drill)):not(.topbar) { display: none !important; }
body.in-session .topbar > :not(.topbar-ut-tr) { display: none !important; }
body.in-session .drill-bare > :not(#drill) { display: none !important; }
body.in-session #drill {
  position: fixed; top: 0; bottom: 0; left: 0; right: 0; z-index: 70;
  width: 100%; max-width: 34rem; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) 16px max(14px, env(safe-area-inset-bottom));
  background: var(--bg);
}
body.in-session .sess-top { display: flex; align-items: center; gap: var(--k-sp-12); flex: 0 0 auto; }
body.in-session .sess-top .drill-quit {
  flex: 0 0 auto; min-width: 44px; min-height: 44px; margin: 0; padding: 0 var(--k-sp-12);
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--dim);
}
body.in-session .sess-prog { flex: 1 1 auto; height: 10px; margin: 0; grid-column: auto; }
body.in-session .sess-prog i { transition: width .25s ease; }
.sess-gear {
  flex: 0 0 auto; min-height: 44px; padding: 0 var(--k-sp-12); border-radius: 999px; font: inherit; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  border: 1px solid var(--border); background: var(--card); color: var(--dim); cursor: pointer;
}
.sess-gear[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
body.in-session .drill-settings { display: none; }
body.in-session .drill-settings.is-open {
  display: block; position: absolute; z-index: 5; top: 62px; left: 12px; right: 12px;
  max-height: calc(100% - 80px); overflow: auto; padding: var(--k-sp-16) var(--k-sp-12);
  background: var(--card); border: 1px solid var(--border); border-radius: var(--k-r-16);
  box-shadow: var(--k-ombre-e3);
}
body.in-session .drill-settings .drill-focus { flex-wrap: wrap; overflow: visible; }
body.in-session #drill-q {
  flex: 1 1 auto; min-height: 0; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center; padding: var(--k-sp-8) 0;
}
body.in-session .drill-prompt { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); margin-bottom: var(--k-sp-8); }
body.in-session .drill-subject { font-size: calc(clamp(30px, 9vw, 40px) * var(--text-scale, 1)); line-height: 1.4; }
body.in-session .drill-sentence { display: block; font-size: calc(clamp(21px, 6vw, 28px) * var(--text-scale, 1)); line-height: 1.55; }
body.in-session .drill-opts { flex: 0 0 auto; grid-template-columns: 1fr 1fr; gap: var(--k-sp-12); margin: var(--k-sp-8) 0 var(--k-sp-12); }
body.in-session .drill-opts.is-long { grid-template-columns: 1fr; }
body.in-session .drill-opt {
  min-height: 58px; font-size: calc(20px * var(--text-scale, 1)); border-radius: var(--k-r-16); border-width: 2px;
  box-shadow: 0 2px 0 var(--border);
}
body.in-session .drill-opts.is-long .drill-opt { min-height: 48px; font-size: calc(16px * var(--text-scale, 1)); }
body.in-session .drill-opt:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }
body.in-session .drill-type { flex: 0 0 auto; margin: var(--k-sp-8) 0 var(--k-sp-12); }
body.in-session #drill-go {
  flex: 0 0 auto; width: 100%; min-height: 54px; margin: 0; border-radius: var(--k-r-16);
  font-size: calc(17px * var(--text-scale, 1)); font-weight: 600; position: relative; z-index: 4;
}
/* La carte reponse prend tout l'ecran (04.11.2026 : « il faudrait que la carte reponse
   prenne tout l'ecran en toute logique »). Elle va du dessous de la barre du haut (retour,
   progression, reglages : elles restent a portee) au dessus du bouton Next, qui reste fixe en
   bas. Elle ne defile PLUS (05.11.2026 : « les cartes reponses ici faudrait pas avoir a
   scroller du tout ») : app.js (fitReveal) pose --rv-k, l'echelle de la carte, de 1 a kMin
   (config drill.reveal) jusqu'a ce que tout tienne ; la hauteur des lignes, les marges, les
   tailles et la hauteur des onglets suivent --rv-k, avec pour plancher heMinPx (forme
   hebraique) et textMinPx (texte). Depuis c1427 la carte a deux niveaux : l'echelle ne vaut que pour le
   niveau 1 ; le niveau 2 (bouton « Plus ») defile a taille pleine. Plus de cale en fin de carte. */
body.in-session #drill {
  --sess-pad-top: max(12px, env(safe-area-inset-top));
  --sess-pad-bot: max(14px, env(safe-area-inset-bottom));
  --sess-top-h: 40px;
  --go-h: 54px;
}
body.in-session #drill-reveal {
  position: absolute; z-index: 3; left: 0; right: 0; margin: 0; max-width: none;
  top: calc(var(--sess-pad-top) + var(--sess-top-h) + 10px);
  bottom: calc(var(--sess-pad-bot) + var(--go-h) + 12px);
  overflow: hidden;
  --rv-k: 1; --rv-lh: calc(1.15 + .35 * var(--rv-k));
  padding: calc(16px * var(--rv-k)) 16px calc(10px * var(--rv-k));
  border-radius: var(--k-r-16); border: 1px solid var(--border);
  background: var(--card); box-shadow: var(--k-ombre-e2);
}
/* Chaque role a sa taille de base multipliee par --rv-k, sans passer sous le plancher de la
   configuration : --rv-he-min pour une forme hebraique, --rv-tx-min pour le texte. */
body.in-session #drill-reveal :is(.reveal-main, .rp-he, .rv-he, .rv-form) { line-height: var(--rv-lh); }
/* La taille d'une forme hebraique est celle de ses GLYPHES : .he vaut 1.45em de son conteneur, donc
   le conteneur dit « 24px » pour 34,8 px a l'ecran. Dans la carte, .he reprend la taille de son
   conteneur (1em) : heMinPx est la taille lue a l'ecran. Les pronoms (.rp-tag, .rv-pro) gardent
   leur .he a 1.45em de leur etiquette. */
body.in-session #drill-reveal :is(.reveal-main, .rp-he, .rv-he, .rv-form) .he { font-size: 1em; line-height: inherit; }
body.in-session #drill-reveal .reveal-main { font-size: calc(max(var(--rv-he-min), calc(28px * var(--rv-k))) * var(--text-scale, 1)); }
body.in-session #drill-reveal :is(.rp-he, .rv-he) { font-size: calc(max(var(--rv-he-min), calc(24px * var(--rv-k))) * var(--text-scale, 1)); }
body.in-session #drill-reveal .rv-form { font-size: calc(max(var(--rv-he-min), calc(32px * var(--rv-k))) * var(--text-scale, 1)); }
body.in-session #drill-reveal :is(.reveal-tr, .reveal-en, .rv-pro, .reveal-why, .reveal-para) { font-size: calc(max(var(--rv-tx-min), calc(14px * var(--rv-k))) * var(--text-scale, 1)); line-height: var(--rv-lh); }
body.in-session #drill-reveal .rp-tr { font-size: calc(max(var(--rv-tx-min), calc(13px * var(--rv-k))) * var(--text-scale, 1)); }
body.in-session #drill-reveal :is(.reveal-again) { font-size: calc(max(var(--rv-tx-min), calc(13px * var(--rv-k))) * var(--text-scale, 1)); }
body.in-session #drill-reveal :is(.rv-label, .rp-tag) { font-size: calc(max(var(--rv-tx-min), calc(11px * var(--rv-k))) * var(--text-scale, 1)); }
body.in-session #drill-reveal .reveal-tr { margin-top: calc(2px * var(--rv-k)); }
body.in-session #drill-reveal .reveal-en { margin-top: calc(6px * var(--rv-k)); }
body.in-session #drill-reveal :is(.reveal-person, .reveal-para) { margin-top: calc(10px * var(--rv-k)); padding-top: calc(8px * var(--rv-k)); }
body.in-session #drill-reveal .reveal-why, body.in-session #drill-reveal .reveal-again { margin-top: calc(8px * var(--rv-k)); }
body.in-session #drill-reveal .reveal-why { padding-top: calc(8px * var(--rv-k)); }
body.in-session #drill-reveal .reveal-para { row-gap: calc(3px * var(--rv-k)); }
body.in-session #drill-reveal .rt-tabs { margin: calc(10px * var(--rv-k)) 0 calc(4px * var(--rv-k)); }
body.in-session #drill-reveal .rt-tab { min-height: max(var(--rv-tab-min), calc(40px * var(--rv-k))); font-size: calc(max(var(--rv-tx-min), calc(13px * var(--rv-k))) * var(--text-scale, 1)); }
/* La question et ses choix ne se voient plus derriere ni autour de la carte : l'ecart de 12px
   au-dessus de Next laissait passer le bas des boutons de reponse. */
body.in-session #drill:has(#drill-reveal:not([hidden])) :is(#drill-q, #drill-opts, #drill-type) { visibility: hidden; }
body.in-session #drill-reveal { visibility: visible; }
body.in-session #drill-reveal.is-wrong { background: #fff7f7; }
body.in-session #drill-reveal:not(.is-wrong) { background: #f5fbf8; }
body.in-session #drill-go:not([hidden]) { box-shadow: 0 -8px 16px var(--card); }
/* Onglets de temps sous une reponse de verbe : toutes les conjugaisons, une a la fois. */
.rt-tabs { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); justify-content: center; margin: var(--k-sp-12) 0 var(--k-sp-4); }
.rt-tab {
  font: inherit; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); min-height: 40px; padding: 0 var(--k-sp-12); border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--dim);
}
/* L'onglet choisi est teinte, pas plein : la fiche du mot est toujours visible, et la seule action pleine de la carte reste « Suivant » (c1483). */
.rt-tab[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-text); font-weight: 600; }
.reveal-alt[hidden] { display: none !important; }
body.in-session .sess-top { direction: ltr; }
body.in-session .drill-prompt { text-align: center; }
/* Revue du 16.09 sur la seance plein ecran. */
/* Rien de la page ne transparait autour de la colonne sur un ecran large. */
body.in-session::before { content: ""; position: fixed; inset: 0; z-index: 69; background: var(--bg); }
/* L'ecran de fin de tour (score + liste des rates) peut depasser l'ecran : il defile, du haut. */
body.in-session #drill-q:has(.drill-final) { overflow-y: auto; justify-content: flex-start; }
/* Paysage et ecrans tres bas : la colonne defile, le bouton reste colle en bas, la question
   ne s'ecrase plus a 16px. */
@media (max-height: 520px) {
  body.in-session #drill { overflow-y: auto; }
  body.in-session #drill-q { flex: 0 0 auto; overflow: visible; padding: var(--k-sp-4) 0; }
  body.in-session .drill-subject { font-size: calc(24px * var(--text-scale, 1)); }
  body.in-session .drill-sentence { font-size: calc(19px * var(--text-scale, 1)); }
  body.in-session .drill-prompt { margin-bottom: var(--k-sp-4); }
  body.in-session .drill-opt, body.in-session .drill-opts.is-long .drill-opt { min-height: 42px; font-size: calc(16px * var(--text-scale, 1)); }
  body.in-session .drill-opts.is-long { grid-template-columns: 1fr 1fr; }
  body.in-session #drill-go { position: sticky; bottom: 0; min-height: 46px; }
}

/* Traducteur : chaque mot d'une phrase est touchable et ouvre sa fiche (17.09.2026). */
.ut-pairs .ut-wp[role="button"] { cursor: pointer; border-radius: var(--k-r-12); min-height: 40px; touch-action: manipulation; }
.ut-pairs .ut-wp[role="button"] .ut-wp-he { text-decoration: underline dotted; text-decoration-color: var(--accent); text-underline-offset: 6px; }
.ut-pairs .ut-wp[role="button"]:hover, .ut-pairs .ut-wp[role="button"]:focus-visible { background: var(--accent-dim); outline: none; }
.ut-back {
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); min-height: 40px; padding: 0 var(--k-sp-16); margin: var(--k-sp-4) 0 var(--k-sp-8);
  border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--accent); cursor: pointer;
}

/* Cursif : la carte du traducteur ecrit DEJA le mot (et chaque mot d'une phrase) en ktav yad.
   Le bloc .ut-cursive que le moteur ajoute en dessous repetait la meme phrase une seconde fois
   (17.09.2026 : « en cursive ça sert à rien que la phrase apparaisse deux fois »). */
body.cursive .ut-cursive { display: none; }

/* ================================================================ 22.09.2026 — notes de l'auteur
 * Six corrections et deux ajouts, dans l'ordre de sa liste. */

/* --- a · le verre « à la iOS » ---------------------------------------------------------------
 * « boutons translucides, water à la iOS, pour qu'ils ne gênent pas au scroll ». Ce qui flotte
 * au-dessus du contenu (le menu, le ת, le bouton d'action d'une session, la ligne de fil
 * collée en haut des tableaux) laisse voir, flou, ce qui passe dessous au lieu de le masquer.
 * Le texte garde son contraste : le verre clair est assez opaque pour qu'un texte gris y reste
 * au-dessus de 4,5:1 sur n'importe quel fond clair, et le verre bleu part d'un ton PLUS FONCE
 * que l'accent (#005e9c), pour que le blanc y tienne 4,5:1 meme sur fond blanc.
 * Sans backdrop-filter (vieux navigateurs), les memes surfaces redeviennent pleines. */
:root {
  --glass: rgba(250, 250, 250, 0.74);
  --glass-card: rgba(255, 255, 255, 0.68);
  --glass-accent: rgba(0, 94, 156, 0.88);
  --glass-line: rgba(17, 24, 39, 0.09);
  --glass-blur: saturate(180%) blur(16px);
}
.menu-btn,
.topbar-ut,
body.in-session #drill-go,
body.has-fil .fil,
body.has-fil .tabs.fil-open,
body.has-fil .sortbar.fil-open,
body.has-fil .btabs.fil-open {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.menu-btn { background: var(--glass-card); border-color: var(--glass-line); box-shadow: var(--k-ombre-e2); }
.topbar-ut { background: var(--glass-accent); border-color: transparent; box-shadow: var(--k-ombre-e2); }
.topbar-ut:hover { background: #005e9c; }
body.in-session #drill-go:not(:disabled) { background: var(--glass-accent); }
body.in-session #drill-go:not(:disabled):hover { background: #005e9c; }
/* Le halo blanc sous le bouton cachait precisement ce que le verre doit laisser voir. */
body.in-session #drill-go:not([hidden]) { box-shadow: var(--k-ombre-e2); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu-btn { background: var(--card); }
  .topbar-ut,
  body.in-session #drill-go:not(:disabled) { background: var(--accent); }
  body.has-fil .fil,
  body.has-fil .tabs.fil-open,
  body.has-fil .sortbar.fil-open,
  body.has-fil .btabs.fil-open { background: var(--bg); }
}

/* --- b · la ligne de fil reste en haut ------------------------------------------------------
 * « la barre verbes / adjectifs / noms bouge au scroll ». Elle defilait avec la page : a
 * mi-hauteur des verbes, changer de volet voulait dire remonter tout en haut. Elle est
 * desormais collante, en capsule de verre, SOUS les deux boutons flottants (12 + 44 + 6 px) —
 * pas a leur niveau, ou elle passerait dessous. La bande qu'elle ouvre se colle juste en
 * dessous d'elle, pour qu'un choix fait en bas de page se fasse la ou l'on est.
 * Aucun ancetre du fil ne defile (mesure : .container et body en `overflow: visible`), sinon
 * `sticky` ne collerait a rien (regle 11 du depot). */
body.has-fil .fil {
  position: sticky;
  top: var(--fil-top, 62px);
  z-index: 56;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--k-r-12);
  padding-inline: var(--k-sp-8);
  box-shadow: var(--k-ombre-e2);
}
body.has-fil .tabs.fil-open,
body.has-fil .sortbar.fil-open,
body.has-fil .btabs.fil-open {
  position: sticky;
  top: calc(var(--fil-top, 62px) + 48px);
  z-index: 55;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: var(--k-r-12);
  padding: var(--k-sp-8);
  box-shadow: var(--k-ombre-e2);
}
/* Pas de variante « ecran large » qui monterait la ligne tout en haut : les tableaux y
   prennent 1180px, et a 1280px les boutons flottants (x 14-110) retombaient sur le premier
   segment — mesure par une sonde qui touche le segment a son centre. */

/* --- c · le champ du traducteur ----------------------------------------------------------- */
/* La croix qui vidait le champ est partie le 06.10.2026, comme chez Claude (« la croix
   on enleve non ? c'est moche comme ca »). Le champ ne garde que la fleche. */
.ut-field { position: relative; }

/* --- d · les formes construites : une carte qui se lit de haut en bas ---------------------
 * Sur telephone, la table des tetes a une locution posait le sens a gauche et la tete a
 * droite, sur deux colonnes qui ne se correspondaient pas ; la tete n'avait pas de lecture.
 * Tout s'empile maintenant dans l'ordre des autres cartes : locution, lecture, sens, puis la
 * tete (etiquetee), puis les jours. */
.sm-hd { display: inline-flex; flex-direction: column; align-items: center; vertical-align: middle; line-height: 1.3; }
.sm-hd .cell-tr { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
/* La fleche au milieu des deux mots, pas sur leur ligne de base : chaque mot porte desormais sa
   lecture en dessous, et une fleche en ligne tombait au pied de la boite. */
.sm-head-cell .sm-form { display: flex; align-items: center; flex-wrap: wrap; gap: var(--k-sp-4) var(--k-sp-12); }
.sm-head-cell .arrow { font-size: calc(18px * var(--text-scale, 1)); line-height: 1; color: var(--dim); }
@media (max-width: 899px) {
  .tbl-smikhut tr { grid-template-columns: 1fr; }
  .tbl-smikhut td.c-form { margin-block: var(--k-sp-4) var(--k-sp-4); order: 2; }
  .tbl-smikhut td.c-mean { order: 1; }
  .tbl-smikhut td.c-seen { order: 3; }
}

/* LA BARRE FIXE SUR ORDINATEUR (05.10.2026, annoncee a l'auteur avec la barre laterale : « sur
   ordinateur, la barre reste ouverte a gauche »). A partir de 1280 px elle ne glisse plus : elle
   reste a gauche, comme celle de Claude, et la page se pose a sa droite. Le hamburger, la croix
   de la barre et le voile partent, rien n'est a ouvrir ni a fermer ; le carre du ת prend la
   place du hamburger. La page derriere n'est jamais bloquee. Les pages de collection gardent
   leur largeur d'ordinateur dans la place qui reste. En fin de feuille : ces regles passent
   apres celles du menu et du 16.09.2026 qu'elles remplacent. */
@media (min-width: 1280px) {
  :root { --side-w: 300px; }
  body { padding-left: calc(var(--side-w) + 20px); }
  .menu-btn, .side-x, .menu-veil, .menu.open .menu-veil, .menu.closing .menu-veil { display: none; }
  .menu-panel, .menu.open .menu-panel, .menu.closing .menu-panel {
    display: flex;
    width: var(--side-w);
    animation: none;
    box-shadow: none;
    border-right: 1px solid var(--border);
  }
  html:has(body.menu-open), body.menu-open { overflow: visible; }
  .topbar-ut { inset-inline-end: calc(var(--side-w) + 34px); }
  body.collection .container { max-width: min(1180px, calc(100vw - var(--side-w) - 40px)); }
  .side-collapse { display: flex; }
  /* Barre masquee (sidebar.js) : la page reprend toute la largeur, le hamburger revient et la
     rend. */
  html.side-collapsed body { padding-left: var(--k-sp-20); }
  html.side-collapsed .menu-panel { display: none; }
  html.side-collapsed .menu-btn { display: flex; }
  html.side-collapsed .topbar-ut { inset-inline-end: 66px; }
  html.side-collapsed body.collection .container { max-width: 1180px; }
}

/* LA PAGE TRADUIRE EST UNE COQUE, SUR TELEPHONE ET TABLETTE (06.10.2026, video d'ecran de
   iPhone, clavier ouvert). La page entiere defilait et le dock etait colle en bas.
   Sur iPhone, le clavier DECALE la zone visible (visualViewport.offsetTop > 0) : le menu et la
   croix, fixes sans fond, flottaient sur le texte puis sortaient de l'ecran, le texte passait
   sous la barre d'etat, chaque envoi faisait sauter la vue sur une ancienne reponse, et le
   champ couvrait la fin de la derniere. La coque suit la zone visible a la lettre :
   translator-mount.js pose --vvt (son haut) et --vvh (sa hauteur), et classe html en ut-shell.
   Une bande opaque porte le menu et la croix ; seul le fil defile ; le dock ferme le bas. Le
   document ne defile plus, donc le clavier n'a plus rien a pousser. Au-dela de 1280 px, pas de
   clavier a l'ecran : la page garde sa forme. */
@media (max-width: 1279px) {
  html.ut-shell, html.ut-shell body.translate { height: 100%; overflow: hidden; overscroll-behavior: none; }
  html.ut-shell body.translate { min-height: 0; padding-top: 0; }
  html.ut-shell body.translate > .container {
    position: fixed; left: 0; right: 0; z-index: 1;
    top: var(--vvt, 0px); height: var(--vvh, 100svh);
    box-sizing: border-box; margin: 0; max-width: none;
    padding: 0;
    overflow: hidden; display: flex; flex-direction: column;
  }
  /* La coque Kita10 commence après la rangée commune, sans recouvrir ses boutons. */
  html.ut-shell body.translate:has(.navigation-haut) > .container {
    top: calc(var(--vvt, 0px) + 60px);
    height: calc(var(--vvh, 100svh) - 60px);
  }
  html.ut-shell body.translate .container > .ut { flex: 1 1 auto; min-height: 0; padding: 0; width: 100%; max-width: 760px; margin: 0 auto; }
  /* La ligne du haut vit DANS la bande : la croix y est fixe, la date hebraique s'y pose a
     droite, a hauteur du menu, chacune de ses deux lignes sur une seule ligne (sans quoi elle
     passait sur trois et debordait sur le fil). Elle commence APRES le bouton de translitteration
     (118 a 162 px, puis 8 px) : a 122 px elle passait dessous et masquait le debut de « esrim
     ve-chamisha be-Cheshvan » (05.11.2026). Lecture a 10 px sans espacement pour tenir dans le reste. */
  html.ut-shell body.translate .topbar {
    position: fixed; z-index: 2; margin: 0; min-height: 44px; height: 44px;
    top: calc(var(--vvt, 0px) + env(safe-area-inset-top) + 12px); right: 16px; left: 222px;   /* 14 + 4 x 52 + 8 : APRES la fleche de retour (c1509), elle aussi a 170 px, 44 px de large */
    display: flex; justify-content: flex-end; align-items: center;
  }
  html.ut-shell body.translate .hero-date { max-width: 100%; min-width: 0; line-height: 1.15; }
  html.ut-shell body.translate .hero-date-he { white-space: nowrap; }
  html.ut-shell body.translate .hero-date-tr { display: block; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); letter-spacing: 0; }   /* 08.11.2026 : 10 px passait sous le plancher de lisibilite (12 px, verify-legibility) */
  /* c1509 (etude iPhone du 17/11) : a 320 px il reste 82 px a la date apres les quatre boutons. La lecture romanisee ne tient
     pas dans cette largeur (BE-KISLEV seul en prend 65) : elle passe sous le seuil, la date hebraique reste. */
  @media (max-width: 359px) {
    html.ut-shell body.translate .hero-date { padding-inline: var(--k-sp-8); }
    html.ut-shell body.translate .hero-date-tr { display: none; }
  }
  /* 27.10.2026 : plus de bande opaque. Le fil defile SOUS les boutons, qui sont du verre : le
     contenu qui passe dessous se voit, flou (« on veut voir le contenu derriere en flou »).
     Le fil commence sous la rangee du haut grace a son padding ; la date garde un fond de verre. */
  html.ut-shell body.translate::before { display: none; }
  html.ut-shell body.translate .hero-date {
    padding: var(--k-sp-4) var(--k-sp-12); border-radius: var(--k-r-12); border: 1px solid var(--lg-edge);
    background: var(--lg-fill); box-shadow: var(--lg-spec), var(--lg-shadow);
    -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  }
  html.ut-shell body.translate .menu,
  html.ut-shell body.translate .topbar-ut { top: calc(var(--vvt, 0px) + env(safe-area-inset-top) + 12px); }
  html.ut-shell body.translate .ut-thread {
    flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; padding: calc(env(safe-area-inset-top) + 76px) 16px 22px;
    /* flex-end dans une boite qui defile rend inatteignable ce qui deborde par le haut : le
       fil se pose en bas par la marge automatique de son premier echange. */
    justify-content: flex-start;
  }
  html.ut-shell body.translate .ut-thread > :first-child { margin-top: auto; }
  html.ut-shell body.ws-open .ut-thread { padding-bottom: calc(22px + var(--ws-h, 0px)); }
  html.ut-shell body.translate .ut-dock {
    position: relative; bottom: auto; flex: 0 0 auto;
    margin: 0 12px calc(10px + env(safe-area-inset-bottom));
  }
  html.ut-shell.kb-open body.translate .ut-dock { margin-bottom: var(--k-sp-8); }
  html.ut-shell body.translate::after { display: none; }
}

/* --- TEST ALEF (06.10.2026) ---------------------------------------------------------------
   Un sujet par volet repliable ; chaque reponse cachee jusqu'au toucher, avec sa provenance. */
.al-paper { margin: var(--k-sp-20) 0; border: 1px solid var(--border); border-radius: var(--k-r-16); background: var(--card); }
.al-paper > summary {
  list-style: none; cursor: pointer; padding: var(--k-sp-16) var(--k-sp-16); display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between; gap: var(--k-sp-4) var(--k-sp-12); font-weight: 600;
}
.al-paper > summary::-webkit-details-marker { display: none; }
.al-paper > summary::after { content: '+'; color: var(--accent); font-size: calc(20px * var(--text-scale, 1)); line-height: 1; }
.al-paper[open] > summary::after { content: '−'; }
.al-paper[open] > summary { border-bottom: 1px solid var(--border); }
.al-paper-d { font-weight: 400; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
.al-paper > :not(summary) { margin-left: var(--k-sp-16); margin-right: var(--k-sp-16); }
.al-src { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); margin-top: var(--k-sp-12); }
/* Un bloc, pas une ligne : sur deux lignes, le doigt tombait entre les lignes du lien
   (verify-tap, 11.10.2026 : 1 point sur 5 d'un carre de 40 px lui revenait). */
.al-src a { display: inline-block; padding: var(--k-sp-4) 0; color: var(--accent); overflow-wrap: anywhere; }
.al-part { font-size: calc(17px * var(--text-scale, 1)); margin-top: var(--k-sp-24); }
.al-pts { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 500; color: var(--dim); white-space: nowrap; }
.al-ex h3 { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin: 0 0 var(--k-sp-8); }
.al-instr { margin: 0 0 var(--k-sp-8); }
.al-instr-gl { display: block; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
.al-bank { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); align-items: center; margin: 0 0 var(--k-sp-12); }
.al-bank-k { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--dim); margin-inline-end: var(--k-sp-4); }
.al-chip { border: 1px solid var(--border); border-radius: var(--k-r-12); padding: var(--k-sp-4) var(--k-sp-12); background: var(--bg); }
.al-items { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.al-item { padding: var(--k-sp-12) 0; border-top: 1px solid var(--border); }
.al-item:first-child { border-top: 0; }
.al-item.is-example .al-q { opacity: .75; }
.al-q { font-size: calc(18px * var(--text-scale, 1)); line-height: 1.6; overflow-wrap: anywhere; }
.al-ans { margin-top: var(--k-sp-8); }
.al-ans > summary {
  display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; cursor: pointer; list-style: none; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--accent);
  border: 1px solid var(--border); border-radius: 999px; padding: var(--k-sp-4) var(--k-sp-12); touch-action: manipulation;
}
.al-ans > summary::-webkit-details-marker { display: none; }
.al-ans[open] > summary { opacity: .6; }
.al-ans-body { margin-top: var(--k-sp-8); padding: var(--k-sp-8) var(--k-sp-12); border-radius: var(--k-r-12); background: var(--bg); }
.al-ans-he { font-size: calc(18px * var(--text-scale, 1)); font-weight: 600; overflow-wrap: anywhere; }
.al-ans-gl { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); margin-top: var(--k-sp-4); }
.al-ans-src { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--dim); margin-top: var(--k-sp-4); font-style: italic; } /* 12 px : le plancher de verify-legibility */
/* Test alef, l'entrainement : saisie, choix, verdict, zone de redaction, minuteur. */
.al-jump { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); margin: var(--k-sp-4) 0 var(--k-sp-16); }
/* 40 px de haut : ce qu'un doigt peut toucher (verify-tap, 11.10.2026 : 86 x 34 px). */
.al-jump a { display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; border: 1px solid var(--border); border-radius: 999px; padding: var(--k-sp-4) var(--k-sp-12); color: var(--accent); text-decoration: none; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.al-volet { margin-top: 28px; }
/* LE MODULE EN PLUSIEURS PAGES (11.10.2026) : l'accueil en cartes, le retour, le score d'un sujet. */
.al-back { margin: 0 0 var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.al-back a { display: inline-flex; align-items: center; min-height: 40px; color: var(--accent); text-decoration: none; }
/* Un lien de deux lignes en ligne laisse des trous entre ses lignes : en bloc, tout le rectangle se touche. */
.al-more a { display: flex; align-items: center; min-height: 40px; color: var(--accent); }
.al-hub { display: grid; gap: var(--k-sp-12); margin-top: var(--k-sp-20); }
.al-hub-card { display: block; padding: var(--k-sp-16) var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-16); background: var(--card); color: inherit; text-decoration: none; }
a.al-hub-card:hover, a.al-hub-card:focus-visible { border-color: var(--accent); outline: none; }
.al-hub-t { display: block; font-size: calc(17px * var(--text-scale, 1)); font-weight: 600; }
.al-hub-d { display: block; margin-top: var(--k-sp-4); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.al-hub-list { list-style: none; padding: 0; margin: var(--k-sp-12) 0 0; }
.al-hub-list li { border-top: 1px solid var(--border); }
.al-hub-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--k-sp-12); min-height: 44px; padding: var(--k-sp-8) 0; color: var(--accent); text-decoration: none; }
.al-hub-w, .al-hub-score { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); white-space: nowrap; }
.al-hub-score.is-scored { color: var(--accent-text); font-weight: 600; }
.al-score { margin: var(--k-sp-16) 0 var(--k-sp-8); padding: var(--k-sp-12) var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-16); background: var(--card); }
.al-score h2 { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin: 0 0 var(--k-sp-8); }
.al-score-parts { list-style: none; padding: 0; margin: 0; }
.al-score-parts li { display: flex; justify-content: space-between; gap: var(--k-sp-12); padding: var(--k-sp-4) 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.al-score-parts li.is-manual { color: var(--dim); }
.al-score-v { white-space: nowrap; }
.al-score-total { margin: var(--k-sp-8) 0 0; padding-top: var(--k-sp-8); border-top: 1px solid var(--border); font-size: calc(16px * var(--text-scale, 1)); }
.al-score-rest { display: block; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
/* LES REMISES A ZERO (18.10.2026) : une rangee sous le titre de chaque page du module, un bouton
   discret, 40 px de haut. La question passe par la boite de l'app (.dlg). */
.al-wipe-row { margin: 0 0 var(--k-sp-8); }
.al-wipe { min-height: 40px; padding: 0 var(--k-sp-16); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); background: var(--bg); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; touch-action: manipulation; }
.al-wipe:hover, .al-wipe:focus-visible { border-color: #c62828; color: #c62828; outline: none; }
.al-note { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); margin: 0 0 var(--k-sp-8); }
.al-part-block { margin-top: var(--k-sp-8); }
/* UN SUJET SE PASSE COMME LE VRAI TEST (11.10.2026). Trois etats dans data-mode :
   idle = la couverture seule ; running = une partie a la fois, la barre du minuteur, aucune
   reponse ni verification ; done = tout le sujet corrige, le score, plus de navigation. */
.al-sujet[data-mode="idle"] .al-part-block, .al-sujet[data-mode="idle"] .al-bar, .al-sujet[data-mode="idle"] .al-score { display: none; }
.al-sujet[data-mode="running"] .al-cover, .al-sujet[data-mode="running"] .al-score, .al-sujet[data-mode="running"] .al-ans,
.al-sujet[data-mode="running"] .al-check, .al-sujet[data-mode="running"] .al-verdict, .al-sujet[data-mode="running"] .al-part-block:not(.is-current) { display: none; }
.al-sujet[data-mode="done"] .al-cover, .al-sujet[data-mode="done"] .al-bar, .al-sujet[data-mode="done"] .al-part-nav, .al-sujet[data-mode="done"] .al-check { display: none; }
.al-cover { padding: var(--k-sp-16) var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-16); background: var(--card); }
.al-cover .al-paper-d { margin: 0 0 var(--k-sp-8); }
.al-how { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin: var(--k-sp-12) 0; }
.al-cover-parts { list-style: none; margin: var(--k-sp-8) 0 var(--k-sp-16); padding: 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.al-cover-parts li { padding: var(--k-sp-4) 0; border-top: 1px solid var(--border); }
.al-start, .al-finish, .al-next, .al-prev {
  min-height: 44px; padding: 0 var(--k-sp-20); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); border-radius: 999px; cursor: pointer; touch-action: manipulation;
  border: 1px solid var(--accent); color: var(--accent); background: transparent;
}
.al-start, .al-next, .al-part-nav .al-finish { background: var(--accent); color: #fff; }
/* La barre reste dans le flux : collee en haut, elle passait sous les boutons flottants du menu
   (capture du 11.10.2026). Quand elle sort de l'ecran, une pastille fixe en haut a droite, loin
   des boutons, porte le temps et la partie. */
.al-bar { display: flex; align-items: center; gap: var(--k-sp-12); padding: var(--k-sp-8) 0; border-bottom: 1px solid var(--border); }
.al-bar-part { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); white-space: nowrap; }
.al-bar .al-timer-left { margin-inline-start: auto; font-size: calc(18px * var(--text-scale, 1)); }
.al-bar .al-finish { min-height: 40px; padding: 0 var(--k-sp-12); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }
.al-pill {
  position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 59;
  display: flex; align-items: center; gap: var(--k-sp-8); min-height: 36px; padding: 0 var(--k-sp-12);
  border: 1px solid var(--border); border-radius: 999px; background: var(--card); box-shadow: var(--k-ombre-e1);
  font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-variant-numeric: tabular-nums; font-weight: 600;
}
.al-pill[hidden] { display: none; }
.al-pill-part { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 500; color: var(--dim); }
.al-sujet.is-over .al-timer-left { color: #c4302b; }
.al-part-nav { display: flex; justify-content: space-between; align-items: center; gap: var(--k-sp-12); margin: var(--k-sp-20) 0 var(--k-sp-8); }
.al-choice.is-picked:not(.is-ok):not(.is-no) { border-color: var(--accent); background: rgba(0, 113, 185, .10); }
.al-item.is-blank .al-in { border-color: #c4302b; border-style: dashed; }
.al-timeup { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: #c4302b; margin: 0 0 var(--k-sp-8); }
.al-score-time { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); margin: var(--k-sp-8) 0 0; }
.al-score-time:has(.al-score-used:empty) { display: none; }
.al-volet-t { font-size: calc(20px * var(--text-scale, 1)); margin: 0 0 var(--k-sp-4); }
.al-from { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--dim); margin: var(--k-sp-20) 0 0; text-transform: uppercase; letter-spacing: .04em; }
.al-prompt { font-size: calc(20px * var(--text-scale, 1)); margin: var(--k-sp-12) 0; }
.al-topic h3 { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); margin: var(--k-sp-16) var(--k-sp-16) var(--k-sp-8); color: var(--dim); }
.al-plain { list-style: none; padding: 0; margin: 0; }
.al-plain li { padding: var(--k-sp-8) 0; font-size: calc(17px * var(--text-scale, 1)); border-top: 1px solid var(--border); }
.al-plain li:first-child { border-top: 0; }
.al-chip-gl { display: block; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--dim); text-align: center; }
.al-try { display: flex; gap: var(--k-sp-8); margin-top: var(--k-sp-8); }
.al-in {
  flex: 1 1 auto; min-width: 0; font-size: max(18px, calc(18px * var(--text-scale, 1))); padding: var(--k-sp-8) var(--k-sp-12); border: 1px solid var(--border);
  border-radius: var(--k-r-12); background: var(--bg); color: var(--text); font-family: inherit;
}
.al-check, .al-timer, .al-timer-stop, .al-pad-clear {
  border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: var(--k-r-12);
  padding: var(--k-sp-8) var(--k-sp-12); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); cursor: pointer; touch-action: manipulation;
}
.al-choices { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); margin-top: var(--k-sp-8); }
.al-choice {
  border: 1px solid var(--border); background: var(--bg); color: var(--text); border-radius: 999px;
  padding: var(--k-sp-4) var(--k-sp-16); font: inherit; font-size: calc(17px * var(--text-scale, 1)); cursor: pointer; touch-action: manipulation;
}
.al-choice.is-ok { border-color: #1a7f37; background: rgba(26, 127, 55, .12); }
.al-choice.is-no { border-color: #c4302b; background: rgba(196, 48, 43, .10); }
.al-verdict { margin: var(--k-sp-8) 0 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); display: flex; align-items: center; gap: var(--k-sp-12); flex-wrap: wrap; }
.al-own { display: none; min-height: 40px; padding: 0 var(--k-sp-12); font: inherit; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 999px; cursor: pointer; touch-action: manipulation; }
.al-item.is-no:not(.is-blank) .al-own { display: inline-flex; align-items: center; }
.al-verdict .al-v-ok, .al-verdict .al-v-no { display: none; }
.al-verdict.is-ok .al-v-ok { display: inline; color: #1a7f37; font-weight: 600; }
.al-verdict.is-no .al-v-no { display: inline; color: #c4302b; }
.al-item.is-ok .al-in { border-color: #1a7f37; }
.al-item.is-no .al-in { border-color: #c4302b; }
.al-pad { margin: var(--k-sp-12) 0 var(--k-sp-16); }
.al-pad-in {
  width: 100%; box-sizing: border-box; font-size: max(18px, calc(18px * var(--text-scale, 1))); line-height: 1.7; padding: var(--k-sp-12) var(--k-sp-12);
  border: 1px solid var(--border); border-radius: var(--k-r-12); background: var(--bg); color: var(--text);
  font-family: inherit; resize: vertical;
}
.al-pad-meta { display: flex; align-items: center; gap: var(--k-sp-8); flex-wrap: wrap; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); margin-top: var(--k-sp-8); }
.al-pad.is-enough .al-pad-lines { color: #1a7f37; font-weight: 600; }
/* 40 px de haut, comme toute commande du site (verify-tap, 11.10.2026 : 49 x 27 px). */
.al-pad-clear { margin-inline-start: auto; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); padding: var(--k-sp-4) var(--k-sp-12); min-height: 40px; box-sizing: border-box; }
.al-timer-row { display: flex; align-items: center; gap: var(--k-sp-12); margin: var(--k-sp-12) 0; }
.al-timer-left { font-variant-numeric: tabular-nums; font-size: calc(20px * var(--text-scale, 1)); font-weight: 600; }
.al-timer-row.is-over .al-timer-left { color: #c4302b; }
/* L'ORAL (18.10.2026 : « Prepare aussi module entrainement pour l'oral »). Les deux genres
   sont dans la page ; data-g sur .al-oral montre l'un, et sans choix la page ne montre que la
   question « homme ou femme ». Toute commande fait 40 px au moins. Le latin est en ltr, l'hebreu en rtl. */
.al-oral .or-body { display: none; }
.al-oral[data-g="m"] .or-body, .al-oral[data-g="f"] .or-body { display: block; }
.al-oral[data-g="m"] .or-v[data-v="f"], .al-oral[data-g="f"] .or-v[data-v="m"] { display: none; }
.or-gender { margin: var(--k-sp-16) 0 var(--k-sp-20); padding: var(--k-sp-16) var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-16); background: var(--card); }
.or-gender-p { margin: 0 0 var(--k-sp-8); font-weight: 600; }
.or-gender-b { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); }
.or-gender-n { margin: var(--k-sp-8) 0 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
.al-oral[data-g="m"] .or-gender-n, .al-oral[data-g="f"] .or-gender-n { display: none; }
.or-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 0 var(--k-sp-16); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); background: transparent; cursor: pointer; touch-action: manipulation; }
.or-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.or-tg .or-t-on { display: none; }
.or-tg[aria-pressed="true"] .or-t-on { display: inline; }
.or-tg[aria-pressed="true"] .or-t-off { display: none; }
.or-tabs { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); margin: 0 0 var(--k-sp-8); }
.or-tab { display: inline-flex; align-items: center; gap: var(--k-sp-8); min-height: 44px; box-sizing: border-box; padding: 0 var(--k-sp-16); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--accent); background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; touch-action: manipulation; }
.or-tab.is-current { border-color: var(--accent); background: var(--accent); color: #fff; }
.or-tab-n { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); font-variant-numeric: tabular-nums; }
.or-part { display: none; margin-top: var(--k-sp-16); }
.or-part.is-current { display: block; }
.or-part-t { font-size: calc(17px * var(--text-scale, 1)); margin: 0 0 var(--k-sp-4); }
.or-rule { margin: 0 0 var(--k-sp-8); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.or-row { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); margin: var(--k-sp-8) 0; }
.or-items { list-style: none; padding: 0; margin: var(--k-sp-12) 0 0; }
.or-item { padding: var(--k-sp-16) 0; border-top: 1px solid var(--border); }
.or-item.is-off { display: none; }
.or-head { display: flex; align-items: center; flex-wrap: wrap; gap: var(--k-sp-4) var(--k-sp-12); }
.or-n { font-size: calc(18px * var(--text-scale, 1)); font-weight: 700; }
.or-label { font-size: calc(17px * var(--text-scale, 1)); }
.or-req, .or-drawn { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; color: var(--accent-text); border: 1px solid var(--accent); border-radius: var(--k-r-8); padding: 1px var(--k-sp-8); }
.or-drawn[hidden] { display: none; }
/* « Tire au sort » devient « Tire encore » une fois le tirage fait : les deux libelles etaient dans le
   bouton et se voyaient ensemble (« Tire au sortTire encore »). */
.or-draw .or-d2, .or-part[data-picked="1"] .or-draw .or-d1 { display: none; }
.or-part[data-picked="1"] .or-draw .or-d2 { display: inline; }
.or-listen { display: flex; align-items: center; gap: var(--k-sp-8); margin: var(--k-sp-8) 0; }
.or-listen .say { margin: 0; opacity: .6; }
.or-listen-l { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--accent); cursor: pointer; }
body.no-speech .or-listen { display: none; }
.or-rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--k-sp-8) var(--k-sp-12); margin: var(--k-sp-8) 0; }
.or-rec .or-rec-stop { display: none; }
.or-item[data-rec="1"] .or-rec { background: #c62828; border-color: #c62828; color: #fff; }
.or-item[data-rec="1"] .or-rec .or-rec-go { display: none; }
.or-item[data-rec="1"] .or-rec .or-rec-stop { display: inline; }
.or-play { display: none; }
.or-item[data-take="1"] .or-play { display: inline-flex; }
.or-item[data-play="1"] .or-play { background: var(--accent); color: #fff; }
.or-state { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
.or-state [data-s] { display: none; }
.or-state[data-st="none"] [data-s="none"], .or-state[data-st="rec"] [data-s="rec"], .or-state[data-st="ready"] [data-s="ready"],
.or-state[data-st="denied"] [data-s="denied"], .or-state[data-st="unsupported"] [data-s="unsupported"], .or-state[data-st="undecodable"] [data-s="undecodable"] { display: inline; }
.or-state[data-st="denied"], .or-state[data-st="undecodable"], .or-state[data-st="unsupported"] { color: #b3261e; }
.or-q, .or-model { margin: var(--k-sp-8) 0; padding: var(--k-sp-12) var(--k-sp-16); border-radius: var(--k-r-12); background: var(--bg); border: 1px solid var(--border); }
.or-q[hidden], .or-model[hidden], .or-sheet[hidden] { display: none; }
.or-line { margin: var(--k-sp-8) 0 var(--k-sp-12); }
.or-line .he { display: block; font-size: calc(19px * var(--text-scale, 1)); line-height: 1.6; overflow-wrap: anywhere; }
.or-rd { display: block; overflow-wrap: anywhere; }
.or-gl { display: block; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
.or-fict { display: inline-block; margin-top: var(--k-sp-4); padding: 1px var(--k-sp-8); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--dim); border: 1px solid var(--border); border-radius: var(--k-r-8); }
.or-h { margin: var(--k-sp-12) 0 var(--k-sp-4); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.or-note { margin: var(--k-sp-8) 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.or-sheet-l { margin: var(--k-sp-4) 0; font-size: calc(16px * var(--text-scale, 1)); overflow-wrap: anywhere; }
.or-mark-h { margin: var(--k-sp-16) 0 var(--k-sp-8); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600; }
.or-marks { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); }
/* LE BET (18.10.2026) : les niveaux, le destinataire d'un item, les points imprimes, la consigne d'une
   partie, les lignes de la feuille sans texte, le score sur les points de la feuille. Toute commande
   fait 40 px au moins ; le latin est en ltr (dir sur le balisage), l'hebreu en rtl. */
.al-levels { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); margin: 0 0 var(--k-sp-16); }
.al-level { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; padding: 0 var(--k-sp-20); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); border: 1px solid var(--accent); border-radius: 999px; color: var(--accent); text-decoration: none; }
.al-level.is-on { background: var(--accent); color: #fff; }
.al-oral .or-level { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.or-item:not([data-a="f"]) .or-av[data-av="f"], .or-item[data-a="f"] .or-av[data-av="m"] { display: none; }
.or-addr { display: flex; flex-wrap: wrap; align-items: center; gap: var(--k-sp-8); margin: var(--k-sp-8) 0 var(--k-sp-4); }
.or-addr-p { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.or-pts { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; color: var(--dim); border: 1px solid var(--border); border-radius: var(--k-r-8); padding: 1px var(--k-sp-8); }
.or-need { margin: var(--k-sp-8) 0 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.or-need-k { margin-inline-end: var(--k-sp-8); }
.or-need .he { display: inline; }
.or-instr { margin: var(--k-sp-8) 0; }
.or-instr-l { margin: var(--k-sp-4) 0; font-size: calc(17px * var(--text-scale, 1)); line-height: 1.6; }
.or-extras { margin: var(--k-sp-16) 0 0; padding: var(--k-sp-12) var(--k-sp-16); border: 1px dashed var(--border); border-radius: var(--k-r-12); }
.or-extras .or-h { margin-top: 0; }
.or-extras-l { list-style: none; margin: 0; padding: 0; }
.or-extras-l li { margin: var(--k-sp-8) 0; font-size: calc(16px * var(--text-scale, 1)); }
.or-extras-l .or-pts { margin-inline-start: var(--k-sp-8); }
.or-score { margin: var(--k-sp-20) 0 0; padding: var(--k-sp-16) var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-16); background: var(--card); }
.or-score-t { margin: 0 0 var(--k-sp-4); font-size: calc(17px * var(--text-scale, 1)); }
.or-score-how { margin: 0 0 var(--k-sp-8); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
.or-score-parts { list-style: none; margin: 0 0 var(--k-sp-8); padding: 0; }
.or-score-parts li { display: flex; justify-content: space-between; gap: var(--k-sp-12); padding: var(--k-sp-4) 0; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.or-score-total { margin: var(--k-sp-12) 0 0; font-size: calc(18px * var(--text-scale, 1)); font-variant-numeric: tabular-nums; }
.or-score-rest { display: block; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
/* L'onglet « Nom » d'un verbe (07.10.2026) : une case porte le sens du nom, en clair, a la place
   de la personne ; le nom d'action, en tete, a le bord de l'accent. */
.para-noun .para-tag { text-transform: none; letter-spacing: 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); line-height: 1.3; }
.para-noun.is-vn { border-color: var(--accent); }
/* Le sens d'un nom vient SOUS le mot et sa lecture, sur toute la largeur de la case : a cote du
   mot, comme une personne, il debordait de la case des qu'il avait plus d'un mot. */
.tgrid .para-noun { grid-template-columns: 1fr; }
.tgrid .para-noun .para-word { grid-column: 1; grid-row: 1; }
.tgrid .para-noun .para-tag { grid-column: 1; grid-row: 3; white-space: normal; overflow-wrap: break-word; }
/* Les onglets « noms liés » et « smikhut » (c1372) : la ligne de meta (genre, source) et l'exemple
   sous le sens ; une forme absente des donnees est grisee et le dit. */
.tgrid .para-noun .para-meta { grid-column: 1; grid-row: 4; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--dim); }
.tgrid .para-noun .para-ex { grid-column: 1; grid-row: 5; margin-top: var(--k-sp-4); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.para-ex-gl { display: block; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--dim); }
.para-noun.is-same { border-style: dashed; }
.para-noun.is-absent { opacity: .6; border-style: dotted; }
.para-none { font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }

/* LA FICHE DE N'IMPORTE QUEL MOT (11.10.2026 : « on veut voir le choresh toujours a minima,
   voir quels sont les autres mots cousins du mot, on veut voir les differentes formes construites »).
   Dessinee par assets/paradigm-render.js dans la feuille du mot : la partie du discours en
   etiquette a cote du sens, la ligne « mot invariable » d'une fiche sans formes ni cousins, et le
   bloc « meme racine » sous la carte, dans les cases de l'onglet « Nom » (para-noun). */
.para-pos { text-transform: none; letter-spacing: .3px; }
.para-flat { margin: var(--k-sp-8) 0 var(--k-sp-4); color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.para-kin { margin: var(--k-sp-12) 0 var(--k-sp-4); }
.para-kin-h { margin: 0 0 var(--k-sp-8); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); }
.para-kin-pos { display: block; margin-block-end: 1px; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); letter-spacing: .5px; text-transform: uppercase; color: var(--accent-text); }
.ws-body .para-live + .para-kin { margin-top: var(--k-sp-12); }

/* ======================================================================================
   LA PAGE DE CHARGEMENT (12.10.2026 : « il faut une page de chargement stylé dans le
   theme du brand »). Le voile est le premier enfant de <body>, la feuille est bloquante : il
   peint avant la page. Visible dans l'app installee seulement ; dans un navigateur il n'existe
   pas a l'ecran, et les sondes ne le voient pas. app.js lui met is-gone a DOMContentLoaded et
   le retire du DOM apres le fondu ; l'animation splash-fallback le fond quand meme si le
   script ne vient pas. Blanc sur #0071B9 : 5,0:1. */
.splash {
  display: none; position: fixed; inset: 0; z-index: 200;
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  background: var(--accent); color: #fff; direction: ltr;
  animation: splash-fallback .35s ease 3.5s forwards; /* apres minMs, jamais avant */
}
@media (display-mode: standalone), (display-mode: fullscreen) { .splash { display: flex; } }
html.splash-test .splash { display: flex; }
.splash.is-gone { opacity: 0; pointer-events: none; transition: opacity .3s ease; animation: none; }
.splash-mark {
  display: flex; flex-direction: column; align-items: center; line-height: 1;
  font-family: 'Frank Ruhl Libre', 'David', serif; font-weight: 500;
  /* pas d entree animee : l image de lancement iOS montre deja la meme marque, le voile la prolonge sans clignoter */
}
.splash-he { font-size: calc(56px * var(--text-scale, 1)); letter-spacing: 1px; }
.splash-n { margin-top: var(--k-sp-4); font-size: calc(64px * var(--text-scale, 1)); font-weight: 700; font-variant-numeric: tabular-nums; }
.splash-bar { position: relative; width: 112px; height: 3px; overflow: hidden; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.splash-bar i { position: absolute; top: 0; bottom: 0; left: -40%; width: 40%; border-radius: 2px; background: #fff; animation: splash-run 1.1s ease-in-out infinite; }
@keyframes splash-run { to { left: 100%; } }
@keyframes splash-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes splash-fallback { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  .splash-mark, .splash-bar i { animation: none; }
  .splash-bar i { left: 0; width: 100%; }
}

/* ======================================================================================
   LA BOITE DE CONFIRMATION (12.10.2026 : « pareil pour le popup quand on supprime une
   conversation »). Plus de window.confirm : une carte dans le theme, enfant de <body> comme la
   feuille des reglages (un ancetre transforme deviendrait son bloc conteneur). La question, puis
   deux boutons : annuler a gauche, l'acte a droite, en rouge quand il supprime. */
.dlg { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: var(--k-sp-20); direction: ltr; }
.dlg[hidden] { display: none; }
.dlg-veil { position: absolute; inset: 0; background: rgba(15, 23, 32, 0.32); opacity: 0; transition: opacity .18s ease; }
.dlg.is-open .dlg-veil { opacity: 1; }
.dlg-card {
  position: relative; box-sizing: border-box; width: 100%; max-width: 340px;
  padding: var(--k-sp-24) var(--k-sp-20) var(--k-sp-16); background: var(--card); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--k-r-16); box-shadow: 0 18px 50px rgba(15, 23, 32, 0.22);
  opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .18s ease, transform .18s ease-out; outline: none;
}
.dlg.is-open .dlg-card { opacity: 1; transform: none; }
.dlg-msg { margin: 0 0 var(--k-sp-20); font-size: calc(16px * var(--text-scale, 1)); line-height: 1.45; text-align: center; }
.dlg-acts { display: flex; gap: var(--k-sp-8); }
.dlg-acts button {
  flex: 1 1 0; min-height: 44px; padding: 0 var(--k-sp-12); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600;
  border-radius: var(--k-r-12); border: 1px solid var(--border); background: var(--bg); color: var(--text);
  cursor: pointer; touch-action: manipulation; transition: background-color .15s ease;
}
.dlg-acts button:hover { background: var(--card-hover); }
.dlg-acts button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dlg-ok { background: var(--accent); border-color: transparent; color: #fff; }
.dlg-ok:hover { background: var(--accent-text); }
.dlg-ok.is-danger { background: #c62828; }
.dlg-ok.is-danger:hover { background: #a91f1f; }
@media (prefers-reduced-motion: reduce) { .dlg-veil, .dlg-card { transition: none; } }

/* LE MENU DES TROIS POINTS, sur la ligne du titre Traductions (09/11/2026 : « sur la meme
   ligne que translations a minima et dans un sous menu de 3 points »). Pose sur la ligne, avant le
   chevron du titre ; 44 px pour le doigt. Le menu est le meme .side-pop que celui d'une traduction. */
.side-h { position: relative; display: flex; align-items: center; }
.side-hact {
  position: absolute; top: 50%; right: 26px; z-index: 1; width: 44px; height: 44px; margin: -24px 0 0; padding: 0;
  border: 0; border-radius: var(--k-r-12); background: none; color: var(--faint); cursor: pointer; touch-action: manipulation;
}
.side-hact span, .side-hact span::before, .side-hact span::after {
  position: absolute; top: 20px; width: 4px; height: 4px; border-radius: 50%; background: currentColor;
}
.side-hact span { left: 20px; }
.side-hact span::before, .side-hact span::after { content: ''; top: 0; }
.side-hact span::before { left: -7px; }
.side-hact span::after { left: 7px; }
.side-hact:hover, .side-hact[aria-expanded="true"] { color: var(--text); background: rgba(17, 24, 39, 0.06); }
.side-hact:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

/* L'ORAL COMPLET ET LE CONTROLE DES PHRASES (26.10.2026, ecarts 6 et 7 du document d'ecart). */
.or-run { margin: var(--k-sp-16) 0 var(--k-sp-20); padding: var(--k-sp-16) var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-16); background: var(--card); }
.or-run-h { margin: 0 0 var(--k-sp-4); font-size: calc(17px * var(--text-scale, 1)); }
.or-run-how { margin: 0 0 var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.or-run-need { margin: var(--k-sp-8) 0 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: #b3261e; }
.or-run-need[hidden] { display: none; }
.or-run-bar, .or-run-done { display: none; }
.or-run[data-st="run"] .or-run-idle, .or-run[data-st="run"] .or-run-how { display: none; }
.or-run[data-st="run"] .or-run-bar { display: block; }
.or-run[data-st="done"] .or-run-done { display: block; margin: 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.or-run[data-st="done"] .or-run-how { display: none; }
.or-run-prog { margin: 0 0 var(--k-sp-8); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600; font-variant-numeric: tabular-nums; }
.or-run-btns { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); }
.or-run[data-pos="first"] .or-run-prev, .or-run[data-pos="only"] .or-run-prev, .or-run[data-pos="last"] .or-run-next, .or-run[data-pos="only"] .or-run-next { display: none; }
.or-run:not([data-pos="last"]):not([data-pos="only"]) .or-run-fin { display: none; }
.al-oral[data-run="1"] .or-tabs, .al-oral[data-run="1"] .or-gender, .al-oral[data-run="1"] .or-part > .or-row, .al-oral[data-run="1"] .or-extras, .al-oral[data-run="1"] .or-score,
.al-oral[data-run="1"] .or-showm, .al-oral[data-run="1"] .or-model, .al-oral[data-run="1"] .or-item:not([data-run-cur]) { display: none; }
.or-label { overflow-wrap: anywhere; }
.or-cnt { margin: var(--k-sp-8) 0; padding: var(--k-sp-12) var(--k-sp-16); border: 1px dashed var(--border); border-radius: var(--k-r-12); }
.or-cnt-h { margin: 0 0 var(--k-sp-8); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600; }
.or-cnt-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--k-sp-8) var(--k-sp-12); margin: var(--k-sp-8) 0; }
.or-cnt-m, .or-cnt-p { min-width: 44px; padding: 0; font-size: calc(22px * var(--text-scale, 1)); }
.or-cnt-v { min-width: 2ch; text-align: center; font-size: calc(20px * var(--text-scale, 1)); font-variant-numeric: tabular-nums; }
.or-cnt-verdict { margin: var(--k-sp-4) 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.or-cnt-verdict [data-s], .or-cnt-est [data-s] { display: none; }
.or-cnt[data-vd="missing"] .or-cnt-verdict [data-s="missing"], .or-cnt[data-vd="reached"] .or-cnt-verdict [data-s="reached"], .or-cnt[data-vd="over"] .or-cnt-verdict [data-s="over"] { display: inline; }
.or-cnt[data-vd="reached"] .or-cnt-verdict { color: var(--accent-text); font-weight: 600; }
.or-cnt-est { margin: var(--k-sp-4) 0 0; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--dim); }
.or-cnt[data-es="estimate"] .or-cnt-est [data-s="estimate"], .or-cnt[data-es="noTake"] .or-cnt-est [data-s="noTake"], .or-cnt[data-es="unreadable"] .or-cnt-est [data-s="unreadable"], .or-cnt[data-es="silent"] .or-cnt-est [data-s="silent"] { display: inline; }

/* ================================================================ 27.10.2026 · bascule de translitteration
 * Sur toutes les pages, a cote du ת (ou de la croix). Icone SVG sans lettre latine : une bulle et
 * des barres de son ; une barre oblique quand la lecture est cachee. */
.topbar-ut-tr { inset-inline-end: 118px; }       /* 66 (la croix) + 44 + 8 */
.topbar-ut-tr svg { width: 26px; height: 26px; display: block; }
.topbar-ut-tr .tr-off { display: none; }
.topbar-ut-tr[aria-pressed="false"] .tr-off { display: block; }
@media (min-width: 1280px) { .topbar-ut-tr { inset-inline-end: calc(var(--side-w, 300px) + 86px); } }
@media (min-width: 1280px) { html.side-collapsed .topbar-ut-tr { inset-inline-end: 118px; } }
html.ut-shell body.translate .topbar-ut-tr { top: calc(var(--vvt, 0px) + env(safe-area-inset-top) + 12px); }
/* La ligne « Cette forme » et la case allumee de la feuille d'un mot. */
.para-via { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--k-sp-4) var(--k-sp-8); margin: 0 0 var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.para-via-l { font-weight: 600; }
.para-via-he { font-size: calc(18px * var(--text-scale, 1)); color: var(--text); }
.para-via-how { color: var(--accent-text); font-weight: 600; }
.para-via-sense { color: var(--text); font-weight: 600; flex-basis: 100%; }
.para-via-lemma { color: var(--dim); }
.rc-line { display: flex; flex: 1 1 auto; flex-wrap: nowrap; align-items: baseline; gap: var(--k-sp-8); min-width: 0; overflow: hidden; white-space: nowrap; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--text); }
.rc-item { display: inline-flex; align-items: baseline; gap: var(--k-sp-4); min-width: 0; flex: 0 1 auto; }
.rc-prep { flex: none; color: var(--accent-text); font-weight: 600; }
.rc-prep .he { font-size: 1.15em; line-height: 1.3; }
.rc-sense { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.rc-src { color: inherit; text-decoration: none; }
.rc-sfx-l { font-weight: 600; color: var(--dim); }
.para-cell.is-asked { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); background: var(--accent-dim); }

/* ================================================================ 27.10.2026 · verre clair (Liquid Glass d'Apple)
 * Verbatim : « bouton translucide - liquid glass type apple », puis « on veut voir le contenu
 * derriere en flou ». Les boutons qui FLOTTENT au-dessus du contenu (menu, croix, translitteration,
 * demarrer l'exercice) sont du verre clair : fond presque transparent, flou du contenu qui passe
 * dessous (backdrop-filter), liseré clair fin, reflet discret sur le bord haut, ombre legere.
 * Ni dégradé, ni couleur pleine. L'icone prend la couleur du texte (--lg-ink), lisible sur le fond
 * clair du site ; tools/measure-glass-contrast.cjs mesure son contraste sur le rendu. */
:root {
  --lg-fill: rgba(255, 255, 255, 0.05);
  --lg-fill-hi: rgba(255, 255, 255, 0.14);
  --lg-blur: blur(8px) saturate(170%);
  --lg-edge: rgba(255, 255, 255, 0.65);
  --lg-spec: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  --lg-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
  --lg-ink: #14181f;
}
.menu-btn, .topbar-ut, body.in-session #drill-go:not(:disabled) {
  color: var(--lg-ink);
  background: var(--lg-fill);
  border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-spec), var(--lg-shadow);
  -webkit-backdrop-filter: var(--lg-blur);
  backdrop-filter: var(--lg-blur);
}
.menu-btn:hover, .topbar-ut:hover, body.in-session #drill-go:not(:disabled):hover { background: var(--lg-fill-hi); border-color: var(--lg-edge); box-shadow: var(--lg-spec), var(--lg-shadow); }
.menu-btn span { background: var(--lg-ink); }
.topbar-ut-x span::before, .topbar-ut-x span::after { background: var(--lg-ink); }
/* Pendant un tour d'exercice la page est recouverte (z-index 69) : la bascule passe au-dessus (le tour est a 70) et
   se range au bout de la rangee du haut, apres « Reglages », qui lui laisse sa place. */
html body.in-session .topbar-ut-tr { z-index: 71; inset-inline-end: auto; left: auto; right: 16px; }
body.in-session .sess-top { padding-right: var(--k-sp-64); }   /* 08.11.2026 : 52 laissait la bascule recouvrir un bord du ת a 320 px (verify-tap) */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu-btn, .topbar-ut, body.in-session #drill-go:not(:disabled) { background: var(--card); }
}

/* --- La disposition des personnes (02.11.2026) ---------------------------------------------
 * Demande : « Atta et At cote a cote, Hu et Hi cote a cote, pour le passe, le futur ou autre ».
 * Deux colonnes a toute largeur d'ecran, lues de droite a gauche (direction: rtl du .tgrid) :
 * אני seul ; אתה | את ; הוא | היא ; אנחנו | אתם ; une forme sans pair seule. build/tables.mjs
 * (personSpan) pose .para-full sur la case seule ; le present (m.s, f.s…) n'a pas data-persons. */
html body .tgrid.tgrid[data-persons] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
html body .tgrid.tgrid[data-persons] > .para-full {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 3px);
  box-sizing: border-box;
}

/* ================================================================ 05.11.2026 · le traducteur dans la seance
 * 04.11 : « quand je suis dans practice ca serait bien de pouvoir avoir acces au traducteur
 * et de pouvoir revenir dans practice et reprendre ou j'etais ». Le ת est le quatrieme element de la
 * rangee du haut (retour, progression, reglages, ת), la bascule de translitteration restant fixe
 * au bout. Ecarts de 12 a 8 px et ת de 40 px : a 390 px la rangee reste dans l'ecran en francais,
 * ou « Retour au parcours » et « Réglages » sont plus larges qu'en anglais. */
.sess-tr { display: none; }
body.in-session .sess-top { gap: var(--k-sp-8); }
body.in-session .sess-tr {
  display: flex; flex: 0 0 auto; align-items: center; justify-content: center;
  width: 44px; min-height: 44px; padding: 0; border-radius: 999px; cursor: pointer; touch-action: manipulation;
  font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(25px * var(--text-scale, 1)); line-height: 1;
  border: 1px solid var(--border); background: var(--card); color: var(--accent-text);
}
body.cursive.in-session .sess-tr { font-family: 'Gveret Levin', cursive; font-size: calc(28px * var(--text-scale, 1)); }
body.in-session .sess-tr[aria-expanded="true"] { border-color: var(--accent); color: var(--accent); }
/* Le cadre couvre la seance, qui reste dessous, intacte. --vvt et --vvh : la zone visible, posee
   par app.js tant que le cadre est ouvert. */
.sess-tr-panel { position: fixed; left: 0; right: 0; top: var(--vvt, 0px); height: var(--vvh, 100%); z-index: 80; background: var(--bg); }
.sess-tr-panel[hidden] { display: none; }
.sess-tr-panel iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--bg); }
html.in-frame .menu-btn, html.in-frame #menu-panel { display: none !important; }
/* Sans menu dans le cadre, la croix prend la place du menu (au bord), la bascule de translitteration
   la suit, et la date, qui passait sous elles, s'efface. */
html.in-frame .topbar-ut { inset-inline-end: 14px; }
html.in-frame .topbar-ut-tr { inset-inline-end: 66px; }
html.in-frame .hero-date { display: none !important; }

/* La suggestion d'orthographe en hebreu (04.11.2026), sous la zone de texte. Chaque cible mesure
   40 px au moins. Le rang est ltr comme .ut-field ; le mot suggere est rtl (attribut dir). */
.ut-spell { display: flex; align-items: center; flex-wrap: wrap; gap: var(--k-sp-8); direction: ltr; padding: var(--k-sp-4) var(--k-sp-16) var(--k-sp-8); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.ut-spell[hidden] { display: none; }
.ut-spell-list { display: flex; flex-wrap: wrap; gap: var(--k-sp-8); }
.ut-spell-chip { min-width: 40px; min-height: 40px; padding: 0 var(--k-sp-16); font: inherit; font-size: calc(18px * var(--text-scale, 1)); color: var(--text); background: var(--accent-dim); border: 1px solid var(--accent); border-radius: var(--k-r-16); cursor: pointer; }
.ut-spell-chip:active { transform: scale(.96); }

/* c1131 (05.11.2026) : le sens de la phrase a trou, a la demande (bouton) ou toujours visible
   (reglage). Une ligne sous la phrase ; la carte ne defile pas. */
.drill-sense { margin-top: var(--k-sp-8); text-align: center; min-height: 0; }
.drill-sense[hidden], .drill-sense-btn[hidden], .drill-sense-text[hidden] { display: none; }
.drill-sense-btn {
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); padding: var(--k-sp-8) var(--k-sp-20); min-height: 40px; min-width: 64px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
}
.drill-sense-btn:hover { background: rgba(0,113,185,.07); }
.drill-sense-text { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.4; color: var(--dim); max-width: 34rem; margin-inline: auto; overflow-wrap: anywhere; }

/* c1131 : « Lire et ecouter » en tete d'un texte ou d'un dialogue du journal. */
.read-all {
  display: inline-flex; align-items: center; gap: var(--k-sp-8); margin: 0 0 var(--k-sp-12); padding: var(--k-sp-8) var(--k-sp-20); min-height: 44px;
  font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); border-radius: 999px; cursor: pointer;
  border: 1px solid var(--accent); background: transparent; color: var(--accent);
}
.read-all:hover { background: rgba(0,113,185,.07); }
.read-all .rd-stop, .read-all[aria-pressed="true"] .rd-play { display: none; }
.read-all[aria-pressed="true"] .rd-stop { display: inline; }
.read-all[aria-pressed="true"] { background: var(--accent); color: #fff; }
.line.reading-now { background: rgba(0,113,185,.12); border-radius: var(--k-r-8); }
@media print { .read-all { display: none; } }
.read-all[hidden] { display: none; }

/* L'accueil en cartes (08.11.2026 : « S'organiser plus en cards », « je veux pas qu'on
 * s'eloigne trop du style actuel »). Aucun jeton nouveau : couleurs, rayons et pastilles sont
 * ceux de .unit, .test-cta et .lesson. Tout est en direction ltr : la page est rtl, et chaque
 * ligne de ces blocs est latine (verify-bidi le mesure). */
.cartes-home, .cartes-top, .cartes-stat, .cartes-goal, .cartes-path, .cartes-archive { direction: ltr; text-align: left; }
.cartes-top { display: flex; flex-wrap: wrap; gap: var(--k-sp-4) var(--k-sp-24); align-items: baseline; padding: var(--k-sp-4) 0 var(--k-sp-12); }
/* Le haut de l'accueil (16/11/2026) : sur un iPhone a encoche, les boutons flottants sont a safe-area + 12 px et le texte defilait dessous.
   Une bande pleine, sous les boutons, couvre le haut a tout moment ; le contenu au repos commence sous elle. */
.cartes-home { padding-top: env(safe-area-inset-top); }
/* Objectif du jour et score cote a cote (16/11/2026) : le texte courant a 16 px poussait le parcours hors du premier ecran (567 px).
   Deux cartes sur une ligne rendent la place, sans rien retirer ni reduire le texte. Les autres enfants gardent la pleine largeur. */
.cartes-home { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--k-sp-12); align-content: start; }
.cartes-home > * { grid-column: 1 / -1; min-width: 0; }
.cartes-home > .cartes-goal, .cartes-home > .cartes-score { grid-column: auto; }
body:has(.cartes-home)::before { content: ''; position: fixed; inset: 0 0 auto 0; height: calc(var(--fab-band, 68px) + env(safe-area-inset-top)); background: var(--bg); z-index: 50; pointer-events: none; }
.stats-avis-plus { color: var(--accent-text, #0071bc); text-decoration: underline; white-space: nowrap; }
.privacy-detail { direction: ltr; text-align: left; }
.cartes-stat { margin: 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.cartes-goal { display: grid; grid-template-columns: 1fr auto; gap: var(--k-sp-8) var(--k-sp-12); align-items: baseline; padding: var(--k-sp-12) var(--k-sp-16); margin: 0 0 var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-12); background: var(--card); }
.cartes-goal-t { font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--accent-text); }
.cartes-goal-n { color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-variant-numeric: tabular-nums; }
.cartes-goal .unit-bar { grid-column: 1 / -1; margin-top: 0; }
.cartes-score { display: grid; grid-template-columns: 1fr auto; gap: var(--k-sp-4) var(--k-sp-12); align-items: baseline; padding: var(--k-sp-12) var(--k-sp-16); margin: 0 0 var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-12); background: var(--card); direction: ltr; text-align: left; }
.cartes-score-n { font-size: calc(28px * var(--text-scale, 1)); font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text); line-height: 1.1; }
.cartes-score-d { grid-column: 1 / -1; color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-variant-numeric: tabular-nums; }
.cartes-review, .cartes-start { display: block; flex: none; margin: 0 0 var(--k-sp-8);   /* 24 -> 8 : le parcours des modules commence a 502 px au lieu de 518, dans le premier ecran de 844 px (verify-home-hero : moins de 60 %) */ }
.cartes-path { list-style: none; margin: var(--k-sp-4) 0 var(--k-sp-20); padding: 0; display: flex; flex-direction: column; gap: var(--k-sp-8); }
a.unit-module, a.unit-lib { text-decoration: none; }
.cartes-archive { margin: var(--k-sp-8) 0 28px; }
.mod-days { margin-bottom: var(--k-sp-24); }
.tr-w { white-space: nowrap; }

/* Test de niveau, controle de fin de module, progression par module (c1179). Composants repris :
   .drill-opt, .cta, .unit, .unit-bar, .test-cta ; aucune palette, police ni icone nouvelle. */
.niveau, .niveau-card, .niveau-count, .niveau-ask, .niveau-q, .niveau-intro, .unit-tags, .unit-prog, .mod-valid { direction: ltr; text-align: left; }
.niveau-count { margin: 0 0 var(--k-sp-8); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); font-variant-numeric: tabular-nums; }
.niveau-ask { margin: var(--k-sp-16) 0 var(--k-sp-4); color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.niveau-q { font-size: calc(34px * var(--text-scale, 1)); line-height: 1.3; text-align: center; padding: var(--k-sp-12) 0 var(--k-sp-8); overflow-wrap: anywhere; }
.niveau-q .he { font-size: inherit; }
.niveau-opts { margin-top: var(--k-sp-12); }
.niveau-next { display: block; width: 100%; margin: var(--k-sp-8) 0 28px; }
.niveau-card { padding: var(--k-sp-20) var(--k-sp-16); margin: var(--k-sp-8) 0 var(--k-sp-24); border: 1px solid var(--border); border-radius: var(--k-r-12); background: var(--card); }
.niveau-eyebrow { margin: 0; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--accent-text); }
.niveau-big { margin: var(--k-sp-4) 0 var(--k-sp-4); font-size: calc(28px * var(--text-scale, 1)); line-height: 1.2; }
.niveau-title { margin: 0 0 var(--k-sp-12); font-size: calc(16px * var(--text-scale, 1)); }
.niveau-score, .niveau-note { margin: 0 0 var(--k-sp-8); color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.niveau-card .cta { display: block; width: 100%; margin: var(--k-sp-12) 0 0; text-align: center; box-sizing: border-box; }
.niveau-home { display: inline-block; margin-top: var(--k-sp-16); color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.niveau-cta { display: block; margin: 0 0 var(--k-sp-12); padding-block: var(--k-sp-12); text-decoration: none; }   /* 16/11/2026 : 12 px au lieu de 16, pour tenir le parcours dans le premier ecran */
.unit-tags { grid-column: 1 / -1; display: flex; gap: var(--k-sp-8); }
.unit-tag { display: none; padding: 1px var(--k-sp-8); border: 1px solid var(--accent); border-radius: 999px; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; letter-spacing: 0.3px; text-transform: uppercase; color: var(--accent-text); }
a.unit-module.is-yours .unit-tag-yours, a.unit-module.is-valid .unit-tag-valid { display: inline-block; }
a.unit-module.is-yours { border-color: var(--accent); }
.unit-prog { grid-column: 1 / -1; color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-variant-numeric: tabular-nums; }
.mod-valid { margin: 0 0 var(--k-sp-16); font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); }
.mod-valid:has(> [hidden]) { margin: 0; }
.mod-unit { direction: ltr; text-align: left; margin: 28px 0 -8px; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); letter-spacing: .5px; text-transform: uppercase; color: var(--dim); }
.niveau-valid { color: var(--accent-text); font-weight: 600; }

/* Fiche de module : une unite du manuel par details (c1195) */
.mod-unit-d { margin: 0; }
.mod-unit-t { color: var(--dim); font-weight: 400; margin-left: var(--k-sp-8); }
.mod-unit-body { padding-bottom: var(--k-sp-12); }

/* ================================================================ 09.11.2026 · la fiche du mot en surimpression
 * Demande : « ca devrait juste faire sortir la fiche du mot direct ». Le cadre (word-tap.js) montre la reponse du mot
 * et la feuille des formes ; le champ et son dock n'y servent a rien : on ne tape rien dans une fiche. */
html.fiche-frame .ut-dock { display: none !important; }
/* c1224 : la fiche ne montre QUE la feuille. Le cadre est transparent, colle au bas de la page, a la hauteur de la
 * feuille (--wt-h, dite par word-sheet.js) ; tout le reste de la page Traduire, qui sert a resoudre le mot, est
 * invisible. Un toucher sur la partie transparente n'existe pas : le cadre s'arrete au haut de la feuille. */
html.fiche-frame, html.fiche-frame body { background: transparent !important; }
html.fiche-frame body > *:not(.ws):not(script):not(style) { visibility: hidden !important; }
html.fiche-frame .ws { left: 0 !important; max-height: calc(var(--fiche-vh, 100svh) * 0.62); }
.wt-panel { position: fixed; left: 0; right: 0; bottom: 0; height: var(--wt-h, 62svh); z-index: 80; background: transparent; pointer-events: none; }
.wt-panel[hidden] { display: none; }
.wt-panel.is-ready { pointer-events: auto; }
/* L'appui long sur un mot (word-tap.js). Le mot se remplit de droite a gauche (l'hebreu se lit ainsi) pendant
 * --wt-hold : un voile d'accent qui grandit, transform et opacite seulement. Le toucher court ne laisse rien. */
body.word-tap .he, body.word-tap .he-in, body.word-tap .drill-sentence, body.word-tap .line-he {
  -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.wt-press { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 70; pointer-events: none; }
.wt-press i {
  position: fixed; border-radius: 6px; background: var(--accent-dim); box-shadow: 0 0 0 3px var(--accent-dim);
  transform-origin: right center; transform: scaleX(0); opacity: .9;
  animation: wt-fill var(--wt-hold, 450ms) cubic-bezier(.3, .1, .6, 1) forwards;
}
/* Le clavier (word-tap.js, c1318) : le mot qui a le focus se voit, et le mot choisi dans une ligne de plusieurs mots aussi. */
body.word-tap [data-wt-key]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wt-cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 70; pointer-events: none; }
.wt-cursor i { position: fixed; border-radius: 6px; background: var(--accent-dim); box-shadow: 0 0 0 2px var(--accent); opacity: .9; }
@keyframes wt-fill { from { transform: scaleX(0); opacity: .35; } to { transform: scaleX(1); opacity: 1; } }
/* La fiche glisse depuis le bas avec un ressort court (une depassee de 3 % environ) et repart a l'envers, plus vite.
 * C'est le cadre qui bouge ; la feuille, dedans, ne se joue pas une seconde fois. fermetureMs (config.json) = 240 ms. */
html.fiche-frame .ws { transform: none; transition: none; }
.wt-panel { transform: translateY(100%); opacity: 0; transition: transform .24s cubic-bezier(.4, 0, 1, 1), opacity .24s ease-in; will-change: transform, opacity; }
.wt-panel.is-ready { transform: none; opacity: 1; transition: transform .34s cubic-bezier(.34, 1.36, .5, 1), opacity .2s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .wt-press i { animation: none; transform: none; }
  .wt-panel, .wt-panel.is-ready { transition: none; transform: none; }
}
.wt-panel iframe { display: block; width: 100%; height: 100%; border: 0; background: transparent; color-scheme: light; }
body.wt-open { padding-bottom: var(--wt-h); }

.poal-root-link { text-decoration: none; color: inherit; border-bottom: 1px dotted var(--accent); }

.ut-hw-more { font-family: 'Frank Ruhl Libre', 'David', serif; font-size: calc(31px * var(--text-scale, 1)); line-height: 1.35; color: var(--faint); }



/* L'atlas des racines et le volet Comprendre (build/racines.mjs, build/comprendre.mjs, c1234).
   Ces pages n'ont plus de style propre : elles posent les composants des modules (tbl-vocab,
   para-card, para-grid, unit, tag, mod-unit, eyebrow, intro, section-note). Ne restent que la
   mise en page de ce que les modules n'ont pas, et seulement avec les variables de la page
   (verify-design-pages garde : aucune couleur, aucune police en dur). */
.racine .en, .comprendre .en { display: block; }
.racines .unit { align-content: start; }
.comprendre h2 { margin-top: 28px; }
.comprendre .para-card-head { direction: ltr; text-align: start; }
.comprendre .intro { margin-bottom: var(--k-sp-16); }
.comprendre .para-card, .comprendre .para-grid { margin: var(--k-sp-12) 0; }
.comprendre .para-grid .para-card { margin: 0; }
.comprendre .para-card .section-note { margin-bottom: 0; }
.cmp-anat-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--k-sp-8); direction: rtl; }
.cmp-chip { border: 1px solid var(--border); border-radius: var(--k-r-8); padding: 0 var(--k-sp-12); }
.cmp-arrow { color: var(--faint); }
.cmp-steps { margin: var(--k-sp-8) 0 var(--k-sp-8); padding-inline-start: var(--k-sp-20); line-height: 1.55; direction: ltr; text-align: start; color: var(--dim); }
.cmp-nv { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); margin-inline-start: var(--k-sp-8); vertical-align: middle; }
.cmp-lien, .cmp-pager a { color: var(--accent-text); }
.cmp-pager { display: flex; justify-content: space-between; gap: var(--k-sp-12); margin: var(--k-sp-24) 0 var(--k-sp-8); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); direction: ltr; }


/* ================================================================ 09.11.2026 · boutons flottants plus petits, bouton retour
 * Demande du jour : « Toujours avoir un bouton grosse fleche pour revenir en arriere lorsqu'on navigue, sous le
 * sandwich plutot que d'avoir un lien. Peut etre on peut aussi reduire legerement la taille des
 * boutons ». Le verre visible passe de 44 a 38 px ; la cible de toucher reste de 44 px : le bouton
 * garde sa boite de 44 px (transparente), et le verre est son ::before, 3 px en retrait. Les ecarts
 * de 8 px entre boites, et donc les positions, ne bougent pas. Le retour est sous le menu ; sur
 * ordinateur, sous le ת. Le corps laisse la place de la fleche sous la rangee du haut. */
:root { --fab: 38px; --fab-hit: 44px; --fab-in: calc((var(--fab-hit) - var(--fab)) / 2); }
.menu-btn, .topbar-ut, .topbar-back { position: relative; box-sizing: border-box; width: var(--fab-hit); height: var(--fab-hit); padding: 0; }
.topbar-ut, .topbar-back { position: fixed; }
.menu-btn, .menu-btn:hover, .topbar-ut, .topbar-ut:hover, .topbar-back, .topbar-back:hover {
  background: transparent; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.menu-btn { z-index: 0; }
.menu-btn::before, .topbar-ut::before, .topbar-back::before {
  content: ''; position: absolute; z-index: -1; inset: var(--fab-in); box-sizing: border-box; pointer-events: none;
  border-radius: var(--k-r-12); background: var(--lg-fill); border: 1px solid var(--lg-edge);
  box-shadow: var(--lg-spec), var(--lg-shadow); -webkit-backdrop-filter: var(--lg-blur); backdrop-filter: var(--lg-blur);
  transition: background 0.15s;
}
.menu-btn:hover::before, .topbar-ut:hover::before, .topbar-back:hover::before { background: var(--lg-fill-hi); }
.topbar-ut { font-size: calc(20px * var(--text-scale, 1)); }
body.cursive .topbar-ut { font-size: calc(22px * var(--text-scale, 1)); }
.topbar-ut-tr svg { width: 23px; height: 23px; }
.menu-btn span { width: 16px; }
.topbar-back {
  top: 12px; inset-inline-end: 170px; z-index: 60;    /* 14 + 3 x 52 : a la suite du menu, du ת et de la bascule, sur leur ligne */
  display: flex; align-items: center; justify-content: center;
  color: var(--lg-ink); text-decoration: none; touch-action: manipulation;
}
.topbar-back svg { width: 26px; height: 26px; display: block; }
.topbar-back:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (min-width: 1280px) {
  .topbar-back { inset-inline-end: calc(var(--side-w, 300px) + 138px); }
  html.side-collapsed .topbar-back { inset-inline-end: 170px; }
}
html.in-frame .topbar-back { display: none !important; }
html.ut-shell body.translate .topbar-back { top: calc(var(--vvt, 0px) + env(safe-area-inset-top) + 12px); }
html.ut-shell body.translate .ut-thread { padding-top: calc(env(safe-area-inset-top) + 118px); }
/* LE FIL NE SE VOIT PAS AU-DESSUS DES BOUTONS (c1322, 10/11/2026, capture de 11:38 : « to shut, to close (one's eyes) » passait
   dans la bande du haut, entre l'heure et les boutons). Le fil defile sous le verre des boutons (27.10.2026, voulu) mais le
   verre ne couvre pas la bande au-dessus d'eux : elle reste claire jusqu'au haut des boutons (zone sure + 12 px, comme
   `top` des boutons), puis le fil reparait sur 20 px. */
html.ut-shell body.translate .ut-thread {
  -webkit-mask-image: linear-gradient(to bottom, transparent calc(env(safe-area-inset-top) + 12px), #000 calc(env(safe-area-inset-top) + 32px));
  mask-image: linear-gradient(to bottom, transparent calc(env(safe-area-inset-top) + 12px), #000 calc(env(safe-area-inset-top) + 32px));
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .menu-btn::before, .topbar-ut::before, .topbar-back::before { background: var(--card); }
}

/* Portail Shir & Tefila (etape 7) : seulement la disposition. Couleurs, polices et tailles viennent des
   jetons et des composants de Kita10 (para-card, unit, tbl-vocab, section-note, tr, en). */
.shir-texte .st-parts, .shir-texte .st-tips, .shir-texte .st-pardes, .shir-texte .st-source, .shir-index .intro, .shir-section .intro { direction: ltr; text-align: start; }
.st-part { margin: var(--k-sp-12) 0; }
.st-part + .st-part { margin-top: var(--k-sp-12); }
.st-line + .st-line { margin-top: var(--k-sp-12); }
.st-he { display: flex; align-items: baseline; justify-content: flex-start; direction: rtl; gap: var(--k-sp-4); }
.st-he .he { flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.st-tr, .st-en { margin: var(--k-sp-4) 0 0; }
.st-resume { margin: var(--k-sp-12) 0 0; }

.st-mots, .st-pardes { margin: var(--k-sp-12) 0 0; }
.st-mots > summary, .st-pardes > summary { cursor: pointer; color: var(--accent-text); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); padding: var(--k-sp-8) 0; }
.st-pardes { margin-bottom: var(--k-sp-20); }
.st-tips { margin: var(--k-sp-20) 0 0; }
.st-tips ul { margin: 0; padding-inline-start: var(--k-sp-20); line-height: 1.55; color: var(--dim); }
.st-source { margin: var(--k-sp-20) 0 var(--k-sp-8); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); }
.shir-index .unit-sub, .shir-section .unit-sub { display: block; color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.st-titre-he, .shir-texte header .section-note { flex: 0 0 100%; margin: 0; }

/* Bibliotheque (etape 6) : seulement la disposition. Les lignes de texte reprennent celles du portail (st-*) ;
   couleurs, polices et tailles viennent des jetons et des composants de Kita10. */
.bib-lecon .intro, .bib-index .intro, .bib-section .intro, .bib-lecon .bib-texte, .bib-lecon .bib-notes, .bib-lecon .bib-plus { direction: ltr; text-align: start; }
.bib-texte { margin: var(--k-sp-12) 0; }
.bib-replique .st-he .tag { margin-inline-start: var(--k-sp-8); }
.bib-contre { display: block; margin-top: var(--k-sp-4); }
.bib-notes { margin: var(--k-sp-20) 0 0; }
.bib-notes ul { margin: 0; padding-inline-start: var(--k-sp-20); line-height: 1.55; color: var(--dim); }
.bib-plus { margin: var(--k-sp-20) 0 0; }
.bib-plus > summary { cursor: pointer; color: var(--accent-text); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); padding: var(--k-sp-8) 0; }
.bib-index .unit-sub, .bib-section .unit-sub { display: block; color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }

/* La scene reelle (c1306). Composants repris : .niveau, .drill-opt, .cta, .unit-bar ; aucune icone, aucune couleur nouvelle. */
.scene .niveau-q.scene-prompt { font-size: calc(26px * var(--text-scale, 1)); }
.scene-gloss { margin: 0 0 var(--k-sp-8); color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); direction: ltr; text-align: left; }
.scene .drill-opt .he { font-size: calc(20px * var(--text-scale, 1)); line-height: 1.5; }
.scene-verdict { min-height: 22px; margin: var(--k-sp-12) 0 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); direction: ltr; text-align: left; }
.scene-right { color: var(--accent-text); font-weight: 600; }
.scene-wrong { color: var(--dim); }
.scene-cta { display: block; margin: 0 0 var(--k-sp-16); text-decoration: none; }

/* Lien de verification d'une racine (racine-ktav) : le jeton d'accent, pas le bleu par defaut du navigateur
   (verify-design-pages : rgb(0,0,238) hors des jetons ; #101005). */
.racine-verifie a { color: var(--accent); }

/* ---------------------------------------------------------------- 10.11.2026 (c1311) : naviguer de fiche en fiche
 * « quand je suis dans une fiche j'aimerais pouvoir naviguer entre differents mots [...] mais je veux aussi pouvoir
 * revenir en arriere ». Le bouton retour de la fiche reprend la fleche de #ut-back (copiee par word-sheet.js) ; cible de
 * 44 px. La croix et lui tiennent le bord gauche de l'en-tete, la croix a droite du retour. Une carte de mot de la
 * fiche s'ouvre d'un appui : le curseur le dit. */
.ws-ctl { display: flex; align-items: center; flex: 0 0 auto; }
.ws-back {
  position: relative; flex: 0 0 auto; width: 44px; height: 44px; padding: 0; display: grid; place-items: center;
  background: none; border: 0; border-radius: 50%; cursor: pointer; color: var(--dim);
}
.ws-back[hidden] { display: none; }
.ws-back svg { width: 24px; height: 24px; }
.ws-back:hover { background: rgba(17, 24, 39, 0.05); }
.ws-back:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
html.fiche-frame .ws-body .para-cell { cursor: pointer; }

/* L'icone de son, ecartee de son mot (c1311, 10.11.2026, l'auteur : « Les icones pour jouer le son des mots sont trop collés aux
 * mots aussi c'est pas beau ca »). Mesure du 10.11 a 390 px dans la fiche : 4,7 px dans l'en-tete, 0 px dans les cartes (forme et
 * meme racine). Cause : la marge de .say est en `margin-left` PHYSIQUE ; dans une carte en rtl le glyphe suit le mot par sa droite,
 * et c'est la marge de droite (-13 px) qui joue. Ici la marge est LOGIQUE : le meme ecart des deux cotes. L'ecart est le jeton
 * deja pose sur la carte d'entrainement (.srs-front .say : .5em de la taille du bouton, 6,7 px). `top` aligne le glyphe sur la
 * ligne du mot (mesure : le centre du glyphe tombait 2,5 a 3 px sous le centre du mot). */
.ws .say { margin: -12px; margin-inline-start: calc(.5em - 13px); top: -2.75px; }

/* ==== Shir & Tefila : page de lecture (c1313, 10/11/2026) : modes Study / Reading, trois lignes, bande haute, icone de son, chants. ==== */
/* MAQUETTE « apres » : page de lecture Shir & Tefila (psaumes, prieres, chants).
 * Cette feuille s'ajoute APRES style.css. Elle ne change aucun jeton : tout vient de :root (--bg, --card,
 * --border, --text, --dim, --faint, --accent, --accent-text, --warn). Elle devient un bloc de assets/style.css
 * apres l'application du diff (voir RAPPORT.md, section Diff). */

/* Jetons nommes par les feuilles de la bibliotheque (chords.css) : meme valeur que ceux de Kita10. */
:root { --bg-card: var(--card); --bg-card-hover: var(--card-hover); --text-dim: var(--dim); --text-faint: var(--faint); --error: var(--warn); --fab-band: 68px; --say-gap: 16px; --say-inset: 12px; }

/* 1. Bande haute : le texte passe sous une bande pleine, jamais entre les boutons (hyp. 3). */
.topband { position: fixed; inset: 0 0 auto 0; height: var(--fab-band); background: var(--bg); border-bottom: 1px solid var(--border); z-index: 50; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
body.is-scrolled .topband { opacity: 1; pointer-events: auto; }
.menu, .topbar-ut, .topbar-back { z-index: 60; }

/* 2. Titre : l'etiquette passe au-dessus du titre (hyp. 7). Cause : style.css:4253, row-reverse a <= 560 px. */
.shir-texte header > div { flex-direction: column; align-items: flex-start; gap: var(--k-sp-4); }
.shir-texte header .eyebrow { margin: 0; }

/* 3. Trois lignes d'un verset, trois poids : hebreu grand et sombre, lecture bleue plus petite, sens gris (hyp. 6). */
.shir-texte .st-line { margin: 0; padding: var(--k-sp-16) 0; border-top: 1px solid var(--border); }
.shir-texte .kind + .st-line { border-top: 0; padding-top: var(--k-sp-4); }
.shir-texte .st-he .he { font-size: calc(26px * var(--text-scale, 1)); line-height: 1.85; color: var(--text); }
.shir-texte .st-tr { margin: var(--k-sp-4) 0 0; }
.shir-texte .st-tr .tr { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.5; letter-spacing: .02em; font-weight: 500; color: var(--accent-text); }
.shir-texte .st-en { margin: var(--k-sp-4) 0 0; font-size: calc(16px * var(--text-scale, 1)); line-height: 1.55; color: var(--dim); }

/* 4. Icone de son : visible (opacite .9, couleur accent-text) et cible de 44 px (hyp. 4). */
.shir-texte .say { width: 44px; height: 44px; margin: 0; opacity: .9; }
.shir-texte .say::before { inset: var(--say-inset); background-color: var(--accent-text); }

/* 5. Cibles de 44 px : repli, titres de repli, pagination, boutons-liens. */
.shir-texte summary, .shir-texte .st-mots > summary, .shir-texte .st-pardes > summary { display: flex; align-items: center; min-height: 44px; }
.shir-texte .cmp-pager a { display: inline-flex; align-items: center; min-height: 44px; }
.shir-texte .link-btn, .shir-texte .t-chord select, .shir-texte .t-chord input { min-height: 44px; }
.shir-texte .link-btn { padding-inline: var(--k-sp-8); }
.shir-texte .st-source { margin-bottom: 96px; }

/* 6. Commandes de mode : un segment Etude / Lecture, puis trois pastilles en mode lecture. */
.st-modes { margin: 0 0 var(--k-sp-16); }
.st-modes .seg { display: flex; gap: var(--k-sp-4); padding: var(--k-sp-4); background: var(--card-hover); border-radius: var(--k-r-12); }
.st-modes .seg button { flex: 1; min-height: 44px; border: 0; border-radius: var(--k-r-12); background: none; color: var(--dim); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600; cursor: pointer; touch-action: manipulation; }
.st-modes .seg button[aria-pressed="true"] { background: var(--card); color: var(--accent-text); box-shadow: inset 0 0 0 1px var(--border); }
.st-modes .chips { display: none; flex-wrap: wrap; gap: var(--k-sp-8); margin-top: var(--k-sp-12); }
body.mode-lecture .st-modes .chips { display: flex; }
.st-modes .chips button { min-height: 44px; padding: 0 var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-16); background: var(--card); color: var(--dim); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); cursor: pointer; touch-action: manipulation; }
.st-modes .chips button[aria-pressed="true"] { border-color: var(--accent-text); color: var(--accent-text); font-weight: 600; background: var(--accent-dim); }

/* 7. Mode lecture : la priere entiere en hebreu continu. Translitteration, sens, mot a mot, accords : a la demande. */
body.mode-lecture .intro { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: var(--k-sp-12); cursor: pointer; }
body.mode-lecture .intro.open { display: block; }
body.mode-lecture .st-part.para-card { border: 0; background: none; box-shadow: none; padding: 0; margin: 0; }
body.mode-lecture .st-part .kind { margin: var(--k-sp-20) 0 0; color: var(--accent-text); }
body.mode-lecture .st-line { padding: var(--k-sp-4) 0; border-top: 0; }
body.mode-lecture .st-he { min-height: 44px; cursor: pointer; }
body.mode-lecture .st-he .he { font-size: calc(28px * var(--text-scale, 1)); line-height: 1.7; }
body.mode-lecture .st-tr, body.mode-lecture .st-en { display: none; }
body.mode-lecture .st-parts.show-tr .st-tr, body.mode-lecture .st-line.open .st-tr { display: block; }
body.mode-lecture .st-parts.show-en .st-en, body.mode-lecture .st-line.open .st-en { display: block; }
body.mode-lecture .st-mots { display: none; }
body.mode-lecture .st-parts.show-mots .st-mots { display: block; }
body.mode-lecture .st-resume { display: none; }
body.mode-lecture .st-chords { display: none; }
body.mode-lecture .st-parts.show-chords .st-chords { display: flex; }

/* 8. Chant : accords et defilement automatique, rendus par le code existant (chords.js, autoscroll.js). */
.st-chords { display: flex; flex-wrap: wrap; align-items: center; direction: ltr; gap: var(--k-sp-4); font-family: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.st-chords .chord, .t-chord .chord, .active-voicings .chord { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--accent-text); font-weight: 700; cursor: pointer; }
.st-chords .sep { color: var(--faint); }
.t-chord, .active-voicings { margin: 0 0 var(--k-sp-16); padding: var(--k-sp-16) var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-12); background: var(--card); color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.5; }
.t-chord .label-row, .t-chord .meta-line, .active-voicings .av-hint { color: var(--dim); }
.t-chord .progression strong { color: var(--text); }

/* 9. Corrections apres la premiere capture : sens de lecture des commandes, icone alignee sur la premiere ligne, retours a la ligne equilibres. */
.st-modes { direction: ltr; }
.shir-texte .st-he { align-items: flex-start; gap: calc(var(--say-gap) - var(--say-inset)); }
.shir-texte .st-he .he { text-wrap: balance; }
.shir-texte .say { margin-top: var(--k-sp-4); }

/* AUTOSCROLL-BLOC */
/* copie verbatim de biblio/assets/style.css (bloc autoscroll) */
/* ---------------------------------------------------------------- autoscroll
   The liturgy pages (songs, tehilim, prayers, shabbat) get a play button that
   creeps the page down while both hands stay on the instrument. Docked bottom
   centre: these pages carry no other floating control, and centre is where a
   thumb lands when the phone is on a stand. Built by assets/autoscroll.js. */
.as-bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--k-sp-8);
  padding: var(--k-sp-8) var(--k-sp-8);
  border-radius: 999px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--k-ombre-e2);
}
.light .as-bar { box-shadow: var(--k-ombre-e2); }
.as-bar.is-playing { border-color: var(--accent); }

.as-play {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--border);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
/* The glyph is a mask, like the lesson play buttons: a text ▶ renders soft and
   sits off-centre, and swapping it for ❚❚ would change the button's width. */
.as-play::before {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: var(--k-sp-4);                 /* optical centring of the triangle */
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5v14l11-7z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M8 5v14l11-7z'/></svg>") no-repeat center / contain;
}
.as-play.as-playing::before {
  margin-left: 0;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 5h4v14H6zM14 5h4v14h-4z'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 5h4v14H6zM14 5h4v14h-4z'/></svg>") no-repeat center / contain;
}
.as-play:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.as-play.as-playing { background: var(--accent); color: #fff; border-color: var(--accent); }

.as-step {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-size: calc(17px * var(--text-scale, 1));
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.as-step:hover:not(:disabled) { color: var(--accent); border-color: var(--accent); }
.as-step:disabled { opacity: 0.35; cursor: default; }

.as-readout {
  min-width: 20px;
  text-align: center;
  font-size: calc(var(--k-fs-petit) * var(--text-scale, 1));
  font-variant-numeric: tabular-nums;
  color: var(--text-dim);
  cursor: default;
}
.as-bar.is-playing .as-readout { color: var(--accent); }
.as-play:focus-visible,
.as-step:focus-visible,
.as-readout:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 700px) { .as-bar { bottom: 12px; } }
@media print { .as-bar { display: none !important; } }

/* 10. Icone de son : l'ecart net avec le mot est --say-gap (:root, 16 px). Le dessin est retire de --say-inset dans sa cible de 44 px, donc gap = --say-gap - --say-inset (bloc 9). */
.shir-texte .say { margin-inline: 0; margin-top: var(--k-sp-4); margin-bottom: -12px; }

/* 11. Cibles de 44 px du code existant (chords.js, autoscroll.js) : on agrandit les boutons, on ne reecrit pas le code. */
.shir-texte .cx-btn, .shir-texte .link-btn { min-width: 44px; min-height: 44px; }
.as-bar .as-step { width: 44px; height: 44px; }

/* 12. Bloc d'accords du code existant : il suppose une page de gauche a droite ; la page de Kita10 est en rtl. */
.t-chord, .active-voicings { direction: ltr; text-align: left; }

/* Le panneau d'accords et la grille des doigtes lisent la police de la page (jetons de Kita10), pas celle de chords.css. */
body.shir-texte .t-chord, body.shir-texte .t-chord *, body.shir-texte .active-voicings, body.shir-texte .active-voicings *, body.shir-texte .t-chord .tuning-row .tuning-current { font-family: inherit; }

/* Gel de serie, rappel choisi (etude kita10-etude-addictif) : sobres, sans couleur d'alerte. */
.cartes-note { margin: 0 0 var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.45; color: var(--faint); direction: ltr; text-align: left; }
.cartes-rappel { display: flex; flex-wrap: wrap; gap: var(--k-sp-8) var(--k-sp-16); align-items: center; margin: 0 0 var(--k-sp-16); padding: var(--k-sp-12) var(--k-sp-12); border: 1px solid var(--line, #ddd); border-radius: var(--k-r-12); direction: ltr; text-align: left; }
.cartes-rappel[hidden], .cartes-note[hidden], .cartes-stat[hidden] { display: none; }
.cartes-rappel-t { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.cartes-rappel-x { background: none; border: 0; padding: var(--k-sp-4) var(--k-sp-8); font: inherit; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); color: var(--faint); text-decoration: underline; cursor: pointer; }

/* ================================================================ 10.11.2026 · cibles de 40 px (#100973, verify-tap)
 * Liens precedent/suivant de la bibliotheque et lien « racines » : une ligne de 20 a 22 px, a bords nus.
 * Compteur du lecteur de chants (tabindex) : 20 px entre deux boutons de 44, qui lui prenaient le carre.
 * Racine du tableau de la reference : un lien de 24 x 20 px. */
.cmp-pager a, .cmp-lien { display: inline-flex; align-items: center; min-height: 40px; }
.as-bar .as-readout { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; }
.poal-root.poal-root-link { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; }
/* Session a 320 px : « Retour au parcours », Reglages et ת depassaient de 8 px sur la bascule fixe du coin. L'ecart passe de 8 a 4. */
@media (max-width: 340px) { body.in-session .sess-top { gap: var(--k-sp-4); } }
/* Lien de verification d'une racine (Academie de la langue hebraique, racine-*.html) : un lien seul en bout de ligne de note, 20 px de haut. */
.racine-verifie a { display: inline-flex; align-items: center; min-height: 40px; }

/* ================================================================ 11.11.2026 · la fiche partout, chaque carte est une lecon (c1360)
 * Le repere « touchez un mot » : une ligne au bas de l'ecran, sans cible (pointer-events: none), qui ne couvre jamais un bouton
 * qu'on touche. Le bloc de lecon (assets/lecon.js) tient dans la reponse : le mot a mot est une ligne de repere qui passe a la
 * ligne, la fiche d'un verbe une grille de quatre temps. Les mots sont des cibles dans un texte courant ([data-wt-key],
 * exemption de la sonde tap) : on ne leur donne pas de carre. */
.wt-repere { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 40; max-width: min(92vw, 28rem); padding: var(--k-sp-8) var(--k-sp-16); border-radius: 999px; background: rgba(26, 26, 26, .88); color: #fff; font-size: calc(var(--k-fs-petit) * var(--text-scale, 1)); line-height: 1.4; text-align: center; pointer-events: none; direction: ltr; }
.rv-lecon { display: flex; flex-direction: column; gap: var(--k-sp-16); text-align: start; direction: ltr; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.5; color: var(--text); }
.lecon-part { margin: 0; }
.lecon-titre { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 var(--k-sp-8); }
.lecon-sous-titre { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600; color: var(--dim); margin-inline-end: var(--k-sp-8); }
.lecon-note, .lecon-na { color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.lecon-note { margin: 0; }
.lecon-mots { display: flex; flex-wrap: wrap; gap: var(--k-sp-8) var(--k-sp-16); direction: rtl; }
body.mots-ltr .lecon-mots { direction: ltr; }
.lecon-w { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; max-width: 100%; padding-inline-end: var(--k-sp-4); }
.lecon-w > .lecon-tr, .lecon-w > .lecon-sens, .lecon-w > .lecon-na, .lecon-w > .lecon-de, .lecon-w > .lecon-rac { direction: ltr; unicode-bidi: isolate; }
.rv-lecon .lecon-he, .rv-bloc .lecon-he { font-size: calc(22px * var(--text-scale, 1)); line-height: 1.5; cursor: pointer; text-decoration: underline dotted var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px; }
/* Cible tactile d'un mot (16/11/2026) : tout mot cliquable fait au moins 44 px de large, quelle que soit sa longueur (cible minimale de design-etape1.config.json). */
.lecon-he { min-width: var(--cible); box-sizing: border-box; justify-content: center; }
.rv-lecon .lecon-he:focus-visible, .rv-bloc .lecon-he:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.rv-lecon .lecon-phrase, .rv-bloc .lecon-phrase { font-size: calc(22px * var(--text-scale, 1)); }
.lecon-tr { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); font-style: italic; }
.lecon-sens { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--text); overflow-wrap: anywhere; }
.lecon-an, .lecon-de { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); }
.lecon-rac, .lecon-binyan { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--accent-text); letter-spacing: .02em; }
.lecon-modele-un { display: flex; flex-direction: column; gap: var(--k-sp-4); margin-bottom: var(--k-sp-8); }
.lecon-modele-contexte { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--faint); }
@media (prefers-reduced-motion: no-preference) { .wt-repere { animation: wt-repere-in .25s ease-out; } }
@keyframes wt-repere-in { from { opacity: 0; transform: translateX(-50%) translateY(8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
.cartes-ancre, .cartes-defi, .drill-niveau { display: flex; flex-wrap: wrap; gap: var(--k-sp-8) var(--k-sp-12); align-items: center; margin: 0 0 var(--k-sp-16); padding: var(--k-pad); border: 1px solid var(--line, #ddd); border-radius: var(--k-r-parent); direction: ltr; text-align: left; }
.cartes-ancre { --k-r-parent: var(--k-r-16); --k-pad: var(--k-sp-12); }
.cartes-defi, .drill-niveau { --k-r-parent: var(--k-r-12); --k-pad: var(--k-sp-12); }
/* Concentricite : rayon du dedans = rayon du parent moins sa marge (c1453). Ici 16 - 12 = 4 px. */
.cartes-ancre .cartes-ancre-opt { border-radius: max(0px, calc(var(--k-r-parent) - var(--k-pad))); }
.cartes-ancre[hidden], .cartes-defi[hidden], .cartes-cours[hidden], .cartes-defi [hidden] { display: none; }
.cartes-ancre-q, .drill-niveau-q { flex: 1 0 100%; margin: 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.cartes-cours { display: block; margin: 0 0 var(--k-sp-16); text-align: center; }
.drill-hard { display: inline-block; margin: 0 0 var(--k-sp-8); padding: var(--k-sp-4) var(--k-sp-8); border: 1px solid var(--line, #ddd); border-radius: var(--k-r-12); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); }
.cartes-ancre .cartes-rappel-x, .cartes-defi .cartes-rappel-x { min-height: 44px; min-width: 44px; padding: var(--k-sp-12) var(--k-sp-12); }

/* LA CARTE REPONSE : tout mot hebreu se touche, et se voit comme tel (c1392, 12.11.2026 : « on peut meme pas cliquer pour voir fiche » ;
   la carte approuvee du mot « לא » souligne ses mots cliquables). Meme soulignement que .lecon-he. Plancher de texte de la carte :
   14 px (verify : tools/test-lecon-noms.cjs ne le mesure pas, c'est verifier.py de c1392 et verify-legibility). */
#drill-reveal .reveal-main .he, #drill-reveal .rp-he .he, #drill-reveal .rv-he .he, #drill-reveal .rv-form .he, #drill-reveal .rv-pro .he {
  text-decoration: underline dotted var(--accent); text-underline-offset: .22em; text-decoration-thickness: 1px;
}
/* Le titre de « Mot a mot » est un bouton de pliage : une fleche dit qu'il s'ouvre. */
.para-cs { hyphens: none; overflow-wrap: normal; word-break: keep-all; }

/* L'AVIS DES STATISTIQUES (posthog.config.json, 15.11.2026) : une barre en bas, a la premiere visite. Ce qui est enregistre, puis deux boutons. */
.stats-avis { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 60; padding: var(--k-sp-12) var(--k-sp-16); background: var(--bg, #fff); color: var(--ink, #111); border: 1px solid var(--line, #ddd); border-radius: var(--k-r-12); box-shadow: var(--k-ombre-e2); direction: ltr; text-align: left; }
.stats-avis[hidden] { display: none; }
.stats-avis-t { margin: 0 0 var(--k-sp-4); font-size: calc(16px * var(--text-scale, 1)); font-weight: 600; }
.stats-avis-n { margin: 0 0 var(--k-sp-12); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); line-height: 1.45; color: var(--dim); }
.stats-avis-b { display: flex; gap: var(--k-sp-12); flex-wrap: wrap; }
.stats-avis-b button { min-height: 44px; min-width: 44px; padding: var(--k-sp-12) var(--k-sp-16); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); border: 1px solid var(--line, #ddd); border-radius: var(--k-r-12); background: transparent; color: inherit; cursor: pointer; }
.drill-sondage { flex-wrap: wrap; }
.drill-sondage button { min-height: 44px; min-width: 44px; padding: var(--k-sp-12) var(--k-sp-16); font: inherit; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); border: 1px solid var(--line, #ddd); border-radius: var(--k-r-12); background: transparent; color: inherit; cursor: pointer; }

/* ================================================================ 15.11.2026 · la carte reponse a deux niveaux (c1427)
 * « Les cards reponses ca va pas c'est beaucoup trop le bordel. Faut simplifier » ; « sur la card reponse bien retravailler
 * dispoitions, alignements, ergonomies ». Niveau 1 (data-niveau="1") : trois blocs au plus, toujours visibles. Niveau 2
 * (data-niveau="2") : derriere le seul bouton « Plus ». UNE grille sur toute la carte, deux axes : l'hebreu sur le bord DROIT ;
 * l'etiquette, la lecture et le sens sur le bord GAUCHE. Echelle d'espacement de 4 px (--e1 a --e5) ; tailles : hebreu de la carte
 * (reveal-main, rp-he, regles --rv-k plus haut), texte 15 px, petit texte 14 px (plancher du depot, c1392). Cible tactile : 44 px
 * (lecon.config.json > carte.cibleMinPx). Le mouvement : un fondu de .25 s a l'ouverture, coupe sous prefers-reduced-motion. */
#drill-reveal {
  --e1: 4px; --e2: 8px; --e3: 12px; --e4: 16px; --e5: 24px; --cible: 44px;
  direction: ltr; text-align: left;
}
.rv-n1, .rv-n2 { display: flex; flex-direction: column; gap: var(--e4); }
.rv-bloc + .rv-bloc { padding-top: var(--e3); border-top: 1px solid var(--border); }

/* Bloc 1 : l'hebreu (et son bouton audio) sur l'axe droit, la lecture et le sens sous lui, sur l'axe gauche. */
.reveal-main { display: block; margin: 0; direction: ltr; }
.rv-he-ligne { display: flex; flex-wrap: nowrap; direction: rtl; justify-content: flex-start; align-items: flex-start; }
.rv-he-ligne > .he { flex: 0 1 auto; min-width: 0; }
.reveal-main .reveal-tr { text-align: left; margin-top: var(--e1); }
.reveal-en { margin-top: var(--e1); text-align: left; }
.rv-cle { background: color-mix(in srgb, var(--accent) 16%, transparent); color: inherit; border-radius: 4px; padding: 0 var(--e1); }

/* Le bouton audio de la carte : une cible de 44 px, tirée dans la ligne par une marge negative comme sur les pages de cours. */
#drill-reveal .say { width: var(--cible); height: var(--cible); margin: calc(var(--e2) * -1) calc((var(--cible) - 24px) / -2) calc(var(--e2) * -1) 0; }
#drill-reveal .say::before { inset: 15px; }

/* Bloc 2 : « forme = sens » puis « de l'infinitif », deux rangees sur les deux memes axes. */
.rv-forme { display: flex; flex-direction: column; gap: var(--e1); }
.rv-ligne, .lecon-mot, .rp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: var(--e3); min-height: var(--cible); }
.rv-ligne > .rv-lat, .lecon-mot > :not(.lecon-he) { direction: ltr; text-align: left; }
.rv-lat .reveal-tr { display: inline; margin: 0; }
.rv-lat .reveal-tr + .rv-egal { color: var(--faint); }
.rv-gl, .rv-de { color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.rv-he, .rp-he { display: flex; direction: rtl; justify-content: flex-start; align-items: center; justify-self: end; text-align: right; }
.rv-ligne.rv-inf .rv-lat { color: var(--faint); }

/* Bloc 3 : au plus une note, a gauche, sans cadre. */
.rv-note .reveal-why { margin: 0; padding: 0; border: 0; }
.rv-note .reveal-again { margin: var(--e2) 0 0; }

/* La fiche du mot : le schema du verbe, les onglets de temps, le tableau (une rangee = une forme). */
.rv-schema { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--e3); align-items: baseline; margin: 0 0 var(--e3); }
.rv-sch-lat { direction: ltr; text-align: left; color: var(--dim); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.rv-sch-he { direction: rtl; text-align: right; color: var(--accent-text); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); letter-spacing: .02em; justify-self: end; }
.rt-tabs { justify-content: flex-start; gap: var(--e2); margin: 0 0 var(--e3); }
.rt-tab { min-height: var(--cible); padding: 0 var(--e4); }
.reveal-para { display: block; margin: 0; padding: 0; border: 0; }
.rp-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "tag he" "lat he"; row-gap: 0; padding: var(--e1) 0; border-bottom: 1px solid var(--border); }
.rp-row:last-child { border-bottom: 0; }
.rp-tag { grid-area: tag; direction: ltr; text-align: left; white-space: normal; max-width: none; }
.rp-lat { grid-area: lat; direction: ltr; text-align: left; display: block; min-width: 0; overflow-wrap: anywhere; }
.rp-he { grid-area: he; }
.rp-tr { display: inline; color: var(--accent); }
.rp-gl { display: inline; color: var(--dim); }
.rp-gl:not(:empty)::before { content: " · "; color: var(--faint); }
.rp-row.is-asked { background: color-mix(in srgb, var(--accent) 7%, transparent); border-radius: var(--k-r-8); margin-inline: calc(var(--e2) * -1); padding-inline: var(--e2); }
.rv-lecon { margin-top: var(--e4); }
.rv-lecon:first-child { margin-top: 0; }
.rv-n2 > .rt-tabs + .reveal-para { margin-top: 0; }

/* Niveau 2 : les mots de la racine (une rangee = un mot) et le mot a mot (nuage de reperes, sens de lecture suit « motsLtr »). */
.lecon-mot { padding: var(--e1) 0; }
.lecon-mot .lecon-he { grid-column: 2; grid-row: 1 / span 2; justify-self: end; }
.lecon-mot .lecon-tr { grid-column: 1; }
.lecon-mot .lecon-sens { grid-column: 1; }
.lecon-racine .lecon-titre { margin-bottom: var(--e1); }
.lecon-w { align-items: flex-start; }
.lecon-bequille-un, .lecon-modele-un { display: flex; flex-direction: column; gap: var(--e1); margin: 0 0 var(--e3); }
.lecon-bequille-un:last-child, .lecon-modele-un:last-child { margin-bottom: 0; }
.lecon-modele-he { display: block; direction: rtl; text-align: right; }
.lecon-modele-tr, .lecon-modele-sens, .lecon-modele-contexte { direction: ltr; text-align: left; display: block; }
.lecon-modele-tr { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--accent); font-style: italic; }
.rp-tag { color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.rv-lecon .lecon-he, .rv-bloc .lecon-he { display: inline-flex; align-items: center; min-height: var(--cible); }
.lecon-w .lecon-he { min-height: var(--cible); }
body.in-session #drill-reveal .reveal-para { margin: 0; padding: 0; row-gap: 0; }
body.in-session #drill-reveal .rt-tabs { margin: 0 0 var(--e3); }
body.in-session #drill-reveal .reveal-main { line-height: 1.5; }
/* Une reponse (modele ou bequille) : l'hebreu sur l'axe droit, puis UNE ligne a gauche : lecture, sens, origine. */
.lecon-bequille-un, .lecon-modele-un { display: block; }
.lecon-bequille-un > :not(.lecon-modele-he), .lecon-modele-un > :not(.lecon-modele-he) { display: inline; }
.lecon-bequille-un > :not(.lecon-modele-he) + :not(.lecon-modele-he)::before, .lecon-modele-un > :not(.lecon-modele-he) + :not(.lecon-modele-he)::before { content: " · "; color: var(--faint); font-style: normal; }
.lecon-modele-contexte { color: var(--faint); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }

/* « Mes progrès » (c1420). Composants repris : .cartes-goal (carte), .unit-bar (barre), .cartes-note, .cta ; aucune couleur nouvelle.
   Les graphiques sont des SVG dessinés par assets/progres-page.js : leurs couleurs passent par ces classes (la CSP refuse le style en ligne). */
.progres, .progres-card, .progres-vide, .progres-start, .cartes-progres { direction: ltr; text-align: left; }
.cartes-progres { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.progres { display: flex; flex-direction: column; gap: var(--k-sp-12); margin: 0 0 28px; }
.progres-card { padding: var(--k-sp-12) var(--k-sp-16); border: 1px solid var(--border); border-radius: var(--k-r-12); background: var(--card); }
.progres-t { margin: 0 0 var(--k-sp-8); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--accent-text); }
.progres-n { margin: 0 0 var(--k-sp-8); font-size: calc(28px * var(--text-scale, 1)); font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--text); }
.progres-l { margin: var(--k-sp-8) 0; font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); font-variant-numeric: tabular-nums; }
.progres-s { margin: var(--k-sp-12) 0 var(--k-sp-4); font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); }
.progres-chart { display: block; width: 100%; height: auto; margin: var(--k-sp-4) 0 0; }
.progres-bar { fill: var(--accent-dim); }
.progres-bar-now { fill: var(--accent); }
.progres-bar-zero, .progres-bar-none { fill: var(--border); }
.progres-axe { stroke: var(--border); stroke-width: 1; }
.progres-semaines { display: flex; justify-content: space-between; list-style: none; margin: var(--k-sp-4) 0 0; padding: 0; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); }
.progres-axe-txt { display: flex; justify-content: space-between; margin: var(--k-sp-4) 0 0; font-size: calc(var(--k-fs-etiquette) * var(--text-scale, 1)); color: var(--faint); }
.progres-act-main { justify-content: center; width: 100%; margin-top: var(--k-sp-12); }
.progres-act { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-text); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); font-weight: 600; }
.progres-mots { list-style: none; margin: 0; padding: 0; }
.progres-mot { display: grid; grid-template-columns: auto 1fr; gap: var(--k-sp-4) var(--k-sp-12); align-items: baseline; padding: var(--k-sp-8) 0; border-top: 1px solid var(--border); }
.progres-mot .he { font-size: calc(20px * var(--text-scale, 1)); display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
.progres-sens { font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.progres-mot .progres-act { grid-column: 1 / -1; min-height: 44px; }
.progres-vide { margin: var(--k-sp-8) 0 var(--k-sp-16); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); color: var(--dim); }
.progres-start { display: block; margin: 0 0 var(--k-sp-24); }

/* L'onboarding (c1468, regle 3 du reel) : chaque ecran entre en fondu et glisse de 8 px. La duree vient de
   onboarding.config.json (variable --onb-ms posee par niveau.js, 300 ms au plus). */
.onb-ecran { animation: onb-in var(--onb-ms, 240ms) ease-out both; }
@keyframes onb-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.onb-effet { margin: 0 0 12px; font-size: calc(16px * var(--text-scale, 1)); opacity: .8; }
.onb-passer { margin-top: 12px; }
@media (prefers-reduced-motion: reduce) {
  .onb-ecran { animation: none; }
}

/* ================================================================ 18.11.2026 · la reponse en avant, la fiche du mot dans son style (c1528)
 * La reponse est l'element le plus grand de la carte : le mot juste, au centre, sans defiler. Au-dessus, la place d'un futur dessin au trait
 * (.rv-scene, vide). Le reste passe au second plan : moins de filets, une seule couleur d'accent. La fiche est rendue par le composant de la
 * feuille du traducteur (.rv-fm), compacte, sous la reponse ; la carte defile sous la reponse, le bouton Next reste en place. */
body.in-session #drill-reveal .rv-n1 { gap: var(--e2); }   /* serre : le debut de la fiche reste visible sur un ecran bas (test-sens-cloze, 664 px) */
.rv-bloc + .rv-bloc { padding-top: 0; border-top: 0; }
.rv-reponse { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--e2); min-height: 11rem; }
.rv-scene { width: 100%; flex: 0 0 auto; }
.rv-scene:empty { display: none; }
.rv-reponse .reveal-main, .rv-mot { direction: ltr; text-align: center; }
.rv-reponse .rv-he-ligne, .rv-mot .rv-he-ligne { flex-wrap: wrap; justify-content: center; align-items: center; }
body.in-session #drill-reveal .rv-reponse .reveal-main, body.in-session #drill-reveal .rv-mot { font-size: calc(52px * var(--text-scale, 1)); line-height: 1.35; font-weight: 600; }
body.in-session #drill-reveal .rv-reponse .reveal-tr { text-align: center; margin-top: var(--e1); font-size: calc(18px * var(--text-scale, 1)); }
body.in-session #drill-reveal .rv-reponse .reveal-en { text-align: center; color: var(--dim); font-size: calc(18px * var(--text-scale, 1)); margin-top: var(--e1); }
body.in-session #drill-reveal .rv-reponse .say { margin: 0; }
body.in-session #drill-reveal .rv-phrase:not(.rv-reponse) { text-align: center; color: var(--dim); }
body.in-session #drill-reveal .rv-phrase:not(.rv-reponse) .reveal-main { font-size: calc(20px * var(--text-scale, 1)); font-weight: 400; text-align: center; }
body.in-session #drill-reveal .rv-phrase:not(.rv-reponse) .rv-he-ligne { justify-content: center; flex-wrap: wrap; }
body.in-session #drill-reveal .rv-phrase:not(.rv-reponse) .reveal-tr { text-align: center; font-size: calc(14px * var(--text-scale, 1)); color: var(--faint); }
body.in-session #drill-reveal .rv-phrase:not(.rv-reponse) .reveal-en { text-align: center; font-size: calc(14px * var(--text-scale, 1)); }
.rv-note { color: var(--dim); }
.rv-fiche { text-align: start; }
.rv-fm { font-size: calc(14px * var(--text-scale, 1)); }
.rv-fm .ut-dots { display: flex; justify-content: center; }
.rv-fm .para-card { box-shadow: none; }
.rv-fm .tpill { min-width: var(--cible); min-height: var(--cible); }   /* la cible tactile du composant, 44 px dans la carte (carte.cibleMinPx) */
/* La fiche dans la carte : un seul accent, une seule action principale (l'onglet ouvert est un trait, le bouton Suivant reste le seul plein) ; la racine est une cible de 44 px. */
.rv-fm .tpill.is-on { background: transparent; color: var(--accent); border-color: var(--accent); font-weight: 600; }
.rv-fm .poal-root-link { display: inline-flex; align-items: center; justify-content: center; min-width: var(--cible); min-height: var(--cible); }
/* Ecran bas (664 px) : la reponse reste le plus grand texte, mais sans hauteur reservee ni blanc, pour que le debut de la fiche reste visible (test-sens-cloze). */
@media (max-height: 700px) { .rv-reponse { min-height: 0; gap: var(--e1); } body.in-session #drill-reveal .rv-n1 { gap: var(--e1); } body.in-session #drill-reveal .rv-reponse .reveal-main, body.in-session #drill-reveal .rv-mot { line-height: 1.2; } }

/* ================================================================ 18.11.2026 · la carte reponse a UNE face (c1531, c1542)
 * Aucun defilement de la carte reponse (c1531) ; la seconde page est retiree (c1542).
 * La carte est une boite fixe qui ne defile pas : la taille du mot, de la phrase et les espaces suivent la hauteur de la carte par une requete
 * de conteneur (unites cqh), jusqu'au point ou tout tient. La phrase est en gros dans la place libre ; chaque mot est un bouton (44 px) qui
 * ouvre sa fiche dans un panneau pose par-dessus la carte. La note se replie derriere une icone. */
body.in-session #drill-reveal:has(.rv-carte):not([hidden]) { display: flex; flex-direction: column; overflow: hidden; }
.rv-carte { flex: 1 1 auto; min-height: 0; min-width: 0; position: relative; overflow: hidden; container-type: size; container-name: rvpage; }

/* La reponse, puis la fiche en quelques lignes. */
.rv-carte .rv-n1 { --rv-s: 1; height: 100%; gap: calc(1.2cqh * var(--rv-s)); justify-content: space-between; }
.rv-carte .rv-reponse { flex: 1 1 auto; min-height: 0; gap: calc(.8cqh * var(--rv-s)); }
body.in-session #drill-reveal .rv-carte .rv-reponse .reveal-main, body.in-session #drill-reveal .rv-carte .rv-mot { font-size: calc(max(var(--rv-he-min), calc(clamp(34px, 8.5cqh, 52px) * (.6 + .4 * var(--rv-s)))) * var(--text-scale, 1)); line-height: 1.15; }
body.in-session #drill-reveal .rv-carte .rv-phrase:not(.rv-reponse) .reveal-main { font-size: calc(max(var(--rv-he-min), calc(clamp(20px, 4.4cqh, 30px) * var(--rv-s))) * var(--text-scale, 1)); line-height: 1.2; }
body.in-session #drill-reveal .rv-carte .rv-reponse .reveal-tr, body.in-session #drill-reveal .rv-carte .rv-reponse .reveal-en { font-size: calc(max(var(--rv-tx-min), calc(clamp(14px, 2.6cqh, 18px) * var(--rv-s))) * var(--text-scale, 1)); line-height: 1.3; }
body.in-session #drill-reveal .rv-carte .rv-phrase:not(.rv-reponse) .reveal-tr { font-size: calc(max(var(--rv-tx-min), calc(clamp(13px, 2.4cqh, 16px) * var(--rv-s))) * var(--text-scale, 1)); }
.rv-carte .rv-n1[data-court] .rv-phrase .reveal-tr { display: none; }
.rv-carte .rv-forme { flex: 0 0 auto; }
.rv-carte .rv-fiche { flex: 0 0 auto; }
.rv-info { position: absolute; top: 0; inset-inline-end: 0; z-index: 3; width: var(--cible); height: var(--cible); border: 0; border-radius: 50%; background: transparent; color: var(--accent-text); font: italic 600 18px/1 Georgia, serif; cursor: pointer; touch-action: manipulation; }
.rv-info[aria-expanded="true"] { background: var(--accent-dim); }
.rv-info:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rv-carte .rv-note { position: absolute; z-index: 2; inset-inline: 0; top: 0; padding: var(--e4) var(--cible) var(--e4) var(--e4); background: var(--card); border: 1px solid var(--border); border-radius: var(--k-r-12); box-shadow: var(--k-ombre-e2); text-align: start; }
.rv-carte .rv-note[hidden] { display: none; }

/* La phrase en gros : un bouton par mot. Chaque bouton est une cible d'au moins 44 x 44 px ; le mot cle (la forme demandee) est marque. */
.rv-phrase-gros { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 var(--e1); min-width: 0; }
.rv-mot-btn { display: inline-flex; align-items: center; justify-content: center; min-width: var(--cible, 44px); min-height: var(--cible, 44px); padding: 0 var(--e1); margin: 0; font: inherit; line-height: 1.15; color: inherit; background: transparent; border: 0; border-radius: var(--k-r-12); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.rv-mot-btn .he { font-size: 1em; line-height: inherit; }
.rv-mot-btn:active { background: var(--accent-dim); }
.rv-mot-btn.is-cle { background: var(--accent-dim); }
.rv-mot-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rv-reponse.rv-phrase .rv-phrase-gros { font-size: calc(clamp(24px, 6.4cqh, 42px) * var(--text-scale, 1)); }

/* La fiche compacte : une ligne de resume (infinitif, sens, binyan, racine, preposition), les onglets de temps, la grille a deux colonnes. */
.rv-fm .para-via { margin: 0 0 var(--e1); font-size: calc(var(--k-fs-corps) * var(--text-scale, 1)); }
.rv-fm .para-card { padding: 0; border: 0; border-radius: 0; }
.rv-fm .para-card-head { margin: 0 0 var(--e1); min-height: var(--cible); direction: ltr; display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--e3); }
.rv-fm .wline, .rv-fm .mline { display: contents; }
.rv-fm .poal-he { order: 1; }
.rv-fm .mline .cell-word { order: 2; flex: 1 1 auto; }
.rv-fm .mline > .poal-root { order: 3; margin: 0; }
.rv-fm .wline > .poal-root { order: 4; margin: 0; }
.rv-fm .rc-line { order: 5; flex: 1 1 100%; }
.rv-fm .tstrip { order: 6; flex: 1 1 100%; justify-content: flex-start; gap: var(--e2); }
.rv-fm .poal-tr { display: none; }
.rv-fm .tgrid { grid-template-columns: 1fr 1fr; gap: var(--e1) var(--e2); direction: ltr; }
.rv-fm .tgrid .para-cell { padding: 2px var(--e2); }
.rv-fm .tpill.rv-p1-off { display: none; }
body.in-session #drill-reveal .rv-carte .rv-phrase:not(.rv-reponse) .reveal-main { position: relative; padding-inline-start: var(--cible); }
/* Le haut-parleur se pose a GAUCHE, dans le remplissage de .reveal-main (ltr). Avec inset-inline-start il lisait la direction de .rv-he-ligne (rtl), tombait a droite et recouvrait le premier mot (c1542 : « intercepts pointer events »). */
.rv-carte .rv-phrase:not(.rv-reponse) .reveal-main > .rv-he-ligne > .say { position: absolute; left: 0; right: auto; top: 0; }
.rv-carte .rv-fm .tgrid[data-long] { grid-template-columns: 1fr; }
.rv-carte .rv-fm .tgrid[data-long] .para-cell:not(.is-asked) { display: none; }
.rv-toutes { display: none; width: 100%; min-height: var(--cible); margin-top: var(--e1); font: inherit; font-weight: 600; color: var(--accent-text); background: transparent; border: 1px solid var(--border); border-radius: var(--k-r-12); cursor: pointer; touch-action: manipulation; }
.rv-fm:has(.tgrid[data-long]:not([hidden])) .rv-toutes,
.rv-fm:has(.tpill.rv-p1-off) .rv-toutes { display: block; }
.rv-toutes:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Le panneau de fiche : un calque par-dessus la carte (la carte dessous ne change pas). La fiche complete du mot, dans le composant du traducteur. */
.rv-panneau { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; gap: var(--e2); padding: var(--e4); padding-top: var(--cible); background: var(--card); border-radius: inherit; overflow-y: auto; overscroll-behavior: contain; }
.rv-fermer { position: absolute; top: 0; inset-inline-end: 0; z-index: 7; width: var(--cible); height: var(--cible); border: 0; border-radius: 50%; background: transparent; color: var(--accent-text); font-family: inherit; font-weight: 400; font-size: calc(28px * var(--text-scale, 1)); line-height: 1; cursor: pointer; touch-action: manipulation; }
.rv-fermer:hover, .rv-fermer:active { background: var(--accent-dim); }
.rv-fermer:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.rv-prefixe { margin: 0; display: flex; align-items: center; justify-content: center; gap: var(--e2); font-size: calc(24px * var(--text-scale, 1)); direction: ltr; }
.rv-prefixe .he { font-size: 1em; }
.rv-plus { color: var(--dim); }
.rv-connu { margin: 0; font-size: calc(24px * var(--text-scale, 1)); }
.rv-connu-phrase { margin: 0; color: var(--dim); }
.rv-connu-l { font-weight: 600; }

/* c1484 : la barre d'onglets de la fiche tient sur UNE ligne et defile dans sa largeur (Material Components, « Scrollable tabs » : « They are scrollable, such that some tabs will remain off-screen until scrolled. »). Cible de 44 px (WCAG 2.5.5 : « at least 44 by 44 CSS pixels »). L'onglet ouvert porte un trait de 2 px en bas (Material Components : indicateur actif, 2dp, en bas, couleur primaire). */
.tstrip { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; overscroll-behavior-x: contain; }
.tstrip::-webkit-scrollbar { display: none; }
.tstrip .tpill { flex: 0 0 auto; min-width: 44px; min-height: 44px; white-space: nowrap; }
.tstrip .tpill.is-on { box-shadow: inset 0 -2px 0 var(--accent); font-weight: 600; }
/* Fin de la bibliotheque (23/11/2026) : Calendrier, Ecriture cursive, Expressions (build/calendrier.mjs,
   build/cursive.mjs, build/expressions.mjs). Composants des modules ; ne restent que la mise en page propre
   a ces volets, avec les variables de la page. */
.calendrier .en, .cursive .en, .expressions .en { display: block; }
.calendrier h2, .cursive h2, .expressions h2 { margin-top: 28px; }
.calendrier .para-card, .cursive .para-card, .expressions .para-card { margin: var(--k-sp-12) 0; }
.calendrier .para-card-head, .cursive .para-card-head, .expressions .para-card-head { direction: ltr; text-align: start; }
.calendrier .intro, .cursive .intro, .expressions .intro { margin-bottom: var(--k-sp-16); }
.calendrier .st-part, .calendrier .st-line { direction: ltr; text-align: start; }
.calendrier .st-line + .st-line { margin-top: var(--k-sp-12); }
.cal-sous { margin: var(--k-sp-16) 0 var(--k-sp-4); }
.cur-ktav .he { font-family: 'Gveret Levin', cursive; font-size: 2.2em; line-height: 1.5; }
.cur-grid { list-style: none; margin: var(--k-sp-12) 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(150px * var(--text-scale, 1)), 1fr)); gap: var(--k-sp-12); }
.cur-grid .cur-card { margin: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--k-sp-4); }
.cur-name { color: var(--text); font-weight: 600; }
.cur-letters { display: flex; flex-wrap: wrap; gap: var(--k-sp-16); align-items: flex-end; margin: var(--k-sp-8) 0; }
.cur-letter { display: inline-flex; flex-direction: column; align-items: center; gap: var(--k-sp-4); }
.cur-row { margin: var(--k-sp-8) 0; border-bottom: 1px solid var(--border); }
.cur-row > summary { display: flex; align-items: center; gap: var(--k-sp-12); min-height: 44px; cursor: pointer; direction: rtl; }
.cur-label { color: var(--dim); }
.cur-reveal { display: flex; flex-direction: column; align-items: flex-start; gap: var(--k-sp-4); padding: var(--k-sp-8) 0 var(--k-sp-12); direction: ltr; }
.cur-q > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.cur-options { margin: var(--k-sp-4) 0; padding-inline-start: var(--k-sp-20); color: var(--dim); }
.cur-note .cur-ktav .he { font-size: 2.4em; line-height: 1.7; }
.xp-chips { display: flex; flex-wrap: wrap; direction: ltr; gap: var(--k-sp-8); margin: var(--k-sp-12) 0; }
.xp-chips .tag { display: inline-flex; align-items: center; min-height: 40px; }
.xp-card .xp-he { direction: rtl; }
.xp-reg { margin: var(--k-sp-4) 0 0; }

/* kita10-next (30/11/2026) : en mode clair, l'ecran du traducteur prend le fond pierre de l'app (tests/clair-ecrans.test.mjs,
   seuil fondClair). La feuille d'origine posait #fafafa. */
@media (prefers-color-scheme: light) { :root body.translate { background: #F3EFE5; } }

/* Le fil défile sous l'en-tête commun, sans passer derrière ses boutons. */
@media (max-width: 1279px) {
  html.ut-shell body.translate:has(.navigation-haut) > .container {
    top: calc(var(--vvt, 0px) + env(safe-area-inset-top) + var(--entete-h, var(--k-sp-64)));
    height: calc(var(--vvh, 100svh) - env(safe-area-inset-top) - var(--entete-h, var(--k-sp-64)));
  }
}

/* Le traducteur reprend les jetons sombres de l'en-tête commun. */
@media (prefers-color-scheme: dark) {
  :root body.translate {
    --bg: var(--navigation-panneau-fond);
    --card: var(--navigation-panneau-fond);
    --card-hover: var(--navigation-panneau-fond);
    --text: var(--navigation-panneau-texte);
    --dim: var(--navigation-doux);
    --faint: var(--navigation-doux);
    --accent: var(--navigation-action);
    --accent-text: var(--navigation-action);
    --accent-dim: var(--navigation-panneau-fond);
    --border: var(--navigation-trait);
    --bubble: var(--navigation-panneau-fond);
    --bubble-on: var(--navigation-panneau-fond);
    background: var(--bg);
    color: var(--text);
  }
  :root body.translate .ut {
    --bubble: var(--navigation-panneau-fond);
    --bubble-on: var(--navigation-panneau-fond);
  }
}
