:root{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","Segoe UI",sans-serif;color:#10254a;background:#eef5fb}*{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#f9fcff,#edf4fa);min-height:100vh}.shell{max-width:1180px;margin:auto;padding:max(18px,env(safe-area-inset-top)) 16px max(24px,env(safe-area-inset-bottom))}.screen{display:none}.screen.active{display:block}.hero{text-align:center;padding:18px 0 26px}.brand{font-size:clamp(36px,8vw,62px);font-weight:900;letter-spacing:.03em}.subtitle{font-weight:650;font-size:18px}.module-grid{display:grid;gap:14px;max-width:620px;margin:auto}.module{border:0;border-radius:24px;padding:22px;color:white;display:flex;align-items:center;gap:18px;text-align:left;box-shadow:0 10px 24px #143d6c22;font:inherit}.module b{display:block;font-size:28px}.module small{display:block;font-size:16px;margin-top:4px}.module:disabled{opacity:.55}.emoji{font-size:42px}.module-te1{background:linear-gradient(135deg,#168eea,#146ec7)}.module-lex{background:linear-gradient(135deg,#26b269,#158a4e)}.module-games{background:linear-gradient(135deg,#ef4c63,#c92d46)}.status-card,.play-card,.solutions-card,.mode-panel{background:#fff;border:1px solid #dce8f3;border-radius:22px;box-shadow:0 8px 24px #183f6b12}.status-card{max-width:620px;margin:18px auto;padding:18px}.muted{color:#62748e;margin-top:6px}.topbar{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;margin-bottom:12px}.topbar h1{margin:0;font-size:30px}.topbar>button:last-child{justify-self:end}.ghost{background:transparent;border:0;font:inherit;color:#096bd8;font-weight:700;padding:10px}.mode-panel{padding:14px;margin-bottom:14px}.mode-title{margin:0 0 10px}.modes{display:flex;flex-wrap:wrap;gap:8px}.chip{border:1px solid #d6e1eb;background:#f8fafc;color:#14315d;border-radius:10px;padding:9px 13px;font-weight:650}.chip.selected{background:#0878e6;color:#fff;border-color:#0878e6}.chip:disabled{opacity:.55}.workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);gap:14px}.play-card,.solutions-card{padding:16px}.row{display:flex;align-items:center;gap:10px}.spread{justify-content:space-between}.smallbtn,select{border:1px solid #bdd6ee;background:#eff8ff;color:#095ba9;border-radius:10px;padding:8px 10px;font-weight:650}.tiles{display:flex;flex-wrap:wrap;justify-content:center;gap:7px;margin:18px 0}.tile{width:58px;height:66px;border-radius:9px;background:linear-gradient(145deg,#ffedc5,#e8bb70);box-shadow:inset 0 0 0 1px #d6a854,0 3px 6px #55330f1c;display:grid;place-items:center;font-size:34px;font-weight:800;color:#161616;position:relative}.tile small{position:absolute;right:5px;bottom:3px;font-size:11px}.answer{width:100%;border:2px solid #bdd8ef;border-radius:14px;padding:15px;font-size:22px;text-transform:uppercase;outline:none}.answer:focus{border-color:#1688e7;box-shadow:0 0 0 3px #1688e720}.actions{display:grid;gap:10px;margin:12px 0}.actions.two{grid-template-columns:1fr 1fr}.actions button{border:0;border-radius:13px;padding:14px;font-weight:800;font-size:16px}.primary{background:#087be5;color:#fff}.success{background:#28a950}.secondary{background:#e8f0f7;color:#17365e}.blue-soft{background:#cbe9ff;color:#0d5a9e}.feedback{border-radius:12px;padding:11px 12px;font-weight:650}.feedback.neutral{background:#f1f5f9;color:#53657a}.feedback.good{background:#e9f8ef;color:#18733a}.feedback.bad{background:#fff0f1;color:#a21f2b}.stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #e2ebf3;margin-top:14px;padding-top:12px}.stats div{text-align:center;border-right:1px solid #e2ebf3}.stats div:last-child{border-right:0}.stats small,.stats b{display:block}.stats b{font-size:24px;margin-top:4px}.solutions-card{min-height:420px}.solution-list{margin-top:12px;max-height:560px;overflow:auto;border-radius:12px;border:1px solid #e1e8ef}.solrow{display:grid;grid-template-columns:42px 1fr 52px 55px;gap:8px;padding:8px 10px;border-bottom:1px solid #edf1f5;font-size:14px}.solrow:nth-child(even){background:#f8fbfd}.solrow b{font-size:15px}.empty{padding:30px;text-align:center;color:#718096}@media(max-width:760px){.shell{padding-left:10px;padding-right:10px}.workspace{grid-template-columns:1fr}.solutions-card{min-height:250px}.solutions-card{display:none}.solutions-card.open{display:block}.tile{width:46px;height:55px;font-size:28px}.actions.two{grid-template-columns:1fr 1fr}.mode-panel{padding:10px}.chip{font-size:12px;padding:8px 9px}.stats b{font-size:20px}}@media(min-width:761px){.module-grid{grid-template-columns:1fr}.shell{padding-top:24px}}
.mode-state{margin-top:10px;padding:8px 12px;border-radius:10px;font-size:.88rem;font-weight:700}.mode-state.ready{background:#e9f8ef;color:#17703b}.mode-state.pending{background:#fff4d8;color:#8a5a00}.chip:not(:disabled){cursor:pointer}

.answer-area{display:grid;gap:9px}.answer-row{display:grid;grid-template-columns:34px 1fr 34px;gap:8px;align-items:center}.answer-num{font-weight:800;text-align:center;color:#52708f}.answer-status{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;font-weight:900;background:#eef3f7;color:#7990a8}.answer-status.good{background:#def5e6;color:#19733a}.answer-status.bad{background:#ffe3e5;color:#a21f2b}.answer.locked{background:#f4fbf6;border-color:#80c99a;color:#17703b;font-weight:800}.progress{min-height:24px;margin:2px 0 8px;font-weight:800;color:#174b7f}.progress.complete{color:#17703b}.progress.partial{color:#8a5a00}@media(max-width:520px){.answer-row{grid-template-columns:28px 1fr 30px}.answer{font-size:19px;padding:13px}}

.answer.revealed{background:#fff3f3;border-color:#e55b66;color:#c21f32;font-weight:850}.answer-status.revealed{background:#ffe2e5;color:#b51f2f}.feedback.reveal{background:#fff0f1;color:#a21f2b}.length-head{position:sticky;top:0;z-index:2;background:#eaf4ff;color:#0d5a9e;font-weight:850;padding:7px 10px;border-bottom:1px solid #d8e7f5}.solutions-card.open{display:block}
.prompt-card{margin:18px 0;padding:18px;border-radius:16px;background:linear-gradient(145deg,#f8fbff,#eaf4ff);border:1px solid #cfe2f4;display:grid;gap:10px;text-align:center;color:#17365e}.prompt-card>strong{font-size:18px}.prompt-card>span{color:#536b85}.prompt-word{font-size:34px;font-weight:900;letter-spacing:.08em;color:#0d5a9e;background:#fff;border:2px solid #b9d9f4;border-radius:14px;padding:12px}.criterion{display:flex;align-items:center;justify-content:center;gap:12px}.criterion b{font-size:46px;background:#ffe6aa;color:#1c1c1c;border:1px solid #ddb35b;border-radius:12px;padding:7px 16px}.criterion span{font-size:25px;font-weight:900}.criterion small{font-size:15px;color:#526a83}.solrow{grid-template-columns:42px minmax(100px,1fr) 52px 55px auto}.solmeta{font-size:12px;color:#7a4e00;font-weight:800;white-space:nowrap}.answer-status.revealed{font-size:13px}
@media(max-width:760px){.solrow{grid-template-columns:30px minmax(90px,1fr) 40px 44px}.solmeta{grid-column:2/-1}.prompt-word{font-size:28px}}
.selectors-row{display:flex;gap:12px;flex-wrap:wrap;margin-top:10px}.selectors-row label{display:flex;align-items:center;gap:7px;font-size:.9rem;font-weight:800;color:#35536f}.hidden{display:none!important}.mini-rack{display:flex;justify-content:center;gap:5px;flex-wrap:wrap}.mini-rack span{background:#ffe8b6;border:1px solid #d8ae61;border-radius:7px;padding:7px 10px;font-weight:900;color:#222}

.solrow.sol-revealed b{color:#c21f32}.sol-reveal-mark{font-size:12px;font-weight:900;color:#b51f2f;background:#ffe2e5;border-radius:999px;padding:2px 7px;justify-self:end}
.telex-title-row{align-items:flex-start;flex-wrap:wrap}.telex-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-top:14px}.telex-grid label{font-size:.82rem;font-weight:800;color:#35536f}.telex-grid input{display:block;width:100%;margin-top:5px;border:1px solid #bdd6ee;border-radius:10px;padding:11px;font:inherit;text-transform:uppercase}.lex-actions{grid-template-columns:1fr 1fr;max-width:420px}.telex-workspace{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)}.telex-results{max-height:650px}.lex-word{width:100%;display:grid;grid-template-columns:1fr 70px;text-align:left;border:0;border-bottom:1px solid #edf1f5;background:#fff;padding:9px 11px;font:inherit;color:#17365e}.lex-word:nth-child(even){background:#f8fbfd}.lex-word b{letter-spacing:.03em}.lex-word span{text-align:right;color:#6b7f94}.analysis-input-row{display:grid;grid-template-columns:1fr auto;gap:8px;margin-top:12px}.analysis-input-row .primary{border:0;border-radius:12px;padding:0 16px;font-weight:800}.analysis-random{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.analysis-random button,.future-tools button{border:0;border-radius:11px;padding:10px;font-weight:750;background:#e8f0f7;color:#17365e}.analysis-box{background:#f8fbfd;border:1px solid #e1e8ef;border-radius:14px;padding:14px;min-height:220px;line-height:1.45}.analysis-word{font-size:30px;font-weight:900;color:#0d5a9e;letter-spacing:.06em}.analysis-box h4{margin:14px 0 4px;color:#24496d}.analysis-box p{margin:4px 0}.oktext{color:#17703b}.badtext{color:#a21f2b}.future-tools{display:grid;grid-template-columns:1fr 1fr 1fr;gap:7px;margin-top:10px}.future-tools button:disabled{opacity:.55}
@media(max-width:900px){.telex-grid{grid-template-columns:1fr 1fr}.telex-workspace{grid-template-columns:1fr}.telex-analysis-card{display:block}.future-tools{grid-template-columns:1fr}.analysis-input-row{grid-template-columns:1fr}.analysis-input-row .primary{padding:12px}}@media(max-width:520px){.telex-grid{grid-template-columns:1fr}}
.lex-tool-panel{margin-top:12px;border:1px solid #dce8f3;background:#f8fbfd;border-radius:14px;padding:12px}.tool-list{margin-top:10px;max-height:210px;overflow:auto}.notebook-row{display:grid;grid-template-columns:1fr auto auto;gap:7px;align-items:center;padding:8px;border-bottom:1px solid #e5edf4}.notebook-row button{border:0;border-radius:8px;padding:6px 9px;font-weight:800}.notebook-open{background:#e5f2ff;color:#095ba9}.notebook-del{background:#ffe6e8;color:#a21f2b}.definition-box{margin-top:12px;padding:11px 12px;border-radius:12px;background:#fff9e8;border:1px solid #f1d892;color:#654c0e}.definition-box b{color:#4b3600}.bridge-note{margin-top:8px;padding:8px 10px;border-radius:10px;background:#eaf4ff;color:#0d5a9e;font-weight:750}.ods-panel{margin-top:14px}.ods-controls{display:grid;grid-template-columns:auto 1fr auto;gap:10px;align-items:end;margin-top:12px}.ods-controls label{font-size:.82rem;font-weight:800;color:#35536f}.ods-controls input{display:block;width:100%;margin-top:5px;border:1px solid #bdd6ee;border-radius:10px;padding:10px;font:inherit;text-transform:uppercase}.ods-controls button{border:0;border-radius:11px;padding:11px 16px;font-weight:800}.ods-results{max-height:460px}.ods-row{display:grid;grid-template-columns:150px 1fr;gap:10px;padding:9px 11px;border-bottom:1px solid #edf1f5}.ods-row:nth-child(even){background:#f8fbfd}.ods-row b{color:#0d5a9e}.ods-row span{color:#455e77;line-height:1.35}.ods-head{align-items:flex-start}.future-tools button:not(:disabled){cursor:pointer}.future-tools button.active-tool{background:#dff5e7;color:#176b39}
@media(max-width:700px){.ods-controls{grid-template-columns:1fr}.ods-row{grid-template-columns:1fr}.tool-list{max-height:260px}}
.answer-row.current-answer .answer{outline:3px solid rgba(13,110,253,.22);border-color:#0d6efd;box-shadow:0 0 0 4px rgba(13,110,253,.08)}

/* 0.15 — Liste pédagogique Appuis +1 */
.appui-group{display:grid;grid-template-columns:44px 1fr;gap:10px;align-items:start;padding:10px 4px;border-bottom:1px solid rgba(120,130,150,.18)}
.appui-letter{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:#eaf2ff;font-weight:900;font-size:1.05rem}
.appui-words{display:flex;flex-wrap:wrap;gap:4px 8px;align-items:center;padding-top:6px}
.appui-words b{font-size:1rem;letter-spacing:.02em}
.appui-sep{opacity:.45}

/* 0.16 — options de base strictes / étendues */
#solutionScopeControls select{min-width:190px}


/* 0.18 — mots provenant de la base ajoutée */
.solution-extra{color:#7c3aed!important;font-weight:900}
.sol-extra{background:rgba(124,58,237,.055)}
.appui-words .solution-extra{padding:1px 3px;border-radius:5px;background:rgba(124,58,237,.08)}


/* 0.19 — réglages Contient */
#contientControls select{min-width:110px}
#contientLetter{min-width:70px}
#contientCount{min-width:90px}


/* 0.20 — convention visuelle globale : conjugaisons en violet */
.solution-conj{color:#7c3aed!important;font-weight:900}
.appui-words .solution-conj{padding:1px 3px;border-radius:5px;background:rgba(124,58,237,.08)}


/* 0.21 — confort de test sur iPad */
body.ipad-test .shell{max-width:1280px}
@media (min-width:761px) and (max-width:1366px){
  body.ipad-test .shell{padding-left:18px;padding-right:18px}
  body.ipad-test button,
  body.ipad-test select{min-height:44px}
  body.ipad-test .chip{padding:10px 14px}
  body.ipad-test .answer{min-height:52px}
  body.ipad-test .solutions-card{max-height:calc(100vh - 150px);overflow:auto}
}


/* 0.23 — rapprochement SUITE TE V2.1 / mobile */
.v21-tools{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.v21-tools button{border:0;border-radius:10px;padding:9px 12px;background:#e7f0fa;color:#164d7a;font-weight:750;min-height:40px}
.lex-v21-tools button:nth-child(2n){background:#fff2d8;color:#805500}
.lex-v21-tools button:nth-child(3n){background:#eee7fb;color:#5a3d8b}
.te1-v21-tools{border-top:1px solid #e4edf6;padding-top:10px}
.te1-v21-header{margin-bottom:12px}
.te1-v21-grid{display:grid;grid-template-columns:repeat(6,minmax(120px,1fr));gap:10px;align-items:end}
.te1-v21-grid label{font-size:12px;font-weight:700;display:flex;flex-direction:column;gap:5px}
.te1-v21-grid .checkline{flex-direction:row;align-items:center;min-height:44px}
.te1-v21-grid select{width:100%}
.te1-session-actions{align-items:center;flex-wrap:wrap;margin-top:10px}
#te1SessionState{flex:1;min-width:220px}
.lex-v21-panel{margin-top:14px}
.lex-v21-body{padding-top:12px}
.tool-portage-note{padding:12px;border-radius:10px;background:#eef5fb;color:#48627a}
.ods-table-wrap{overflow:auto;-webkit-overflow-scrolling:touch}
.ods-table{border-collapse:separate;border-spacing:4px;min-width:1050px;width:100%}
.ods-table th,.ods-table td{text-align:center;padding:8px 9px;border-radius:7px;background:#eef5fb;white-space:nowrap}
.ods-table thead th,.ods-table tbody th{background:#dcebf9;color:#154f7e}
#lexLength{min-width:120px}

@media (max-width:1100px){
  .te1-v21-grid{grid-template-columns:repeat(4,minmax(120px,1fr))}
}
@media (max-width:760px){
  .te1-v21-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .v21-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .v21-tools button{font-size:12px;padding:9px 7px}
  .telex-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:430px){
  .te1-v21-grid{grid-template-columns:1fr 1fr}
  .telex-grid{grid-template-columns:1fr}
  .v21-tools{grid-template-columns:1fr 1fr}
}

/* 0.24 — TE-GAMES V2.1 */
.games-intro{display:flex;justify-content:space-between;align-items:end;gap:16px}
.games-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}
.game-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:6px;padding:16px;border:1px solid #d7e5f2;border-radius:14px;background:#fff;min-height:104px}
.game-card:hover,.game-card.active-game{border-color:#7baee0;background:#eef6fd}
.game-title{font-weight:850;font-size:16px;color:#0f4f80}
.game-desc{font-size:12px;color:#65798b;line-height:1.35}
.game-panel{margin-top:12px}
.game-panel-body{padding-top:12px}
.game-placeholder{text-align:center;padding:24px}
.game-placeholder-icon{font-size:40px;margin-bottom:8px}
@media (max-width:1000px){.games-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:600px){.games-intro{align-items:stretch;flex-direction:column}.games-grid{grid-template-columns:1fr}.game-card{min-height:88px}}

/* 0.24a — correctif Tableau / Explorateur ODS */
.ods-table-help{margin:0 0 10px;padding:9px 11px;background:#eef6fd;border-radius:9px;color:#45657e}
.ods-count{border:0;background:#fff;color:#0b5ed7;font-weight:850;border-radius:7px;padding:7px 9px;min-width:42px;cursor:pointer}
.ods-count:hover{background:#dcecff}

/* 0.24b — Tableau ODS comme SUITE TE Windows */
.ods-windows-table{margin-bottom:14px}
.ods-count.selected{background:#0b5ed7;color:#fff}
.ods-selection-head{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px 4px 8px;border-top:1px solid #dbe7f1;margin-top:4px}
.ods-selection-words{max-height:520px;overflow:auto;-webkit-overflow-scrolling:touch}
.ods-selection-words .ods-row{width:100%}
@media (max-width:700px){
  .ods-selection-head{align-items:flex-start;flex-direction:column;gap:3px}
}

/* 0.25 — Explorateur ODS fidèle à la SUITE Windows */
.ods-library{background:#232323;color:#eef2f6;border-radius:14px;padding:16px}
.ods-library .muted{color:#9ca8b5}
.ods-library-title{text-align:center;margin-bottom:14px}
.ods-library-title strong{font-size:24px;font-weight:800}
.ods-library-toolbar,.ods-filter-row{display:grid;grid-template-columns:1.3fr .65fr .85fr .95fr;gap:12px;align-items:end;background:#2c2c2c;padding:12px;border-radius:9px}
.ods-library-toolbar label,.ods-filter-row label{font-size:12px;font-weight:750;display:flex;gap:7px;align-items:center}
.ods-library-toolbar input,.ods-library-toolbar select,.ods-filter-row input,.ods-filter-row select{min-height:38px}
.ods-quick-row{display:flex;gap:7px;align-items:center;flex-wrap:wrap;background:#2c2c2c;padding:10px 12px;margin-top:8px;border-radius:9px}
.ods-quick-row button{background:#2477b5;color:#fff;border:0;border-radius:6px;padding:9px 14px}
.ods-filter-row{grid-template-columns:.7fr 1.1fr 2fr;margin-top:8px}
.ods-library-main{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:12px;margin-top:10px}
.ods-library-list-wrap{background:#f9f9f9;border-radius:7px;overflow:hidden;min-height:520px}
.ods-library-list-wrap .mode-state{margin:0;border-radius:0}
.ods-library-list{height:500px;overflow:auto;background:#fff;padding:6px}
.ods-list-word{display:block;width:100%;border:0;background:transparent;text-align:left;padding:2px 5px;border-radius:0;color:#111;font:15px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.ods-list-word:hover,.ods-list-word.selected{background:#1687d9;color:white}
.ods-word-card{background:#303030;border-radius:8px;padding:14px;color:#fff;text-align:center}
.ods-word-card h3{font-size:22px;margin:2px 0 8px}
.ods-edition-badge{color:#76dfff;font-weight:800;margin:12px 0}
.ods-definition{background:#1e1e1e;border-radius:7px;padding:12px;min-height:120px;text-align:left;margin:10px 0 12px;white-space:pre-wrap}
.ods-word-actions{display:grid;gap:7px}
.ods-word-actions button{border:0;border-radius:6px;background:#2477b5;color:#fff;padding:11px 8px}
.ods-word-actions .purple{background:#7152aa}.ods-word-actions .gold{background:#b77d00}.ods-word-actions .green{background:#47794e}
.ods-grand-total{text-align:center;font-size:18px;font-weight:850;color:#64d7ff;padding:16px 0 4px}
.ods-windows-table th,.ods-windows-table td{padding:5px}
@media (max-width:900px){
  .ods-library-toolbar{grid-template-columns:1fr 1fr}
  .ods-filter-row{grid-template-columns:1fr 1fr}
  .ods-filter-row .muted{grid-column:1/-1}
  .ods-library-main{grid-template-columns:1fr}
  .ods-word-card{order:-1}
  .ods-library-list-wrap{min-height:420px}
  .ods-library-list{height:400px}
}
@media (max-width:520px){
  .ods-library{padding:10px}
  .ods-library-title strong{font-size:19px}
  .ods-library-toolbar,.ods-filter-row{grid-template-columns:1fr}
  .ods-library-toolbar label,.ods-filter-row label{flex-direction:column;align-items:stretch}
  .ods-quick-row button{padding:8px 10px}
}

/* 0.26 — Analyse TE-LEX complète comme Windows */
.analysis-head-mobile{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
.analysis-dict-line{margin-top:5px;color:#6b7d8e}
.analysis-richness{display:flex;flex-direction:column;align-items:flex-end;gap:4px;background:#eef5fb;padding:9px 11px;border-radius:10px;white-space:nowrap}
.analysis-richness.rich{background:#fff4cf;color:#7b5700}
.analysis-richness span{font-weight:850}
.analysis-section{border-top:1px solid #dce7f1;padding:10px 0}
.analysis-section summary{font-weight:850;color:#193e63;cursor:pointer;list-style:none}
.analysis-section summary::-webkit-details-marker{display:none}
.analysis-section summary span{font-weight:700;color:#667b8e}
.analysis-word-list{display:flex;flex-wrap:wrap;gap:7px;padding-top:9px}
.analysis-link-word{border:1px solid #cfe0ef;background:#eef6fd;color:#135a91;border-radius:8px;padding:6px 9px;font-weight:750}
.analysis-link-word:hover{background:#dceeff}
.analysis-empty{padding-top:8px;color:#76889a}
.analysis-def-list{display:grid;gap:7px;padding-top:10px}
.analysis-def-row{display:grid;grid-template-columns:minmax(90px,auto) 1fr;gap:10px;align-items:start;padding:7px 8px;border-radius:7px;background:#f7fafc}
.analysis-def-row b{color:#123e65}
.analysis-def-row span{color:#334d63}
@media (max-width:520px){
  .analysis-head-mobile{flex-direction:column}
  .analysis-richness{align-items:flex-start}
  .analysis-definitions:not([open]) .analysis-def-list{display:none}
  .analysis-def-row{grid-template-columns:1fr}
}

/* 0.27 — Panier TE-1 fidèle à la logique Windows */
.analysis-choice{display:inline-flex;align-items:center;gap:5px}
.analysis-choice input{width:17px;height:17px;accent-color:#0b5ed7}
.analysis-basket-actions{display:flex;gap:7px;flex-wrap:wrap;padding:9px 0 4px}
.analysis-basket-actions button{border:1px solid #cfe0ef;border-radius:8px;padding:7px 10px;background:#f5f9fc}
.analysis-basket-actions .primary{background:#0b5ed7;color:white;border-color:#0b5ed7}
.te1-basket-panel{margin-top:10px}
.basket-row{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:8px;border-bottom:1px solid #e2eaf1}
.basket-row input{width:18px;height:18px}
.basket-analyze{border:0;border-radius:7px;background:#e8f2fb;color:#165987;padding:6px 9px}
.basket-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
@media(max-width:520px){
  .analysis-basket-actions{display:grid;grid-template-columns:1fr}
  .basket-actions{display:grid;grid-template-columns:1fr}
}

/* 0.28 — commande ABC disponible dans tous les entraînements */
.draw-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#abcDraw{font-weight:900;letter-spacing:.04em;min-width:58px}

/* 0.30 — Mots riches / Débuts en série / Finales en série */
.telex-tool-controls{display:flex;gap:10px;flex-wrap:wrap;align-items:end;margin:8px 0 12px}
.telex-tool-controls label{display:grid;gap:5px;font-weight:750}
.telex-tool-controls select{min-width:120px}
.telex-tool-note{padding:9px 11px;background:#f7fafc;border:1px solid #dde8f1;border-radius:9px;color:#5c7184;margin-bottom:10px}
.pro-tool-results,.series-results{display:grid;gap:6px;max-height:58vh;overflow:auto;padding:4px}
.pro-tool-row{display:grid;grid-template-columns:auto 36px minmax(120px,1fr) 130px auto auto;gap:8px;align-items:center;padding:8px 9px;border:1px solid #e1eaf1;border-radius:9px;background:#fff}
.tool-rank{color:#72869a;text-align:right}
.tool-metric{font-weight:750;color:#185f96}
.pro-tool-row button,.series-word-grid button{border:1px solid #cfe0ef;background:#eef6fd;border-radius:8px;padding:6px 9px;color:#145785}
.telex-tool-footer{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.series-group{border:1px solid #dce7f0;border-radius:10px;background:#fff;overflow:hidden}
.series-group summary{display:flex;justify-content:space-between;gap:12px;padding:10px 12px;background:#edf5fb;cursor:pointer}
.series-word-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:7px;padding:10px}
.series-word-grid button{display:flex;justify-content:space-between;align-items:center;font-weight:800}
.series-word-grid small{font-weight:600;color:#708497}
@media(max-width:700px){
  .pro-tool-row{grid-template-columns:auto 32px 1fr auto}
  .pro-tool-row .tool-metric{grid-column:3}
  .pro-tool-row button{grid-row:2}
}

/* 0.30a — navigation outils TE-LEX + performance séries */
.tool-return-row{display:flex;justify-content:flex-start;margin:6px 0 10px;position:sticky;top:0;z-index:3;background:inherit;padding:4px 0}
.tool-return-row .smallbtn,.telex-tool-footer button:last-child{font-weight:800}
.series-group:not([open]) .series-word-grid{display:none}

/* 0.30b — Débuts/Finales fidèles Windows */
.series-windows-controls{align-items:end}
.series-windows-controls input{min-width:150px;padding:10px 12px;border:1px solid #c9d9e6;border-radius:9px;font-size:1rem}
.series-windows-controls #seriesStatus{flex:1;min-width:260px}
.windows-series-results{max-height:56vh}
.series-windows-footer{position:sticky;bottom:0;background:rgba(255,255,255,.96);padding-top:10px}
@media(max-width:700px){
  .series-windows-controls{display:grid;grid-template-columns:1fr 1fr}
  .series-windows-controls #seriesStatus{grid-column:1/-1;min-width:0}
  .series-windows-footer{display:grid;grid-template-columns:1fr 1fr}
}

/* 0.30c — navigation fiable entre analyse et outils TE-LEX */
.analysis-back-tools{display:flex;justify-content:flex-start;margin-top:12px;padding-top:10px;border-top:1px solid #dce7f1}
.analysis-back-tools .smallbtn{font-weight:850}

/* 0.31 — Carnet TE-LEX + Appuis +1/+2/+3 */
.carnet-windows-list{display:grid;gap:2px;max-height:58vh;overflow:auto;border:1px solid #d6e2ec;border-radius:9px;padding:5px;background:#fbfdff}
.carnet-full-row{display:block;width:100%;text-align:left;border:0;background:transparent;padding:7px 9px;border-radius:6px;font-weight:800;color:#163f63}
.carnet-full-row:hover,.carnet-full-row.selected{background:#dfefff;color:#074d85}
.carnet-full-actions{position:sticky;bottom:0;background:rgba(255,255,255,.97);padding-top:10px}
.carnet-train-btn{background:#9a5a1a!important;color:#fff!important;border-color:#9a5a1a!important}
.appuis-lex-controls input{min-width:180px;padding:10px 12px;border:1px solid #c9d9e6;border-radius:9px;font-size:1rem}
.appuis-lex-results{display:grid;gap:6px;max-height:58vh;overflow:auto;border:1px solid #dbe6ee;border-radius:9px;padding:7px;background:#fbfdff}
.appuis-lex-row{display:grid;grid-template-columns:70px 130px 1fr;gap:9px;align-items:start;padding:7px 8px;border-bottom:1px solid #e5edf3}
.appuis-added{font-weight:900;color:#0d5b91}
.appuis-count{color:#596f82}
.appuis-solutions{display:flex;gap:6px;flex-wrap:wrap}
.appuis-solutions button{border:1px solid #cfe0ef;background:#eef6fd;border-radius:7px;padding:5px 8px;font-weight:750;color:#145785}
@media(max-width:700px){
  .carnet-full-actions{display:grid;grid-template-columns:1fr 1fr}
  .appuis-lex-row{grid-template-columns:62px 1fr}
  .appuis-solutions{grid-column:1/-1}
}

/* 0.31a — entraînement Appuis aléatoire */
.appuis-hidden-word{display:inline-flex;align-items:center;justify-content:center;min-width:84px;padding:5px 8px;border:1px dashed #bfd1df;border-radius:7px;background:#f7fafc;color:#7c8e9e;font-weight:850;letter-spacing:.08em}

/* 0.31b — définition au toucher dans Appuis */
.appuis-def-card{
  margin-top:10px;padding:12px 14px;border:1px solid #d7e3ec;border-radius:10px;
  background:#fff8e8
}
.appuis-def-card strong{font-size:1.15rem;color:#174f78}
.appuis-def-card #appuisLexDefText{margin-top:8px;line-height:1.45;color:#4e5f6d}

/* 0.31c — bouton Révéler les mots placé près de Aléatoire */
.appuis-lex-controls #appuisLexReveal{white-space:nowrap}

/* 0.32 — Appuis à haut rendement */
.hy-controls{align-items:end}
.hy-table-wrap{overflow:auto;max-height:60vh;border:1px solid #d7e2ea;border-radius:10px;background:#fff}
.hy-table{width:100%;border-collapse:collapse;min-width:920px;font-variant-numeric:tabular-nums}
.hy-table th,.hy-table td{padding:8px 10px;border-bottom:1px solid #e5edf3;text-align:right;white-space:nowrap}
.hy-table th:first-child,.hy-table td:first-child{text-align:left}
.hy-table thead th{position:sticky;top:0;background:#eef5fa;z-index:1}
.hy-word{border:0;background:transparent;color:#0a5e97;font-weight:850;padding:0}
.hyt-prompt{text-align:center;font-size:2rem;font-weight:900;color:#1c7db2;margin:24px 0}
.hyt-answer-label{display:grid;grid-template-columns:auto minmax(220px,420px);align-items:center;gap:16px;font-weight:800;margin:12px 0}
.hyt-answer-label input{padding:12px;border:1px solid #aabdc9;border-radius:8px;font-size:1.1rem;text-transform:uppercase}
.hyt-status{margin-top:16px;min-height:180px;padding:16px;border-radius:10px;background:#f3f6f8;white-space:pre-wrap;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-weight:750}
@media(max-width:700px){
  .hyt-prompt{font-size:1.6rem}
  .hyt-answer-label{grid-template-columns:1fr}
}

/* 0.33 — Entraînement Nouveautés ODS */
.odst-setup-card{display:grid;gap:16px;max-width:760px;margin:18px auto;padding:18px;border-radius:12px;background:#f4f7fa}
.odst-setup-card label{display:grid;grid-template-columns:180px minmax(190px,1fr);align-items:center;gap:12px;font-weight:850}
.odst-random-title{text-align:center;font-weight:900;font-size:1.08rem;margin:24px 0 12px}
.odst-random-row,.odst-start-row,.odst-session-actions,.odst-mark-row{display:flex;flex-wrap:wrap;gap:14px;justify-content:center}
.odst-random-row button{min-width:190px}
.odst-start-row{margin-top:28px}
.odst-start-row #odstStart{min-width:330px}
.odst-session-meta{text-align:center;font-size:1.08rem;font-weight:900;margin:12px 0 34px}
.odst-big-word{text-align:center;font-size:3.2rem;font-weight:950;letter-spacing:.04em;color:#143f68;margin:24px 0}
.odst-instruction{text-align:center;font-size:1.2rem;margin:20px auto 28px;max-width:850px}
.odst-definition{max-width:920px;margin:0 auto 26px;padding:14px 18px;border-radius:10px;background:#fff4d6;text-align:center;font-size:1.08rem;line-height:1.45}
.odst-session-actions button{min-width:220px}
.odst-mark-row{margin-top:18px}
.odst-found{background:#2f8a3b!important;color:#fff!important;border-color:#2f8a3b!important;min-width:170px}
.odst-missed{background:#b84545!important;color:#fff!important;border-color:#b84545!important;min-width:170px}
.odst-mark{text-align:center;font-size:1.3rem;font-weight:950;margin:-8px 0 16px}
.odst-mark.good{color:#2f8a3b}.odst-mark.bad{color:#b84545}
.odst-bravo{text-align:center;font-size:3rem;font-weight:950;margin:55px 0 20px}
.odst-report-title{text-align:center;font-size:2rem;font-weight:950;margin:16px 0 24px}
.odst-report-score{text-align:center;font-size:1.35rem;font-weight:900;margin-bottom:18px}
.odst-report-sub{text-align:center;font-size:1.05rem;margin-bottom:30px}
.odst-report-label{text-align:center;font-weight:900;margin-bottom:10px}
.odst-report-box{white-space:pre-wrap;min-height:260px;max-width:980px;margin:0 auto 20px;padding:14px;border:1px solid #cbd8e3;border-radius:8px;background:#fff;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
@media(max-width:700px){
  .odst-setup-card label{grid-template-columns:1fr}
  .odst-big-word{font-size:2.35rem}
  .odst-start-row #odstStart,.odst-session-actions button{min-width:0;width:100%}
}

/* 0.33a — ajustement layout entraînement ODS */
.odst-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin:8px auto 24px;
  max-width:1100px;
}
.odst-topbar .odst-session-meta{
  margin:0;
  text-align:left;
  flex:1 1 auto;
}
.odst-top-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  justify-content:flex-end;
  align-items:center;
  flex:0 0 auto;
}
.odst-top-actions button{
  min-width:220px;
}
@media(max-width:900px){
  .odst-topbar{
    flex-direction:column;
    align-items:center;
  }
  .odst-topbar .odst-session-meta{
    text-align:center;
  }
  .odst-top-actions{
    justify-content:center;
  }
}


/* 0.33b — Entraînement ODS : couleurs proches de Windows */
#lexV21Panel.ods-training-windows-theme{
  background:#222;
  color:#f2f4f7;
  border-color:#343434;
  box-shadow:0 12px 28px rgba(0,0,0,.20);
}
#lexV21Panel.ods-training-windows-theme #lexV21Title{
  color:#ffca55;
  font-weight:950;
  letter-spacing:.01em;
}
#lexV21Panel.ods-training-windows-theme #lexV21Subtitle{
  color:#f4f6f8;
}
#lexV21Panel.ods-training-windows-theme .tool-return-row .smallbtn{
  background:#2877b4;
  color:#fff;
  border-color:#2877b4;
}
#lexV21Panel.ods-training-windows-theme .odst-setup-card{
  background:#2b2b2b;
  color:#fff;
}
#lexV21Panel.ods-training-windows-theme .odst-setup-card label{
  color:#f7f7f7;
}
#lexV21Panel.ods-training-windows-theme .odst-setup-card select{
  background:#2877b4;
  color:#fff;
  border-color:#2877b4;
}
#lexV21Panel.ods-training-windows-theme .odst-random-title{
  color:#fff;
}
#lexV21Panel.ods-training-windows-theme .odst-random-row button,
#lexV21Panel.ods-training-windows-theme .odst-start-row button,
#lexV21Panel.ods-training-windows-theme .odst-session-actions button,
#lexV21Panel.ods-training-windows-theme .odst-top-actions button{
  background:#2877b4;
  color:#fff;
  border-color:#2877b4;
  border-radius:7px;
  font-weight:800;
}
#lexV21Panel.ods-training-windows-theme #odstStart{
  background:#2877b4;
  color:#fff;
}
#lexV21Panel.ods-training-windows-theme .mode-state.ready{
  background:#2c2c2c;
  color:#72dbff;
  border:1px solid #353535;
}
#lexV21Panel.ods-training-windows-theme .odst-session-meta{
  color:#f4f6f8;
}
#lexV21Panel.ods-training-windows-theme .odst-big-word{
  color:#d9ebff;
  text-shadow:0 1px 0 #fff2;
}
#lexV21Panel.ods-training-windows-theme .odst-instruction{
  color:#f3f5f8;
}
#lexV21Panel.ods-training-windows-theme .odst-definition{
  background:transparent;
  color:#f5f5f5;
  border:0;
}
#lexV21Panel.ods-training-windows-theme .odst-found{
  background:#2f8a3b!important;
  color:#fff!important;
  border-color:#2f8a3b!important;
}
#lexV21Panel.ods-training-windows-theme .odst-missed{
  background:#b63e42!important;
  color:#fff!important;
  border-color:#b63e42!important;
}
#lexV21Panel.ods-training-windows-theme .odst-mark.good{color:#66d77b}
#lexV21Panel.ods-training-windows-theme .odst-mark.bad{color:#ff777c}
#lexV21Panel.ods-training-windows-theme .odst-bravo,
#lexV21Panel.ods-training-windows-theme .odst-report-title{
  color:#ffca55;
}
#lexV21Panel.ods-training-windows-theme .odst-report-score,
#lexV21Panel.ods-training-windows-theme .odst-report-sub,
#lexV21Panel.ods-training-windows-theme .odst-report-label{
  color:#f5f5f5;
}
#lexV21Panel.ods-training-windows-theme .odst-report-box{
  background:#fff;
  color:#111;
  border-color:#d9d9d9;
}

/* 0.33c — mots interdits + ergonomie ODS */
.mattel-forbidden,.ods-list-word.mattel-forbidden{color:#d62828!important;border-color:#d62828!important;background:#fff1f1!important;font-weight:950!important}
.mattel-forbidden-text{color:#ff4d4d!important}
.mattel-warning{margin-top:6px;color:#d62828;font-weight:900}
#lexV21Panel.ods-training-windows-theme #lexV21Close{display:none!important}
#lexV21Panel.ods-training-windows-theme .odst-top-actions{align-items:center}
#lexV21Panel.ods-training-windows-theme .odst-top-actions button{min-width:230px}

/* 0.33d — historique des mots supprimés */
.ods-list-word.mattel-forbidden{color:#d40000!important;background:#fff0f0!important;border:1px solid #e25b5b!important;font-weight:950!important}
.mattel-warning{color:#d40000!important;font-weight:950!important}

/* 0.33e — rejouer les ratés depuis le bilan */
.odst-review-btn{
  background:#8c5a20!important;
  color:#fff!important;
  border-color:#a66b25!important;
  font-weight:900!important;
}

/* 0.33g — tout retour sur un mot interdit l'affiche en rouge */
.mattel-forbidden-text{
  color:#e00000!important;
  font-weight:950!important;
}
.mattel-forbidden-row{
  border-left:4px solid #e00000!important;
}
.lex-word.mattel-forbidden b,
.carnet-full-row.mattel-forbidden span,
.ods-list-word.mattel-forbidden{
  color:#e00000!important;
  font-weight:950!important;
}
#lexOdsWordTitle.mattel-forbidden-text,
.analysis-word.mattel-forbidden-text{
  color:#ff3b30!important;
}

/* 0.33h — mot historique non valable en rouge dans Bibliothèque ODS */
.invalid-word-text{
  color:#e00000!important;
  font-weight:950!important;
}
.ods-list-word.ods-historical-invalid{
  color:#e00000!important;
  background:#fff0f0!important;
  border:1px solid #e45a5a!important;
  font-weight:950!important;
  display:flex!important;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.ods-history-tag{
  color:#a70000!important;
  font-size:.86em;
  font-weight:900;
  white-space:nowrap;
}

/* 0.33i — commentaire d'apparition ODS */
.analysis-ods-comment{
  margin-top:6px;
  color:#52697d;
  font-weight:700;
}
.analysis-ods-comment b{
  color:#0b5f9a;
  font-weight:900;
}

/* 0.33j — apparition visible directement dans la liste ODS */
.ods-history-tag{
  text-align:right;
  white-space:normal!important;
}


/* 0.34 — TE-LEX Mots riches, fidèle à Windows V2.1 */
.rich-windows-theme{
  background:#202020!important;
  color:#fff!important;
  border-color:#444!important;
}
.rich-windows-theme #lexV21Title{
  color:#ffc84f!important;
  font-size:2rem!important;
  font-weight:900!important;
  text-align:center!important;
}
.rich-windows-theme #lexV21Subtitle{display:none!important;}
.rich-windows-theme #lexV21Body{padding-top:.4rem!important;}

.rich-win-toolbar{
  display:grid;
  grid-template-columns:auto auto auto minmax(220px,1fr);
  gap:1rem;
  align-items:end;
  background:#292929;
  border-radius:10px;
  padding:1rem 1.2rem;
  margin-bottom:.75rem;
}
.rich-win-toolbar label{
  display:flex;
  align-items:center;
  gap:.65rem;
  color:#f1f1f1;
  font-size:1rem;
  white-space:nowrap;
}
.rich-win-toolbar select{
  min-width:112px;
  background:#2878b5;
  color:#fff;
  border:none;
  border-radius:6px;
  padding:.65rem .8rem;
  font-size:1rem;
  font-weight:700;
}
.rich-win-status{
  color:#59cfff;
  font-weight:800;
  font-size:1rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  align-self:center;
}

.rich-win-results{
  min-height:430px;
  max-height:62vh;
  overflow:auto;
  border:1px solid #ccc;
  background:#202020;
  padding:.15rem 0;
  font-family:Consolas,"Courier New",monospace;
}
.rich-win-row{
  width:100%;
  display:grid;
  grid-template-columns:44px 140px 190px 1fr;
  gap:.35rem;
  align-items:center;
  text-align:left;
  border:0;
  border-radius:0;
  background:transparent;
  color:#fff;
  padding:.18rem .55rem;
  font:inherit;
  cursor:pointer;
}
.rich-win-row:hover{background:#333;}
.rich-win-row.selected{
  background:#a96f00!important;
  color:#fff!important;
}
.rich-rank{text-align:right;padding-right:.45rem;}
.rich-word{font-weight:700;}
.rich-count{white-space:nowrap;}
.rich-level{white-space:nowrap;}
.rich-win-results .empty{color:#bbb;padding:1rem;}

.rich-win-footer{
  display:flex;
  gap:.8rem;
  align-items:center;
  margin-top:.8rem;
}
.rich-win-footer button{
  min-height:44px;
  padding:.65rem 1.2rem;
  border:0;
  border-radius:6px;
  background:#2878b5;
  color:#fff;
  font-size:1rem;
}
.rich-win-footer .rich-green{background:#31935d;}
.rich-win-footer .rich-gold{background:#b57a00;}
.rich-win-footer #richClose{margin-left:auto;}

@media (max-width:900px){
  .rich-win-toolbar{
    grid-template-columns:1fr 1fr;
  }
  .rich-win-status{grid-column:1/-1;}
  .rich-win-row{
    grid-template-columns:34px 90px 145px 1fr;
    font-size:.88rem;
  }
  .rich-win-footer{
    flex-wrap:wrap;
  }
  .rich-win-footer #richClose{margin-left:0;}
}

/* 0.34a — sélection multiple Mots riches + Panier TE-1 */
.rich-win-footer{flex-wrap:wrap;}
.rich-win-footer #richToTe1{background:#2c73a9;}
.rich-win-footer #richStartTe1{background:#5f56b3;}
.rich-win-footer #richClear{background:#555;}
.rich-win-row.selected{outline:1px solid #ffc84f;}


/* 0.34b — Panier TE-LEX → TE-1 : choix en haut */
.te1-basket-top-controls{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:.7rem;
  align-items:end;
  margin:.75rem 0;
  padding:.8rem;
  border-radius:12px;
  background:rgba(25,82,135,.06);
  border:1px solid rgba(25,82,135,.12);
}
.te1-basket-top-controls label{display:flex;flex-direction:column;gap:.35rem;font-weight:800;color:#17395f;}
.te1-basket-top-controls select{min-height:42px;border-radius:9px;border:1px solid #bfd3e7;background:#f5faff;padding:.45rem .65rem;font-weight:800;color:#14345d;}
.te1-basket-top-controls .basket-abc-permanent{flex-direction:row;align-items:center;min-height:42px;padding-top:1.25rem;}
#lexAnalysisClear{min-height:44px;white-space:nowrap;}
@media(max-width:900px){.te1-basket-top-controls{grid-template-columns:1fr 1fr}.te1-basket-top-controls .basket-abc-permanent{padding-top:.4rem}}
@media(max-width:560px){.te1-basket-top-controls{grid-template-columns:1fr 1fr}.analysis-input-row{flex-wrap:wrap}#lexAnalyzeWord{min-width:100%;}}


/* 0.34c — correctif visibilité demandé */
.analysis-input-row{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  gap:8px!important;
  align-items:stretch!important;
}
#lexAnalysisClear.lex-analysis-clear-visible{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-width:105px!important;
  min-height:48px!important;
  background:#e7eef6!important;
  color:#15385f!important;
  border:1px solid #bfd0e1!important;
  border-radius:12px!important;
  font-weight:900!important;
}
.te1-basket-panel{
  display:block;
}
.te1-basket-panel.hidden{display:none!important;}
.te1-basket-settings-title{
  font-weight:900;
  color:#17395f;
  margin:.15rem 0 .5rem;
}
.te1-basket-top-controls{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(130px,1fr))!important;
  gap:.65rem!important;
  align-items:end!important;
  margin:0 0 .8rem!important;
  padding:.8rem!important;
  background:#eef6fd!important;
  border:1px solid #c9dff1!important;
  border-radius:12px!important;
}
.te1-basket-top-controls label{
  display:flex!important;
  flex-direction:column!important;
  gap:.35rem!important;
  font-weight:900!important;
  color:#17395f!important;
}
.te1-basket-top-controls select{
  display:block!important;
  width:100%!important;
  min-height:44px!important;
}
.te1-basket-top-controls .basket-abc-permanent{
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:44px!important;
  padding:.4rem!important;
}
.basket-panel-heading{margin-bottom:.55rem!important;}

@media(max-width:900px){
  .te1-basket-top-controls{grid-template-columns:1fr 1fr!important;}
}
@media(max-width:560px){
  .analysis-input-row{grid-template-columns:1fr 1fr!important;}
  #lexAnalyzeWord{grid-column:1/-1!important;}
  .te1-basket-top-controls{grid-template-columns:1fr 1fr!important;}
}


/* 0.34d — Panier réellement en haut + Effacer analyse impossible à rater */
.build-badge{
  display:inline-block;
  margin:0 0 .45rem 0;
  padding:.25rem .55rem;
  border-radius:999px;
  background:#ffe49a;
  color:#5c4300;
  font-weight:900;
  font-size:.78rem;
}
.analysis-input-row-v034d{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  gap:.6rem!important;
}
.analysis-clear-row{
  margin-top:.5rem!important;
}
#lexAnalysisClear.lex-analysis-clear-visible{
  display:flex!important;
  width:100%!important;
  min-height:46px!important;
  align-items:center!important;
  justify-content:center!important;
  background:#e8eef5!important;
  color:#17395f!important;
  border:1px solid #c2d2e2!important;
  border-radius:12px!important;
  font-weight:900!important;
}
.te1-basket-topwide{
  margin:1rem 0!important;
  padding:1rem!important;
  border:2px solid #9fc6e8!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(32,74,120,.08)!important;
}
.te1-basket-topwide.hidden{display:none!important;}
.te1-basket-topwide .te1-basket-settings-title{
  font-size:1.1rem!important;
  font-weight:900!important;
  color:#123d69!important;
  margin-bottom:.75rem!important;
}
.te1-basket-topwide .te1-basket-top-controls{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(140px,1fr))!important;
  gap:.75rem!important;
  margin-bottom:.8rem!important;
  padding:.8rem!important;
  background:#eef7ff!important;
  border-radius:12px!important;
}
.te1-basket-topwide .te1-basket-top-controls label{
  display:flex!important;
  flex-direction:column!important;
  gap:.3rem!important;
  font-weight:900!important;
  color:#17395f!important;
}
.te1-basket-topwide .te1-basket-top-controls select{
  width:100%!important;
  min-height:44px!important;
}
.te1-basket-topwide .basket-abc-permanent{
  flex-direction:row!important;
  justify-content:center!important;
  align-items:center!important;
  gap:.5rem!important;
  min-height:44px!important;
}
@media(max-width:900px){
  .te1-basket-topwide .te1-basket-top-controls{
    grid-template-columns:1fr 1fr!important;
  }
}


/* 0.34e — anas possibles + analyse par longueur */
.te1-anas-card{
  margin-top:1rem;
  border-top:1px solid #d7e4f0;
  padding-top:.8rem;
}
.te1-anas-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.75rem;
  margin-bottom:.65rem;
}
.te1-anas-head strong{
  color:#123d69;
  font-size:1rem;
}
.te1-anas-head span{
  color:#6f8195;
  font-size:.82rem;
}
.te1-anas-list{
  max-height:330px;
  overflow:auto;
}
.te1-anas-length{
  margin:.55rem 0 .35rem;
  padding:.4rem .55rem;
  background:#eaf4ff;
  color:#0b5798;
  border-radius:8px;
  font-weight:900;
}
.te1-anas-length span{font-weight:700;opacity:.75}
.te1-anas-words{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
}
.te1-anas-words button{
  border:1px solid #cdddeb;
  background:#fff;
  color:#153c64;
  border-radius:999px;
  padding:.38rem .65rem;
  font-weight:800;
}
.analysis-length-title{
  margin:.85rem 0 .45rem;
  font-weight:900;
  color:#123d69;
}
.analysis-by-length .analysis-choice{
  display:grid;
  grid-template-columns:auto minmax(80px,auto) 1fr;
  align-items:center;
  gap:.45rem;
}
.analysis-by-length .analysis-choice small{
  color:#77879a;
  font-size:.75rem;
}
.telex-analysis-card .future-tools{
  margin:.6rem 0 .75rem!important;
}


/* 0.34f — Anas visibles + analyse 4→9, 10→15 à la demande */
.te1-anas-card{
  display:block!important;
  margin-top:1rem!important;
  padding-top:.85rem!important;
  border-top:1px solid #d8e4ef!important;
}
.te1-anas-list{
  min-height:74px!important;
}
.analysis-toggle-long{
  width:100%;
  margin:.75rem 0;
  min-height:44px;
  border-radius:10px;
  border:1px solid #b9d2e8;
  background:#eaf4ff;
  color:#0e568f;
  font-weight:900;
}
.analysis-long-wrap.hidden{
  display:none!important;
}
.analysis-long-length summary{
  background:#f1f6fb;
}

/* 0.34i — Anas masquées pendant la recherche */
#te1AnasCard.anas-hidden{
  display:block!important;
  opacity:.92;
}
#te1AnasCard.anas-hidden .te1-anas-head strong::after{
  content:" — masquées";
  font-weight:700;
  color:#7b8796;
}
#te1AnasCard.anas-hidden .te1-anas-list{
  min-height:auto!important;
}

/* 0.34k — Anas exactes sur dictionnaire actif */
.te1-anas-list .empty{
  color:#6f8195;
}

/* 0.34l — Mes progrès, fidèle à la référence Windows */
.progress-windows-theme{
  background:#222!important;
  color:#f4f4f4!important;
}
.progress-windows-theme .lex-v21-head h2,
.progress-windows-theme #lexV21Title{
  color:#ffc84a!important;
}
.progress-windows-theme #lexV21Subtitle{color:#f4f4f4!important}
.progress-summary{
  display:flex;justify-content:center;gap:18px;flex-wrap:wrap;
  font-size:22px;margin:18px 0 24px;color:#f4f4f4;
}
.progress-grid{
  display:grid;grid-template-columns:1.35fr 1fr;gap:16px;
  background:#2a2a2a;padding:10px;border-radius:8px;
}
.progress-grid h3,.smart-grid h3{color:#f4f4f4;text-align:center;margin:4px 0 12px}
.progress-list,.smart-list{
  background:#fff;color:#111;min-height:360px;max-height:650px;overflow:auto;
  border:1px solid #aaa;padding:5px;font-family:ui-monospace,Consolas,monospace;font-size:15px;
}
.progress-review>div{display:flex;justify-content:space-between;gap:14px}
.progress-empty{color:#777!important}
.progress-actions{display:flex;gap:18px;justify-content:center;margin:22px 0 8px;flex-wrap:wrap}
.progress-actions button{min-width:240px;padding:16px 22px;font-size:18px}
.progress-actions button:nth-child(1){background:#35679f;color:#fff}
.progress-actions button:nth-child(2){background:#9d5618;color:#fff}
.progress-actions button:nth-child(3){background:#2577ae;color:#fff}
.progress-actions.one button{background:#2577ae;color:#fff;min-width:210px}
.progress-streak{text-align:center;color:#5cc0e8;margin-top:6px}
.smart-head{text-align:center;font-size:20px;font-weight:700;line-height:1.8;margin:8px 0 20px}
.smart-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:12px;background:#292929;padding:8px}
.smart-list{background:#222;color:#fff;min-height:420px}
.smart-list>div{display:flex;justify-content:space-between;gap:12px}
.smart-rule{text-align:center;margin:24px 0 4px}
.progress-training-theme{min-height:720px}
.missed-counter{text-align:center;font-size:22px;font-weight:800;margin:38px 0 70px}
.missed-letters{text-align:center;font-size:58px;font-weight:800;letter-spacing:2px;margin-bottom:38px}
.missed-prompt{text-align:center;font-size:24px;margin-bottom:42px}
.missed-actions{display:flex;justify-content:center;gap:20px;flex-wrap:wrap}
.missed-actions button{min-width:255px;padding:20px 26px;font-size:20px;color:#fff}
.missed-actions .found{background:#2f8a36}
.missed-actions .wrong{background:#b13e3e}
#missedClose{background:#2a78b2}
.missed-answer{text-align:center;font-size:30px;font-weight:800;margin-top:38px;color:#ffc84a}
.missed-empty{text-align:center;font-size:24px;padding:90px 20px}
@media(max-width:850px){
  .progress-grid,.smart-grid{grid-template-columns:1fr}
  .progress-list,.smart-list{min-height:240px;max-height:360px}
  .missed-letters{font-size:42px;margin-top:20px}
  .missed-actions button{min-width:200px}
}

/* 0.34m — version prototype toujours visible */
#prototypeVersion{
  position:fixed!important;
  right:8px!important;
  bottom:8px!important;
  z-index:99999!important;
  background:#0b5ed7!important;
  color:#fff!important;
  padding:6px 10px!important;
  border-radius:9px!important;
  font:700 13px/1.2 system-ui,sans-serif!important;
  box-shadow:0 2px 8px rgba(0,0,0,.2)!important;
}

/* 0.34n — Entraînement sur mes ratés : flux Windows */
.missed-result-line{ text-align:center;font-size:22px;margin-top:18px; }
.missed-definition{ text-align:center;font-size:18px;line-height:1.35;max-width:900px;margin:4px auto 18px; }
.missed-done-score{ text-align:center;font-size:22px;font-weight:800;margin-top:40px; }
.missed-done-title{ text-align:center;font-size:54px;font-weight:900;margin:70px 0 32px; }
.missed-done-meta{ text-align:center;font-size:22px;margin-bottom:34px; }
.missed-done-actions button:disabled{ opacity:.58; }
.missed-new10-row{ display:flex;justify-content:center;margin-top:24px; }
#missedNew10{ background:#6f50aa;color:white;padding:18px 36px;min-width:315px;font-size:20px; }

/* 0.34o — Fermer final actif + définitions légèrement plus lisibles */
.missed-definition{
  font-size:19px!important;
}
.missed-done-actions .active-close{
  opacity:1!important;
  pointer-events:auto!important;
  cursor:pointer!important;
  background:#2a78b2!important;
  color:#fff!important;
}

/* 0.34p — Mode Surprise fidèle Windows */
.surprise-windows-theme{
  background:#222!important;
  color:#f4f4f4!important;
  min-height:760px;
}
.surprise-windows-theme #lexV21Title{color:#ffc84a!important}
.surprise-windows-theme #lexV21Subtitle{color:#f4f4f4!important}
.surprise-counter{
  text-align:center;
  font-size:22px;
  font-weight:800;
  margin:42px 0 72px;
}
.surprise-letters{
  text-align:center;
  font-size:58px;
  font-weight:800;
  letter-spacing:2px;
  margin-bottom:36px;
}
.surprise-prompt{
  text-align:center;
  font-size:24px;
  margin-bottom:40px;
}
.surprise-actions{
  display:flex;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
}
.surprise-actions button{
  min-width:255px;
  padding:20px 26px;
  font-size:20px;
  color:#fff;
}
.surprise-actions .found{background:#2f8a36}
.surprise-actions .wrong{background:#b13e3e}
#surpriseClose,#surpriseDoneClose{background:#2a78b2}
.surprise-result{
  text-align:center;
  font-size:22px;
  margin-top:-20px;
}
.surprise-definition{
  text-align:center;
  font-size:19px;
  line-height:1.35;
  max-width:900px;
  margin:4px auto 18px;
}
.surprise-done-score{
  text-align:center;
  font-size:22px;
  font-weight:800;
  margin-top:40px;
}
.surprise-done-title{
  text-align:center;
  font-size:54px;
  font-weight:900;
  margin:70px 0 32px;
}
.surprise-done-meta{
  text-align:center;
  font-size:22px;
  margin-bottom:34px;
}
.surprise-done-actions button:disabled{opacity:.58}
.surprise-new-row{
  display:flex;
  justify-content:center;
  margin-top:24px;
}
#surpriseNew{
  background:#7651b0;
  color:white;
  padding:18px 36px;
  min-width:345px;
  font-size:20px;
}
.surprise-empty{text-align:center;font-size:24px;padding:90px 20px}
@media(max-width:850px){
  .surprise-letters{font-size:42px}
  .surprise-actions button{min-width:200px}
}

/* 0.34q — Mode Compétition fidèle Windows */
.competition-windows-theme{
  background:#222!important;
  color:#f4f4f4!important;
  min-height:780px;
}
.competition-windows-theme #lexV21Title{color:#ffc84a!important}
.competition-windows-theme #lexV21Subtitle{color:#f4f4f4!important}
.competition-counter,.competition-review-counter{
  text-align:center;font-size:22px;font-weight:800;margin:44px 0 76px;
}
.competition-letters,.competition-review-letters{
  text-align:center;font-size:60px;font-weight:800;letter-spacing:2px;margin-bottom:38px;
}
.competition-prompt,.competition-review-prompt{
  text-align:center;font-size:24px;margin-bottom:40px;
}
.competition-actions,.competition-review-actions{
  display:flex;justify-content:center;gap:22px;flex-wrap:wrap;
}
.competition-actions button,.competition-review-actions button{
  min-width:255px;padding:20px 26px;font-size:20px;color:#fff;
}
.competition-actions .found,.competition-review-actions .found{background:#2f8a36}
.competition-actions .wrong,.competition-review-actions .wrong{background:#b13e3e}
#competitionAbandon,#competitionReviewCloseNow,#competitionReviewClose{background:#2a78b2}
.competition-report-head{
  text-align:center;font-size:27px;font-weight:900;margin:12px 0 24px;
}
.competition-report-lengths{
  text-align:center;font-size:19px;margin-bottom:26px;
}
.competition-report-list{
  border:1px solid #aaa;min-height:360px;max-height:610px;overflow:auto;padding:6px;
  font-family:ui-monospace,Consolas,monospace;font-size:15px;
}
.competition-report-row{
  display:grid;grid-template-columns:26px 110px 200px 1fr;gap:8px;align-items:start;
}
.competition-report-row .x{font-weight:900}
.competition-report-row .word{font-weight:700}
.competition-report-actions{
  display:flex;justify-content:center;gap:18px;margin-top:18px;flex-wrap:wrap;
}
.competition-report-actions button{
  min-width:300px;padding:16px 22px;font-size:18px;color:#fff;
}
#competitionReplayMissed{background:#9d5618}
#competitionReportClose{background:#2a78b2}
.competition-review-answer,.competition-review-ods,.competition-review-definition{
  text-align:center;
}
.competition-review-answer{font-size:22px;margin-top:-18px}
.competition-review-ods{font-size:17px;color:#ffc84a;margin-top:3px}
.competition-review-definition{font-size:19px;line-height:1.35;max-width:900px;margin:4px auto 18px}
.competition-review-score{
  text-align:center;font-size:22px;font-weight:800;margin-top:40px;
}
.competition-review-done{
  text-align:center;font-size:54px;font-weight:900;margin:70px 0 32px;
}
.competition-review-meta{
  text-align:center;font-size:22px;margin-bottom:34px;
}
.competition-review-actions button:disabled{opacity:.58}
.competition-empty{text-align:center;font-size:24px;padding:90px 20px}
@media(max-width:900px){
  .competition-report-row{grid-template-columns:22px 90px 130px 1fr;font-size:13px}
  .competition-letters,.competition-review-letters{font-size:44px}
}

/* 0.34r — Ratés compétition : masquer le texte générique après réponse */
.competition-review-prompt.hidden{display:none!important;}
.competition-review-answer{margin-top:8px!important;}
.competition-review-definition{margin-top:6px!important;}

/* 0.34s — Mes mots noirs */
.black-windows-theme{background:#222!important;color:#f4f4f4!important;min-height:760px}
.black-windows-theme #lexV21Title{color:#ffc84a!important}
.black-windows-theme #lexV21Subtitle{color:#f4f4f4!important}
.black-list{border:1px solid #aaa;min-height:420px;max-height:650px;overflow:auto;padding:5px;font-family:ui-monospace,Consolas,monospace;font-size:16px}
.black-row{display:grid;grid-template-columns:170px 115px 1fr;gap:10px}
.black-actions,.black-review-actions{display:flex;justify-content:center;gap:18px;flex-wrap:wrap;margin-top:18px}
.black-actions button,.black-review-actions button{min-width:260px;padding:18px 24px;font-size:19px;color:#fff}
#blackSmartReview{background:#a63838} #blackClose,#blackReviewClose,#blackDoneClose{background:#2a78b2}
.black-review-counter{text-align:center;font-size:22px;font-weight:800;margin:42px 0 72px}
.black-review-letters{text-align:center;font-size:58px;font-weight:800;letter-spacing:2px;margin-bottom:40px}
.black-review-difficulty{text-align:center;font-size:21px;margin-bottom:38px}
.black-review-answer{text-align:center;font-size:22px;margin-bottom:6px}
.black-review-definition{text-align:center;font-size:19px;line-height:1.35;max-width:1100px;margin:4px auto 18px}
.black-review-actions .found{background:#2f8a36}.black-review-actions .wrong{background:#b13e3e}
.black-done-score{text-align:center;font-size:22px;font-weight:800;margin-top:40px}
.black-done-title{text-align:center;font-size:54px;font-weight:900;margin:70px 0 32px}
.black-done-meta{text-align:center;font-size:22px;margin-bottom:34px}
.black-empty{text-align:center;font-size:22px;padding:70px 20px}

/* 0.34t — Mots noirs : bouton Nouvelle révision */
.black-new-review-row{
  display:flex;
  justify-content:center;
  margin-top:24px;
}
#blackNewReview{
  background:#a63838;
  color:#fff;
  min-width:345px;
  padding:18px 30px;
  font-size:20px;
}

/* 0.34u — Mix personnalisé */
.mix-windows-theme{background:#222!important;color:#f4f4f4!important;min-height:760px}
.mix-windows-theme #lexV21Title{color:#ffc84a!important}
.mix-windows-theme #lexV21Subtitle{color:#f4f4f4!important}
.mix-setup-card{background:#2a2a2a;border-radius:8px;padding:16px 22px}
.mix-top-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:28px;margin-bottom:28px}
.mix-top-controls label{display:grid;grid-template-columns:auto 170px;gap:14px;align-items:center;font-size:20px}
.mix-top-controls select{background:#2877ad;color:#fff;border:0;padding:10px 12px;font-size:18px}
.mix-setup-card h3{text-align:center;margin:10px 0 18px}
.mix-slider-row{display:grid;grid-template-columns:220px 1fr 90px;gap:18px;align-items:center;margin:18px 0}
.mix-slider-row input{width:100%}
.mix-presets{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-top:24px}
.mix-presets button{background:#2877ad;color:#fff;padding:12px 10px;font-size:17px}
.mix-launch-row,.mix-close-row{display:flex;justify-content:center;margin-top:22px}
#mixLaunch{background:#327d82;color:#fff;padding:18px 34px;min-width:360px;font-size:22px;font-weight:800}
#mixClose{background:#2877ad;color:#fff;padding:12px 34px;min-width:210px;font-size:18px}
.mix-status{text-align:center;margin-top:12px}
.mix-counter{text-align:center;font-size:22px;font-weight:800;margin:42px 0 72px}
.mix-letters{text-align:center;font-size:58px;font-weight:800;letter-spacing:2px;margin-bottom:38px}
.mix-prompt{text-align:center;font-size:24px;margin-bottom:38px}
.mix-answer{text-align:center;font-size:22px;margin-bottom:6px}
.mix-definition{text-align:center;font-size:19px;line-height:1.35;max-width:1100px;margin:4px auto 18px}
.mix-play-actions{display:flex;justify-content:center;gap:22px;flex-wrap:wrap}
.mix-play-actions button{min-width:255px;padding:20px 26px;font-size:20px;color:#fff}
.mix-play-actions .found{background:#2f8a36}.mix-play-actions .wrong{background:#b13e3e}
#mixClosePlay,#mixDoneClose{background:#2a78b2}
.mix-done-score{text-align:center;font-size:22px;font-weight:800;margin-top:40px}
.mix-done-title{text-align:center;font-size:54px;font-weight:900;margin:70px 0 32px}
.mix-done-meta{text-align:center;font-size:22px;margin-bottom:34px}
@media(max-width:900px){
  .mix-top-controls{grid-template-columns:1fr}
  .mix-top-controls label{grid-template-columns:1fr 1fr}
  .mix-presets{grid-template-columns:1fr 1fr}
  .mix-slider-row{grid-template-columns:150px 1fr 65px}
  .mix-letters{font-size:44px}
}

/* 0.34v — Accueil Pro */
.accueil-pro-theme{background:#222!important;color:#f4f4f4!important;min-height:780px}
.accueil-pro-theme #lexV21Title{color:#ffc84a!important}
.accueil-pro-theme #lexV21Subtitle{color:#e7e7e7!important}
.pro-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0 26px}
.pro-stat-card{background:#303030;border-radius:6px;padding:18px 12px;text-align:center}
.pro-stat-label{font-size:15px;font-weight:800;margin-bottom:10px}
.pro-stat-value{color:#ffc84a;font-size:27px;font-weight:900}
.pro-section-title{text-align:center;font-size:21px;font-weight:900;margin:10px 0 18px}
.pro-training-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;background:#292929;padding:14px;border-radius:6px}
.pro-training-card{background:#343434;border-radius:5px;padding:25px 18px 22px;text-align:center;min-height:155px}
.pro-card-title{font-size:24px;font-weight:900;margin-bottom:10px}
.pro-card-desc{font-size:15px;margin-bottom:20px;color:#ececec}
.pro-open{min-width:180px;padding:12px 20px;border:0;color:#fff;font-weight:700}
.pro-open.purple{background:#7d4db4}.pro-open.gold{background:#ad7710}.pro-open.teal{background:#327d82}.pro-open.red{background:#a73737}
.pro-bottom-actions{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.pro-bottom-actions button{background:#2877ad;color:#fff;padding:12px 20px;min-width:170px;font-size:15px}
@media(max-width:900px){.pro-stats-grid{grid-template-columns:1fr 1fr}.pro-training-grid{grid-template-columns:1fr}}

/* 0.34w — TE-GAMES / Anagrammes Flash */
.af-wrap{background:#333;border-radius:8px;min-height:700px;padding:24px 26px;text-align:center}
.af-controls{display:flex;justify-content:center;gap:18px;align-items:center;flex-wrap:wrap}
.af-controls label{display:flex;align-items:center;gap:10px;font-size:17px}
.af-controls select,.af-controls button{background:#2877ad;color:#fff;border:0;padding:10px 16px;font-size:17px}
.af-status{color:#55d5ff;font-size:18px;font-weight:800;margin:28px 0 34px}
.af-letters{color:#ffc84a;font-size:40px;font-weight:900;letter-spacing:.08em;min-height:58px;margin:14px 0 26px}
.af-input{width:min(520px,80%);font-size:30px;text-align:center;background:#303337;color:#fff;border:2px solid #596068;border-radius:7px;padding:12px}
.af-feedback{min-height:38px;margin-top:18px;font-size:20px}
.af-good{color:#6bd879}.af-solution{color:#ffc84a}
.af-anas{margin:14px auto 0;max-width:900px}
.af-anas-title{color:#7fdcff;font-weight:800;margin-bottom:7px}
.af-anas-list{display:flex;gap:8px;justify-content:center;flex-wrap:wrap}
.af-anas-list span{background:#25292d;border:1px solid #535b63;border-radius:16px;padding:5px 10px}
.af-help{margin-top:34px;color:#ccd2d8;font-size:15px}
.af-review-title{color:#ffc84a;font-weight:900;margin:10px 0}
.af-review-list{max-height:430px;overflow:auto;text-align:left;width:min(820px,92%);margin:0 auto}
.af-review-row{padding:8px 10px;border-bottom:1px solid #4b4b4b}
.af-review-main{color:#ffc84a;font-weight:900;font-size:18px}
.af-review-alt{color:#e7e7e7;font-size:14px;margin-top:3px}
.af-perfect{color:#6bd879;font-size:22px;font-weight:900;margin-top:26px}
@media(max-width:800px){
  .af-controls{gap:10px}
  .af-controls label{font-size:15px}
  .af-controls select,.af-controls button{font-size:15px;padding:9px 11px}
  .af-letters{font-size:32px}
  .af-input{width:92%;font-size:26px}
}

/* 0.34x — Anagrammes Flash : ABC permanent + délai + anas visibles */
.af-check{display:flex!important;align-items:center!important;gap:8px!important}
.af-check input{width:20px;height:20px}
.af-anas{
  margin-top:18px;
  padding:12px 16px;
  border:1px solid #5e6871;
  background:#292d31;
  border-radius:8px;
  min-height:48px;
}
.af-anas-title{
  color:#7fdcff;
  font-size:16px;
  font-weight:900;
  margin-bottom:10px;
}
.af-anas-list span{
  background:#171a1d;
  border:1px solid #77818b;
  color:#ffd15c;
  font-weight:900;
  font-size:16px;
  padding:7px 12px;
}
.af-anas-none{
  color:#d2d7dc;
  font-size:15px;
}

/* 0.34z — TE-GAMES / Trinômes Flash */
.tf-inputs{display:flex;flex-direction:column;gap:12px;align-items:center;margin:4px auto 12px}
.tf-input{width:min(500px,82%)}
.tf-solutions{color:#ffc84a;font-size:20px;font-weight:900;letter-spacing:.02em;margin-top:7px}
.tf-continue{margin:12px auto 0;background:#2877ad;color:#fff;border:0;border-radius:6px;padding:10px 24px;font-size:17px;font-weight:800}
.tf-review .af-review-row{text-align:center}
@media(max-width:800px){
  .tf-input{width:94%}
  .tf-solutions{font-size:17px}
}

/* 0.35b — navigation et disposition TE-GAMES */
.game-inline-nav{
  display:flex;
  justify-content:flex-start;
  margin:0 0 10px 0;
}
.game-home-btn{
  background:#2877ad;
  color:#fff;
  border:0;
  border-radius:6px;
  padding:10px 18px;
  font-size:16px;
  font-weight:800;
}
.tf-auto-row{
  flex-basis:100%;
  justify-content:center;
}
@media(max-width:900px){
  .tf-auto-row{flex-basis:auto}
}

/* 0.35d — Trinômes Flash : ligne principale resserrée */
.tf-controls-main{
  justify-content:flex-start;
  gap:8px;
  flex-wrap:nowrap;
  width:100%;
}
.tf-controls-main > label,
.tf-controls-main > button{
  flex:0 0 auto;
}
.tf-controls-main #tfClose{
  margin-left:auto;
}
.tf-controls-main label{
  gap:6px;
}
@media(max-width:1050px){
  .tf-controls-main{
    gap:6px;
    flex-wrap:wrap;
  }
  .tf-controls-main #tfClose{
    margin-left:0;
  }
}

/* 0.35e — Trinômes Flash : nouveautés ODS9 dans les solutions */
.tf-solution-word{
  color:#ffc84a;
  font-weight:900;
}
.tf-solution-word.tf-ods9{
  color:#75e6ff;
  text-shadow:0 0 10px rgba(117,230,255,.18);
}
.tf-solution-word.tf-ods9 small{
  display:inline-block;
  margin-left:4px;
  padding:2px 5px;
  border:1px solid currentColor;
  border-radius:5px;
  font-size:.58em;
  line-height:1;
  vertical-align:middle;
  letter-spacing:.03em;
}
.tf-sep{color:#aeb7bf}

/* 0.35f — Trinômes Flash : ratés plus compacts */
.tf-review .tf-solutions{
  font-size:16px;
  line-height:1.35;
}
.tf-review .tf-solution-word.tf-ods9 small{
  font-size:.55em;
}

/* 0.35g — Trinômes Flash : aucune coche à droite de FERMER */
.tf-controls-main .tf-auto-row{
  flex:0 0 100% !important;
  width:100%;
  justify-content:flex-start !important;
  margin-top:4px;
}
@media(max-width:1050px){
  .tf-controls-main .tf-auto-row{
    flex:0 0 100% !important;
    width:100%;
  }
}

/* 0.35h — correction définitive de la coche après FERMER */
.tf-controls-main .tf-auto-row{display:none!important}
.tf-auto-line{
  display:flex;
  justify-content:center;
  align-items:center;
  width:100%;
  margin:10px 0 0;
}
.tf-auto-line .af-check{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  white-space:nowrap;
}

/* 0.35i — TE-GAMES / Rallonge Express */
.rx-controls-main{
  justify-content:flex-start;
  gap:8px;
  flex-wrap:nowrap;
  width:100%;
}
.rx-controls-main #rxClose{margin-left:auto}
.rx-base{
  color:#ffc84a;
  font-size:42px;
  font-weight:900;
  margin:26px 0 8px;
}
.rx-side{
  color:#ffc84a;
  font-size:22px;
  font-weight:900;
  margin:0 0 18px;
}
.rx-input{width:min(300px,80%)}
.rx-feedback{min-height:72px;margin:18px auto 0;max-width:1100px}
.rx-good{color:#6bd879;font-weight:900;font-size:18px}
.rx-reveal{color:#ffc84a;font-weight:900;font-size:18px}
.rx-solutions{
  margin-top:8px;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:6px;
  font-size:18px;
  font-weight:900;
}
.rx-solution{color:#ffc84a}
.rx-solution.rx-ods9{
  color:#75e6ff;
  text-shadow:0 0 10px rgba(117,230,255,.18);
}
.rx-solution.rx-ods9 small{
  display:inline-block;
  margin-left:4px;
  padding:2px 5px;
  border:1px solid currentColor;
  border-radius:5px;
  font-size:.6em;
  line-height:1;
  vertical-align:middle;
}
.rx-sep{color:#aeb7bf}
.rx-finished{color:#7fdcff;font-weight:800;font-size:18px}
@media(max-width:1050px){
  .rx-controls-main{flex-wrap:wrap}
  .rx-controls-main #rxClose{margin-left:0}
}

/* 0.35j — Rallonge Express multi-réponses */
.rx-count-hint{color:#7fdcff;font-size:18px;font-weight:900;margin:6px 0 2px}
.rx-inputs{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;max-width:820px;margin:0 auto}
.rx-slot{width:110px;min-width:95px;font-size:24px;padding:10px}
.rx-slot-good{border-color:#6bd879!important;color:#6bd879!important}
.rx-slot-bad{border-color:#e46f6f!important}
.rx-slot-duplicate{border-color:#ffc84a!important}
.rx-progress{color:#7fdcff;font-weight:900;font-size:18px}
.rx-solution-groups{margin-top:10px;display:flex;flex-direction:column;gap:8px;align-items:center}
.rx-group{width:min(900px,96%);padding:8px 12px;background:#262a2e;border:1px solid #4d555d;border-radius:7px;text-align:left;color:#dfe4e8}
.rx-group b{display:inline-block;min-width:92px;color:#7fdcff}
@media(max-width:700px){.rx-slot{width:82px;min-width:72px;font-size:20px}.rx-group b{min-width:auto;display:block;margin-bottom:4px}}

/* 0.35k — Rallonge Express : base SC et filtrage des rallonges triviales */
.rx-sc-note{
  margin:-22px 0 12px;
  color:#b8c7d3;
  font-size:14px;
  font-weight:700;
}

/* 0.35m — Rallonge Express : mauvaise saisie clairement en rouge */
.rx-slot-bad{
  border-color:#e46f6f!important;
  color:#ff6b6b!important;
  background:#3a2a2a!important;
  font-weight:900!important;
}
.rx-slot-bad:focus{
  outline:2px solid #ff6b6b!important;
  outline-offset:1px;
}

/* 0.35n — TE-GAMES / Mot Mystère */
.mm-wrap{
  background:#333;
  border-radius:8px;
  min-height:720px;
  padding:26px 24px 40px;
  text-align:center;
}
.mm-controls{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.mm-controls label{display:flex;align-items:center;gap:10px;font-size:18px}
.mm-controls select,.mm-controls button{
  background:#2877ad;color:#fff;border:0;border-radius:5px;padding:10px 16px;font-size:17px;
}
.mm-controls #mmClose{margin-left:18px}
.mm-status{
  color:#62d8ff;
  font-size:19px;
  font-weight:900;
  margin:26px 0 28px;
}
.mm-mask{
  color:#ffc84a;
  font-size:42px;
  font-weight:900;
  letter-spacing:.04em;
  min-height:60px;
  margin-bottom:52px;
}
.mm-info{
  background:#2b2b2b;
  padding:17px 12px;
  font-size:20px;
  font-weight:900;
  color:#f4f4f4;
  margin:0 auto 20px;
  max-width:1000px;
}
.mm-input{
  width:min(600px,88%);
  background:#303337;
  border:2px solid #626971;
  color:#fff;
  border-radius:7px;
  font-size:27px;
  font-weight:800;
  text-align:center;
  padding:13px 16px;
  text-transform:uppercase;
}
.mm-attempt{
  color:#f0f0f0;
  font-size:20px;
  font-weight:900;
  margin-top:22px;
}
.mm-feedback{min-height:48px;margin-top:15px;font-size:20px;font-weight:900}
.mm-notyet,.mm-warn{color:#ffad30}
.mm-found{color:#13d49b}
.mm-lost{color:#ff6b6b}
@media(max-width:800px){
  .mm-controls{gap:9px}
  .mm-controls label{font-size:15px}
  .mm-controls select,.mm-controls button{font-size:15px;padding:9px 11px}
  .mm-mask{font-size:32px;margin-bottom:36px}
  .mm-info{font-size:17px}
  .mm-input{font-size:23px}
}

/* 0.35p — Mot Mystère : consigne claire à la 5e tentative */
.mm-enter-solution{
  margin-top:8px;
  color:#7fdcff;
  font-size:16px;
  font-weight:900;
}

/* 0.35q — TE-GAMES / Mots en Plus */
.mp-wrap{background:#333;border-radius:8px;min-height:760px;padding:24px;text-align:center}
.mp-top{display:flex;align-items:center;justify-content:center;gap:20px;flex-wrap:wrap}
.mp-top button{background:#2877ad;color:#fff;border:0;border-radius:5px;padding:10px 20px;font-size:17px}
.mp-top #mpClose{margin-left:auto}
.mp-top strong{color:#65d9ff}
.mp-table-head,.mp-row{
  display:grid;
  grid-template-columns:220px 230px minmax(420px,1fr);
  gap:14px;align-items:center;
}
.mp-table-head{max-width:980px;margin:24px auto 8px;font-weight:900}
#mpRows{max-width:980px;margin:0 auto}
.mp-row{margin:8px 0}
.mp-draw{color:#ffc84a;font-weight:900;letter-spacing:.18em}
.mp-answer{background:#303337;color:#fff;border:2px solid #5e666e;border-radius:6px;padding:8px 10px;font-size:18px;text-align:center;text-transform:uppercase}
.mp-answer-ok{color:#6bd879!important;font-weight:900}
.mp-answer-helped{color:#ffc84a!important;font-weight:900}
.mp-cells{display:grid;grid-template-columns:repeat(7,1fr);gap:8px}
.mp-cell{height:42px;border-radius:5px;background:#263540;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:18px}
.mp-yellow{background:#9c8316}
.mp-green{background:#23723d}
.mp-finals{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:28px auto 0;max-width:1100px}
.mp-final-box{background:#2b2b2b;padding:14px;border-radius:8px}
.mp-final-title{font-weight:900;font-size:19px;margin-bottom:10px}
.mp-final-box input{width:min(300px,90%);background:#303337;color:#fff;border:2px solid #5e666e;border-radius:6px;padding:9px;font-size:20px;text-align:center;text-transform:uppercase}
.mp-disabled{opacity:.45;pointer-events:none}
.mp-yellow-text{color:#ffc84a}
.mp-green-text{color:#68df82}
.mp-final-ok{color:#68df82!important;font-weight:900}
.mp-final-helped{color:#ffc84a!important;font-weight:900}
.mp-letters{display:flex;justify-content:center;gap:40px;flex-wrap:wrap;margin-top:20px;font-weight:900}
.mp-summary{margin-top:14px;font-weight:900}
.mp-summary-line{margin:5px 0;color:#ffc84a}
.mp-summary-green{color:#68df82}
.mp-summary-yellow{color:#ffc84a}
@media(max-width:900px){
  .mp-table-head,.mp-row{grid-template-columns:1fr}
  .mp-table-head{display:none}
  .mp-row{background:#2b2b2b;padding:12px;border-radius:8px}
  .mp-cells{max-width:520px;margin:0 auto}
  .mp-finals{grid-template-columns:1fr}
  .mp-top #mpClose{margin-left:0}
}

/* 0.35r — Mots en Plus : navigation ligne par ligne */
.mp-answer-bad{
  border-color:#e46f6f!important;
  color:#ff6b6b!important;
  background:#3a2a2a!important;
  font-weight:900!important;
}

/* 0.35s — Mots en Plus : bouton ABC */
#mpABC{
  background:#2877ad;
  color:#fff;
  border:0;
  border-radius:5px;
  padding:10px 16px;
  font-weight:900;
}

/* 0.35u — TE-GAMES / Escalettres */
.esc-wrap{background:#333;border-radius:8px;min-height:760px;padding:24px;text-align:center}
.esc-top{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap}
.esc-top button,.esc-top select{background:#2877ad;color:#fff;border:0;border-radius:5px;padding:10px 16px;font-size:17px}
.esc-top strong{color:#65d9ff}
.esc-top #escClose{margin-left:auto}
.esc-card{max-width:680px;margin:18px auto 0;background:#2b2b2b;border-radius:8px;padding:12px}
.esc-word{color:#ffc84a;font-size:28px;font-weight:900;margin-bottom:14px}
.esc-entry-row{display:grid;grid-template-columns:180px 1fr;gap:20px;align-items:center}
.esc-letter{color:#65d9ff;font-size:22px;font-weight:900;text-align:center}
#escInput{background:#303337;color:#fff;border:2px solid #5e666e;border-radius:6px;padding:10px 12px;font-size:20px;text-transform:uppercase}
.esc-bad{border-color:#e46f6f!important;color:#ff6b6b!important;background:#3a2a2a!important}
.esc-history{margin-top:16px;background:#17191b;min-height:390px;border-radius:6px;padding:14px;text-align:left;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.esc-history-row{display:grid;grid-template-columns:90px 1fr 60px 40px 1fr;gap:12px;padding:3px 0;font-size:18px}
.esc-given{color:#ffb62e}
.esc-ok{color:#fff}
.esc-summary{margin-top:18px;color:#00d38c;font-weight:900;font-size:18px}
.esc-help{margin-top:20px;color:#9cabb8}
@media(max-width:800px){
  .esc-top #escClose{margin-left:0}
  .esc-entry-row{grid-template-columns:1fr}
  .esc-history-row{grid-template-columns:75px 1fr 45px 30px 1fr;font-size:15px;gap:6px}
}

/* 0.35x — Escalettres : bilan et diversité lexicale */
.esc-alone,.esc-arrival{color:#00d38c}
.esc-given-count{color:#ffb62e}

/* NONUPLES 0.35ad */
.non-wrap{background:#303030;color:#e6ebf3;border-radius:10px;padding:18px 12px 34px;text-align:center;min-height:460px}
.non-wrap h3{font-size:clamp(24px,4vw,32px);margin:0 0 8px}.non-wrap p{margin:7px 0 15px;color:#b9d0e7}
.non-wrap .non-explain{color:#ff8585;font-weight:700}
.non-toolbar{display:flex;justify-content:center;align-items:center;gap:22px;margin:18px 0 12px;color:#7ddaff}
.non-toolbar button{background:#2679b3;color:white;border:0;border-radius:6px;padding:12px 18px;cursor:pointer}
.non-table{max-width:940px;margin:auto;background:#292929;border-radius:8px;padding:12px;overflow-x:auto}
.non-head,.non-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(280px,2fr) minmax(140px,1.2fr);gap:12px;align-items:center;min-width:570px}
.non-head{font-weight:800;margin-bottom:12px}.non-row{margin:6px 0}
.non-rack{font-family:monospace;font-size:clamp(13px,1.7vw,19px);font-weight:bold;color:#ffcb48;white-space:nowrap;letter-spacing:1px}
.non-cells{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px}
.non-cell{display:grid;place-items:center;min-height:40px;background:#263746;color:#eef5ff;border-radius:3px;font-weight:800;font-family:monospace;font-size:18px}
.non-cell.non-red{background:#9d222d}.non-cell.non-fixed{background:#96791f;color:#fff}
.non-answer input{width:100%;min-width:0;box-sizing:border-box;background:#303438;color:#fff;border:2px solid #65717b;border-radius:5px;padding:10px 6px;text-align:center;font-weight:bold;font-size:16px;text-transform:uppercase}
.non-answer input.non-invalid{border-color:#ef6767}.non-answer strong{display:block;background:#33383c;border:2px solid #58636c;border-radius:5px;padding:8px 2px;color:#ffd05e}
.non-result{display:block;font-size:12px;margin:3px 0}.non-given{color:#fbbf58}.non-correct{color:#45df9e}
.non-summary{color:#2fe2a5;font-weight:800;margin:18px 0}.non-help{font-size:14px;color:#b5c6d6!important}
@media(max-width:680px){.non-wrap{padding:12px 5px}.non-table{padding:6px}.non-head,.non-row{grid-template-columns:96px 258px 140px;gap:6px}.non-cell{min-height:32px;font-size:14px}}

/* NONUPLES 035ae : solutions révélées en orange, sans score */
.non-answer .non-given{color:#fbbf58}

.non-summary .non-given{color:#ffb83f}.non-given-list{margin-top:12px;font-size:clamp(13px,2vw,17px);overflow-wrap:anywhere}

/* NONUPLES 0.35ai : champs sans filigrane, même en cas de style navigateur. */
.non-answer input::placeholder{color:transparent!important;opacity:0!important}

/* 0.35aj : différencier les réponses trouvées des solutions données. */
.non-answer strong.non-answer-found{color:#54d98a!important}
.non-answer strong.non-answer-given{color:#ffbf43!important}
.non-feedback{font-weight:800;text-align:center;margin:14px 0 4px;min-height:1.2em}
.non-feedback:empty{display:none}
.non-feedback-found{color:#00d99b}
.non-feedback-given{color:#ffb83f}

/* DOUBLE APPUI 7+2 : grille Windows adaptée au mobile */
.da-table{max-width:1050px}
.da-row{grid-template-columns:minmax(110px,1fr) minmax(320px,2.25fr) minmax(150px,1.15fr)}
.da-cells{grid-template-columns:repeat(9,minmax(0,1fr))}
@media(max-width:680px){.da-row{grid-template-columns:96px 300px 140px;gap:6px}}

/* 7 Scrabbles — 0.35am */
.ss-rack-title{text-align:center;color:#dce8f8;font-weight:800;margin-top:16px}
.ss-rack{text-align:center;color:#ffc548;letter-spacing:.3em;font-size:1.45rem;font-weight:800;margin:8px auto 18px}
.ss-table{max-width:1080px;margin:auto;padding:16px}
.ss-row{display:grid;grid-template-columns:minmax(65px,.6fr) minmax(300px,2.5fr) minmax(180px,1.4fr);gap:12px;align-items:center;margin-bottom:8px}
.ss-head{text-align:center;color:#e5edff;font-weight:800}
.ss-appui{color:#ffc548;font-size:1.3rem;font-weight:800;text-align:center}
.ss-cells{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px}
.ss-cells .non-cell{min-width:0}
@media(max-width:650px){.ss-row{grid-template-columns:45px minmax(170px,1fr) minmax(110px,1fr);gap:5px}.ss-table{padding:8px}.ss-cells{gap:2px}.ss-cells .non-cell{font-size:.8rem}}

/* 0.35an — 7 Scrabbles, modèle Windows */
.ss-appui{color:#ff7777!important}.ss-cells .non-cell.ss-fixed{background:#9a7a1b!important;color:#fff!important}
.ss-rack-title{color:#6fd8ff;font-size:1rem}.ss-rack{font-size:1.65rem;letter-spacing:.22em}
.ss-row .non-answer input{background:#30363a;min-width:0}
@media(max-width:850px){.ss-table{overflow-x:auto}.ss-row{min-width:590px;grid-template-columns:55px 340px 175px;gap:8px}}

/* 0.35ap — DOUBLE APPUI V2, grille Windows */
.dv2-instruction{text-align:center;color:#6fd8ff;font-weight:800}
.dv2-rack{text-align:center;color:#77db55;letter-spacing:.24em;font-size:1.65rem;font-weight:800;margin:15px auto}
.dv2-table{max-width:980px;margin:auto;padding:14px}
.dv2-row{display:grid;grid-template-columns:75px minmax(370px,2.6fr) minmax(170px,1.35fr);gap:10px;align-items:center;margin-bottom:6px}
.dv2-appui{text-align:center;color:#f26ab9;font-size:1.25rem;font-family:monospace;font-weight:800}
.dv2-cells{display:grid;grid-template-columns:repeat(9,minmax(0,1fr));gap:4px}
.dv2-cells .non-cell{min-width:0;min-height:36px;background:#2877a5}
.dv2-cells .non-cell.dv2-fixed{background:#c13b82;color:white}
.dv2-cells .non-cell.dv2-complete:not(.dv2-fixed){background:#438f32}
.dv2-row .non-answer input{background:#30363a;min-width:0}
@media(max-width:850px){.dv2-table{overflow-x:auto}.dv2-row{min-width:640px;grid-template-columns:65px 380px 170px;gap:7px}}

/* 0.35aq — Mot 7L SC + 2 appuis */
.m7-instruction{text-align:center;color:#67d5c4;font-weight:800}
.m7-table{max-width:1200px;margin:auto;padding:14px}
.m7-row{display:grid;grid-template-columns:155px 72px minmax(370px,2.5fr) minmax(170px,1.3fr);gap:9px;align-items:center;margin-bottom:6px}
.m7-base{text-align:center;background:#6b3e22;color:#f0a35e;border-radius:4px;font:800 1.15rem monospace;padding:8px 2px}
.m7-pair{text-align:center;background:#168c83;color:#dffff8;border-radius:4px;font:800 1.2rem monospace;padding:8px 2px}
.m7-row .dv2-cells .non-cell{background:#183b56}
.m7-row .dv2-cells .non-cell.m7-fixed{background:#168c83;color:#e9fffb}
.m7-row .dv2-cells .non-cell.m7-complete:not(.m7-fixed){background:#438f32}
@media(max-width:950px){.m7-table{overflow-x:auto}.m7-row{min-width:850px;grid-template-columns:145px 65px 380px 180px;gap:7px}}

/* 0.35ar — Pendu SC */
.pendu-wrap{min-height:610px;text-align:center}.pendu-drawing{height:215px;margin:14px auto 5px;max-width:240px}.pendu-drawing svg{height:100%;width:100%}.pendu-word{display:flex;justify-content:center;flex-wrap:wrap;gap:7px;margin:20px auto 28px}.pendu-tile{display:inline-flex;justify-content:center;align-items:center;background:#233e53;border-bottom:3px solid #70d8fa;color:#fff;width:42px;height:51px;font:700 24px monospace}.pendu-keys{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;max-width:720px;margin:0 auto}.pendu-key{background:#2877ab;color:#fff;border:0;border-radius:5px;font-weight:700;font-size:18px;width:48px;height:44px;cursor:pointer}.pendu-key.pendu-hit{background:#3f9335}.pendu-key.pendu-miss{background:#8b303b}.pendu-key:disabled{opacity:.7;cursor:default}.pendu-status{margin:22px 0;font-size:20px;font-weight:800;min-height:28px}@media(max-width:600px){.pendu-tile{width:29px;height:39px;font-size:18px}.pendu-key{width:38px;height:40px;font-size:16px}.pendu-drawing{height:175px}}

/* 0.35as : Pendu SC, présentation Windows */
.pendu-wrap{min-height:650px}.pendu-toolbar{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:18px;margin:18px auto;color:#77dfff;font-weight:700}.pendu-toolbar #penduProgress{color:#ff88a3}.pendu-toolbar label{color:#c4d0dd}.pendu-toolbar select{background:#2477b3;color:white;padding:9px 12px;border:0;border-radius:5px;font-size:15px}.pendu-columns{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(230px,1fr);gap:16px;margin:12px auto;max-width:1200px;text-align:center}.pendu-play,.pendu-side{background:#222428;border-radius:8px;min-height:380px;padding:24px 12px}.pendu-columns h4{margin:8px 0 18px;color:#c4d0dd}.pendu-word{margin:26px auto 16px;gap:5px}.pendu-tile{background:transparent;border-bottom:3px solid #f5c34b;width:39px;height:48px}.pendu-keys{max-width:480px;gap:5px}.pendu-key{width:43px;height:41px;background:#365673;font-size:15px}.pendu-entry{display:flex;gap:10px;justify-content:center;margin:22px auto}.pendu-entry input{width:160px;max-width:45%;background:#363a3d;color:white;border:2px solid #5e686f;border-radius:5px;padding:9px;text-align:center;font-size:18px}.pendu-entry button,.pendu-side>button{background:#ad506d;color:white;border:0;border-radius:5px;padding:11px 23px;cursor:pointer}.pendu-attempts{color:#b8c8d7;font:14px monospace;margin:15px auto}.pendu-drawing{height:200px;margin:15px auto}.pendu-status{font-size:17px;color:#78e3f6;margin:15px auto}.pendu-side>button{background:#805569;min-width:180px}@media(max-width:720px){.pendu-columns{grid-template-columns:1fr}.pendu-play,.pendu-side{min-height:0}.pendu-tile{width:28px;height:38px}.pendu-key{width:35px;height:37px}.pendu-drawing{height:170px}}

/* 0.35at : sélection lisible, même dans les thèmes Windows */
.pendu-toolbar select{min-width:145px;color:#fff!important;background:#2477b3!important;appearance:auto!important;-webkit-appearance:menulist!important;font-weight:700;}
.pendu-toolbar select option{background:#273a4a!important;color:#fff!important;}


/* ANACROISÉS — repères H/V plus lisibles, version 0.35bc */
.ana-clue b {
  color: #2cddb0 !important;
  font-size: 1.2em !important;
  font-weight: 900 !important;
  letter-spacing: .035em;
  margin-right: .7em;
}
.ana-tile > small {
  color: #087d56 !important;
  font-size: clamp(11px, 1.15vw, 15px) !important;
  font-weight: 900 !important;
  line-height: 1.05;
  letter-spacing: -.025em;
  z-index: 2;
  text-shadow: 0 1px 0 rgba(255,255,255,.6);
}

/* MOTS CROISÉS SC — 0.35bt */
.mc-game{max-width:1080px;margin:0 auto;color:#e8eef4}
.mc-toolbar{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;margin:12px 0 16px}
.mc-toolbar button,.mc-toolbar select{background:#2874a5;color:white;border:1px solid #7bb5d3;border-radius:5px;padding:8px 11px;font-weight:700}
.mc-toolbar strong{width:100%;text-align:center;color:#49d9b7}
.mc-grid{display:grid;max-width:520px;width:100%;aspect-ratio:1;margin:0 auto 15px;gap:2px;background:#263441;padding:3px;border-radius:5px}
.mc-square{position:relative;background:#fff;min-width:0;min-height:0}
.mc-black{background:#182027}
.mc-square small{position:absolute;left:2px;top:1px;z-index:2;color:#187456;font-size:clamp(8px,1.1vw,12px);font-weight:900;pointer-events:none}
.mc-cell{width:100%;height:100%;box-sizing:border-box;border:0;background:transparent;text-align:center;font:bold clamp(15px,2.2vw,28px) monospace;color:#202d38;outline:0;padding:6px 0 0}
.mc-cell.mc-active{background:#e0f2ff}
.mc-cell.mc-correct{background:#d7f1da;color:#17662b}
.mc-cell.mc-revealed{background:#ead3e9;color:#693a8e}
.mc-cell.mc-revealed.mc-active{background:#d9b8dd}
.mc-definition{max-width:800px;margin:10px auto 16px;background:#1b3e5e;border:1px solid #467ca5;border-radius:6px;padding:12px 16px;color:#fff;font-weight:700;min-height:44px}
.mc-lists{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.mc-lists section{min-width:0;background:#202c36;border-radius:6px;padding:10px}
.mc-lists h3{margin:4px 0 10px;text-align:center;color:#75d3f4}
.mc-entry{display:block;width:100%;text-align:left;padding:9px;margin:3px 0;background:#2d3b47;color:#f4f7fa;border:1px solid #4b5d69;border-radius:4px;cursor:pointer;line-height:1.4}
.mc-entry.mc-selected{background:#176b9b;border-color:#79c8ed}
.mc-hint{text-align:center;color:#b4cbd8;font-size:13px}
@media(max-width:650px){.mc-lists{grid-template-columns:1fr}.mc-grid{max-width:95vw}.mc-square small{font-size:8px}}

/* 0.35bw : aide révélée rouge, distincte du vert des réponses trouvées */
.mc-cell.mc-revealed{background:#ffd6d6;color:#992d38}
.mc-cell.mc-revealed.mc-active{background:#ffc0c0;color:#84202a}

/* 0.35by — MOTS CROISÉS : affichage compact, logique de jeu inchangée */
.mc-toolbar{gap:7px;margin:6px 0 9px}
.mc-toolbar button,.mc-toolbar select{padding:6px 10px}
.mc-grid{max-width:440px;margin-bottom:9px}
.mc-square small{font-size:clamp(8px,1vw,11px)}
.mc-cell{font-size:clamp(15px,2vw,25px);padding-top:4px}
.mc-definition{margin:6px auto 9px;padding:8px 12px;min-height:32px;line-height:1.3}
.mc-lists{gap:10px}
.mc-lists section{padding:7px}
.mc-lists h3{margin:2px 0 6px}
.mc-entry{padding:6px 8px;margin:2px 0;line-height:1.3}
@media(max-width:650px){.mc-grid{max-width:min(440px,95vw)}}

/* 0.35bz — ajustement léger pour afficher aussi la ligne d’aide */
.mc-toolbar{margin:4px 0 7px}
.mc-grid{max-width:418px;margin-bottom:7px}
.mc-definition{margin:5px auto 7px;padding:7px 11px}
.mc-lists section{padding:6px}
.mc-lists h3{margin:1px 0 5px}
.mc-entry{padding:5px 8px;margin:2px 0;line-height:1.25}
.mc-hint{margin:6px auto 2px}
@media(max-width:650px){.mc-grid{max-width:min(418px,95vw)}}

/* TE-1 0.36e : panneaux de raccourcis */
.te1-tool-panel{margin:12px 0;padding:14px;border:1px solid #91a9c9;border-radius:12px;background:#f4f8ff;color:#20334e}
.te1-tool-panel.hidden{display:none!important}
.te1-tool-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.te1-tool-head button{font-size:.85rem}
.te1-tool-content{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.te1-tool-content p{flex-basis:100%;margin:3px 0}
.te1-tool-content label{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.te1-tool-content select{max-width:210px}
.te1-tool-note{font-size:.85rem;opacity:.8}

/* 0.36f — choix exact voyelles/consonnes */
.te1-vc-buttons{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.te1-vc-buttons button{min-width:64px;background:#2176ad;color:white;border:0;border-radius:8px;padding:12px 18px;font-weight:700;cursor:pointer}.te1-vc-status:not(:empty){padding:10px 15px;color:#936000;font-weight:700;text-align:center}

/* 0.36g — sélection visible du nombre de voyelles */
.te1-vc-buttons button.selected{background:#0d7be8;color:#fff;outline:3px solid #77b8fa;outline-offset:2px}
#te1VcStartSession{margin-top:12px;padding:12px 24px;font-weight:700}

/* 0.36i — commandes de séance Voyelles / Consonnes */
.te1-vc-session-controls{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin-top:16px}
.te1-vc-session-controls label{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-weight:700}
.te1-vc-session-controls select{min-width:105px;padding:8px 12px;border-radius:9px}
.te1-vc-session-actions{display:flex;flex-wrap:wrap;gap:10px}
.te1-vc-session-actions button{padding:12px 18px;min-width:160px}

/* 0.36j : bouton Arrêter toujours visible pendant une séance V/C */
.te1-vc-status{display:flex;justify-content:center;align-items:center;gap:14px;flex-wrap:wrap}
#te1VcStopPersistent{padding:9px 20px;border-radius:9px;cursor:pointer}
#te1VcStopPersistent:disabled{opacity:.45;cursor:not-allowed}

/* 0.36k — boutons V/C harmonisés : bleu démarrer, rouge arrêter */
.te1-vc-session-actions{align-items:stretch;gap:12px}
.te1-vc-session-actions button{display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:190px;padding:12px 20px;border:0;border-radius:10px;color:#fff;font-size:1rem;font-weight:700;box-shadow:0 3px 0 rgba(0,0,0,.16);cursor:pointer;transition:filter .15s ease,transform .15s ease}
.te1-vc-session-actions .te1-vc-start-button{background:#0d7be8;color:white}
.te1-vc-session-actions .te1-vc-stop-button,#te1VcStopPersistent.te1-vc-stop-button{background:#d93636;color:white;border:0;border-radius:10px;font-weight:700;box-shadow:0 3px 0 rgba(0,0,0,.16)}
.te1-vc-session-actions button:hover:not(:disabled),#te1VcStopPersistent:hover:not(:disabled){filter:brightness(1.07)}
.te1-vc-session-actions button:active:not(:disabled),#te1VcStopPersistent:active:not(:disabled){transform:translateY(1px)}
.te1-vc-session-actions button:disabled,#te1VcStopPersistent:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
@media(max-width:520px){.te1-vc-session-actions button{min-width:0;flex:1 1 160px}}

/* 0.36l : bouton Arrêter unique, compact et ABC permanent visible */
.te1-vc-session-actions .te1-vc-stop-button{min-width:0;padding:10px 18px;min-height:44px;font-size:.95rem;flex:0 0 auto}
.te1-vc-session-actions .te1-vc-start-button{min-width:0;padding:12px 20px}
#abcDraw.abc-permanent-on{background:#0d7be8;color:#fff;border-color:#0965c2;box-shadow:0 0 0 2px rgba(13,123,232,.22)}

/* 0.36m : Arrêter même hauteur que Démarrer ; Nouveau tirage masqué (Suivant reste disponible) */
.te1-vc-session-actions .te1-vc-stop-button{min-height:48px;padding-top:12px;padding-bottom:12px;align-self:stretch}
#newDraw{display:none!important}

/* 0.36n — boutons de séance V/C : hauteur rigoureusement identique */
.te1-vc-session-actions{align-items:center}
.te1-vc-session-actions #te1VcStartSession,
.te1-vc-session-actions #te1VcStopSession{box-sizing:border-box;height:64px;min-height:64px;max-height:64px;margin:0;padding:0 22px;align-self:center;line-height:1.2;display:inline-flex;align-items:center;justify-content:center}
.te1-vc-session-actions #te1VcStopSession{padding-left:20px;padding-right:20px}

/* TE-1 0.36t : palette Windows */
.te1-v21-tools button{background:#2875ad;color:white;border-color:transparent}
.te1-v21-tools [data-te1-tool="entrainement-benjamins"],.te1-v21-tools [data-te1-tool="super-benjamins"]{background:#9256ad;color:white}
.te1-v21-tools [data-te1-mode="Surprise"]{background:#be7135;color:white}
.te1-v21-tools [data-te1-tool="entrainement-lc"],.te1-v21-tools [data-te1-special="semi"]{background:#967122;color:white}
.te1-v21-tools [data-te1-special="three"]{background:#856032;color:white}
.te1-v21-tools [data-te1-special="two"]{background:#667c45;color:white}
.te1-v21-tools [data-te1-special="one"]{background:#578139;color:white}
.te1-v21-tools .te1-special-active{outline:3px solid #e8b14c;outline-offset:2px}
.te1-lc-memo{display:inline-block;background:#2679b9;color:white;border-radius:7px;padding:7px;margin-top:5px}.te1-lc-memo[hidden]{display:none}
.te1-lc-dialog{max-width:min(94vw,780px);border:1px solid #9aaabd;border-radius:15px;padding:25px;color:#102b4b;background:#f7fafc}.te1-lc-dialog::backdrop{background:#101d30aa}.te1-lc-letters,.te1-lc-rules{display:flex;gap:14px;flex-wrap:wrap;margin:20px 0}.te1-lc-letters label,.te1-lc-rules label{padding:8px;border-radius:7px;background:#e4edf5}.te1-lc-dialog input{accent-color:#2679b9}

/* TE-1 0.36v : bilan final de séance */
.te1-final-overlay{position:fixed;inset:0;z-index:99999;background:#111b2bc9;display:flex;align-items:center;justify-content:center;padding:18px}.te1-final-overlay.hidden{display:none}.te1-final-dialog{width:min(940px,96vw);max-height:92vh;overflow:auto;background:#fff;color:#163152;border-radius:18px;padding:24px;box-shadow:0 18px 55px #0005}.te1-final-dialog h2{text-align:center;margin:0 0 18px}.te1-final-rounds{max-height:45vh;overflow:auto;background:#eef4fa;border-radius:10px;padding:12px;margin:16px 0;white-space:pre-wrap;font:14px/1.5 ui-monospace,monospace}.te1-final-actions{display:flex;flex-wrap:wrap;gap:8px}.te1-final-actions button{flex:1;min-width:150px;color:white;background:#2679b9;padding:12px;border:0;border-radius:8px;cursor:pointer}.te1-final-actions button:nth-child(2){background:#98558d}.te1-final-actions button:nth-child(3){background:#b7752e}.te1-final-actions button:nth-child(4){background:#923b3b}.te1-session-hint{font-size:12px;color:#53708b}

/* 0.36w — commandes locales visibles pour les quatre entraînements spécialisés */
.te1-special-session{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:12px 0;padding:14px;background:#eaf3fc;border:1px solid #bdd6ef;border-radius:12px;color:#173653}
.te1-special-session.hidden{display:none!important}.te1-special-session label{display:flex;align-items:center;gap:8px;font-weight:700}.te1-special-session select{padding:9px;border:1px solid #b4cde5;border-radius:8px;background:white;color:#174a78}
.te1-special-session button{padding:11px 18px;border:0;border-radius:9px;background:#1478d3;color:white;font-weight:700;cursor:pointer}
#te1SpecialStop{background:#b05c34}#te1SpecialProgress{font-weight:700;color:#20517d}

/* 0.37 — filtres experts */
.te1-expert-criteria{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:14px 0}
.te1-expert-criteria label{display:flex;flex-direction:column;gap:6px;font-weight:600}
.te1-expert-criteria input{width:100%;min-width:0;padding:11px;border:1px solid #aac7e7;border-radius:10px;background:#fff;color:#123}
.te1-expert-actions{display:flex;flex-wrap:wrap;gap:10px;margin:14px 0}
.te1-expert-actions button{min-width:110px}

/* 0.37b : commandes des seances specialisees sur la ligne du dictionnaire */
.selectors-row{align-items:center}
.selectors-row #te1SpecialSession{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0;padding:0;background:transparent;border:0;border-radius:0}
.selectors-row #te1SpecialSession label{font-size:.9rem;color:#35536f}
.selectors-row #te1SpecialSession select{min-width:80px}
@media(max-width:750px){.selectors-row #te1SpecialSession{width:100%;gap:8px}}

/* 0.37c : longueur des tirages sur la ligne dictionnaire / séance */
.selectors-row #te1LengthQuick{min-width:68px;padding:9px;border:1px solid #b4cde5;border-radius:8px;background:#fff;color:#174a78}

/* 0.37c-r1 : commandes de séance visibles sur la ligne des sélecteurs */
.selectors-row #te1SpecialSession{display:flex!important;gap:8px;flex-wrap:nowrap}
.selectors-row #te1SpecialSession button{padding:9px 12px;white-space:nowrap}
.selectors-row #te1SpecialProgress{font-size:.82rem;white-space:nowrap}
@media(max-width:750px){.selectors-row #te1SpecialSession{flex-wrap:wrap}}

/* 0.37bk — module Entraînement Benjamins autonome */
.tb-dialog{width:min(1000px,96vw);max-height:94vh;border:1px solid #526579;border-radius:15px;padding:22px;background:#242424;color:#eef4ff;box-shadow:0 18px 55px #0009}
.tb-dialog::backdrop{background:#07111ac9}
.tb-dialog h2{text-align:center;font-size:29px;margin:5px 0 18px}
.tb-dialog p{text-align:center}
.tb-controls{display:flex;gap:15px;align-items:center;justify-content:center;flex-wrap:wrap;background:#303030;padding:15px;border-radius:8px}
.tb-controls label{display:flex;gap:9px;align-items:center}
.tb-dialog select,.tb-dialog button{background:#2471a9;color:white;border:0;border-radius:6px;padding:10px 16px;font-size:16px;cursor:pointer}
#tbStatus{text-align:center;color:#69d5f8;font-weight:700;margin:20px}
#tbBase{text-align:center;color:#ffd166;font-size:34px;letter-spacing:2px}
#tbAnswers{max-width:640px;margin:16px auto;display:grid;gap:9px}
.tb-answer{display:flex;align-items:center;gap:12px}
.tb-answer span{width:25px;text-align:right}
.tb-answer input{width:100%;padding:12px 15px;text-align:center;border:2px solid #60707c;border-radius:7px;background:#353535;color:white;font-size:18px}
.tb-answer input.tb-correct{border-color:#35b871;color:#85f1b0}
.tb-answer input.tb-wrong{border-color:#ed6060}
.tb-answer input.tb-revealed{border:2px solid #ffcb54;color:#fff}
#tbMessage{text-align:center;min-height:32px;margin:16px}
.tb-actions{display:flex;justify-content:center;gap:15px;margin-top:35px;flex-wrap:wrap}
.tb-report pre{white-space:pre-wrap;overflow:auto;max-height:65vh;background:#1c1c1c;padding:18px;font-size:15px}
#tbReportClose{display:block;margin:15px auto}

/* SuperBenjamins — même interface que l'Entraînement Benjamins */
.sb-dialog{width:min(1000px,96vw)}.sb-fixed{text-align:center;color:#ffd166;font-size:36px;letter-spacing:4px;margin:15px}.sb-letters{text-align:center;color:#8ce5ff;font-weight:700;font-size:29px;letter-spacing:6px;margin:16px}.sb-status{text-align:center;color:#69d5f8;font-weight:700;margin:18px}#sbAnswers{max-width:680px;margin:18px auto;display:grid;gap:10px}#sbMessage{text-align:center;min-height:30px;margin:18px}
/* 0.37bs : présentation Windows Surprise */
.sw-dialog{background:#242424;color:#eaf0ff;border:1px solid #4b5563;border-radius:12px;width:min(98vw,1400px);height:min(96vh,1050px);max-width:none;max-height:none;padding:22px 24px 16px;text-align:center;box-sizing:border-box;position:fixed;overflow:auto}
.sw-dialog::backdrop{background:rgba(0,0,0,.72)}.sw-dialog h2{font-size:clamp(27px,3vw,40px);margin:0 0 8px;color:#eaf0ff}.sw-sub{font-size:15px;color:#a9c0dc;margin:0 0 22px}.sw-controls{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:20px;background:#303030;padding:14px 20px;border-radius:8px}.sw-controls label{display:flex;align-items:center;gap:10px;font-size:15px}.sw-dialog select,.sw-dialog button{background:#2877b5;color:white;border:0;border-radius:5px;padding:11px 15px;font-size:16px;cursor:pointer}.sw-status{color:#75dcff;font-size:18px;font-weight:700;margin:22px 0 14px}.sw-kind{color:#ffa93a;font-size:25px;font-weight:700;margin:12px}.sw-prompt{color:#ffd06b;font-size:clamp(28px,3vw,42px);font-weight:800;letter-spacing:.13em;margin:14px 0}.sw-hint{font:700 19px monospace;color:#f2f4fb;min-height:25px}.sw-answers{display:flex;flex-direction:column;gap:9px;align-items:center;margin:25px auto 16px}.sw-answer{width:min(560px,90%);box-sizing:border-box;text-align:center;background:#35383a;color:white;border:2px solid #60666a;border-radius:6px;padding:12px;font:700 23px monospace}.sw-answer.sw-revealed{border-color:#ffce5e;color:#fff}.sw-answer.sw-good{border-color:#29b85e;color:#a7ffbf}.sw-answer.sw-wrong{border-color:#ef5350;color:#ffd2d2}.sw-message{font:17px monospace;color:#eaf0ff;min-height:60px}.sw-actions{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;position:sticky;bottom:0;background:#242424;padding:14px}.sw-report pre{white-space:pre-wrap;text-align:left;font-size:18px;line-height:1.5;background:#1c1c1c;padding:16px;max-height:65vh;overflow:auto}

/* 0.37bu — présentation SuperBenjamin fidèle à Windows */
.sw-fixed-line{font:700 clamp(25px,3vw,40px) monospace;color:#ffd06b;letter-spacing:normal;margin:12px 0 10px}.sw-letters-line{font:700 clamp(18px,2.1vw,28px) monospace;color:#f2f4fb;letter-spacing:normal;margin:0 0 8px}.sw-prompt:has(.sw-fixed-line){letter-spacing:normal}

/* 0.37bw */
.tr-dialog{width:min(1280px,97vw)}.tr-direction{text-align:center;color:#ffb347;font-size:22px;margin:15px}.tr-dialog .tb-controls{flex-wrap:wrap}.tr-dialog #trAnswers{max-width:780px;margin:15px auto;max-height:38vh;overflow:auto}.tr-dialog #trMessage{text-align:center;min-height:24px;color:#8fe3ff}.tr-dialog .tb-answer input{min-width:250px}


/* 0.37dl — TE-LEX style Windows V2.1, exclusivement dans l'écran TE-LEX */
#telex{background:#242424;color:#e8edf4;font-family:Arial, sans-serif;padding:8px 14px 22px;min-height:100vh}
#telex .topbar{background:#292929;color:#f7c85c;border:0;border-radius:0;padding:6px 8px;margin-bottom:10px}
#telex .topbar h1{color:#ffd16c;font-size:30px;letter-spacing:.01em}
#telex .topbar .build-badge{color:#8ed9ff;background:#303030;border:1px solid #555}
#telex .topbar .ghost{background:#333;color:#dce6f4;border-color:#555}
#telex .mode-panel,#telex .play-card,#telex .solutions-card,#telex .lex-tool-panel{background:#2d2d2d;color:#e9edf3;border:0;box-shadow:none;border-radius:5px}
#telex .telex-filters{padding:15px 14px 10px}
#telex .telex-title-row strong{color:#ffcd65;font-size:23px}
#telex .muted{color:#b4c1d0}
#telex .telex-grid{gap:12px;margin-top:12px}
#telex .telex-grid label{color:#dce5f1;font-size:13px}
#telex input,#telex select{background:#37393b;color:#f0f4fa;border:2px solid #585e63;border-radius:5px}
#telex input::placeholder{color:#aab2bb}
#telex .telex-grid input,#telex .telex-grid select{padding:8px 9px}
#telex button{border-radius:5px}
#telex .lex-actions{display:flex;gap:10px;max-width:none;margin-top:12px}
#telex .lex-actions button{min-height:38px;padding:8px 22px;flex:0 1 170px;font-size:14px}
#telex #lexSearch{background:#278b55;color:#fff}
#telex #lexClear{background:#236eab;color:#fff}
#telex #lexStatus{background:transparent;color:#ffcb59;border:0;font-weight:700;padding:9px 0}
#telex .lex-v21-tools{gap:7px;margin-top:6px}
#telex .lex-v21-tools button{font-size:12px;font-weight:700;padding:8px 10px;min-height:33px;border:0}
#telex .telex-workspace{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,340px);gap:12px;margin-top:10px}
#telex .telex-workspace .play-card,#telex .telex-analysis-card{padding:12px}
#telex .telex-workspace strong{color:#ffd16c}
#telex .telex-results{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));align-content:start;gap:0 8px;max-height:65vh;overflow:auto;background:#1d1e1f;border:1px solid #42474b;border-radius:4px;padding:8px 10px}
#telex .telex-results .length-head{grid-column:1/-1;background:transparent;color:#e2e9f1;font:700 13px Consolas,monospace;letter-spacing:.04em;padding:8px 0 6px;border-bottom:1px solid #545454;margin-bottom:5px}
#telex .telex-results .lex-word{display:block;min-width:0;width:100%;background:transparent!important;border:0;text-align:left;padding:3px 1px;color:#e8edf4;font:13px Consolas,monospace;line-height:1.25}
#telex .telex-results .lex-word b{font-weight:400;letter-spacing:0;overflow-wrap:anywhere}
#telex .telex-results .lex-word span{display:none}
#telex .telex-results .lex-word:hover{background:#36536d!important;color:#fff}
#telex .telex-results .lex-word.mattel-forbidden b{color:#ff7474}
#telex .telex-results .empty{grid-column:1/-1;color:#bfcbd6}
#telex .telex-analysis-card button{font-size:12px;padding:8px}
#telex .telex-analysis-card input{color:#fff}
#telex .telex-analysis-card .analysis-input-row{gap:6px}
@media(max-width:1100px){#telex .telex-results{grid-template-columns:repeat(6,minmax(0,1fr))}#telex .telex-workspace{grid-template-columns:minmax(0,1fr) minmax(270px,320px)}}
@media(max-width:800px){#telex .telex-workspace{grid-template-columns:1fr}#telex .telex-results{grid-template-columns:repeat(5,minmax(0,1fr))}#telex .telex-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){#telex .telex-results{grid-template-columns:repeat(3,minmax(0,1fr))}#telex .lex-actions button{flex:1}#telex .topbar h1{font-size:24px}}

/* 0.37dm: priorité explicite au rendu TE-LEX Windows sur PC */
@media(min-width:1000px){
 body:has(#telex.active){background:#242424!important}
 body:has(#telex.active) .shell{max-width:none!important;width:100%!important;padding:0!important;margin:0!important;background:#242424!important}
 #telex.active{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:8px 14px!important;background:#242424!important;color:#e9edf3!important}
 #telex.active .telex-workspace{display:flex!important;flex-direction:column!important}
 #telex.active .telex-workspace>.play-card{width:100%!important;max-width:none!important}
 #telex.active .telex-workspace>.telex-analysis-card{order:-1;width:100%!important;max-width:none!important}
 #telex.active .telex-results{display:grid!important;grid-template-columns:repeat(8,minmax(0,1fr))!important;max-height:65vh!important}
 #telex.active .telex-results .lex-word{display:block!important;background:transparent!important;color:#e9edf3!important}
 #telex.active .telex-filters,#telex.active .play-card,#telex.active .telex-analysis-card{background:#292929!important;color:#e9edf3!important;border-color:#333!important;box-shadow:none!important}
}

/* 0.37eb — Explorateur ODS : lisibilité du bandeau en thème clair.
   Styles strictement ciblés : aucun changement de logique ni de navigation. */
body.lex-clair #telex #lexOdsPanel .ods-library-toolbar label,
body.lex-clair #telex #lexOdsPanel .ods-filter-row label,
body.lex-clair #telex #lexOdsPanel .ods-quick-row > strong {
  color: #ffffff !important;
}
body.lex-clair #telex #lexOdsPanel .ods-library-toolbar input,
body.lex-clair #telex #lexOdsPanel .ods-library-toolbar select,
body.lex-clair #telex #lexOdsPanel .ods-filter-row input,
body.lex-clair #telex #lexOdsPanel .ods-filter-row select {
  background: #ffffff !important;
  color: #173452 !important;
  -webkit-text-fill-color: #173452 !important;
  border: 1px solid #c8def3 !important;
}
body.lex-clair #telex #lexOdsPanel select option {
  background: #ffffff;
  color: #173452;
}

/* 0.37ei — Débuts/Finales en série : contraste du thème sombre uniquement. */
body:not(.lex-clair) #lexV21Panel .series-group{background:#202123!important;border-color:#444a50!important;color:#eef2f7!important}
body:not(.lex-clair) #lexV21Panel .series-group summary{background:#34383d!important;color:#f2f5fa!important;border-color:#4a5056!important}
body:not(.lex-clair) #lexV21Panel .series-group summary b{color:#f2f5fa!important;-webkit-text-fill-color:#f2f5fa!important}
body:not(.lex-clair) #lexV21Panel .series-group[open] summary{background:#414b55!important}
body:not(.lex-clair) #lexV21Panel .series-word-grid{background:#202123!important}
body:not(.lex-clair) #lexV21Panel .series-word-grid button{background:#30363c!important;color:#f0f4fa!important;border-color:#505962!important;-webkit-text-fill-color:#f0f4fa!important}
body:not(.lex-clair) #lexV21Panel .series-word-grid button:hover{background:#375a74!important}
body:not(.lex-clair) #lexV21Panel .series-windows-footer{background:#292929!important;color:#f0f4fa!important;border-top:1px solid #494949!important;padding:10px 4px!important}

/* 0.37en — Haut rendement : fenêtre plein écran, tableau sombre lisible */
#telex #lexV21Panel.hy-fullscreen{position:fixed!important;inset:0!important;z-index:10000!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;box-sizing:border-box!important;overflow:hidden!important;margin:0!important;padding:18px 22px!important;border:0!important;border-radius:0!important;background:#262626!important;color:#f0f4f8!important;display:flex!important;flex-direction:column!important;gap:10px!important}
#telex #lexV21Panel.hy-fullscreen #lexV21Title{color:#ffd15b!important;font-size:1.4rem!important}
#telex #lexV21Panel.hy-fullscreen #lexV21Subtitle{color:#d0d9e2!important}
#telex #lexV21Panel.hy-fullscreen #lexV21Body{min-height:0!important;flex:1!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#telex #lexV21Panel.hy-fullscreen .tool-return-row{display:none!important}
#telex #lexV21Panel.hy-fullscreen .hy-controls{flex-shrink:0!important;align-items:end!important;gap:12px!important;padding:12px!important;border-radius:8px!important;background:#303030!important}
#telex #lexV21Panel.hy-fullscreen .hy-controls label{color:#f0f4f8!important}
#telex #lexV21Panel.hy-fullscreen .hy-controls select{background:#286a9c!important;color:white!important;border:1px solid #397dad!important}
#telex #lexV21Panel.hy-fullscreen #hyStatus{flex-shrink:0!important;background:#303030!important;color:#7bdcff!important;text-align:center!important;padding:10px!important;border-radius:6px!important}
#telex #lexV21Panel.hy-fullscreen .hy-table-wrap{flex:1!important;min-height:0!important;max-height:none!important;overflow:auto!important;background:#1d1d1d!important;border:1px solid #444!important;border-radius:6px!important}
#telex #lexV21Panel.hy-fullscreen .hy-table{color:#f1f4f8!important;background:#1d1d1d!important}
#telex #lexV21Panel.hy-fullscreen .hy-table thead th{background:#343434!important;color:#ffdc83!important;border-bottom:1px solid #5b5b5b!important}
#telex #lexV21Panel.hy-fullscreen .hy-table td{background:#202020!important;color:#f1f4f8!important;border-bottom:1px solid #373737!important}
#telex #lexV21Panel.hy-fullscreen .hy-table tbody tr:nth-child(even) td{background:#292929!important}
#telex #lexV21Panel.hy-fullscreen .hy-table .hy-word{color:#8bd7ff!important;cursor:pointer!important}
#telex #lexV21Panel.hy-fullscreen #lexV21Close{background:#286a9c!important;color:#fff!important;border:1px solid #4d8fbd!important}
@media(max-width:700px){#telex #lexV21Panel.hy-fullscreen{padding:10px!important}#telex #lexV21Panel.hy-fullscreen .hy-controls{gap:8px!important}}

/* 0.37eo — Entraînement Appuis en plein écran */
#telex #lexV21Panel.hy-training-fullscreen{position:fixed!important;inset:0!important;z-index:10000!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;box-sizing:border-box!important;overflow:hidden!important;margin:0!important;padding:18px 22px!important;border:0!important;border-radius:0!important;background:#262626!important;color:#f0f4f8!important;display:flex!important;flex-direction:column!important;gap:12px!important}
#telex #lexV21Panel.hy-training-fullscreen #lexV21Title{color:#ffd15b!important;text-align:center!important;font-size:1.6rem!important}
#telex #lexV21Panel.hy-training-fullscreen #lexV21Subtitle{color:#d0d9e2!important;text-align:center!important}
#telex #lexV21Panel.hy-training-fullscreen #lexV21Body{min-height:0!important;flex:1!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-controls{flex-shrink:0!important;background:#303030!important;padding:12px!important;border-radius:8px!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-controls label{color:#f4f6f8!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-controls select{background:#286a9c!important;color:#fff!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-prompt{color:#82d7ff!important;font-size:2.3rem!important;flex-shrink:0!important;margin:20px 0!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-answer-label{color:#f4f6f8!important;flex-shrink:0!important}
#telex #lexV21Panel.hy-training-fullscreen #hytAnswer{background:#30343a!important;color:#fff!important;border:2px solid #4b9ee0!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-status{background:#1d1d1d!important;color:#f4f6f8!important;border:1px solid #3d3d3d!important;flex:1!important;min-height:0!important;overflow:auto!important;white-space:normal!important;line-height:1.8!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-sol-heading{color:#ffcf68!important;font-weight:800!important;margin-top:12px!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-sol-sc{color:#79e29b!important;font-size:1.1rem!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-sol-conj{color:#d1a3ff!important;font-size:1.1rem!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-hint{text-align:center!important;color:#80ceff!important;flex-shrink:0!important;padding:10px!important}
#telex #lexV21Panel.hy-training-fullscreen #lexV21Close{background:#286a9c!important;color:#fff!important}
@media(max-width:700px){#telex #lexV21Panel.hy-training-fullscreen{padding:10px!important}#telex #lexV21Panel.hy-training-fullscreen .hyt-prompt{font-size:1.5rem!important}}

/* 0.37ew: appuis +3 dans une zone défilante indépendante ; tirage et solutions toujours visibles. */
#telex #lexV21Panel.hy-training-fullscreen #hytAvailable.hyt-available-scroll{
  flex:0 1 auto!important;min-height:36px!important;max-height:152px!important;
  overflow-y:auto!important;overscroll-behavior:contain!important;
  scrollbar-width:thin;scrollbar-color:#5d9fc4 #303030;
  border:1px solid #414141;border-radius:8px;padding:7px 8px!important;
  box-sizing:border-box;line-height:1.8!important;
}
#telex #lexV21Panel.hy-training-fullscreen .hyt-prompt{margin:8px 0!important}
#telex #lexV21Panel.hy-training-fullscreen #hytAnas{flex-shrink:0!important;margin:0 0 4px!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-answer-label{margin:6px 0!important}
#telex #lexV21Panel.hy-training-fullscreen .hyt-status{min-height:110px!important}
@media(max-height:720px){#telex #lexV21Panel.hy-training-fullscreen #hytAvailable.hyt-available-scroll{max-height:108px!important}}

/* 0.37ez : anagrammes SC discrets sous le tirage */
.missed-anas{text-align:center;font-size:14px;color:#b8c5d0;margin-top:-30px;margin-bottom:24px;line-height:1.5}

/* 0.37fb : TE-LEX Surprise et Competition en plein ecran */
#telex #lexV21Panel.surprise-fullscreen-fa,#telex #lexV21Panel.competition-fullscreen-fb{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;z-index:99990!important;overflow-y:auto!important;box-sizing:border-box!important;margin:0!important;padding:24px 28px!important;background:#222!important;border:0!important;border-radius:0!important;color:#f4f4f4!important;}
#telex #lexV21Panel.surprise-fullscreen-fa .surprise-sc-anas,#telex #lexV21Panel.competition-fullscreen-fb .competition-review-anas{font-size:14px;color:#c8d7e4;text-align:center;margin:8px auto 18px;max-width:850px;line-height:1.5;}
#telex #lexV21Panel.surprise-fullscreen-fa .surprise-sc-anas.hidden,#telex #lexV21Panel.competition-fullscreen-fb .competition-review-anas.hidden{display:none!important;}

/* 0.37fj — Mes mots noirs et Revision intelligente : vrai plein ecran */
#telex #lexV21Panel.black-fullscreen-fj{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;z-index:99990!important;overflow-y:auto!important;box-sizing:border-box!important;margin:0!important;padding:24px 28px!important;background:#222!important;border:0!important;border-radius:0!important;color:#f4f4f4!important;}
#telex #lexV21Panel.black-fullscreen-fj .black-review-letters{text-align:center;}
#telex #lexV21Panel.black-fullscreen-fj .black-review-actions{justify-content:center;flex-wrap:wrap;}

/* 0.37fk : affichage plein écran Mix et Accueil Pro */
#telex #lexV21Panel.mix-fullscreen-fk,#telex #lexV21Panel.pro-fullscreen-fk{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;z-index:99990!important;overflow-y:auto!important;box-sizing:border-box!important;margin:0!important;padding:24px 28px!important;background:#222!important;border:0!important;border-radius:0!important;color:#f4f4f4!important;}
#telex #lexV21Panel.mix-fullscreen-fk.hidden,#telex #lexV21Panel.pro-fullscreen-fk.hidden{display:none!important;}

/* 0.37fl : ecrans TE-LEX portes directement dans body */
body > #lexV21Panel.mix-fullscreen-fk,body > #lexV21Panel.pro-fullscreen-fk{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;z-index:2147483000!important;overflow-y:auto!important;box-sizing:border-box!important;margin:0!important;padding:24px 28px!important;background:#222!important;border:0!important;border-radius:0!important;color:#f4f4f4!important;transform:none!important;}
body > #lexV21Panel.mix-fullscreen-fk.hidden,body > #lexV21Panel.pro-fullscreen-fk.hidden{display:none!important;}
body > #lexV21Panel.mix-windows-theme #lexV21Title{color:#ffc84a!important;}
body > #lexV21Panel.mix-windows-theme #lexV21Subtitle{color:#f4f4f4!important;}

/* 0.37fn : priorite au plein ecran du Mix, configuration et tirages */
body > #lexV21Panel.mix-fullscreen-fk:not(.hidden){position:fixed!important;inset:0!important;display:block!important;width:100vw!important;height:100dvh!important;min-height:100dvh!important;max-width:none!important;max-height:none!important;z-index:2147483000!important;overflow-y:auto!important;transform:none!important;background:#222!important;margin:0!important;box-sizing:border-box!important;}

/* 0.37fp : export Mix visible, style cohérent avec les boutons Web */
#mixExportTxt.mix-export-blue {background:#2877ad!important;color:#fff!important;border:1px solid #79a5c5!important;opacity:1!important;cursor:pointer!important;min-width:220px;}
#mixExportTxt.mix-export-blue:hover {background:#358ac3!important;}

/* 0.37fq: full screen after launching from Accueil Pro */
body > #lexV21Panel.black-fullscreen-fj:not(.hidden),
body > #lexV21Panel.competition-fullscreen-fb:not(.hidden),
body > #lexV21Panel.surprise-fullscreen-fa:not(.hidden){
 position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;max-width:none!important;z-index:2147483000!important;overflow-y:auto!important;box-sizing:border-box!important;margin:0!important;padding:24px 28px!important;background:#222!important;border:0!important;transform:none!important;display:block!important;
}
body > #lexV21Panel.black-fullscreen-fj.hidden,body > #lexV21Panel.competition-fullscreen-fb.hidden,body > #lexV21Panel.surprise-fullscreen-fa.hidden{display:none!important;}

/* 0.37fr : styles après déplacement du panneau dans document.body */
body > #lexV21Panel.black-fullscreen-fj{color:#f4f4f4!important;}
body > #lexV21Panel.black-fullscreen-fj .black-review-counter,
body > #lexV21Panel.black-fullscreen-fj .black-review-difficulty{color:#f4f4f4!important;text-align:center!important;}
body > #lexV21Panel.black-fullscreen-fj .black-review-letters{color:#ffdb54!important;text-align:center!important;font-size:58px!important;font-weight:800!important;letter-spacing:2px!important;}
body > #lexV21Panel.black-fullscreen-fj .black-review-answer{color:#75d58b!important;text-align:center!important;}
body > #lexV21Panel.black-fullscreen-fj .black-review-definition{color:#e6e6e6!important;text-align:center!important;margin:5px auto 15px!important;max-width:1000px!important;}
body > #lexV21Panel.black-fullscreen-fj .black-review-actions{display:flex!important;justify-content:center!important;gap:18px!important;flex-wrap:wrap!important;}
body > #lexV21Panel.black-fullscreen-fj .black-review-actions button{color:white!important;}
body > #lexV21Panel.surprise-fullscreen-fa .surprise-sc-anas,
body > #lexV21Panel.competition-fullscreen-fb .competition-review-anas{display:block;text-align:center!important;max-width:850px!important;margin:8px auto 18px!important;font-size:14px!important;color:#c8d7e4!important;line-height:1.5!important;}
body > #lexV21Panel.surprise-fullscreen-fa .surprise-sc-anas.hidden,
body > #lexV21Panel.competition-fullscreen-fb .competition-review-anas.hidden{display:none!important;}
body > #lexV21Panel.black-fullscreen-fj #lexV21Title{color:#ffdb54!important;text-align:center!important;}

/* 0.37ft : thème sombre uniquement pour l'entraînement Carnet TE-1. */
body.te1-carnet-dark{background:#222!important;color:#f2f2f2!important}
body.te1-carnet-dark #te1{color:#f2f2f2}
body.te1-carnet-dark #te1 .status-card,body.te1-carnet-dark #te1 .play-card,body.te1-carnet-dark #te1 .solutions-card,body.te1-carnet-dark #te1 .mode-panel,body.te1-carnet-dark #te1 .prompt-card{background:#292929!important;border-color:#515151!important;color:#f2f2f2!important;box-shadow:none!important}
body.te1-carnet-dark #te1 .muted,body.te1-carnet-dark #te1 .answer-num,body.te1-carnet-dark #te1 .selectors-row label{color:#d7d7d7!important}
body.te1-carnet-dark #te1 .tile{background:#f3cb68!important;color:#191919!important}
body.te1-carnet-dark #te1 .answer{background:#333!important;color:#f5f5f5!important;border-color:#777!important}
body.te1-carnet-dark #te1 .answer.locked{background:#203b29!important;color:#6ee18b!important;border-color:#47a668!important}
body.te1-carnet-dark #te1 .answer.revealed{background:#46282a!important;color:#ff9b9b!important}
body.te1-carnet-dark #te1 .feedback.neutral{background:#353535!important;color:#eee!important}
body.te1-carnet-dark #te1 .feedback.good{background:#203b29!important;color:#85ed9f!important}
body.te1-carnet-dark #te1 .solrow,body.te1-carnet-dark #te1 .solrow:nth-child(even){background:#292929!important;border-color:#484848!important;color:#eee!important}
body.te1-carnet-dark #te1 .length-head{background:#393939!important;color:#ffd269!important}

.af-replay-btn{display:block;margin:20px auto;padding:13px 28px;background:#2778b4;color:white;border:1px solid #9bd3ff;border-radius:7px;font-size:18px;font-weight:700;cursor:pointer}

/* 0.37gc — MOTS EN PLUS : véritable plein écran, référence Windows */
#gamePanel.mp-fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;overflow-y:auto!important;z-index:99999!important;box-sizing:border-box!important;margin:0!important;border:0!important;border-radius:0!important;padding:16px 22px!important;background:#222!important;color:#f3f5f8!important}
#gamePanel.mp-fullscreen > .row:first-child{display:none!important}
#gamePanel.mp-fullscreen .game-panel-body{width:100%!important;max-width:none!important}
#gamePanel.mp-fullscreen .mp-wrap{min-height:calc(100dvh - 80px)!important;box-sizing:border-box!important;background:#303030!important;color:#f3f5f8!important;padding:24px 22px!important}
#gamePanel.mp-fullscreen .mp-table-head,#gamePanel.mp-fullscreen #mpRows{max-width:1040px}
#gamePanel.mp-fullscreen .mp-draw{color:#ffc84a!important}
#gamePanel.mp-fullscreen .mp-table-head{color:#f3f5f8!important}
#gamePanel.mp-fullscreen .mp-answer,#gamePanel.mp-fullscreen .mp-final-box input{text-transform:uppercase}
#gamePanel.mp-fullscreen .mp-letters{letter-spacing:.12em}
body.games-clair #gamePanel.mp-fullscreen{background:#eef3fa!important;color:#173452!important}
body.games-clair #gamePanel.mp-fullscreen .mp-wrap{background:#fff!important;color:#173452!important}
body.games-clair #gamePanel.mp-fullscreen .mp-table-head{color:#173452!important}
body.games-clair #gamePanel.mp-fullscreen .mp-final-box{background:#eaf0f7!important}
body.games-clair #gamePanel.mp-fullscreen .mp-answer,body.games-clair #gamePanel.mp-fullscreen .mp-final-box input{background:#fff!important;color:#173452!important}
body.games-clair #gamePanel.mp-fullscreen .mp-answer-ok{color:#168044!important}
body.games-clair #gamePanel.mp-fullscreen .mp-answer-helped{color:#b37b00!important}
@media(max-width:900px){#gamePanel.mp-fullscreen{padding:8px!important}#gamePanel.mp-fullscreen .mp-wrap{padding:14px 8px!important}}

/* 0.37gk — Plein écran partagé des sept derniers jeux TE-GAMES. */
#gamePanel.games-seven-fullscreen{position:fixed!important;inset:0!important;z-index:99999!important;width:100vw!important;max-width:none!important;height:100dvh!important;max-height:none!important;margin:0!important;border:0!important;border-radius:0!important;box-sizing:border-box!important;overflow:auto!important;padding:18px 20px!important;background:#222!important;color:#f4f5f8!important;}
#gamePanel.games-seven-fullscreen>.row:first-child{display:none!important;}
#gamePanel.games-seven-fullscreen #gamePanelBody{width:100%!important;max-width:none!important;}
#gamePanel.games-seven-fullscreen .game-inline-nav{position:sticky;top:0;z-index:2;}
#gamePanel.games-seven-fullscreen .non-wrap{min-height:calc(100dvh - 85px);box-sizing:border-box;}
body.games-clair #gamePanel.games-seven-fullscreen{background:#f2f6fb!important;color:#173452!important;}
@media(max-width:700px){#gamePanel.games-seven-fullscreen{padding:8px!important;}#gamePanel.games-seven-fullscreen .non-wrap{min-width:0;overflow-x:auto;}}

/* 037gl: retour accueil accessible dans Anacroises plein ecran */
#gamePanel.games-seven-fullscreen .game-inline-nav{display:flex!important;position:sticky!important;top:0!important;z-index:100!important;background:#222!important;padding:8px 0!important;}
#gamePanel.games-seven-fullscreen .game-inline-nav .game-home-btn{display:inline-block!important;visibility:visible!important;pointer-events:auto!important;}

/* 0.37gm : accès permanent ACCUEIL / FERMER en plein écran pour les grilles. */
#gamePanel.games-seven-fullscreen .crossword-fixed-nav{display:flex!important;align-items:center!important;justify-content:space-between!important;position:sticky!important;top:0!important;z-index:10000!important;min-height:54px!important;padding:6px 8px 12px!important;background:#222!important;box-sizing:border-box!important}
#gamePanel.games-seven-fullscreen .crossword-fixed-nav button{display:inline-block!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;position:relative!important;background:#287eaf!important;color:#fff!important;border:0!important;border-radius:5px!important;padding:10px 18px!important;font-weight:700!important;cursor:pointer!important}
body.games-clair #gamePanel.games-seven-fullscreen .crossword-fixed-nav{background:#f2f6fb!important}

/* 037gn: navigation des grilles toujours visible dans la fenêtre */
#gamePanel.games-seven-fullscreen .crossword-fixed-nav{position:fixed!important;top:0!important;left:0!important;right:0!important;width:100%!important;height:62px!important;z-index:2147483000!important;display:flex!important;justify-content:space-between!important;align-items:center!important;padding:8px 18px!important;background:#222!important;box-shadow:0 2px 8px #0005!important;}
#gamePanel.games-seven-fullscreen:has(.crossword-fixed-nav){padding-top:76px!important;}
#gamePanel.games-seven-fullscreen .crossword-fixed-nav button{display:block!important;visibility:visible!important;opacity:1!important;background:#287eaf!important;color:white!important;padding:10px 22px!important;font-weight:700!important;border:0!important;border-radius:6px!important;cursor:pointer!important;}
body.games-clair #gamePanel.games-seven-fullscreen .crossword-fixed-nav{background:#f2f6fb!important;}

/* 0.37gp — grilles : une seule barre de navigation, sans doublons. */
#gamePanel.games-seven-fullscreen:has(> .crossword-fixed-nav) > .row.spread > #gamePanelClose {display:none!important;}
#gamePanel.games-seven-fullscreen:has(> .crossword-fixed-nav) > .row.spread > div {display:none!important;}
#gamePanel.games-seven-fullscreen:has(> .crossword-fixed-nav) .game-inline-nav {display:none!important;}
