/* Mon Makila DS for Claude Code - Git (design-system.json, lastChange 2026-11-03).
   Assemblage de tokens/tokens.css, base.css, animations.css et components.css du
   design system, recopiés sans modification. Les polices sont chargées par un
   <link> Google Fonts dans chaque page, sous-ensemble d'icônes compris : ce
   fichier ne déclare donc aucun @font-face.
   NE PAS ÉDITER : régénérer depuis le design system à chaque synchronisation. */
/* Ordago design system, jetons de thème clair / sombre.
   Le thème est porté par data-mm-theme="light|dark" sur <html>.
   Seuls #f93939 et le blanc posé dessus restent en dur dans les composants. */
:root {
  --mm-bg: #f4f2ee;
  --mm-panel: #f4f2ee;
  --mm-surface: #ffffff;
  --mm-surface-2: #faf9f7;
  --mm-sunken: #f4f2ee;
  --mm-nav: #0d0d0d;
  --mm-strong: #0d0d0d;
  --mm-on-strong: #ffffff;
  --mm-ink: #0d0d0d;
  --mm-ink-80: rgba(0,0,0,.8);
  --mm-ink-72: rgba(0,0,0,.72);
  --mm-ink-66: rgba(0,0,0,.66);
  --mm-ink-64: rgba(0,0,0,.64);
  --mm-ink-60: rgba(0,0,0,.6);
  --mm-ink-50: rgba(0,0,0,.52);
  --mm-ink-44: rgba(0,0,0,.44);
  --mm-ink-22: rgba(0,0,0,.24);
  --mm-line: rgba(13,13,13,.055);
  --mm-border: rgba(13,13,13,.09);
  --mm-border-2: rgba(13,13,13,.14);
  --mm-border-3: rgba(13,13,13,.3);
  --mm-tint: rgba(13,13,13,.04);
  --mm-scrim: rgba(13,13,13,.4);
  --mm-shadow: rgba(0,0,0,.14);
  --mm-shadow-lg: rgba(0,0,0,.18);
  --mm-elevate: rgba(13,13,13,.1);
  --mm-link: #1f6299;
  --mm-link-hover: #123959;
  --mm-blue-bg: #ebf6ff;
  --mm-blue-ink: #1f6299;
  --mm-orange-bg: #ffe4d1;
  --mm-orange-ink: #8a3906;
  --mm-orange-strong: #b8500d;
  --mm-violet-bg: #e5d5fb;
  --mm-violet-ink: #674991;
  --mm-green-bg: #d8f0ca;
  --mm-green-ink: #3a5e25;
  --mm-red-bg: #fdc2c2;
  --mm-red-ink: #952222;
  --mm-neutral-bg: #f1efeb;
  --mm-orange-ring: rgba(138,57,6,.25);
  --mm-green-ring: rgba(58,94,37,.22);
  --mm-blue-ring: rgba(31,98,153,.18);
  --mm-violet-ring: rgba(103,73,145,.18);
  --mm-soft-blue: #dbeeff;
  --mm-soft-blue-air: #ebf6ff;
  --mm-soft-green: #e8f6df;
  --mm-soft-orange: #ffe6d6;
  --mm-soft-violet: #efe6fd;
  --mm-soft-red: #fdf1f1;
  --mm-soft-red-light: #fff6f6;
  --mm-soft-red-strong: #ffecec;
  --mm-green-accent: #4d7c32;
  --mm-avatar-bg: #eceae5;
  --mm-chart-blue: #1f6299;
  --mm-chart-violet: #674991;
  --mm-chart-green: #4d7c32;
  --mm-chart-orange: #b8500d;
  --mm-chart-red: #d42a2a;
  --mm-chart-grey: rgba(13,13,13,.16);
  --mm-chart-track: #f1efeb;
  --mm-tip-border: transparent;
}
[data-mm-theme="dark"] {
  --mm-bg: #0e0e0e;
  --mm-panel: #161616;
  --mm-surface: #1b1b1b;
  --mm-surface-2: #212121;
  --mm-sunken: #272727;
  --mm-nav: #070707;
  --mm-strong: #ece9e3;
  --mm-on-strong: #0d0d0d;
  --mm-ink: #f2f0ec;
  --mm-ink-80: rgba(255,255,255,.88);
  --mm-ink-72: rgba(255,255,255,.8);
  --mm-ink-66: rgba(255,255,255,.73);
  --mm-ink-64: rgba(255,255,255,.7);
  --mm-ink-60: rgba(255,255,255,.66);
  --mm-ink-50: rgba(255,255,255,.58);
  --mm-ink-44: rgba(255,255,255,.52);
  --mm-ink-22: rgba(255,255,255,.32);
  --mm-line: rgba(255,255,255,.08);
  --mm-border: rgba(255,255,255,.12);
  --mm-border-2: rgba(255,255,255,.22);
  --mm-border-3: rgba(255,255,255,.38);
  --mm-tint: rgba(255,255,255,.06);
  --mm-scrim: rgba(0,0,0,.66);
  --mm-shadow: rgba(0,0,0,.52);
  --mm-shadow-lg: rgba(0,0,0,.68);
  --mm-elevate: rgba(0,0,0,.62);
  --mm-link: #7fb6e8;
  --mm-link-hover: #a8cef2;
  --mm-blue-bg: rgba(51,163,255,.17);
  --mm-blue-ink: #8ecaf7;
  --mm-orange-bg: rgba(255,122,26,.18);
  --mm-orange-ink: #f8b083;
  --mm-orange-strong: #b8500d;
  --mm-violet-bg: rgba(172,121,242,.2);
  --mm-violet-ink: #c9adf8;
  --mm-green-bg: rgba(128,207,84,.18);
  --mm-green-ink: #a6dc86;
  --mm-red-bg: rgba(249,57,57,.2);
  --mm-red-ink: #ff9d9d;
  --mm-neutral-bg: rgba(255,255,255,.1);
  --mm-orange-ring: rgba(255,255,255,.1);
  --mm-green-ring: rgba(255,255,255,.1);
  --mm-blue-ring: rgba(255,255,255,.1);
  --mm-violet-ring: rgba(255,255,255,.1);
  --mm-soft-blue: rgba(51,163,255,.05);
  --mm-soft-blue-air: rgba(51,163,255,.05);
  --mm-soft-green: rgba(128,207,84,.05);
  --mm-soft-orange: rgba(255,122,26,.05);
  --mm-soft-violet: rgba(172,121,242,.06);
  --mm-soft-red: rgba(249,57,57,.06);
  --mm-soft-red-light: rgba(249,57,57,.04);
  --mm-soft-red-strong: rgba(249,57,57,.09);
  --mm-green-accent: #a6dc86;
  --mm-avatar-bg: rgba(255,255,255,.12);
  --mm-chart-blue: #33a3ff;
  --mm-chart-violet: #ac79f2;
  --mm-chart-green: #80cf54;
  --mm-chart-orange: #ff7a1a;
  --mm-chart-red: #f93939;
  --mm-chart-grey: rgba(255,255,255,.24);
  --mm-chart-track: rgba(255,255,255,.07);
  --mm-tip-border: rgba(255,255,255,.14);
  color-scheme: dark;
}

:root {
  --mm-red: #f93939;
  --mm-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mm-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; /* @kind font */
  --mm-ease-out: cubic-bezier(.2,.7,.3,1); /* @kind other */
  --mm-ease-glide: cubic-bezier(.33,1,.68,1); /* @kind other */
  --mm-ease-expo: cubic-bezier(.16,1,.3,1); /* @kind other */
  --mm-focus-ring: 0 0 0 4px rgba(249,57,57,.12);
  --mm-sidebar-w: 252px;
  --mm-sidebar-w-collapsed: 76px;
  --mm-topbar-h: 64px;
  --mm-panel-w: 480px;
}
@media (max-width: 639.98px) { :root { --mm-topbar-h: 56px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--mm-bg); color: var(--mm-ink); font-family: var(--mm-font); -webkit-font-smoothing: antialiased; transition: background .28s ease; }
a { color: var(--mm-link); text-decoration: none; }
a:hover { color: var(--mm-link-hover); }
button { border: 0; background: none; cursor: pointer; font-family: inherit; color: inherit; padding: 0; }
button:disabled { cursor: default; }
input, textarea, select { font-family: inherit; color: inherit; }
input:focus, textarea:focus { outline: none; }
button:focus-visible, a:focus-visible, [role="tab"]:focus-visible, [role="switch"]:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(249,57,57,.35); }
::selection { background: #fdc2c2; }
p, h1, h2, h3 { margin: 0; }
p { text-wrap: pretty; }
img, svg { max-width: 100%; }

.mm-icon { font-family: 'Material Symbols Rounded'; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal; text-transform: none; display: inline-block; white-space: nowrap; direction: ltr; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; flex: 0 0 auto; width: 1em; height: 1em; overflow: hidden; user-select: none; }
/* Jamais de nom d'icône en toutes lettres (DESIGN-SYSTEM.md 5) : boîte de 1em qui rogne, glyphe masqué tant que la police ne l'a pas confirmé, vide s'il manque. */
.mm-icon--pending { visibility: hidden; }
.mm-icon--missing { visibility: hidden; }

.mm-scroll-dark::-webkit-scrollbar { width: 6px; height: 8px; }
.mm-scroll-dark::-webkit-scrollbar-thumb { background: rgba(255,255,255,.16); border-radius: 99px; }
.mm-scroll::-webkit-scrollbar { width: 8px; height: 9px; }
.mm-scroll::-webkit-scrollbar-thumb { background: var(--mm-border-2); border-radius: 99px; }
.mm-scroll::-webkit-scrollbar-track { background: transparent; }
.mm-no-scrollbar { scrollbar-width: none; }
.mm-no-scrollbar::-webkit-scrollbar { display: none; }

.mm-h1 { font-size: clamp(24px,3vw,32px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.mm-h1--hero { font-size: clamp(28px,4vw,38px); line-height: 1.05; }
.mm-subtitle { font-size: 15px; font-weight: 500; line-height: 1.55; color: var(--mm-ink-64); }
.mm-h-section { font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.mm-h-card { font-size: 15px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; text-wrap: balance; }
.mm-text { font-size: 14px; font-weight: 500; line-height: 1.55; }
.mm-meta { font-size: 12px; font-weight: 550; color: var(--mm-ink-64); }
.mm-rise { animation: mmRise .4s var(--mm-ease-out) both; }
.mm-rise-sm { animation: mmRise .3s var(--mm-ease-out) both; }
.mm-fade { animation: mmFade .2s ease both; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.mm-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Toutes les animations du système, préfixe mm. */
@keyframes mmRise   { from { opacity:0; transform:translateY(10px) } to { opacity:1; transform:none } }
@keyframes mmFade   { from { opacity:0 } to { opacity:1 } }
@keyframes mmPop    { from { opacity:0; transform:translateY(-6px) scale(.98) } to { opacity:1; transform:none } }
@keyframes mmSlideR { from { transform:translateX(100%) } to { transform:none } }
@keyframes mmSlideL { from { transform:translateX(-100%) } to { transform:none } }
@keyframes mmUp     { from { opacity:0; transform:translate(-50%,14px) } to { opacity:1; transform:translate(-50%,0) } }
@keyframes mmBubble { from { opacity:0; transform:translateY(8px) scale(.985) } to { opacity:1; transform:none } }
@keyframes mmSpin   { to { transform:rotate(360deg) } }
@keyframes mmSweep  { 0% { background-position:-420px 0 } 100% { background-position:420px 0 } }
@keyframes mmGrow   { from { transform:scaleX(0) } to { transform:scaleX(1) } }
@keyframes mmDrop   { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:none } }
@keyframes mmShake  { 20%,80% { transform:translateX(3px) } 30%,50%,70% { transform:translateX(-4px) } 40%,60% { transform:translateX(4px) } }
@keyframes mmDraw   { from { stroke-dashoffset:40 } to { stroke-dashoffset:0 } }
@keyframes mmIndet  { 0% { transform:translateX(-100%) } 100% { transform:translateX(260%) } }
@keyframes mmSheet  { from { transform:translateY(100%) } to { transform:none } }
@keyframes mmDrift  { 0% { transform:translate(0,0) rotate(0) } 50% { transform:translate(16px,-20px) rotate(7deg) } 100% { transform:translate(0,0) rotate(0) } }
@media (prefers-reduced-motion: reduce) { * { animation-duration:.01ms !important; transition-duration:.01ms !important } }
/* Ordago design system, composants. Valeurs relevées dans les maquettes Mon Makila (DESIGN-SYSTEM.md §7). */

/* Boutons (7.1) */
.mm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; transition: opacity .18s ease, transform .18s ease, background .22s ease, border-color .22s ease, color .18s ease; }
.mm-btn .mm-icon { font-size: 18px; font-variation-settings: 'wght' 400, 'opsz' 20; }
.mm-btn--32 { height: 32px; padding: 0 14px; font-size: 12.5px; }
.mm-btn--32 .mm-icon { font-size: 17px; }
.mm-btn--44 { height: 44px; padding: 0 20px; font-size: 13.5px; }
.mm-btn--50 { height: 50px; padding: 0 24px; font-size: 15px; }
.mm-btn--block { width: 100%; }
.mm-btn--primary { background: var(--mm-red); color: #ffffff; }
.mm-btn--secondary { background: var(--mm-strong); color: var(--mm-on-strong); }
.mm-btn--primary:hover:not(:disabled), .mm-btn--secondary:hover:not(:disabled) { opacity: .85; color: inherit; }
.mm-btn--primary:hover:not(:disabled) { color: #ffffff; }
.mm-btn--secondary:hover:not(:disabled) { color: var(--mm-on-strong); }
.mm-btn--primary:active:not(:disabled), .mm-btn--secondary:active:not(:disabled) { transform: scale(.97); }
.mm-btn--outline { border: 1.5px solid var(--mm-border-2); color: var(--mm-ink); background: transparent; }
.mm-btn--outline:hover:not(:disabled) { border-color: var(--mm-strong); background: var(--mm-tint); }
.mm-btn--danger { border: 1.5px solid var(--mm-red-ink); color: var(--mm-red-ink); background: transparent; }
.mm-btn--danger:hover:not(:disabled) { background: var(--mm-soft-red); }
.mm-btn--warning { background: var(--mm-orange-strong); color: #ffffff; }
.mm-btn--warning:hover { background: color-mix(in srgb, var(--mm-orange-strong) 88%, #000); }
.mm-btn--ghost { color: var(--mm-ink-66); padding: 0 15px; font-size: 12.5px; }
.mm-btn--ghost:hover:not(:disabled) { background: var(--mm-sunken); color: var(--mm-ink); }
.mm-btn--on-dark { background: rgba(255,255,255,.12); color: rgba(255,255,255,.88); height: 30px; padding: 0 11px 0 8px; gap: 6px; font-size: 12px; font-weight: 650; }
.mm-btn--on-dark:hover:not(:disabled) { background: rgba(255,255,255,.2); color: #ffffff; }
.mm-btn:disabled { opacity: .5; }

.mm-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 9px; color: var(--mm-ink-50); transition: background .16s ease, color .16s ease; flex: 0 0 auto; }
.mm-icon-btn:hover:not(:disabled) { background: var(--mm-sunken); color: var(--mm-ink); }
.mm-icon-btn .mm-icon { font-size: 20px; font-variation-settings: 'wght' 400, 'opsz' 20; }
.mm-icon-btn--28 { width: 28px; height: 28px; border-radius: 8px; }
.mm-icon-btn--28 .mm-icon { font-size: 18px; }
.mm-icon-btn--32 { width: 32px; height: 32px; }
.mm-icon-btn--40 { width: 40px; height: 40px; border-radius: 10px; }
.mm-icon-btn--on-dark { color: rgba(255,255,255,.76); }
.mm-icon-btn--on-dark:hover:not(:disabled) { background: rgba(255,255,255,.08); color: #ffffff; }
.mm-icon-btn:disabled { opacity: .35; }

.mm-spinner { display: block; border-radius: 50%; border: 2px solid var(--mm-border-2); border-top-color: var(--mm-red); animation: mmSpin .7s linear infinite; flex: 0 0 auto; }
.mm-btn--primary .mm-spinner { border-color: rgba(255,255,255,.4); border-top-color: #ffffff; }
.mm-btn--secondary .mm-spinner { border-color: rgba(127,127,127,.4); border-top-color: currentColor; }
.mm-btn--outline .mm-spinner, .mm-btn--ghost .mm-spinner, .mm-btn--danger .mm-spinner { border-top-color: currentColor; }

/* Badges (7.2) */
.mm-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; line-height: 1.35; }
.mm-badge .mm-icon { font-size: 15px; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 20; margin-left: -1px; }
.mm-badge--icon { padding: 3px 10px 3px 8px; font-size: 11.5px; }
.mm-badge--positive { background: var(--mm-green-bg); color: var(--mm-green-ink); }
.mm-badge--alert { background: var(--mm-red-bg); color: var(--mm-red-ink); }
.mm-badge--warning { background: var(--mm-orange-bg); color: var(--mm-orange-ink); }
.mm-badge--info { background: var(--mm-blue-bg); color: var(--mm-blue-ink); }
.mm-badge--violet { background: var(--mm-violet-bg); color: var(--mm-violet-ink); }
.mm-badge--neutral { background: var(--mm-neutral-bg); color: var(--mm-ink-66); }
.mm-badge--strong { background: var(--mm-strong); color: var(--mm-on-strong); }
a.mm-badge:hover { filter: brightness(.97); }
.mm-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mm-red); color: #ffffff; font-family: var(--mm-font); font-variation-settings: normal; font-size: 10.5px; font-weight: 800; line-height: 20px; font-variant-numeric: proportional-nums; }
.mm-count--overlay { position: absolute; top: -7px; right: -10px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--mm-nav); font-size: 10px; line-height: 14px; }

/* Champs (7.3) */
.mm-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.mm-label { font-size: 12.5px; font-weight: 700; color: var(--mm-ink-72); }
.mm-help { font-size: 11.5px; font-weight: 550; color: var(--mm-ink-60); line-height: 1.45; }
.mm-error-text { font-size: 12px; font-weight: 600; color: var(--mm-red-ink); }
.mm-ai-field__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; }
.mm-input { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--mm-surface); border: 1px solid var(--mm-border-2); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--mm-ink); transition: border-color .18s ease, box-shadow .18s ease; width: 100%; min-width: 0; }
.mm-input::placeholder, .mm-input input::placeholder, .mm-textarea::placeholder { color: var(--mm-ink-44); }
.mm-input:hover { border-color: var(--mm-border-3); }
.mm-input:focus, .mm-input:focus-within, .mm-input--open { border-color: var(--mm-red); box-shadow: var(--mm-focus-ring); }
.mm-input--error, .mm-input--error:hover { border-color: var(--mm-red-ink); }
.mm-input input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: inherit; font-weight: inherit; letter-spacing: inherit; height: 100%; padding: 0; }
.mm-input > .mm-icon { font-size: 20px; color: var(--mm-ink-44); font-variation-settings: 'wght' 400, 'opsz' 20; transition: color .18s ease; }
.mm-input:focus-within > .mm-icon:first-child { color: var(--mm-red); }
.mm-input--50 { height: 50px; }
.mm-input--38 { height: 38px; border-radius: 10px; font-size: 12.5px; padding: 0 12px; }
.mm-textarea { width: 100%; padding: 13px 14px; line-height: 1.55; resize: vertical; background: var(--mm-surface); border: 1px solid var(--mm-border-2); border-radius: 12px; font-size: 14px; font-weight: 600; transition: border-color .18s ease, box-shadow .18s ease; }
.mm-textarea:focus { border-color: var(--mm-red); box-shadow: var(--mm-focus-ring); }
.mm-readonly { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; background: var(--mm-sunken); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--mm-ink-80); }
.mm-readonly span:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-readonly .mm-icon { font-size: 17px; color: var(--mm-ink-50); }

/* Recherche (7.4) */
.mm-search { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 12px 0 16px; max-width: 620px; width: 100%; background: var(--mm-surface); border: 1px solid var(--mm-border-2); border-radius: 12px; box-shadow: 0 1px 2px var(--mm-line); transition: border-color .18s ease, box-shadow .18s ease; }
.mm-search:focus-within { border-color: var(--mm-red); box-shadow: var(--mm-focus-ring); }
.mm-search > .mm-icon { font-size: 20px; color: var(--mm-ink-50); }
.mm-search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: 15px; font-weight: 550; letter-spacing: -.01em; height: 100%; }
.mm-search input::placeholder { color: var(--mm-ink-44); }
.mm-search--list { height: 40px; max-width: 400px; gap: 9px; padding: 0 8px 0 12px; box-shadow: none; }
.mm-search--list > .mm-icon { font-size: 18px; }
.mm-search--list input { font-size: 13.5px; }
.mm-search--menu { height: 36px; max-width: none; border: 0; border-radius: 10px; background: var(--mm-sunken); box-shadow: none; padding: 0 10px; gap: 8px; }
.mm-search--menu:focus-within { box-shadow: none; }
.mm-search--menu > .mm-icon { font-size: 17px; }
.mm-search--menu input { font-size: 13px; font-weight: 550; }
.mm-kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 7px; border: 1px solid var(--mm-border-2); font-size: 11px; font-weight: 700; color: var(--mm-ink-60); }
@media (max-width: 639.98px) { .mm-search { max-width: none; } .mm-search .mm-kbd { display: none; } }

/* Popovers et menus (7.6) */
.mm-popover { position: absolute; z-index: 60; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 16px; box-shadow: 0 12px 34px var(--mm-shadow-lg); padding: 6px; animation: mmPop .18s var(--mm-ease-out) both; }
.mm-popover--form { border-radius: 12px; padding: 5px; animation: mmPop .14s ease both; }
@media (max-width: 639.98px) {
  .mm-popover--topbar { position: fixed; left: calc(8px + env(safe-area-inset-left)) !important; right: calc(8px + env(safe-area-inset-right)) !important; top: calc(var(--mm-topbar-h) + env(safe-area-inset-top) + 6px) !important; width: auto !important; max-height: calc(100dvh - var(--mm-topbar-h) - env(safe-area-inset-top) - 16px); overflow-y: auto; }
}
.mm-popover--row { width: 220px; border-radius: 13px; box-shadow: 0 14px 38px var(--mm-shadow-lg); animation: mmPop .14s ease both; }
.mm-menu-title { font-size: 11.5px; font-weight: 700; color: var(--mm-ink-66); padding: 10px 10px 6px; }
.mm-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 650; color: var(--mm-ink); transition: background .14s ease; }
.mm-menu-item:hover, .mm-menu-item--focus { background: var(--mm-sunken); color: var(--mm-ink); }
.mm-menu-item--current { background: var(--mm-surface-2); font-weight: 700; }
.mm-menu-item .mm-icon { font-size: 18px; color: var(--mm-ink-50); }
.mm-menu-item--danger, .mm-menu-item--danger .mm-icon { color: var(--mm-red-ink); }
.mm-menu-item > span:not(.mm-icon) { flex: 1 1 auto; min-width: 0; }
.mm-menu-sep { height: 1px; background: var(--mm-line); margin: 5px 4px; }
.mm-option { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 36px; padding: 9px 11px; border-radius: 9px; text-align: left; font-size: 13px; font-weight: 600; transition: background .14s ease; }
.mm-option:hover, .mm-option--focus { background: var(--mm-sunken); }
.mm-option--current { background: var(--mm-surface-2); font-weight: 700; }
.mm-option .mm-icon { font-size: 16px; font-variation-settings: 'FILL' 1, 'wght' 500, 'opsz' 20; }
.mm-empty-inline { font-size: 13px; font-weight: 550; color: var(--mm-ink-64); text-align: center; padding: 22px 12px; }
.mm-chevron { transition: transform .2s ease; }
.mm-chevron--open { transform: rotate(180deg); }

/* Feuille en bas d'écran (9.4) */
.mm-sheet-root { position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column; justify-content: flex-end; }
.mm-sheet { position: relative; background: var(--mm-surface); border-radius: 20px 20px 0 0; padding: 8px 10px calc(12px + env(safe-area-inset-bottom)); max-height: 85dvh; overflow-y: auto; animation: mmSheet .28s var(--mm-ease-out) both; }
.mm-sheet::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 99px; background: var(--mm-border-2); margin: 2px auto 10px; }
.mm-sheet .mm-menu-item, .mm-sheet .mm-option { min-height: 48px; }

/* Rail segmenté (7.5) */
.mm-seg { position: relative; display: inline-flex; gap: 6px; padding: 5px; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 999px; max-width: 100%; }
.mm-seg__pill { position: absolute; height: 34px; border-radius: 999px; background: var(--mm-strong); transition: left .42s var(--mm-ease-glide), width .42s var(--mm-ease-glide), top .42s var(--mm-ease-glide), opacity .2s ease, background .26s ease; pointer-events: none; }
.mm-seg__btn { position: relative; z-index: 1; height: 34px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: -.01em; background: transparent; color: var(--mm-ink-66); transition: color .26s ease; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; }
.mm-seg__btn--on { color: var(--mm-on-strong); }
.mm-seg__btn .mm-icon { font-size: 17px; }
.mm-seg--square { display: flex; border-radius: 12px; border: 0; background: var(--mm-sunken); }
.mm-seg--square.mm-seg--on-panel { background: var(--mm-surface); border: 1px solid var(--mm-border); }
.mm-seg--square .mm-seg__pill { height: 38px; border-radius: 9px; }
.mm-seg--square .mm-seg__btn { flex: 1 1 auto; height: 38px; border-radius: 9px; justify-content: center; }
.mm-seg--small .mm-seg__pill, .mm-seg--small .mm-seg__btn { height: 32px; }
@media (max-width: 639.98px) { .mm-seg--scroll { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; } .mm-seg--scroll::-webkit-scrollbar { display: none; } }

/* Case à cocher et interrupteur (7.7, 7.16) */
.mm-check-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; text-align: left; width: 100%; transition: background .14s ease; cursor: pointer; }
.mm-check-row:hover { background: var(--mm-sunken); }
.mm-check-row--inline { width: auto; padding: 4px 0; }
.mm-check-row--inline:hover { background: none; }
.mm-check { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--mm-border-3); background: transparent; color: var(--mm-on-strong); transition: background .16s ease, border-color .16s ease; flex: 0 0 auto; }
.mm-check svg { opacity: 0; transition: opacity .16s ease; }
.mm-check--on { background: var(--mm-strong); border-color: var(--mm-strong); }
.mm-check--on svg { opacity: 1; }
.mm-switch-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: 10px; transition: background .14s ease; text-align: left; }
.mm-switch-row:hover { background: var(--mm-sunken); }
.mm-switch-row > .mm-icon { font-size: 18px; color: var(--mm-ink-50); }
.mm-switch-row__label { flex: 1 1 auto; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.mm-switch { position: relative; width: 40px; height: 24px; border-radius: 999px; background: var(--mm-border-2); transition: background .26s ease; flex: 0 0 auto; }
.mm-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--mm-surface); box-shadow: 0 1px 3px var(--mm-shadow); transition: left .26s var(--mm-ease-out); }
.mm-switch--on { background: var(--mm-strong); }
.mm-switch--on::after { left: 19px; }

/* Cartes (7.8) */
.mm-card { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 18px; padding: 18px; min-width: 0; }
.mm-card--16 { border-radius: 16px; }
.mm-card--20 { border-radius: 20px; padding: clamp(18px,2.4vw,24px); }
.mm-card--click { transition: transform .55s var(--mm-ease-glide), box-shadow .55s var(--mm-ease-glide), border-color .55s var(--mm-ease-glide); cursor: pointer; }
@media (hover: hover) { .mm-card--click:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--mm-elevate); } }

.mm-app-tile { position: relative; display: flex; flex: 1 1 auto; flex-direction: column; gap: 14px; padding: 18px; min-height: 158px; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 20px; color: var(--mm-ink); transform: translate3d(0,0,0); box-shadow: 0 12px 28px transparent; transition: transform .55s var(--mm-ease-glide), box-shadow .55s var(--mm-ease-glide), border-color .55s var(--mm-ease-glide); }
.mm-app-tile:hover { color: var(--mm-ink); }
@media (hover: hover) { .mm-app-tile:hover { transform: translate3d(0,-5px,0); box-shadow: 0 12px 28px var(--mm-elevate); border-color: var(--mm-border-2); } .mm-app-tile:hover .mm-app-tile__icon { transform: scale(1.06); } }
.mm-app-tile:active { transform: translate3d(0,-2px,0); }
.mm-app-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.mm-app-tile__icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 13px; transition: transform .5s var(--mm-ease-expo); }
.mm-app-tile__icon .mm-icon { font-size: 24px; font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.mm-app-tile__title { margin-top: auto; font-size: 15px; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.mm-app-tile__desc { margin-top: 5px; font-size: 12.5px; font-weight: 500; line-height: 1.4; color: var(--mm-ink-64); }
.mm-app-tile--disabled { pointer-events: none; }
.mm-app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mm-app-grid > * { display: flex; animation: mmRise .4s var(--mm-ease-out) both; }
@media (max-width: 639.98px) { .mm-app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .mm-app-tile { min-height: 132px; padding: 14px; } }
@media (max-width: 379.98px) { .mm-app-grid { grid-template-columns: minmax(0, 1fr); } .mm-app-tile__desc { display: none; } }

.mm-kpi { display: flex; flex-direction: column; min-width: 0; height: 100%; min-height: 96px; background: var(--mm-surface); border: 1.5px solid var(--mm-border); border-radius: 16px; overflow: hidden; transition: border-color .3s ease, box-shadow .3s ease; }
@media (hover: hover) { .mm-kpi:hover { border-color: var(--mm-border-2); box-shadow: 0 6px 18px var(--mm-elevate); } }
.mm-kpi__head { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 14px 0; text-align: center; }
.mm-kpi__head .mm-icon { font-size: 20px; color: var(--mm-ink-50); }
.mm-kpi__subject { font-size: 12.5px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--mm-ink-72); }
.mm-kpi__parts { display: flex; flex: 1 1 auto; min-width: 0; }
.mm-kpi__part { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; flex: 1 1 0; min-width: 0; text-align: center; padding: 6px 14px 13px; background: var(--mm-surface); transition: background .25s ease; }
.mm-kpi__part + .mm-kpi__part { border-left: 1px solid var(--mm-border); }
@media (hover: hover) { .mm-kpi__part:hover { background: var(--mm-sunken); } }
.mm-kpi__part--on, .mm-kpi__part--on:hover { background: var(--mm-surface-2); }
.mm-kpi__value { font-size: 22px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: proportional-nums; }
.mm-kpi__label { margin-top: 5px; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--mm-ink-66); }
.mm-kpi--single .mm-kpi__part { justify-content: flex-start; padding: 13px 14px; }
.mm-kpi--single .mm-kpi__head-inline { display: flex; align-items: center; justify-content: center; gap: 5px; max-width: 100%; }
.mm-kpi--single .mm-kpi__head-inline .mm-icon { font-size: 18px; }
.mm-kpi--single .mm-kpi__value { margin-top: auto; padding-top: 12px; font-size: 26px; }
.mm-kpi__filter { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 999px; color: #ffffff; animation: mmPop .18s var(--mm-ease-out) both; flex: 0 0 auto; }
.mm-kpi__filter .mm-icon { font-size: 16px; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 20; color: #ffffff; }
.mm-kpi-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: stretch; }
@media (max-width: 639.98px) { .mm-kpi-row { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); } .mm-kpi--single .mm-kpi__value { font-size: 22px; } }

/* Tableau (7.9) */
.mm-table-wrap { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 18px; overflow: hidden; }
.mm-table-scroll { overflow: auto; max-height: min(60vh, 620px); }
.mm-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.mm-table th { position: sticky; top: 0; z-index: 2; background: var(--mm-surface-2); height: 44px; padding: 0 14px; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--mm-ink-72); border-bottom: 1px solid var(--mm-border); white-space: nowrap; }
.mm-table th button { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; }
.mm-table td { height: 50px; padding: 0 14px; border-bottom: 1px solid var(--mm-line); font-weight: 550; color: var(--mm-ink-80); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.mm-table tbody tr { transition: background .18s ease; }
.mm-table tbody tr:hover { background: var(--mm-surface-2); }
.mm-table tbody tr[data-clickable="true"] { cursor: pointer; }
.mm-table tbody tr:last-child td { border-bottom: 0; }
.mm-table--compact td { height: 38px; font-size: 12px; }
.mm-table .mm-num { font-variant-numeric: tabular-nums; }
.mm-table .mm-empty-cell { color: var(--mm-ink-44); }
.mm-cards { display: flex; flex-direction: column; gap: 10px; }
.mm-row-card { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 16px; padding: 15px 16px; display: flex; flex-direction: column; gap: 8px; animation: mmRise .36s var(--mm-ease-out) both; text-align: left; width: 100%; }
.mm-row-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 750; }
.mm-row-card__kv { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.mm-row-card__kv span:first-child { color: var(--mm-ink-64); font-weight: 600; }
.mm-row-card__kv span:last-child { font-weight: 650; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-bulkbar { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; background: var(--mm-nav); color: #ffffff; border-radius: 999px; box-shadow: 0 14px 40px var(--mm-shadow-lg); font-size: 13px; font-weight: 700; animation: mmRise .26s var(--mm-ease-out) both; max-width: calc(100vw - 28px); }
.mm-bulkbar__sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); }
@media (max-width: 639.98px) { .mm-bulkbar { left: 0; right: 0; bottom: 0; transform: none; max-width: none; border-radius: 16px 16px 0 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); } }
.mm-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 4px 0 12px; border-radius: 999px; background: var(--mm-surface); border: 1px solid var(--mm-border); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.mm-chip button { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; color: var(--mm-ink-50); }
.mm-chip button:hover { background: var(--mm-sunken); color: var(--mm-ink); }
.mm-chip .mm-icon { font-size: 14px; }
.mm-chip--sunken { background: var(--mm-sunken); border-color: transparent; height: 28px; }
.mm-chip--error { background: var(--mm-red-bg); color: var(--mm-red-ink); border-color: transparent; }

/* Consommation (7.18) */
.mm-conso { display: flex; flex-direction: column; gap: 5px; width: 100%; min-width: 0; }
.mm-conso__text { font-size: 11.5px; font-weight: 700; }
.mm-conso__track { height: 5px; border-radius: 999px; background: var(--mm-sunken); overflow: hidden; }
.mm-conso__fill { display: block; height: 100%; border-radius: 999px; transform-origin: left; animation: mmGrow .5s var(--mm-ease-expo) both; }

/* Panneau latéral (7.10) */
.mm-panel-root { position: fixed; inset: 0; z-index: 100; display: flex; justify-content: flex-end; }
.mm-scrim { position: absolute; inset: 0; background: var(--mm-scrim); animation: mmFade .2s ease both; }
.mm-panel { position: relative; width: min(var(--mm-panel-w), 100vw); height: 100dvh; background: var(--mm-panel); display: flex; flex-direction: column; box-shadow: -14px 0 40px var(--mm-shadow); animation: mmSlideR .3s var(--mm-ease-out) both; }
.mm-panel__head { background: var(--mm-nav); color: #ffffff; padding: 22px max(22px, env(safe-area-inset-right)) 18px 22px; display: flex; flex-direction: column; gap: 10px; }
.mm-panel__row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mm-panel__title { font-size: 20px; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.mm-panel__sub { margin-top: 5px; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8); }
.mm-panel__steps { display: flex; gap: 6px; margin-top: 4px; }
.mm-panel__steps span { flex: 1; height: 4px; border-radius: 999px; background: rgba(255,255,255,.18); overflow: hidden; }
.mm-panel__steps span i { display: block; height: 100%; background: var(--mm-red); transition: width .42s var(--mm-ease-glide); }
.mm-panel__body { flex: 1 1 auto; overflow-y: auto; padding: 20px max(22px, env(safe-area-inset-right)) 28px 22px; display: flex; flex-direction: column; gap: 18px; ; overflow-x: hidden; }
.mm-panel__body > * { animation: mmRise .3s var(--mm-ease-out) both; }
.mm-panel__foot { padding: 14px max(22px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) 22px; border-top: 1px solid var(--mm-border); display: flex; gap: 10px; background: var(--mm-panel); }
.mm-panel__foot > .mm-btn--primary { flex: 1 1 auto; }
@media (max-width: 639.98px) { .mm-panel { width: 100vw; } .mm-panel__head { min-height: 56px; padding: calc(16px + env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) 14px 18px; } .mm-panel__body { padding: 16px max(18px, env(safe-area-inset-right)) 24px 18px; } }
@media (max-height: 499.98px) { .mm-panel__head { padding: 14px max(18px, env(safe-area-inset-right)) 14px 18px; } .mm-panel__title { font-size: 17px; } }

/* Notification (7.11) */
.mm-toast { position: fixed; left: 50%; bottom: 96px; z-index: 120; transform: translate(-50%, 0); display: flex; align-items: center; gap: 10px; padding: 12px 18px; max-width: calc(100vw - 28px); background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 999px; box-shadow: 0 12px 34px var(--mm-shadow-lg); font-size: 13px; font-weight: 650; letter-spacing: -.01em; animation: mmUp .24s var(--mm-ease-out) both; transition: opacity .2s ease; }
.mm-toast--leaving { opacity: 0; }
.mm-toast .mm-icon { font-size: 19px; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 20; }
@media (max-width: 639.98px) { .mm-toast { bottom: calc(84px + env(safe-area-inset-bottom)); border-radius: 16px; } }

/* Notes, bandeaux, états (7.12, 7.15, 7.25) */
.mm-note { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 11px 14px; border-radius: 12px; background: var(--mm-blue-bg); color: var(--mm-blue-ink); font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.mm-note .mm-icon { font-size: 18px; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 20; }
.mm-banner { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 12px 14px; border-radius: 12px; font-size: 13px; font-weight: 550; line-height: 1.55; }
.mm-banner .mm-icon { font-size: 19px; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 20; }
.mm-banner--warning { background: var(--mm-orange-bg); color: var(--mm-orange-ink); }
.mm-banner--error { background: var(--mm-red-bg); color: var(--mm-red-ink); font-weight: 600; animation: mmDrop .24s var(--mm-ease-out) both, mmShake .45s cubic-bezier(.36,.07,.19,.97) .08s; }
/* Encadrés (7.15, 7.25) : icône, texte et action centrés en hauteur, une ou plusieurs lignes. Icône dans une boîte de 20px
   centrée (jamais de line-height qui la décale), texte qui prend la place, action compacte à droite. */
.mm-box__icon { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 20px; height: 20px; }
.mm-box__icon .mm-icon { display: block; line-height: 1; }
.mm-box__text { flex: 1 1 auto; min-width: 0; }
.mm-box__text > :first-child { margin-top: 0; }
.mm-box__text > :last-child { margin-bottom: 0; }
.mm-box__action { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: 4px; }
.mm-banner--action, .mm-note--action { padding-top: 8px; padding-bottom: 8px; padding-right: 8px; }
/* Bouton dans un encadré : pilule blanche compacte, sans bordure ; copié : reste blanc, coche à l'encre de l'encadré. */
.mm-box__action .mm-copy, .mm-box__action .mm-btn { height: 32px; padding: 0 13px; font-size: 12.5px; }
.mm-box__action .mm-copy { background: var(--mm-surface); border-color: transparent; color: var(--mm-ink); box-shadow: 0 1px 2px var(--mm-line); }
.mm-box__action .mm-copy:hover { border-color: transparent; box-shadow: 0 0 0 1px currentColor; }
.mm-banner .mm-box__action .mm-copy--done, .mm-banner .mm-box__action .mm-copy--done:hover, .mm-note .mm-box__action .mm-copy--done, .mm-note .mm-box__action .mm-copy--done:hover { background: var(--mm-surface); border-color: transparent; box-shadow: 0 1px 2px var(--mm-line); }
.mm-banner--error .mm-box__action .mm-copy--done { color: var(--mm-red-ink); }
.mm-banner--warning .mm-box__action .mm-copy--done { color: var(--mm-orange-ink); }
.mm-note .mm-box__action .mm-copy--done { color: var(--mm-blue-ink); }
/* L'action reste à droite, centrée en hauteur, à toutes les largeurs : jamais renvoyée sous le texte, le texte se replie. */
.mm-status { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 16px; font-size: 13px; font-weight: 600; line-height: 1.45; animation: mmFade .2s ease both; }
.mm-status .mm-icon { font-size: 22px; font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 24; }
.mm-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 56px 24px; text-align: center; background: var(--mm-surface); border: 1px dashed var(--mm-border-2); border-radius: 18px; animation: mmFade .24s ease both; }
.mm-empty > .mm-icon { font-size: 44px; color: var(--mm-ink-22); font-variation-settings: 'wght' 300, 'opsz' 48; }
.mm-empty__title { font-size: 15px; font-weight: 700; }
.mm-empty__hint { font-size: 13px; font-weight: 500; color: var(--mm-ink-64); max-width: 44ch; }
.mm-empty--bare { background: transparent; border: 0; padding: 32px 16px; }
.mm-skeleton { background: linear-gradient(90deg, var(--mm-sunken) 0%, var(--mm-surface-2) 40%, var(--mm-sunken) 80%); background-size: 420px 100%; animation: mmSweep 1.3s linear infinite; border-radius: 8px; }

/* Barres de progression (7.19, 7.29) */
.mm-progress { display: flex; align-items: center; gap: 14px; width: 100%; }
.mm-progress__track { flex: 1 1 auto; height: 8px; border-radius: 999px; background: var(--mm-sunken); overflow: hidden; }
.mm-progress__fill { height: 100%; border-radius: 999px; background: var(--mm-red); transition: width .9s var(--mm-ease-glide); }
.mm-progress__label { flex: 0 0 auto; min-width: 44px; text-align: right; font-size: 13px; font-weight: 750; }
.mm-progress--file .mm-progress__track { height: 4px; }
.mm-progress--file .mm-progress__fill { transition: width .3s ease; }
.mm-indet { height: 3px; background: var(--mm-chart-track); overflow: hidden; width: 100%; }
.mm-indet i { display: block; width: 38%; height: 100%; border-radius: 999px; background: var(--mm-red); animation: mmIndet 1.1s cubic-bezier(.65,0,.35,1) infinite; }
.mm-indet--page { position: sticky; top: calc(var(--mm-topbar-h) + env(safe-area-inset-top)); z-index: 39; }
.mm-steps { display: flex; flex-direction: column; gap: 2px; }
.mm-step { display: flex; align-items: center; gap: 11px; min-height: 32px; font-size: 13px; letter-spacing: -.01em; }
.mm-step__mark { display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex: 0 0 auto; }
.mm-step__mark .mm-icon { font-size: 19px; }
.mm-step--done { font-weight: 600; color: var(--mm-ink-80); }
.mm-step--done .mm-icon { color: var(--mm-green-ink); font-variation-settings: 'FILL' 1, 'wght' 400, 'opsz' 20; animation: mmFade .24s ease both; }
.mm-step--current { font-weight: 750; color: var(--mm-ink); }
.mm-step--todo { font-weight: 550; color: var(--mm-ink-64); }
.mm-step--todo .mm-icon { color: var(--mm-ink-22); font-variation-settings: 'FILL' 0, 'wght' 300, 'opsz' 20; }
.mm-numbered { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.mm-numbered li { display: flex; align-items: flex-start; gap: 12px; font-size: 13.5px; font-weight: 550; line-height: 1.5; }
.mm-numbered li > b { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--mm-sunken); font-size: 12px; font-weight: 800; line-height: 24px; flex: 0 0 auto; margin-top: -1px; }

/* Secret, copie, fichier, récapitulatif (7.20 à 7.23) */
.mm-secret { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 10px 10px 10px 18px; border-radius: 14px; border: 1px solid var(--mm-border-2); background: var(--mm-surface-2); }
.mm-secret code { flex: 1 1 auto; min-width: 0; font-family: var(--mm-mono); font-size: 16px; font-weight: 600; letter-spacing: .05em; line-height: 1.5; overflow-wrap: anywhere; user-select: all; }
.mm-copy { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; height: 38px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--mm-border-2); background: var(--mm-surface); color: var(--mm-ink); font-size: 13px; font-weight: 700; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.mm-copy:hover { border-color: var(--mm-strong); }
.mm-copy .mm-icon { font-size: 18px; }
.mm-copy--done, .mm-copy--done:hover { background: var(--mm-green-bg); color: var(--mm-green-ink); border-color: transparent; }
.mm-file { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 16px 18px; border-radius: 16px; background: var(--mm-sunken); }
.mm-file__icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mm-surface); flex: 0 0 auto; }
.mm-file__icon .mm-icon { font-size: 21px; }
.mm-file__body { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mm-file__title { font-size: 13.5px; font-weight: 750; letter-spacing: -.01em; }
.mm-file__help { font-size: 12.5px; font-weight: 500; line-height: 1.5; color: var(--mm-ink-64); }
.mm-kv { display: flex; flex-direction: column; border-top: 1px solid var(--mm-border); margin: 0; container-type: inline-size; }
.mm-kv > div { display: grid; grid-template-columns: minmax(120px, 190px) minmax(0, 1fr); gap: 6px 16px; padding: 11px 0; border-bottom: 1px solid var(--mm-border); }
.mm-kv dt { font-size: 12.5px; font-weight: 600; color: var(--mm-ink-64); }
.mm-kv dd { margin: 0; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 639.98px) { .mm-kv > div { grid-template-columns: minmax(0, 1fr); } }
/* Liste étroite (carte détail 324 px) : même empilement que sur mobile, seuil de conteneur xs (420). */
@container (max-width: 420px) { .mm-kv > div { grid-template-columns: minmax(0, 1fr); } }
.mm-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px; border: 1.5px dashed var(--mm-border-2); border-radius: 16px; text-align: center; transition: border-color .18s ease, background .18s ease; cursor: pointer; }
.mm-drop--over { border-color: var(--mm-red); background: var(--mm-soft-red); }
.mm-drop > .mm-icon { font-size: 28px; color: var(--mm-ink-44); }
.mm-drop__text { font-size: 13.5px; font-weight: 650; }
.mm-drop__help { font-size: 12px; font-weight: 550; color: var(--mm-ink-60); }

/* Calendrier (7.17) */
.mm-cal { width: min(320px, calc(100vw - 60px)); padding: 12px; }
.mm-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mm-cal__month { font-size: 13.5px; font-weight: 750; letter-spacing: -.01em; }
.mm-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mm-cal__wd { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--mm-ink-50); padding: 4px 0; }
.mm-cal__day { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; min-height: 34px; border-radius: 9px; font-size: 12.5px; font-weight: 600; font-variant-numeric: proportional-nums; transition: background .16s ease, color .16s ease; }
.mm-cal__day:hover:not(:disabled) { background: var(--mm-sunken); }
.mm-cal__day--today { color: var(--mm-red); font-weight: 750; }
.mm-cal__day--on, .mm-cal__day--on:hover:not(:disabled) { background: var(--mm-strong); color: var(--mm-on-strong); font-weight: 750; }
.mm-cal__day:disabled { opacity: .35; }
.mm-sheet .mm-cal { width: 100%; }
.mm-sheet .mm-cal__day { min-height: 44px; }

/* Repliable, historique (7.34, 7.35) */
.mm-acc { border: 1px solid var(--mm-border); border-radius: 12px; overflow: hidden; background: var(--mm-surface); }
.mm-acc__head { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 14px; text-align: left; }
.mm-acc__title { flex: 1 1 auto; font-size: 13.5px; font-weight: 700; }
.mm-acc__count { font-size: 12px; font-weight: 600; color: var(--mm-ink-60); }
.mm-acc__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s var(--mm-ease-out); }
.mm-acc__body > div { overflow: hidden; }
.mm-acc--open .mm-acc__body { grid-template-rows: 1fr; }
.mm-timeline { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.mm-timeline li { display: flex; gap: 12px; animation: mmRise .3s var(--mm-ease-out) both; }
.mm-timeline__rail { display: flex; flex-direction: column; align-items: center; }
.mm-timeline__icon { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 9px; background: var(--mm-sunken); flex: 0 0 auto; }
.mm-timeline__icon .mm-icon { font-size: 16px; }
.mm-timeline__line { flex: 1; width: 1px; background: var(--mm-line); margin: 4px 0; }
.mm-timeline__body { padding-bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.mm-timeline__title { font-size: 13px; font-weight: 650; }
.mm-timeline__meta { font-size: 11.5px; font-weight: 550; color: var(--mm-ink-60); }

/* Curseur (7.30) */
.mm-slider { position: relative; height: 24px; display: flex; align-items: center; }
.mm-slider__track { position: absolute; left: 0; right: 0; height: 6px; border-radius: 999px; background: var(--mm-chart-track); }
.mm-slider__fill { position: absolute; left: 0; height: 6px; border-radius: 999px; background: var(--mm-strong); }
.mm-slider__thumb { position: absolute; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--mm-surface); border: 2px solid var(--mm-strong); box-shadow: 0 1px 3px var(--mm-shadow); transition: transform .18s ease, box-shadow .18s ease; pointer-events: none; }
.mm-slider input { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mm-slider:hover .mm-slider__thumb, .mm-slider--drag .mm-slider__thumb { transform: scale(1.12); }
.mm-slider input:focus-visible ~ .mm-slider__thumb { box-shadow: var(--mm-focus-ring); }
.mm-slider__bubble { position: absolute; bottom: calc(100% + 6px); transform: translateX(-50%); padding: 4px 8px; border-radius: 8px; background: var(--mm-nav); color: #ffffff; font-size: 12px; font-weight: 700; white-space: nowrap; animation: mmFade .14s ease both; pointer-events: none; }

/* Info-bulle (7.26, 17.3) */
.mm-tip { position: absolute; z-index: 5; width: max-content; max-width: 200px; padding: 9px 11px; background: var(--mm-nav); color: #ffffff; border: 1px solid var(--mm-tip-border); border-radius: 11px; box-shadow: 0 10px 26px var(--mm-shadow-lg); animation: mmFade .14s ease both; pointer-events: none; }
.mm-tip__title { font-size: 12px; font-weight: 750; }
.mm-tip__line { margin-top: 3px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.8); }

/* Graphiques (17) */
.mm-chart-card { display: flex; flex-direction: column; }
.mm-chart-card__sub { margin-top: 3px; font-size: 12.5px; font-weight: 550; color: var(--mm-ink-64); }
.mm-chart-card__plot { position: relative; margin-top: 18px; flex: 1 1 auto; min-height: 220px; }
.mm-legend { margin-top: 12px; display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; font-weight: 600; color: var(--mm-ink-64); }
.mm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mm-legend i { width: 14px; height: 10px; border-radius: 3px; }
.mm-legend i.mm-legend--line { height: 3px; border-radius: 999px; }
.mm-legend-row { display: flex; align-items: center; gap: 11px; padding: 9px 10px; margin: 0 -10px; border-radius: 10px; transition: background .18s ease; }
.mm-legend-row--on { background: var(--mm-surface-2); }
.mm-legend-row i { width: 12px; height: 12px; border-radius: 4px; flex: 0 0 auto; }
.mm-legend-row__label { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 650; }
.mm-legend-row__n { font-size: 13px; font-weight: 750; font-variant-numeric: proportional-nums; }
.mm-legend-row__share { width: 40px; text-align: right; font-size: 12px; font-weight: 600; color: var(--mm-ink-60); }
.mm-axis-label { font-size: 10.5px; font-weight: 650; color: var(--mm-ink-60); white-space: nowrap; }
.mm-hbar { display: flex; flex-direction: column; gap: 7px; }
.mm-hbar__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mm-hbar__name { min-width: 0; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-hbar__meta { flex: 0 0 auto; font-size: 12px; font-weight: 600; color: var(--mm-ink-64); }
.mm-hbar__track { position: relative; height: 12px; border-radius: 999px; background: var(--mm-chart-track); }
.mm-hbar__fill { height: 100%; border-radius: 999px; transition: width .7s var(--mm-ease-glide); }
.mm-hbar__threshold { position: absolute; top: -3px; bottom: -3px; width: 2px; border-radius: 2px; background: var(--mm-red-ink); }
.mm-kfig { display: flex; flex-direction: column; gap: 10px; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 18px; padding: 16px 17px; min-width: 0; }
.mm-kfig__head { display: flex; align-items: center; gap: 9px; }
.mm-kfig__icon { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; flex: 0 0 auto; }
.mm-kfig__icon .mm-icon { font-size: 18px; }
.mm-kfig__label { font-size: 12.5px; font-weight: 700; color: var(--mm-ink-72); line-height: 1.3; }
.mm-kfig__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.mm-kfig__value { display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; }
.mm-kfig__value b { font-size: 30px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: proportional-nums; }
.mm-kfig__unit { font-size: 12.5px; font-weight: 650; color: var(--mm-ink-64); }
.mm-kfig__sub { font-size: 12px; font-weight: 550; line-height: 1.45; color: var(--mm-ink-64); }
.mm-trend { display: inline-flex; align-items: center; gap: 3px; padding: 2px 8px 2px 6px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mm-trend .mm-icon { font-size: 14px; }
.mm-split { display: flex; height: 10px; border-radius: 999px; overflow: hidden; gap: 2px; }

/* Coque (8) */
.mm-shell { display: flex; min-height: 100dvh; background: var(--mm-bg); }
.mm-shell__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mm-content { flex: 1 1 auto; min-width: 0; padding: clamp(18px,2.6vw,30px) max(clamp(14px,2.4vw,28px), env(safe-area-inset-right)) max(40px, env(safe-area-inset-bottom)) max(clamp(14px,2.4vw,28px), env(safe-area-inset-left)); }
@media (max-width: 639.98px) { .mm-content { padding: 16px max(14px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left)); } }
:root { --mm-content-max: 1440px; }
.mm-content__inner { width: 100%; max-width: var(--mm-content-max); margin-inline: auto; }
.mm-content--wide .mm-content__inner { max-width: none; }
.mm-sidebar { position: sticky; top: 0; height: 100dvh; flex: 0 0 auto; width: var(--mm-sidebar-w); background: var(--mm-nav); color: #ffffff; display: flex; flex-direction: column; overflow: hidden; transition: width .28s var(--mm-ease-out); }
.mm-sidebar--collapsed { width: var(--mm-sidebar-w-collapsed); }
.mm-sidebar__deco { position: absolute; bottom: -56px; left: -64px; width: 260px; height: 260px; opacity: .05; pointer-events: none; animation: mmDrift 14s ease-in-out infinite; }
.mm-brand { display: flex; align-items: center; gap: 12px; height: 64px; padding: 0 20px 0 22px; flex: 0 0 auto; position: relative; }
.mm-brand svg { width: 34px; height: 34px; flex: 0 0 auto; margin-left: -3px; }
.mm-brand__text { transition: opacity .22s ease, max-width .3s var(--mm-ease-out); max-width: 180px; overflow: hidden; white-space: nowrap; }
.mm-brand__name { font-size: 16px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.mm-brand__sub { font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.7); margin-top: 2px; }
.mm-sidebar--collapsed .mm-brand__text, .mm-sidebar--collapsed .mm-nav__label, .mm-sidebar--collapsed .mm-nav__count { opacity: 0; max-width: 0; }
.mm-nav { padding: 12px; flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; position: relative; }
.mm-nav__rule { height: 1px; flex: 0 0 auto; background: rgba(255,255,255,.14); margin: 10px 10px; }
.mm-nav__rule--brand { margin: 0 22px; }
.mm-nav__title { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: rgba(255,255,255,.74); padding: 10px 10px 8px 12px; max-height: 40px; overflow: hidden; white-space: nowrap; transition: max-height .3s var(--mm-ease-out), padding .3s var(--mm-ease-out), opacity .22s ease; }
.mm-sidebar--collapsed .mm-nav__title { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
.mm-nav__link { position: relative; display: flex; align-items: center; gap: 12px; height: 42px; margin-bottom: 3px; padding: 0 13px 0 15.5px; border-radius: 10px; color: rgba(255,255,255,.76); transition: background .16s ease, color .16s ease; }
.mm-nav__link:hover { background: rgba(255,255,255,.08); color: #ffffff; }
.mm-nav__link--on, .mm-nav__link--on:hover { background: rgba(255,255,255,.12); color: #ffffff; }
.mm-nav__icon { position: relative; display: flex; flex: 0 0 auto; }
.mm-nav__icon .mm-icon { font-size: 21px; font-variation-settings: 'FILL' 0, 'wght' 350, 'opsz' 24; }
.mm-nav__label { flex: 1 1 auto; min-width: 0; font-size: 13.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; max-width: 180px; transition: opacity .22s ease, max-width .3s var(--mm-ease-out); }
.mm-nav__bottom { padding: 0 12px 6px; }
.mm-sidebar__foot { padding: 10px 20px 16px; display: flex; justify-content: flex-end; flex: 0 0 auto; }
.mm-topbar { position: sticky; top: 0; z-index: 40; height: calc(var(--mm-topbar-h) + env(safe-area-inset-top)); background: var(--mm-bg); border-bottom: 1px solid var(--mm-border); display: flex; align-items: center; gap: 12px; padding: env(safe-area-inset-top) max(clamp(14px,2.4vw,28px), env(safe-area-inset-right)) 0 max(clamp(14px,2.4vw,28px), env(safe-area-inset-left)); flex: 0 0 auto; }
.mm-topbar__name { font-size: 15px; font-weight: 750; letter-spacing: -.02em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-topbar__spacer { flex: 1 1 auto; }
.mm-org { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 12px; border-radius: 11px; background: var(--mm-surface); border: 1px solid var(--mm-border); font-size: 13px; font-weight: 700; max-width: 260px; transition: border-color .18s ease, box-shadow .18s ease; }
.mm-org:hover:not(:disabled) { border-color: var(--mm-border-2); box-shadow: 0 1px 3px var(--mm-line); }
.mm-org:disabled { cursor: default; color: var(--mm-ink); opacity: 1; }
.mm-org > .mm-icon:first-child { font-size: 19px; color: var(--mm-red); }
.mm-org__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-org .mm-chevron { font-size: 18px; color: var(--mm-ink-50); }
@media (max-width: 639.98px) { .mm-org { padding: 0; width: 40px; justify-content: center; } .mm-org__name, .mm-org .mm-chevron { display: none; } }
.mm-avatar { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--mm-nav) center / cover no-repeat; color: #ffffff; font-size: 12.5px; font-weight: 800; letter-spacing: .01em; line-height: 1; flex: 0 0 auto; user-select: none; transition: transform .18s var(--mm-ease-out), box-shadow .18s ease; }
button.mm-avatar:hover { box-shadow: 0 0 0 3px rgba(249,57,57,.22); }
button.mm-avatar:active { transform: scale(.95); }
.mm-avatar--42 { width: 42px; height: 42px; }
.mm-avatar--96 { width: 96px; height: 96px; font-size: 28px; box-shadow: 0 0 0 4px var(--mm-surface), 0 0 0 5px var(--mm-border); }
@media (max-width: 639.98px) { .mm-topbar .mm-avatar { width: 36px; height: 36px; } }
.mm-drawer-root { position: fixed; inset: 0; z-index: 110; }
.mm-drawer { position: absolute; top: 0; bottom: 0; left: 0; width: min(282px, 84vw); background: var(--mm-nav); color: #ffffff; display: flex; flex-direction: column; animation: mmSlideL .26s var(--mm-ease-out) both; padding-top: env(safe-area-inset-top); padding-left: env(safe-area-inset-left); padding-bottom: env(safe-area-inset-bottom); overflow: hidden; }
.mm-drawer .mm-scrim, .mm-drawer-root > .mm-scrim { background: var(--mm-scrim); }

/* 7.37 Boîte de dialogue */
.mm-dialog-root { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 20px; }
.mm-dialog { position: relative; width: min(400px, 100%); background: var(--mm-surface); border-radius: 20px; padding: 24px; text-align: center; box-shadow: 0 24px 60px var(--mm-shadow-lg); animation: mmPop .18s var(--mm-ease-out) both; }
.mm-dialog__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--mm-sunken); color: var(--mm-ink); }
.mm-dialog__title { margin-top: 16px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.mm-dialog__text { margin-top: 8px; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--mm-ink-64); text-wrap: pretty; }
.mm-dialog__foot { margin-top: 20px; display: flex; gap: 10px; }
.mm-dialog__foot > * { flex: 1 1 0; }

/* Calendrier (renvois d'appels) : événement et puce du mois */
.mm-cal-event { transition: box-shadow .18s ease, transform .18s var(--mm-ease-glide); }
.mm-cal-event:hover { box-shadow: 0 6px 18px var(--mm-elevate); transform: translateY(-1px); }
.mm-cal-chip { transition: filter .14s ease; }
.mm-cal-chip:hover { filter: brightness(.97); }

/* Groupe de tuiles KPI (7.8) : fond teinté de la famille */
.mm-kpi-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 12px 10px 10px; border: 1px solid var(--mm-border); border-radius: 20px; }
.mm-kpi-group__title { font-size: 15px; font-weight: 750; letter-spacing: -.02em; text-align: center; }
.mm-kpi-group > .mm-kpi-row { flex: 1 1 auto; }

/* Barre d'outils de tableau (7.9) */
.mm-tool-btn { display: inline-flex; align-items: center; gap: 9px; height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--mm-border); background: var(--mm-surface); font-size: 13px; font-weight: 650; color: var(--mm-ink); white-space: nowrap; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.mm-tool-btn:hover { border-color: var(--mm-border-3); }
.mm-tool-btn > .mm-icon:first-child { color: var(--mm-ink-50); transition: color .2s ease; }
.mm-tool-btn--active, .mm-tool-btn--active:hover { border-color: var(--mm-red); background: var(--mm-red-bg); color: var(--mm-red-ink); }
.mm-tool-btn--active > .mm-icon:first-child { color: inherit; }
.mm-tool-btn__count { font-size: 11px; font-weight: 750; padding: 2px 7px; border-radius: 999px; background: var(--mm-sunken); color: var(--mm-ink-66); }
.mm-tool-btn--active .mm-tool-btn__count { background: var(--mm-red); color: #ffffff; }
.mm-tool-btn__chev { color: var(--mm-ink-44); transition: transform .2s ease; }
.mm-tool-btn--active .mm-tool-btn__chev { color: inherit; opacity: .6; }
.mm-tool-btn--open .mm-tool-btn__chev { transform: rotate(180deg); }

.mm-btn-split { display: inline-flex; align-items: stretch; }
.mm-btn-split__main { border-radius: 999px 0 0 999px; border-right-width: 0; padding: 0 14px; }
.mm-btn-split__side { border-radius: 0 999px 999px 0; padding: 0 13px; gap: 6px; }
.mm-btn-split__count { font-size: 11px; font-weight: 750; padding: 2px 7px; border-radius: 999px; background: var(--mm-red-bg); color: var(--mm-red-ink); }

.mm-chip-btn { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--mm-border); background: var(--mm-surface); font-size: 13px; font-weight: 700; color: var(--mm-ink-80); white-space: nowrap; transition: border-color .22s ease, background .22s ease; }
.mm-chip-btn:hover { border-color: var(--mm-border-3); background: var(--mm-surface-2); }
.mm-chip-btn > .mm-icon { color: var(--mm-ink-44); }

.mm-filter-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 999px; background: var(--mm-surface); border: 1px solid var(--mm-border); font-size: 12.5px; font-weight: 650; animation: mmPop .18s var(--mm-ease-out) both; }
.mm-filter-chip > .mm-icon { color: var(--mm-red-ink); }
.mm-filter-chip > button { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: var(--mm-ink-50); transition: background .14s ease, color .14s ease; }
.mm-filter-chip > button:hover { background: var(--mm-sunken); color: var(--mm-ink); }

/* Liste compacte et constructeur de filtres */
.mm-inline-select { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--mm-border-2); background: var(--mm-surface); font-size: 12.5px; font-weight: 650; transition: border-color .2s ease, box-shadow .2s ease; }
.mm-inline-select:hover { border-color: var(--mm-border-3); }
.mm-inline-select--open { border-color: var(--mm-red); box-shadow: var(--mm-focus-ring); }
.mm-inline-select__chev { color: var(--mm-ink-44); transition: transform .2s ease; }
.mm-inline-select--open .mm-inline-select__chev { transform: rotate(180deg); }
.mm-inline-select__menu { top: calc(100% + 5px); left: 0; max-height: 250px; overflow-y: auto; border-radius: 12px; padding: 5px; animation: mmPop .14s ease both; }
.mm-inline-select__opt { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--mm-ink); transition: background .14s ease; }
.mm-inline-select__opt:hover { background: var(--mm-sunken); }
.mm-filter-builder { position: relative; z-index: 30; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 16px; padding: 16px; animation: mmPop .18s var(--mm-ease-out) both; }
.mm-filter-builder__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mm-filter-builder__title { font-size: 13px; font-weight: 750; letter-spacing: -.01em; }
.mm-filter-builder__rows { margin-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.mm-filter-builder__row { position: relative; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mm-filter-builder__op { width: 56px; height: 38px; flex: 0 0 auto; border-radius: 9px; background: var(--mm-strong); color: var(--mm-on-strong); font-size: 12px; font-weight: 750; transition: opacity .18s ease; }
.mm-filter-builder__op:hover { opacity: .85; }
.mm-filter-builder__op-space { width: 56px; flex: 0 0 auto; }
.mm-filter-builder__term { flex: 1 1 180px; min-width: 150px; }
.mm-filter-builder__remove:hover { background: var(--mm-red-bg); color: var(--mm-red-ink); }
.mm-filter-builder__foot { margin-top: 14px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
@media (max-width: 639.98px) { .mm-filter-builder__op-space { display: none; } .mm-filter-builder__row { padding-bottom: 9px; border-bottom: 1px solid var(--mm-tint); } .mm-filter-builder__term { flex-basis: 100%; } }

/* Sélecteur de mois */
.mm-month-picker { padding: 8px; }
.mm-month-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mm-month-picker__year { font-size: 14px; font-weight: 750; }
.mm-month-picker__grid { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mm-month-picker__m { height: 38px; border-radius: 9px; font-size: 12.5px; font-weight: 650; color: var(--mm-ink); transition: background .16s ease, color .16s ease; }
.mm-month-picker__m:hover:not(:disabled) { background: var(--mm-sunken); }
.mm-month-picker__m:disabled { opacity: .55; cursor: not-allowed; }
.mm-month-picker__m--on, .mm-month-picker__m--on:hover:not(:disabled) { background: var(--mm-strong); color: var(--mm-on-strong); }

/* Suggestions d'une recherche principale */
.mm-suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 30; max-width: 620px; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 16px; box-shadow: 0 12px 34px var(--mm-shadow); padding: 6px; animation: mmPop .14s var(--mm-ease-out) both; }
.mm-suggest__item { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 11px 12px; border-radius: 10px; transition: background .14s ease; }
.mm-suggest__item:hover { background: var(--mm-sunken); }
.mm-suggest__icon { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.mm-suggest__name { display: block; font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; color: var(--mm-ink); }
.mm-suggest__meta { display: block; font-size: 11.5px; font-weight: 550; color: var(--mm-ink-64); }
.mm-suggest__go { color: var(--mm-ink-22); }

/* En-tête de page (7.40) */
.mm-page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; animation: mmRise .4s var(--mm-ease-out) both; }
.mm-page-head__main { flex: 1 1 320px; min-width: 0; }
.mm-page-head__sub { margin-top: 10px; max-width: 56ch; }
.mm-page-head__below { margin-top: 12px; }
.mm-page-head--hero .mm-page-head__below { margin-top: clamp(20px,3vw,30px); }
.mm-page-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* Info-bulle d'interface (7.26) ; .mm-tip reste réservé aux graphiques */
.mm-tooltip { position: fixed; z-index: 200; pointer-events: none; max-width: 240px; padding: 6px 10px; border-radius: 8px; background: var(--mm-nav); color: #ffffff; border: 1px solid var(--mm-tip-border); font-size: 12px; font-weight: 600; line-height: 1.35; animation: mmFade .14s ease both; }
.mm-tooltip--top { transform: translate(-50%, -100%); }
.mm-tooltip--bottom { transform: translate(-50%, 0); }
.mm-tooltip--right { transform: translate(0, -50%); }
.mm-tooltip::after { content: ""; position: absolute; width: 8px; height: 8px; background: inherit; border: inherit; transform: rotate(45deg); }
.mm-tooltip--top::after { left: calc(50% - 5px); bottom: -5px; border-top: 0; border-left: 0; }
.mm-tooltip--bottom::after { left: calc(50% - 5px); top: -5px; border-bottom: 0; border-right: 0; }
.mm-tooltip--right::after { top: calc(50% - 5px); left: -5px; border-top: 0; border-right: 0; }
@media (hover: none) { .mm-tooltip { display: none; } }

/* Avatar 34 (conversation) et photo de profil (7.14) */
.mm-avatar--34 { width: 34px; height: 34px; font-size: 12px; }
/* Avatar (7.14) : noir charte et initiales blanches dans les deux thèmes ; en sombre, liseré pour le détacher du fond. */
/* Initiales centrées sur la hauteur des capitales, quelle que soit la police chargée. */
.mm-avatar__txt { display: block; text-box: trim-both cap alphabetic; }
.mm-avatar--24 { width: 24px; height: 24px; font-size: 9.5px; letter-spacing: 0; }
.mm-avatar--28 { width: 28px; height: 28px; font-size: 10.5px; }
.mm-avatar--32 { width: 32px; height: 32px; font-size: 11.5px; }
[data-mm-theme="dark"] .mm-avatar:not(.mm-avatar--photo) { box-shadow: inset 0 0 0 1px var(--mm-border-2); }
[data-mm-theme="dark"] button.mm-avatar:not(.mm-avatar--photo):hover { box-shadow: inset 0 0 0 1px var(--mm-border-2), 0 0 0 3px rgba(249,57,57,.22); }
/* Avatars empilés (7.14) : trois ronds au plus, chevauchement d'un cinquième (initiales lisibles), anneau de la surface ; au-delà, troisième rond « +N ». */
.mm-avatars-wrap { position: relative; display: inline-flex; vertical-align: middle; }
.mm-avatars { display: inline-flex; align-items: center; flex-direction: row; vertical-align: middle; padding: 0; border: 0; background: none; border-radius: 999px; cursor: pointer; transition: transform .18s var(--mm-ease-out); }
.mm-avatars:hover { transform: translateY(-1px); }
.mm-avatars:active { transform: scale(.97); }
.mm-avatars:focus-visible { outline: 2px solid var(--mm-ink); outline-offset: 3px; }
.mm-avatars > * + * { margin-left: -6px; }
.mm-avatars--24 > * + * { margin-left: -4px; }
.mm-avatars--28 > * + * { margin-left: -5px; }
.mm-avatars--40 > * + * { margin-left: -8px; }
.mm-avatars .mm-avatar { box-shadow: 0 0 0 2px var(--avatars-ring, var(--mm-surface)); }
[data-mm-theme="dark"] .mm-avatars .mm-avatar:not(.mm-avatar--photo) { box-shadow: inset 0 0 0 1px var(--mm-border-2), 0 0 0 2px var(--avatars-ring, var(--mm-surface)); }
.mm-avatar--more { background: var(--mm-sunken); color: var(--mm-ink-72); font-weight: 750; letter-spacing: -.01em; }
[data-mm-theme="dark"] .mm-avatars .mm-avatar--more { box-shadow: 0 0 0 2px var(--avatars-ring, var(--mm-surface)); }
/* Compte désactivé ou supprimé (7.14) : rond grisé, initiales atténuées, photo en niveaux de gris. */
.mm-avatar--inactive { background-color: var(--mm-border-2); color: var(--mm-ink-50); }
.mm-avatar--inactive.mm-avatar--photo { filter: grayscale(1); opacity: .55; }
/* Liste des utilisateurs d'un groupe d'avatars : popover sur ordinateur, feuille en bas d'écran sous 640 px. */
.mm-avatars-pop { top: calc(100% + 6px); left: 0; width: min(280px, calc(100vw - 28px)); max-height: 340px; overflow-y: auto; }
.mm-avatars-list__row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 650; color: var(--mm-ink); }
.mm-sheet .mm-avatars-list__row { min-height: 48px; }
.mm-avatars-list__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-avatars-list__you { font-weight: 600; color: var(--mm-ink-50); }
.mm-avatars-list__row--inactive .mm-avatars-list__name { color: var(--mm-ink-50); }
.mm-avatars-list__meta { margin-left: auto; flex: 0 0 auto; font-size: 11.5px; font-weight: 600; color: var(--mm-ink-50); }
.mm-photo { position: relative; display: inline-flex; padding: 6px; border-radius: 50%; border: 1.5px dashed transparent; transition: border-color .16s ease, background .16s ease; }
.mm-photo--over { border-color: #f93939; background: var(--mm-soft-red); }
.mm-photo__cam { position: absolute; right: 2px; bottom: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--mm-red); color: #ffffff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--mm-surface); transition: transform .16s ease; }
.mm-photo__cam:hover { transform: scale(1.06); }
.mm-photo__cam:active { transform: scale(.95); }
.mm-photo__veil { position: absolute; inset: 6px; border-radius: 50%; background: rgba(13,13,13,.5); display: flex; align-items: center; justify-content: center; }

/* Tuiles de statut (7.41) */
.mm-status-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.mm-status-tile { position: relative; display: flex; align-items: flex-start; gap: 12px; min-height: 66px; padding: 14px 16px; border-radius: 16px; border: 1px solid transparent; text-align: left; transition: transform .55s var(--mm-ease-glide), box-shadow .2s ease, border-color .2s ease; animation: mmRise .3s var(--mm-ease-out) both; }
.mm-status-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--mm-elevate); }
.mm-status-tile--neutral { background: var(--mm-surface); border-color: var(--mm-border); }
.mm-status-tile--on { border-color: currentColor; }
.mm-status-tile > .mm-icon { margin-top: 2px; }
.mm-status-tile__value { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.mm-status-tile__label { display: block; margin-top: 3px; font-size: 12.5px; font-weight: 600; }
.mm-status-tile__flag { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 10px 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; animation: mmPop .18s var(--mm-ease-out) both; }

/* Tri de liste (7.41) */
.mm-sort-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 650; color: var(--mm-ink-72); transition: background .16s ease, color .16s ease; }
.mm-sort-btn:hover { background: var(--mm-sunken); color: var(--mm-ink); }
.mm-sort-btn .mm-icon { transition: transform .28s var(--mm-ease-out); }
.mm-sort-btn--asc .mm-icon { transform: scaleY(-1); }

/* Ligne de liste (7.42) */
.mm-list { display: flex; flex-direction: column; gap: 8px; }
.mm-list-row { display: grid; grid-template-columns: 62px 84px minmax(0,1fr) auto auto 20px; align-items: center; gap: 14px; width: 100%; min-height: 66px; padding: 12px 16px 12px 18px; border-radius: 16px; background: var(--mm-surface); border: 1px solid var(--mm-border); color: var(--mm-ink); text-align: left; transition: transform .55s var(--mm-ease-glide), box-shadow .2s ease, border-color .2s ease; animation: mmRise .3s var(--mm-ease-out) both; }
.mm-list-row:hover { transform: translateY(-2px); box-shadow: 0 6px 18px var(--mm-elevate); border-color: var(--mm-border-2); }
.mm-list-row__lead { font-size: 12.5px; font-weight: 650; color: var(--mm-ink-64); white-space: nowrap; }
.mm-list-row__main { min-width: 0; }
.mm-list-row__title { display: block; font-size: 14px; font-weight: 700; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-list-row__meta { display: block; margin-top: 3px; font-size: 12px; font-weight: 550; color: var(--mm-ink-64); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-list-row__flag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--mm-strong); color: var(--mm-on-strong); font-size: 11px; font-weight: 700; white-space: nowrap; }
.mm-list-row__date { font-size: 12px; font-weight: 550; color: var(--mm-ink-64); white-space: nowrap; }
.mm-list-row__chev { color: var(--mm-ink-44); transition: transform .2s ease, color .2s ease; }
.mm-list-row:hover .mm-list-row__chev { transform: translateX(2px); color: var(--mm-ink); }
@media (max-width: 639.98px) {
  .mm-list-row { grid-template-columns: auto minmax(0,1fr) auto; grid-template-areas: "lead badge chev" "main main main" "date date flag"; gap: 8px 10px; }
  .mm-list-row__lead { grid-area: lead; } .mm-list-row__badge { grid-area: badge; } .mm-list-row__main { grid-area: main; }
  .mm-list-row__flag-cell { grid-area: flag; justify-self: end; } .mm-list-row__date { grid-area: date; } .mm-list-row__chev { grid-area: chev; }
}

/* Conversation (7.13) */
.mm-convo { display: flex; flex-direction: column; min-height: 0; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 20px; overflow: hidden; }
.mm-convo__thread { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mm-day-pill { align-self: center; padding: 5px 12px; border-radius: 999px; background: var(--mm-bg); font-size: 11px; font-weight: 700; color: var(--mm-ink-64); }
.mm-msg { display: flex; align-items: flex-end; gap: 10px; animation: mmBubble .28s var(--mm-ease-out) both; }
.mm-msg--me { flex-direction: row-reverse; }
.mm-msg__body { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; max-width: min(78%, 520px); min-width: 0; }
.mm-msg--me .mm-msg__body { align-items: flex-end; }
.mm-msg__head { display: flex; align-items: baseline; gap: 8px; }
.mm-msg--me .mm-msg__head { flex-direction: row-reverse; }
.mm-msg__name { font-size: 11.5px; font-weight: 750; }
.mm-msg__time { font-size: 11px; font-weight: 600; color: var(--mm-ink-64); }
.mm-msg__sending { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--mm-ink-64); }
.mm-bubble { padding: 11px 14px; font-size: 13.5px; font-weight: 500; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; background: var(--mm-bg); color: var(--mm-ink); border-radius: 18px 18px 18px 6px; }
.mm-msg--me .mm-bubble { background: var(--mm-strong); color: var(--mm-on-strong); border-radius: 18px 18px 6px 18px; }
.mm-attach { display: flex; align-items: center; gap: 10px; max-width: 320px; padding: 9px 12px; border-radius: 11px; background: var(--mm-surface-2); border: 1px solid var(--mm-border); color: var(--mm-ink); }
.mm-attach > .mm-icon { color: var(--mm-red-ink); }
.mm-attach__name { min-width: 0; font-size: 12px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-attach__size { font-size: 11px; font-weight: 600; color: var(--mm-ink-64); white-space: nowrap; }
.mm-composer { flex: 0 0 auto; padding: 12px 14px 14px; border-top: 1px solid var(--mm-border); }
.mm-composer__files { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.mm-composer__frame { display: flex; align-items: flex-end; gap: 6px; padding: 6px 6px 6px 14px; border-radius: 16px; border: 1px solid var(--mm-border-2); background: var(--mm-surface); transition: border-color .16s ease, box-shadow .16s ease; }
.mm-composer__frame:focus-within { border-color: #f93939; box-shadow: 0 0 0 4px rgba(249,57,57,.12); }
.mm-composer textarea { flex: 1 1 auto; min-width: 0; min-height: 38px; max-height: 160px; padding: 9px 0; border: 0; outline: 0; resize: none; background: transparent; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.45; color: var(--mm-ink); }
.mm-composer__attach { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--mm-ink-64); transition: background .16s ease, color .16s ease; }
.mm-composer__attach:hover { background: var(--mm-sunken); color: var(--mm-ink); }
.mm-composer__send { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mm-strong); color: var(--mm-on-strong); transition: opacity .16s ease, transform .16s ease; }
.mm-composer__send:disabled { opacity: .35; }
.mm-composer__send:active:not(:disabled) { transform: scale(.94); }

/* Carte de réglage (7.43) */
.mm-setting { display: flex; flex-direction: column; gap: 18px; padding: 22px; border-radius: 20px; }
.mm-setting__head { display: flex; align-items: flex-start; gap: 14px; }
.mm-setting__icon { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--mm-sunken); color: var(--mm-ink-72); transition: background .3s ease, color .3s ease; }
.mm-setting__title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.mm-setting__title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.mm-setting__desc { margin-top: 6px; max-width: 56ch; font-size: 13.5px; font-weight: 500; line-height: 1.55; color: var(--mm-ink-64); text-wrap: pretty; }
.mm-setting__body { display: flex; flex-direction: column; gap: 14px; }
.mm-setting__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Code à 6 chiffres (7.3) */
.mm-code { position: relative; display: grid; gap: 8px; width: 100%; max-width: 372px; cursor: text; }
.mm-code__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; font-size: 16px; caret-color: transparent; }
.mm-code__cell { min-width: 40px; height: 58px; border-radius: 12px; border: 1.5px solid var(--mm-border-2); background: var(--mm-surface); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; transition: border-color .16s ease, box-shadow .16s ease; }
.mm-code__cell--filled { border-color: var(--mm-border-3); }
.mm-code__cell--current { border-color: #f93939; box-shadow: 0 0 0 3px rgba(249,57,57,.14); }
.mm-code--error .mm-code__cell { border-color: var(--mm-red-ink); }
.mm-code--error { animation: mmShake .45s cubic-bezier(.36,.07,.19,.97); }

/* Code QR et codes de secours (7.44) */
.mm-qr { display: inline-flex; padding: 12px; background: #ffffff; border-radius: 14px; border: 1px solid var(--mm-border); line-height: 0; }
.mm-backup { min-width: 0; flex: 1 1 240px; }
.mm-backup__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px 16px; margin: 0; padding: 14px 16px; border-radius: 14px; background: var(--mm-sunken); list-style: none; }
.mm-backup__grid li { display: flex; align-items: center; gap: 10px; animation: mmRise .3s var(--mm-ease-out) both; }
.mm-backup__n { width: 18px; font-size: 11px; font-weight: 700; color: var(--mm-ink-44); text-align: right; }
.mm-backup__grid code { font-family: var(--mm-mono); font-size: 14px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; }
.mm-backup__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* Menu de filtre de colonne (7.6) */
.mm-colfilter { width: 250px; border-radius: 13px; background: var(--mm-surface); border: 1px solid var(--mm-border); box-shadow: 0 12px 34px var(--mm-shadow-lg); overflow: hidden; animation: mmPop .18s var(--mm-ease-out) both; }
.mm-colfilter__head { padding: 11px 14px; font-size: 12px; font-weight: 750; border-bottom: 1px solid var(--mm-line); }
.mm-colfilter__list { max-height: 240px; overflow-y: auto; padding: 4px; }
.mm-colfilter__foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--mm-line); }
.mm-colfilter__foot .mm-btn { flex: 1 1 0; height: 34px; }
.mm-th-filter { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 2px; border-radius: 6px; color: var(--mm-ink-44); opacity: 0; transition: opacity .16s ease, background .16s ease; }
th:hover .mm-th-filter, .mm-th-filter:focus-visible, .mm-th-filter--on { opacity: 1; }
.mm-th-filter:hover { background: var(--mm-sunken); color: var(--mm-ink); }
@media (hover: none) { .mm-th-filter { opacity: 1; } }

/* Spotlight (7.4) */
.mm-spot-root { position: fixed; inset: 0; z-index: 140; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.mm-spot { position: relative; width: min(840px, 100%); max-height: min(72vh, 640px); display: flex; flex-direction: column; background: var(--mm-surface); border-radius: 18px; box-shadow: 0 24px 64px var(--mm-shadow-lg); overflow: hidden; animation: mmPop .18s var(--mm-ease-out) both; }
.mm-spot__head { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--mm-line); color: var(--mm-ink-50); }
.mm-spot__head input { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; font-weight: 600; color: var(--mm-ink); }
.mm-spot__esc { display: inline-flex; align-items: center; height: 26px; padding: 0 8px; border-radius: 7px; border: 1px solid var(--mm-border-2); font-size: 11px; font-weight: 700; color: var(--mm-ink-64); }
.mm-spot__tabs { display: flex; gap: 4px; padding: 0 12px; border-bottom: 1px solid var(--mm-line); overflow-x: auto; }
.mm-spot__tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 48px; padding: 0 10px; font-size: 13px; font-weight: 650; color: var(--mm-ink-64); white-space: nowrap; }
.mm-spot__tab::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--mm-strong); transform: scaleX(0); transition: transform .24s var(--mm-ease-out); }
.mm-spot__tab--on { color: var(--mm-ink); }
.mm-spot__tab--on::after { transform: scaleX(1); }
.mm-spot__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--mm-sunken); font-size: 11px; font-weight: 700; }
.mm-spot__list { flex: 1 1 auto; overflow-y: auto; padding: 6px; }
.mm-spot .mm-suggest__item--on { background: var(--mm-sunken); }
@media (max-width: 639.98px) { .mm-spot-root { padding: 0; } .mm-spot { width: 100%; height: 100dvh; max-height: none; border-radius: 0; padding-top: env(safe-area-inset-top); } .mm-spot__head { height: 56px; } }

/* Lot 4 : tableaux de bord, cartes, médias, agenda */

/* W.1 Cadre de widget */
.mm-widget { display: flex; flex-direction: column; gap: 14px; min-width: 0; height: 100%; padding: 18px; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 18px; transition: box-shadow .2s ease, border-color .2s ease; }
.mm-widget--editing { border-style: dashed; border-color: var(--mm-border-3); }
.mm-widget__head { display: flex; align-items: center; gap: 8px 10px; min-height: 32px; flex-wrap: wrap; min-width: 0; }
.mm-widget__head .mm-seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.mm-widget__title { font-size: 15px; font-weight: 750; letter-spacing: -.02em; }
.mm-widget__info { display: inline-flex; color: var(--mm-ink-44); cursor: help; border-radius: 6px; }
.mm-widget__info:hover, .mm-widget__info:focus-visible { color: var(--mm-ink); }
.mm-widget__controls { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; flex-wrap: wrap; }
.mm-widget__handle { display: inline-flex; color: var(--mm-ink-44); cursor: grab; margin-left: -4px; }
.mm-widget__body { flex: 1 1 auto; min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.mm-widget__foot { padding-top: 12px; border-top: 1px solid var(--mm-line); display: flex; justify-content: flex-end; gap: 8px; }

/* W.2 Grille 12 colonnes */
.mm-wgrid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 14px; align-items: stretch; }
.mm-wgrid__cell { position: relative; min-width: 0; transition: transform .3s var(--mm-ease-out), opacity .2s ease; animation: mmRise .3s var(--mm-ease-out) both; }
.mm-wgrid--editing .mm-wgrid__cell { cursor: grab; }
.mm-wgrid__cell--drag { opacity: .45; }
.mm-wgrid__cell--over { transform: scale(.985); }
.mm-wgrid__cell--over > .mm-widget, .mm-wgrid__cell--over > .mm-kpiw { border-color: #f93939; box-shadow: 0 0 0 4px rgba(249,57,57,.12); }
.mm-wgrid__tools { position: absolute; right: 12px; bottom: 12px; z-index: 2; animation: mmPop .18s var(--mm-ease-out) both; }
.mm-wgrid__size { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--mm-strong); color: var(--mm-on-strong); font-size: 11px; font-weight: 700; }
@media (max-width: 999.98px) { .mm-wgrid { grid-template-columns: repeat(6, minmax(0,1fr)); } .mm-wgrid__cell { grid-column: span 6 !important; } }

/* W.3 Widget KPI */
.mm-kpiw { display: flex; flex-direction: column; gap: 12px; min-width: 0; height: 100%; padding: 18px; background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 18px; }
.mm-kpiw__head { display: flex; align-items: center; gap: 10px; }
.mm-kpiw__icon { width: 38px; height: 38px; border-radius: 11px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mm-kpiw__label { font-size: 13.5px; font-weight: 700; letter-spacing: -.01em; }
.mm-kpiw__row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.mm-kpiw__value { display: flex; align-items: baseline; gap: 4px; }
.mm-kpiw__value b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.mm-kpiw__value span { font-size: 18px; font-weight: 750; color: var(--mm-ink-64); }
.mm-kpiw__note { font-size: 12.5px; font-weight: 550; line-height: 1.45; color: var(--mm-ink-64); }
.mm-trend-line { display: flex; flex-direction: column; gap: 1px; }
.mm-trend-line__v { display: inline-flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 750; }
.mm-trend-line__c { font-size: 11.5px; font-weight: 550; color: var(--mm-ink-64); }
.mm-minibars { display: flex; align-items: flex-end; gap: 2px; }
.mm-minibars span { flex: 1 1 0; min-width: 3px; border-radius: 2px 2px 1px 1px; transform-origin: bottom; animation: mmGrowY .5s var(--mm-ease-glide) both; }
@keyframes mmGrowY { from { transform: scaleY(0) } to { transform: none } }

/* A.2 / A.3 Heatmaps */
.mm-heat__grid { display: grid; align-items: center; }
.mm-heat__row { font-size: 11.5px; font-weight: 600; color: var(--mm-ink-64); }
.mm-heat__cell { aspect-ratio: 1 / 1; min-height: 12px; border-radius: 4px; transition: transform .14s ease, box-shadow .14s ease; animation: mmFade .3s ease both; }
.mm-heat__cell--on { transform: scale(1.15); box-shadow: 0 0 0 2px var(--mm-strong); position: relative; z-index: 1; }
.mm-heat__tip { margin-top: 10px; min-height: 18px; font-size: 12.5px; font-weight: 600; }
.mm-heat__tip b { font-weight: 750; margin-right: 4px; }
.mm-heat__tip--idle { color: var(--mm-ink-64); }
.mm-heat-legend { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--mm-ink-64); }
.mm-heat-legend i { width: 12px; height: 12px; border-radius: 3px; }
.mm-heat-legend span:first-child { margin-right: 4px; } .mm-heat-legend span:last-child { margin-left: 4px; }
.mm-cal-heat { padding: 4px 2px 0; }
.mm-cal-heat__scroll { overflow-x: auto; padding-bottom: 6px; }
.mm-cal-heat__inner { display: flex; width: max-content; margin: 0 auto; }
.mm-cal-heat__wd { font-size: 10.5px; font-weight: 600; color: var(--mm-ink-64); text-align: right; }
.mm-cal-heat__month { font-size: 11px; font-weight: 600; color: var(--mm-ink-64); white-space: nowrap; overflow: visible; }
.mm-cal-heat__cell { border-radius: 3px; outline: 1px solid var(--mm-line); outline-offset: -1px; transition: box-shadow .14s ease; }
.mm-cal-heat__cell:hover { box-shadow: 0 0 0 2px var(--mm-strong); }
.mm-cal-heat__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--mm-line); }
.mm-cal-heat__foot .mm-heat-legend { margin-top: 0; }

/* A.4 Top / Flop, A.5 barres classées */
.mm-topflop { border: 1px solid var(--mm-border); border-radius: 14px; padding: 6px 12px; }
.mm-topflop__title { padding: 8px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--mm-ink-72); }
.mm-topflop ol { list-style: none; margin: 0; padding: 0; }
.mm-topflop__row { display: flex; align-items: center; gap: 12px; height: 40px; border-top: 1px solid var(--mm-line); animation: mmRise .3s var(--mm-ease-out) both; }
.mm-topflop__rank { width: 26px; height: 26px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; flex: 0 0 auto; }
.mm-topflop__name { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-topflop__v { font-size: 13px; font-weight: 750; }
.mm-topflop__gap { text-align: center; height: 24px; line-height: 20px; color: var(--mm-ink-44); border-top: 1px solid var(--mm-line); }
.mm-rbars { display: flex; flex-direction: column; gap: 9px; }
.mm-rbars__row { display: grid; grid-template-columns: minmax(120px, 44%) minmax(0,1fr) auto; align-items: center; gap: 10px; }
.mm-rbars__name { font-size: 12.5px; font-weight: 600; color: var(--mm-ink-72); text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-rbars__track { height: 14px; }
.mm-rbars__fill { display: block; height: 100%; border-radius: 4px; transform-origin: left; animation: mmGrow .6s var(--mm-ease-glide) both; }
.mm-rbars__v { min-width: 44px; font-size: 12.5px; font-weight: 750; }

/* P.1 / P.2 Périodes */
.mm-period { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm-period__nav { display: inline-flex; align-items: center; gap: 2px; height: 38px; padding: 0 3px; border-radius: 999px; background: var(--mm-surface); border: 1px solid var(--mm-border); }
.mm-period__label { min-width: 150px; text-align: center; font-size: 13px; font-weight: 700; white-space: nowrap; }
.mm-range { display: flex; gap: 6px; }
.mm-range__presets { flex: 0 0 160px; display: flex; flex-direction: column; padding-right: 6px; border-right: 1px solid var(--mm-line); }
.mm-range__cal { flex: 1 1 auto; padding: 4px 6px 6px; }
.mm-range__nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mm-range__month { flex: 1 1 0; min-width: 0; }
.mm-range__in { background: var(--mm-sunken); border-radius: 0; }
@media (max-width: 639.98px) { .mm-range { flex-direction: column; } .mm-range__presets { flex: none; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--mm-line); padding: 0 0 6px; } }

/* M.1 / M.2 Cartes */
.mm-map { position: relative; width: 100%; }
.mm-map svg { width: 100%; height: 100%; display: block; overflow: hidden; }
.mm-map-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mm-map-wrap .mm-map-legend { flex-direction: row; flex-wrap: wrap; gap: 8px 16px; }
.mm-map__area { transition: opacity .2s ease, stroke-width .16s ease; cursor: default; }
.mm-map__pin { cursor: pointer; }
.mm-map__pin circle { transition: r .16s ease; }
.mm-map__name { font-size: 12px; font-weight: 700; fill: var(--mm-ink); paint-order: stroke; stroke: var(--mm-surface); stroke-width: 3px; }
.mm-map__val { font-size: 11.5px; font-weight: 650; fill: var(--mm-ink-72); paint-order: stroke; stroke: var(--mm-surface); stroke-width: 3px; }
.mm-map__tip { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; border-radius: 8px; background: var(--mm-nav); color: #ffffff; font-size: 12px; font-weight: 600; pointer-events: none; }
.mm-map__tip b { font-weight: 750; margin-right: 4px; }
.mm-map__msg { display: flex; align-items: center; justify-content: center; min-height: 160px; font-size: 13px; font-weight: 550; color: var(--mm-ink-64); }
.mm-map-legend { display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; font-weight: 600; }
.mm-map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.mm-map-legend i { width: 12px; height: 12px; border-radius: 999px; }
.mm-imap { width: 100%; border-radius: 14px; overflow: hidden; border: 1px solid var(--mm-border); z-index: 0; }
.mm-leaflet-tip { font-family: var(--mm-font); font-size: 12px; font-weight: 600; border-radius: 8px; border: 0; background: var(--mm-nav); color: #ffffff; box-shadow: 0 8px 22px var(--mm-shadow-lg); }
.mm-leaflet-tip::before { border-top-color: var(--mm-nav) !important; }

/* L.1 / L.5 Lecteurs vidéo et audio */
.mm-player { position: relative; overflow: hidden; container-type: inline-size; border-radius: 16px; background: var(--mm-nav); color: #ffffff; outline: none; }
.mm-player:focus-visible { box-shadow: 0 0 0 3px rgba(249,57,57,.35); }
.mm-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.mm-player:fullscreen { border-radius: 0; display: flex; align-items: center; }
.mm-player:fullscreen video { height: 100%; aspect-ratio: auto; }
.mm-player__big { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%); width: 72px; height: 72px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mm-red); color: #ffffff; box-shadow: 0 12px 34px rgba(0,0,0,.35); transition: transform .2s var(--mm-ease-out); }
.mm-player__big:hover { transform: translate(-50%, -60%) scale(1.06); }
.mm-player__resume { position: absolute; left: 14px; top: 14px; display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: rgba(13,13,13,.82); font-size: 12.5px; font-weight: 650; animation: mmPop .18s var(--mm-ease-out) both; }
.mm-player__resume button { height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12px; font-weight: 700; color: #ffffff; background: rgba(255,255,255,.14); }
.mm-player__resume button:first-of-type { background: var(--mm-red); }
.mm-player__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.72)); transition: opacity .3s ease, transform .3s var(--mm-ease-out); }
.mm-player--idle .mm-player__bar { opacity: 0; transform: translateY(8px); }
.mm-player--idle { cursor: none; }
.mm-player__title { margin-bottom: 6px; font-size: 13px; font-weight: 700; } .mm-player__title span { font-weight: 550; color: rgba(255,255,255,.72); }
.mm-player__row { display: flex; align-items: center; gap: 2px; margin-top: 4px; }
.mm-player__btn { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.88); transition: background .16s ease, color .16s ease; }
.mm-player__btn:hover { background: rgba(255,255,255,.14); color: #ffffff; }
.mm-player__btn--on { color: #ffffff; background: rgba(255,255,255,.18); }
.mm-player__chip { height: 28px; min-width: 44px; padding: 0 9px; border-radius: 999px; background: rgba(255,255,255,.14); color: #ffffff; font-size: 12px; font-weight: 700; }
.mm-player__time { margin-left: 8px; font-size: 12.5px; font-weight: 650; color: rgba(255,255,255,.88); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Volume dessiné, même principe que Slider : piste, remplissage, rond ; le contrôle natif reste invisible par-dessus. */
.mm-player__vol { position: relative; flex: 0 0 auto; width: 72px; height: 24px; margin: 0 4px; display: flex; align-items: center; }
.mm-player__vol-track { position: absolute; left: 0; right: 0; height: 4px; border-radius: 999px; background: rgba(255,255,255,.3); }
.mm-player__vol-fill { position: absolute; left: 0; height: 4px; border-radius: 999px; background: #ffffff; }
.mm-player__vol-thumb { position: absolute; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,.4); pointer-events: none; transition: transform .16s ease, box-shadow .16s ease; }
.mm-player__vol:hover .mm-player__vol-thumb { transform: scale(1.25); }
.mm-player__vol input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mm-player__vol input:focus-visible ~ .mm-player__vol-thumb { box-shadow: 0 0 0 3px rgba(249,57,57,.6); }
/* Lecteur étroit (largeur du lecteur, pas de la fenêtre) : on retire d'abord volume et sauts de 10 s, puis titre et vitesse, puis le minutage. */
@container (max-width: 559.98px) { .mm-player__vol, .mm-player__btn[aria-label*="10 secondes"] { display: none; } }
@container (max-width: 379.98px) { .mm-player__title, .mm-player__chip { display: none; } .mm-player__bar { padding: 18px 8px 6px; } .mm-player__big { transform: translate(-50%, -60%) scale(.72); } .mm-player__big:hover { transform: translate(-50%, -60%) scale(.76); } }
@container (max-width: 259.98px) { .mm-player__time, .mm-player__btn[aria-label*="sous-titres"] { display: none; } }
.mm-scrub { position: relative; height: 18px; display: flex; align-items: center; cursor: pointer; touch-action: none; outline: none; }
.mm-scrub__track { position: relative; flex: 1 1 auto; height: 4px; border-radius: 999px; background: rgba(255,255,255,.26); overflow: hidden; transition: height .14s ease; }
.mm-scrub:hover .mm-scrub__track, .mm-scrub:focus-visible .mm-scrub__track { height: 6px; }
.mm-scrub__buf { position: absolute; inset: 0 auto 0 0; background: rgba(255,255,255,.34); }
.mm-scrub__fill { position: absolute; inset: 0 auto 0 0; background: var(--mm-red); }
.mm-scrub__chap { position: absolute; top: 50%; width: 2px; height: 8px; margin-top: -4px; background: var(--mm-nav); }
.mm-scrub__thumb { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 4px rgba(0,0,0,.4); transform: scale(0); transition: transform .14s ease; }
.mm-scrub:hover .mm-scrub__thumb, .mm-scrub:focus-visible .mm-scrub__thumb { transform: scale(1); }
.mm-scrub__tip { position: absolute; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; padding: 5px 9px; border-radius: 8px; background: var(--mm-nav); color: #ffffff; font-size: 11.5px; font-weight: 650; white-space: nowrap; pointer-events: none; border: 1px solid rgba(255,255,255,.14); }
.mm-chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.mm-chapters__item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border-radius: 10px; text-align: left; font-size: 13px; font-weight: 600; transition: background .16s ease; }
.mm-chapters__item:hover { background: var(--mm-sunken); }
.mm-chapters__item--on { background: var(--mm-surface-2); font-weight: 750; }
.mm-chapters__t { min-width: 42px; font-size: 12px; font-weight: 700; color: var(--mm-ink-64); font-variant-numeric: tabular-nums; }
.mm-audio { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--mm-surface); border: 1px solid var(--mm-border); }
.mm-audio__play { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; background: var(--mm-strong); color: var(--mm-on-strong); transition: transform .16s ease; }
.mm-audio__play:active { transform: scale(.94); }
.mm-audio__title { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-audio__time { font-size: 12px; font-weight: 650; color: var(--mm-ink-64); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mm-audio__chip { height: 26px; min-width: 40px; padding: 0 8px; border-radius: 999px; background: var(--mm-sunken); font-size: 11.5px; font-weight: 700; }
.mm-audio .mm-scrub__track { background: var(--mm-chart-track); }
.mm-audio .mm-scrub__buf { background: transparent; }
.mm-audio .mm-scrub__fill { background: var(--mm-strong); }
.mm-audio .mm-scrub__thumb { background: var(--mm-strong); }

/* L.2 / L.3 / L.4 Documents */
.mm-doc { display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid var(--mm-border); background: var(--mm-sunken); outline: none; }
.mm-doc:fullscreen { border-radius: 0; }
.mm-docbar { display: flex; align-items: center; gap: 4px; height: 52px; padding: 0 8px; background: var(--mm-surface); border-bottom: 1px solid var(--mm-border); flex: 0 0 auto; }
.mm-docbar__title { min-width: 0; padding-left: 6px; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-docbar__btn { width: 36px; height: 36px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--mm-ink-72); transition: background .16s ease, color .16s ease; }
.mm-docbar__btn:hover:not(:disabled) { background: var(--mm-sunken); color: var(--mm-ink); }
.mm-docbar__btn:disabled { opacity: .35; }
.mm-docbar__btn--on { background: var(--mm-sunken); color: var(--mm-ink); }
.mm-docbar__pages { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--mm-ink-64); white-space: nowrap; }
.mm-docbar__pages input { width: 38px; height: 30px; text-align: center; border-radius: 8px; border: 1px solid var(--mm-border-2); background: var(--mm-surface); font: inherit; font-weight: 700; color: var(--mm-ink); }
.mm-docbar__zoom { min-width: 52px; height: 30px; border-radius: 8px; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mm-docbar__zoom:hover { background: var(--mm-sunken); }
.mm-docbar__sep { width: 1px; height: 22px; margin: 0 4px; background: var(--mm-border); }
@media (max-width: 639.98px) { .mm-docbar__title { display: none; } }
.mm-doc__body { flex: 1 1 auto; min-height: 0; display: flex; }
.mm-doc__thumbs { flex: 0 0 132px; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; border-right: 1px solid var(--mm-border); background: var(--mm-surface-2); }
@media (max-width: 639.98px) { .mm-doc__thumbs { display: none; } }
.mm-doc__thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px; border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--mm-ink-64); }
.mm-doc__thumb .mm-pdf__page { box-shadow: 0 0 0 1px var(--mm-border); margin: 0; }
.mm-doc__thumb--on { color: var(--mm-ink); } .mm-doc__thumb--on .mm-pdf__page { box-shadow: 0 0 0 2px #f93939; }
.mm-doc__pages { flex: 1 1 auto; overflow: auto; padding: 16px 24px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mm-pdf__page { background: #ffffff; line-height: 0; box-shadow: 0 1px 2px var(--mm-line), 0 6px 18px var(--mm-elevate); }
.mm-slides__stage { position: relative; flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 16px 64px; }
.mm-slides__img { max-width: 100%; max-height: 100%; border-radius: 6px; background: #ffffff; box-shadow: 0 6px 18px var(--mm-elevate); animation: mmFade .24s ease both; }
.mm-slides__nav { position: absolute; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--mm-surface); border: 1px solid var(--mm-border); color: var(--mm-ink); transition: opacity .16s ease, transform .16s ease; }
.mm-slides__nav:disabled { opacity: .3; } .mm-slides__nav:active:not(:disabled) { transform: scale(.94); }
.mm-slides__nav--prev { left: 12px; } .mm-slides__nav--next { right: 12px; }
.mm-slides__strip { flex: 0 0 auto; display: flex; gap: 8px; padding: 10px 12px; overflow-x: auto; background: var(--mm-surface); border-top: 1px solid var(--mm-border); }
.mm-slides__thumb { position: relative; flex: 0 0 auto; width: 96px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; box-shadow: 0 0 0 1px var(--mm-border); }
.mm-slides__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-slides__thumb span { position: absolute; left: 4px; bottom: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: rgba(13,13,13,.72); color: #ffffff; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mm-slides__thumb--on { box-shadow: 0 0 0 2px #f93939; }
.mm-anim { position: relative; margin: 0; overflow: hidden; border-radius: 16px; border: 1px solid var(--mm-border); background: var(--mm-surface-2); display: flex; flex-direction: column; }
.mm-anim img, .mm-anim iframe, .mm-anim__lottie { flex: 1 1 auto; min-height: 0; width: 100%; border: 0; object-fit: contain; display: block; }
.mm-anim figcaption { padding: 10px 14px; font-size: 12.5px; font-weight: 650; border-top: 1px solid var(--mm-border); background: var(--mm-surface); }
.mm-anim__toggle { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(13,13,13,.72); color: #ffffff; }

/* B.1 – B.4 Médiathèque */
.mm-mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.mm-mcard { display: flex; flex-direction: column; min-width: 0; text-align: left; border-radius: 16px; background: var(--mm-surface); border: 1px solid var(--mm-border); overflow: hidden; color: var(--mm-ink); transition: transform .55s var(--mm-ease-glide), box-shadow .2s ease, border-color .2s ease; animation: mmRise .3s var(--mm-ease-out) both; }
.mm-mcard:hover { transform: translateY(-4px); box-shadow: 0 12px 28px var(--mm-elevate); border-color: var(--mm-border-2); }
.mm-mcard__visual { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; }
.mm-mcard__type { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 999px; background: var(--mm-surface); color: var(--mm-ink); font-size: 11px; font-weight: 700; box-shadow: 0 1px 2px var(--mm-line); }
.mm-mcard__dur { position: absolute; right: 10px; bottom: 10px; height: 22px; padding: 0 8px; border-radius: 999px; background: rgba(13,13,13,.78); color: #ffffff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; font-variant-numeric: tabular-nums; }
.mm-mcard__play { width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(13,13,13,.62); color: #ffffff; transition: transform .2s var(--mm-ease-out), background .2s ease; }
.mm-mcard:hover .mm-mcard__play { transform: scale(1.08); background: var(--mm-red); }
.mm-mcard__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(13,13,13,.2); }
.mm-mcard__progress i { display: block; height: 100%; background: var(--mm-red); }
.mm-mcard__body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; }
.mm-mcard__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 14px; font-weight: 700; letter-spacing: -.01em; line-height: 1.35; }
.mm-mcard__title .mm-badge { margin-left: 6px; vertical-align: 1px; }
.mm-mcard__meta { font-size: 12px; font-weight: 550; color: var(--mm-ink-64); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-mrow { display: flex; align-items: center; gap: 6px; padding-right: 8px; border-radius: 14px; background: var(--mm-surface); border: 1px solid var(--mm-border); transition: border-color .2s ease, box-shadow .2s ease; }
.mm-mrow:hover { border-color: var(--mm-border-2); box-shadow: 0 6px 18px var(--mm-elevate); }
.mm-mrow__main { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 12px; text-align: left; color: var(--mm-ink); }
.mm-mrow__icon { width: 40px; height: 40px; border-radius: 11px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; }
.mm-mrow__title { display: block; font-size: 13.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-mrow__meta { display: block; margin-top: 2px; font-size: 12px; font-weight: 550; color: var(--mm-ink-64); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-mrow__size, .mm-mrow__date { font-size: 12px; font-weight: 600; color: var(--mm-ink-64); white-space: nowrap; }
@media (max-width: 639.98px) { .mm-mrow__size, .mm-mrow__date { display: none; } }
.mm-ldrop { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 34px 20px; border-radius: 18px; border: 1.5px dashed var(--mm-border-3); background: var(--mm-surface); text-align: center; transition: border-color .16s ease, background .16s ease, transform .2s var(--mm-ease-out); }
.mm-ldrop--over { border-color: #f93939; background: var(--mm-soft-red); transform: scale(1.01); }
.mm-ldrop__icon { width: 60px; height: 60px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: var(--mm-sunken); color: var(--mm-ink-72); margin-bottom: 4px; transition: transform .3s var(--mm-ease-out); }
.mm-ldrop--over .mm-ldrop__icon { transform: translateY(-4px); color: var(--mm-red-ink); background: var(--mm-surface); }
.mm-ldrop__title { font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.mm-ldrop__help { max-width: 46ch; font-size: 12.5px; font-weight: 550; color: var(--mm-ink-64); }
.mm-ldrop__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 8px; }
.mm-uq { border-radius: 16px; background: var(--mm-surface); border: 1px solid var(--mm-border); overflow: hidden; }
.mm-uq__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 14px 10px; }
.mm-uq__title { font-size: 14px; font-weight: 750; }
.mm-uq__total { height: 3px; background: var(--mm-chart-track); }
.mm-uq__total i { display: block; height: 100%; background: var(--mm-red); transition: width .2s linear; }
.mm-uq__list { list-style: none; margin: 0; padding: 4px; max-height: 320px; overflow-y: auto; }
.mm-uq__row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; animation: mmRise .26s var(--mm-ease-out) both; }
.mm-uq__row + .mm-uq__row { border-top: 1px solid var(--mm-line); border-radius: 0; }
.mm-uq__name { font-size: 13px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-uq__bar { height: 4px; border-radius: 999px; background: var(--mm-chart-track); overflow: hidden; }
.mm-uq__bar i { display: block; height: 100%; border-radius: 999px; background: var(--mm-strong); transition: width .2s linear; }
.mm-uq__row--paused .mm-uq__bar i { background: var(--mm-chart-orange); }
.mm-uq__row--error .mm-uq__bar i { background: var(--mm-red-ink); }
.mm-uq__meta { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--mm-ink-64); font-variant-numeric: tabular-nums; }
.mm-uq__acts { display: flex; gap: 2px; flex: 0 0 auto; }

/* C.1 Agenda */
.mm-agenda { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mm-agenda__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mm-agenda__nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mm-agenda__title { margin-left: 6px; font-size: 18px; font-weight: 800; letter-spacing: -.025em; }
.mm-agenda__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mm-agenda__legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; font-weight: 600; color: var(--mm-ink-64); }
.mm-agenda__legend span { display: inline-flex; align-items: center; gap: 7px; transition: opacity .2s ease; }
.mm-agenda__legend i { width: 11px; height: 11px; border-radius: 3.5px; }
.mm-agenda__frame { background: var(--mm-surface); border: 1px solid var(--mm-border); border-radius: 18px; overflow: hidden; animation: mmRise .3s var(--mm-ease-out) both; }
.mm-agenda__heads { display: flex; border-bottom: 1px solid var(--mm-border); background: var(--mm-surface-2); }
.mm-agenda__gut { flex: 0 0 58px; }
.mm-agenda__head { flex: 1 1 0; min-width: 0; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-left: 1px solid var(--mm-border); }
.mm-agenda__wd { font-size: 11.5px; font-weight: 700; color: var(--mm-ink-64); } .mm-agenda__wd--today { color: var(--mm-red-ink); }
.mm-agenda__num { min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; }
.mm-agenda__num--today { background: var(--mm-red); color: #ffffff; }
.mm-agenda__scroll { max-height: min(62vh, 620px); overflow-y: scroll; overflow-x: hidden; }
.mm-agenda__hour { position: absolute; top: -7px; right: 10px; font-size: 11px; font-weight: 600; color: var(--mm-ink-64); }
.mm-agenda__line { position: absolute; left: 0; right: 0; height: 1px; background: var(--mm-tint); pointer-events: none; }
.mm-agenda__col { position: relative; flex: 1 1 0; min-width: 0; border-left: 1px solid var(--mm-border); cursor: cell; }
.mm-agenda__col--past { background: var(--mm-surface-2); }
.mm-agenda__event { position: absolute; left: 3px; right: 3px; z-index: 5; display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 8px; text-align: left; overflow: hidden; transition: transform .16s ease, box-shadow .16s ease; animation: mmPop .18s var(--mm-ease-out) both; }
.mm-agenda__event:hover { transform: translateY(-1px); box-shadow: 0 6px 18px var(--mm-elevate); z-index: 6; }
.mm-agenda__etitle { font-size: 11.5px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-agenda__etime { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-agenda__now { position: absolute; left: 0; right: 0; height: 2px; background: var(--mm-red); z-index: 20; pointer-events: none; }
.mm-agenda__now i { position: absolute; left: -1px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--mm-red); }
.mm-agenda__now span { position: absolute; right: 3px; top: -9px; padding: 1px 6px; border-radius: 999px; background: var(--mm-red); color: #ffffff; font-size: 9.5px; font-weight: 800; }
.mm-agenda__mheads { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); background: var(--mm-surface-2); border-bottom: 1px solid var(--mm-border); }
.mm-agenda__mheads span { padding: 12px 10px; text-align: center; font-size: 11.5px; font-weight: 700; color: var(--mm-ink-72); }
.mm-agenda__mgrid { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); }
.mm-agenda__mcell { min-height: 112px; min-width: 0; padding: 8px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--mm-line); border-bottom: 1px solid var(--mm-line); cursor: cell; }
.mm-agenda__mcell--past, .mm-agenda__mcell--out { background: var(--mm-surface-2); }
.mm-agenda__mnum { align-self: flex-start; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 650; }
.mm-agenda__chip { width: 100%; min-width: 0; padding: 3px 6px; border-radius: 6px; text-align: left; font-size: 10.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-agenda__more { align-self: flex-start; padding: 2px 4px; border-radius: 5px; font-size: 10.5px; font-weight: 750; color: var(--mm-ink-66); }
.mm-agenda__more:hover { background: var(--mm-sunken); }
.mm-agenda__dots { display: flex; gap: 3px; flex-wrap: wrap; margin-top: auto; } .mm-agenda__dots i { width: 12px; height: 4px; border-radius: 2px; }
@media (max-width: 999.98px) { .mm-agenda__mcell { min-height: 64px; cursor: pointer; } }
.mm-agenda__hint { font-size: 11.5px; font-weight: 550; color: var(--mm-ink-64); }

/* C.2 Plage horaire */
.mm-hrange { display: flex; flex-direction: column; gap: 14px; }
.mm-hrange__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.mm-hrange__ptime { font-size: 11.5px; font-weight: 600; color: var(--mm-ink-64); }
.mm-hrange__preset--on { background: var(--mm-strong); color: var(--mm-on-strong); border-color: var(--mm-strong); }
.mm-hrange__preset--on .mm-hrange__ptime { color: inherit; opacity: .72; }
.mm-hrange__fields { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.mm-hrange__fields > .mm-icon { margin-bottom: 15px; }
.mm-hrange__dur { display: inline-flex; align-items: center; gap: 6px; height: 48px; font-size: 13px; font-weight: 700; color: var(--mm-ink-72); }

/* Écrans tactiles (9.5) : critère (pointer: coarse), pas la largeur. Taille visible inchangée, zone touchable de 44 px. */
@media (pointer: coarse) {
  /* !important : un style en ligne (NumberStepper) ou une classe plus précise ne doit jamais déclencher le zoom d'iOS. */
  input, select, textarea, .mm-input, .mm-input input, .mm-textarea, .mm-search input, .mm-composer textarea, .mm-docbar__pages input { font-size: 16px !important; }
  .mm-icon-btn, .mm-btn, .mm-chip-btn, .mm-filter-chip button, .mm-th-filter, .mm-docbar__btn, .mm-player__btn { position: relative; }
  .mm-icon-btn::after, .mm-btn::after, .mm-chip-btn::after, .mm-filter-chip button::after, .mm-th-filter::after, .mm-docbar__btn::after, .mm-player__btn::after { content: ""; position: absolute; inset: min(0px, calc((100% - 44px) / 2)); }
  .mm-menu-item, .mm-nav__link { min-height: 44px; }
  .mm-check-row, .mm-switch-row { min-height: 44px; }
  .mm-th-filter { opacity: 1; }
}

/* Parcours de connexion (7.53) : seuls écrans sans coque. */
.mm-auth { display: flex; min-height: 100vh; min-height: 100dvh; background: var(--mm-bg); }
.mm-auth__brand { flex: 0 0 48%; max-width: 680px; background: var(--mm-nav); color: #ffffff; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: clamp(34px,4vw,68px); }
.mm-auth__brand-mark { position: absolute; top: -150px; right: -170px; width: 520px; height: 520px; opacity: .1; pointer-events: none; animation: mmDrift 24s ease-in-out infinite; }
.mm-auth__brand-body { position: relative; padding: clamp(28px,4vw,52px) 0; animation-delay: 60ms; }
.mm-auth__brand-name { font-size: clamp(38px,5.2vw,68px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.mm-auth__brand-sub { margin-top: 8px; font-size: clamp(14px,1.4vw,19px); font-weight: 600; letter-spacing: .02em; color: rgba(255,255,255,.72); }
.mm-auth__brand-text { margin-top: clamp(24px,2.8vw,36px); max-width: 38ch; font-size: clamp(15px,1.35vw,18px); font-weight: 500; line-height: 1.55; color: rgba(255,255,255,.74); }
.mm-auth__family { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); font-size: 12.5px; font-weight: 650; color: rgba(255,255,255,.82); }
.mm-auth__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; background: var(--mm-sunken); }
.mm-auth__banner { background: var(--mm-nav); color: #ffffff; padding: clamp(24px,7vw,34px) clamp(18px,6vw,28px); position: relative; overflow: hidden; flex: 0 0 auto; }
.mm-auth__banner-mark { position: absolute; top: -70px; right: -80px; width: 240px; height: 240px; opacity: .1; pointer-events: none; }
.mm-auth__center { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; padding: clamp(28px,5vw,56px) clamp(18px,5vw,44px); }
.mm-auth__col { width: 100%; max-width: 408px; }
.mm-auth-lead { margin-top: 10px; font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--mm-ink-64); }
.mm-auth-lead b { color: var(--mm-ink); font-weight: 700; }
.mm-auth-link { font-size: 13px; font-weight: 650; color: var(--mm-red-ink); border-radius: 6px; }
.mm-auth-link:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.mm-auth-link:disabled { color: var(--mm-ink-44); }
.mm-auth-back { display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 22px; font-size: 13px; font-weight: 650; color: var(--mm-ink-64); border-radius: 6px; transition: color .14s ease, transform .18s var(--mm-ease-out); }
.mm-auth-back:hover { color: var(--mm-ink); transform: translateX(-2px); }
.mm-auth-disc { display: inline-flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; animation: mmPop .32s var(--mm-ease-out) both; }
.mm-auth-disc--ok { background: var(--mm-green-bg); color: var(--mm-green-ink); }
.mm-auth-disc--err { background: var(--mm-red-bg); color: var(--mm-red-ink); }
.mm-auth-disc--wait { background: var(--mm-orange-bg); color: var(--mm-orange-ink); }
.mm-auth-disc--info { background: var(--mm-blue-bg); color: var(--mm-blue-ink); }
.mm-auth-disc--neutral { background: var(--mm-surface); color: var(--mm-ink); box-shadow: inset 0 0 0 1px var(--mm-border); }
.mm-auth-sep { display: flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; color: var(--mm-ink-50); }
.mm-auth-sep::before, .mm-auth-sep::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--mm-border); }
/* Prérequis du mot de passe : pastille qui se remplit en vert, coche qui apparaît, jauge. */
.mm-pw-rules { padding: 14px 14px 12px; border-radius: 14px; background: var(--mm-surface); box-shadow: inset 0 0 0 1px var(--mm-border); }
.mm-pw-rules__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; color: var(--mm-ink); }
.mm-pw-rules__count { font-size: 12px; font-weight: 650; color: var(--mm-ink-64); font-variant-numeric: tabular-nums; }
.mm-pw-meter { margin: 10px 0 12px; height: 5px; border-radius: 999px; background: var(--mm-sunken); overflow: hidden; }
.mm-pw-meter > span { display: block; height: 100%; border-radius: 999px; background: var(--mm-green-accent); transition: width .32s var(--mm-ease-out); }
.mm-pw-rule { display: flex; align-items: center; gap: 9px; min-height: 26px; font-size: 12.5px; font-weight: 600; color: var(--mm-ink-64); transition: color .2s ease; }
.mm-pw-rule__dot { position: relative; flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--mm-border-2); transition: background .22s ease, box-shadow .22s ease; }
.mm-pw-rule__dot svg { position: absolute; inset: 0; margin: auto; opacity: 0; transform: scale(.4); transition: opacity .18s ease, transform .26s var(--mm-ease-out); }
.mm-pw-rule--ok { color: var(--mm-ink); }
.mm-pw-rule--ok .mm-pw-rule__dot { background: var(--mm-green-accent); box-shadow: none; }
.mm-pw-rule--ok .mm-pw-rule__dot svg { opacity: 1; transform: scale(1); }
.mm-pw-rule__meta { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--mm-ink-50); font-variant-numeric: tabular-nums; }
