/* Maquette des flottes : seuls les objets qui n'existent pas encore (B, C, le pupitre). Tout descend des jetons de hud.css. */
.fond-carte { position: fixed; inset: 0; z-index: 0; background: #000 url('carte.jpg') center / cover no-repeat; }
.os { z-index: 1; }
.fenetre .corps { display: flex; flex-direction: column; min-height: 0; }

/* ── Le pupitre ─────────────────────────────────────────────────────────── */
.maquette { top: 228px; width: 308px; max-height: calc(100vh - 260px); overflow: auto; }
.maquette .mq { margin: 4px 0 0; font-family: var(--texte); font-weight: 600; font-size: 9.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.maquette__rang.col { flex-direction: column; }
.maquette__rang.col button { text-align: left; }
.maquette .mq-note { padding: 6px 8px; border-left: 2px solid var(--signal); background: color-mix(in srgb, var(--signal) 7%, transparent); color: var(--encre); font-size: 12px; }
.maquette .mq-journal { font-size: 12px; color: var(--signal); }

/* ── B · le moniteur ────────────────────────────────────────────────────── */
.mo { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 14px; }
.mo__gauche { display: flex; flex-direction: column; gap: 8px; min-height: 0; min-width: 0; }
.mo__filtres { display: flex; gap: 2px; border-bottom: 1px solid var(--structure); }
.mo__filtre {
  all: unset; cursor: pointer; display: inline-flex; align-items: baseline; gap: 8px; padding: 7px 12px 8px;
  font-family: var(--texte); font-size: 10.5px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--discret);
}
.mo__filtre b { font-weight: 600; color: var(--efface); font-variant-numeric: tabular-nums; }
.mo__filtre:hover { color: var(--encre); }
.mo__filtre.choisi { color: var(--encre); box-shadow: inset 0 -2px 0 var(--signal); }
.mo__filtre.choisi b { color: var(--signal); }
.mo__entete, .mo__ligne {
  display: grid; grid-template-columns: 50px minmax(140px, 1.2fr) minmax(130px, 1.1fr) minmax(130px, 1.3fr) 104px 40px; gap: 10px; align-items: center;
}
.mo__entete { padding: 0 10px 0 4px; font-size: 9px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--efface); }
.mo__table { flex: 1; min-height: 0; overflow: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 2px; }
.mo__groupe { padding: 10px 10px 4px; font-size: 9.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--peuple); }
.mo__ligne {
  all: unset; box-sizing: border-box; display: grid; grid-template-columns: 50px minmax(140px, 1.2fr) minmax(130px, 1.1fr) minmax(130px, 1.3fr) 104px 40px;
  gap: 10px; align-items: center; padding: 4px 10px 4px 4px; cursor: pointer; font-size: 12.5px; color: var(--encre);
  background: color-mix(in srgb, var(--creux) 30%, transparent);
}
.mo__ligne:hover { background: color-mix(in srgb, var(--gris) 8%, transparent); }
.mo__ligne.choisie { background: color-mix(in srgb, var(--signal) 10%, transparent); box-shadow: inset 2px 0 0 var(--signal); }
.mo__ligne.alerte:not(.choisie) { box-shadow: inset 2px 0 0 var(--alerte); }
.mo__vignette { display: block; height: 34px; background: var(--creux) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--structureVive); }
.mo__quoi { display: flex; flex-direction: column; min-width: 0; }
.mo__quoi b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo__quoi small { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mo__ordre { font-size: 10px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--discret); }
.mo__ou { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mo__ou i { font-style: normal; color: var(--efface); }
.mo__etat { font-size: 11.5px; color: var(--signal); } .mo__etat.calme { color: var(--peuple); } .mo__etat.alerte { color: var(--alerte); }
.mo__marche { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.mo__marche b { font-weight: 600; color: var(--signal); } .mo__marche small { color: var(--efface); }
.mo__marche .crans > i { height: 3px; }
.mo__jetons { display: flex; flex-direction: column; font-size: 11px; color: var(--discret); }
.mo__heure { font-size: 12px; text-align: right; color: var(--discret); font-variant-numeric: tabular-nums; }
.mo__rien { padding: 10px; }
.mo__volet { display: flex; flex-direction: column; gap: 10px; min-height: 0; overflow: auto; padding: 12px; background: color-mix(in srgb, var(--creux) 35%, transparent); box-shadow: inset 0 1px 0 var(--structureVive); }
.mo__volet .flo-coque { height: 170px; flex: none; }
.mo__sous { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--peuple); }
.mo__lecture b { font-weight: 500; text-align: right; }
.mo__volet .app-gestes { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.mo__volet .crans > i { height: 3px; }

/* ── C · par monde d'attache ────────────────────────────────────────────── */
.pa { flex: 1; min-height: 0; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; }
.pa__rail { display: flex; flex-direction: column; gap: 4px; overflow: auto; }
.pa__monde {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; align-items: center; padding: 5px;
  background: color-mix(in srgb, var(--creux) 30%, transparent);
}
.pa__monde:hover { background: color-mix(in srgb, var(--gris) 8%, transparent); }
.pa__monde.choisi { background: color-mix(in srgb, var(--signal) 10%, transparent); box-shadow: inset 2px 0 0 var(--signal); }
.pa__monde > i { height: 44px; background: var(--creux) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--structureVive); }
.pa__monde > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pa__monde b { font-size: 13px; font-weight: 600; color: var(--encre); }
.pa__monde small { font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.pa__monde small em { font-style: normal; color: var(--signal); }
.pa__monde.tout { margin-bottom: 8px; }
.pa__empire { display: grid !important; place-items: center; background: color-mix(in srgb, var(--creux) 70%, transparent) !important; }
.pa__empire::before { content: '◆'; color: var(--peuple); font-style: normal; font-size: 16px; }
.pa__page { min-width: 0; min-height: 0; overflow: auto; padding-right: 4px; display: flex; flex-direction: column; gap: 12px; }
.pa__cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.pa__carte { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; padding: 8px; background: color-mix(in srgb, var(--creux) 35%, transparent); box-shadow: inset 0 1px 0 var(--structureVive); }
.pa__carte:hover { background: color-mix(in srgb, var(--gris) 7%, transparent); }
.pa__carte .emp-scene { height: 110px; }
.pa__chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.pa__chiffres > span { display: flex; flex-direction: column; gap: 1px; font-size: 9px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--efface); }
.pa__chiffres b { font-size: 18px; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums; } .pa__chiffres b.signal { color: var(--signal); }
.pa__tete { position: relative; flex: none; height: 130px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--creux) center / cover no-repeat; box-shadow: inset 0 0 0 1px var(--structureVive); }
.pa__tete::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 20%, color-mix(in srgb, var(--panneau) 94%, transparent)); }
.pa__tete > span { position: relative; z-index: 1; display: flex; flex-direction: column; }
.pa__tete b { font-size: 20px; font-weight: 600; color: var(--encre); }
.pa__tete small { font-size: 10px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--peuple); }
.pa__gestes { flex-direction: row !important; gap: 10px; }
.pa__gestes .plaque { width: 210px; }
.pa__quais { display: flex; flex-direction: column; gap: 6px; }
.pa__quai { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; align-items: center; }
.pa__quai > small { font-size: 9.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--efface); }
.pa__lignes { display: flex; flex-direction: column; gap: 2px; }
.pa__ligne {
  all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 58px minmax(150px, 1.2fr) minmax(140px, 1.2fr) minmax(150px, 1.4fr) 150px; gap: 12px; align-items: center;
  padding: 4px 10px 4px 4px; font-size: 12.5px; color: var(--encre); background: color-mix(in srgb, var(--creux) 30%, transparent);
}
.pa__ligne:hover { background: color-mix(in srgb, var(--gris) 8%, transparent); }
.pa__ligne.alerte { box-shadow: inset 2px 0 0 var(--alerte); }

/* Un geste secondaire est une plaque d'argent, de la même taille que les autres (`.app-argent` de web-v2) :
   la plaque réduite (`.plaque.discret`) est réservée à la barre et au cadran. */
.app-argent { --accent: var(--gris); }
.app-gestes, .suit__gestes, .etiquette__gestes, .bat-gestes {
  display: grid !important; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0 12px; align-items: end;
}
.app-gestes > .geste, .suit__gestes > .geste, .etiquette__gestes > .geste, .bat-gestes > .geste { width: auto; min-width: 0; flex: none; }
.geste .plaque > span { white-space: nowrap; }
.mo__volet .app-gestes { margin-top: auto; }
