/* Structure commune aux quatre maquettes. L'apparence vient du fichier de style de chacune. */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #2b2d31; font-family: system-ui, sans-serif; --chrome: 52px; display: flex; flex-direction: column; }

/* Barre de la maquette (ne fait pas partie de l'appli) */

.device { container-type: size; width: 390px; height: min(780px, 100%); border-radius: 34px; overflow: hidden; box-shadow: 0 0 0 10px #0c0d0e; }
.device[data-dev="land"] { width: min(820px, 100%); height: 380px; }
.device[data-dev="full"] { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
@media (max-width: 820px), (max-height: 520px) {
  .stage { padding: 0; }
  .device, .device[data-dev] { width: 100%; height: 100%; border-radius: 0; box-shadow: none; }
  .devseg { display: none; }
}

/* Couleurs d'état, identiques partout */
.app { --ok: #1E8A4C; --warn: #C96A00; --bad: #C6282D; }
html[data-theme="dark"] .app { --ok: #4CC27F; --warn: #F0A040; --bad: #FF6B6B; }
.st-ok { --st: var(--ok); } .st-warn { --st: var(--warn); } .st-bad { --st: var(--bad); }
.pc { --pcc: var(--pc); }
html[data-theme="dark"] .pc { --pcc: color-mix(in srgb, var(--pc) 68%, #fff); }
.dotp { display: inline-block; width: .7em; height: .7em; border-radius: 50%; background: var(--pcc); margin-right: .5em; flex: none; }

/* Ossature */
.app { height: 100%; display: grid; grid-template: "top" auto "view" minmax(0, 1fr) "nav" auto / minmax(0, 1fr);
  background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.4; position: relative; overflow: hidden; }
.app button, .app input, .app select { font: inherit; color: inherit; }
.app button { cursor: pointer; }
.app :focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }

.top { grid-area: top; display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.top h1 { font-size: 1.25rem; margin: 0; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who { display: inline-flex; align-items: center; font-weight: 600; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }

.view { grid-area: view; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.view > * { flex: none; }
.stack { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.split { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; }
.row > .btn { flex: 1 1 140px; }
h2 { font-size: 1.05rem; font-weight: 600; margin: 4px 0 0; display: flex; align-items: center; }
.note, .empty { color: var(--muted); font-size: .9rem; margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .9rem; }
.legend span { display: inline-flex; align-items: center; }

.nav { grid-area: nav; display: flex; background: var(--surface); border-top: 1px solid var(--line); }
.nav button { flex: 1; min-width: 0; min-height: 58px; background: none; border: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: .74rem; color: var(--muted); padding: 6px 2px; }
.nav button[aria-current="page"] { color: var(--accent); font-weight: 600; }
.nav svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nonav { grid-template: "top" auto "view" minmax(0, 1fr) / minmax(0, 1fr); }
.auth { margin: auto; width: 100%; max-width: 400px; }
.auth h2 { font-size: 1.6rem; }

/* Boutons, champs */
.btn { min-height: 48px; padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-weight: 500; }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.btn.big { min-height: 58px; font-size: 1.08rem; }
.btn.small { min-height: 40px; padding: 6px 12px; font-size: .9rem; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.back { align-self: flex-start; }
.btn:disabled { opacity: .45; cursor: default; }
.link { background: none; border: 0; padding: 8px 0; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-align: left; font-weight: inherit; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.seg button { flex: 1; border: 0; background: none; min-height: 46px; padding: 8px 14px; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 600; }
.view > .seg, .stack > .seg { display: flex; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; color: var(--muted); }
.field input, .field select, .line select, .cardhead input.grow { min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); font-size: 1rem; }
.grow { flex: 1; min-width: 0; }
input[type="color"] { width: 48px; height: 48px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); flex: none; }
input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--accent); }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); font-size: 1.4rem; line-height: 1; }
.stepper b { min-width: 2.4em; text-align: center; font-size: 1.2rem; }

/* Cartes, lignes */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px; }
.card.pc { border-left: 6px solid var(--pcc); }
.card.dim { opacity: .55; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; flex-wrap: wrap; }
.cardhead strong { display: inline-flex; align-items: center; font-size: 1.05rem; }
.card .row { padding: 10px 0; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stack > .line { border-top: 0; }
.line b { font-size: 1.15rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-block; border: 1px solid var(--st); border-left-width: 6px; border-radius: var(--r); padding: 6px 12px; font-size: .92rem; background: var(--surface); }
.mission { margin: 0; font-weight: 600; }
.mission.off { color: var(--warn); font-weight: 500; }

/* Munitions */
.ammo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ammo .nm, .ammo .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ammo { display: grid; grid-template: "nm dial" auto "sub dial" auto "gauge gauge" auto / 1fr auto; align-items: center; gap: 2px 10px; min-height: 96px;
  padding: 12px 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .08s; }
button.ammo:active { transform: scale(.97); }
.ammo .nm { grid-area: nm; font-size: 1.3rem; font-weight: 600; }
.ammo .dial { grid-area: dial; }
.ammo .dial b { font-size: 2.1rem; line-height: 1; color: var(--st); }
.ammo .sub { grid-area: sub; color: var(--muted); font-size: .82rem; }
.ammo .gauge { grid-area: gauge; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: 8px; }
.ammo .gauge i { display: block; height: 100%; width: calc(var(--p) * 1%); background: var(--st); }
.ammo.multi { grid-template: "nm dial" auto "step step" auto "gauge gauge" auto / 1fr auto; }
.ammo.multi .sub { display: none; }
.ammo.multi .stepper { grid-area: step; justify-content: space-between; margin-top: 6px; }
.undo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 16px; border-radius: var(--r); background: var(--ink); color: var(--bg); }
.undo .btn { background: transparent; border-color: currentColor; color: inherit; min-height: 42px; }

/* Cartes de véhicule : une case par munition, jamais de défilement horizontal */
.vgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.vcard { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; padding: 12px 14px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--pcc); border-radius: var(--r); }
.vhead { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 1.1rem; }
.vhead > span { display: inline-flex; align-items: center; }
.vhead small { color: var(--muted); font-weight: 400; font-size: .85rem; text-decoration: underline; text-underline-offset: 3px; }
.mcs { display: grid; grid-template-columns: repeat(auto-fit, minmax(52px, 1fr)); gap: 6px; }
.mc { display: flex; flex-direction: column; align-items: center; min-width: 0; padding: 6px 2px 5px; border-radius: 10px; background: color-mix(in srgb, var(--st) 16%, var(--surface2)); border-bottom: 3px solid var(--st); }
.mc b { font-size: 1.35rem; line-height: 1.15; }
.mc small { max-width: 100%; font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.esc { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 8px; }
.ed { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.ed small { font-size: .78rem; font-weight: 600; white-space: nowrap; }
.pill { padding: 4px 12px; border-radius: 999px; background: var(--st); color: var(--bg); font-weight: 600; white-space: nowrap; }
.togs { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.tog { min-width: 68px; min-height: 44px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.tog[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.ammo .dists { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 10px; white-space: normal; }
.ammo .dists b { color: var(--ink); }
.distbtn { display: flex; align-items: center; justify-content: space-between; border-left: 8px solid var(--st); font-size: 1.2rem; }

/* Listes et tableau */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.feed li:last-child { border-bottom: 0; }
.feed time { color: var(--muted); min-width: 3.2em; }
.feed li > span { flex: 1; min-width: 120px; }
.feed em { display: block; font-style: normal; color: var(--muted); font-size: .85rem; }
.scroll { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
table { border-collapse: collapse; width: 100%; }
th, td { padding: 10px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child { text-align: left; border-left: 6px solid transparent; }
tr.pc th:first-child { border-left-color: color-mix(in srgb, var(--pcc) 40%, transparent); }
tr.peloton.pc th:first-child { border-left-color: var(--pcc); }
thead th { color: var(--muted); font-weight: 600; font-size: .88rem; }
tbody th { font-weight: 500; }
tr.peloton th, tr.peloton td { background: var(--surface2); font-weight: 600; }
tr.total th, tr.total td { border-bottom: 0; font-weight: 600; font-size: 1.05rem; }
.cellv { display: inline-flex; align-items: center; gap: 6px; }
.cellv::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--st); }
td small { color: var(--muted); font-size: .8rem; }

/* Messages et fenêtres */
.toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r); background: var(--ink); color: var(--bg); font-weight: 500; z-index: 4; text-align: center; }
.overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); display: grid; place-items: center; padding: 16px; z-index: 5; }
.dlg { width: 100%; max-width: 380px; max-height: 100%; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.qr { width: min(180px, 40cqh); align-self: center; background: #fff; fill: #111; border-radius: 6px; }

/* Téléphone à l'horizontale : la navigation passe sur le côté */
@container (orientation: landscape) and (max-height: 520px) {
  .app { grid-template: "nav top" auto "nav view" minmax(0, 1fr) / auto minmax(0, 1fr); }
  .app.nonav { grid-template: "top" auto "view" minmax(0, 1fr) / minmax(0, 1fr); }
  .nav { flex-direction: column; border-top: 0; border-right: 1px solid var(--line); overflow-y: auto; }
  .nav button { min-height: 46px; min-width: 76px; }
  .top { padding: 6px 14px; }
  .top h1 { font-size: 1.05rem; }
  .view { padding: 12px 14px; gap: 12px; }
  .split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
  .ammo-grid { grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
  .ammo { min-height: 84px; }
  .toast { bottom: 16px; }
}
/* Tablette et ordinateur */
@container (min-width: 900px) and (min-height: 521px) {
  .app { grid-template: "nav top" auto "nav view" minmax(0, 1fr) / 220px minmax(0, 1fr); }
  .app.nonav { grid-template: "top" auto "view" minmax(0, 1fr) / minmax(0, 1fr); }
  .nav { flex-direction: column; border-top: 0; border-right: 1px solid var(--line); padding: 12px 8px; gap: 4px; }
  .nav button { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; font-size: 1rem; padding: 10px 14px; min-height: 48px; }
  .top { padding: 16px 28px; }
  .view { padding: 24px 28px; }
  .split { display: grid; grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr); gap: 28px; align-items: start; }
  .ammo-grid { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
  .narrow { max-width: 620px; }
  .toast { bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) { .ammo { transition: none; } }

/* ---------- Ajouts : navigation animée, historique, alertes, écran de tir ---------- */
.layer { display: contents; }
.nav { position: relative; }
.nav button { position: relative; z-index: 1; transition: color .2s; }
.nav svg { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.nav button[aria-current="page"] svg { transform: translateY(-1px) scale(1.14); }
.ind { position: absolute; left: 0; top: 0; width: calc(100% / var(--n)); height: 100%; pointer-events: none;
  transform: translateX(calc(var(--i) * 100%)); transition: transform .42s cubic-bezier(.3, 1.3, .5, 1); }
.ind::after { content: ""; position: absolute; inset: 6px 5px; border-radius: 16px; background: var(--surface2); }
@keyframes enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.view.enter { animation: enter .24s ease-out; }
button.ammo, .btn, .vcard, .tog, .stepper button { transition: transform .12s ease-out, background-color .2s; }
.btn:active, button.vcard:active, .tog:active, .stepper button:active { transform: scale(.96); }

.thead { display: flex; flex-direction: column; gap: 10px; }
.thead .seg { display: flex; }
.thead h2 { margin: 0; }
.ammo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dlab { padding: 1px 10px; border-radius: 999px; background: var(--surface2); font-weight: 600; font-size: .95rem; white-space: nowrap; }

.hist { list-style: none; margin: 0; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.hist li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hist li:last-child { border-bottom: 0; }
.hwho { display: flex; flex-direction: column; min-width: 0; }
.hwho b { display: flex; align-items: center; font-weight: 600; white-space: nowrap; overflow: hidden; }
.hwho small { color: var(--muted); font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hwhat { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }

.glab { margin: 0; color: var(--muted); font-size: .9rem; }
.mc small.ml, .ed small.ml { font-weight: 400; color: var(--muted); font-size: .68rem; margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--st) 15%, var(--surface)); font-size: .92rem; }
.stat b { font-size: 2.1rem; line-height: 1; color: var(--st); }
.arows { display: flex; flex-direction: column; gap: 6px; }
.arow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; border-left: 5px solid var(--st); background: color-mix(in srgb, var(--st) 13%, var(--surface2)); }
.arow b { white-space: nowrap; }

@container (orientation: landscape) and (max-height: 520px) {
  .ind { width: 100%; height: calc(100% / var(--n)); transform: translateY(calc(var(--i) * 100%)); }
  .thead { flex-direction: row; align-items: center; justify-content: space-between; }
  .thead .seg { flex: none; }
  .thead .seg button { min-height: 38px; }
  .ammo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stack { gap: 10px; }
}
@container (min-width: 900px) and (min-height: 521px) {
  .ind { left: 8px; top: 12px; width: calc(100% - 16px); height: 48px; transform: translateY(calc(var(--i) * 52px)); }
  .ind::after { inset: 0; }
  .ammo-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .thead { flex-direction: row; align-items: center; justify-content: space-between; }
  .thead .seg { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .ind, .nav svg, .btn, .vcard, .tog { transition: none; } .view.enter { animation: none; } }
  /* Cadran : un tableau de bord de véhicule. Chaque ligne de stock est un compteur à aiguille. Arrondis larges et continus. */
  .app {
    --bg: #E3E8EE; --surface: #F6F8FA; --surface2: #D8DFE7; --ink: #18202B; --muted: #55647A;
    --line: #C3CCD8; --accent: #18202B; --on-accent: #FFFFFF; --r: 20px;
    --font: "Saira Semi Condensed", system-ui, sans-serif; --num: "Saira Condensed", "Saira Semi Condensed", sans-serif;
  }
  html[data-theme="dark"] .app {
    --bg: #18202B; --surface: #212C3A; --surface2: #2A3748; --ink: #EEF2F6; --muted: #94A3B5;
    --line: #34435A; --accent: #EEF2F6; --on-accent: #18202B;
  }
  .top { border-bottom: 3px solid var(--line); }
  .app.pc .top { border-bottom-color: var(--pcc); }
  .top h1 { font-size: 1.35rem; letter-spacing: .01em; }

  .btn, .field input, .field select, .line select, .cardhead input.grow, .stepper button, input[type="color"] { border-radius: 14px; }
  .btn.big { border-radius: 16px; }
  .btn.small { border-radius: 12px; }
  .seg { border: 0; padding: 3px; gap: 2px; border-radius: 14px; background: var(--surface2); }
  .seg button { border-radius: 11px; min-height: 42px; transition: background-color .2s, color .2s; }
  .mc { border-radius: 12px; }
  .dlg { border-radius: 26px; }
  .toast { border-radius: 999px; }
  .chip { border-radius: 999px; border-left-width: 1px; padding-left: 28px; position: relative; }
  .chip::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--st); }

  .ammo { grid-template: "dial" auto "nm" auto "sub" auto / minmax(0, 1fr); justify-items: center; text-align: center; padding: 10px 4px 10px; gap: 0; min-height: 0; border-radius: 22px; }
  .ammo .dial, .ed .dial {
    aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
    background:
      radial-gradient(closest-side, var(--dbg) 78%, transparent 80%),
      conic-gradient(from 225deg, var(--st) calc(var(--p) * .75%), var(--line) 0 75%, transparent 0);
  }
  .ammo .dial { --dbg: var(--surface); width: 100%; max-width: 88px; }
  .ammo .dial b { color: var(--ink); font-size: 2.1rem; font-weight: 600; }
  .ammo .nm { font-size: 1.15rem; margin-top: -12px; }
  .ammo .sub, .ammo .dlab { grid-area: sub; }
  .ammo .dlab { margin-top: 2px; }
  .ed .dial { --dbg: var(--bg); width: 100%; max-width: 84px; }
  .ed .dial b { font-size: 1.3rem; font-weight: 600; }
  .ed small:first-of-type { margin-top: -10px; }

  @container (orientation: landscape) and (max-height: 520px) {
    .ammo { grid-template: "dial nm" auto "dial sub" auto / 58px minmax(0, 1fr); justify-items: start; text-align: left; gap: 0 10px; padding: 8px 10px; border-radius: 18px; }
    .ammo .dial { width: 58px; }
    .ammo .dial b { font-size: 1.5rem; }
    .ammo .nm { align-self: end; margin-top: 0; font-size: 1.1rem; }
    .ammo .sub, .ammo .dlab { align-self: start; }
  }

/* ---------- Appli réelle : plein écran, sans cadre de maquette ---------- */
html, body { height: 100%; overscroll-behavior: none; }
body { display: block; background: #18202B; }
html[data-theme="light"] body { background: #E3E8EE; }
.device, .device[data-dev] { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
.app { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.app button { -webkit-user-select: none; user-select: none; }
.top { padding-top: calc(12px + env(safe-area-inset-top, 0px)); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.nav { padding-bottom: env(safe-area-inset-bottom, 0px); }
.view { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.ind { height: calc(100% - env(safe-area-inset-bottom, 0px)); }
.live { white-space: nowrap; }
.live.off i { background: var(--warn); }
.linktxt { padding: 10px 12px; border-radius: 12px; background: var(--surface2); color: var(--ink); word-break: break-all; -webkit-user-select: all; user-select: all; }
img.qr { width: min(200px, 45cqh); align-self: center; padding: 6px; border-radius: 12px; background: #fff; }
.nav.n6 button, .nav.n7 button { font-size: .66rem; }
.nav.n7 svg { width: 20px; height: 20px; }
select:disabled { opacity: .5; }
noscript { display: block; padding: 24px; color: #EEF2F6; font-family: system-ui, sans-serif; }
@container (orientation: landscape) and (max-height: 520px) {
  .top { padding-top: calc(6px + env(safe-area-inset-top, 0px)); }
  .nav { padding-bottom: 0; padding-left: env(safe-area-inset-left, 0px); }
  .top, .view { padding-left: 14px; }
  .ind { height: calc(100% / var(--n)); }
}
@container (min-width: 900px) and (min-height: 521px) {
  .ind { height: 48px; }
  .nav.n6 button, .nav.n7 button { font-size: 1rem; }
  .nav.n7 svg { width: 22px; height: 22px; }
}

/* ---------- Historique : ce qui a été tiré en premier, puis qui et d'où ---------- */
.hist li { display: flex; align-items: center; gap: 12px; }
.hwho { flex: 1; gap: 2px; }
.hwho b { display: block; font-size: 1.08rem; text-overflow: ellipsis; }
.hwho small { display: block; }
.hwho small .dotp { margin-right: .4em; }

/* ---------- Tableau : une carte par munition, ses distances dedans ---------- */
.tgs { display: flex; flex-wrap: wrap; gap: 10px; }
.tg { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.tg h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.tgd { display: flex; gap: 8px; }
.tgd .ed { flex: 1 1 0; min-width: 54px; max-width: 86px; }
.tg .ed .dial { --dbg: var(--surface); }
.tg .ed small { font-weight: 400; color: var(--muted); }
.vts { display: flex; flex-wrap: wrap; gap: 8px; }
.vt { flex: 1 1 auto; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vtn { padding-left: 2px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.vtc { display: flex; gap: 4px; }
.vtc .mc { flex: 1 1 0; min-width: 44px; }

/* ---------- Connexion ---------- */
.authview { background: radial-gradient(90% 55% at 50% 0%, var(--surface2), transparent 75%); }
.authwrap { width: 100%; max-width: 400px; margin: auto; display: flex; flex-direction: column; gap: 24px; }
.brand { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.brand svg { width: 108px; height: 108px; transform: rotate(135deg); }
.brand circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.brand .trk { stroke: var(--line); stroke-dasharray: 75 100; }
.brand .val { stroke: var(--ok); stroke-dasharray: 32 100; animation: sweep 1s cubic-bezier(.3, 1.2, .5, 1) both; }
.brand .hub { fill: var(--ink); stroke: none; }
@keyframes sweep { from { stroke-dasharray: 0 100; } }
.brand h1 { margin: 6px 0 0; font-size: 2.2rem; font-weight: 600; letter-spacing: .01em; }
.brand p { margin: 0; color: var(--muted); }
.authcard { display: flex; flex-direction: column; gap: 14px; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .55); }
.authcard h2 { margin: 0; font-size: 1.25rem; }
.authcard .field input, .authcard .field select { background: var(--bg); }
.authcard .link { align-self: center; }
@container (orientation: landscape) and (max-height: 520px) {
  .authwrap { flex-direction: row; align-items: center; max-width: 740px; gap: 28px; }
  .brand { flex: 1; }
  .brand svg { width: 84px; height: 84px; }
  .brand h1 { font-size: 1.8rem; }
  .authcard { flex: 1.3; gap: 8px; padding: 14px 16px; border-radius: 22px; }
  .authcard .field input, .authcard .field select { min-height: 42px; }
  .authcard .btn.big { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .brand .val { animation: none; } }

/* ---------- Stock en deux parties : à la main, puis au lanceur ---------- */
.escadron, .vcard { --cellbg: var(--surface2); }
.escadron { display: flex; flex-direction: column; gap: 14px; }
.sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.seclab { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; }
.seclab::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.grps { display: flex; flex-wrap: wrap; gap: 8px; }
.grp { flex: 1 1 auto; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.grpn { font-weight: 600; }
.cells { display: flex; gap: 6px; }
/* Escadron : chaque groupe est une carte, avec des compteurs à aiguille */
.escadron .grp { padding: 10px 12px 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.escadron .grpn { font-size: 1.05rem; }
.escadron .cells { gap: 8px; }
.escadron .ed { flex: 1 1 0; min-width: 52px; max-width: 88px; }
.escadron .ed .dial { --dbg: var(--surface); }
.escadron .ed small { font-weight: 500; color: var(--ink); }
.escadron .grps .ed small { font-weight: 400; color: var(--muted); }
/* Carte de véhicule : cases compactes */
.vcard .seclab { font-size: .8rem; color: var(--muted); }
.vcard .grpn { padding-left: 2px; font-size: .76rem; color: var(--muted); }
.vcard .cells { gap: 4px; }
.vcard .mc { flex: 1 1 0; min-width: 42px; }
.vcard .mc small { font-size: .7rem; }

/* ---------- Combien sur combien, et pourcentage restant ---------- */
.ammo .sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; white-space: normal; overflow: visible; }
.ammo .sub .dlab { font-size: .9rem; color: var(--ink); }
.ammo .of { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.hrow { justify-content: space-between; gap: 10px; }
.hrow > span:first-child { display: inline-flex; align-items: center; }
.hpct { padding: 2px 10px; border-radius: 999px; font-size: .95rem; font-weight: 600; white-space: nowrap; color: var(--ink); background: color-mix(in srgb, var(--st) 22%, var(--surface2)); border: 1px solid var(--st); }
.vright { display: inline-flex; align-items: center; gap: 10px; }
.vright .hpct { font-size: .82rem; padding: 1px 8px; }
.escadron .ed small.pct { margin-top: 0; font-size: .86rem; font-weight: 600; color: var(--st); }
.escadron .ed small.of { margin-top: -2px; font-size: .7rem; font-weight: 400; color: var(--muted); }
.vcard .mc small.pct { font-size: .68rem; font-weight: 600; color: var(--ink); opacity: .85; }
@container (orientation: landscape) and (max-height: 520px) {
  .ammo .sub { justify-content: flex-start; }
}

/* ---------- Téléphone à l'horizontale, revu ----------
   L'appli occupe toujours exactement l'écran visible (certains téléphones gardent l'ancienne hauteur après une rotation).
   Écran de tir : tous les compteurs sur une ligne, sur toute la largeur, l'historique en dessous.
   Autres pages : deux colonnes seulement si l'écran est assez large, sinon une seule. */
.device, .device[data-dev] { position: fixed; inset: 0; width: auto; height: auto; }
.toast { max-width: min(calc(100% - 32px), 460px); }
@container (orientation: landscape) and (max-height: 520px) {
  .split.one { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .split.one .ammo-grid { grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
  .split.one .ammo { grid-template: "dial" auto "nm" auto "sub" auto / minmax(0, 1fr); justify-items: center; text-align: center; gap: 0; padding: 8px 3px; border-radius: 18px; }
  .split.one .ammo .dial { width: 100%; max-width: 64px; }
  .split.one .ammo .dial b { font-size: 1.65rem; }
  .split.one .ammo .nm { align-self: auto; margin-top: -9px; font-size: 1.05rem; }
  .split.one .ammo .sub { align-self: auto; justify-content: center; }
  .nav button { min-height: 40px; }
  .nav.n6 button span, .nav.n7 button span { font-size: .62rem; }
}
@container (orientation: landscape) and (max-height: 520px) and (max-width: 719px) {
  .split { display: flex; flex-direction: column; align-items: stretch; }
}
/* Très peu de hauteur (navigateur avec ses barres) : en-tête et marges resserrés */
@container (orientation: landscape) and (max-height: 350px) {
  .top { padding-top: calc(3px + env(safe-area-inset-top, 0px)); padding-bottom: 3px; }
  .view { padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .nav button { min-height: 0; padding: 2px; }
  .nav button span { display: none; }
  .nav svg { width: 24px; height: 24px; }
}

/* L'appli gère elle-même ses thèmes clair et sombre : on l'annonce au navigateur pour qu'il n'applique pas
   son propre assombrissement automatique par-dessus (Samsung Internet, Chrome en mode sombre forcé). */
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }

@media (prefers-color-scheme: dark) { html:not([data-theme="light"]) { color-scheme: dark; } }

/* Orange et rouge bien distincts, y compris en plein soleil */
.app { --warn: #D98600; --bad: #C81E1E; }
html[data-theme="dark"] .app { --warn: #FFB020; --bad: #FF4D4D; }

/* ---------- Vue manif : l'essentiel en très gros, sur un seul écran ---------- */
.app.manif { grid-template: "view" minmax(0, 1fr) / minmax(0, 1fr); }
.app.manif .top, .app.manif .nav { display: none; }
.app.manif .view { overflow: hidden; gap: 0; padding: calc(8px + env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)); }
.app.manif .toast { top: 10px; bottom: auto; }
.app.manif .update { top: 8px; }
.view > .mv { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 10px; }
.mhead { display: flex; flex-direction: column; gap: 10px; }
.mtop { display: flex; align-items: center; gap: 12px; }
.mtop .who { flex: 1; font-size: 1.3rem; }
.mmode { display: flex; }
.mmode button { min-height: 62px; font-size: 1.35rem; font-weight: 600; }
.mgrid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); gap: 10px; }
.mgrid.few { grid-template-columns: minmax(0, 1fr); }
.mt { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 0; padding: 4px; overflow: hidden;
  border: 3px solid var(--st); border-radius: 26px; background: color-mix(in srgb, var(--st) 16%, var(--surface)); transition: transform .1s; }
.mt:active { transform: scale(.97); background: color-mix(in srgb, var(--st) 34%, var(--surface)); }
.mt b { font-size: clamp(2.6rem, 10cqh, 5.4rem); line-height: .95; font-weight: 600; }
.mt .mn { font-size: clamp(1.25rem, 3.6cqh, 2rem); font-weight: 600; white-space: nowrap; }
.mt .md { padding: 0 14px; border-radius: 999px; background: var(--surface2); font-size: clamp(1.1rem, 3.2cqh, 1.7rem); font-weight: 600; white-space: nowrap; }
.mt small { color: var(--muted); font-size: .9rem; }
.mlast { display: flex; align-items: center; gap: 10px; }
.mlast > span { flex: 1; min-width: 0; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mlast .btn { min-height: 54px; font-size: 1.05rem; font-weight: 600; }
@container (orientation: landscape) and (max-height: 520px) {
  .view > .mv { gap: 8px; }
  .mhead { flex-direction: row; align-items: center; gap: 12px; }
  .mtop { flex: 1; }
  .mmode { flex: 1.3; }
  .mmode button { min-height: 48px; font-size: 1.2rem; }
  .mgrid, .mgrid.few { grid-template-columns: none; grid-template-rows: minmax(0, 1fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .mt b { font-size: clamp(2.2rem, 18cqh, 4.6rem); }
  .mt .mn { font-size: clamp(1.1rem, 6cqh, 1.7rem); }
  .mt .md { font-size: clamp(1rem, 5.5cqh, 1.5rem); padding: 0 10px; }
  .mlast .btn { min-height: 46px; }
}
@container (orientation: landscape) and (max-height: 330px) { .mt small { display: none; } }

/* ---------- Choix par boutons (incident) ---------- */
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.pick.two { grid-template-columns: 1fr 1fr; }
.pick .btn { min-height: 54px; font-weight: 600; }
.dlg .glab { font-weight: 600; color: var(--ink); }
@container (orientation: landscape) and (max-height: 520px) {
  .dlg { max-width: 620px; padding: 12px 14px; gap: 8px; }
  .pick .btn { min-height: 44px; }
}

/* ---------- Journal ---------- */
.dlg.wide { max-width: 760px; }
.logbox { margin: 0; max-height: 58cqh; overflow: auto; padding: 10px 12px; border-radius: 12px; background: var(--bg); color: var(--ink);
  font: .72rem/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: pre-wrap; word-break: break-word; -webkit-user-select: text; user-select: text; }

/* ---------- Tirer pour actualiser ---------- */
#ptr { position: fixed; z-index: 30; left: 50%; top: calc(env(safe-area-inset-top, 0px) - 46px); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: #EEF2F6; color: #18202B; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); transform: translate(-50%, 0); opacity: 0; pointer-events: none; transition: opacity .15s; }
#ptr.on { opacity: .55; }
#ptr.ready, #ptr.spin { opacity: 1; }
#ptr.spin { transition: transform .2s; }
#ptr svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#ptr svg path:last-child { fill: currentColor; stroke-width: 1; }
#ptr.spin svg { animation: ptrspin .7s linear infinite; }
@keyframes ptrspin { to { transform: rotate(360deg); } }

/* ---------- Mise à jour disponible ---------- */
.update { position: absolute; left: 50%; top: calc(62px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); z-index: 4; display: flex; align-items: center; gap: 8px;
  width: max-content; max-width: calc(100% - 24px); padding: 8px 8px 8px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 500; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); }
.update span, .update .btn { white-space: nowrap; }
.update .btn { min-height: 40px; border-radius: 999px; }
.update .btn.primary { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.update .btn:not(.primary) { background: transparent; color: inherit; border-color: transparent; }
@container (max-width: 420px) { .update span { font-size: .9rem; } .update { padding-left: 12px; gap: 4px; } }

/* À l'horizontale, le message de confirmation s'affiche en haut pour ne recouvrir aucun bouton. */
@container (orientation: landscape) and (max-height: 520px) {
  .toast { top: calc(4px + env(safe-area-inset-top, 0px)); bottom: auto; padding: 8px 16px; }
}

/* ---------- Retouches issues de la revue d'interface ---------- */
h1, h2 { text-wrap: balance; }
.who { min-width: 0; max-width: 46%; }
.who, .mtop .who { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlg { overscroll-behavior: contain; }
.dlg:focus { outline: none; }
.btn:disabled { cursor: progress; }
@media (hover: hover) {
  .btn:hover:not(:disabled), .tog:hover, .stepper button:hover { background: var(--surface2); }
  .btn.primary:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 86%, var(--bg)); }
  .seg button:hover:not([aria-pressed="true"]) { background: color-mix(in srgb, var(--ink) 8%, transparent); }
  .nav button:hover { color: var(--ink); }
  button.vcard:hover, button.ammo:hover, .mt:hover { border-color: var(--ink); }
  .link:hover { text-decoration-thickness: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .mt, .seg button, #ptr { transition: none; }
  #ptr.spin svg { animation: none; }
}

/* ---------- Nouvelle mission : choix des pelotons et des véhicules ---------- */
.mpick .line { flex-wrap: nowrap; gap: 10px; }
.mpick .line:first-child { border-top: 0; }
.tog.mp { display: inline-flex; align-items: center; flex: 1 1 auto; min-width: 0; padding: 0 14px; justify-content: flex-start; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tog.mp[aria-pressed="true"] .dotp { background: currentColor; }
.mpick .togs { flex: none; flex-wrap: nowrap; }
.mpick .togs .tog { min-width: 46px; }
.tog:disabled { opacity: .35; cursor: default; }
.mwho { text-align: right; font-size: 1rem !important; font-weight: 500; }

/* ---------- Polices embarquées : plus aucune dépendance extérieure, même à la toute première ouverture ---------- */
@font-face { font-family: "Saira Semi Condensed"; font-weight: 400; font-style: normal; font-display: swap; src: url("/f-saira-semi-condensed-400.woff2") format("woff2"); }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/f-saira-semi-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Saira Semi Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/f-saira-semi-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 500; font-style: normal; font-display: swap; src: url("/f-saira-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Saira Condensed"; font-weight: 600; font-style: normal; font-display: swap; src: url("/f-saira-condensed-600.woff2") format("woff2"); }

/* ---------- Mode nuit : fond noir, texte et couleurs très atténués, pour ne pas éclairer le visage ---------- */
html[data-theme="dark"][data-night] body { background: #000; }
html[data-theme="dark"][data-night] .app {
  --bg: #000000; --surface: #090B0D; --surface2: #13161A; --ink: #858B94; --muted: #565C64; --line: #1A1E23;
  --accent: #7C828B; --on-accent: #000000; --ok: #2C7550; --warn: #96680F; --bad: #9A3030;
}
html[data-theme="dark"][data-night] .pc { --pcc: color-mix(in srgb, var(--pc) 55%, #000); }
html[data-theme="dark"][data-night] #ptr { background: #2A2E33; color: #9AA0A8; box-shadow: none; }
html[data-theme="dark"][data-night] img.qr { opacity: .75; }

/* ---------- Historique des corrections ---------- */
.audit li { align-items: flex-start; }
.audit .hwho b { white-space: normal; font-size: 1rem; }
.audit .hwho small { white-space: normal; }
.audit time { flex: none; color: var(--muted); font-size: .84rem; text-align: right; white-space: nowrap; }

/* Mode entraînement : un bandeau en tête de chaque écran, et le numéro d'étape du guide. */
.trainbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; margin-bottom: 12px; padding: 6px 6px 6px 14px; border: 1px dashed var(--warn); border-radius: var(--r); color: var(--ink); font-weight: 500; font-size: .92rem; }
.trainbar .btn { min-height: 40px; }
.dlg .gstep { margin: 0; color: var(--muted); font-size: .85rem; }
.dlg .note b { color: var(--ink); font-weight: 600; }

/* ---------- Vue manif du CAF : tout l'escadron dans un tableau, sur un seul écran ---------- */
.view > .cm { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; gap: 8px; }
.cm .mtop { flex: none; }
.cm .mtop .who b { margin-left: 10px; color: var(--st); }
.cmw { flex: 1; min-height: 0; overflow: hidden; }
.cmt { width: 100%; height: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; font-size: clamp(.8rem, 3.5cqw, 1.3rem); }
.cmt th, .cmt td { padding: 0; text-align: center; overflow: hidden; }
.cmt thead th { height: 5.2em; vertical-align: bottom; padding-bottom: 4px; font-size: .82em; font-weight: 500; color: var(--muted); }
.cmt thead th:first-child { width: 6.3em; }
.cmt thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.cmt tbody th { text-align: left; font-weight: 600; line-height: 1.15; font-size: .92em; }
.cmt tbody th span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmt tbody th small { display: block; font-size: .8em; font-weight: 500; color: var(--st, var(--muted)); }
.cmt tbody th .dotp { margin-right: 4px; }
.cmt tr.pc th:first-child { border-left: 0; }
.cmt td { border-radius: 7px; background: var(--surface); font-weight: 600; }
.cmt td.st-warn, .cmt td.st-bad { background: color-mix(in srgb, var(--st) 34%, var(--surface)); }
.cmt td.st-bad { box-shadow: inset 0 0 0 1.5px var(--st); }
.cmt td.none { color: var(--muted); font-weight: 400; background: transparent; }
.cmt tr.tot td { background: var(--surface2); }
.cmt tr.tot td.st-warn, .cmt tr.tot td.st-bad { background: color-mix(in srgb, var(--st) 34%, var(--surface2)); }
.cmt tbody tr[data-act] { cursor: pointer; }
.cmt tbody tr[data-act]:active td { filter: brightness(1.25); }
.cmfoot { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; }
.cmfoot span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmfoot .off { color: var(--muted); } .cmfoot .st-warn { color: var(--st); flex: none; } .cmfoot .st-ok { color: var(--muted); font-weight: 500; flex: none; }
.cmlast { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: .92rem; }
.cmlast span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cmlast b { color: var(--ink); }
@container (orientation: landscape) {
  .cmt { font-size: clamp(.72rem, 4cqh, 1.3rem); line-height: 1.1; }
  .cmt thead th { height: auto; padding-bottom: 2px; }
  .cmt thead th:first-child { width: 9em; }
  .cmt tbody th { font-size: 1em; }
  .cmt thead th span { writing-mode: horizontal-tb; transform: none; }
  .cmt tbody th span, .cmt tbody th small { display: inline; } .cmt tbody th small { margin-left: 6px; }
  .cmlast { flex-direction: row; gap: 18px; } .cmlast span { flex: 1; min-width: 0; }
}
@container (orientation: landscape) and (max-height: 330px) { .cmlast { display: none; } }
/* Ligne vide : le bouton de tir est bloqué. */
.ammo:disabled, .mt:disabled { opacity: .45; cursor: not-allowed; }
button.ammo:disabled:active, .mt:disabled:active { transform: none; }
.plusc .line b { font-size: 1.1rem; }
