/* Overlay de revue post-partie; couleurs héritées des palettes de l’application. */
.gr24-backdrop{position:fixed;inset:0;z-index:2147483000;display:flex;align-items:center;justify-content:center;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));background:rgba(9,22,17,.64);overscroll-behavior:contain}
.gr24-dialog{width:min(100%,720px);max-height:min(92dvh,900px);overflow:auto;border:1px solid var(--line,#dce0d2);border-radius:24px;background:var(--paper,#fffef8);color:var(--ink,#163d31);box-shadow:0 24px 80px rgba(0,0,0,.34);outline:none}
.gr24-header{position:sticky;top:0;z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:clamp(18px,4vw,30px);border-bottom:1px solid var(--line,#dce0d2);background:var(--paper,#fffef8)}
.gr24-kicker{margin:0 0 7px;color:var(--muted,#65766a);font-size:10px;font-weight:800;letter-spacing:1.7px}
.gr24-header h2{margin:0;color:var(--ink,#163d31);font-size:clamp(23px,5vw,32px);line-height:1.2}
.gr24-intro{max-width:540px;margin:9px 0 0;color:var(--muted,#65766a);font-size:14px;line-height:1.55}
.gr24-close,.gr24-source-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;border:1px solid var(--line,#dce0d2);border-radius:12px;padding:9px 14px;background:var(--cream,#f6f3e9);color:var(--ink,#163d31);font-weight:750;text-decoration:none}
.gr24-close:hover,.gr24-source-link:hover{border-color:var(--green,#174e3c);filter:brightness(.97)}
.gr24-main{padding:clamp(18px,4vw,30px)}
.gr24-main label{display:block;margin:0 0 7px;color:var(--muted,#65766a);font-size:13px;font-weight:750}
.gr24-choice{display:block;width:100%;min-height:48px;border:1px solid var(--line,#dce0d2);border-radius:13px;padding:10px 12px;background:var(--paper,#fffef8);color:var(--ink,#163d31);font-size:16px}
.gr24-word-title{margin:24px 0 3px;color:var(--ink,#163d31);font-size:clamp(25px,6vw,38px);line-height:1.15;overflow-wrap:anywhere}
.gr24-context,.gr24-meta{margin:5px 0 20px;color:var(--muted,#65766a);font-size:13px}
.gr24-details h3{margin:25px 0 9px;color:var(--ink,#163d31);font-size:18px}
.gr24-definition{margin:9px 0;padding:12px 15px;border-left:3px solid var(--green,#174e3c);border-radius:0 10px 10px 0;background:var(--cream,#f6f3e9);color:var(--ink,#163d31);line-height:1.6}
.gr24-source-note,.gr24-missing{margin:0 0 12px;color:var(--muted,#65766a);font-size:14px;line-height:1.6}
.gr24-missing{padding:12px 14px;border:1px solid var(--line,#dce0d2);border-radius:12px;background:var(--cream,#f6f3e9);color:var(--ink,#163d31);font-weight:700}
.gr24-source-link{margin:2px 0 4px;max-width:100%;white-space:normal;text-align:center}
.gr24-tips{margin:0;padding:0;list-style:none;display:grid;gap:10px}
.gr24-tips li{position:relative;padding:13px 15px 13px 42px;border:1px solid var(--line,#dce0d2);border-radius:13px;background:var(--paper,#fffef8);color:var(--ink,#163d31);line-height:1.55}
.gr24-tips li::before{position:absolute;left:15px;top:13px;content:'•';color:var(--green,#174e3c);font-size:20px;font-weight:900;line-height:1}
.gr24-dialog :focus-visible{outline:3px solid var(--gold,#d99a41);outline-offset:3px}
@media(max-width:520px){.gr24-backdrop{align-items:flex-end;padding:0}.gr24-dialog{width:100%;max-height:96dvh;border-radius:22px 22px 0 0;border-bottom:0;padding-bottom:env(safe-area-inset-bottom)}.gr24-header{gap:12px}.gr24-close{flex:0 0 auto;padding:8px 11px}.gr24-intro{font-size:13px}}
@media(prefers-reduced-motion:no-preference){.gr24-backdrop{animation:gr24-fade .14s ease-out}@keyframes gr24-fade{from{opacity:0}to{opacity:1}}}
/* Finition des seuls composants24 : même silhouette que les cartes déjà approuvées. */
.gr24-dialog{box-sizing:border-box;border:3px solid var(--ui22-edge,#111);border-radius:10px;box-shadow:6px 6px 0 var(--ui22-shadow,#111)}
.gr24-header{border-bottom:2px solid var(--ui22-edge,#111)}
.gr24-header>div{min-width:0}
.gr24-close,.gr24-source-link{box-sizing:border-box;border:2px solid var(--ui22-edge,#111);border-radius:7px;box-shadow:4px 5px 0 var(--ui22-shadow,#111);overflow-wrap:anywhere}
.gr24-choice{box-sizing:border-box;border:2px solid var(--ui22-edge,#111);border-radius:6px}
.gr24-definition,.gr24-tips li,.gr24-missing{box-sizing:border-box;border-radius:7px;overflow-wrap:anywhere}
.gr24-source-note{overflow-wrap:anywhere}
@media(max-width:520px){.gr24-backdrop{padding:9px;align-items:center}.gr24-dialog{max-height:calc(100dvh - 32px);border:3px solid var(--ui22-edge,#111);border-radius:10px}.gr24-header{gap:9px;padding:20px 14px}.gr24-header h2{font-size:23px}.gr24-close{font-size:14px;min-width:64px}.gr24-main{padding:20px 14px}}
/* La revue recouvre un écran textuel : fond opaque de la palette existante pour éviter les textes superposés. */
:root[data-appearance="glass"] .gr24-dialog,:root[data-appearance="glass"] .gr24-header{background:var(--cream,#0b426f)}

/* Édition30 : le bouton de fermeture reste entier sur toutes les largeurs. */
.gr24-close{flex:0 0 auto;white-space:nowrap;overflow-wrap:normal;word-break:normal}
