/* =====================================================================
   App mobile Linkivi — fondation (maquettes/app-mobile-fondation.html, 14 nov. 2026)
   Pages /m/* rendues dans MobileLayout. Tout est préfixé .m-app / m- : rien ne touche le site ni le player.
   Charte Corporate déclinée pour le tactile : mêmes couleurs et police, zones de 44 px minimum, rayons plus doux.
   Thème : Automatique (suit le téléphone) par défaut ; html[data-mtheme="light|dark"] force le choix fait dans Moi › Apparence (mobile.js).
   ===================================================================== */

.m-app {
  --m-ink: #0B1F3A; --m-muted: #5A6B80; --m-line: #DDE3EA; --m-line-2: #C5CED9;
  --m-bg: #F5F7FA; --m-surface: #fff; --m-soft: #EDF1F5;
  --m-signal: #3B82C4; --m-signal-bg: #E6F0FA;
  --m-ok: #1E8E5A; --m-ok-bg: #E1F0E8; --m-ok-ink: #155A38;
  --m-warn: #B7791F; --m-warn-bg: #FBF0DC; --m-warn-ink: #7A4F12;
  --m-danger: #C8372D; --m-danger-bg: #FBE4E2; --m-danger-ink: #8A231C;
  --m-scrim: rgba(11,31,58,.38);
  --m-ring: transparent; --m-bezel: #10151D;
  --m-r-sm: 8px; --m-r: 12px; --m-r-lg: 22px;
  --m-mono: "JetBrains Mono", ui-monospace, monospace;
  /* --m-brand : couleur du revendeur (posée par MobileLayout) — en-tête, bouton « + », bouton principal */
}
/* Sombre : palette Nuit du player. Deux blocs identiques (automatique / forcé), pas de mélange possible en CSS pur. */
@media (prefers-color-scheme: dark) {
  html:not([data-mtheme="light"]) .m-app {
    --m-ink: #E8EEF5; --m-muted: #9AAABD; --m-line: #23395A; --m-line-2: #2E4669;
    --m-bg: #071426; --m-surface: #0E2340; --m-soft: #13294A;
    --m-signal: #6AA8E0; --m-signal-bg: #16365C;
    --m-ok: #3CC184; --m-ok-bg: #12382A; --m-ok-ink: #8FE0BA;
    --m-warn: #E0A443; --m-warn-bg: #3A2B12; --m-warn-ink: #F2CD8E;
    --m-danger: #EF6A60; --m-danger-bg: #3D1A1A; --m-danger-ink: #F6B1AB;
    --m-scrim: rgba(0,0,0,.55); --m-ring: rgba(255,255,255,.18); --m-bezel: #050C17;
    color-scheme: dark;
  }
}
html[data-mtheme="dark"] .m-app {
  --m-ink: #E8EEF5; --m-muted: #9AAABD; --m-line: #23395A; --m-line-2: #2E4669;
  --m-bg: #071426; --m-surface: #0E2340; --m-soft: #13294A;
  --m-signal: #6AA8E0; --m-signal-bg: #16365C;
  --m-ok: #3CC184; --m-ok-bg: #12382A; --m-ok-ink: #8FE0BA;
  --m-warn: #E0A443; --m-warn-bg: #3A2B12; --m-warn-ink: #F2CD8E;
  --m-danger: #EF6A60; --m-danger-bg: #3D1A1A; --m-danger-ink: #F6B1AB;
  --m-scrim: rgba(0,0,0,.55); --m-ring: rgba(255,255,255,.18); --m-bezel: #050C17;
  color-scheme: dark;
}

/* ---------- coquille ---------- */
body:has(.m-app) { overflow: hidden; background: var(--m-brand, #0B1F3A); }
.m-app {
  position: fixed; inset: 0; display: flex; flex-direction: column;
  background: var(--m-bg); color: var(--m-ink);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent;
}
.m-app *, .m-app *::before, .m-app *::after { box-sizing: border-box; }
.m-app button { font: inherit; color: inherit; }
.m-app a { color: inherit; text-decoration: none; }
.m-app :focus-visible { outline: 2px solid var(--m-signal); outline-offset: 2px; }
.m-page { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.m-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 24px; scrollbar-width: none; }
.m-body::-webkit-scrollbar { display: none; }

/* ---------- en-tête des onglets Écrans, Contenus, Activités, Moi : fond blanc (surface en thème sombre), trait en dessous (§278) ---------- */
.m-head { flex: none; background: var(--m-surface); color: var(--m-ink); border-bottom: 1px solid var(--m-line); padding: calc(env(safe-area-inset-top) + 8px) 16px 8px; display: flex; align-items: center; gap: 8px; }
.m-head .m-ht { flex: 1; min-width: 0; }
.m-head h1 { font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -.01em; line-height: 1.2; color: var(--m-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-head .m-hact { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--m-ink); margin-right: -8px; }
.m-head .m-hact:active { background: var(--m-soft); }
/* barre compacte (pages internes) : fond blanc et trait, comme l'en-tête des onglets (§278) */
.m-nav { flex: none; background: var(--m-surface); color: var(--m-ink); border-bottom: 1px solid var(--m-line); padding: env(safe-area-inset-top) 4px 0; height: calc(env(safe-area-inset-top) + 52px); display: flex; align-items: center; }
.m-nav h2 { flex: 1; text-align: center; font-size: 17px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-nav .m-hact { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: transparent; color: var(--m-ink); flex: none; }
.m-nav .m-hact:active { background: var(--m-soft); }
.m-nav .m-hsp { width: 44px; flex: none; }

/* ---------- menu hamburger et bouton flottant (maquettes/app-mobile-menu-hamburger.html, 17 nov. 2026) : remplacent la barre d'onglets ---------- */
.m-head .m-burger { margin-left: -8px; margin-right: 0; }
/* tiroir : 80 % de la largeur (320 px au plus), sans ombre (bordure) */
.m-drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 80%; max-width: 320px; z-index: 51; background: var(--m-surface); color: var(--m-ink); border-right: 1px solid var(--m-line); display: flex; flex-direction: column; padding-top: calc(env(safe-area-inset-top) + 16px); animation: m-slide .2s cubic-bezier(.2,.8,.2,1); }
.m-drawer .m-dlogo { padding: 6px 20px 14px; display: flex; align-items: center; gap: 12px; }
.m-drawer .m-dlogo .m-logo { width: 34px; height: 34px; border-radius: 9px; font-size: 16px; }
.m-drawer .m-dlogo .m-logo-n { font-size: 18px; flex: 1; }
.m-drawer .m-dplan { margin-left: auto; flex: none; gap: 4px; font-size: 12px; padding: 3px 9px 3px 7px; }
.m-drawer .m-dplan.pro { background: var(--m-warn-bg); color: var(--m-warn-ink); }
.m-drawer .m-dplan.ess { background: var(--m-signal-bg); color: var(--m-ink); }
.m-drawer .m-dh { padding: 16px 20px 16px; border-bottom: 1px solid var(--m-line); }
.m-drawer .m-dh b { display: block; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.m-drawer .m-dh small { display: block; font-size: 13px; color: var(--m-muted); margin-top: 2px; }
.m-drawer nav { padding: 10px 8px; flex: 1; overflow: auto; }
.m-drawer .m-di { display: flex; align-items: center; gap: 14px; height: 52px; padding: 0 14px; border-radius: var(--m-r); color: var(--m-ink); font-size: 15px; position: relative; width: 100%; border: 0; background: none; text-align: left; }
.m-drawer .m-di svg { color: var(--m-muted); flex: none; }
.m-drawer .m-di.active { background: var(--m-signal-bg); font-weight: 500; }
.m-drawer .m-di.active svg { color: var(--m-signal); }
.m-drawer .m-di .m-bd { width: 9px; height: 9px; border-radius: 50%; background: var(--m-danger); margin-left: auto; }
.m-drawer .m-dsep { height: 1px; background: var(--m-line); margin: 8px 14px; }
.m-drawer .m-df { margin: 0; padding: 8px 8px calc(env(safe-area-inset-bottom) + 16px); border-top: 1px solid var(--m-line); }
.m-drawer .m-df .m-di.dng, .m-drawer .m-df .m-di.dng svg { color: var(--m-danger); }
@keyframes m-slide { from { transform: translateX(-100%); } to { transform: none; } }
/* bouton flottant « Créer » : reprend le « + » (couleur du revendeur, seule ombre autorisée) */
.m-app .m-fab { position: fixed; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 24px); width: 56px; height: 56px; border-radius: 18px; border: 0; padding: 0; background: var(--m-brand, #0B1F3A); color: #fff; display: grid; place-items: center; z-index: 40; box-shadow: 0 4px 12px rgba(11,31,58,.25), 0 0 0 1px var(--m-ring); transition: transform .15s; }
.m-app .m-fab[aria-expanded="true"] { transform: rotate(45deg); }
/* de la place sous le bouton pour que la dernière carte ne soit pas masquée */
.m-app:has(.m-fab) .m-body { padding-bottom: 96px; }

/* ---------- feuille du bas ---------- */
.m-scrim { position: fixed; inset: 0; background: var(--m-scrim); z-index: 50; animation: m-fade .18s ease-out; }
.m-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 51; max-height: 88vh; overflow-y: auto; background: var(--m-surface); color: var(--m-ink); border-radius: var(--m-r-lg) var(--m-r-lg) 0 0; padding: 8px 16px calc(env(safe-area-inset-bottom) + 24px); box-shadow: 0 -8px 30px rgba(11,31,58,.18); animation: m-up .22s cubic-bezier(.2,.8,.2,1); }
.m-sheet .m-grab { width: 38px; height: 5px; border-radius: 3px; background: var(--m-line-2); margin: 0 auto 12px; }
.m-sheet .m-sh { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.m-sheet .m-sh > div { flex: 1; min-width: 0; }
.m-sheet h3 { font-size: 18px; font-weight: 500; margin: 0; }
.m-sheet .m-sub { font-size: 13px; color: var(--m-muted); margin: 3px 0 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.m-sheet .m-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--m-soft); color: var(--m-ink); display: grid; place-items: center; flex: none; }
@keyframes m-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes m-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- sections, puces, segments ---------- */
.m-sect { display: flex; align-items: baseline; justify-content: space-between; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted); margin: 20px 2px 8px; font-weight: 500; }
.m-sect:first-child { margin-top: 2px; }
.m-chips { display: flex; gap: 8px; margin: 0 -16px 14px; padding: 0 16px; overflow-x: auto; scrollbar-width: none; }
.m-chips::-webkit-scrollbar { display: none; }
.m-chip { flex: none; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--m-line-2); display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; background: var(--m-surface); color: var(--m-ink); }
.m-chip.on { background: var(--m-ink); border-color: var(--m-ink); color: var(--m-bg); }
.m-chip .n { font-family: var(--m-mono); font-size: 12px; opacity: .7; }
.m-seg { display: flex; background: var(--m-soft); border-radius: 10px; padding: 3px; margin-bottom: 14px; }
.m-seg button { flex: 1; height: 36px; border: 0; background: none; border-radius: 8px; font-size: 14px; color: var(--m-muted); }
.m-seg button.on { background: var(--m-surface); color: var(--m-ink); font-weight: 500; box-shadow: 0 1px 3px rgba(11,31,58,.12); }

/* ---------- bandeau d'alerte ---------- */
.m-alert { display: flex; gap: 12px; align-items: center; background: var(--m-danger-bg); color: var(--m-danger-ink); border-radius: var(--m-r); padding: 12px 14px; margin: 0 0 14px; width: 100%; border: 0; text-align: left; }
.m-alert .m-ab { width: 34px; height: 34px; border-radius: 50%; background: var(--m-danger); color: #fff; display: grid; place-items: center; flex: none; }
.m-alert b { font-weight: 500; display: block; font-size: 14.5px; }
.m-alert small { font-size: 12.5px; opacity: .9; display: block; }
.m-alert > span:nth-child(2) { flex: 1; min-width: 0; }

/* ---------- carte écran : variante B « vitrine » (maquettes/app-mobile-carte-ecran.html, §267) ----------
   Une TV posée sur une scène grise, la pastille d'état dessus ; dessous le nom, le détail et l'action rapide (ou le chevron). */
.m-sc { display: flex; flex-direction: column; width: 100%; text-align: left; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r); margin-bottom: 12px; overflow: hidden; color: var(--m-ink); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-sc:active { background: var(--m-soft); }
.m-sc:focus-visible { outline: 2px solid var(--m-signal); outline-offset: 2px; }
.m-stage { position: relative; display: grid; place-items: center; height: 156px; background: var(--m-soft); border-bottom: 1px solid var(--m-line); }
.m-tv { position: relative; display: flex; flex-direction: column; align-items: center; }
.m-tv::after { content: ""; width: 54px; height: 4px; border-radius: 2px; background: var(--m-line-2); margin-top: 5px; }   /* pied de la TV */
.m-tv .m-pn { display: block; width: 224px; aspect-ratio: 16/9; border-radius: 6px; background: #0B1F3A; overflow: hidden; position: relative; border: 4px solid var(--m-bezel); box-shadow: 0 0 0 1px var(--m-ring); }
.m-tv.por .m-pn { width: auto; height: 126px; aspect-ratio: 9/16; }
.m-tv .m-pn > img, .m-tv .m-pn > video, .m-tv .m-pn > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-tv .m-pn.off { filter: grayscale(1) brightness(.75); }
.m-tv .m-pn.off::after { content: ""; position: absolute; inset: 0; background: rgba(11,31,58,.45); }
.m-tv .m-pn.dim > :not(.m-glyph) { filter: brightness(.22) saturate(.6); }   /* veille : écran éteint, pas grisé */
.m-app .m-none { display: grid !important; place-items: center; color: #9AAABD; width: 100%; height: 100%; }
.m-tv .m-pn > .m-glyph { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; z-index: 2; }
.m-glyph i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgba(11,31,58,.62); font-style: normal; }
/* mur : ses écrans côte à côte, une seule carte */
.m-mur { display: flex; gap: 3px; align-items: center; }
.m-tv.wall .m-tile-w { flex: none; display: block; }
.m-tv.wall .m-pn { width: 100%; border-width: 3px; border-radius: 4px; }
.m-ov { position: absolute; left: 10px; top: 10px; }
.m-row { display: flex; align-items: center; gap: 10px; padding: 10px 10px 11px 14px; min-height: 62px; }
.m-sc .m-tx { flex: 1; min-width: 0; }
.m-sc h3 { margin: 0; font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-sc p { margin: 2px 0 0; font-size: 13px; color: var(--m-muted); white-space: nowrap; overflow: hidden; display: flex; align-items: center; gap: 5px; }
.m-sc p > .l { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.m-sc p.err { color: var(--m-danger-ink); }
.m-sc p.wrn { color: var(--m-warn-ink); }
@media (prefers-color-scheme: dark) { html:not([data-mtheme="light"]) .m-sc p.err { color: var(--m-danger); } html:not([data-mtheme="light"]) .m-sc p.wrn { color: var(--m-warn); } }
html[data-mtheme="dark"] .m-sc p.err { color: var(--m-danger); }
html[data-mtheme="dark"] .m-sc p.wrn { color: var(--m-warn); }
.m-flag { color: var(--m-signal); display: inline-flex; align-items: center; gap: 3px; flex: none; }
.m-sc .m-chev { color: var(--m-line-2); flex: none; display: grid; }
/* carte en 2 colonnes (§276, maquette ecrans-carte-deux-colonnes.html) : petite TV à gauche, nom, liste et état à droite — 78 px au lieu de 221 */
.m-sc.line { flex-direction: row; align-items: center; gap: 12px; padding: 6px 8px 6px 6px; margin-bottom: 8px; }
.m-sc.line .m-stage { flex: none; width: 100px; height: 64px; border-bottom: 0; border-radius: var(--m-r-sm); }
.m-sc.line .m-tv::after { width: 24px; height: 3px; margin-top: 3px; }
.m-sc.line .m-tv .m-pn { width: 80px; border-width: 3px; border-radius: 4px; }
.m-sc.line .m-tv.por .m-pn { width: auto; height: 50px; }
.m-sc.line .m-tv.wall .m-pn { width: 100%; border-width: 2px; border-radius: 3px; }
.m-sc.line .m-mur { gap: 2px; }
.m-sc.line .m-glyph i { width: 20px; height: 20px; }
.m-sc.line .m-glyph svg { width: 11px; height: 11px; }
.m-sc.line h3 { font-size: 15px; line-height: 20px; }
.m-sc.line p { margin-top: 1px; line-height: 18px; }
.m-sc.line .m-chev { margin-left: -4px; }
.m-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m-ok); flex: none; display: inline-block; }
.m-dot.off { background: var(--m-danger); }
.m-dot.warn { background: var(--m-warn); }
/* interrupteur « Voir hors ligne » dans l'en-tête, à droite du titre : puce bordée, pastille rouge chiffrée */
.m-head .m-offt { flex: none; align-self: flex-end; margin: 0 -6px -2px 0; height: 36px; padding: 0 6px 0 7px; border-radius: 18px; border: 1px solid var(--m-line-2); background: var(--m-surface); color: var(--m-ink); display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: 13.5px; font-weight: 500; position: relative; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.m-head .m-offt::after { content: ""; position: absolute; inset: -4px -2px; }   /* 44 px pour le doigt */
.m-head .m-offt:active { background: var(--m-soft); }
.m-cnt { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--m-danger); color: #fff; font-family: var(--m-mono); font-size: 12px; display: grid; place-items: center; box-shadow: 0 0 0 1.5px var(--m-surface); }
.m-switch.sm { width: 34px; height: 20px; border-radius: 10px; }
.m-switch.sm::after { width: 14px; height: 14px; top: 3px; left: 3px; }
.m-switch.sm.on::after { transform: translateX(14px); }
.m-head .m-offt .m-switch.on { background: var(--m-brand, #0B1F3A); }
/* action rapide : discrète, jamais la couleur du revendeur ; 32 px visibles, 44 px pour le doigt */
.m-app .m-qa { height: 32px; padding: 0 12px 0 10px; border-radius: 16px; border: 1px solid var(--m-line-2); background: var(--m-surface); color: var(--m-ink); font: inherit; font-size: 13.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; position: relative; flex: none; }
.m-qa::after { content: ""; position: absolute; inset: -6px -4px; }
.m-qa:active { background: var(--m-soft); }
.m-qa[aria-disabled="true"] { opacity: .6; }
.m-spin.m-spin-s { width: 14px; height: 14px; border-width: 2px; border-color: var(--m-line-2); border-top-color: var(--m-ink); }

/* aperçu héros (feuille d'un écran) */
.m-hero { border-radius: var(--m-r); overflow: hidden; position: relative; aspect-ratio: 16/9; background: #0B1F3A; margin-bottom: 12px; }
.m-hero.por { aspect-ratio: auto; height: 260px; display: flex; justify-content: center; }
.m-hero.por > .m-hin { height: 100%; aspect-ratio: 9/16; position: relative; overflow: hidden; }
.m-hero > .m-hin { position: absolute; inset: 0; }
.m-hero.por > .m-hin { position: relative; inset: auto; }
.m-hero .m-hin > img, .m-hero .m-hin > video, .m-hero .m-hin > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-hero .m-live { position: absolute; left: 10px; top: 10px; font-size: 11.5px; background: rgba(11,31,58,.72); color: #fff; padding: 3px 9px 3px 8px; border-radius: 12px; display: flex; align-items: center; gap: 6px; z-index: 1; }
.m-hero .m-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3CC184; }
.m-hero .m-live.off::before { background: #EF6A60; }

/* ---------- pastilles d'état ---------- */
.m-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 12px; }
.m-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.m-pill.ok { background: var(--m-ok-bg); color: var(--m-ok-ink); }
.m-pill.warn { background: var(--m-warn-bg); color: var(--m-warn-ink); }
.m-pill.off { background: var(--m-danger-bg); color: var(--m-danger-ink); }
.m-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; padding: 2px 7px; border-radius: 10px; background: var(--m-soft); color: var(--m-muted); }

/* ---------- listes ---------- */
.m-list { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r); overflow: hidden; }
.m-li { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 0; border-top: 1px solid var(--m-line); width: 100%; background: none; text-align: left; }
.m-li:first-child { border-top: 0; }
button.m-li:active, a.m-li:active { background: var(--m-soft); }
.m-li .m-ico { width: 36px; height: 36px; border-radius: 10px; background: var(--m-soft); color: var(--m-ink); display: grid; place-items: center; flex: none; }
.m-li .m-ico.red { background: var(--m-danger-bg); color: var(--m-danger); }
.m-li .m-ico.ok { background: var(--m-ok-bg); color: var(--m-ok); }
.m-li .m-ico.warn { background: var(--m-warn-bg); color: var(--m-warn); }
.m-li .m-ico.sig { background: var(--m-signal-bg); color: var(--m-signal); }
.m-li .m-tx { flex: 1; min-width: 0; }
.m-li .m-tx b { display: block; font-weight: 400; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-li .m-tx small { display: block; font-size: 12.5px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-li .m-tx .wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.m-li .m-val { font-size: 14px; color: var(--m-muted); flex: none; max-width: 45%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-li .m-chev { color: var(--m-line-2); flex: none; }
.m-li .m-when { font-size: 12px; color: var(--m-muted); font-family: var(--m-mono); align-self: flex-start; margin-top: 4px; flex: none; }
.m-li .m-th { width: 52px; height: 38px; border-radius: 6px; overflow: hidden; flex: none; background: var(--m-soft); position: relative; }
.m-li .m-th > img, .m-li .m-th > video, .m-li .m-th > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-li.unread .m-tx b { font-weight: 500; }
.m-li.unread::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--m-signal); flex: none; }
.m-li.dng .m-tx b { color: var(--m-danger); }
.m-li .m-check { color: var(--m-signal); flex: none; }
.m-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--m-signal-bg); color: var(--m-signal); display: grid; place-items: center; font-size: 16px; font-weight: 500; flex: none; }

/* ---------- mosaïque ---------- */
.m-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 -12px; }
.m-tile { aspect-ratio: 1; position: relative; overflow: hidden; border-radius: 4px; background: var(--m-soft); }
.m-tile > img, .m-tile > video, .m-tile > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-tile .m-tt { position: absolute; left: 5px; bottom: 5px; right: 5px; font-size: 10.5px; color: #fff; background: rgba(11,31,58,.62); padding: 1px 5px; border-radius: 3px; width: auto; height: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-self: start; max-width: calc(100% - 10px); }

/* ---------- grille d'actions (feuille « + ») ---------- */
.m-mk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-mk > a, .m-mk > button { background: var(--m-soft); border: 0; border-radius: var(--m-r); padding: 14px; min-height: 100px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; position: relative; color: var(--m-ink); }
.m-mk b { font-weight: 500; font-size: 15px; line-height: 1.25; display: block; }
.m-mk small { font-size: 12px; color: var(--m-muted); display: block; }
.m-mk i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-style: normal; color: #fff; margin-bottom: 10px; }
.m-mk .m-hero-act { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; min-height: 0; background: var(--m-brand, #0B1F3A); color: #fff; }
.m-mk .m-hero-act i { margin: 0; background: rgba(255,255,255,.14); }
.m-mk .m-hero-act small { color: inherit; opacity: .75; }
.m-mk .m-hero-act > span:not(.m-soon) { flex: 1; }
.m-mk [aria-disabled="true"] { opacity: .62; }
.m-mk .m-soon { position: absolute; top: 12px; right: 12px; }
.m-mk .m-hero-act .m-soon { position: static; background: rgba(255,255,255,.16); color: #fff; }

/* ---------- boutons ---------- */
.m-app .m-btn { height: 50px; border-radius: var(--m-r); border: 0; background: var(--m-brand, #0B1F3A); color: #fff; font-weight: 500; font-size: 15.5px; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; box-shadow: 0 0 0 1px var(--m-ring); }
.m-app .m-btn.ghost { background: var(--m-surface); color: var(--m-ink); border: 1px solid var(--m-line-2); box-shadow: none; }
.m-app .m-btn.dng { background: var(--m-danger); color: #fff; }
.m-btn + .m-btn { margin-top: 10px; }

/* ---------- états ---------- */
.m-empty { text-align: center; padding: 40px 20px 10px; }
.m-empty .m-art { width: 96px; height: 96px; border-radius: 28px; background: var(--m-soft); color: var(--m-muted); display: grid; place-items: center; margin: 0 auto 16px; }
.m-empty h3 { font-size: 18px; font-weight: 500; margin: 0 0 6px; }
.m-empty p { font-size: 14px; color: var(--m-muted); margin: 0 auto 18px; max-width: 290px; }
.m-hint { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px dashed var(--m-line-2); border-radius: var(--m-r); font-size: 13px; color: var(--m-muted); margin-top: 16px; }
.m-hint b { font-weight: 500; color: var(--m-ink); }
.m-hint svg { flex: none; }

/* toasts (composant commun) : au-dessus du bouton flottant quand il est là */
.m-app .toasts { top: auto; bottom: calc(env(safe-area-inset-bottom) + 24px); }
.m-app:has(.m-fab) .toasts { bottom: calc(env(safe-area-inset-bottom) + 94px); }

/* ---------- Formulaires (Connecter un écran, /m/connecter) ---------- */
.m-lead { margin: 2px 0 16px; font-size: 14px; line-height: 1.45; color: var(--m-muted); }
.m-field { display: block; margin-bottom: 14px; }
.m-field > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: var(--m-muted); }
.m-field > input, .m-field > select { display: block; width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--m-line-2); border-radius: var(--m-r); background: var(--m-surface); color: var(--m-ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.m-field > select { background-image: linear-gradient(45deg, transparent 50%, var(--m-muted) 50%), linear-gradient(135deg, var(--m-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.m-field > input:focus, .m-field > select:focus { outline: none; border-color: var(--m-signal); box-shadow: 0 0 0 3px var(--m-signal-bg); }
.m-field > .m-seg { margin-bottom: 0; }
.m-app .m-code { height: 60px; font-family: var(--m-mono); font-size: 26px; letter-spacing: .3em; text-align: center; }
.m-err { margin: -4px 0 14px; font-size: 14px; color: var(--m-danger); }
.m-app .m-btn:disabled { opacity: .5; }
.m-sheet .m-lead { margin: 12px 0 14px; }

/* ---------- Interrupteur (Moi › Verrouillage) ---------- */
.m-switch { flex: none; position: relative; width: 46px; height: 28px; border-radius: 14px; background: var(--m-line-2); transition: background .15s; }
.m-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(11,31,58,.25); transition: transform .15s; }
.m-switch.on { background: var(--m-ok); }
.m-switch.on::after { transform: translateX(18px); }
.m-li:disabled .m-switch { opacity: .5; }

/* ---------- feuille d'un écran : dépannage (§262) ---------- */
/* aperçu du direct : l'image remise dans le sens de l'écran (LivePanel.ImgStyle, unités cqw / cqh) */
.m-hero .m-hin.cap { container-type: size; background: #0B1F3A; }
.m-hero .m-hin.cap > img { object-fit: contain; }
.m-app .m-shot { position: absolute; right: 10px; bottom: 10px; z-index: 2; height: 36px; padding: 0 12px; border: 0; border-radius: 18px; background: rgba(11,31,58,.78); color: #fff; font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.m-app .m-shot[aria-disabled="true"] { opacity: .55; }
.m-wait { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(11,31,58,.55); color: #fff; font-size: 13px; }
.m-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: m-turn .8s linear infinite; }
@keyframes m-turn { to { transform: rotate(360deg); } }
.m-app .m-pub { margin-top: 12px; }

/* tuiles de commandes : trois par ligne, grisées avec leur raison au toucher */
.m-acts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-acts > button { min-height: 88px; padding: 10px 6px; border: 1px solid var(--m-line); border-radius: var(--m-r); background: var(--m-surface); color: var(--m-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; font-size: 12.5px; line-height: 1.25; }
.m-acts > button:active { background: var(--m-soft); }
.m-acts i { width: 38px; height: 38px; border-radius: 50%; background: var(--m-soft); display: grid; place-items: center; font-style: normal; }
.m-acts > button.dng { color: var(--m-danger); }
.m-acts > button.dng i { background: var(--m-danger-bg); }
.m-acts > button[aria-disabled="true"] { opacity: .45; }

/* choix dans un volet (durée de pause, liste diffusée) */
.m-pick { margin-bottom: 14px; }
.m-pick .m-li[aria-checked="true"] .m-tx b { font-weight: 500; }

/* ---------- importer depuis le téléphone (§263) ---------- */
.m-imp { display: grid; gap: 10px; margin-bottom: 16px; }
.m-app .m-imp-big { display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px; border-radius: var(--m-r); background: var(--m-brand, #0B1F3A); color: #fff; cursor: pointer; }
.m-imp-big i { width: 48px; height: 48px; border-radius: 14px; background: rgba(255,255,255,.14); display: grid; place-items: center; font-style: normal; flex: none; }
.m-imp-big b { display: block; font-weight: 500; font-size: 16px; }
.m-imp-big small { display: block; font-size: 12.5px; opacity: .75; }
.m-app .m-imp-alt { display: flex; align-items: center; justify-content: center; gap: 8px; height: 50px; border-radius: var(--m-r); border: 1px solid var(--m-line-2); background: var(--m-surface); color: var(--m-ink); font-weight: 500; font-size: 15px; cursor: pointer; }
.m-job .m-tx small { white-space: normal; }
.m-job.error .m-tx small { color: var(--m-danger); }
.m-bar { display: block; height: 4px; border-radius: 2px; background: var(--m-soft); overflow: hidden; margin-top: 6px; }
.m-bar > span { display: block; height: 100%; background: var(--m-signal); transition: width .2s; }
.m-bar.indet > span { width: 35% !important; animation: m-indet 1.1s ease-in-out infinite; }
@keyframes m-indet { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
/* ---------- Importer puis « Sur quel écran ? » (§279, maquettes/app-mobile-import-liste.html, variante 2) ---------- */
.m-imp.done .m-imp-big { min-height: 60px; padding: 8px 14px; }
.m-imp.done .m-imp-big i { width: 40px; height: 40px; border-radius: 12px; }
.m-imp-foot { flex: none; padding: 12px 16px; background: var(--m-surface); border-top: 1px solid var(--m-line); }
/* carte d'écran dans la feuille : même carte que la page Écrans, « + » à droite, la première en bordure Signal */
.m-sheet .m-sc.line { border: 1px solid var(--m-line); font: inherit; cursor: pointer; }
.m-sheet .m-sc.line.reco { border: 1.5px solid var(--m-signal); }
.m-sheet .m-sc.line.sel { border-color: var(--m-signal); background: var(--m-signal-bg); }
.m-sc .m-also { font-size: 12px; color: var(--m-muted); display: block; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-lc-add { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 1px solid var(--m-line-2); color: var(--m-ink); margin-right: 2px; }
.m-sc.line.reco .m-lc-add, .m-lc-add.on { border-color: var(--m-signal); color: var(--m-signal); }
.m-tv .m-pn > .m-none { color: #9AAABD; }
/* listes qui ne passent sur aucun écran : discrètes */
.m-pick.quiet .m-li { min-height: 52px; }
.m-pick.quiet .m-th { width: 44px; height: 30px; opacity: .75; }
.m-pick.quiet .m-tx b { font-size: 14.5px; color: var(--m-muted); }
.m-pick.quiet .m-add { color: var(--m-muted); flex: none; display: grid; }
.m-pick.quiet .m-more { color: var(--m-signal); }
.m-pick.quiet .m-more .m-tx b { color: var(--m-signal); font-size: 14px; }
.m-empty.sm { padding: 10px 12px 4px; }
.m-empty.sm .m-art { width: 72px; height: 72px; border-radius: 22px; margin-bottom: 12px; }
/* confirmation : petite TV par écran, état en ligne / hors ligne */
.m-li .m-th.tv { width: 46px; height: 30px; border: 3px solid var(--m-bezel); border-radius: 4px; box-shadow: 0 0 0 1px var(--m-ring); background: #0B1F3A; }
.m-li .m-th.tv.off > * { filter: grayscale(1) brightness(.7); }
.m-li .m-st { font-size: 12.5px; display: flex; align-items: center; gap: 6px; color: var(--m-muted); }
.m-li .m-st.err { color: var(--m-danger-ink); }
.m-done-ic { width: 40px; height: 40px; border-radius: 50%; background: var(--m-ok-bg); color: var(--m-ok); display: grid; place-items: center; flex: none; }
.m-sheet .m-sh.ok { align-items: center; }
.m-sheet .m-btn + .m-btn { margin-top: 10px; }
.m-foot-note { font-size: 12.5px; color: var(--m-muted); text-align: center; margin: 10px 0 0; }
.m-job .m-x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--m-soft); color: var(--m-ink); display: grid; place-items: center; flex: none; }

/* ---------- Contenus : cartes sur une colonne, visionneuse plein écran (§265) ---------- */
.m-app button.m-tile { border: 0; padding: 0; color: inherit; }
.m-tile .m-badge { position: absolute; right: 5px; top: 5px; width: auto; height: auto; font-size: 10px; font-weight: 500; color: #fff; background: rgba(11,31,58,.72); padding: 1px 6px; border-radius: 3px; }
.m-card { background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r); overflow: hidden; margin-bottom: 12px; }
.m-app .m-card-pv { display: block; width: 100%; aspect-ratio: 16/9; border: 0; padding: 0; background: #0B1F3A; position: relative; overflow: hidden; }
.m-card-pv > *, .m-card-pv > img, .m-card-pv > video { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-card-tx { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 14px; }
.m-card-tx > span, .m-app .m-card-tx > a { flex: 1; min-width: 0; color: var(--m-ink); }
.m-card-tx b { display: block; font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-card-tx small { display: block; font-size: 12.5px; color: var(--m-muted); }
.m-card-tx .m-hact, .m-app .m-card-tx .m-hact { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: var(--m-muted); display: grid; place-items: center; flex: none; }
.m-card-tx .m-hact:active { background: var(--m-soft); }

/* visionneuse : sous les feuilles (renommer s'ouvre par-dessus), au-dessus des onglets */
.m-viewer { position: fixed; inset: 0; z-index: 45; background: #071426; color: #fff; display: flex; flex-direction: column; animation: m-fade .15s ease-out; }
.m-vh { flex: none; display: flex; align-items: center; padding: env(safe-area-inset-top) 4px 0; height: calc(env(safe-area-inset-top) + 52px); }
.m-vh h2 { flex: 1; min-width: 0; text-align: center; font-size: 16px; font-weight: 500; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-vh .m-hact { width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; color: #fff; display: grid; place-items: center; flex: none; }
.m-vh .m-hsp { width: 44px; flex: none; }
.m-vstage { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: center; justify-content: center; -webkit-overflow-scrolling: touch; }
.m-vstage.zoomed { display: block; }
.m-vstage > img { max-width: none; height: auto; display: block; margin: auto; }
.m-vstage:not(.zoomed) > img, .m-vpane img { max-width: 100%; max-height: 100%; width: auto !important; height: auto; object-fit: contain; }
.m-vstage video { max-width: 100%; max-height: 100%; }
/* balayage de l'aperçu : trois volets (précédent, courant, suivant) que mobile.js fait glisser avec le doigt */
.m-vstage[data-swipe-media]:not(.zoomed) { overflow: hidden; touch-action: pan-y; }
.m-vtrack { position: relative; flex: none; align-self: stretch; width: 100%; will-change: transform; }
.m-vpane { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.m-vpane.prev { transform: translateX(-100%); } .m-vpane.next { transform: translateX(100%); }
/* onglets de Contenus : le contenu suit le doigt ; pas de défilement latéral parasite */
.m-body:has(> [data-swipe-pane]) { overflow-x: hidden; }
.m-tabtrack { display: flex; align-items: flex-start; margin: 0 -16px; transform: translateX(calc(var(--i, 0) * -100%)); transition: transform .22s cubic-bezier(.2,.8,.2,1); will-change: transform; }
.m-tabpane { flex: 0 0 100%; min-width: 0; padding: 0 16px; }
/* hors geste, seul l'onglet affiché compte dans la hauteur de la page ; pendant le geste (mobile.js ajoute .dragging), les voisins se montrent */
.m-tabtrack:not(.dragging) > .m-tabpane:not(.on) { height: 0; overflow: hidden; visibility: hidden; }
.m-vstage.m-vcompo { padding: 0 12px; }
.m-vstage.m-vcompo > * { width: 100%; aspect-ratio: 16/9; }
.m-vmsg { color: #9AAABD; font-size: 14px; }
.m-vtools { flex: none; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 10px 12px calc(env(safe-area-inset-bottom) + 12px); }
.m-vtools > button, .m-app .m-vtools > a { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; }
.m-vtools > button.on { background: #fff; color: #071426; }
.m-vtools > button:disabled { opacity: .35; }
.m-vz { min-width: 58px; text-align: center; font-family: var(--m-mono); font-size: 12px; color: #C9D3DF; }
.m-vinfo { flex: none; max-height: 42vh; overflow-y: auto; padding: 0 12px calc(env(safe-area-inset-bottom) + 12px); }
.m-vinfo .m-list { background: #0E2340; border-color: #23395A; color: #E8EEF5; }
.m-vinfo .m-li { border-top-color: #23395A; min-height: 48px; }
.m-vinfo .m-li .m-tx small { color: #9AAABD; }
.m-vnote { flex: none; text-align: center; font-size: 13px; color: #9AAABD; padding: 12px 16px calc(env(safe-area-inset-bottom) + 16px); }

/* ---------- détail d'une liste (§266) ---------- */
.m-lsum { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--m-muted); margin: 2px 2px 12px; }
.m-lsum b { color: var(--m-ink); font-weight: 500; font-family: var(--m-mono); }
.m-app .m-lpub { margin-bottom: 14px; }
.m-flow .m-li { gap: 10px; }
.m-flow .m-num { width: 20px; flex: none; text-align: right; font-family: var(--m-mono); font-size: 12px; color: var(--m-muted); }
.m-flow .m-li.off .m-th, .m-flow .m-li.off .m-tx b { opacity: .45; }
.m-flow .m-li:disabled { color: inherit; opacity: 1; }
.m-flow .m-li > svg { color: var(--m-muted); flex: none; }
.m-app .m-ladd { margin-top: 14px; }
.m-durs { margin-bottom: 10px; flex-wrap: wrap; overflow: visible; }
.m-dur { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.m-dur label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--m-muted); }
.m-dur input { width: 70px; height: 44px; border: 1px solid var(--m-line-2); border-radius: var(--m-r-sm); background: var(--m-surface); color: var(--m-ink); font: inherit; font-size: 16px; text-align: center; font-family: var(--m-mono); }
.m-app .m-dur .m-btn { flex: 1; height: 44px; margin: 0; }

/* ---------- Connexion de l'app (§269, maquettes/app-mobile-connexion.html) ---------- */
/* bandeau de connexion : fond blanc et trait (§278), logo seul, pas de mur d'écrans */
.m-gate-top { flex: none; background: var(--m-surface); color: var(--m-ink); border-bottom: 1px solid var(--m-line); padding: calc(env(safe-area-inset-top) + 22px) 24px 26px; display: flex; align-items: center; gap: 12px; }
.m-logo { width: 40px; height: 40px; border-radius: 11px; background: var(--m-soft); display: grid; place-items: center; font-weight: 500; font-size: 18px; flex: none; overflow: hidden; }
.m-logo img { width: 100%; height: 100%; object-fit: contain; }
/* logo Linkivi au point orange : bleu nuit en clair, blanc en sombre */
.m-wordmark { display: block; height: 30px; width: auto; }
.m-wordmark.night { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-mtheme="light"]) .m-wordmark.day { display: none; } html:not([data-mtheme="light"]) .m-wordmark.night { display: block; } }
html[data-mtheme="dark"] .m-wordmark.day { display: none; }
html[data-mtheme="dark"] .m-wordmark.night { display: block; }
.m-logo-n { font-size: 20px; font-weight: 500; letter-spacing: -.01em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-gate { flex: 1; display: flex; flex-direction: column; padding: 24px 16px calc(env(safe-area-inset-bottom) + 34px); min-height: 0; overflow-y: auto; }
.m-gate[hidden] { display: none; }
.m-gate h1 { font-size: 28px; font-weight: 500; margin: 0 0 4px; letter-spacing: -.015em; }
.m-gate .m-or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--m-muted); margin: 18px 0; }
.m-gate .m-or::before, .m-gate .m-or::after { content: ""; flex: 1; height: 1px; background: var(--m-line); }
.m-app .m-btn.sso { background: var(--m-surface); color: var(--m-ink); border: 1px solid var(--m-line-2); box-shadow: none; gap: 10px; }
.m-app .m-btn.sso svg, .m-app .m-btn.sso img { width: 18px; height: 18px; }
.m-link { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; color: var(--m-signal); font-weight: 500; }
.m-app .m-link { color: var(--m-signal); }
.m-app .m-link.mute { color: var(--m-muted); font-weight: 400; }
.m-fill { flex: 1; }
/* mot de passe : œil dans le champ */
.m-pw { position: relative; display: block; }
.m-pw > input { display: block; width: 100%; height: 50px; padding: 0 48px 0 14px; border: 1px solid var(--m-line-2); border-radius: var(--m-r); background: var(--m-surface); color: var(--m-ink); font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none; }
.m-pw > input:focus { outline: none; border-color: var(--m-signal); box-shadow: 0 0 0 3px var(--m-signal-bg); }
.m-app .m-eye { position: absolute; right: 3px; top: 3px; width: 44px; height: 44px; border: 0; background: none; color: var(--m-muted); display: grid; place-items: center; }
.m-app .m-eye[aria-pressed="true"] { color: var(--m-signal); }
/* « Bonjour Anne » */
.m-hello { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 28px; }
.m-hello .m-avatar { width: 76px; height: 76px; font-size: 26px; margin-bottom: 14px; }
.m-hello h1 { margin: 0; }
.m-hello p { margin: 2px 0 0; color: var(--m-muted); font-size: 14px; }
.m-bio { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: auto; }
.m-app .m-bio-btn { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--m-brand, #0B1F3A); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--m-ring), 0 0 0 10px var(--m-soft); }
.m-bio-btn svg { width: 48px; height: 48px; stroke-width: 1.5; }
.m-bio .lbl { font-size: 15px; font-weight: 500; text-align: center; }
.m-bio .lbl[hidden] { display: none; }
.m-bio .lbl small { display: block; font-weight: 400; font-size: 13px; color: var(--m-muted); margin-top: 2px; }
.m-bio .lbl small[hidden] { display: none; }
.m-app .m-bio-btn.bad { background: var(--m-danger-bg); color: var(--m-danger); box-shadow: 0 0 0 10px var(--m-soft); }   /* en échec, le bouton principal devient Réessayer */
.m-bio .err { color: var(--m-danger); font-weight: 500; }
/* état bloquant (appareil retiré, empreintes changées) */
.m-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 36px 8px 0; }
.m-state .m-sico { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; background: var(--m-danger-bg); color: var(--m-danger); }
.m-state .m-sico.warn { background: var(--m-warn-bg); color: var(--m-warn); }
.m-state h2 { font-size: 22px; font-weight: 500; margin: 0 0 6px; letter-spacing: -.01em; }
.m-state p { margin: 0; color: var(--m-muted); font-size: 14.5px; max-width: 300px; }
.m-who { display: flex; align-items: center; gap: 12px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r); padding: 10px 14px; margin-top: 22px; width: 100%; text-align: left; }
.m-sheet .m-who { margin-top: 0; }
.m-who .m-avatar { width: 36px; height: 36px; font-size: 13px; }
.m-who > span:last-child { min-width: 0; }
.m-who b { display: block; font-weight: 500; font-size: 14.5px; }
.m-who small { display: block; font-size: 12.5px; color: var(--m-muted); overflow: hidden; text-overflow: ellipsis; }
.m-scrim[hidden], .m-sheet[hidden] { display: none; }
.m-sheet > p.m-sub { display: block; margin: 3px 0 14px; }
/* message court en bas de la page de connexion (« Ce téléphone a été oublié. ») */
.m-toast { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 24px); background: #0B1F3A; color: #fff; border-radius: var(--m-r); padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 14px; box-shadow: 0 8px 24px rgba(11,31,58,.3); z-index: 60; }
.m-toast[hidden] { display: none; }
@media (prefers-color-scheme: dark) { html:not([data-mtheme="light"]) .m-app .m-toast { background: #E8EEF5; color: #071426; } }
html[data-mtheme="dark"] .m-app .m-toast { background: #E8EEF5; color: #071426; }
/* Moi › Connexion sur ce téléphone */
.m-pick .m-li[aria-checked="true"] .m-tx b { font-weight: 500; }
.m-li .m-tx.wrap small { white-space: normal; }

/* ---------- Partager vers Linkivi (page /m/partage, partage Android, §272 — maquettes/app-mobile-partage-android.html) ---------- */
.m-shr-foot { flex: none; display: grid; gap: 8px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--m-surface); border-top: 1px solid var(--m-line); }
.m-shr-foot small { display: block; text-align: center; font-size: 12.5px; color: var(--m-muted); }
.m-shr-files { margin-bottom: 16px; }
.m-app .m-tile > .m-x { position: absolute; top: 0; right: 0; width: 44px; height: 44px; border: 0; padding: 0; background: none; display: grid; place-items: center; color: #fff; }
.m-app .m-tile > .m-x::before { content: ""; position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: rgba(11,31,58,.62); }
.m-app .m-tile > .m-x svg { position: relative; left: 2px; top: -2px; }
.m-tile .m-tdoc { display: grid; place-items: center; color: var(--m-muted); }
.m-tile.refused > img { opacity: .28; }
.m-tile.refused { background: var(--m-danger-bg); outline: 1.5px solid var(--m-danger); outline-offset: -1.5px; }
.m-app .m-tile .m-tbad { position: absolute; inset: 0; display: grid; place-items: center; color: var(--m-danger); width: auto; height: auto; }
.m-tile.refused .m-tt { background: var(--m-danger); }
.m-imp-note { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--m-r); background: var(--m-signal-bg); color: var(--m-ink); font-size: 14px; }
.m-imp-note svg { color: var(--m-signal); flex: none; }
.m-shr-link { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r); margin-bottom: 6px; }
.m-shr-link .m-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--m-soft); display: grid; place-items: center; flex: none; }
.m-shr-link > span:last-child { min-width: 0; }
.m-shr-link b { display: block; font-weight: 500; font-size: 15px; }
.m-shr-link small { display: block; font-family: var(--m-mono); font-size: 12px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-shr-wait { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r); margin-bottom: 18px; }
.m-shr-wait[hidden] { display: none; }
.m-shr-wait b { display: block; font-weight: 500; font-size: 14.5px; }
.m-shr-wait small { display: block; font-size: 12.5px; color: var(--m-muted); }
.m-stack { position: relative; width: 54px; height: 44px; flex: none; }
.m-stack > span { position: absolute; width: 38px; height: 38px; border-radius: 6px; overflow: hidden; border: 2px solid var(--m-surface); background: var(--m-soft); }
.m-stack > span > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-stack > span:nth-child(1) { left: 0; top: 6px; } .m-stack > span:nth-child(2) { left: 8px; top: 3px; } .m-stack > span:nth-child(3) { left: 16px; top: 0; }
.m-state .m-sico.ok { background: var(--m-ok-bg); color: var(--m-ok); }
.m-state .m-grid { margin: 22px 0 0; width: 100%; }
.m-job.queued .m-tx small { color: var(--m-muted); }
.m-tile.refused .m-tdoc { display: none; }

/* =====================================================================
   Cloche dans l'en-tête et Programmations (maquettes/app-mobile-cloche-programmations.html, 16 nov. 2026)
   ===================================================================== */
.m-app { --m-lum: #D9A00B; --m-lum-bg: #FDF4D6; --m-lum-ink: #6B4E00; --m-hatch-a: #0B1F3A; --m-hatch-b: #22406A; --m-hatch-ink: #fff; }
@media (prefers-color-scheme: dark) {
  html:not([data-mtheme="light"]) .m-app { --m-lum: #F2C230; --m-lum-bg: #3A3110; --m-lum-ink: #F7DE8A; --m-hatch-a: #02070F; --m-hatch-b: #1E3758; --m-hatch-ink: #E8EEF5; }
}
html[data-mtheme="dark"] .m-app { --m-lum: #F2C230; --m-lum-bg: #3A3110; --m-lum-ink: #F7DE8A; --m-hatch-a: #02070F; --m-hatch-b: #1E3758; --m-hatch-ink: #E8EEF5; }

/* cloche : dernière action de l'en-tête, point rouge si non lu */
.m-head .m-hact { position: relative; }
.m-head .m-hact .m-bd { position: absolute; top: 9px; right: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--m-danger); border: 2px solid var(--m-surface); }
.m-head .m-offt + .m-hact, .m-head .m-hact + .m-hact { margin-left: 2px; }
.m-head .m-offt { margin-right: 0; }

.m-note { font-size: 13px; color: var(--m-muted); margin: -6px 2px 14px; }
.m-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.m-li .m-box { width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--m-line-2); display: grid; place-items: center; flex: none; color: #fff; }
.m-li .m-box.on { background: var(--m-brand, #0B1F3A); border-color: var(--m-brand, #0B1F3A); }
.m-li .m-ico.lum { background: var(--m-lum-bg); color: var(--m-lum-ink); }
.m-li .m-ico.offk { background: var(--m-hatch-a); color: #fff; box-shadow: 0 0 0 1px var(--m-ring); }

/* liste des calendriers */
.m-cal { display: block; width: 100%; text-align: left; background: var(--m-surface); border: 1px solid var(--m-line); border-radius: var(--m-r); padding: 12px 12px 12px 14px; margin-bottom: 10px; color: var(--m-ink); cursor: pointer; }
.m-cal.now { border: 1.5px solid var(--m-signal); padding: 11.5px 11.5px 11.5px 13.5px; }
.m-cal-hd { display: flex; align-items: center; gap: 10px; }
.m-cal-hd .m-tx { flex: 1; min-width: 0; }
.m-cal-hd b { display: block; font-weight: 500; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cal-hd small { display: block; font-size: 12.5px; color: var(--m-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-cal-hd .m-chev { color: var(--m-line-2); flex: none; }
.m-cal-now { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--m-signal); font-weight: 500; }
.m-cal:not(.now) .m-cal-now { color: var(--m-muted); font-weight: 400; }
.m-cal-ft { display: flex; align-items: flex-end; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--m-line); }
.m-cal-ft .m-uses { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.m-dev { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px 0 6px; border-radius: 12px; background: var(--m-soft); font-size: 12.5px; color: var(--m-ink); white-space: nowrap; }
.m-dev svg { color: var(--m-muted); }
.m-dev.muted { color: var(--m-muted); }
.m-wk { display: grid; grid-template-columns: repeat(7, 14px); gap: 4px; flex: none; }
.m-wk .d { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--m-muted); font-family: var(--m-mono); }
.m-wk .d.today { color: var(--m-signal); }
.m-wk .bar { position: relative; width: 14px; height: 40px; border-radius: 3px; background: var(--m-line); overflow: hidden; }
.m-wk .bar i { position: absolute; left: 0; width: 9px; }
.m-wk .bar i.list { background: var(--m-signal); }
.m-wk .bar i.lum { left: 10px; width: 4px; background: var(--m-lum); }
.m-wk .bar i.off { width: 14px; background: repeating-linear-gradient(135deg, var(--m-hatch-a) 0 2px, var(--m-hatch-b) 2px 4px); }
.m-key { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--m-muted); }
.m-key span { display: inline-flex; align-items: center; gap: 5px; }
.m-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.m-key i.def { background: var(--m-surface); border: 1px dashed var(--m-line-2); }
.m-key i.list { background: var(--m-signal-bg); border-left: 3px solid var(--m-signal); }
.m-key i.lum { background: var(--m-lum-bg); border-left: 3px solid var(--m-lum); }
.m-key i.off { background: repeating-linear-gradient(135deg, var(--m-hatch-a) 0 3px, var(--m-hatch-b) 3px 6px); box-shadow: 0 0 0 1px var(--m-ring); }

/* détail : jours, agenda en pistes (diffusion à gauche, luminosité à droite, extinction sur toute la largeur) */
.m-days { display: flex; gap: 5px; margin: 0 0 12px; }
.m-day { flex: 1; height: 56px; border-radius: var(--m-r); border: 1px solid var(--m-line); background: var(--m-surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 11.5px; color: var(--m-muted); position: relative; padding: 0; }
.m-day b { font-size: 15px; font-weight: 500; color: var(--m-ink); font-family: var(--m-mono); }
.m-day.on { background: var(--m-ink); border-color: var(--m-ink); color: var(--m-bg); }
.m-day.on b { color: var(--m-bg); }
.m-day.today::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--m-signal); }
.m-day.on.today::after { background: var(--m-bg); }
.m-agh { display: flex; align-items: center; padding-left: 44px; margin: 12px 0 6px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--m-muted); font-weight: 500; }
.m-agh span:first-child { flex: 1; }
.m-agh span:last-child { width: 50px; text-align: center; }
.m-ag { position: relative; --h: 19px; height: calc(24 * var(--h)); margin: 8px 0 6px; }
.m-ag .hr { position: absolute; left: 0; width: 36px; text-align: right; font-family: var(--m-mono); font-size: 10.5px; color: var(--m-muted); transform: translateY(-50%); }
.m-ag .ln { position: absolute; left: 44px; right: 0; border-top: 1px solid var(--m-line); }
.m-ag .sep { position: absolute; top: 0; bottom: 0; right: 52px; border-left: 1px solid var(--m-line); }
.m-ag .ev { position: absolute; left: 46px; right: 56px; border-radius: var(--m-r-sm); padding: 3px 8px; font-size: 12.5px; line-height: 1.3; overflow: hidden; color: var(--m-ink); text-align: left; border: 0; display: block; }
.m-ag .ev b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ag .ev .m-t { font-size: 11px; color: var(--m-muted); font-family: var(--m-mono); }
.m-ag .ev.list { background: var(--m-signal-bg); border-left: 3px solid var(--m-signal); }
.m-ag .ev.def { background: var(--m-surface); border: 1px dashed var(--m-line-2); color: var(--m-muted); }
.m-ag .ev.def b { font-weight: 400; }
.m-ag .ev.lum { left: auto; right: 3px; width: 46px; padding: 3px 2px; background: var(--m-lum-bg); border-left: 3px solid var(--m-lum); color: var(--m-lum-ink); text-align: center; font-family: var(--m-mono); font-size: 11.5px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; }
.m-ag .ev.lum.short { flex-direction: row; justify-content: center; padding: 0 2px; align-items: center; }
.m-ag .ev.off { left: 46px; right: 3px; z-index: 2; background: repeating-linear-gradient(135deg, var(--m-hatch-a) 0 7px, var(--m-hatch-b) 7px 14px); color: var(--m-hatch-ink); box-shadow: 0 0 0 1px var(--m-ring); display: flex; align-items: center; gap: 8px; }
.m-ag .ev.off b { display: inline; }
.m-ag .ev.off .m-t { color: inherit; opacity: .8; }
.m-nowl { position: absolute; left: 38px; right: 0; border-top: 2px solid var(--m-signal); z-index: 3; pointer-events: none; }
.m-nowl::before { content: ""; position: absolute; left: 0; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--m-signal); }
.m-nowl span { position: absolute; left: -38px; top: -10px; font-family: var(--m-mono); font-size: 10.5px; background: var(--m-signal); color: #fff; padding: 1px 4px; border-radius: 4px; }
.m-foot { flex: none; padding: 12px 16px; background: var(--m-surface); border-top: 1px solid var(--m-line); }

/* feuille d'un événement */
.m-lumv { text-align: center; font-family: var(--m-mono); font-size: 34px; line-height: 1.1; margin: 2px 0 6px; color: var(--m-ink); }
.m-lumv small { font-family: "IBM Plex Sans", sans-serif; font-size: 13px; color: var(--m-muted); display: block; margin-top: 2px; }
.m-rng { display: block; width: 100%; height: 44px; margin: 0 0 14px; accent-color: var(--m-brand, #0B1F3A); }
.m-wd { display: flex; justify-content: space-between; margin: 0 0 18px; }
.m-wd button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--m-line-2); background: var(--m-surface); display: grid; place-items: center; font-size: 14px; font-weight: 500; color: var(--m-ink); padding: 0; }
.m-wd button.on { background: var(--m-ink); border-color: var(--m-ink); color: var(--m-bg); }

/* ---------- Moi › Notifications (maquettes/app-mobile-notifications.html, 16 nov. 2026) ---------- */
.m-li.m-pref { align-items: flex-start; padding-top: 11px; padding-bottom: 11px; }
.m-li.m-pref .m-ico { margin-top: 1px; }
.m-li.m-pref .m-switch { margin-top: 4px; }
.m-li.m-pref .m-tx small.ex { white-space: normal; color: var(--m-muted); margin-top: 2px; }
.m-li.m-subopt { min-height: 48px; padding-left: 62px; background: var(--m-soft); }
.m-li.m-subopt .m-rad { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--m-line-2); flex: none; position: relative; }
.m-li.m-subopt .m-rad.on { border-color: var(--m-signal); }
.m-li.m-subopt .m-rad.on::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--m-signal); }
.m-li.m-subopt .m-tx b { font-size: 14px; }
.m-li.locked .m-lk { color: var(--m-muted); flex: none; margin-top: 6px; }
.m-li.locked .m-switch { opacity: .55; }
.m-list.dim .m-li { opacity: .45; }
.m-app button.m-li:disabled { cursor: default; }
.m-alert.warn { background: var(--m-warn-bg); color: var(--m-warn-ink); align-items: flex-start; font-size: 14px; }
.m-alert.warn svg { flex: none; margin-top: 1px; }

/* ---------- Écran d'envoi (mobile.js, _ov) : hors de .m-app, couleurs propres ; couvre l'écran tant qu'un fichier part ---------- */
#m-upov { --bg: #fff; --ink: #0B1F3A; --mut: #5A6B80; --line: #DDE3EA; --sig: #3B82C4; --ok: #1E8E5A; --bad: #C8372D;
  position: fixed; inset: 0; z-index: 2000; display: none; align-items: flex-end; justify-content: center; background: rgba(11,31,58,.45);
  font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif; padding: 0 0 env(safe-area-inset-bottom); }
#m-upov.on { display: flex; }
#m-upov .box { width: 100%; max-width: 480px; background: var(--bg); color: var(--ink); border-radius: 22px 22px 0 0; padding: 26px 22px 22px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; box-shadow: 0 -8px 30px rgba(11,31,58,.2); animation: m-up .22s cubic-bezier(.2,.8,.2,1); }
#m-upov .ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #E6F0FA; color: var(--sig); font-size: 26px; font-weight: 500; margin-bottom: 6px; }
#m-upov.ok .ic { background: #E1F0E8; color: var(--ok); }
#m-upov.bad .ic { background: #FBE4E2; color: var(--bad); }
#m-upov .spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid currentColor; border-right-color: transparent; animation: m-upspin .8s linear infinite; }
#m-upov .t { font-size: 18px; font-weight: 500; }
#m-upov .f { font-size: 13.5px; color: var(--mut); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#m-upov .bar { width: 100%; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 10px; position: relative; }
#m-upov .bar span { display: block; height: 100%; background: var(--sig); border-radius: 4px; transition: width .2s; }
#m-upov .bar.indet span { position: absolute; animation: m-upind 1.2s ease-in-out infinite; }
#m-upov .p { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: 13px; color: var(--mut); min-height: 18px; }
#m-upov .hint { margin: 4px 0 8px; font-size: 13.5px; color: var(--ink); }
#m-upov .hint:empty { display: none; }
#m-upov .act { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; margin-top: 6px; }
@keyframes m-upspin { to { transform: rotate(360deg); } }
@keyframes m-upind { 0% { left: -35%; } 100% { left: 100%; } }
@media (prefers-color-scheme: dark) { html:not([data-mtheme="light"]) #m-upov { --bg: #0E2340; --ink: #E8EEF5; --mut: #9AAABD; --line: #23395A; --sig: #6AA8E0; } }
html[data-mtheme="dark"] #m-upov { --bg: #0E2340; --ink: #E8EEF5; --mut: #9AAABD; --line: #23395A; --sig: #6AA8E0; }

/* pastille « Hors ligne N » des filtres de la page Écrans (remplace l'interrupteur de l'en-tête, 16 nov.) */
.m-chip-off .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--m-danger); flex: none; }
.m-chip-off .n { color: var(--m-danger); opacity: 1; font-weight: 500; }
.m-chip-off.on .n { color: inherit; }
.m-chip-sep { flex: none; width: 1px; align-self: stretch; margin: 6px 2px; background: var(--m-line-2); }

/* =====================================================================
   Listes de lecture : menu « ⋮ », feuille « Modifier la liste », tiroir d'un contenu allégé
   (maquettes/app-mobile-liste-menu-edition.html, 17 nov. 2026). Aucune couleur nouvelle.
   ===================================================================== */
/* menu déroulant ancré au ⋮ : bordure, pas d'ombre */
.m-catch { position: fixed; inset: 0; z-index: 50; }
.m-menu { position: fixed; right: 12px; z-index: 52; min-width: 232px; padding: 6px; background: var(--m-surface); border: 1px solid var(--m-line-2); border-radius: var(--m-r); animation: m-fade .12s ease-out; }
.m-menu.top { top: calc(env(safe-area-inset-top) + 50px); right: 8px; }
.m-menu .m-mi { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: var(--m-r-sm); background: none; color: var(--m-ink); font-size: 15px; text-align: left; }
.m-menu .m-mi svg { color: var(--m-muted); flex: none; }
.m-menu .m-mi:active { background: var(--m-soft); }
/* feuille haute : le corps défile, le pied reste collé */
.m-sheet.m-tall { display: flex; flex-direction: column; max-height: 94vh; overflow: hidden; padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
.m-sheet .m-sbody { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.m-sheet .m-sbody::-webkit-scrollbar { display: none; }
.m-sheet .m-sfoot { flex: none; padding-top: 12px; }
.m-sheet .m-sh .m-back { width: 36px; height: 36px; margin: -2px 0 0 -8px; border-radius: 50%; border: 0; background: none; color: var(--m-ink); display: grid; place-items: center; flex: none; }
.m-sheet .m-sect.first { margin-top: 2px; }
/* format : trois choix avec pictogramme d'écran */
.m-fmt { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.m-fmt button { min-height: 96px; padding: 10px 6px; border: 1px solid var(--m-line-2); border-radius: var(--m-r); background: var(--m-surface); color: var(--m-ink); display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; font-size: 13px; }
.m-fmt button small { font-size: 12px; color: var(--m-muted); line-height: 1.2; }
.m-fmt button.on { background: var(--m-signal-bg); border-color: var(--m-signal); font-weight: 500; }
.m-fmt .m-scr { display: grid; place-items: center; border: 2px solid currentColor; border-radius: 4px; color: var(--m-ink); }
.m-fmt .m-scr.land, .m-fmt .m-scr.auto { width: 42px; height: 28px; }
.m-fmt .m-scr.port { width: 26px; height: 42px; }
.m-fmt .m-scr.auto { border-style: dashed; color: var(--m-muted); }
.m-fmt button.on .m-scr { color: var(--m-signal); }
.m-fmt-box { height: 44px; display: grid; place-items: center; }
/* pas à pas « − valeur + » et curseur */
.m-step { display: flex; align-items: center; flex: none; margin-left: auto; border: 1px solid var(--m-line-2); border-radius: var(--m-r); background: var(--m-surface); height: 44px; }
.m-step button { width: 44px; height: 42px; border: 0; background: none; color: var(--m-ink); display: grid; place-items: center; border-radius: var(--m-r); }
.m-step button:disabled { opacity: .4; }
.m-step output { min-width: 64px; text-align: center; font-family: var(--m-mono); font-size: 15px; }
.m-li.col { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 14px 12px; }
.m-li.col .m-chips { margin: 0; overflow: hidden; flex-wrap: wrap; }
.m-li.col .m-seg { margin: 0; }
.m-li.dim { opacity: .45; }
.m-li.pv { padding: 10px 14px; display: block; min-height: 0; }
.m-range { width: 100%; margin: 4px 0 0; accent-color: var(--m-signal); height: 28px; }
.m-rscale { display: flex; justify-content: space-between; font-family: var(--m-mono); font-size: 12px; color: var(--m-muted); margin-top: -4px; }
/* aperçu de transition : deux plans A / B, boucle de 3,6 s, schématique (pas la vraie durée) */
.m-tpv { position: relative; height: 68px; border-radius: var(--m-r-sm); background: var(--m-soft); border: 1px solid var(--m-line); overflow: hidden; }
.m-tpv span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 500; }
.m-tpv .a { background: var(--m-surface); color: var(--m-muted); }
.m-tpv .b { background: var(--m-signal-bg); color: var(--m-ink); }
.m-tpv.fade .b { animation: tp-fade 3.6s ease-in-out infinite; }
.m-tpv.push-left .b { animation: tp-pl 3.6s ease-in-out infinite; }
.m-tpv.push-right .b { animation: tp-pr 3.6s ease-in-out infinite; }
.m-tpv.push-up .b { animation: tp-pu 3.6s ease-in-out infinite; }
.m-tpv.push-down .b { animation: tp-pd 3.6s ease-in-out infinite; }
.m-tpv.zoom .b { animation: tp-zoom 3.6s ease-in-out infinite; }
.m-tpv.cut .b { animation: tp-cut 3.6s step-end infinite; }
@keyframes tp-fade { 0%, 25% { opacity: 0; } 40%, 65% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes tp-pl { 0%, 25% { transform: translateX(100%); } 40%, 65% { transform: none; } 80%, 100% { transform: translateX(100%); } }
@keyframes tp-pr { 0%, 25% { transform: translateX(-100%); } 40%, 65% { transform: none; } 80%, 100% { transform: translateX(-100%); } }
@keyframes tp-pu { 0%, 25% { transform: translateY(100%); } 40%, 65% { transform: none; } 80%, 100% { transform: translateY(100%); } }
@keyframes tp-pd { 0%, 25% { transform: translateY(-100%); } 40%, 65% { transform: none; } 80%, 100% { transform: translateY(-100%); } }
@keyframes tp-zoom { 0%, 25% { transform: scale(.5); opacity: 0; } 40%, 65% { transform: none; opacity: 1; } 80%, 100% { transform: scale(.5); opacity: 0; } }
@keyframes tp-cut { 0%, 30% { opacity: 0; } 30.1%, 70% { opacity: 1; } 70.1%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .m-tpv .b { animation: none !important; transform: none; opacity: 1; clip-path: inset(0 0 0 50%); } }
/* tiroir d'un contenu : en-tête compact */
.m-ch { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.m-ch .m-th { width: 60px; height: 44px; border-radius: 6px; overflow: hidden; flex: none; background: var(--m-soft); position: relative; display: grid; place-items: center; }
.m-ch .m-th > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-ch .m-tx { flex: 1; min-width: 0; }
.m-ch .m-tx b { display: block; font-weight: 500; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-ch .m-tx small { display: block; font-size: 13px; color: var(--m-muted); }
.m-mv { display: flex; flex: none; }
.m-mv button { width: 40px; height: 44px; border: 0; background: none; color: var(--m-muted); display: grid; place-items: center; border-radius: var(--m-r-sm); }
.m-mv button[aria-disabled="true"] { opacity: .35; }
.m-sheet .m-group + .m-group, .m-sheet .m-list + .m-group { margin-top: 12px; }
.m-sheet .m-group { margin-top: 12px; }
.m-app .m-btn.rm { background: none; color: var(--m-danger); box-shadow: none; margin-top: 8px; }
/* valeur du centre éditable (durée d'un contenu) */
.m-step .m-stepval { width: 92px; height: 42px; border: 0; background: none; color: var(--m-ink); font-family: var(--m-mono); font-size: 15px; text-align: center; padding: 0; border-radius: 0; }
.m-step .m-stepval:focus { outline: 2px solid var(--m-signal); outline-offset: -2px; }

/* point d'état des écrans (hamburger et entrée Écrans du tiroir) : rouge, orange, vert comme le menu du site ; la cloche garde le rouge */
.m-drawer .m-di .m-bd.orange, .m-head .m-hact .m-bd.orange { background: var(--m-warn); }
.m-drawer .m-di .m-bd.ok, .m-head .m-hact .m-bd.ok { background: var(--m-ok); }
.m-drawer .m-di .m-bd.off, .m-head .m-hact .m-bd.off { background: var(--m-danger); }

/* Réglages d'un contenu de liste : « Avancé », période de diffusion, QR code (maquettes/app-mobile-contenu-reglages.html) */
.m-adv { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 4px; margin-top: 12px; border: 0; background: none; color: var(--m-muted); font: inherit; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; font-weight: 500; text-align: left; }
.m-adv .m-val { margin-left: auto; font-size: 13px; text-transform: none; letter-spacing: 0; font-weight: 400; }
.m-adv .chev { display: grid; place-items: center; transition: transform .15s; }
.m-adv[aria-expanded="true"] .chev { transform: rotate(180deg); }
.m-adv[aria-expanded="true"] .m-val { margin-left: auto; }
.m-li .m-val.on { color: var(--m-ink); }
.m-li.lock { opacity: .7; }
.m-li.lock .m-ico { color: var(--m-muted); }
.m-tag.pro { background: var(--m-signal-bg); color: var(--m-ink); gap: 4px; }
.m-lockhint { padding: 12px 14px; font-size: 13px; color: var(--m-muted); border-top: 1px solid var(--m-line); }
.m-fieldv { display: block; padding: 8px 14px 12px; border-top: 1px solid var(--m-line); }
.m-fieldv > span { display: block; font-size: 12.5px; color: var(--m-muted); margin-bottom: 4px; }
.m-fieldv .in { display: flex; align-items: center; width: 100%; height: 44px; border: 1px solid var(--m-line-2); border-radius: var(--m-r-sm); padding: 0 12px; font: inherit; font-size: 16px; background: var(--m-surface); color: var(--m-ink); -webkit-appearance: none; appearance: none; }
.m-fieldv .in.mono { font-family: var(--m-mono); font-size: 14px; }
.m-fieldv .in:focus { outline: none; border-color: var(--m-signal); box-shadow: 0 0 0 3px var(--m-signal-bg); }
.m-cal { border: 1px solid var(--m-line); border-radius: var(--m-r); padding: 10px 12px; margin: 12px 0; }
.m-cal .mh { display: flex; align-items: center; justify-content: space-between; font-weight: 500; margin-bottom: 6px; text-transform: capitalize; }
.m-cal .mh button { width: 44px; height: 36px; border: 0; background: none; color: var(--m-ink); display: grid; place-items: center; }
.m-cal .wd, .m-cal .dd { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.m-cal .wd { font-size: 11px; color: var(--m-muted); margin-bottom: 2px; }
.m-cal .dd span, .m-cal .dd button { height: 38px; display: grid; place-items: center; font: inherit; font-size: 14px; font-family: var(--m-mono); border-radius: 19px; border: 0; background: none; color: var(--m-ink); padding: 0; }
.m-cal .dd .sel { background: var(--m-brand); color: #fff; }
.m-qrpos { display: grid; grid-template-columns: repeat(2, 44px); grid-template-rows: repeat(2, 34px); gap: 4px; flex: none; }
.m-qrpos i { border: 1px solid var(--m-line-2); border-radius: 5px; background: var(--m-surface); cursor: pointer; }
.m-qrpos i.on { background: var(--m-signal); border-color: var(--m-signal); }

/* Bandeaux d'un écran (maquettes/ecran-bandeaux-refonte.html) : la ligne s'ouvre à gauche, l'interrupteur à droite */
.m-li .m-open { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 0; text-align: left; color: inherit; font: inherit; }
.m-li .m-split { width: 1px; align-self: stretch; background: var(--m-line); margin: 4px 0; flex: none; }
button.m-switch { border: 0; padding: 0; cursor: pointer; }
.m-field > textarea { display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid var(--m-line-2); border-radius: var(--m-r, 12px); background: var(--m-surface); color: var(--m-ink); font: inherit; font-size: 16px; line-height: 1.4; resize: none; }
