@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/atkinson-400.ttf) format("truetype"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url(fonts/atkinson-700.ttf) format("truetype"); }

:root {
  color-scheme: light;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1e2533;
  --muted: #667085;
  --line: #e3e0d7;
  --accent: #2a5d8f;
  --accent-dark: #1f4a74;
  --accent-soft: #e8f0f8;
  --bad: #c0392b;
  --bad-soft: #fbe9e6;
  --good: #2e7d5b;
  --good-soft: #e3f3ea;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(30, 37, 51, .05), 0 6px 20px rgba(30, 37, 51, .05);
  --font: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 18px; line-height: 1.55; }
[hidden] { display: none !important; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
a { color: var(--accent); }

/* En-tête */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem clamp(1rem, 4vw, 2.5rem); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.15rem; color: var(--accent); text-decoration: none; }
.top nav { display: flex; gap: 1.2rem; align-items: center; }
.top nav a, .linklike { color: var(--ink); text-decoration: none; font-size: .95rem; background: none; border: 0; padding: 0; font-family: inherit; cursor: pointer; }
.top nav a:hover, .linklike:hover { color: var(--accent); text-decoration: underline; }

main { max-width: 72rem; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2.5rem) clamp(1rem, 4vw, 2.5rem) 4rem; }
.view.narrow { max-width: 38rem; margin-inline: auto; }
.view.wide { max-width: 56rem; margin-inline: auto; }
.view { animation: apparait .35s ease both; }
@keyframes apparait { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Accueil */
.hero { text-align: center; padding: clamp(2rem, 8vw, 5rem) 0; max-width: 40rem; margin-inline: auto; }
.lead { color: var(--muted); font-size: 1.15rem; margin-bottom: 2rem; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }

/* Cartes & formulaires */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(1.1rem, 3vw, 1.8rem); margin-bottom: 1.2rem; }
label { display: block; font-weight: 700; margin: 1rem 0 .35rem; font-size: .95rem; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], select, textarea {
  width: 100%; font: inherit; color: inherit; background: #fff; border: 1.5px solid #cfd3da; border-radius: 10px; padding: .7rem .85rem;
}
textarea { resize: vertical; line-height: 1.6; }
input:focus-visible, textarea:focus-visible, select:focus-visible, .btn:focus-visible, .linklike:focus-visible { outline: 3px solid #9cc1e6; outline-offset: 1px; border-color: var(--accent); }
.count { color: var(--muted); font-size: .88rem; margin: .3rem 0 0; text-align: right; }
.error { color: var(--bad); background: var(--bad-soft); border-radius: 8px; padding: .55rem .8rem; margin: .8rem 0 0; font-size: .95rem; }
.row { display: flex; gap: .7rem; justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: 1.3rem; }
.row.end { justify-content: flex-end; }

.btn { font: inherit; font-weight: 700; padding: .7rem 1.3rem; border-radius: 10px; border: 1.5px solid transparent; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); }
.btn.ghost { background: #fff; color: var(--accent); border-color: #c5d3e2; }
.btn.ghost:hover { background: var(--accent-soft); }
.btn.big { font-size: 1.15rem; padding: .9rem 1.8rem; }
.btn[disabled] { opacity: .55; cursor: wait; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* Étapes */
.stepper { list-style: none; display: flex; gap: .4rem; justify-content: center; padding: 0; margin: 0 0 1.6rem; flex-wrap: wrap; }
.stepper li { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem .35rem .4rem; border-radius: 999px; color: var(--muted); font-size: .92rem; background: transparent; }
.stepper li span { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #e7e5de; font-weight: 700; font-size: .85rem; }
.stepper li.on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow); font-weight: 700; }
.stepper li.on span { background: var(--accent); color: #fff; }
.stepper li.done span { background: var(--good); color: #fff; }

/* Saisie de l'élève : grand, aéré */
.dictee-input { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.9; min-height: 48vh; padding: 1rem 1.2rem; border-width: 2px; }

/* Dialogues */
dialog { border: 0; border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); max-width: 28rem; width: calc(100% - 2rem); font-family: var(--font); color: var(--ink); }
dialog::backdrop { background: rgba(30, 37, 51, .45); }
dialog.big { max-width: 56rem; max-height: 92vh; padding: 1.2rem 1.4rem 1.6rem; background: var(--bg); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.dlg-head h3 { margin: 0; font-size: 1.25rem; }
.dlg-head .row { margin: 0; }

/* Chargement de la correction */
.loading { text-align: center; padding: 5rem 0; color: var(--accent); }
.loading p { color: var(--muted); margin-top: .6rem; }
.scribble { stroke-dasharray: 200; stroke-dashoffset: 200; animation: trace 1.1s ease-in-out infinite; }
@keyframes trace { 0% { stroke-dashoffset: 200; } 60%, 100% { stroke-dashoffset: 0; } }

/* ---------- Correction ---------- */
.res-score { display: flex; gap: clamp(1rem, 4vw, 2.2rem); align-items: center; flex-wrap: wrap; }
.ring { position: relative; width: 150px; height: 150px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: #ece9e1; stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 326.73; stroke-dashoffset: 326.73; transition: stroke-dashoffset 1.5s cubic-bezier(.2, .7, .2, 1); }
.ring.parfait .ring-fg { stroke: var(--good); }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.ring-num b { font-size: 3.2rem; letter-spacing: -.02em; }
.ring-num span { font-size: .9rem; color: var(--muted); }
.score-txt { flex: 1; min-width: 14rem; }
.score-txt h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; font-size: .88rem; padding: .2rem .65rem; border-radius: 999px; background: #f0eee8; }
.chip i { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; }

.reveal-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .8rem; min-height: 2.6rem; }
.reveal-bar .prog { font-weight: 700; color: var(--bad); }
.reveal-bar .prog.ok { color: var(--good); }
.btn.small { padding: .35rem .8rem; font-size: .9rem; }

.dictee-text { font-size: clamp(1.25rem, 2.8vw, 1.6rem); line-height: 2.1; }
.tk { display: inline-block; vertical-align: top; margin-left: .32em; position: relative; }
.tk.sp0 { margin-left: 0; }
.tk:first-child { margin-left: 0; }
.tk .fix { display: block; font-size: .62em; line-height: 1.1; text-align: center; color: var(--good); font-weight: 700; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .4s ease .1s; }
.tk.err.revealed { margin-right: .4em; }
.tk .no { position: absolute; top: -.1em; left: calc(100% + .05em); font-size: .5em; line-height: 1; min-width: 1.5em; height: 1.5em; display: grid; place-items: center; border-radius: 50%; background: var(--bad); color: #fff; font-weight: 700; opacity: 0; transform: scale(.3); transition: opacity .25s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.tk.err .wrong { border-radius: 6px; padding: 0 .1em; transition: background .3s, box-shadow .3s; }
.tk.err.revealed .wrong { background: var(--bad-soft); box-shadow: 0 0 0 2px var(--bad-soft); }
.tk.err.revealed .fix { max-height: 2em; opacity: 1; }
.tk.err.revealed .no { opacity: 1; transform: none; }
.tk.err.revealed.flash .wrong { animation: flash .9s ease; }
@keyframes flash { 0% { background: #f5b5ad; transform: scale(1.18); } 100% { background: var(--bad-soft); transform: none; } }
.mark-bad { color: var(--bad); font-weight: 700; text-decoration: underline wavy var(--bad); text-underline-offset: .2em; }
.tk.err:not(.revealed) .mark-bad { color: inherit; font-weight: inherit; text-decoration: none; }
.mark-good { color: var(--good); text-decoration: underline; text-underline-offset: .15em; }
.tk.ins .wrong { text-decoration: line-through; text-decoration-color: var(--bad); text-decoration-thickness: 2px; }
.tk.ins:not(.revealed) .wrong { text-decoration: none; }
.tk.del:not(.revealed) { display: none; }
.tk.del.revealed { animation: grandit .45s ease; }
@keyframes grandit { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
.tk.del .wrong { color: var(--bad); font-weight: 700; }
.tk.del .gap { display: inline-block; min-width: .9em; text-align: center; }

.hide-phase { display: none; }
.fade-in { animation: apparait .5s ease both; }

.tbl { width: 100%; border-collapse: collapse; font-size: .98rem; }
.tbl th { text-align: left; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .45rem .7rem; border-bottom: 1.5px solid var(--line); white-space: nowrap; }
.tbl td { padding: .6rem .7rem; border-bottom: 1px solid #efede6; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .n { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--bad); color: #fff; font-size: .8rem; font-weight: 700; }
.tbl .w-bad { color: var(--bad); }
.tbl .w-good { color: var(--good); font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; white-space: nowrap; }
.tag i { width: .65rem; height: .65rem; border-radius: 50%; display: inline-block; }
.table-wrap { overflow-x: auto; }
.tbl tr.clic { cursor: pointer; }
.tbl tr.clic:hover td { background: #faf9f6; }
.bar-mini { display: inline-block; width: 5.5rem; height: .5rem; border-radius: 999px; background: #ece9e1; vertical-align: middle; overflow: hidden; margin-right: .5rem; }
.bar-mini b { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.after-actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- Suivi ---------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.page-head h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin-bottom: .2rem; }
.page-head p { margin: 0; }
.tools { display: flex; gap: .7rem; align-items: flex-end; flex-wrap: wrap; }
.sel { font-weight: 400; margin: 0; font-size: .85rem; color: var(--muted); }
.sel select { display: block; margin-top: .2rem; width: auto; padding: .5rem .7rem; font-size: .95rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: 1rem; margin-bottom: 1.2rem; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1rem 1.2rem; }
.kpi .k-l { color: var(--muted); font-size: .85rem; }
.kpi .k-v { font-size: 2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.kpi .k-s { font-size: .85rem; color: var(--muted); }
.kpi .up { color: var(--good); } .kpi .down { color: var(--bad); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.grid2 .card { margin-bottom: 0; } .grid2 { margin-bottom: 1.2rem; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }
.chart { position: relative; height: 270px; margin-top: .6rem; }
.donut-wrap { display: flex; gap: 1.2rem; align-items: center; flex-wrap: wrap; }
.chart.donut { height: 210px; width: 210px; flex: none; margin: .3rem auto; }
.legend { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 12rem; font-size: .95rem; }
.legend li { display: flex; align-items: center; gap: .55rem; padding: .22rem 0; }
.legend i { width: .75rem; height: .75rem; border-radius: 3px; display: inline-block; flex: none; }
.legend b { margin-left: auto; font-variant-numeric: tabular-nums; }
.empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }

@media (max-width: 560px) {
  body { font-size: 17px; }
  .ring { width: 124px; height: 124px; }
  .ring-num b { font-size: 2.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; font-size: 12pt; }
  .top, .no-print, .stepper { display: none !important; }
  main { padding: 0; max-width: none; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
  .grid2 { grid-template-columns: 1fr 1fr; }
  .chart { height: 220px; }
}

/* Choix texte / mots */
.seg { display: inline-flex; background: #ece9e1; border-radius: 12px; padding: 4px; gap: 4px; margin: .4rem 0 .6rem; }
.seg button { font: inherit; font-weight: 700; border: 0; background: transparent; color: var(--muted); padding: .5rem 1.2rem; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.mots { list-style: none; padding: 0; margin: .6rem 0 .8rem; display: grid; gap: .5rem; }
.mots li { display: flex; gap: .5rem; align-items: center; }
.mots input { flex: 1; }
.moins { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 10px; border: 1.5px solid #e3c4bf; background: #fff; color: var(--bad); font: inherit; font-size: 1.5rem; line-height: 1; cursor: pointer; }
.moins:hover { background: var(--bad-soft); }

.role { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .15rem .7rem; margin: 0 0 .5rem; }
.btn.danger { color: var(--bad); border-color: #e3c4bf; }
.btn.danger:hover { background: var(--bad-soft); }

/* Vue classe / élèves */
.back { color: var(--accent) !important; font-weight: 700; margin-bottom: .3rem; display: inline-block; }
.chart.tall { height: 300px; }
.chips-sel { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 .2rem; }
.chip-sel { font: inherit; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .75rem; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--ink); }
.chip-sel i { width: .65rem; height: .65rem; border-radius: 50%; display: inline-block; }
.chip-sel.off { opacity: .45; text-decoration: line-through; }
.dot { display: inline-block; width: .7rem; height: .7rem; border-radius: 50%; margin-right: .55rem; vertical-align: baseline; }
.spark { display: block; }
.trend { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend.up { color: var(--good); } .trend.down { color: var(--bad); } .trend.flat { color: var(--muted); }
.acces-box { background: var(--accent-soft); border-radius: 12px; padding: 1rem 1.2rem; margin: 1rem 0; display: grid; gap: .6rem; }
.acces-box .k { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mono { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.mono.big { font-size: 1.6rem; font-weight: 700; color: var(--accent-dark); letter-spacing: .02em; }

#t-eleves td, #t-eleves th { white-space: nowrap; }

/* Accueil : nom de l'école, pied de page */
.ecole-nom { display: inline-block; font-weight: 700; font-size: 1.1rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: .4rem 1.2rem; margin: 0 0 1rem; }
.foot { text-align: center; color: var(--muted); font-size: .85rem; padding: 0 1rem 2rem; }

/* Choix des élèves */
.eleves-sel { border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem 1rem; margin: 1.2rem 0 0; }
.eleves-sel legend { font-weight: 700; font-size: .95rem; padding: 0 .4rem; }
.row-tools { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.row-tools .linklike { color: var(--accent); font-weight: 700; }
.eleves-liste { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.check { position: relative; display: inline-flex; margin: 0; font-weight: 400; cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem .45rem .8rem; border: 1.5px solid #cfd3da; border-radius: 999px; background: #fff; }
.check span::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid #b8bec9; background: #fff; flex: none; }
.check input:checked + span { background: var(--accent-soft); border-color: var(--accent); font-weight: 700; color: var(--accent-dark); }
.check input:checked + span::before { border-color: var(--accent); background: var(--accent) radial-gradient(circle, #fff 30%, transparent 32%); }
.check input:focus-visible + span { outline: 3px solid #9cc1e6; outline-offset: 1px; }

/* Menu, dictées préparées */
.choices { display: grid; gap: .8rem; margin: 1rem 0 1.4rem; }
.choice { text-align: left; font: inherit; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.1rem 1.3rem; cursor: pointer; display: grid; gap: .2rem; color: var(--ink); }
.choice b { font-size: 1.15rem; color: var(--accent-dark); }
.choice span { color: var(--muted); font-size: .95rem; }
.choice:hover { border-color: var(--accent); background: #fbfdff; }
.head-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.head-row h2 { margin: 0; }
.prep-liste { display: grid; gap: .7rem; margin: 1rem 0 .4rem; }
.prep { border: 1.5px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .5rem; background: #fff; }
.prep .t { font-weight: 700; font-size: 1.05rem; }
.prep .m { color: var(--muted); font-size: .88rem; }
.prep .ap { color: #3d4556; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.prep .act { display: flex; gap: .5rem; flex-wrap: wrap; }
.row-btns { display: inline-flex; gap: .6rem; flex-wrap: wrap; }
.vide-prep { text-align: center; color: var(--muted); padding: 1.2rem 0; }

/* Liste de mots (maîtresse) : numérotée, avec dictionnaire */
ol.mots { counter-reset: m; list-style: none; padding: 0; margin: .6rem 0 .8rem; display: grid; gap: .5rem; }
ol.mots li { display: flex; gap: .5rem; align-items: center; }
ol.mots li::before { counter-increment: m; content: counter(m) "."; width: 2rem; text-align: right; font-weight: 700; color: var(--muted); flex: none; }
.champ { position: relative; flex: 1; }
.champ input { width: 100%; }
.sugg { position: absolute; left: 0; right: 0; top: calc(100% + 2px); z-index: 20; background: #fff; border: 1.5px solid var(--accent); border-radius: 10px; box-shadow: 0 10px 30px rgba(30, 37, 51, .18); overflow: hidden; }
.sugg button { display: block; width: 100%; text-align: left; font: inherit; padding: .5rem .85rem; border: 0; background: #fff; cursor: pointer; color: var(--ink); }
.sugg button:hover, .sugg button.on { background: var(--accent-soft); }
.sugg button b { color: var(--accent-dark); }
.verif { flex: none; width: 1.8rem; text-align: center; font-weight: 700; }
.verif.ok { color: var(--good); } .verif.ko { color: #b7791f; cursor: help; }

/* Cases de l'élève */
ol.cases { counter-reset: c; list-style: none; padding: 0; margin: .6rem 0 .4rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: .8rem 1.2rem; }
ol.cases li { display: flex; align-items: center; gap: .6rem; }
ol.cases li::before { counter-increment: c; content: counter(c) "."; font-size: 1.5rem; font-weight: 700; color: var(--accent); min-width: 2.4rem; text-align: right; }
ol.cases input { flex: 1; min-width: 0; font-size: 1.5rem; padding: .55rem .8rem; border-width: 2px; }
.modif-lien { text-align: center; margin: .2rem 0 0; }
.modif-lien .linklike { color: var(--muted); font-size: .85rem; text-decoration: underline; }

.maj { flex: none; height: 2.8rem; min-width: 2.8rem; border-radius: 10px; border: 1.5px solid #c5d3e2; background: #fff; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.maj:hover { background: var(--accent-soft); }
.maj.on { background: var(--accent); border-color: var(--accent); color: #fff; }
