/*
 * UDCShare — habillage « prototype Stitch » (demande du propriétaire, 16/11/2026). Mobile d'abord.
 * Source : maquettes stitch_udcshare_full_platform_prototype (56 écrans). On reprend le système visuel, pas les fonctions :
 * aucune capacité, chiffre ou témoignage du prototype n'est ajouté s'il n'existe pas dans le code (docs/CLAIMS_REGISTRY.md).
 *   - Couleurs : jetons de design/tokens.json (framboise #D92662 / #B4004B, neutres ardoise, fond #F7F9FB).
 *   - Typographie : Manrope (texte), Plus Jakarta Sans (titres) — /css/fonts.css, hébergées par UDCShare.
 *   - Formes : cartes arrondies 24 px, boutons pilules 48 px, champs 48 px, sélecteur segmenté, barre d'onglets du bas.
 * Chargée APRÈS chrome.css et app-bar.css (views/v2/partials/header.ejs, auth-bar.ejs) : remplace l'en-tête bleu nuit par
 * l'en-tête clair du prototype. Pour revenir à l'ancien habillage : retirer le lien vers ce fichier.
 */

/* ── Base ─────────────────────────────────────────────────────────────── */
html body {
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html body :where(h1, h2, h3, .v2-h1, .v2-h2) {
  font-family: var(--font-family-display);
  letter-spacing: -0.02em;
  color: var(--color-text);
}
html body :where(h1) { font-weight: 800; line-height: 1.15; }
html body :where(h2, h3) { font-weight: 700; line-height: 1.25; }
html body :where(main) h1 { font-size: clamp(1.625rem, 6.2vw, 2.5rem); }

/* ── En-tête clair (verre dépoli) ─────────────────────────────────────── */
html body:has(header.v2-header) header.v2-header.udc-appbar {
  --color-bg: var(--proto-header-bg) !important;
  --color-surface: var(--proto-surface) !important;
  --color-surface-2: var(--proto-surface-2) !important;
  --color-border: var(--proto-border) !important;
  --color-border-strong: var(--proto-border-strong) !important;
  --color-text: var(--proto-text) !important;
  --color-text-muted: var(--proto-muted) !important;
  --color-brand: #D92662 !important;
  --color-brand-strong: #B4004B !important;
  --color-brand-soft: var(--proto-brand-soft) !important;
  --color-on-brand: #FFFFFF !important;
  --color-link: var(--proto-link) !important;
  --color-focus: var(--proto-focus) !important;
  color: var(--proto-text) !important;
  background: var(--proto-header-bg) !important;
  border-bottom: 1px solid var(--proto-border) !important;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
@supports (backdrop-filter: blur(1px)) {
  html body:has(header.v2-header) header.v2-header.udc-appbar {
    background: color-mix(in srgb, var(--proto-header-bg) 86%, transparent) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  }
}
:root {
  --proto-header-bg: #FFFFFF; --proto-surface: #FFFFFF; --proto-surface-2: #F1F5F9; --proto-border: #E2E8F0;
  --proto-border-strong: #64748B; --proto-text: #0F172A; --proto-muted: #4B5768; --proto-brand-soft: #FFE4EA;
  --proto-link: #B4004B; --proto-focus: #1A56DB;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --proto-header-bg: #0F172A; --proto-surface: #111827; --proto-surface-2: #1E293B; --proto-border: #334155;
    --proto-border-strong: #94A3B8; --proto-text: #F1F5F9; --proto-muted: #AEBBCC; --proto-brand-soft: #3B1426;
    --proto-link: #FF8AB3; --proto-focus: #8AB4FF;
  }
}
[data-theme="dark"] {
  --proto-header-bg: #0F172A; --proto-surface: #111827; --proto-surface-2: #1E293B; --proto-border: #334155;
  --proto-border-strong: #94A3B8; --proto-text: #F1F5F9; --proto-muted: #AEBBCC; --proto-brand-soft: #3B1426;
  --proto-link: #FF8AB3; --proto-focus: #8AB4FF;
}

html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu,
html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__icon,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__toggle,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-touch-desktop-menu-toggle,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__m,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-account__btn,
html body:has(header.v2-header) header.v2-header.udc-appbar .udc-theme-toggle {
  color: var(--proto-text) !important;
  border-color: var(--proto-border) !important;
}
html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu:active,
html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__icon:active { background: var(--proto-surface-2) !important; }
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__badge { border-color: var(--proto-header-bg) !important; background: #D92662 !important; }
/* Logo : texte « UDC » foncé, « Share » framboise, comme le prototype. */
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__brand { color: var(--proto-text) !important; }
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__brand .udc-logo-mark,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__brand .udc-logo-name em { color: #D92662 !important; }
/* Boutons de l'en-tête : pilules framboise / neutres. */
html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__signup,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-btn--primary {
  background: #D92662 !important; color: #FFFFFF !important; border-color: transparent !important;
  border-radius: 999px !important; font-weight: 700; box-shadow: 0 6px 16px rgba(217, 38, 98, 0.28);
}
html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__login { color: var(--proto-text) !important; font-weight: 700; }
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-btn--ghost { color: var(--proto-text) !important; border-radius: 999px !important; }
/* Menus déroulants du bureau et panneau du compte : surfaces claires. */
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__more-list,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-account__menu {
  color: var(--proto-text) !important; background: var(--proto-surface) !important; border-color: var(--proto-border) !important;
  border-radius: 20px !important; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14) !important;
}
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu-group { color: var(--proto-text) !important; background: var(--proto-surface-2) !important; border-color: var(--proto-border) !important; }
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu a,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__nav a,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__nav summary,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__more-list a { color: var(--proto-text) !important; }
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu-title,
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu a svg { color: var(--proto-muted) !important; }
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu a[aria-current="page"],
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__nav a[aria-current="page"],
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__more-list a[aria-current="page"] {
  color: var(--color-brand-ink, #B4004B) !important; background: var(--proto-brand-soft) !important;
}
html[data-theme="dark"] body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__nav a[aria-current="page"] { color: #FF8AB3 !important; }
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu a[aria-current="page"] svg { color: #FFFFFF !important; background: #D92662 !important; }
html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__menu .v2-header__account { background: var(--proto-surface) !important; border-top-color: var(--proto-border) !important; }

/* ── Boutons ──────────────────────────────────────────────────────────── */
.v2-btn {
  min-height: 48px; border-radius: 999px; padding-inline: 1.25rem;
  font-family: var(--font-family-display); font-weight: 700; letter-spacing: 0;
  transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease, filter .2s ease;
}
.v2-btn:active { transform: scale(0.98); }
.v2-btn--sm { min-height: 36px; padding-inline: .875rem; }
.v2-btn--primary { background: var(--color-brand); color: var(--color-on-brand); box-shadow: 0 8px 20px rgba(217, 38, 98, 0.26); }
.v2-btn--primary:hover { background: var(--color-brand-strong); filter: none; }
.v2-btn--secondary { background: var(--color-surface-2); color: var(--color-text); border-color: transparent; }
.v2-btn--secondary:hover { background: color-mix(in srgb, var(--color-surface-2) 80%, var(--color-border)); }
.v2-btn--ghost { color: var(--color-link); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v2-btn--primary { background: var(--color-brand-strong); } }
[data-theme="dark"] .v2-btn--primary { background: var(--color-brand-strong); }
@media (prefers-reduced-motion: reduce) { .v2-btn { transition: none; } .v2-btn:active { transform: none; } }

/* ── Cartes ───────────────────────────────────────────────────────────── */
.v2-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 10px 30px rgba(15, 23, 42, 0.05);
}
@media (max-width: 47.999rem) { .v2-card { padding: 1.25rem 1rem; } }

/* ── Champs ───────────────────────────────────────────────────────────── */
html body :where(.v2-input, .v2-field input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .v2-field select, .v2-field textarea, .v2-select) {
  min-height: 48px; border-radius: 14px; border: 1px solid var(--color-border);
  background: var(--color-surface-2); color: var(--color-text); font-family: var(--font-family); font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
html body :where(.v2-input, .v2-field input, .v2-field select, .v2-field textarea, .v2-select):focus {
  outline: none; border-color: var(--color-brand); background: var(--color-surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-brand) 18%, transparent);
}
html body :where(.v2-field label, .v2-label) { font-weight: 600; font-size: .875rem; }
html body input[type="checkbox"], html body input[type="radio"] { accent-color: var(--color-brand); }

/* ── Onglets : sélecteur segmenté (Envoyer / Recevoir) ───────────────── */
.v2-tabs__list {
  display: flex; gap: 4px; padding: 4px; border: 0; border-radius: 999px; background: var(--color-surface-2);
  overflow-x: auto; scrollbar-width: none;
}
.v2-tabs__list::-webkit-scrollbar { display: none; }
.v2-tabs__tab {
  flex: 1 0 auto; min-height: 44px; margin: 0; border: 0; border-radius: 999px;
  font-family: var(--font-family-display); font-weight: 700; color: var(--color-text-muted);
}
.v2-tabs__tab[aria-selected="true"] { color: #FFFFFF; background: var(--color-brand-strong); border: 0; box-shadow: 0 6px 16px rgba(180, 0, 75, 0.25); }
.v2-tabs__tab[aria-selected="true"] svg { color: currentColor; }
.v2-send-card .v2-tabs__list { border-radius: 999px; }
.v2-send-card .v2-tabs__tab { border-radius: 999px; min-height: 44px; }
.v2-send-card .v2-tabs__tab[aria-selected="true"] { background: var(--color-brand-strong); color: #FFFFFF; }

/* ── Badges, alertes, pastilles ───────────────────────────────────────── */
html body :where(.v2-badge) { border-radius: 999px; font-weight: 700; font-size: .72rem; letter-spacing: .02em; }
html body :where(.v2-alert, .v2-notice) { border-radius: 18px; }

/* ── Tiroir (menu) ────────────────────────────────────────────────────── */
.udc-drawer__panel { border-radius: 0 28px 28px 0 !important; }
.udc-drawer__list a { border-radius: 14px; font-weight: 600; }
.udc-drawer__list a[aria-current="page"] { background: var(--color-brand-soft) !important; color: var(--color-brand-ink) !important; }
[data-theme="dark"] .udc-drawer__list a[aria-current="page"] { color: #FF8AB3 !important; }

/* ── Barre d'onglets du bas (téléphone) : pleine largeur, blanche, onglet actif framboise ── */
@media (max-width: 899px) {
  html body:has(header.v2-header) .udc-app-nav,
  html body .udc-app-nav {
    --color-surface: var(--proto-surface); --color-border: var(--proto-border);
    left: 0; right: 0; bottom: 0; max-width: none; border-radius: 22px 22px 0 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--proto-surface) 94%, transparent) !important;
    border: 0 !important; border-top: 1px solid var(--proto-border) !important;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  }
  html body:has(header.v2-header) .udc-app-nav a,
  html body .udc-app-nav a {
    color: var(--proto-muted) !important; background: transparent !important;
    font: 700 10.5px/1.2 var(--font-family-display); min-height: 52px; border-radius: 14px; gap: 4px;
  }
  html body:has(header.v2-header) .udc-app-nav a svg { width: 22px; height: 22px; }
  html body:has(header.v2-header) .udc-app-nav a[aria-current="page"],
  html body .udc-app-nav a[aria-current="page"] { color: #D92662 !important; background: transparent !important; }
  html body .udc-app-nav a[aria-current="page"] svg { stroke-width: 2.3; }
  html body .udc-app-nav a[aria-current="page"]::before {
    content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: #D92662;
  }
  html body .udc-app-nav a { position: relative; }
  body:has(.udc-app-nav) { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  body:has(.udc-app-nav) #chat-widget-toggle, body:has(.udc-app-nav) .udc-theme-toggle--floating { bottom: calc(80px + env(safe-area-inset-bottom)); }
  body:has(.udc-app-nav) .cookie-consent-banner, body:has(.udc-app-nav) .v2-cookie { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* ── Espace connecté ──────────────────────────────────────────────────── */
.v2-dash__head h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
.v2-dash-nav a { border-radius: 12px; font-weight: 600; }
.v2-dash-nav a[aria-current="page"] { color: var(--color-brand-ink); }
[data-theme="dark"] .v2-dash-nav a[aria-current="page"] { color: #FF8AB3; }
.v2-dash-nav--side { border-radius: var(--radius-xl) !important; }

/* ── Pied de page et bandeau cookies ──────────────────────────────────── */
html body .v2-cookie { border-radius: 22px; }

/* ── Page d'envoi (accueil et /dashboard/envoi) : thème « smash » repeint aux couleurs du prototype ── */
:root {
  --sm-bg: #F7F9FB; --sm-surface: #FFFFFF; --sm-surface-2: #F1F5F9; --sm-border: #E2E8F0; --sm-border-strong: #64748B;
  --sm-text: #0F172A; --sm-muted: #4B5768; --sm-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 36px rgba(15, 23, 42, .07);
  --sm-brand: #D92662; --sm-brand-strong: #B4004B; --sm-brand-soft: #FFE4EA; --sm-link: #B4004B;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --sm-bg: #0B1120; --sm-surface: #111827; --sm-surface-2: #1E293B; --sm-border: #334155; --sm-border-strong: #94A3B8;
    --sm-text: #F1F5F9; --sm-muted: #AEBBCC; --sm-shadow: none;
    --sm-brand: #FF5C8F; --sm-brand-strong: #B4004B; --sm-brand-soft: #3B1426; --sm-link: #FF8AB3;
  }
}
:root[data-theme="dark"] {
  --sm-bg: #0B1120; --sm-surface: #111827; --sm-surface-2: #1E293B; --sm-border: #334155; --sm-border-strong: #94A3B8;
  --sm-text: #F1F5F9; --sm-muted: #AEBBCC; --sm-shadow: none;
  --sm-brand: #FF5C8F; --sm-brand-strong: #B4004B; --sm-brand-soft: #3B1426; --sm-link: #FF8AB3;
}
.v2-send-card { border-radius: 28px !important; }
.v2-send-card .v2-btn { border-radius: 999px; min-height: 52px; }
.v2-send-card .v2-btn--primary { background: var(--color-brand); box-shadow: 0 10px 24px rgba(217, 38, 98, .28); }
.v2-send-card .v2-input, .v2-send-card textarea, .v2-send-card select { border-radius: 14px; }
.v2-send-card #v2-options, .v2-send-card .v2-guest { border-radius: 20px; }

/* Bandeau cookies : bouton principal framboise. */
html body .v2-cookie__btn--accept { background: #D92662 !important; color: #FFFFFF !important; border-color: transparent !important; border-radius: 999px; }
html body .v2-cookie__btn { border-radius: 999px; }

html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu svg,
html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__icon svg { color: currentColor !important; }
html body:has(header.v2-header) header.v2-header.udc-appbar :focus-visible { outline-color: var(--proto-focus) !important; }
/* Bandeau d'annonce : dégradé framboise du prototype (au lieu de bleu nuit → violet). */
html body .v2-announce { background: linear-gradient(105deg, #B4004B 0%, #D92662 55%, #E85A8A 100%) !important; }

/* ══ Écran 1 — Accueil du compte (prototype « accueil_drive_pool_android ») ═══════════════════════ */
.udc-hello__date { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; color: var(--color-text-muted); font-weight: 600; font-size: .875rem; }
.udc-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 4px rgba(16, 185, 129, .15); }
.v2-dash-hello h1 { font-size: clamp(1.75rem, 7.5vw, 2.25rem); font-weight: 800; }

.udc-chip { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text-muted); font: 700 .72rem/1.6 var(--font-family-display); vertical-align: middle; margin-inline-start: 6px; }
.udc-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.is-brand { --tone: #D92662; } .is-indigo { --tone: #575588; } .is-slate { --tone: #475569; } .is-teal { --tone: #0F9488; } .is-amber { --tone: #D97706; }
.udc-dot[class*="is-"], .udc-pool__bar > span { background: var(--tone); }

.udc-pool { position: relative; overflow: hidden; padding: 1.25rem; border-radius: 28px !important; }
.udc-pool::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 90%; background: radial-gradient(closest-side, rgba(217, 38, 98, .10), transparent); pointer-events: none; }
.udc-pool__head { position: relative; display: flex; align-items: flex-start; gap: 12px; }
.udc-pool__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #EEF2FF; color: #D92662; }
.udc-pool__icon svg { width: 24px; height: 24px; }
.udc-pool__titles { flex: 1; min-width: 0; }
.udc-pool__title { margin: 0; font-size: 1.2rem !important; }
.udc-pool__sub { margin: 2px 0 0; color: var(--color-text-muted); font-size: .875rem; }
.udc-pool__refresh { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-surface-2); color: var(--color-text-muted); }
.udc-pool__refresh svg { width: 20px; height: 20px; }
.udc-pool__figures { position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 1.25rem 0 .6rem; }
.udc-pool__free { margin: 0; }
.udc-pool__free strong { font: 800 2rem/1 var(--font-family-display); letter-spacing: -.03em; }
.udc-pool__free span { color: var(--color-text-muted); font-weight: 600; }
.udc-pool__used { margin: 0; color: var(--color-text-muted); font-size: .9rem; }
.udc-pool__used strong { color: var(--color-text); }
.udc-pool__bar { display: flex; gap: 3px; height: 12px; padding: 2px; border-radius: 999px; background: var(--color-surface-2); overflow: hidden; }
.udc-pool__bar > span { display: block; height: 100%; border-radius: 999px; }
.udc-pool__legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px 14px; margin: 1rem 0 0; padding: 0; list-style: none; }
.udc-pool__legend li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 6px; font-size: .8rem; color: var(--color-text-muted); }
.udc-pool__legend strong { grid-column: 2; color: var(--color-text); font-size: .9rem; }
.udc-pool__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.udc-pool__empty { position: relative; margin: 1rem 0 0; color: var(--color-text-muted); }
.udc-pool__actions { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 1.25rem; }
.udc-pool__actions .v2-btn { min-height: 54px; gap: 8px; padding-inline: .75rem; }
.udc-pool__actions .v2-btn svg { width: 20px; height: 20px; }
.udc-pool__hint { position: relative; margin: .75rem 0 0; text-align: center; color: var(--color-text-muted); font-size: .78rem; }

.udc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: .5rem 2px .75rem; }
.udc-section-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 1.15rem !important; }
.udc-section-head a { color: #D92662; font-weight: 700; font-size: .9rem; text-decoration: none; }
.udc-section-head__note { color: var(--color-text-muted); font-size: .85rem; }
.udc-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #FEF3C7; color: #92400E; font: 800 .75rem/1 var(--font-family-display); }

.udc-feed__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.udc-feed__item { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 16px; border-radius: 24px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); color: var(--color-text); text-decoration: none; }
.udc-feed__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #EEF2FF; color: #575588; }
.udc-feed__icon.is-download { background: var(--color-brand-soft); color: #D92662; }
.udc-feed__icon svg { width: 22px; height: 22px; }
.udc-feed__text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.udc-feed__line { font-size: .95rem; line-height: 1.35; }
.udc-feed__line em { font-style: normal; color: #D92662; font-weight: 600; overflow-wrap: anywhere; }
.udc-feed__meta { color: var(--color-text-muted); font-size: .8rem; }
.udc-feed__meta .is-ok { color: #047857; font-weight: 600; }
.udc-feed__go { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-surface-2); color: var(--color-text-muted); }
.udc-feed__go svg { width: 16px; height: 16px; transform: rotate(180deg); }

.udc-watch { display: grid; gap: 12px; }
.udc-watch .udc-section-head { margin-bottom: 0; }
.udc-watch__card { padding: 16px; border-radius: 24px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-watch__top { display: flex; align-items: flex-start; gap: 12px; }
.udc-watch__icon { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-danger-soft); color: var(--color-danger); }
.udc-watch__icon svg { width: 22px; height: 22px; }
.udc-watch__text { flex: 1; min-width: 0; }
.udc-watch__text h3 { margin: 0; font-size: 1.05rem !important; overflow-wrap: anywhere; }
.udc-watch__text h3 a { color: inherit; text-decoration: none; }
.udc-watch__alert { margin: 3px 0 0; color: var(--color-danger); font-size: .85rem; font-weight: 600; }
.udc-watch__who { margin: 2px 0 0; color: var(--color-text-muted); font-size: .8rem; overflow-wrap: anywhere; }
.udc-tag { flex: none; padding: 3px 10px; border-radius: 999px; font: 800 .75rem/1.4 var(--font-family-display); }
.udc-tag.is-danger { background: var(--color-danger-soft); color: var(--color-danger); }
.udc-watch__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-border); }
.udc-watch__state { flex: 1 1 100%; display: inline-flex; align-items: center; gap: 6px; color: var(--color-text-muted); font-size: .82rem; }
.udc-watch__state svg { width: 16px; height: 16px; }
@media (min-width: 380px) { .udc-watch__state { flex: 1 1 auto; } }
.udc-watch__extend { margin: 0; }
.udc-watch__actions .v2-btn { min-height: 40px; }

.udc-qr-card { display: flex; align-items: center; gap: 14px; padding: 18px 16px; border-radius: 28px; background: linear-gradient(135deg, #EEF2FF, #F8FAFC); border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; }
.udc-qr-card__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #FFFFFF; color: #D92662; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); }
.udc-qr-card__icon svg { width: 26px; height: 26px; }
.udc-qr-card__text { flex: 1; min-width: 0; display: grid; gap: 2px; }
.udc-qr-card__text b { font: 700 1.05rem/1.3 var(--font-family-display); }
.udc-qr-card__text span { color: var(--color-text-muted); font-size: .85rem; }
.udc-qr-card__btn { flex: none; padding: 10px 18px; border-radius: 999px; background: #FFFFFF; color: var(--color-text); font: 700 .9rem/1 var(--font-family-display); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
html[data-theme="dark"] .udc-qr-card { background: linear-gradient(135deg, #1E1B4B, #111827); }
html[data-theme="dark"] .udc-qr-card__icon, html[data-theme="dark"] .udc-qr-card__btn { background: #1E293B; color: #F1F5F9; }
html[data-theme="dark"] .udc-pool__icon, html[data-theme="dark"] .udc-feed__icon { background: #1E293B; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .udc-qr-card { background: linear-gradient(135deg, #1E1B4B, #111827); }
  html:not([data-theme="light"]) .udc-qr-card__icon, html:not([data-theme="light"]) .udc-qr-card__btn { background: #1E293B; color: #F1F5F9; }
  html:not([data-theme="light"]) .udc-pool__icon, html:not([data-theme="light"]) .udc-feed__icon { background: #1E293B; }
}

/* ══ Espace du compte : la palette bleue de dashboard.css est remplacée par celle du prototype ══ */
html body.v2-dash-body {
  --color-bg: #F7F9FB; --color-surface: #FFFFFF; --color-surface-2: #F1F5F9; --color-border: #E2E8F0; --color-border-strong: #64748B;
  --color-text: #0F172A; --color-text-muted: #4B5768; --color-brand: #D92662; --color-brand-strong: #B4004B; --color-brand-soft: #FFE4EA;
  --color-on-brand: #FFFFFF; --color-link: #B4004B; --color-focus: #1A56DB;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) body.v2-dash-body {
    --color-bg: #0B1120; --color-surface: #111827; --color-surface-2: #1E293B; --color-border: #334155; --color-border-strong: #94A3B8;
    --color-text: #F1F5F9; --color-text-muted: #AEBBCC; --color-brand: #FF5C8F; --color-brand-strong: #B4004B; --color-brand-soft: #3B1426;
    --color-on-brand: #FFFFFF; --color-link: #FF8AB3; --color-focus: #8AB4FF;
  }
}
:root[data-theme="dark"] body.v2-dash-body {
  --color-bg: #0B1120; --color-surface: #111827; --color-surface-2: #1E293B; --color-border: #334155; --color-border-strong: #94A3B8;
  --color-text: #F1F5F9; --color-text-muted: #AEBBCC; --color-brand: #FF5C8F; --color-brand-strong: #B4004B; --color-brand-soft: #3B1426;
  --color-on-brand: #FFFFFF; --color-link: #FF8AB3; --color-focus: #8AB4FF;
}
html body.v2-dash-body .v2-btn--primary { background: #D92662; border-color: #D92662; color: #FFFFFF; }
html body.v2-dash-body .v2-btn--primary:hover { background: #B4004B; border-color: #B4004B; }
/* Colonne latérale (bureau) : panneau clair, rubrique active framboise. */
html body.v2-dash-body .v2-dash-nav--side { background: var(--color-surface); border-color: var(--color-border); }
html body.v2-dash-body .v2-dash-nav a { color: var(--color-text); }
html body.v2-dash-body .v2-dash-nav a svg { color: var(--color-text-muted); }
html body.v2-dash-body .v2-dash-nav a:hover { background: var(--color-surface-2); color: var(--color-text); }
html body.v2-dash-body .v2-dash-nav a:hover svg { color: var(--color-text); }
html body.v2-dash-body .v2-dash-nav a[aria-current="page"] { background: var(--color-brand-soft); color: var(--color-brand-ink); box-shadow: inset 3px 0 0 #D92662; }
html body.v2-dash-body .v2-dash-nav a[aria-current="page"] svg { color: #D92662; }
html body.v2-dash-body .v2-dash-nav__group { color: var(--color-text-muted); }
html body.v2-dash-body .v2-dash-nav__legal { border-top-color: var(--color-border); }
html body.v2-dash-body .v2-dash-nav__legal a { color: var(--color-text-muted); }
html[data-theme="dark"] body.v2-dash-body .v2-dash-nav a[aria-current="page"] { color: #FF8AB3; }
html body.v2-dash-body .v2-dash-hello h1 { font-size: clamp(1.75rem, 7.5vw, 2.25rem); }
html body.v2-dash-body .v2-avatar--lg { width: 52px; height: 52px; }
html body.v2-dash-body .v2-dash-hello .v2-dash-hello__info h1 { font-size: clamp(1.75rem, 7.5vw, 2.25rem) !important; line-height: 1.1; margin: 0 0 6px; }
@media (max-width: 55.999rem) { html body.v2-dash-body .v2-dash-hello > .v2-avatar { display: none; } }

/* ══ Écran 2 — Envoyer (prototype « envoyer_des_fichiers ») : panneau gris, cercle framboise, tuiles Dossier/Photo/Drive ══ */
html body .v2-send-card .v2-drop {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 28px 16px 18px; border: 0; border-radius: 24px; background: var(--color-surface-2);
}
html body .v2-send-card .v2-orb__rings {
  order: 1; width: 112px; height: 112px; margin: 0 auto 10px; border-radius: 50%;
  background: color-mix(in srgb, #D92662 10%, var(--color-surface)); box-shadow: 0 0 0 10px color-mix(in srgb, #D92662 5%, transparent);
  animation: none; border: 0;
}
html body .v2-send-card .v2-orb__btn {
  width: 76px; height: 76px; border: 0; border-radius: 50%; color: #FFFFFF;
  background: linear-gradient(145deg, #E2457A, #D92662 55%, #B4004B); box-shadow: 0 10px 24px rgba(217, 38, 98, .35);
}
html body .v2-send-card .v2-orb__btn svg { width: 32px; height: 32px; stroke-width: 2.2; }
html body .v2-send-card .v2-orb__tip {
  order: 2; margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  font: 800 1.35rem/1.25 var(--font-family-display); letter-spacing: -.02em; color: var(--color-text);
}
html body .v2-send-card .v2-orb__tip::after { display: none; }
html body .v2-send-card .v2-drop__text { order: 3; margin: 0 auto; font-size: .875rem; }
html body .v2-send-card .v2-quickadd {
  order: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 22rem; margin-top: 14px;
}
html body .v2-send-card .v2-quickadd .v2-btn {
  flex-direction: column; gap: 6px; min-height: 72px; padding: 10px 4px; border-radius: 14px; border: 0;
  background: var(--color-surface); color: var(--color-text); font: 600 .78rem/1.2 var(--font-family); box-shadow: none;
}
html body .v2-send-card .v2-quickadd .v2-btn svg { width: 24px; height: 24px; color: #575588; }
html body .v2-send-card .v2-quickadd #v2-quick-camera svg { color: #D92662; }
html body .v2-send-card .v2-quickadd #v2-quick-drive { background: #EEF2FF; }
html[data-theme="dark"] body .v2-send-card .v2-quickadd #v2-quick-drive { background: #1E293B; }
/* Bouton principal d'envoi : grande pilule framboise. */
html body .v2-send-card #upload-form .v2-btn--primary,
html body .v2-send-card .v2-send-submit { min-height: 56px; border-radius: 999px; font-size: 1.05rem; background: #D92662; box-shadow: 0 10px 24px rgba(217, 38, 98, .3); }
/* Invitation à créer un compte : carte douce. */
html body .v2-send-card .v2-guest { border: 0; border-radius: 20px; background: var(--color-surface-2); }

/* ══ Écran 3 — Accueil public visiteur (prototype « mode_d_connect_accueil_public_invit ») ══════════ */
.udc-access { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; padding: 12px 12px 12px 14px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); text-align: left; }
.udc-access__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-brand-soft); color: #D92662; }
.udc-access__icon svg { width: 20px; height: 20px; }
.udc-access__text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.udc-access__text b { font: 700 .95rem/1.3 var(--font-family-display); }
.udc-access__text span { color: var(--color-text-muted); font-size: .78rem; }
.udc-access__login { flex: none; padding: 9px 14px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text); font: 700 .82rem/1 var(--font-family-display); text-decoration: none; }
.udc-eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: var(--color-brand-soft); color: #B4004B; font: 800 .7rem/1.3 var(--font-family-display); letter-spacing: .06em; text-transform: uppercase; }
html[data-theme="dark"] .udc-eyebrow { color: #FF8AB3; }
.udc-eyebrow svg { width: 14px; height: 14px; }
.udc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; padding: 0; list-style: none; }
.udc-chips li { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: .8rem; font-weight: 600; }
.udc-chips svg { width: 15px; height: 15px; color: #047857; }
/* Accroche alignée à gauche sur téléphone, comme la maquette. */
@media (max-width: 47.999rem) {
  body.v2-home .v2-home-intro { text-align: left; }
  body.v2-home .v2-home-intro h1 { font-size: 1.95rem !important; line-height: 1.15; letter-spacing: -.03em; }
  body.v2-home .v2-home-intro .v2-home-typed, body.v2-home .v2-home-intro .v2-hero__lead, body.v2-home .v2-home-intro .v2-drive-ownership-note { text-align: left; margin-inline: 0; }
  body.v2-home .v2-badges { justify-content: flex-start; }
}

.udc-quick, .udc-dark, .udc-why, .udc-support { margin-top: 28px; }
.udc-quick__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.udc-quick__card { display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-quick__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #EEF2FF; color: #575588; margin-bottom: 4px; }
.udc-quick__icon.is-brand { background: var(--color-brand-soft); color: #D92662; }
.udc-quick__icon svg { width: 22px; height: 22px; }
.udc-quick__card b { font: 700 .98rem/1.25 var(--font-family-display); }
.udc-quick__card > span:not([class]) { color: var(--color-text-muted); font-size: .8rem; line-height: 1.35; flex: 1; }
.udc-quick__go { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 9px 12px; border-radius: 999px; background: var(--color-surface-2); font: 700 .8rem/1 var(--font-family-display); }
.udc-quick__go svg, .udc-dark__link svg, .udc-plan__cta svg { width: 16px; height: 16px; transform: rotate(180deg); }

.udc-dark__card { padding: 24px 20px; border-radius: 28px; color: #F8FAFC; background: radial-gradient(120% 120% at 100% 0%, rgba(217, 38, 98, .35), transparent 55%), linear-gradient(160deg, #0F172A, #1E293B); }
.udc-dark__eyebrow { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 12px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); font: 700 .75rem/1.3 var(--font-family-display); color: #F8FAFC; }
.udc-dark__eyebrow svg { width: 14px; height: 14px; }
.udc-dark__card h2 { margin: 0 0 10px; color: #FFFFFF !important; font-size: 1.5rem !important; line-height: 1.2; }
.udc-dark__card p:not(.udc-dark__eyebrow) { margin: 0 0 16px; color: #CBD5E1; }
.udc-dark__link { display: inline-flex; align-items: center; gap: 8px; color: #FF8AB3; font-weight: 700; text-decoration: none; }

.udc-why > .udc-eyebrow { margin-bottom: 8px; }
.udc-why h2 { margin: 0 0 8px; font-size: 1.6rem !important; }
.udc-why__lead { margin: 0 0 16px; color: var(--color-text-muted); }
.udc-plan, .udc-support__card { margin-top: 14px; padding: 18px; border-radius: 24px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-plan.is-featured { border: 2px solid #D92662; box-shadow: 0 14px 34px rgba(217, 38, 98, .14); }
.udc-plan__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.udc-plan__head h3 { flex: 1; margin: 0; font-size: 1.1rem !important; }
.udc-plan__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--color-surface-2); color: var(--color-text-muted); }
.udc-plan.is-featured .udc-plan__icon, .udc-plan__icon.is-brand { background: var(--color-brand-soft); color: #D92662; }
.udc-plan__icon.is-indigo { background: #EEF2FF; color: #575588; }
.udc-plan__icon svg { width: 20px; height: 20px; }
.udc-tag.is-brand-solid { background: #D92662; color: #FFFFFF; }
.udc-plan__price { font: 800 1.05rem/1 var(--font-family-display); color: var(--color-text); }
.udc-plan__price small { font-size: .72rem; font-weight: 600; color: var(--color-text-muted); }
.udc-plan__list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.udc-plan__list li { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; }
.udc-plan__list svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: #047857; }
.udc-plan__list li.is-off { color: var(--color-text-muted); text-decoration: line-through; }
.udc-plan__list li.is-off svg { color: var(--color-text-muted); }
.udc-plan__cta { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; margin-top: 16px; border-radius: 999px; background: #0F172A; color: #FFFFFF; font: 700 .95rem/1 var(--font-family-display); text-decoration: none; }
html[data-theme="dark"] .udc-plan__cta { background: #D92662; }
.udc-plan__more { display: inline-block; margin-top: 12px; color: #D92662; font-weight: 700; text-decoration: none; }
.udc-ops { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.udc-ops__item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 18px; background: var(--color-surface-2); font-size: .78rem; font-weight: 600; text-align: center; }
.udc-ops__item > img { display: block; width: auto; height: 40px; max-width: 100%; object-fit: contain; border-radius: 8px; }
.udc-support__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--color-border); font-size: .85rem; }
.udc-support__row > span { display: inline-flex; align-items: flex-start; gap: 8px; }
.udc-support__row svg { width: 18px; height: 18px; color: #047857; }
@media (min-width: 48rem) {
  .udc-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
  .udc-why > .udc-eyebrow, .udc-why > h2, .udc-why > .udc-why__lead { grid-column: 1 / -1; justify-self: start; }
  .udc-quick__grid { max-width: 44rem; }
}
@media (max-width: 47.999rem) {
  body.v2-home .v2-home-intro { align-items: flex-start !important; }
  body.v2-home .v2-home-intro [data-home-typing], body.v2-home .v2-home-intro .v2-home-typed { justify-content: flex-start; text-align: left; width: 100%; }
}

/* ══ Écran 4 — Page du destinataire /t/:id (prototype « recevoir_t_l_charger ») ═══════════════════ */
.v2-recipient .v2-recipient__hero { border-radius: 28px !important; padding: 18px 16px 20px; }
.udc-rx__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.udc-rx__top .v2-recipient__sender { margin: 0; min-width: 0; }
.udc-rx__top .v2-recipient__sender-text { display: grid; line-height: 1.25; }
.udc-rx__top .v2-recipient__sender-text strong { font: 700 1rem/1.3 var(--font-family-display); }
.udc-rx__from { margin: 0; font-size: .85rem; overflow-wrap: anywhere; }
.udc-rx__pill { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: #EEF2FF; color: #3F465C; font: 700 .75rem/1.2 var(--font-family-display); }
.udc-rx__pill svg { width: 14px; height: 14px; }
.udc-rx__bundle { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 20px; background: var(--color-surface-2); }
.udc-rx__bundle-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: linear-gradient(145deg, #E2457A, #B4004B); color: #FFFFFF; box-shadow: 0 8px 18px rgba(217, 38, 98, .3); }
.udc-rx__bundle-icon svg { width: 26px; height: 26px; }
.udc-rx__bundle-text { min-width: 0; }
.udc-rx__bundle-text h1 { margin: 0 0 4px; font-size: 1.15rem !important; line-height: 1.3; overflow-wrap: anywhere; }
.udc-rx__bundle-text .v2-recipient__meta { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 0; font-size: .82rem; color: var(--color-text-muted); }
.udc-rx__bundle-text .v2-recipient__meta b { color: #D92662; }
.udc-rx__guards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; }
.udc-rx__guard { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: var(--color-surface-2); }
.udc-rx__guard > svg { flex: none; width: 20px; height: 20px; color: #047857; }
.udc-rx__guard.is-warn > svg { color: var(--color-danger); }
.udc-rx__guard > span { display: grid; min-width: 0; line-height: 1.25; }
.udc-rx__guard b { font-size: .78rem; }
.udc-rx__guard small { color: var(--color-text-muted); font-size: .72rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.udc-rx__preview-note { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-weight: 600; font-size: .85rem; }
.udc-rx__preview-note svg { width: 16px; height: 16px; }
.udc-rx__preview-note span { margin-inline-start: auto; color: #D92662; font-size: .78rem; }
html body .v2-recipient .v2-recipient__all { min-height: 58px; margin-top: 16px; border-radius: 999px; background: #0F172A; border-color: #0F172A; color: #FFFFFF; font-size: 1rem; box-shadow: 0 12px 26px rgba(15, 23, 42, .25); }
html body .v2-recipient .v2-recipient__all svg { color: #FF5C8F; }
html[data-theme="dark"] body .v2-recipient .v2-recipient__all { background: #D92662; border-color: #D92662; }
html[data-theme="dark"] body .v2-recipient .v2-recipient__all svg { color: #FFFFFF; }
.v2-recipient .v2-reassure { justify-content: center; margin-top: 10px; font-size: .82rem; color: var(--color-text-muted); }
.v2-recipient .v2-reassure svg { color: #047857; }
.v2-recipient .v2-recipient__list { border-radius: 24px !important; }
.v2-recipient .v2-recipient__file { border-radius: 16px; }
.v2-recipient .v2-recipient__thumb { border-radius: 14px; }
.udc-rx__promo { position: relative; display: block !important; margin-top: 16px; padding: 18px; border-radius: 28px; text-align: left !important; background: linear-gradient(150deg, #EEF2FF, #FDF2F8); border: 1px solid var(--color-border); }
html[data-theme="dark"] .udc-rx__promo { background: linear-gradient(150deg, #1E1B4B, #2A1220); }
.udc-rx__promo-icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 14px; background: #575588; color: #FFFFFF; }
.udc-rx__promo-icon svg { width: 22px; height: 22px; }
.udc-rx__promo h2 { margin: 0 0 8px; font-size: 1.2rem !important; }
.udc-rx__promo p.v2-muted { margin: 0 0 14px; }
.udc-rx__promo-btn { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 999px; background: var(--color-surface); color: #D92662; font: 700 .95rem/1 var(--font-family-display); text-decoration: none; box-shadow: 0 4px 12px rgba(15, 23, 42, .06); }
.udc-rx__promo-btn svg { width: 16px; height: 16px; transform: rotate(180deg); }
.udc-rx__promo .v2-btn--ghost { width: 100%; margin-top: 6px; }
.udc-rx__help { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 14px; border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: .85rem; }
.udc-rx__help > span { display: inline-flex; align-items: center; gap: 8px; }
.udc-rx__help svg { width: 18px; height: 18px; color: #047857; }
.udc-rx__help a { flex: none; padding: 7px 12px; border-radius: 999px; background: #D1FAE5; color: #047857; font: 700 .8rem/1 var(--font-family-display); text-decoration: none; }
.v2-recipient .v2-recipient__hero .udc-rx__top, .v2-recipient .v2-recipient__hero .udc-rx__bundle, .v2-recipient .v2-recipient__hero .udc-rx__guards, .v2-recipient .v2-recipient__hero .v2-recipient__message { text-align: left; }
.v2-recipient .udc-rx__bundle-text .v2-recipient__meta { justify-content: flex-start; }
.udc-rx__name { margin: 0 0 4px; font-weight: 700; color: var(--color-text); overflow-wrap: anywhere; }
.v2-recipient .v2-recipient__cta:has(.udc-rx__promo) { display: block; padding: 0; border: 0; background: none; }

/* ══ Écran 5 — Recevoir (prototype « recevoir_par_code_qr_code », « scanner_qr ») ═══════════════ */
.udc-rcv__head { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.udc-rcv__head .v2-panel-title { flex: 1; margin: 0; font-size: 1.3rem !important; }
.udc-rcv__head-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-brand-soft); color: #D92662; }
.udc-rcv__head-icon svg { width: 18px; height: 18px; }
.udc-rcv__ready { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--color-surface-2); font: 800 .68rem/1.2 var(--font-family-display); letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.udc-rcv__card { display: block !important; padding: 16px; border-radius: 24px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-rcv__card + .udc-rcv__card, .v2-scan.udc-rcv__card { margin-top: 14px; }
.udc-rcv__label { display: flex !important; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.udc-rcv__label > span { display: inline-flex; align-items: center; gap: 8px; font: 700 1rem/1.3 var(--font-family-display); }
.udc-rcv__label svg { width: 18px; height: 18px; color: #D92662; }
.udc-rcv__label small { color: var(--color-text-muted); font-size: .72rem; font-weight: 600; }
.udc-rcv__input { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 14px; border-radius: 999px; background: var(--color-surface-2); border: 1px solid var(--color-border); }
.udc-rcv__input:focus-within { border-color: #D92662; box-shadow: 0 0 0 4px rgba(217, 38, 98, .14); background: var(--color-surface); }
.udc-rcv__input > svg { flex: none; width: 18px; height: 18px; color: var(--color-text-muted); }
html body .udc-rcv__input .v2-input { flex: 1; min-width: 0; min-height: 44px; padding: 0 4px; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.udc-rcv__paste { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--color-surface); color: var(--color-text); font: 700 .82rem/1 var(--font-family-display); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); cursor: pointer; }
.udc-rcv__paste svg { width: 16px; height: 16px; color: #D92662; }
.udc-rcv__paste[hidden] { display: none; }
html body .udc-rcv__open { width: 100%; min-height: 54px; margin-top: 14px; gap: 8px; font-size: 1rem; }
.udc-rcv__open svg { width: 20px; height: 20px; }
.udc-rcv__scanhead { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.udc-rcv__scanhead > span:last-child { display: grid; line-height: 1.3; }
.udc-rcv__scanhead b { font: 700 1rem/1.3 var(--font-family-display); }
.udc-rcv__scanhead small { color: var(--color-text-muted); font-size: .8rem; }
.udc-rcv__scanicon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--color-brand-soft); color: #D92662; }
.udc-rcv__scanicon svg { width: 22px; height: 22px; }
.udc-rcv__card .v2-scan__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.udc-rcv__card .v2-scan__actions .v2-btn { min-height: 50px; border-radius: 999px; background: #EEF2FF; color: #3F465C; font-size: .85rem; }
html[data-theme="dark"] .udc-rcv__card .v2-scan__actions .v2-btn { background: #1E293B; color: #F1F5F9; }
.udc-rcv__card .v2-scan__viewport { border-radius: 24px; overflow: hidden; background: #0F172A; }
.udc-rcv__card .v2-scan__corner { border-color: #D92662 !important; }
.v2-receive-dropzone { margin-top: 14px; padding: 18px; border-radius: 24px; background: linear-gradient(150deg, #EEF2FF, #FDF2F8); border: 1px solid var(--color-border); }
html[data-theme="dark"] .v2-receive-dropzone { background: linear-gradient(150deg, #1E1B4B, #2A1220); }
.v2-receive-dropzone h3 { margin-top: 0; }
.udc-rcv__head, .udc-rcv__card, .v2-receive-dropzone { text-align: left; }
.udc-rcv__card .v2-field__hint { text-align: left; }

/* ══ Écran 6 — Mes transferts (prototype « mes_transferts_suivi ») ═════════════════════════════════ */
.udc-eyebrow--live { background: #D1FAE5; color: #047857; }
html[data-theme="dark"] .udc-eyebrow--live { background: #052E1F; color: #6EE7A8; }
.udc-tx__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 64rem) { .udc-tx__stats { grid-template-columns: repeat(4, 1fr); } }
.udc-stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-stat__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px; border-radius: 50%; background: var(--color-brand-soft); color: #D92662; }
.udc-stat__icon.is-indigo { background: #EEF2FF; color: #575588; } .udc-stat__icon.is-slate { background: var(--color-surface-2); color: #475569; } .udc-stat__icon.is-ok { background: #D1FAE5; color: #047857; }
.udc-stat__icon svg { width: 20px; height: 20px; }
.udc-stat__tag { position: absolute; top: 14px; right: 14px; padding: 3px 8px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text-muted); font: 700 .68rem/1.3 var(--font-family-display); }
.udc-stat b { font: 800 1.8rem/1.1 var(--font-family-display); letter-spacing: -.03em; }
.udc-stat > span:last-child { color: var(--color-text-muted); font-size: .78rem; line-height: 1.3; }
/* Filtres en pastilles, recherche en pilule. */
html body.v2-dash-body .v2-dash-tabs--filters { display: flex; gap: 8px; overflow-x: auto; border: 0; padding: 2px; scrollbar-width: none; }
html body.v2-dash-body .v2-dash-tabs--filters .v2-dash-tab { flex: none; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text); font: 700 .85rem/40px var(--font-family-display); text-decoration: none; box-shadow: none; }
html body.v2-dash-body .v2-dash-tabs--filters .v2-dash-tab[aria-current="page"] { background: #B4004B; color: #FFFFFF; }
html body.v2-dash-body .v2-dash-search { display: flex; align-items: center; gap: 6px; padding: 4px 4px 4px 16px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
html body.v2-dash-body .v2-dash-search .v2-input { flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; min-height: 44px; }
html body.v2-dash-body .v2-dash-search__go { min-height: 44px; width: 44px; padding: 0; border-radius: 50%; }
/* Cartes de transfert. */
html body.v2-dash-body .v2-dash-transfer { border-radius: 24px !important; padding: 16px; }
html body.v2-dash-body .v2-dash-transfer__title { font-size: 1.05rem !important; overflow-wrap: anywhere; }
html body.v2-dash-body .v2-dash-status { border-radius: 999px; font: 700 .72rem/1.4 var(--font-family-display); padding: 3px 10px; }
html body.v2-dash-body .v2-dash-status.is-active { background: var(--color-brand-soft); color: var(--color-brand-ink); } /* encre lisible en sombre (18/11/2026) */
html body.v2-dash-body .v2-dash-status.is-expired { background: var(--color-danger-soft); color: var(--color-danger); }
html body.v2-dash-body .v2-dash-transfer__meta { padding: 10px 12px; border-radius: 14px; background: var(--color-surface-2); font-size: .82rem; }
html body.v2-dash-body .v2-dash-transfer__quick-actions .v2-btn { min-height: 42px; }
html body.v2-dash-body .v2-dash-transfer__quick-actions .v2-btn--danger { background: transparent; border-color: transparent; color: var(--color-danger); }

/* ══ Émotion — moment « Votre lien est prêt » (public/v2/js/celebrate.js) ═══════════════════════ */
.udc-confetti { position: fixed; left: 50%; top: 42%; z-index: 2147483000; width: 0; height: 0; pointer-events: none; }
.udc-confetti i { position: absolute; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: udc-confetti 1.7s cubic-bezier(.15, .7, .35, 1) var(--delay) forwards; }
@keyframes udc-confetti {
  0% { opacity: 1; transform: translate(0, 0) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx), calc(var(--dy) + 260px)) rotate(var(--rot)); }
}
.udc-cheer { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 2147483001; display: flex; align-items: center; gap: 12px; width: min(92vw, 26rem); padding: 14px 14px 14px 16px; border-radius: 24px; background: #0F172A; color: #F8FAFC; box-shadow: 0 18px 44px rgba(15, 23, 42, .35); transform: translateX(-50%); animation: udc-cheer-in .45s cubic-bezier(.2, 1.3, .4, 1) both; }
.udc-cheer.is-leaving { animation: udc-cheer-out .35s ease forwards; }
@keyframes udc-cheer-in { from { opacity: 0; transform: translate(-50%, 24px) scale(.96); } }
@keyframes udc-cheer-out { to { opacity: 0; transform: translate(-50%, 16px); } }
.udc-cheer__mark { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #D92662; color: #FFFFFF; }
.udc-cheer__mark svg { width: 24px; height: 24px; stroke-dasharray: 26; stroke-dashoffset: 26; animation: udc-check .5s .25s ease forwards; }
@keyframes udc-check { to { stroke-dashoffset: 0; } }
.udc-cheer__text { flex: 1; display: grid; gap: 2px; line-height: 1.35; }
.udc-cheer__text b { font: 800 1.05rem/1.25 var(--font-family-display); }
.udc-cheer__text span { color: #CBD5E1; font-size: .85rem; }
.udc-cheer__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #F8FAFC; font-size: 1.3rem; line-height: 1; cursor: pointer; }
@media (min-width: 900px) { .udc-cheer { bottom: 28px; } }
@media (prefers-reduced-motion: reduce) { .udc-cheer, .udc-cheer.is-leaving, .udc-cheer__mark svg { animation: none; stroke-dashoffset: 0; } }

/* Accueil : phrase personnelle sous le bonjour. */
.udc-hello__mood { margin: 4px 0 0; font-size: 1rem; color: var(--color-text-muted); }

/* Étiquettes en casse normale (pas de MAJUSCULES espacées). */
.udc-eyebrow, .udc-rcv__ready { text-transform: none !important; letter-spacing: 0 !important; font-size: .78rem !important; }

/* ══ Écran 7 — Règles et sécurité des liens (/dashboard/regles-liens) ═══════════════════════════ */
.udc-rules__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.udc-backchip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text); font: 700 .85rem/1 var(--font-family-display); text-decoration: none; }
.udc-backchip svg { width: 16px; height: 16px; }
.udc-rules__head h1 { margin: 6px 0 6px; font-size: clamp(1.7rem, 7vw, 2.2rem) !important; }
.udc-rules__form { display: grid; gap: 16px; }
.udc-rules__card { padding: 18px 16px; border-radius: 28px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-rules__cardhead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.udc-rules__cardhead h2 { margin: 0; font-size: 1.15rem !important; }
.udc-rules__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #EEF2FF; color: #575588; }
.udc-rules__icon svg { width: 20px; height: 20px; }
.udc-rules__hint { margin: 10px 0 0; color: var(--color-text-muted); font-size: .82rem; }
.udc-rules__hint a { color: #D92662; font-weight: 700; }
/* Curseur à crans : une ligne, des points ; le cran choisi en framboise. */
.udc-steps { position: relative; display: flex; justify-content: space-between; margin: 0; padding: 18px 8px 12px; border: 0; border-radius: 20px; background: var(--color-surface-2); }
.udc-steps::before { content: ""; position: absolute; left: 30px; right: 30px; top: 29px; height: 4px; border-radius: 4px; background: var(--color-border); }
.udc-steps__stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 44px; cursor: pointer; }
.udc-steps__stop input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.udc-steps__dot { width: 22px; height: 22px; border-radius: 50%; background: var(--color-surface); border: 3px solid var(--color-border-strong); transition: transform .15s ease, background-color .15s ease; }
.udc-steps__label { display: inline-flex; align-items: center; gap: 3px; color: var(--color-text-muted); font: 700 .8rem/1 var(--font-family-display); }
.udc-steps__label svg { width: 12px; height: 12px; }
.udc-steps__stop input:checked + .udc-steps__dot { background: #D92662; border-color: #D92662; transform: scale(1.2); box-shadow: 0 0 0 6px rgba(217, 38, 98, .18); }
.udc-steps__stop input:checked ~ .udc-steps__label { color: #D92662; }
.udc-steps__stop input:focus-visible + .udc-steps__dot { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.udc-steps__stop.is-locked { cursor: not-allowed; opacity: .55; }
/* Lignes à interrupteur. */
.udc-switchrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--color-surface-2); cursor: pointer; }
.udc-switchrow + .udc-switchrow { margin-top: 10px; }
.udc-switchrow.is-info { cursor: default; }
.udc-switchrow__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--color-surface); color: #D92662; }
.udc-switchrow__icon svg { width: 18px; height: 18px; }
.udc-switchrow__text { flex: 1; min-width: 0; display: grid; gap: 2px; line-height: 1.3; }
.udc-switchrow__text b { font: 700 .95rem/1.3 var(--font-family-display); }
.udc-switchrow__text small { color: var(--color-text-muted); font-size: .8rem; }
.udc-switch { flex: none; appearance: none; -webkit-appearance: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: var(--color-border-strong); cursor: pointer; transition: background-color .2s ease; }
.udc-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s cubic-bezier(.3, 1.4, .5, 1); }
.udc-switch:checked { background: #D92662; }
.udc-switch:checked::after { transform: translateX(20px); }
.udc-switch:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.udc-tag.is-ok { background: #D1FAE5; color: #047857; }
a.udc-tag { text-decoration: none; }
.udc-rules__message { margin-top: 14px; }
.udc-rules__save { width: 100%; min-height: 56px; font-size: 1rem; gap: 8px; }
.udc-rules-link { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; padding: 12px 14px; border-radius: 16px; background: var(--color-brand-soft); color: var(--color-text); text-decoration: none; }
.udc-rules-link > svg { flex: none; width: 20px; height: 20px; color: #D92662; }
.udc-rules-link > span { display: grid; line-height: 1.3; }
.udc-rules-link small { color: var(--color-text-muted); font-size: .78rem; }

/* ══ Écran 8 — Centre de notifications (prototype « centre_de_notifications ») ═══════════════════ */
html body .notifications-inbox-page .page-title { font-size: clamp(1.7rem, 7vw, 2.1rem); font-weight: 800; }
html body .notifications-inbox-page .notif-settings { border-radius: 999px; padding: .55rem 1rem; font-weight: 700; }
html body .notifications-inbox-page .notif-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border: 0; border-radius: 999px; background: var(--color-surface-2); }
html body .notifications-inbox-page .notif-tab { justify-content: center; min-height: 44px; border: 0; border-radius: 999px; font-weight: 700; color: var(--color-text-muted); }
html body .notifications-inbox-page .notif-tab.active { background: var(--color-surface); color: var(--color-text); border: 0; box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
html body .notifications-inbox-page .notif-drawer { border-radius: 18px; }
html body .notifications-inbox-page .notif-action { border-radius: 999px; }
html body .notifications-inbox-page .notif-list { gap: 12px; }
.notif-day { margin: 14px 2px 0; font: 700 .82rem/1.3 var(--font-family-display) !important; color: var(--color-text-muted) !important; letter-spacing: 0; }
html body .notifications-inbox-page .notif-item { padding: 14px; gap: 12px; border-radius: 24px; border: 1px solid var(--color-border); background: var(--color-surface); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
html body .notifications-inbox-page .notif-item.unread { border-left: 1px solid var(--color-border); background: var(--color-surface); }
html body .notifications-inbox-page .notif-icon { width: 44px; height: 44px; border-radius: 50%; }
.notif-icon--file { background: var(--color-brand-soft); color: #D92662; }
.notif-icon--shield { background: var(--color-danger-soft) !important; color: var(--color-danger) !important; }
.notif-icon--folder, .notif-icon--pin { background: #EEF2FF !important; color: #575588 !important; }
.notif-icon--bell, .notif-icon--chat { background: #FEF3C7 !important; color: #B45309 !important; }
.notif-headline { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.notif-chip { padding: 2px 9px; border-radius: 999px; background: #EEF2FF; color: #3F465C; font: 700 .7rem/1.5 var(--font-family-display); }
.notif-chip--file { background: var(--color-brand-soft); color: var(--color-brand-ink); }
.notif-chip--shield { background: var(--color-danger-soft); color: var(--color-danger); }
.notif-chip--bell, .notif-chip--chat { background: #FEF3C7; color: #92400E; }
.notif-when { margin-left: auto; color: var(--color-text-muted); font-size: .75rem; white-space: nowrap; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; background: #D92662; box-shadow: 0 0 0 3px rgba(217, 38, 98, .15); }
html body .notifications-inbox-page .notif-title { font: 700 1rem/1.35 var(--font-family-display); }
html body .notifications-inbox-page .notif-actions-menu > summary { border-radius: 999px; min-height: 36px; }
.notif-prefs-card { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 16px; border-radius: 24px; background: linear-gradient(150deg, #EEF2FF, #FDF2F8); border: 1px solid var(--color-border); color: var(--color-text); text-decoration: none; }
html[data-theme="dark"] .notif-prefs-card { background: linear-gradient(150deg, #1E1B4B, #2A1220); }
.notif-prefs-card__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-surface); color: #575588; }
.notif-prefs-card__icon svg { width: 20px; height: 20px; }
.notif-prefs-card__text { flex: 1; display: grid; gap: 2px; line-height: 1.3; }
.notif-prefs-card__text b { font: 700 1rem/1.3 var(--font-family-display); }
.notif-prefs-card__text small { color: var(--color-text-muted); font-size: .8rem; }
.notif-prefs-card__btn { flex: none; padding: 9px 16px; border-radius: 999px; background: var(--color-surface); font: 700 .85rem/1 var(--font-family-display); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
html body.v2-dash-body .notifications-inbox-page h1.page-title { font-size: clamp(1.7rem, 7vw, 2.1rem) !important; font-weight: 800 !important; }
html body .notifications-inbox-page .notif-tab-count-hint { display: none !important; }

/* ══ Écran 9 — Drive Pool (prototype « gestion_du_stockage_drive_pool ») ═════════════════════════ */
.udc-pool-page__head h1 { margin: 6px 0 4px; }
.udc-poolhero { position: relative; overflow: hidden; padding: 20px 18px; border-radius: 28px; color: #F8FAFC; background: radial-gradient(110% 120% at 100% 0%, rgba(217, 38, 98, .32), transparent 55%), linear-gradient(160deg, #0F172A, #1E293B); box-shadow: 0 18px 40px rgba(15, 23, 42, .22); }
.udc-poolhero__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.udc-poolhero__top h2 { margin: 0; color: #CBD5E1 !important; font: 700 .85rem/1.3 var(--font-family-display) !important; letter-spacing: 0; }
.udc-poolhero__pct { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .12); font: 700 .78rem/1.2 var(--font-family-display); }
.udc-poolhero__pct svg { width: 15px; height: 15px; color: #6EE7A8; }
.udc-poolhero__big { margin: 14px 0 12px; }
.udc-poolhero__big strong { font: 800 2.6rem/1 var(--font-family-display); letter-spacing: -.03em; color: #FFFFFF; }
.udc-poolhero__big span { color: #CBD5E1; font-weight: 600; }
.udc-poolhero__bar { background: rgba(255, 255, 255, .12); height: 12px; }
.udc-poolhero__legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; padding: 0; list-style: none; color: #CBD5E1; font-size: .82rem; }
.udc-poolhero__legend li { display: inline-flex; align-items: center; gap: 6px; }
.udc-poolhero__legend b { color: #FFFFFF; }
.udc-poolhero__empty { margin: 14px 0 0; color: #CBD5E1; }
.udc-poolhero__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 16px 0 0; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); color: #CBD5E1; font-size: .8rem; }
.udc-poolhero__foot > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.udc-drives__list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
html body .udc-drive { padding: 16px; border-radius: 24px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-drive__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--tone) 14%, var(--color-surface)); }
.udc-drive__usage { display: flex; justify-content: space-between; gap: 8px; margin: 12px 0 6px; font-size: .82rem; color: var(--color-text-muted); }
.udc-drive__usage b { color: var(--color-text); }
.udc-drive__bar { height: 8px; border-radius: 999px; background: var(--color-surface-2); overflow: hidden; }
.udc-drive__bar > span { display: block; height: 100%; border-radius: 999px; background: var(--tone); }
.udc-drive__sync { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; color: var(--color-text-muted); font-size: .8rem; }
.udc-drive__sync svg { width: 15px; height: 15px; color: #047857; }
.udc-adddrive { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 16px; border-radius: 24px; border: 2px dashed var(--color-border-strong); background: var(--color-surface); color: var(--color-text); text-decoration: none; }
.udc-adddrive__plus { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--color-brand-soft); color: #D92662; }
.udc-adddrive__plus svg { width: 22px; height: 22px; }
.udc-adddrive > span:last-child { display: grid; gap: 2px; line-height: 1.3; }
.udc-adddrive b { font: 700 1rem/1.3 var(--font-family-display); }
.udc-adddrive small { color: #047857; font-size: .8rem; font-weight: 600; }
.udc-upsell { margin-top: 14px; padding: 20px 18px; border-radius: 28px; color: #F8FAFC; background: linear-gradient(160deg, #1E1B4B, #0F172A); }
.udc-upsell__tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 5px 10px; border-radius: 999px; background: #D92662; font: 700 .75rem/1.2 var(--font-family-display); }
.udc-upsell__tag svg { width: 14px; height: 14px; }
.udc-upsell h2 { margin: 0 0 8px; color: #FFFFFF !important; font-size: 1.35rem !important; }
.udc-upsell p:not(.udc-upsell__tag) { margin: 0 0 16px; color: #CBD5E1; }
.udc-upsell__btn { display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; background: #D92662; color: #FFFFFF; font: 700 .95rem/1 var(--font-family-display); text-decoration: none; }
.udc-privacy { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: 22px; background: var(--color-surface-2); font-size: .85rem; color: var(--color-text-muted); }
.udc-privacy p { margin: 0; }
.udc-privacy b { color: var(--color-text); }
.udc-privacy__icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--color-surface); color: #047857; }
.udc-privacy__icon svg { width: 18px; height: 18px; }
html body.v2-dash-body .udc-pool-page__head h1, html body.v2-dash-body .v2-dash__head.udc-tx__head h1 { font-size: clamp(1.7rem, 7vw, 2.2rem) !important; font-weight: 800; }

/* ══ « Choisir d'abord, compte après » — public/v2/js/pending-send.js ═══════════════════════════ */
html body .v2-send-card .udc-pickhint { display: flex; align-items: flex-start; gap: 12px; margin-top: 14px; padding: 14px 16px; border: 0; border-radius: 22px; background: var(--color-surface-2); text-align: left; }
.udc-pickhint__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-brand-soft); color: #D92662; }
.udc-pickhint__icon svg { width: 20px; height: 20px; }
.udc-pickhint__title { margin: 0 0 4px; font: 800 1rem/1.3 var(--font-family-display); }
.udc-pickhint__text { margin: 0 0 6px; color: var(--color-text-muted); font-size: .84rem; }
.udc-pickhint__login { color: #D92662; font-weight: 700; font-size: .85rem; }

.udc-pick { position: fixed; inset: 0; z-index: 2147482000; display: flex; align-items: flex-end; justify-content: center; }
.udc-pick__scrim { position: absolute; inset: 0; border: 0; background: rgba(15, 23, 42, .55); cursor: pointer; animation: udc-fade .25s ease both; }
.udc-pick__sheet { position: relative; width: min(100%, 30rem); max-height: 92vh; overflow: auto; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); border-radius: 28px 28px 0 0; background: var(--color-surface); color: var(--color-text); box-shadow: 0 -18px 50px rgba(15, 23, 42, .3); animation: udc-sheet-up .35s cubic-bezier(.2, 1, .3, 1) both; }
@media (min-width: 40rem) { .udc-pick { align-items: center; } .udc-pick__sheet { border-radius: 28px; } }
@keyframes udc-sheet-up { from { transform: translateY(100%); } }
@keyframes udc-fade { from { opacity: 0; } }
.udc-pick__grab { display: block; width: 44px; height: 5px; margin: 0 auto 14px; border-radius: 999px; background: var(--color-border); }
.udc-pick__files { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--color-surface-2); }
.udc-pick__count { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(145deg, #E2457A, #B4004B); color: #FFFFFF; font: 800 1.05rem/1 var(--font-family-display); }
.udc-pick__summary { min-width: 0; display: grid; line-height: 1.3; }
.udc-pick__summary b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.udc-pick__summary small { color: var(--color-text-muted); font-size: .78rem; }
.udc-pick__sheet h2 { margin: 18px 0 6px; font-size: 1.35rem !important; }
.udc-pick__lead { margin: 0 0 16px; color: var(--color-text-muted); font-size: .9rem; }
.udc-pick__btn { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; margin-top: 10px; border-radius: 999px; font: 700 1rem/1 var(--font-family-display); text-decoration: none; }
.udc-pick__btn.is-google { background: #0F172A; color: #FFFFFF; }
.udc-pick__btn.is-google svg { padding: 3px; border-radius: 50%; background: #FFFFFF; width: 26px; height: 26px; }
.udc-pick__btn.is-mail { background: #D92662; color: #FFFFFF; box-shadow: 0 10px 24px rgba(217, 38, 98, .28); }
.udc-pick__btn.is-login { background: var(--color-surface-2); color: var(--color-text); }
.udc-pick__btn[aria-busy="true"] { opacity: .7; pointer-events: none; }
html[data-theme="dark"] .udc-pick__btn.is-google { background: #F1F5F9; color: #0F172A; }
.udc-pick__note { margin: 14px 0 0; color: var(--color-text-muted); font-size: .78rem; text-align: center; }
.udc-pick__status { margin: 8px 0 0; font-size: .85rem; text-align: center; font-weight: 600; color: #047857; }
.udc-pick__status:empty { display: none; }
.udc-pick__status.is-warn { color: var(--color-warning); }
body.udc-pick-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .udc-pick__sheet, .udc-pick__scrim { animation: none; } }

.udc-waiting { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 12px 12px 14px; border-radius: 22px; background: #0F172A; color: #F8FAFC; box-shadow: 0 12px 30px rgba(15, 23, 42, .22); }
.udc-waiting__icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #D92662; font-weight: 800; }
.udc-waiting__text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.udc-waiting__text b { font: 700 .98rem/1.3 var(--font-family-display); }
.udc-waiting__text small { color: #CBD5E1; font-size: .78rem; }
.udc-waiting__go { flex: none; padding: 10px 14px; border-radius: 999px; background: #D92662; color: #FFFFFF; font: 700 .85rem/1 var(--font-family-display); text-decoration: none; }
.udc-waiting__del { flex: none; padding: 10px 12px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .1); color: #F8FAFC; font: 600 .8rem/1 var(--font-family); cursor: pointer; }

/* ══ Écran 10 — Tarifs et Mobile Money (prototype « forfaits_mobile_money ») ═══════════════════════ */
.v2-price-app .v2-price-head { text-align: center; }
.v2-price-app .v2-price-head h1 { font-size: clamp(1.8rem, 7.5vw, 2.6rem) !important; }
.udc-cur { display: inline-flex; gap: 4px; margin: 14px auto 4px; padding: 4px; border-radius: 999px; background: var(--color-surface-2); }
.udc-cur button { min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--color-text-muted); font: 700 .85rem/1 var(--font-family-display); cursor: pointer; }
.udc-cur button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
/* Cartes empilées (toutes visibles), la formule Pro mise en avant. */
html body .v2-price-app [data-price-seg] { display: none !important; }
html body .v2-price-app.is-segmented [data-plan]:not(.is-shown) { display: block; }
html body .v2-price-app .v2-plan { position: relative; display: flex; flex-direction: column; padding: 22px 18px; border-radius: 28px; }
html body .v2-price-app .v2-plan .v2-card__title { font-size: 1.4rem !important; font-weight: 800; }
html body .v2-price-app .v2-plan__price { margin: 6px 0 8px; font-weight: 600; color: var(--color-text-muted); }
html body .v2-price-app .v2-plan__price-usd { font: 800 2.4rem/1 var(--font-family-display); letter-spacing: -.03em; color: #D92662; }
html body .v2-price-app .v2-plan__price-cdf { display: inline-block; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: #EEF2FF; color: #3F465C; font-size: .78rem; font-weight: 700; }
html body .v2-price-app[data-currency="cdf"] .v2-plan__price-usd { font-size: 1.1rem; color: var(--color-text-muted); }
html body .v2-price-app[data-currency="cdf"] .v2-plan__price-cdf { display: block; width: fit-content; padding: 0; background: none; font: 800 1.9rem/1.1 var(--font-family-display); letter-spacing: -.02em; color: #D92662; }
html body .v2-price-app .v2-plan__list li { gap: 10px; }
html body .v2-price-app .v2-plan__list svg { color: #047857; }
html body .v2-price-app .v2-plan .v2-btn { margin-top: auto; min-height: 52px; }
html body .v2-price-app .v2-plan[data-plan="pro"] { border: 2px solid #D92662; box-shadow: 0 18px 44px rgba(217, 38, 98, .16); }
html body .v2-price-app .v2-plan[data-plan="pro"]::before { content: "Recommandé"; position: absolute; top: -13px; left: 18px; padding: 5px 12px; border-radius: 999px; background: #D92662; color: #FFFFFF; font: 800 .75rem/1.2 var(--font-family-display); box-shadow: 0 6px 14px rgba(217, 38, 98, .3); }
html body .v2-price-app .v2-plan[data-plan="pro"] .v2-btn { background: #D92662; border-color: #D92662; color: #FFFFFF; box-shadow: 0 10px 24px rgba(217, 38, 98, .28); }
html body .v2-price-app .v2-plan.is-current { border-color: #047857; }
@media (max-width: 63.999rem) { html body .v2-price-app .v2-price-plans .v2-grid--4 { grid-template-columns: 1fr; gap: 22px; } }
/* Bloc Mobile Money. */
.udc-mm { margin-top: 26px; }
.udc-mm__card { padding: 20px 18px; border-radius: 28px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-mm__head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.udc-mm__head h2 { margin: 0; font-size: 1.25rem !important; }
.udc-mm__head p { margin: 2px 0 0; color: var(--color-text-muted); font-size: .85rem; }
.udc-mm__icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #EEF2FF; color: #575588; }
.udc-mm__icon svg { width: 22px; height: 22px; }
.udc-mm__steps { counter-reset: mm; display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.udc-mm__steps li { counter-increment: mm; position: relative; display: grid; gap: 2px; padding: 12px 12px 12px 52px; border-radius: 18px; background: var(--color-surface-2); font-size: .85rem; color: var(--color-text-muted); }
.udc-mm__steps li::before { content: counter(mm); position: absolute; left: 12px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #D92662; color: #FFFFFF; font: 800 .85rem/1 var(--font-family-display); }
.udc-mm__steps b { color: var(--color-text); font: 700 .95rem/1.3 var(--font-family-display); }
/* Questions fréquentes en cartes. */
html body .v2-price-app .v2-fold { border-radius: 20px; }
html body .v2-price-app .v2-price-plans__eyebrow { text-transform: none !important; letter-spacing: 0 !important; }

/* ══ Écran 11 — Facturation (prototype « facturation_abonnements ») ═══════════════════════════════ */
.udc-bill { position: relative; overflow: hidden; padding: 20px 18px; border-radius: 28px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.udc-bill::before { content: ""; position: absolute; inset: -40% -30% auto auto; width: 70%; height: 80%; background: radial-gradient(closest-side, rgba(217, 38, 98, .10), transparent); pointer-events: none; }
.udc-bill__top { position: relative; display: flex; justify-content: space-between; gap: 12px; }
.udc-bill__chip { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 8px; padding: 4px 10px; border-radius: 999px; background: var(--color-brand-soft); color: var(--color-brand-ink); font: 700 .75rem/1.3 var(--font-family-display); }
html[data-theme="dark"] .udc-bill__chip { color: #FF8AB3; }
.udc-bill__chip svg { width: 14px; height: 14px; }
.udc-bill__name { margin: 0; font-size: 1.6rem !important; font-weight: 800; }
.udc-bill__sum { margin: 2px 0 0; color: var(--color-text-muted); font-size: .85rem; }
.udc-bill__price { flex: none; margin: 0; text-align: right; display: grid; }
.udc-bill__price b { font: 800 1.8rem/1 var(--font-family-display); color: #D92662; letter-spacing: -.02em; }
.udc-bill__price small { color: var(--color-text-muted); font-size: .75rem; }
.udc-bill__renew { position: relative; margin-top: 16px; padding: 14px; border-radius: 18px; background: var(--color-surface-2); }
.udc-bill__renew > p:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; font-weight: 700; }
.udc-bill__renew > p:first-child > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.udc-bill__renew svg { width: 18px; height: 18px; color: var(--color-text-muted); }
.udc-bill__bar { --tone: #D92662; background: var(--color-surface); }
.udc-bill__dates { display: flex; justify-content: space-between; margin: 8px 0 0; color: var(--color-text-muted); font-size: .78rem; }
.udc-bill__note { position: relative; margin: 14px 0 0; color: var(--color-text-muted); }
.udc-bill__feats { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.udc-bill__feats li { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 14px; background: #EEF2FF; }
html[data-theme="dark"] .udc-bill__feats li { background: #1E293B; }
.udc-bill__feats svg { flex: none; width: 18px; height: 18px; color: #575588; }
.udc-bill__feats span { display: grid; line-height: 1.25; min-width: 0; }
.udc-bill__feats b { font-size: .85rem; }
.udc-bill__feats small { color: var(--color-text-muted); font-size: .72rem; }
.udc-bill__actions { position: relative; display: grid; gap: 10px; margin-top: 16px; }
.udc-bill__actions .v2-btn { width: 100%; min-height: 52px; }
.udc-bill__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.udc-bill__stats .udc-stat b { font-size: 1.35rem; }
.udc-bill__op { color: #D92662; }
.udc-chips-filter { display: flex; gap: 8px; overflow-x: auto; margin: 10px 0 12px; scrollbar-width: none; }
.udc-chips-filter button { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text); font: 700 .85rem/1 var(--font-family-display); cursor: pointer; }
.udc-chips-filter button b { padding: 2px 7px; border-radius: 999px; background: var(--color-surface); font-size: .72rem; }
.udc-chips-filter button[aria-pressed="true"] { background: #0F172A; color: #FFFFFF; }
.udc-chips-filter button[aria-pressed="true"] b { background: rgba(255, 255, 255, .18); color: #FFFFFF; }
html[data-theme="dark"] .udc-chips-filter button[aria-pressed="true"] { background: #D92662; }
html body .udc-bill__list { display: grid; gap: 12px; padding: 0; }
html body .udc-inv { display: block !important; padding: 14px 16px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-inv[hidden] { display: none !important; }
.udc-inv__top { display: flex; justify-content: space-between; gap: 10px; }
.udc-inv__amount { flex: none; display: grid; justify-items: end; gap: 4px; margin: 0; }
.udc-inv__amount b { font: 800 1.1rem/1.1 var(--font-family-display); }
.udc-inv__wait { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: #FEF3C7; color: #92400E; font-size: .8rem; font-weight: 600; }
.udc-inv__wait svg { width: 16px; height: 16px; }
.udc-inv__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--color-border); font-size: .8rem; color: var(--color-text-muted); }
.udc-inv__op { display: inline-flex; align-items: center; gap: 8px; }
.udc-inv__op .v2-payops { margin: 0; }
.udc-inv__pdf { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: var(--color-surface-2); color: var(--color-text); font-weight: 700; text-decoration: none; }
.udc-inv__pdf svg { width: 15px; height: 15px; color: #D92662; }

/* ══ Écran 12 — Statistiques et répartition par type (prototype « analytique_du_stockage ») ═══════ */
.udc-periods { display: flex; gap: 6px; overflow-x: auto; padding: 4px; border-radius: 999px; background: var(--color-surface-2); scrollbar-width: none; }
.udc-periods a { flex: 1 0 auto; display: grid; place-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; color: var(--color-text-muted); font: 700 .82rem/1.2 var(--font-family-display); text-decoration: none; white-space: nowrap; }
.udc-periods a[aria-current="page"] { background: var(--color-surface); color: var(--color-text); box-shadow: 0 2px 8px rgba(15, 23, 42, .1); }
.udc-donutcard { padding: 18px 16px; border-radius: 28px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .05); }
.udc-donutcard .udc-section-head { margin-top: 0; }
.udc-donut { position: relative; width: min(72vw, 250px); aspect-ratio: 1; margin: 6px auto 18px; border-radius: 50%; background: var(--udc-donut); }
.udc-donut__hole { position: absolute; inset: 18%; display: grid; place-content: center; justify-items: center; gap: 2px; border-radius: 50%; background: var(--color-surface); box-shadow: inset 0 2px 10px rgba(15, 23, 42, .06); text-align: center; }
.udc-donut__hole small { color: var(--color-text-muted); font-size: .7rem; font-weight: 700; }
.udc-donut__hole b { font: 800 1.8rem/1.05 var(--font-family-display); letter-spacing: -.03em; }
.udc-donut__hole span { color: #D92662; font-size: .75rem; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .udc-donut { animation: udc-donut-in .8s cubic-bezier(.2, .9, .3, 1) both; } @keyframes udc-donut-in { from { transform: rotate(-90deg) scale(.85); opacity: 0; } } .udc-donut__hole { animation: udc-donut-hole .8s ease both; } @keyframes udc-donut-hole { from { transform: rotate(90deg); } } }
.udc-donut__top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--color-surface-2); }
.udc-donut__top > span:nth-child(2) { flex: 1; display: grid; line-height: 1.3; }
.udc-donut__top small { color: var(--color-text-muted); font-size: .75rem; }
.udc-donut__top strong { display: grid; justify-items: end; font: 800 1.15rem/1.1 var(--font-family-display); }
.udc-donut__top strong small { color: #D92662; font-weight: 700; }
.udc-donut__legend { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.udc-donut__legend li { display: flex; align-items: center; gap: 6px; padding: 10px; border-radius: 12px; background: var(--color-surface-2); font-size: .78rem; }
.udc-donut__legend li span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.udc-stats3 { grid-template-columns: repeat(3, 1fr) !important; }
.udc-stats3 .udc-stat { padding: 12px; }
.udc-stats3 .udc-stat b { font-size: 1.2rem; }
.udc-stats3 .udc-stat__icon { margin-bottom: 10px; width: 34px; height: 34px; }
html body .v2-stats-page .v2-stats-metric { border-radius: 20px; }
html body .udc-periods a[aria-current="page"] { background: #0F172A; color: #FFFFFF; }
html[data-theme="dark"] body .udc-periods a[aria-current="page"] { background: #D92662; }
html body .v2-stats-page .v2-stats-eyebrow { text-transform: none !important; letter-spacing: 0 !important; }

/* ══ Écran 13 — Corbeille (prototype « corbeille_fichiers_supprim_s ») ═══════════════════════════ */
.udc-trashsum { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 24px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 6px 20px rgba(15, 23, 42, .04); }
.udc-trashsum__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #EEF2FF; color: #575588; }
.udc-trashsum__icon svg { width: 22px; height: 22px; }
.udc-trashsum p { margin: 0; display: grid; gap: 2px; }
.udc-trashsum b span { color: #D92662; }
.udc-trashsum small { color: var(--color-text-muted); font-size: .82rem; }
html body .v2-trash-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 0; }
html body .v2-trash-list .v2-trash-entry { display: flex; flex-direction: column; gap: 8px; padding: 0 0 10px; border: 1px solid var(--color-border); border-radius: 22px; background: var(--color-surface); overflow: hidden; box-shadow: 0 6px 18px rgba(15, 23, 42, .04); }
.udc-trashcard__visual { position: relative; display: grid; place-items: center; height: 104px; margin: 6px 6px 0; border-radius: 18px; background: linear-gradient(150deg, var(--color-surface-2), color-mix(in srgb, var(--color-surface-2) 70%, var(--color-border))); }
.udc-trashcard__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(15, 23, 42, .72); color: #FFFFFF; }
.udc-trashcard__icon svg { width: 22px; height: 22px; }
.udc-trashcard__left { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--color-surface); color: var(--color-text-muted); font: 800 .72rem/1.3 var(--font-family-display); }
.udc-trashcard__left svg { width: 12px; height: 12px; }
.udc-trashcard__left.is-soon { background: #FEF3C7; color: #92400E; }
.udc-trashcard__left.is-urgent { background: var(--color-danger); color: #FFFFFF; }
html body .v2-trash-list .v2-trash-entry .v2-dash-list__main { padding: 0 12px; min-width: 0; }
html body .v2-trash-list .v2-dash-list__title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
html body .v2-trash-list .v2-trash-entry .v2-muted { font-size: .75rem; margin: 2px 0 0; }
html body .v2-trash-list .v2-trash-entry .v2-dash-actions { display: flex; gap: 6px; margin-top: auto; padding: 0 10px; }
html body .v2-trash-list .v2-trash-entry .v2-dash-actions .v2-btn { min-height: 38px; padding: 0 10px; font-size: .8rem; }
html body .v2-trash-list .v2-trash-entry .v2-dash-actions .v2-btn--secondary { flex: 1; background: var(--color-surface-2); }
html body .v2-trash-list .v2-trash-entry .v2-dash-actions .v2-btn--danger { flex: none; width: 38px; padding: 0; font-size: 0; border-color: transparent; background: var(--color-surface-2); }
html body .v2-trash-list .v2-trash-entry .v2-dash-actions .v2-btn--danger svg { width: 16px; height: 16px; }
html body .v2-trash-drawer { border-radius: 20px; }
html body.v2-dash-body .v2-dash__main .v2-dash-list.v2-trash-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 4px 0 8px; }
@media (min-width: 48rem) { html body.v2-dash-body .v2-dash__main .v2-dash-list.v2-trash-list { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
html body.v2-dash-body .v2-dash__main .v2-dash-list.v2-trash-list > li.v2-trash-entry { align-items: stretch; text-align: left; padding: 0 0 10px; border-bottom: 1px solid var(--color-border); }
html body.v2-dash-body .v2-trash-drawer .v2-trash-list { padding: 4px 8px 8px; }
html body .v2-trash-list .v2-trash-entry .v2-dash-actions .v2-btn--secondary { white-space: nowrap; gap: 4px; padding: 0 8px; } html body .v2-trash-list .v2-trash-entry .v2-dash-actions .v2-btn--secondary svg { width: 15px; height: 15px; }

/* ══ Barre du haut exactement comme le prototype (téléphone) : logo + nom de page à gauche, pastille Drive, photo = menu ══ */
.udc-appbar__sub, .udc-appbar__sync { display: none; }
.udc-drawer__phone-only { display: none; }
@media (max-width: 55.999rem), (hover: none) and (pointer: coarse) and (max-width: 75rem) {
  .udc-drawer__phone-only { display: list-item; }
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__bar { gap: 10px; min-height: 64px; }
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__brand {
    order: 1 !important; margin: 0 auto 0 0 !important; display: flex !important; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; min-width: 0; text-decoration: none;
  }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__sub {
    display: block; margin: -2px 0 0 34px; color: var(--proto-muted); font: 600 .72rem/1.2 var(--font-family); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46vw;
  }
  /* 320 px : le nom de page élargissait le logo (figé en flex: 0 0 auto par chrome.css) et poussait le menu hors de l'écran.
     Le logo peut maintenant rétrécir ; le nom de page se coupe avec « … ». */
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-header__brand { flex: 0 1 auto !important; overflow: hidden; }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__sub { max-width: min(46vw, calc(100% - 34px)); }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__sync {
    order: 2; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px; background: var(--proto-surface-2); color: var(--proto-text); text-decoration: none;
  }
  .udc-appbar__sync svg { width: 18px; height: 18px; }
  .udc-appbar__sync-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--proto-border-strong); }
  .udc-appbar__sync.is-on .udc-appbar__sync-dot { background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__end,
  html body:has(header.v2-header) header.v2-header.udc-appbar .v2-topbar__actions { order: 3 !important; }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu { order: 4 !important; }
  /* Compte : la photo ouvre le menu ; cloche, bulle et avatar en double quittent la barre (ils sont dans le menu). */
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu.is-avatar { flex: 0 0 44px !important; padding: 0; border-radius: 50%; box-shadow: 0 0 0 2px var(--proto-surface), 0 0 0 4px rgba(217, 38, 98, .35); overflow: hidden; }
  html body:has(header.v2-header) header.v2-header.udc-appbar .udc-appbar__menu.is-avatar .v2-avatar { width: 44px; height: 44px; font-size: 1rem; }
  html body:has(header.v2-header) header.v2-header.udc-appbar:has(.udc-appbar__menu.is-avatar) .udc-appbar__icon,
  html body:has(header.v2-header) header.v2-header.udc-appbar:has(.udc-appbar__menu.is-avatar) .udc-appbar__avatar,
  html body:has(header.v2-header) header.v2-header.udc-appbar:has(.udc-appbar__menu.is-avatar) .v2-topbar__m,
  html body:has(header.v2-header) header.v2-header.udc-appbar:has(.udc-appbar__menu.is-avatar) .v2-account,
  html body:has(header.v2-header) header.v2-header.udc-appbar:has(.udc-appbar__menu.is-avatar) .v2-header__account-shortcut { display: none !important; }
}
/* Écran 1, au plus près de l'image : pas de badge de formule sous le bonjour sur téléphone, main qui salue, pastille « En direct ». */
@media (max-width: 55.999rem) { html body.v2-dash-body .v2-dash-hello .v2-dash-hello__plan, html body.v2-dash-body .v2-dash-hello .v2-dash-hello__summary { display: none; } }
.udc-wave { display: inline-block; transform-origin: 70% 70%; }
@media (prefers-reduced-motion: no-preference) { .udc-wave { animation: udc-wave 1.6s ease-in-out .4s 2; } @keyframes udc-wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(-4deg); } 50% { transform: rotate(10deg); } } }
.udc-livechip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: #D1FAE5; color: #047857; font: 700 .72rem/1.4 var(--font-family-display); }
html[data-theme="dark"] .udc-livechip { background: #052E1F; color: #6EE7A8; }
/* Écran 1 sur téléphone : la page s'arrête à la carte QR, comme l'image. Consommation (sauf alerte), envois récents,
   lectures et « Votre espace » restent sur ordinateur et dans Activité / Utilisation. Les premiers pas restent visibles. */
@media (max-width: 55.999rem) {
  html body.v2-dash-body .v2-dash__main section[aria-labelledby="usage-title"]:not(:has(.v2-alert)),
  html body.v2-dash-body .v2-dash__main section[aria-labelledby="recent-title"],
  html body.v2-dash-body .v2-dash__main .v2-reading,
  html body.v2-dash-body .v2-dash__main .udc-space { display: none !important; }
}
/* Graisses plus légères, comme les maquettes. */
.udc-pool__title, .udc-section-head h2, .udc-watch__text h3, .udc-qr-card__text b, .udc-rules__cardhead h2, .udc-mm__head h2 { font-weight: 600 !important; }
.udc-feed__line b { font-weight: 700; }
html body.v2-dash-body .v2-dash-hello .v2-dash-hello__info h1 { font-weight: 700 !important; }

/* ══ Icônes officielles Material Symbols (partials/icon.ejs) et animations du code HTML Stitch ══════════════ */
html body svg.udc-ms { fill: currentColor !important; stroke: none !important; }
html body svg.udc-ms path { fill: currentColor; }
.udc-wave { color: #F59E0B; vertical-align: -4px; }
.udc-wave svg { width: 1.1em; height: 1.1em; }
/* Points « en direct » : pulsation + onde (animate-pulse / animate-ping du prototype). */
.udc-live-dot { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .udc-live-dot { animation: udc-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
  .udc-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: udc-ping 1.6s cubic-bezier(0, 0, .2, 1) infinite; }
  @keyframes udc-pulse { 50% { opacity: .55; } }
  @keyframes udc-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
  /* Toucher : léger enfoncement (active:scale-95 / 98 du prototype). */
  .v2-btn, .udc-quick__card, .udc-feed__item, .udc-qr-card, .udc-stat, .udc-rx__promo-btn, .udc-pick__btn, .udc-adddrive, .udc-app-nav a, .udc-chips-filter button, .udc-periods a { transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease; }
  .v2-btn:active, .udc-pick__btn:active, .udc-chips-filter button:active, .udc-periods a:active { transform: scale(.95); }
  .udc-quick__card:active, .udc-feed__item:active, .udc-qr-card:active, .udc-adddrive:active, .udc-stat:active { transform: scale(.98); }
  /* Icône d'actualisation : tour complet au toucher (animate-spin). */
  .udc-pool__refresh:active svg, [data-v2-drive-sync]:active svg { animation: udc-spin .7s linear; }
  @keyframes udc-spin { to { transform: rotate(360deg); } }
}
/* Barre du bas : icône pleine et étiquette en gras pour l'onglet actif (data-active-classes du prototype). */
html body .udc-app-nav a[aria-current="page"] span { font-weight: 800; }
/* « Il vient de se passer » : vraie photo de profil (ou initiale), petit badge de l'action en bas à droite, comme le prototype. */
.udc-feed__avatar { position: relative; flex: none; width: 52px; height: 52px; }
.udc-feed__avatar img, .udc-feed__initial, .udc-feed__avatar .udc-feed__icon { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.udc-feed__initial { display: grid; place-items: center; background: linear-gradient(145deg, #575588, #3F465C); color: #FFFFFF; font: 800 1.2rem/1 var(--font-family-display); }
.udc-feed__badge { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--color-surface); background: #D92662; color: #FFFFFF; }
.udc-feed__badge.is-deposit { background: #575588; }
.udc-feed__badge.is-view { background: #0E7490; }
.udc-feed__icon.is-view { background: #ECFEFF; color: #0E7490; }
.udc-feed__badge svg { width: 13px; height: 13px; }

/* Écran #17 « Appareils et sessions » (maquette Stitch « Appareils Actifs & Sessions ») : carte sombre en tête avec
   compteurs réels et déconnexion globale, cartes d'appareils, bloc « Protection du compte ». */
.v2-sec-devices { display: grid; gap: 14px; margin-bottom: 18px; }
.v2-sec-devices__hero { position: relative; overflow: hidden; padding: 22px 20px 18px; border-radius: 26px; color: #F8FAFC;
  background: radial-gradient(120% 90% at 100% 0%, rgba(225, 29, 92, .28), transparent 55%), linear-gradient(160deg, #1E1B2E 0%, #0F172A 100%);
  box-shadow: 0 18px 40px -22px rgba(15, 23, 42, .65); }
.v2-sec-devices__hero h2 { margin: 10px 0 6px; font-size: clamp(1.5rem, 4.6vw, 2rem); line-height: 1.15; color: #fff; }
.v2-sec-devices__hero > p { margin: 0 0 16px; color: #CBD5E1; font-size: .92rem; max-width: 52ch; }
.v2-sec-devices__kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: #6EE7B7; background: rgba(16, 185, 129, .14); border: 1px solid rgba(110, 231, 183, .25); }
.v2-sec-devices__dot { width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .2); }
.v2-sec-devices__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 16px; padding: 12px 6px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.v2-sec-devices__stats div { display: flex; flex-direction: column-reverse; align-items: center; gap: 2px; text-align: center; min-width: 0; }
.v2-sec-devices__stats dd { margin: 0; font-size: 1.7rem; font-weight: 800; line-height: 1.1; color: #fff; }
.v2-sec-devices__stats div:nth-child(2) dd { color: #6EE7B7; }
.v2-sec-devices__stats div:nth-child(3) dd { color: #FDA4AF; }
.v2-sec-devices__stats dt { font-size: .72rem; font-weight: 600; color: #94A3B8; }
.v2-sec-devices__cta { min-height: 52px; border-radius: 999px; font-size: 1rem; box-shadow: 0 10px 24px -12px rgba(225, 29, 92, .8); }
.v2-sec-devices__hint { margin: 10px 4px 0; font-size: .78rem; color: #94A3B8; }
.v2-sec-devices__hero .v2-dash-status-line { color: #FDE68A; }
.v2-sec-devices__label { display: flex; align-items: center; justify-content: space-between; margin: 6px 2px 0; font-size: .78rem; font-weight: 800;
  letter-spacing: .06em; text-transform: uppercase; color: var(--color-text); border-bottom: 3px solid #10B981; padding-bottom: 8px; }
.v2-sec-devices__label span { color: var(--color-brand); letter-spacing: 0; }
.v2-sec-devices__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.v2-sec-device { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--color-surface);
  border: 1px solid var(--color-border); box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .35); }
.v2-sec-device.is-current { border-color: rgba(16, 185, 129, .45); }
.v2-sec-device__ico { flex: 0 0 auto; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--color-surface-2); color: var(--color-text); }
.v2-sec-device.is-current .v2-sec-device__ico { background: rgba(16, 185, 129, .14); color: #047857; }
.v2-sec-device__main { flex: 1; min-width: 0; display: grid; gap: 4px; }
.v2-sec-device__main strong { font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-sec-device__main .v2-muted { font-size: .8rem; }
.v2-sec-device__badge { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700;
  color: #047857; background: rgba(16, 185, 129, .12); }
.v2-sec-device__badge.is-muted { color: var(--color-text-muted); background: var(--color-surface-2); }
.v2-sec-devices__sub, .v2-sec-devices__note { margin: 0 2px; font-size: .82rem; }
.v2-sec-devices__guard { padding: 18px; border-radius: 20px; background: #0F172A; color: #E2E8F0; }
.v2-sec-devices__guard h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.05rem; color: #fff; }
.v2-sec-devices__guard h3 svg { color: #FBBF24; }
.v2-sec-devices__guard ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.v2-sec-devices__guard a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06);
  color: #F1F5F9; text-decoration: none; font-weight: 600; font-size: .9rem; }
.v2-sec-devices__guard a:hover, .v2-sec-devices__guard a:focus-visible { background: rgba(255, 255, 255, .12); }
.v2-sec-devices__guard a span { flex: 1; }
.v2-sec-devices__guard em { font-style: normal; font-size: .78rem; font-weight: 700; }
.v2-sec-devices__guard em.is-on { color: #6EE7B7; }
.v2-sec-devices__guard em.is-off { color: #FDBA74; }
@media (min-width: 900px) {
  .v2-sec-devices { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; column-gap: 18px; }
  .v2-sec-devices > * { grid-column: 2; }
  .v2-sec-devices__hero { grid-column: 1; grid-row: 1 / span 6; }
}

/* Écran #22 « Webhooks » (dashboard-developer.ejs, maquette Stitch « Webhooks & Télémétrie Développeur ») : tuiles de
   santé, cartes d'adresses avec interrupteur et barre de réussite, formulaire d'ajout, journal des livraisons. */
.v2-wh { display: grid; gap: 14px; margin-top: 8px; scroll-margin-top: 80px; }
.v2-wh__head h2 { margin: 6px 0 4px; font-size: clamp(1.6rem, 5vw, 2rem); line-height: 1.15; }
.v2-wh__head p { margin: 0; color: var(--color-text-muted); font-size: .92rem; max-width: 62ch; }
.v2-wh__kicker { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #9A3412; background: #FFEDD5; border: 1px solid #FED7AA; }
.v2-wh__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.v2-wh__stats > div { display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border);
  box-shadow: 0 6px 16px -14px rgba(15, 23, 42, .4); }
.v2-wh__stats dt { font-size: .74rem; font-weight: 700; color: var(--color-text-muted); }
.v2-wh__stats dd { margin: 0; font-size: 1.6rem; font-weight: 800; line-height: 1.15; }
.v2-wh__stats dd small { font-size: .9rem; font-weight: 600; color: var(--color-text-muted); }
.v2-wh__stats span { font-size: .74rem; color: var(--color-text-muted); }
.v2-wh__stats .is-ok dd { color: #047857; }
.v2-wh__stats .is-ko dd { color: #B91C1C; }
.v2-wh__label { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font-size: 1.05rem; }
.v2-wh__label span { padding: 1px 8px; border-radius: 999px; font-size: .74rem; background: var(--color-surface-2); color: var(--color-text-muted); }
.v2-wh__empty { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; border: 1.5px dashed var(--color-border-strong); background: var(--color-surface); }
.v2-wh__empty > span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%; background: var(--color-brand-soft); color: var(--color-brand); }
.v2-wh__empty p { margin: 0; font-size: .9rem; }
.v2-wh__list, .v2-wh-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.v2-wh-ep { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 8px 20px -16px rgba(15, 23, 42, .45); }
.v2-wh-ep.is-off { opacity: .78; }
.v2-wh-ep__top { display: flex; align-items: flex-start; gap: 10px; }
.v2-wh-ep__dot { flex: 0 0 10px; height: 10px; margin-top: 7px; border-radius: 50%; background: #94A3B8; }
.v2-wh-ep__dot.is-ok { background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .18); }
.v2-wh-ep__dot.is-warn { background: #F59E0B; } .v2-wh-ep__dot.is-ko { background: #EF4444; } .v2-wh-ep__dot.is-none { background: #3B82F6; }
.v2-wh-ep__name { flex: 1; min-width: 0; display: grid; gap: 4px; }
.v2-wh-ep__name strong { font-size: 1.02rem; line-height: 1.3; }
.v2-wh-ep__name code { font-size: .78rem; color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-wh-switch { position: relative; flex: 0 0 auto; width: 52px; height: 44px; cursor: pointer; }
.v2-wh-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.v2-wh-switch span { position: absolute; inset: 7px 0; border-radius: 999px; background: #CBD5E1; transition: background .2s; }
.v2-wh-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .2s; }
.v2-wh-switch input:checked + span { background: #10B981; }
.v2-wh-switch input:checked + span::after { transform: translateX(22px); }
.v2-wh-switch input:focus-visible + span { outline: 3px solid var(--color-focus, #1A56DB); outline-offset: 2px; }
.v2-wh-ep__rate { margin: 0; font-size: .8rem; font-weight: 600; }
.v2-wh-ep__rate.is-ok { color: #047857; } .v2-wh-ep__rate.is-warn { color: #B45309; } .v2-wh-ep__rate.is-ko { color: #B91C1C; } .v2-wh-ep__rate.is-none { color: var(--color-text-muted); }
.v2-wh-ep__bar { display: block; height: 6px; border-radius: 999px; background: var(--color-surface-2); overflow: hidden; }
.v2-wh-ep__bar span { display: block; height: 100%; border-radius: inherit; background: #10B981; }
.v2-wh-ep__bar.is-warn span { background: #F59E0B; } .v2-wh-ep__bar.is-ko span { background: #EF4444; }
.v2-wh-ep__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.v2-wh-ep__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.v2-wh-chip { padding: 3px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; color: var(--color-brand); background: var(--color-brand-soft); }
.v2-wh-ep__actions { display: flex; gap: 6px; }
html body .v2-wh .v2-btn.v2-btn--sm { min-height: 44px !important; height: auto !important; min-width: 44px; }
.v2-wh-ep__note { margin: 0; font-size: .8rem; color: var(--color-text-muted); }
.v2-wh-form { display: grid; gap: 12px; padding: 18px; border-radius: 22px; background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: 0 10px 26px -18px rgba(15, 23, 42, .5); }
.v2-wh-form__head { display: flex; gap: 12px; align-items: center; }
.v2-wh-form__head > span { display: grid; place-items: center; flex: 0 0 44px; height: 44px; border-radius: 14px; background: var(--color-brand-soft); color: var(--color-brand); }
.v2-wh-form__head h3 { margin: 0; font-size: 1.1rem; } .v2-wh-form__head p { margin: 2px 0 0; font-size: .8rem; color: var(--color-text-muted); }
.v2-wh-form__events { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.v2-wh-form__events legend { margin-bottom: 6px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.v2-wh-evt { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border-radius: 16px; background: var(--color-surface-2); cursor: pointer; }
.v2-wh-evt__ico { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--color-surface); color: var(--color-brand); }
.v2-wh-evt__txt { flex: 1; min-width: 0; display: grid; gap: 2px; } .v2-wh-evt__txt code { font-weight: 700; font-size: .92rem; color: var(--color-text); background: none; padding: 0; }
.v2-wh-evt__txt span { font-size: .78rem; color: var(--color-text-muted); }
.v2-wh-evt input { width: 22px; height: 22px; accent-color: var(--color-brand); }
.v2-wh-form__cta { min-height: 54px; border-radius: 999px; font-size: 1rem; background: linear-gradient(90deg, #F97316, #E11D5C) !important; border: 0 !important; box-shadow: 0 12px 26px -14px rgba(225, 29, 92, .8); }
.v2-wh-form [data-v2-wh-status][data-tone="error"] { color: #B91C1C; }
.v2-wh-secret { padding: 18px; border-radius: 20px; background: #0F172A; color: #E2E8F0; }
.v2-wh-secret h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 6px; color: #fff; }
.v2-wh-secret p { margin: 0 0 10px; font-size: .86rem; } .v2-wh-secret code { color: #FDE68A; }
.v2-wh-secret__row { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .08); }
.v2-wh-secret__row code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .8rem; }
.v2-wh-log li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
.v2-wh-log li > .v2-btn { grid-column: 2 / -1; justify-self: start; }
.v2-wh-log__code { padding: 4px 8px; border-radius: 8px; font: 700 .72rem/1.2 ui-monospace, monospace; background: #D1FAE5; color: #065F46; }
.v2-wh-log .is-ko .v2-wh-log__code { background: #FEE2E2; color: #991B1B; } .v2-wh-log .is-wait .v2-wh-log__code { background: #E0E7FF; color: #3730A3; }
.v2-wh-log li.is-ko { border-color: #FECACA; background: color-mix(in srgb, #FEE2E2 35%, var(--color-surface)); }
.v2-wh-log__main { display: grid; gap: 2px; min-width: 0; } .v2-wh-log__main span { font-size: .76rem; color: var(--color-text-muted); overflow-wrap: anywhere; }
.v2-wh-log__when { font-size: .72rem; color: var(--color-text-muted); text-align: right; }
.v2-wh__none, .v2-wh__doc { margin: 0 2px; font-size: .84rem; }
@media (min-width: 900px) {
  .v2-wh__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .v2-wh__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* #22 thème sombre : couleurs d'état éclaircies (contraste ≥ 4,5:1 sur #111827). */
html[data-theme="dark"] .v2-wh__stats .is-ok dd, html[data-theme="dark"] .v2-wh-ep__rate.is-ok { color: #6EE7B7; }
html[data-theme="dark"] .v2-wh__stats .is-ko dd, html[data-theme="dark"] .v2-wh-ep__rate.is-ko { color: #FCA5A5; }
html[data-theme="dark"] .v2-wh-ep__rate.is-warn { color: #FCD34D; }
html[data-theme="dark"] .v2-wh-log li.is-ko { background: rgba(239, 68, 68, .12); border-color: rgba(252, 165, 165, .35); }
html[data-theme="dark"] .v2-wh__kicker { color: #FDBA74; background: rgba(249, 115, 22, .14); border-color: rgba(253, 186, 116, .3); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .v2-wh__stats .is-ok dd, html:not([data-theme="light"]) .v2-wh-ep__rate.is-ok { color: #6EE7B7; }
  html:not([data-theme="light"]) .v2-wh__stats .is-ko dd, html:not([data-theme="light"]) .v2-wh-ep__rate.is-ko { color: #FCA5A5; }
  html:not([data-theme="light"]) .v2-wh-ep__rate.is-warn { color: #FCD34D; }
  html:not([data-theme="light"]) .v2-wh-log li.is-ko { background: rgba(239, 68, 68, .12); border-color: rgba(252, 165, 165, .35); }
  html:not([data-theme="light"]) .v2-wh__kicker { color: #FDBA74; background: rgba(249, 115, 22, .14); border-color: rgba(253, 186, 116, .3); }
}

/* #14 : la ligne d'état reste annoncée aux lecteurs d'écran ; visuellement, le bandeau d'accueil la remplace. */
.library-status:not(:empty) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.library-grid + .library-quota { margin-top: 18px; }

/* Écran #14 « Dossiers » — dimensions RELEVÉES dans le HTML du prototype Stitch (écran db0db69802d9462fbe49725db3e3f128,
   jetons : headline-xl-mobile 26/34 800, headline-sm 16/24 600, label-lg 14/20, label-md 12/16, label-sm 10/14,
   body-sm 12/18 ; espacements space-lg 24 px, margin 16 px ; rayons lg 32 px, 2xl 16 px). Ne pas grossir à l'œil. */
.v2-dash__head:has(.library-header-actions) { flex-wrap: wrap; gap: 8px; }
.v2-dash__head:has(.library-header-actions) h1 { font-size: 1.25rem; }
.library-header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.library-header-actions .v2-btn { min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: .8125rem; }
@media (max-width: 599px) {
  .library-header-actions [data-new-folder] { display: none; }
  .v2-dash__head:has(.library-header-actions) .v2-muted { display: none; }
}
.library-hero { position: relative; overflow: hidden; isolation: isolate; display: grid; gap: 0; margin: 4px 0 4px; padding: 24px; border-radius: 32px; color: #fff;
  background: linear-gradient(135deg, #E11D5C 0%, #E93B4E 50%, #F97316 100%); box-shadow: 0 10px 25px -5px rgba(225, 29, 92, .35); }
.library-hero__shape { position: absolute; z-index: -1; border-radius: 50%; background: rgba(255, 255, 255, .1); filter: blur(16px); }
.library-hero__shape--a { width: 144px; height: 144px; right: -32px; top: -32px; }
.library-hero__shape--b { width: 112px; height: 112px; left: 40%; bottom: -48px; background: rgba(255, 255, 255, .08); }
.library-hero__kicker { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .9); }
.library-hero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: library-pulse 2s ease-in-out infinite; }
.library-hero__count { margin: 4px 0 0; font-family: "Plus Jakarta Sans", var(--font-family, sans-serif); font-size: 26px; line-height: 34px; font-weight: 800; letter-spacing: -.02em; }
.library-hero__sub { margin: 2px 0 0; font-size: 12px; line-height: 18px; font-weight: 500; color: rgba(255, 255, 255, .9); }
.library-hero__mood { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: 8px 0 12px; padding: 6px 12px; border-radius: 999px;
  font-size: 12px; line-height: 18px; font-weight: 500; background: rgba(0, 0, 0, .15); border: 1px solid rgba(255, 255, 255, .15); max-width: 100%; text-wrap: pretty; }
.library-hero__mood svg { flex: 0 0 16px; width: 16px; height: 16px; }
.library-hero__cta { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; padding: 0 20px; border: 0; border-radius: 999px;
  background: #fff; color: #BE123C; font: inherit; font-size: 14px; line-height: 20px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px -4px rgba(0, 0, 0, .25); transition: transform .15s ease; }
.library-hero__cta svg { width: 20px; height: 20px; }
.library-hero__cta:active { transform: scale(.98); }
.library-hero__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (min-width: 600px) { .library-hero__cta { width: auto; justify-self: start; } }
.library-toolbar { display: block; margin: 16px 0 4px; min-width: 0; }
.library-toolbar select.v2-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.library-chips { display: flex; gap: 8px; max-width: 100%; min-width: 0; overflow-x: auto; padding: 6px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.library-chips::-webkit-scrollbar { display: none; }
/* Pastille visuelle de 32 px (Stitch px-4 py-2, label-md) ; zone de toucher étendue à 44 px par le pseudo-élément. */
.library-chip { position: relative; flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text-muted); font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.library-chip::after { content: ""; position: absolute; inset: -6px -2px; }
.library-chip:active { transform: scale(.95); }
.library-chip[aria-pressed="true"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-surface); box-shadow: 0 1px 2px rgba(15, 23, 42, .15); }
.library-chip:focus-visible { outline: 3px solid var(--color-focus, #1A56DB); outline-offset: 2px; }
.library-grid:has(.library-tile), .library-grid:has(.library-empty) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
@media (min-width: 900px) { .library-grid:has(.library-tile) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .library-grid:has(.library-tile) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.library-card.library-tile { --tile: var(--folder-color, var(--kind-color, #E11D5C)); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 0;
  padding: 14px; border: 1px solid color-mix(in srgb, var(--tile) 12%, #fff); border-top: 1px solid color-mix(in srgb, var(--tile) 12%, #fff); border-radius: 16px;
  background: color-mix(in srgb, var(--tile) 5%, #fff); box-shadow: 0 4px 16px -2px color-mix(in srgb, var(--tile) 8%, transparent);
  transition: box-shadow .15s ease, transform .15s ease; animation: library-tile-in .35s ease both; animation-delay: calc(var(--i, 0) * 40ms); }
.library-tile[data-kind="video"] { --kind-color: #7C3AED; } .library-tile[data-kind="music"] { --kind-color: #0284C7; }
.library-tile[data-kind="photo"] { --kind-color: #EA580C; } .library-tile[data-kind="document"] { --kind-color: #2563EB; }
.library-tile[data-kind="archive"] { --kind-color: #475569; } .library-tile[data-kind="general"] { --kind-color: #E11D5C; }
.library-tile:hover { box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--tile) 30%, transparent); }
.library-tile:active { transform: scale(.98); }
.library-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.library-tile__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: var(--tile); background: color-mix(in srgb, var(--tile) 14%, #fff);
  box-shadow: inset 0 2px 4px rgba(15, 23, 42, .05); }
.library-tile__icon svg { width: 26px; height: 26px; }
.library-tile h2 { margin: 12px 0 0; font-family: "Plus Jakarta Sans", var(--font-family, sans-serif); font-size: 16px; line-height: 22px; font-weight: 600; color: var(--color-text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.library-tile__meta { margin: 12px 0 0; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--tile) 18%, #fff); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; color: var(--color-text-muted); }
.library-tile__foot { margin: 2px 0 0; padding: 0; border: 0; font-size: 12px; line-height: 18px; color: var(--color-text-muted); }
.library-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .04em; }
.library-badge.is-shared { color: #065F46; background: #ECFDF5; border: 1px solid rgba(167, 243, 208, .6); }
.library-badge.is-private { color: var(--color-text-muted); background: #fff; border: 1px solid var(--color-border); }
.library-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 12px; padding: 28px 16px; border: 1.5px dashed color-mix(in srgb, #E11D5C 35%, var(--color-border));
  border-radius: 16px; text-align: center; color: var(--color-text-muted); background: #FFF5F7; }
.library-empty__art { position: relative; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 24px; color: #fff;
  background: linear-gradient(135deg, #E11D5C, #F97316); box-shadow: 0 12px 22px -12px rgba(225, 29, 92, .8); }
.library-empty__art svg { width: 36px; height: 36px; }
.library-empty__art i { position: absolute; border-radius: 50%; background: #FDBA74; }
.library-empty__art i:first-of-type { width: 12px; height: 12px; top: -5px; right: -3px; } .library-empty__art i:last-of-type { width: 8px; height: 8px; bottom: 4px; left: -7px; background: #FDA4AF; }
.library-empty p { margin: 0; max-width: 32ch; font-size: 14px; line-height: 22px; } .library-empty strong { display: block; color: var(--color-text); font-size: 16px; line-height: 24px; }
@keyframes library-tile-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes library-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }
/* Thème sombre : tuiles et badges sur la surface sombre (contraste ≥ 4,5:1). */
html[data-theme="dark"] .library-card.library-tile { background: color-mix(in srgb, var(--tile) 10%, var(--color-surface)); border-color: color-mix(in srgb, var(--tile) 25%, var(--color-border)); }
html[data-theme="dark"] .library-tile__icon { background: color-mix(in srgb, var(--tile) 25%, var(--color-surface)); color: #fff; }
html[data-theme="dark"] .library-tile__meta { border-top-color: var(--color-border); }
html[data-theme="dark"] .library-badge.is-shared { color: #6EE7B7; background: rgba(16, 185, 129, .14); border-color: rgba(110, 231, 183, .3); }
html[data-theme="dark"] .library-badge.is-private, html[data-theme="dark"] .library-empty { background: var(--color-surface); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .library-card.library-tile { background: color-mix(in srgb, var(--tile) 10%, var(--color-surface)); border-color: color-mix(in srgb, var(--tile) 25%, var(--color-border)); }
  html:not([data-theme="light"]) .library-tile__icon { background: color-mix(in srgb, var(--tile) 25%, var(--color-surface)); color: #fff; }
  html:not([data-theme="light"]) .library-tile__meta { border-top-color: var(--color-border); }
  html:not([data-theme="light"]) .library-badge.is-shared { color: #6EE7B7; background: rgba(16, 185, 129, .14); border-color: rgba(110, 231, 183, .3); }
  html:not([data-theme="light"]) .library-badge.is-private, html:not([data-theme="light"]) .library-empty { background: var(--color-surface); }
}
@media (prefers-reduced-motion: reduce) { .library-tile, .library-hero__kicker::before { animation: none; } .library-tile, .library-chip { transition: none; } .library-tile:active, .library-hero__cta:active, .library-chip:active { transform: none; } }
/* #14 sous-dossiers : icône SVG colorée selon le type (remplace les émojis). */
.library-child-card h4 { display: flex; align-items: center; gap: 10px; }
.library-child-card__icon { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 12px; color: #fff; background: var(--kind-color, #E11D5C); }
.library-child-card__icon svg { width: 20px; height: 20px; }
.library-child-card[data-kind="video"] { --kind-color: #7C3AED; } .library-child-card[data-kind="music"] { --kind-color: #0284C7; }
.library-child-card[data-kind="photo"] { --kind-color: #EA580C; } .library-child-card[data-kind="document"] { --kind-color: #2563EB; }
.library-child-card[data-kind="archive"] { --kind-color: #475569; }
.library-chips-head { display: flex; justify-content: space-between; margin: 0 2px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--color-text-muted); }
.library-chips-head span:last-child { font-weight: 500; }
/* #14 ajustements à l'échelle Stitch : pastille 34 px (une règle globale imposait 38 px), carte des limites en
   jetons label-md / body-sm. */
html body .library-chip { min-height: 0 !important; height: auto; }
.library-grid + .library-quota { padding: 20px; border-radius: 16px; gap: 10px; }
.library-quota h2 { font-size: 16px; line-height: 24px; }
.library-quota__plan { font-size: 10px; line-height: 14px; letter-spacing: .04em; font-weight: 700; }
.library-quota .library-gauge__head, .library-quota .library-gauge__head * { font-size: 12px; line-height: 16px; }
.library-quota__help { font-size: 12px !important; line-height: 18px; }
.library-quota [data-quota-upgrade] { min-height: 40px; font-size: 12px; }

/* Écran #16 « Profil » — dimensions RELEVÉES dans le HTML Stitch « Profil & Réglages (Android) »
   (écran 57a10f9feaf649cd932b9048d89e23d4) : carte p-space-lg 24 px, rayon lg 32 px, avatar 64 px en dégradé,
   nom headline-sm 16/24 600, pastilles px-3 py-1.5 label-md 12 px, tuiles rounded 16 px p-3, icône 32/18 px,
   valeur headline-sm 16 px, libellé label-sm 10 px ; déconnexion h-12 pilule rouge doux. */
@media (max-width: 599px) { .v2-dash__head:has(+ .v2-dash-section-tabs) .v2-muted, body:has(.v2-pf-card) .v2-dash__head .v2-muted { display: none; } }
body:has(.v2-pf-card) .v2-dash__head h1 { font-size: 20px; line-height: 28px; }
.v2-pf-card { position: relative; overflow: hidden; padding: 24px !important; border-radius: 32px !important; box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.v2-pf-card::before { content: ""; position: absolute; right: -48px; top: -48px; width: 144px; height: 144px; border-radius: 50%; background: rgba(225, 29, 92, .06); filter: blur(24px); pointer-events: none; }
.v2-pf-card .v2-profile__id { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.v2-pf-card .v2-profile__id > div { min-width: 0; flex: 1; }
.v2-pf-card .v2-avatar, .v2-pf-card .udc-avatar, .v2-pf-card .v2-profile__id > :first-child:not(div) { flex: 0 0 64px; width: 64px !important; height: 64px !important; border-radius: 50% !important;
  background: linear-gradient(45deg, #E11D5C, #F97316) !important; color: #fff !important; font-size: 20px; font-weight: 800; letter-spacing: .05em; box-shadow: 0 4px 10px -2px rgba(225, 29, 92, .45); }
.v2-pf-card h2.v2-card__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-pf-card .v2-profile__email { margin: 0; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.v2-pf-card .v2-profile__handle { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; line-height: 16px; }
.v2-pf-card .v2-profile__handle .v2-btn { min-height: 36px; padding: 6px 12px; border-radius: 999px; font-size: 12px; }
.v2-pf-card .v2-profile__handle .v2-btn::after { content: ""; position: absolute; inset: -4px 0; }
.v2-pf-card .v2-profile__handle .v2-btn { position: relative; }
.v2-pf-card > .v2-profile__id .v2-muted:not(.v2-profile__email) { font-size: 12px; line-height: 18px; }
.v2-pf-card .v2-portal__badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.v2-pf-card .v2-portal__badges .v2-badge { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: 12px; line-height: 16px; font-weight: 600;
  background: var(--color-surface-2); color: var(--color-text); border: 0; }
.v2-pf-card .v2-portal__badges .v2-badge:first-child { background: #FFE4EC; color: #BE123C; }
.v2-pf-card > p.v2-muted { margin: 12px 0 0; font-size: 12px; line-height: 18px; }
.v2-pf-stats { margin: 0; }
.v2-pf-stats dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0; }
.v2-pf-stats dl > div { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 12px 4px; border-radius: 16px; text-align: center;
  background: var(--color-surface); box-shadow: 0 1px 3px rgba(15, 23, 42, .08); }
.v2-pf-stats__ico { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 4px; border-radius: 50%; color: #E11D5C; background: #FFE4EC; }
.v2-pf-stats__ico svg { width: 18px; height: 18px; }
.v2-pf-stats__ico.is-ok { color: #047857; background: #D1FAE5; } .v2-pf-stats__ico.is-violet { color: #7C3AED; background: #EDE9FE; } .v2-pf-stats__ico.is-blue { color: #2563EB; background: #DBEAFE; }
.v2-pf-stats dd { margin: 0; font-family: "Plus Jakarta Sans", var(--font-family, sans-serif); font-size: 16px; line-height: 24px; font-weight: 600; color: var(--color-text); }
.v2-pf-stats dt { font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .04em; color: var(--color-text-muted); overflow-wrap: anywhere; }
body:has(.v2-pf-card) .v2-dash__main > .v2-card:not(.v2-pf-card) { border-radius: 32px; padding: 24px; }
body:has(.v2-pf-card) .v2-dash__main > .v2-card:not(.v2-pf-card) .v2-card__title { font-size: 16px; line-height: 24px; }
body:has(.v2-pf-card) .v2-dash__main > .v2-card:not(.v2-pf-card) dt { font-size: 12px; line-height: 16px; }
body:has(.v2-pf-card) .v2-dash__main > .v2-card:not(.v2-pf-card) dd { font-size: 14px; line-height: 22px; }
body:has(.v2-pf-card) .v2-dash__main > .v2-card:not(.v2-pf-card) p { font-size: 12px; line-height: 18px; }
.v2-pf-logout { margin: 8px 0 0; }
.v2-pf-logout .v2-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border-radius: 999px; border: 0 !important;
  background: #FFDAD6 !important; color: #BA1A1A !important; font-size: 14px; line-height: 20px; font-weight: 600; }
.v2-pf-logout .v2-btn svg { width: 20px; height: 20px; }
html[data-theme="dark"] .v2-pf-stats__ico { background: rgba(225, 29, 92, .2); color: #FDA4AF; }
html[data-theme="dark"] .v2-pf-stats__ico.is-ok { background: rgba(16, 185, 129, .18); color: #6EE7B7; } html[data-theme="dark"] .v2-pf-stats__ico.is-violet { background: rgba(124, 58, 237, .22); color: #C4B5FD; } html[data-theme="dark"] .v2-pf-stats__ico.is-blue { background: rgba(37, 99, 235, .22); color: #93C5FD; }
html[data-theme="dark"] .v2-pf-card .v2-portal__badges .v2-badge:first-child { background: rgba(225, 29, 92, .2); color: #FDA4AF; }
html[data-theme="dark"] .v2-pf-logout .v2-btn { background: rgba(186, 26, 26, .2) !important; color: #FCA5A5 !important; }

/* Écran #18 « Équipe » — mesures RELEVÉES dans le HTML Stitch « Équipe & Collaborateurs »
   (écran 82317da72f604d19bdd694689633d317) : tuiles rounded 16 px p-3, icône 20 px, valeur headline-md 20 px,
   libellé label-sm 10 px ; cartes rounded-lg 32 px p-space-md 16 px, titres headline-sm 16/24 ; pastilles px-4 py-2
   label-md 12 px, active foncée. Bandeau d'équipe : même émotion que les écrans #14/#16 (dégradé framboise → orange). */
@media (max-width: 599px) { body:has(#tm-workspace) .v2-dash__head .v2-muted { display: none; } }
body:has(#tm-workspace) .v2-dash__head h1 { font-size: 20px; line-height: 28px; }
.udc-team__company.v2-card { position: relative; overflow: hidden; isolation: isolate; padding: 20px !important; border: 0 !important; border-radius: 32px !important; color: #fff;
  background: linear-gradient(135deg, #E11D5C 0%, #E93B4E 50%, #F97316 100%) !important; box-shadow: 0 10px 25px -5px rgba(225, 29, 92, .35); }
.udc-team__company.v2-card::before { content: ""; position: absolute; z-index: -1; right: -32px; top: -32px; width: 144px; height: 144px; border-radius: 50%; background: rgba(255, 255, 255, .12); filter: blur(16px); }
.udc-team__company .v2-card__title { color: #fff; font-family: "Plus Jakarta Sans", var(--font-family, sans-serif); font-size: 20px; line-height: 28px; font-weight: 800; }
.udc-team__company .v2-muted, .udc-team__company .udc-team__companytext p { color: rgba(255, 255, 255, .9) !important; font-size: 12px; line-height: 18px; }
.udc-team__company .v2-badge { background: rgba(255, 255, 255, .22) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .3); font-size: 10px; line-height: 14px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.udc-team__company .udc-team__logo .udc-avatar { border-color: rgba(255, 255, 255, .9); background: #fff; color: #E11D5C; }
.udc-team__company .udc-team__faces .udc-avatar { border-color: rgba(255, 255, 255, .85); }
.udc-team__company .udc-team__more-faces { color: rgba(255, 255, 255, .9); }
.udc-team__stats { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; margin: 12px 0 4px; }
.udc-team__stats:has(#tm-count-invitations-card:not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.udc-team__stats:has(#tm-count-invitations-card:not([hidden])) .udc-team__stat { padding: 10px 8px !important; }
.udc-team__stat { display: flex !important; flex-direction: column; align-items: flex-start; gap: 0 !important; padding: 12px !important; border: 0 !important; border-radius: 16px !important;
  background: var(--color-surface) !important; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, .05); min-width: 0; }
.udc-team__stat-ico { display: inline-grid; place-items: center; color: #059669; font-style: normal; }
.udc-team__stat-ico svg { width: 20px; height: 20px; }
.udc-team__stat:nth-child(2) .udc-team__stat-ico { color: #2563EB; } .udc-team__stat:nth-child(3) .udc-team__stat-ico { color: #E11D5C; } .udc-team__stat:nth-child(4) .udc-team__stat-ico { color: #D97706; }
.udc-team__stat strong { order: 2; margin-top: 8px; font-family: "Plus Jakarta Sans", var(--font-family, sans-serif); font-size: 20px !important; line-height: 28px; font-weight: 700; color: var(--color-text); }
.udc-team__stat span { order: 3; font-size: 10px !important; line-height: 14px; font-weight: 700; letter-spacing: .04em; color: var(--color-text-muted); }
html body.v2-dash-body .v2-dash__main .udc-tabs { gap: 8px; padding: 4px 2px 8px; border-bottom: 0; }
.udc-tabs .udc-tabs__tab { position: relative; flex: 0 0 auto; min-height: 0; padding: 8px 16px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface);
  color: var(--color-text-muted); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; box-shadow: none; }
.udc-tabs .udc-tabs__tab::after { content: ""; position: absolute; inset: -6px -2px; }
.udc-tabs .udc-tabs__tab svg { width: 16px; height: 16px; }
.udc-tabs .udc-tabs__tab[aria-selected="true"] { background: var(--color-text); border-color: var(--color-text); color: var(--color-surface); }
.udc-tabs .udc-tabs__tab[aria-selected="true"]::before { display: none; }
#tm-workspace .v2-card:not(.udc-team__company), #tm-create.v2-card { border-radius: 32px; padding: 16px; box-shadow: 0 4px 20px -2px rgba(15, 23, 42, .05); }
#tm-workspace .v2-card:not(.udc-team__company) .v2-card__title, #tm-workspace .v2-card:not(.udc-team__company) h2, #tm-create .v2-card__title { font-size: 16px; line-height: 24px; }
#tm-workspace .v2-card .v2-muted { font-size: 12px; line-height: 18px; }
body:has(#tm-workspace:not([hidden])) #tm-create { margin-top: 24px; }

/* #18 sélecteur « Équipe affichée » : rangée compacte (libellé 12 px, liste 40 px) au lieu d'une grande carte. */
#tm-select-card.v2-card { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px !important; border-radius: 16px !important; box-shadow: none; }
#tm-select-card label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--color-text-muted); }
#tm-select-card select { flex: 1 1 160px; min-height: 40px; padding: 6px 12px; border-radius: 999px; font-size: 14px; }

/* #18 — cartes de membre, filtres, invitations et bouton flottant d'après la maquette Stitch d'origine
   « Équipe & Collaborateurs » (82317da72f604d19bdd694689633d317) : cartes rounded-lg 32 px p-space-md 16 px,
   nom headline-sm 16 px, pastille de rôle 10 px, encadré « Rôle actuel » surface-soft rounded 16 px p-3, filtres
   px-4 py-2 label-md 12 px (actif foncé), invitation à liseré orange avec icône 48 px. */
#tm-members { display: grid; gap: 12px; padding: 0; }
#tm-members li.udc-member { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 12px; padding: 16px; border: 0; border-radius: 32px;
  background: var(--color-surface); box-shadow: 0 4px 20px -2px rgba(15, 23, 42, .05); }
#tm-members li.udc-member[hidden] { display: none; }
#tm-members li.udc-member > .udc-avatar, #tm-members li.udc-member > :first-child:not(.v2-dash-list__main) { width: 48px; height: 48px; font-size: 16px; }
#tm-members .v2-dash-list__main { min-width: 0; }
#tm-members .v2-dash-list__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-family: "Plus Jakarta Sans", var(--font-family, sans-serif); font-size: 16px; line-height: 24px; font-weight: 600; }
#tm-members .v2-dash-list__main .v2-muted { margin: 0; font-size: 12px; line-height: 18px; overflow-wrap: anywhere; }
.udc-member__role-pill { padding: 2px 8px; border-radius: 999px; font-size: 10px; line-height: 14px; font-weight: 700; letter-spacing: .04em; color: #BE123C; background: #FFE4EC; }
.udc-member__rolebox { grid-column: 1 / -1; display: grid; gap: 6px; margin-top: 8px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--color-surface-2) 60%, transparent); }
.udc-member__rolehead { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.udc-member__rolelabel { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--color-text); }
.udc-member__rolehead select { min-height: 36px; padding: 4px 32px 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.udc-member__rights { margin: 0; font-size: 12px; line-height: 18px; color: var(--color-text-muted); }
#tm-members li.udc-member > .v2-dash-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
#tm-members li.udc-member > .v2-dash-actions .v2-btn { min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 12px; }
.udc-member-filters { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: none; }
.udc-member-filters::-webkit-scrollbar { display: none; }
.udc-member-filter { position: relative; flex: 0 0 auto; padding: 8px 16px; border: 0; border-radius: 999px; background: var(--color-surface); color: var(--color-text);
  font: inherit; font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .02em; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); cursor: pointer; }
.udc-member-filter::after { content: ""; position: absolute; inset: -6px -2px; }
.udc-member-filter[aria-pressed="true"] { background: var(--color-text); color: var(--color-surface); }
.udc-member-filter:focus-visible { outline: 3px solid var(--color-focus, #1A56DB); outline-offset: 2px; }
#tm-panel-membres > .v2-card:has(#tm-members) { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
#tm-panel-membres > .v2-card:has(#tm-members) > .v2-card__title { margin: 4px 2px 8px; font-size: 12px !important; line-height: 16px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
#tm-invitations { display: grid; gap: 10px; padding: 0; }
#tm-invitations li { display: grid; gap: 8px; padding: 14px 14px 14px 16px; border: 0; border-left: 4px solid #F59E0B; border-radius: 24px; background: var(--color-surface); box-shadow: 0 4px 20px -2px rgba(15, 23, 42, .05); }
#tm-invitations li .v2-dash-list__title { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
#tm-invitations li .v2-muted { font-size: 12px; color: #B45309; font-weight: 600; }
#tm-invitations li .v2-dash-actions { display: flex; justify-content: flex-end; gap: 8px; }
#tm-invitations li .v2-btn { min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 12px; }
#tm-invite-card { border-radius: 32px !important; }
#tm-invite-card .v2-dash-inline-form { display: grid; gap: 10px; }
#tm-invite-card .v2-input, #tm-invite-card .v2-select { min-height: 48px; border-radius: 999px; padding: 0 16px; font-size: 14px; }
#tm-invite-card button[type="submit"] { min-height: 48px; border-radius: 999px; }
.udc-team-fab { position: fixed; right: 16px; bottom: calc(136px + env(safe-area-inset-bottom)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 20px;
  border: 0; border-radius: 999px; background: #E11D5C; color: #fff; font: inherit; font-size: 14px; font-weight: 700; box-shadow: 0 12px 24px -10px rgba(225, 29, 92, .8); cursor: pointer; }
.udc-team-fab[hidden] { display: none; }
.udc-team-fab svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .udc-team-fab { display: none; } }
html[data-theme="dark"] .udc-member__role-pill { background: rgba(225, 29, 92, .2); color: #FDA4AF; }
html[data-theme="dark"] #tm-invitations li .v2-muted { color: #FCD34D; }
/* #18 retouches Stitch : sélecteur de rôle en pastille, invitations vides en texte simple, rôle + bouton côte à côte. */
#tm-members .udc-member__rolehead select.v2-select, #tm-members .udc-member__rolehead select { flex: 0 0 auto; width: auto !important; max-width: 60%; min-height: 36px !important; height: 36px;
  padding: 0 32px 0 14px !important; border-radius: 999px !important; font-size: 13px !important; font-weight: 600; }
#tm-members .udc-member__rolehead .v2-badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; }
#tm-invitations li:not(:has(.v2-dash-actions)) { padding: 4px 2px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
#tm-invitations li:not(:has(.v2-dash-actions)) .v2-dash-list__title { font-size: 13px; font-weight: 500; color: var(--color-text-muted); }
#tm-invite-card .v2-dash-inline-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
#tm-invite-card .v2-dash-inline-form > .v2-field:first-child { grid-column: 1 / -1; }
#tm-invite-card .v2-dash-inline-form button[type="submit"] { padding: 0 20px; }

/* 18/11/2026 : « 604,1 Ko » paraissait collé (« 604,1Ko ») avec le resserrement de la police d'affichage. */
.udc-donut__hole b, .udc-donut__top strong { word-spacing: .14em; }
