/* ══ ACADÉMIE : SUIVI DES FORMATIONS PAR LE CABINET (2026-10-12, lot 4) ═══════════════════════════════════════════════════════
   • acab- : dans la fenêtre de l'Académie (Shared/AcademieCabinet.razor) : parcours d'intégration assigné, marque des notions
     assignées, interrupteur « Partager ma progression avec mon cabinet ». Même grammaire que css/academie.css.
   • epf- : l'onglet « Formation » de l'Espace pro (Pages/EspaceProFormation.razor), dans une carte .pro-card : en-tête compact
     des consoles (titre, vues à droite), tableau ; au téléphone (≤ 760 px) chaque ligne devient une fiche.
   • Thèmes clair et sombre, Mat, Papier, Compact ; cibles de 44 px au téléphone ; animations coupées si demandé.
   ═══════════════════════════════════════════════════════════════════════════════════════════════════════════════════ */

/* ── Parcours d'intégration (fenêtre de l'Académie) ── */
.acab-parcours { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 12px; padding: 12px 14px; border-radius: 14px;
                 border: 1px solid color-mix(in srgb, var(--pal-6, #7c6cf0) 45%, transparent);
                 background: color-mix(in srgb, var(--pal-6, #7c6cf0) 10%, var(--surf-1, rgba(255,255,255,.03))); }
html[data-theme="light"] .acab-parcours { background: color-mix(in srgb, var(--pal-6, #7c6cf0) 7%, #fff); border-color: color-mix(in srgb, var(--pal-6, #7c6cf0) 40%, #fff); }
.acab-parc-ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
                background: color-mix(in srgb, var(--pal-6, #7c6cf0) 20%, transparent); color: var(--tx1, #eafdff); }
html[data-theme="light"] .acab-parc-ic { color: #2b2170; }
.acab-parc-tx { flex: 1 1 auto; min-width: 0; display: grid; gap: 6px; }
.acab-parc-t { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.acab-parc-sous { margin: 0; font-size: 12.5px; color: var(--tx2, #c2cdd6); }
html[data-theme="light"] .acab-parc-sous { color: #24343e; }
.acab-barre { height: 5px; border-radius: 3px; background: var(--o8, rgba(255,255,255,.08)); overflow: hidden; max-width: 420px; }
html[data-theme="light"] .acab-barre { background: rgba(15, 38, 56, .1); }
.acab-barre i { display: block; height: 100%; border-radius: 3px; background: var(--pal-6, var(--brand, #00B1CF)); }
.acab-parc-notions { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.acab-puce { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 10px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600;
             color: var(--tx1, #eafdff); background: transparent; border: 1px solid color-mix(in srgb, var(--pal-6, #7c6cf0) 50%, transparent); cursor: pointer; }
.acab-puce:hover { background: color-mix(in srgb, var(--pal-6, #7c6cf0) 16%, transparent); }
.acab-puce.is-fait { color: var(--st-green, #34d399); border-color: color-mix(in srgb, var(--st-green, #34d399) 45%, transparent); }
.acab-puce.is-ferme { cursor: default; color: var(--mut1, #8aa0ad); border-style: dashed; border-color: var(--o20, rgba(255,255,255,.2)); }
.acab-puce.is-ferme:hover { background: transparent; }
html[data-theme="light"] .acab-puce { color: #10212b; }
html[data-theme="light"] .acab-puce.is-fait { color: #047857; border-color: rgba(4, 120, 87, .4); }
html[data-theme="light"] .acab-puce.is-ferme { color: #4b5d68; border-color: rgba(15, 38, 56, .25); }
.acab-puce:focus-visible { outline: 2px solid var(--anneau-focus, var(--brand, #00B1CF)); outline-offset: 2px; }

/* ── Marque d'une notion assignée : un liseré et un drapeau, sans toucher au bouton ── */
.aca-notions > li { position: relative; }
.acab-marque { position: absolute; inset: 0; border-radius: 9px; pointer-events: none;
               box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--pal-6, #7c6cf0) 70%, transparent); }
.acab-marque-f { position: absolute; top: -6px; right: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
                 background: var(--pal-6, #7c6cf0); color: #fff; box-shadow: 0 0 0 2px var(--surf-1, #0d222c); }
.acab-marque-f svg { width: 10px; height: 10px; }
html[data-theme="light"] .acab-marque-f { box-shadow: 0 0 0 2px #f6f9fa; }

/* ── Partage avec le cabinet (pied du parcours) ── */
.acab-partage { display: grid; gap: 6px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--o8, rgba(255,255,255,.08));
                background: var(--surf-1, rgba(255,255,255,.03)); }
html[data-theme="light"] .acab-partage { border-color: rgba(15, 38, 56, .12); background: #f6f9fa; }
.acab-inter { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; cursor: pointer; font-size: 13.5px; font-weight: 650; position: relative; }
.acab-inter input { position: absolute; opacity: 0; width: 40px; height: 22px; margin: 0; cursor: pointer; }
.acab-glissiere { flex: 0 0 auto; position: relative; width: 40px; height: 22px; border-radius: 999px; background: var(--o20, rgba(255,255,255,.2)); transition: background .15s; }
.acab-glissiere::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.acab-inter input:checked + .acab-glissiere { background: var(--brand, #00B1CF); }
.acab-inter input:checked + .acab-glissiere::after { transform: translateX(18px); }
.acab-inter input:focus-visible + .acab-glissiere { outline: 2px solid var(--anneau-focus, var(--brand, #00B1CF)); outline-offset: 2px; }
html[data-theme="light"] .acab-glissiere { background: rgba(15, 38, 56, .28); }
html[data-motion="reduites"] :is(.acab-glissiere, .acab-glissiere::after) { transition: none; }
@media (prefers-reduced-motion: reduce) { :is(.acab-glissiere, .acab-glissiere::after) { transition: none; } }
.acab-partage-d { margin: 0; max-width: 90ch; font-size: 12.5px; line-height: 1.5; color: var(--tx2, #c2cdd6); }
html[data-theme="light"] .acab-partage-d { color: #24343e; }
.acab-case { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; cursor: pointer; }
.acab-case input { width: 16px; height: 16px; accent-color: var(--brand, #00B1CF); }
.acab-etat { margin: 0; font-size: 12px; color: var(--mut1, #8aa0ad); }
html[data-theme="light"] .acab-etat { color: #4b5d68; }

html[data-style="mat"] :is(.acab-partage) { background: var(--mt-carte-2) !important; border-color: var(--mt-trait) !important; }
html[data-papier] :is(.acab-parcours, .acab-partage, .acab-puce) { border-radius: 4px !important; }
html[data-papier] .acab-parc-t { font-family: var(--pp-serif); }
html[data-density="compact"] :is(.acab-parcours, .acab-partage) { padding: 10px 12px; }
@media (max-width: 640px) {
    .acab-parcours { flex-direction: column; gap: 8px; }
    .acab-puce, .acab-inter, .acab-case { min-height: 44px; }
}

/* ══ ESPACE PRO · FORMATION ══════════════════════════════════════════════════════════════════════════════════════════════ */
.epf-root { color: var(--tx1, #e8eef2); min-width: 0; }
.epf-tete { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; padding-bottom: 11px; margin-bottom: 10px; border-bottom: 1px solid var(--o10, rgba(255,255,255,.10)); }
html[data-theme="light"] .epf-tete { border-bottom-color: rgba(15, 38, 56, .12); }
.epf-ic { display: inline-grid; place-items: center; color: var(--brand-strong, var(--brand, #00B1CF)); }
.epf-titre { margin: 0; font-size: 15px; font-weight: 650; }
.epf-seg { display: inline-flex; margin-left: auto; border: 1px solid var(--o14, rgba(255,255,255,.16)); border-radius: 9px; overflow: hidden; flex-shrink: 0; }
.epf-seg button { display: inline-flex; align-items: center; gap: 6px; font-family: inherit; font-size: 12px; font-weight: 600; padding: 5px 12px; border: 0; background: transparent; color: var(--sl1, var(--mut1, #9bb3bd)); cursor: pointer; }
.epf-seg button + button { border-left: 1px solid var(--o10, rgba(255,255,255,.1)); }
.epf-seg button.on { background: var(--brand, #00B1CF); color: #04222a; }
html[data-theme="light"] .epf-seg { border-color: rgba(15, 38, 56, .2); }
.epf-nb { font-variant-numeric: tabular-nums; opacity: .8; }
.epf-actions { display: inline-flex; gap: 6px; flex-shrink: 0; }
.epf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid transparent;
           background: var(--brand, #00B1CF); color: #04222a; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer; white-space: nowrap; }
.epf-btn:hover { filter: brightness(1.06); }
.epf-btn:disabled { opacity: .45; cursor: default; filter: none; }
.epf-btn.ghost { background: transparent; color: var(--tx1, #e8eef2); border-color: var(--o20, rgba(255,255,255,.2)); }
.epf-btn.ghost:hover { background: var(--o6, rgba(255,255,255,.06)); }
html[data-theme="light"] .epf-btn.ghost { color: #10212b; border-color: rgba(15, 38, 56, .24); }
.epf-btn.sm { min-height: 30px; padding: 0 10px; font-size: 12px; }
.epf-btn:focus-visible, .epf-seg button:focus-visible { outline: 2px solid var(--anneau-focus, var(--brand, #00B1CF)); outline-offset: 2px; }
.epf-intro { margin: 0 0 12px; max-width: 95ch; font-size: 12.5px; line-height: 1.5; color: var(--sl1, var(--mut1, #9bb3bd)); }
.epf-err { margin: 0 0 10px; font-size: 12.5px; color: var(--st-red, #f87171); }
html[data-theme="light"] .epf-err { color: #b42318; }
.epf-msg { margin: 0 0 10px; font-size: 12.5px; color: var(--st-green, #34d399); }
html[data-theme="light"] .epf-msg { color: #047857; }
.epf-vide { margin: 8px 0; font-size: 13px; color: var(--sl1, var(--mut1, #9bb3bd)); }
.epf-mut { font-size: 12px; color: var(--sl1, var(--mut1, #9bb3bd)); }
.epf-mut.is-retard { color: var(--st-amber, #fbbf24); font-weight: 600; }
html[data-theme="light"] .epf-mut.is-retard { color: #b45309; }

.epf-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.epf-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--sl1, var(--mut1, #9bb3bd));
                padding: 6px 8px; border-bottom: 1px solid var(--o10, rgba(255,255,255,.10)); white-space: nowrap; }
.epf-table td { padding: 9px 8px; vertical-align: top; border-bottom: 1px solid var(--o8, rgba(255,255,255,.07)); }
html[data-theme="light"] .epf-table th { border-bottom-color: rgba(15, 38, 56, .14); }
html[data-theme="light"] .epf-table td { border-bottom-color: rgba(15, 38, 56, .08); }
.epf-l.is-ouvert td { border-bottom-color: transparent; }
.epf-nom { display: block; font-weight: 650; overflow-wrap: break-word; }
.epf-mail { display: block; font-size: 11.5px; color: var(--sl1, var(--mut1, #9bb3bd)); overflow-wrap: break-word; }
.epf-statut { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 650;
              background: var(--o6, rgba(255,255,255,.06)); color: var(--tx2, #c2cdd6); }
.epf-statut.is-invite { background: color-mix(in srgb, var(--pal-6, #7c6cf0) 18%, transparent); }
.epf-statut.is-archive { background: color-mix(in srgb, var(--st-amber, #fbbf24) 16%, transparent); }
html[data-theme="light"] .epf-statut { color: #24343e; background: rgba(15, 38, 56, .07); }
html[data-theme="light"] .epf-statut.is-archive { color: #7a3b05; background: rgba(180, 83, 9, .12); }
.epf-niv { display: grid; grid-template-columns: repeat(2, minmax(92px, 1fr)); gap: 4px 12px; min-width: 200px; }
.epf-niv-l { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.epf-niv-l b { font-weight: 700; color: var(--tx2, #c2cdd6); }
.epf-niv-l small { font-variant-numeric: tabular-nums; color: var(--sl1, var(--mut1, #9bb3bd)); white-space: nowrap; }
html[data-theme="light"] .epf-niv-l b { color: #24343e; }
.epf-barre { flex: 1 1 auto; height: 5px; min-width: 36px; border-radius: 3px; background: var(--o8, rgba(255,255,255,.08)); overflow: hidden; }
html[data-theme="light"] .epf-barre { background: rgba(15, 38, 56, .1); }
.epf-barre i { display: block; height: 100%; background: var(--brand, #00B1CF); border-radius: 3px; }
.epf-evals { display: flex; flex-wrap: wrap; gap: 4px; }
.epf-eval { display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 6px; font-size: 11.5px; font-variant-numeric: tabular-nums;
            border: 1px solid var(--o12, rgba(255,255,255,.12)); white-space: nowrap; }
.epf-eval.is-ok { color: var(--st-green, #34d399); border-color: color-mix(in srgb, var(--st-green, #34d399) 40%, transparent); }
html[data-theme="light"] .epf-eval { border-color: rgba(15, 38, 56, .16); }
html[data-theme="light"] .epf-eval.is-ok { color: #047857; border-color: rgba(4, 120, 87, .35); }
.epf-fragiles { font-size: 12px; color: var(--st-amber, #fbbf24); }
html[data-theme="light"] .epf-fragiles { color: #9a4a06; }
.epf-parc { display: block; font-weight: 600; white-space: nowrap; }
.epf-act { white-space: nowrap; text-align: right; }
.epf-act .epf-btn + .epf-btn { margin-left: 6px; }

.epf-sous > td { padding: 0 8px 12px; }
.epf-edit, .epf-detail { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--o10, rgba(255,255,255,.10)); background: var(--surf-1, rgba(255,255,255,.03)); }
html[data-theme="light"] :is(.epf-edit, .epf-detail) { border-color: rgba(15, 38, 56, .12); background: #f6f9fa; }
.epf-edit-t { margin: 0 0 2px; font-weight: 700; }
.epf-edit-niv, .epf-det-niv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 14px; margin-top: 10px; }
.epf-fs { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 2px; align-content: start; }
.epf-fs legend { padding: 0; margin-bottom: 4px; font-size: 12px; font-weight: 700; }
.epf-coche { display: flex; align-items: flex-start; gap: 7px; min-height: 28px; padding: 3px 0; font-size: 12.5px; cursor: pointer; }
.epf-coche input { width: 15px; height: 15px; margin-top: 1px; flex: 0 0 auto; accent-color: var(--brand, #00B1CF); }
.epf-edit-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--o8, rgba(255,255,255,.08)); }
html[data-theme="light"] .epf-edit-pied { border-top-color: rgba(15, 38, 56, .1); }
.epf-date { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; }
.epf-date input { min-height: 32px; padding: 0 8px; border-radius: 8px; font: inherit; font-size: 12.5px; color: inherit; color-scheme: dark;
                  background: var(--surf-2, #15212d); border: 1px solid var(--o14, rgba(255,255,255,.14)); }
html[data-theme="light"] .epf-date input { color-scheme: light; background: #fff; border-color: rgba(15, 38, 56, .24); }
.epf-espace { flex: 1 1 auto; }
.epf-det-h { margin: 0 0 4px; font-size: 12px; font-weight: 700; }
.epf-det-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.epf-det-col li { display: grid; gap: 1px; padding-left: 9px; border-left: 2px solid var(--o12, rgba(255,255,255,.12)); font-size: 12.5px; }
.epf-det-col li small { font-size: 11.5px; color: var(--sl1, var(--mut1, #9bb3bd)); }
.epf-det-col li.is-fait { border-left-color: var(--st-green, #34d399); }
.epf-det-col li.is-fragile { border-left-color: var(--st-amber, #fbbf24); }
.epf-det-col li.is-cours { border-left-color: var(--brand, #00B1CF); }
.epf-det-n { display: inline-flex; align-items: center; gap: 5px; }
.epf-det-n svg { color: var(--pal-6, #7c6cf0); }
.epf-notes { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.epf-notes li { padding: 7px 10px; border-radius: 9px; border: 1px solid var(--o8, rgba(255,255,255,.08)); }
.epf-notes small { font-size: 11.5px; color: var(--sl1, var(--mut1, #9bb3bd)); }
.epf-notes p { margin: 2px 0 0; font-size: 12.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.epf-detail > .epf-det-h { margin-top: 12px; }

html[data-style="mat"] :is(.epf-edit, .epf-detail) { background: var(--mt-carte-2) !important; border-color: var(--mt-trait) !important; }
html[data-papier] :is(.epf-edit, .epf-detail, .epf-btn, .epf-seg) { border-radius: 4px !important; }
html[data-density="compact"] .epf-table td { padding-top: 6px; padding-bottom: 6px; }

@media (max-width: 1100px) {
    .epf-edit-niv, .epf-det-niv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Téléphone : chaque ligne devient une fiche ; le libellé de chaque cellule vient de data-l. */
@media (max-width: 760px) {
    .epf-seg { margin-left: 0; }
    .epf-actions { margin-left: auto; }
    .epf-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .epf-table, .epf-table tbody, .epf-table tr, .epf-table td { display: block; width: 100%; }
    .epf-l { padding: 10px 0; border-bottom: 1px solid var(--o10, rgba(255,255,255,.10)); }
    html[data-theme="light"] .epf-l { border-bottom-color: rgba(15, 38, 56, .12); }
    .epf-table td { border: 0; padding: 4px 0; }
    .epf-table td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
                                    color: var(--sl1, var(--mut1, #9bb3bd)); margin-bottom: 2px; }
    .epf-table td:first-child::before { display: none; }
    .epf-act { text-align: left; display: flex !important; gap: 6px; padding-top: 8px !important; }
    .epf-act .epf-btn { min-height: 44px; flex: 1 1 0; }
    .epf-act .epf-btn + .epf-btn { margin-left: 0; }
    .epf-sous > td { padding: 0 0 12px; }
    .epf-edit-niv, .epf-det-niv { grid-template-columns: 1fr; }
    .epf-coche { min-height: 40px; align-items: center; }
    .epf-edit-pied .epf-btn { min-height: 44px; }
    .epf-niv { min-width: 0; }
}

/* ══ ACADÉMIE : PROFILS (2026-10-12, décision d'Arthur ; Shared/AcademieQuiApprend.razor, préfixe acap-) ═══════════════════════
   • L'en-tête porte le geste « Changer de profil » (pastille + nom) ; « Qui apprend ? » liste les profils en fiches cliquables,
     avec l'avancement de chacun ; renommer et supprimer se font dans la ligne (confirmation dans la page) ; import : où ranger.
   • Thèmes clair et sombre, Mat, Papier ; cibles de 44 px au téléphone. */
.acap-qui { flex: 0 1 auto; min-width: 0; max-width: 40%; display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 3px 10px 3px 4px;
            border-radius: 999px; border: 1px solid var(--o20, rgba(255,255,255,.2)); background: transparent; color: var(--tx1, #eafdff);
            font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.acap-qui:hover { background: var(--o6, rgba(255,255,255,.06)); }
.acap-qui:focus-visible, .acap-choisir:focus-visible, .acap-ic:focus-visible { outline: 2px solid var(--anneau-focus, var(--brand, #00B1CF)); outline-offset: 2px; }
.acap-qui-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acap-qui-c { display: inline-flex; color: var(--mut1, #8aa0ad); }
html[data-theme="light"] .acap-qui { color: #10212b; border-color: rgba(15, 38, 56, .22); }
html[data-theme="light"] .acap-qui:hover { background: rgba(15, 38, 56, .06); }
html[data-theme="light"] .acap-qui-c { color: #4b5d68; }
.acap-pastille { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
                 background: color-mix(in srgb, var(--pal-6, #7c6cf0) 26%, transparent); color: var(--tx1, #eafdff); }
html[data-theme="light"] .acap-pastille { background: color-mix(in srgb, var(--pal-6, #7c6cf0) 18%, #fff); color: #2b2170; }

.acap-liste { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; max-width: 640px; }
.acap-ligne { display: flex; align-items: stretch; gap: 6px; padding: 6px; border-radius: 12px; border: 1px solid var(--o10, rgba(255,255,255,.10));
              background: var(--surf-1, rgba(255,255,255,.03)); max-width: 640px; }
.acap-ligne.is-premier { border-color: color-mix(in srgb, var(--pal-6, #7c6cf0) 50%, transparent); }
html[data-theme="light"] .acap-ligne { background: #fff; border-color: rgba(15, 38, 56, .14); }
html[data-theme="light"] .acap-ligne.is-premier { border-color: color-mix(in srgb, var(--pal-6, #7c6cf0) 45%, #fff); }
.acap-choisir { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px; border: 0; border-radius: 9px;
                background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.acap-choisir:hover { background: var(--o6, rgba(255,255,255,.06)); }
html[data-theme="light"] .acap-choisir:hover { background: rgba(15, 38, 56, .05); }
.acap-choisir .acap-pastille { width: 34px; height: 34px; font-size: 14px; }
.acap-tx { min-width: 0; display: grid; gap: 1px; }
.acap-nom { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 14px; font-weight: 700; color: var(--tx1, #eafdff); }
html[data-theme="light"] .acap-nom { color: #10212b; }
.acap-badge { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px;
              background: color-mix(in srgb, var(--pal-6, #7c6cf0) 22%, transparent); color: var(--tx1, #eafdff); }
html[data-theme="light"] .acap-badge { background: color-mix(in srgb, var(--pal-6, #7c6cf0) 14%, #fff); color: #2b2170; }
.acap-mail { font-size: 12px; color: var(--tx2, #c2cdd6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acap-avance { font-size: 12px; color: var(--mut1, #8aa0ad); }
html[data-theme="light"] .acap-mail { color: #24343e; }
html[data-theme="light"] .acap-avance { color: #4b5d68; }
.acap-ic { flex: 0 0 auto; width: 36px; height: 36px; align-self: center; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px;
           border: 0; background: transparent; color: var(--mut1, #8aa0ad); cursor: pointer; }
.acap-ic:hover { background: var(--o6, rgba(255,255,255,.06)); color: var(--tx1, #eafdff); }
html[data-theme="light"] .acap-ic { color: #4b5d68; }
html[data-theme="light"] .acap-ic:hover { background: rgba(15, 38, 56, .06); color: #10212b; }
.acap-pied, .acap-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.acap-confirm, .acap-form { flex: 1 1 auto; display: grid; gap: 8px; padding: 6px 8px; }
.acap-confirm p, .acap-form-t { margin: 0; font-size: 13px; line-height: 1.5; }
.acap-form-t { font-weight: 700; }
.acap-lbl { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; }
.acap-lbl small { font-weight: 400; color: var(--mut1, #8aa0ad); }
html[data-theme="light"] .acap-lbl small { color: #4b5d68; }
.acap-champ { min-height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--o20, rgba(255,255,255,.2));
              background: var(--surf-2, rgba(0,0,0,.18)); color: var(--tx1, #eafdff); font: inherit; font-size: 13px; max-width: 100%; }
html[data-theme="light"] .acap-champ { background: #fff; color: #10212b; border-color: rgba(15, 38, 56, .25); }
.acap-champ:focus-visible { outline: 2px solid var(--anneau-focus, var(--brand, #00B1CF)); outline-offset: 1px; }
.acap-err { margin: 0; font-size: 12.5px; color: var(--st-red, #f87171); }
html[data-theme="light"] .acap-err { color: #b91c1c; }
.acap-danger { background: var(--st-red, #dc2626) !important; border-color: transparent !important; color: #fff !important; }
.acap-import { flex: 1 1 100%; display: grid; gap: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--o10, rgba(255,255,255,.10)); }
html[data-theme="light"] .acap-import { border-color: rgba(15, 38, 56, .14); background: #fff; }
.acap-import-t { margin: 0; font-size: 13px; font-weight: 700; }
.acap-import-l { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.acap-import-l label { flex: 1 1 200px; min-width: 0; display: grid; font-size: 13px; }
.acap-import-l small { color: var(--mut1, #8aa0ad); }
.acap-relier { justify-self: start; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 11px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 600;
               border: 1px solid var(--o20, rgba(255,255,255,.2)); background: transparent; color: var(--tx1, #eafdff); cursor: pointer; }
html[data-theme="light"] .acap-relier { color: #10212b; border-color: rgba(15, 38, 56, .25); }
p.acab-inter-l { margin: 0; font-size: 14px; font-weight: 700; }
.acab-notes-d { margin: -4px 0 0 24px; font-size: 12px; color: var(--mut1, #8aa0ad); }
html[data-theme="light"] .acab-notes-d { color: #4b5d68; }
html[data-style="mat"] :is(.acap-ligne, .acap-import) { background: var(--mt-carte-2) !important; border-color: var(--mt-trait) !important; }
html[data-papier] :is(.acap-ligne, .acap-import, .acap-champ, .acap-qui) { border-radius: 4px !important; }
@media (max-width: 640px) {
    .acap-qui { max-width: 46%; min-height: 44px; }
    .acap-qui-c { display: none; }
    .acap-choisir, .acap-ic { min-height: 44px; }
    .acap-ic { width: 44px; height: 44px; }
    .acap-champ { min-height: 44px; font-size: 16px; }
    .acap-actions .aca-btn, .acap-pied .aca-btn, .acap-relier { min-height: 44px; }
}
