/* Composants communs aux deux consoles (IRM-318, demande d'Abdennour du 11/10/2026 : « faut ça dans toutes les consoles »).
   Chargée après la feuille propre à chaque console (console.html, nyamtechs.html), elle donne à toutes les vues :
   - des panneaux : chaque section (.blk) sur un fond légèrement contrasté, angles de 8 px, marges intérieures régulières,
     sans bordure ; titre de panneau plus petit que le titre de page ; état vide en gris dans son panneau ;
   - des groupes de chiffres nommés (.groupes > .grp), sur des lignes régulières, jamais un chiffre seul sur une ligne ;
   - une gouttière commune à toutes les grilles, et le journal dans sa colonne, en panneau pleine hauteur. */
:root{--pan:#ECECE9;--pan-r:8px;--pan-p:20px 22px;--gout:20px}
:root[data-theme=dark]{--pan:#151514}
@media (prefers-color-scheme:dark){:root:not([data-theme=light]){--pan:#151514}}

/* Panneau */
.blk,.grp{background:var(--pan);border-radius:var(--pan-r);padding:var(--pan-p)}
.blk h2,.grp h2{font-size:17px;margin:0 0 14px}
.blk .barre h2{margin:0}
.blk .hint{margin:-4px 0 14px}
.blk .empty,.blk>div>.muted:only-child,.blk>.muted:only-child{color:var(--muted)}

/* Grilles : même gouttière partout */
.blks,.duo,.grid2,.split,.quatre{gap:var(--gout)}
.blks{flex-direction:column}
.jour{gap:var(--gout);align-items:stretch;margin-bottom:var(--gout)}
.view .ligne{margin-bottom:var(--gout)}
.jour .gauche{gap:var(--gout)}
.feed{position:static;max-height:none;height:100%}
.feed .log{max-height:calc(100vh - 220px)}

/* Groupes de chiffres : un panneau par groupe, colonnes régulières (4 chiffres sur 2 colonnes, 5 sur 3, 8 sur 4) */
.groupes{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr));gap:var(--gout);margin:0 0 var(--gout)}
.grp h2{font-size:15px;margin-bottom:16px}
.grp .chiffres,.chiffres.reg{display:grid;grid-template-columns:repeat(var(--c,3),minmax(0,1fr));gap:18px 20px;margin:0}
.chiffres.reg{margin:4px 0 18px}
.grp .fig{font-size:28px}
@media(max-width:700px){:root{--pan-p:16px}.grp .fig,.chiffres.reg .fig{font-size:22px}.chiffres.reg[style*="--c:4"]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Sur le fond du panneau : statuts gris et survol des boutons gardent leur contraste */
.blk .st.done,.blk .st.plain,.blk .chip{background:var(--bg)}
.blk .btn:not(.pri):not(.gold):not(:disabled):hover{background:var(--bg)}
.blk pre,.blk .e .cv{background:var(--bg)}

/* Environnement (IRM-376) : repère à côté du logo, toujours écrit en mots. La production reste sobre (filet noir) ;
   la recette porte l'or de la charte et le local un filet pointillé, pour ne jamais la prendre pour la production. */
.repere{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:-16px 10px 22px;font-size:12px;line-height:1.3;color:var(--ink2)}
.repere b{font-weight:600;padding:4px 8px;border-radius:4px;outline:1px solid var(--fg);outline-offset:-1px;color:var(--fg);white-space:nowrap}
.repere[data-env=recette] b{background:var(--gold);color:black;outline:none}
.repere[data-env=local] b{outline:1px dashed var(--fg);outline-offset:-1px}
.repere span{white-space:nowrap}
.login .repere{margin:-6px 0 6px}
@media(max-width:900px){.rail .repere{margin:0 8px 0 0;flex-wrap:nowrap}}
