/**
 * Plan de sortie — composition « dashboard premium » (V4).
 * Aligné sur .liofo-mh-inner / cartes MH : grilles, sous-cartes, texte majoritairement à gauche.
 * Charge après exit-plan-visual-v3.css — classe racine .ep-exit-dash
 */

/* Colonne OceanWP / éditeur : éviter le centrage « page » sur le module injecté */
body.page-plan-de-sortie .entry-content {
    text-align: left;
}

/* ----- Typo de lecture (socle MH, sans wrapper wallet) ----- */
.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash,
.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash p,
.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash h1,
.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash h2,
.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash h3,
.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash li,
.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash label {
    text-align: left;
}

.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash img {
    margin-left: 0;
    margin-right: 0;
}

/* ----- Grille racine du module (remplace l’ancien .exit-plan-shell) ----- */
.liofo-exit-plan.ep-exit-dash .ep-dash-layout.ep-dash-shell {
    max-width: min(1040px, 100%);
    padding-left: clamp(0.65rem, 2vw, 1.1rem);
    padding-right: clamp(0.65rem, 2vw, 1.1rem);
    padding-bottom: 2.85rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.65rem, 2.6vw, 2.45rem);
}

/* ----- Hero : carte légère type MH (.liofo-w-card--hero), aligné à gauche ----- */
.ep-dash-hero {
    position: relative;
    margin: 0 0 0.15rem;
    padding: 1.05rem 1.2rem 1.2rem;
    border-radius: var(--liofo-w-radius, 16px);
    background: var(--liofo-w-surface, rgba(12, 16, 24, 0.65));
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 14px 42px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.ep-dash-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.11;
    background: radial-gradient(ellipse 72% 58% at 14% 0%, #38bdf8, transparent 68%);
}

.ep-dash-hero-slab {
    position: relative;
    z-index: 1;
    max-width: min(36rem, 100%);
    margin: 0;
    text-align: left;
}

/* Hero centré (haut de page Plan de sortie) */
.ep-dash-hero--centered .ep-dash-hero-slab {
    margin-left: auto;
    margin-right: auto;
    max-width: min(40rem, 100%);
    text-align: center;
}

.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash .ep-dash-hero--centered .ep-dash-hero-title,
.liofo-exit-plan-surface .liofo-exit-plan.ep-exit-dash .ep-dash-hero--centered .ep-dash-hero-line {
    text-align: center;
}

.ep-dash-hero-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.ep-dash-hero-title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.42rem, 3.2vw, 1.72rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.14;
    color: #f8fafc;
}

.ep-dash-hero-line {
    margin: 0;
    max-width: 38rem;
    font-size: 0.93rem;
    line-height: 1.68;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.58));
}

/* ----- Grille 2 colonnes : Comprendre | Transparence ----- */
.ep-dash-intro-row {
    margin-top: 0.1rem;
}

.ep-dash-grid {
    display: grid;
    gap: 1.05rem;
    align-items: stretch;
}

.ep-dash-grid--2 {
    grid-template-columns: 1fr;
}

@media (min-width: 780px) {
    .ep-dash-grid--2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.15rem;
    }
}

.ep-dash-panel {
    margin: 0;
    padding: 1.35rem 1.4rem 1.45rem;
    border-radius: var(--liofo-w-radius, 16px);
    background: var(--liofo-w-surface, rgba(12, 16, 24, 0.65));
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 16px 44px rgba(0, 0, 0, 0.24);
    box-sizing: border-box;
}

.ep-dash-panel-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.44);
}

.ep-dash-panel-title {
    margin: 0 0 0.95rem;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.22;
    color: #f1f5f9;
}

.ep-dash-panel-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.68;
    color: rgba(248, 250, 252, 0.82);
}

.ep-dash-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ep-dash-list > li {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    font-size: 0.88rem;
    line-height: 1.62;
    color: rgba(248, 250, 252, 0.9);
}

.ep-dash-list-mark {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #3b82f6);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.45);
}

/* ----- Résumé stratégique (haut de page) ----- */
.ep-strategy-summary {
    margin-top: 0.85rem;
    padding: 1rem 1.1rem 1.08rem;
    border-radius: var(--liofo-w-radius, 16px);
    background: rgba(12, 16, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.ep-strategy-summary__head {
    margin-bottom: 0.75rem;
}

.ep-strategy-summary__kicker {
    margin: 0 0 0.3rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.ep-strategy-summary__title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.ep-strategy-summary__lead {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(203, 213, 225, 0.9);
}

.ep-strategy-summary__bases {
    margin: 0 0 0.85rem;
}

.ep-active-bases-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.ep-active-base-tile {
    flex: 1 1 min(200px, 100%);
    min-width: min(180px, 100%);
    margin: 0;
    padding: 0.62rem 0.72rem 0.68rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.ep-active-base-tile--guided {
    border-color: rgba(56, 189, 248, 0.35);
    background: linear-gradient(145deg, rgba(12, 74, 110, 0.35), rgba(15, 23, 42, 0.85));
}

.ep-active-base-tile--idle {
    opacity: 0.92;
}

.ep-active-base-tile__title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f1f5f9;
    letter-spacing: -0.01em;
}

.ep-active-base-tile__desc {
    font-size: 0.74rem;
    line-height: 1.45;
    color: rgba(203, 213, 225, 0.92);
}

.ep-active-bases-hint {
    margin: 0.55rem 0 0;
    font-size: 0.7rem;
    line-height: 1.45;
}

.ep-strategy-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.75rem;
}

.ep-strategy-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    font-size: 0.74rem;
    color: rgba(241, 245, 249, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.55);
}

#ep-summary-draft[data-state="dirty"] {
    color: #fde68a;
}

#ep-summary-draft[data-state="saved"] {
    color: #bbf7d0;
}

#ep-summary-draft[data-state="none"] {
    color: #cbd5e1;
}

#ep-draft-status-banner,
#ep-save-state-hint,
#ep-alerts-save-bridge,
#ep-preview-state-legend {
    transition: color 0.2s ease;
}

#ep-draft-status-banner[data-state="dirty"],
#ep-save-state-hint[data-state="dirty"],
#ep-alerts-save-bridge[data-state="dirty"] {
    color: rgba(254, 243, 199, 0.95);
}

#ep-draft-status-banner[data-state="saved"],
#ep-save-state-hint[data-state="saved"],
#ep-alerts-save-bridge[data-state="saved"],
#ep-preview-state-legend[data-state="saved"] {
    color: rgba(187, 247, 208, 0.9);
}

#ep-preview-state-legend[data-state="dirty"] {
    color: rgba(254, 243, 199, 0.95);
}

.ep-strategy-summary__kpis {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.ep-summary-kpi {
    padding: 0.52rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(2, 6, 23, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
}

.ep-summary-kpi__label {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.ep-summary-kpi__value {
    font-size: 1rem;
    font-weight: 700;
    color: #e2e8f0;
}

/* ----- Onboarding léger ----- */
.ep-onboarding-lite {
    margin-top: 0.7rem;
    padding: 0.95rem 1.05rem 1.05rem;
    border-radius: var(--liofo-w-radius, 16px);
    background: rgba(10, 14, 23, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.26);
    box-shadow: 0 9px 26px rgba(0, 0, 0, 0.2);
}

.ep-onboarding-lite__head {
    margin-bottom: 0.62rem;
}

.ep-onboarding-lite__kicker {
    margin: 0 0 0.24rem;
    font-size: 0.67rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.9);
}

.ep-onboarding-lite__title {
    margin: 0 0 0.25rem;
    font-size: 0.96rem;
    font-weight: 700;
    color: rgba(248, 250, 252, 0.98);
}

.ep-onboarding-lite__lead {
    margin: 0;
    font-size: 0.81rem;
    line-height: 1.48;
    color: rgba(203, 213, 225, 0.95);
}

.ep-onboarding-lite__steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.42rem;
}

.ep-onboarding-step {
    display: grid;
    grid-template-columns: 1.35rem 1fr;
    gap: 0.55rem;
    align-items: start;
    padding: 0.45rem 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.45);
}

.ep-onboarding-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.8);
}

.ep-onboarding-step__text strong {
    display: block;
    margin-bottom: 0.08rem;
    font-size: 0.8rem;
    color: rgba(248, 250, 252, 0.97);
}

.ep-onboarding-step__text span {
    font-size: 0.76rem;
    line-height: 1.42;
    color: rgba(203, 213, 225, 0.95);
}

.ep-onboarding-step[data-state="done"] {
    border-color: rgba(34, 197, 94, 0.35);
    background: rgba(22, 101, 52, 0.17);
}

.ep-onboarding-step[data-state="active"] {
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 116, 144, 0.2);
}

.ep-onboarding-step[data-state="warning"] {
    border-color: rgba(245, 158, 11, 0.42);
    background: rgba(146, 64, 14, 0.19);
}

.ep-onboarding-step[data-state="done"] .ep-onboarding-step__num {
    border-color: rgba(74, 222, 128, 0.5);
    color: rgba(187, 247, 208, 0.98);
}

.ep-onboarding-step[data-state="active"] .ep-onboarding-step__num {
    border-color: rgba(56, 189, 248, 0.52);
    color: rgba(186, 230, 253, 0.98);
}

.ep-onboarding-step[data-state="warning"] .ep-onboarding-step__num {
    border-color: rgba(245, 158, 11, 0.55);
    color: rgba(254, 215, 170, 0.98);
}

@media (max-width: 640px) {
    .ep-strategy-summary__kpis {
        grid-template-columns: 1fr;
    }
}

/* ----- Cartes widgets (simulateur) ----- */
.ep-dash-widget {
    padding: 1.45rem 1.45rem 1.55rem !important;
}

.ep-dash-widget-head {
    margin-bottom: 1.15rem;
    padding-bottom: 1.05rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-dash-widget-title {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.022em;
    line-height: 1.2;
    color: #f8fafc;
}

.ep-dash-widget-sub {
    margin: 0;
    font-size: 0.87rem;
    line-height: 1.62;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.55));
    max-width: 42rem;
}

.ep-dash-sim-body {
    padding: 1.2rem 1.25rem 1.28rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.liofo-exit-plan.ep-exit-dash .ep-mini-sim-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.15rem;
    max-width: 100%;
}

@media (max-width: 520px) {
    .liofo-exit-plan.ep-exit-dash .ep-mini-sim-grid {
        grid-template-columns: 1fr;
    }
}

.ep-dash-sim-actions {
    margin-top: 1.15rem;
}

.liofo-exit-plan.ep-exit-dash .ep-dash-sim-body .ep-mini-sim-out:not(:empty) {
    margin-top: 1.1rem;
    padding: 1rem 1.12rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    font-size: 0.87rem;
    line-height: 1.68;
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.32);
    color: #d1fae5;
    max-width: 100%;
    box-shadow: 0 8px 28px rgba(16, 185, 129, 0.08);
}

.ep-plan-cards-host > .wallet-body-muted,
.ep-plan-cards-host > .exit-plan-empty,
.ep-plan-cards-host > .exit-plan-error {
    padding: 0.5rem 0 0.25rem;
    text-align: left;
}

/* ----- Module principal (config, paliers, plan) ----- */
.ep-stack-master {
    padding: 1.55rem 1.45rem 1.65rem !important;
}

.ep-dash-module-head {
    margin-bottom: 1.3rem;
    padding-bottom: 1.12rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-dash-module-head--tight {
    margin-bottom: 1.05rem;
    padding-bottom: 0.9rem;
}

.ep-dash-module-kicker {
    margin-top: 0 !important;
}

.ep-dash-module-title {
    margin: 0.4rem 0 0.55rem;
    font-size: clamp(1.12rem, 2.2vw, 1.28rem);
    font-weight: 700;
    letter-spacing: -0.028em;
    line-height: 1.2;
    color: #f8fafc;
}

.ep-dash-module-lead {
    margin: 0;
    max-width: 46rem;
    font-size: 0.91rem;
    line-height: 1.68;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.58));
}

.ep-dash-module-lead--example {
    margin-top: 0.38rem;
    font-size: 0.82rem;
    color: rgba(186, 230, 253, 0.9);
}

.ep-dash-module-head-text .ep-live-preview-bridge {
    margin: 0.45rem 0 0;
    max-width: 46rem;
    font-size: 0.84rem;
    line-height: 1.55;
}

/* ----- Guide (aide) + relecture moonbag / paliers ----- */
.ep-guide-callout {
    margin: 0 0 1rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    border: 1px dashed rgba(56, 189, 248, 0.45);
    background: linear-gradient(135deg, rgba(14, 116, 144, 0.18), rgba(15, 23, 42, 0.55));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}

.ep-guide-callout__kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(125, 211, 252, 0.95);
}

.ep-guide-callout__title {
    margin: 0 0 0.45rem;
    font-size: 1.02rem;
    font-weight: 700;
    color: #f8fafc;
}

.ep-guide-callout__text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.62;
    color: rgba(226, 232, 240, 0.92);
}

.ep-moonbag-coherence-msg:not(.is-hidden) {
    margin-top: 0.55rem;
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.45);
    background: rgba(120, 53, 15, 0.22);
    color: rgba(254, 243, 199, 0.98) !important;
    font-size: 0.84rem;
    line-height: 1.55;
}

.ep-toolbar-note--tight {
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
}

.ep-start-kicker--spaced {
    margin-top: 0.85rem;
}

.ep-step4-card .ep-dash-module-title.ep-step4-card__title {
    font-size: clamp(1rem, 2vw, 1.15rem);
}

.ep-save-state-hint {
    margin: 0.5rem 0 0.25rem;
}

/* Popup détail stratégie (aligné MH) */
.liofo-mh-modal__panel--readable {
    max-width: min(520px, 94vw);
}

.ep-strategy-detail-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
    padding: 0.75rem 1rem 1rem;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.ep-strategy-detail-dl p {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.55;
    color: rgba(226, 232, 240, 0.95);
}

.ep-strategy-detail-paliers-kicker {
    margin-top: 0.25rem !important;
}

.ep-strategy-detail-paliers {
    margin: 0.35rem 0 0;
    padding-left: 1.1rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.92);
}

.ep-strategy-detail-paliers li.is-muted {
    opacity: 0.55;
}

/* ----- Flux stratégie : colonne unique (guide + étapes 1 → 4) ----- */
.ep-config-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

#exit-plan-simple-mode.ep-mode-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

.ep-cell-name,
.ep-cell-profile,
.ep-cell-moonbag,
.ep-step4-card {
    min-width: 0;
}

.ep-premium-subcard {
    margin: 0;
    padding: 1.2rem 1.22rem 1.28rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(2, 6, 23, 0.42);
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
    box-sizing: border-box;
}

.ep-premium-subcard--accent {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.28);
}

.ep-premium-subcard-kicker {
    margin: 0 0 0.42rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.ep-premium-subcard-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.22;
    color: #f1f5f9;
}

.ep-premium-subcard-intro {
    margin: 0 0 0.9rem;
    font-size: 0.86rem;
    line-height: 1.62;
    color: rgba(226, 232, 240, 0.72);
}

.liofo-exit-plan.ep-exit-dash .ep-config-stack .ep-input,
.liofo-exit-plan.ep-exit-dash .ep-config-stack .ep-select {
    max-width: min(18rem, 100%);
}

/* ----- Sous-cartes (dans config) ----- */
.ep-dcell {
    margin-bottom: 1rem;
    padding: 1.15rem 1.15rem 1.2rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.ep-dcell:last-child {
    margin-bottom: 0;
}

.ep-dcell--highlight {
    background: rgba(56, 189, 248, 0.06);
    border-color: rgba(56, 189, 248, 0.22);
}

.ep-dcell-kicker {
    margin: 0 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.ep-dcell-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: rgba(255, 255, 255, 0.95);
}

.ep-dcell-intro {
    margin: 0 0 1rem;
    font-size: 0.86rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
    max-width: 40rem;
}

.ep-field-fallback {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.ep-builder-bridge {
    margin: 0.55rem 0 0.85rem;
    font-size: 0.8rem;
    color: rgba(148, 163, 184, 0.94);
}

.ep-rules-empty-state {
    margin: 0.2rem 0 0;
    padding: 0.85rem 0.95rem;
    border-radius: 10px;
    border: 1px dashed rgba(148, 163, 184, 0.45);
    background: rgba(15, 23, 42, 0.28);
    color: rgba(226, 232, 240, 0.9);
}

.ep-field--compact .ep-select {
    max-width: 20rem;
}

/* ----- Modes ----- */
.liofo-exit-plan.ep-exit-dash .ep-mode-switch {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 560px) {
    .liofo-exit-plan.ep-exit-dash .ep-mode-switch {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.liofo-exit-plan.ep-exit-dash .ep-mode-card {
    padding: 1.15rem 1.2rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.liofo-exit-plan.ep-exit-dash .ep-mode-card:hover {
    border-color: rgba(56, 189, 248, 0.35);
    transform: translateY(-1px);
}

.liofo-exit-plan.ep-exit-dash .ep-mode-card--active {
    border-color: rgba(56, 189, 248, 0.65) !important;
    box-shadow:
        0 0 0 1px rgba(56, 189, 248, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.28) !important;
    background: rgba(12, 74, 110, 0.25);
}

.liofo-exit-plan.ep-exit-dash .ep-mode-card:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.55);
    outline-offset: 3px;
}

.liofo-exit-plan.ep-exit-dash .ep-mode-card-title {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: #fff;
}

.liofo-exit-plan.ep-exit-dash .ep-mode-card-desc {
    display: block;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.65);
}

/* ----- Profils ----- */
.liofo-exit-plan.ep-exit-dash .ep-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

@media (min-width: 640px) {
    .liofo-exit-plan.ep-exit-dash .ep-profile-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.liofo-exit-plan.ep-exit-dash .ep-profile-tile {
    padding: 0.68rem 0.65rem 0.72rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    background: rgba(255, 255, 255, 0.04);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.18s ease;
}

.liofo-exit-plan.ep-exit-dash .ep-profile-tile:hover {
    transform: translateY(-1px);
    border-color: rgba(56, 189, 248, 0.38);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.liofo-exit-plan.ep-exit-dash .ep-profile-tile.is-selected {
    border-color: rgba(56, 189, 248, 0.55);
    background: rgba(56, 189, 248, 0.1);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.2);
    position: relative;
    padding-right: 1.6rem;
}

.liofo-exit-plan.ep-exit-dash .ep-profile-tile.is-selected::after {
    content: "✓";
    position: absolute;
    right: 0.5rem;
    top: 0.46rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(74, 222, 128, 0.98);
}

.liofo-exit-plan.ep-exit-dash .ep-profile-tile:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.55);
    outline-offset: 2px;
}

.liofo-exit-plan.ep-exit-dash .ep-profile-tile-name {
    font-size: 0.84rem;
}

.liofo-exit-plan.ep-exit-dash .ep-profile-tile-tag {
    font-size: 0.72rem;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.55));
}

.ep-guided-profile-state {
    margin: 0 0 0.66rem;
    font-size: 0.8rem;
    line-height: 1.52;
}

#ep-guided-profile-state[data-state="active"] {
    color: rgba(187, 247, 208, 0.95);
}

#ep-guided-profile-state[data-state="warning"] {
    color: rgba(254, 215, 170, 0.97);
}

/* ----- Actions ----- */
.ep-actions-row--split {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

.ep-plan-toolbar {
    margin-top: 1rem;
}

/* ----- Boutons (couches Liofo) ----- */
.liofo-exit-plan.ep-exit-dash .ep-btn-primary.liofo-mh-history-pill {
    min-height: 46px;
    padding: 0.58rem 1.45rem !important;
    font-size: 0.88rem !important;
    font-weight: 600 !important;
    border-radius: 999px !important;
    box-shadow: 0 6px 22px rgba(56, 189, 248, 0.18);
}

.liofo-exit-plan.ep-exit-dash .ep-btn-primary.liofo-mh-history-pill:hover {
    box-shadow: 0 8px 28px rgba(56, 189, 248, 0.26);
}

.liofo-exit-plan.ep-exit-dash .ep-btn-primary.liofo-mh-history-pill:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.65);
    outline-offset: 3px;
}

.liofo-exit-plan.ep-exit-dash .ep-btn-secondary.liofo-mh-history-pill {
    min-height: 44px;
    padding: 0.52rem 1.2rem !important;
    font-size: 0.86rem !important;
    font-weight: 500 !important;
    border-radius: 999px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.liofo-exit-plan.ep-exit-dash .ep-btn-secondary.liofo-mh-history-pill:hover {
    border-color: rgba(56, 189, 248, 0.45) !important;
}

.liofo-exit-plan.ep-exit-dash .ep-btn-secondary.liofo-mh-history-pill:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.5);
    outline-offset: 2px;
}

.liofo-exit-plan.ep-exit-dash .ep-btn-ghost.liofo-mh-history-pill {
    min-height: 38px;
    padding: 0.4rem 0.85rem !important;
    font-size: 0.8rem !important;
    border-radius: 999px !important;
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.liofo-exit-plan.ep-exit-dash .ep-btn-ghost.liofo-mh-history-pill:focus-visible {
    outline: 2px solid rgba(56, 189, 248, 0.45);
    outline-offset: 2px;
}

.liofo-exit-plan.ep-exit-dash .ep-btn-danger {
    border-color: rgba(248, 113, 113, 0.45) !important;
    color: #fecaca !important;
}

/* Inputs */
.liofo-exit-plan.ep-exit-dash .ep-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(226, 232, 240, 0.78);
}

.liofo-exit-plan.ep-exit-dash .ep-input,
.liofo-exit-plan.ep-exit-dash .ep-select {
    width: 100%;
    max-width: 100%;
    min-height: 2.85rem;
    padding: 0.58rem 1rem;
    font-size: 0.9rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.12));
    background: rgba(255, 255, 255, 0.05);
    color: #f8fafc;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.liofo-exit-plan.ep-exit-dash .ep-input--lg {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.liofo-exit-plan.ep-exit-dash .ep-input:focus,
.liofo-exit-plan.ep-exit-dash .ep-select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.12);
}

/* ----- Paliers : zone liste ----- */
.ep-paliers-body-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.liofo-exit-plan.ep-exit-dash .ep-palier-card {
    border-radius: var(--liofo-w-radius, 16px);
    background: rgba(8, 12, 20, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.liofo-exit-plan.ep-exit-dash .ep-zone {
    background: rgba(0, 0, 0, 0.22);
}

/* Paliers : sous-cartes internes + grille des zones */
.liofo-exit-plan.ep-exit-dash .ep-palier-zones {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: 1fr;
}

@media (min-width: 780px) {
    .liofo-exit-plan.ep-exit-dash .ep-palier-zones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.liofo-exit-plan.ep-exit-dash .ep-palier-subcard {
    padding: 1rem 1.05rem 1.05rem;
    border-radius: 11px;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.liofo-exit-plan.ep-exit-dash .ep-palier-subcard .ep-zone-title {
    margin-top: 0;
    margin-bottom: 0.65rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.liofo-exit-plan.ep-exit-dash .ep-palier-header {
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.liofo-exit-plan.ep-exit-dash .ep-palier-collapse-toggle {
    min-width: 84px;
}

.liofo-exit-plan.ep-exit-dash .ep-palier-compact {
    width: 100%;
    margin: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(148, 163, 184, 0.08);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.72rem 0.95rem;
    text-align: left;
    cursor: pointer;
}

.liofo-exit-plan.ep-exit-dash .ep-palier-compact:hover {
    background: rgba(56, 189, 248, 0.12);
}

.liofo-exit-plan.ep-exit-dash .ep-palier-compact-main {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.35;
}

.liofo-exit-plan.ep-exit-dash .ep-palier-compact-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.2rem 0.52rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: rgba(34, 197, 94, 0.14);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86efac;
    flex-shrink: 0;
}

.liofo-exit-plan.ep-exit-dash .ep-palier-compact-state[data-state="off"] {
    background: rgba(148, 163, 184, 0.14);
    border-color: rgba(148, 163, 184, 0.35);
    color: #cbd5e1;
}

.liofo-exit-plan.ep-exit-dash .ep-palier-body {
    padding: 0.72rem 0.82rem 0.85rem;
}

.liofo-exit-plan.ep-exit-dash .ep-palier-body[hidden] {
    display: none !important;
}

.liofo-exit-plan.ep-exit-dash .ep-palier-card.ep-palier-card--collapsed .ep-palier-preview {
    display: none;
}

/* ----- Plan par crypto : cartes ----- */
.ep-plan-cards-host {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.liofo-exit-plan.ep-exit-dash .ep-plan-cards-host > .exit-plan-placeholder-msg {
    margin: 0;
    padding: 1.35rem 1.25rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(2, 6, 23, 0.35);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    font-size: 0.9rem;
    line-height: 1.62;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.58));
    max-width: 46rem;
}

.ep-plan-cards {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ep-crypto-card {
    border-radius: var(--liofo-w-radius, 16px);
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    background: var(--liofo-w-surface, rgba(12, 16, 24, 0.65));
    overflow: hidden;
    transition:
        border-color 0.2s ease,
        box-shadow 0.22s ease;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
}

.ep-crypto-card:hover {
    border-color: rgba(56, 189, 248, 0.32);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.ep-crypto-card__main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.95rem;
    padding: 1.12rem 1.2rem;
    align-items: start;
}

@media (min-width: 720px) {
    .ep-crypto-card__main {
        grid-template-columns: minmax(140px, 0.95fr) minmax(0, 1.5fr) auto;
        align-items: center;
        gap: 1rem;
    }
}

.ep-crypto-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    min-width: 0;
}

.ep-crypto-card__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    align-items: center;
}

.ep-progress--inline {
    flex: 1 1 140px;
    min-width: 100px;
    max-width: 200px;
    height: 5px;
}

.ep-crypto-card__asset {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}

.ep-asset-thumb {
    width: 22px !important;
    height: 22px !important;
    border-radius: 9px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.ep-asset-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.ep-asset-name {
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-asset-symbol {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.ep-crypto-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.65);
}

.ep-stat {
    display: inline-flex;
    flex-direction: column;
    gap: 0.2rem;
}

.ep-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.4);
}

.ep-stat-val {
    font-variant-numeric: tabular-nums;
}

.ep-metric-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
}

.ep-metric-pill strong {
    font-size: 0.9rem;
    color: #e0f2fe;
}

.ep-crypto-card__actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 719px) {
    .ep-crypto-card__actions {
        justify-content: flex-start;
    }
}

.ep-crypto-card__detail {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(2, 6, 23, 0.55);
    padding: 1.05rem 1.2rem 1.2rem;
}

.liofo-exit-plan.ep-exit-dash .ep-detail-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
}

.liofo-exit-plan.ep-exit-dash .ep-moonbag-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.82);
}

.liofo-exit-plan.ep-exit-dash .ep-moonbag-hint,
.liofo-exit-plan.ep-exit-dash .ep-after-hint,
.liofo-exit-plan.ep-exit-dash .ep-toolbar-note {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.55));
}

/* Login card */
.ep-dash-login-card {
    padding: 1.25rem !important;
}

.liofo-exit-plan-login-msg {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #fecaca;
}

/* =============================================================================
   Maquette stricte dashboard — `.ep-dash-maquette` (desktop : lead + sim)
   ============================================================================= */

.liofo-exit-plan.ep-dash-maquette,
.liofo-exit-plan.ep-dash-maquette .exit-plan-card,
.liofo-exit-plan.ep-dash-maquette .ep-dash-panel,
.liofo-exit-plan.ep-dash-maquette .ep-premium-subcard,
.liofo-exit-plan.ep-dash-maquette .ep-field,
.liofo-exit-plan.ep-dash-maquette .ep-crypto-card__row {
    text-align: left;
}

.ep-dash-board--maquette {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.ep-dash-workzone--split {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
    min-width: 0;
}

@media (min-width: 1040px) {
    .ep-dash-workzone--split {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 0.85rem 1rem;
        align-items: stretch;
    }

    .ep-dash-workzone__cfg {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }
}

/* Aperçu + alertes : pleine largeur sous la zone de travail */
.ep-dash-board--maquette > .ep-dash-board__preview,
.ep-dash-board--maquette > .ep-dash-board__alerts {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

@media (min-width: 900px) {
    /* Une colonne : lecture verticale, héros + exemple + résumé centrés dans la largeur utile */
    .ep-dash-board--maquette {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.85rem;
        align-items: stretch;
    }

    .ep-dash-board__lead {
        grid-column: 1;
        grid-row: 1;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        min-width: 0;
        max-width: min(820px, 100%);
        margin-left: auto;
        margin-right: auto;
        width: 100%;
    }

    .ep-dash-workzone--split {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* Bandeau unique Comprendre | Transparence (une surface, pas deux cartes empilées) */
.ep-dash-insight {
    padding: 0.85rem 1rem 0.95rem !important;
    margin: 0;
}

.ep-dash-insight__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    align-items: start;
}

@media (min-width: 720px) {
    .ep-dash-insight__grid {
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        gap: 0;
        align-items: stretch;
    }

    .ep-dash-insight__sep {
        width: 1px;
        margin: 0 1rem;
        background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.14), transparent);
        align-self: stretch;
    }
}

.ep-dash-insight-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.44);
}

.ep-dash-insight-title {
    margin: 0 0 0.55rem;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #f1f5f9;
}

.ep-dash-insight-text {
    margin: 0 0 0.4rem;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(248, 250, 252, 0.88);
}

.ep-dash-insight-text--muted {
    margin-bottom: 0;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.52));
}

.ep-dash-list--compact {
    gap: 0.45rem;
}

.ep-dash-list--compact > li {
    font-size: 0.82rem;
    line-height: 1.45;
}

/* Hero bandeau compact (pas de « grande carte ») */
.liofo-exit-plan.ep-dash-maquette .ep-dash-hero--strip {
    margin: 0;
    padding: 0.45rem 0 0.65rem;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: none;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-hero--strip::before {
    display: none;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-hero--strip .ep-dash-hero-title {
    margin-bottom: 0.35rem;
    font-size: clamp(1.28rem, 2.4vw, 1.52rem);
    font-weight: 800;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-hero--strip .ep-dash-hero-line {
    font-size: 0.86rem;
    line-height: 1.5;
    max-width: 40rem;
}

/* Cartes intro plus compactes */
.liofo-exit-plan.ep-dash-maquette .ep-dash-panel {
    padding: 1rem 1.05rem 1.08rem;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-panel-title {
    margin-bottom: 0.65rem;
    font-size: 1rem;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-list {
    gap: 0.55rem;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-list > li {
    font-size: 0.84rem;
    line-height: 1.5;
}

.ep-dash-panel-text--muted {
    margin: 0.45rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.52));
}

/* En-têtes module + widget : titre à gauche, actions à droite */
.ep-dash-widget-head--inline,
.ep-dash-module-head--inline {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem 1rem;
}

.ep-dash-widget-head--inline .ep-dash-widget-head-text,
.ep-dash-module-head--inline .ep-dash-module-head-text {
    flex: 1 1 14rem;
    min-width: 0;
}

.ep-dash-widget-head--inline {
    margin-bottom: 0.85rem;
    padding-bottom: 0.75rem;
}

.ep-dash-module-head--inline {
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
}

.ep-dash-module-head--inline.ep-dash-module-head--tight {
    margin-bottom: 0.85rem;
    padding-bottom: 0.7rem;
}

.ep-plan-toolbar--head {
    margin: 0 !important;
    flex: 0 0 auto;
    align-self: center;
}

/* Simulateur : grille 4 colonnes sur largeur colonne droite */
.liofo-exit-plan.ep-dash-maquette .ep-mini-sim-grid--maquette {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 0.75rem;
}

@media (min-width: 1180px) {
    .liofo-exit-plan.ep-dash-maquette .ep-mini-sim-grid--maquette {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-widget--sim {
    padding: 1.05rem 1.1rem 1.12rem !important;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-sim-body {
    padding: 0.85rem 0.9rem 0.95rem;
}

.liofo-exit-plan.ep-dash-maquette .ep-field {
    margin-bottom: 0;
}

/* Config : sous-cartes plus denses */
.liofo-exit-plan.ep-dash-maquette .ep-premium-subcard {
    padding: 0.95rem 1rem 1.02rem;
}

.liofo-exit-plan.ep-dash-maquette .ep-premium-subcard-intro {
    margin-bottom: 0.65rem;
    font-size: 0.8rem;
}

.liofo-exit-plan.ep-dash-maquette .ep-stack-master {
    padding: 1.15rem 1.15rem 1.25rem !important;
}

.liofo-exit-plan.ep-dash-maquette .ep-config-stack {
    gap: 0.85rem;
}

@media (min-width: 700px) {
    .liofo-exit-plan.ep-dash-maquette .ep-config-stack {
        gap: 0.85rem 1rem;
    }
}

/* Paliers : zones 2 colonnes */
.liofo-exit-plan.ep-dash-maquette .ep-palier-zones--maquette {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: 1fr;
}

@media (min-width: 820px) {
    .liofo-exit-plan.ep-dash-maquette .ep-palier-zones--maquette {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.liofo-exit-plan.ep-dash-maquette .ep-palier-header {
    padding: 0.65rem 0.85rem;
    align-items: center;
}

.liofo-exit-plan.ep-dash-maquette .ep-palier-subcard {
    padding: 0.75rem 0.8rem 0.82rem;
}

/* Plan crypto : ligne type liste premium */
.ep-plan-cards--maquette {
    gap: 0.55rem;
}

.ep-crypto-card--maquette {
    border-radius: var(--liofo-w-radius-sm, 12px);
}

.ep-crypto-card__row {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto;
    gap: 0.65rem 0.85rem;
    align-items: center;
    padding: 0.72rem 0.85rem;
}

@media (min-width: 720px) {
    .ep-crypto-card__row {
        grid-template-columns: minmax(0, 1.5fr) minmax(10rem, 1fr) auto;
    }
}

.ep-crypto-card__lead {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.ep-asset-thumb--ph {
    display: inline-block;
    width: 22px;
    height: 22px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ep-crypto-kpis {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.15rem;
    min-width: 0;
}

.ep-crypto-kpi {
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
    min-width: 0;
}

.ep-crypto-kpi-l {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.ep-crypto-kpi-v {
    font-size: 0.92rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: #e0f2fe;
}

.ep-crypto-kpi--progress .ep-progress--compact {
    margin-top: 0.2rem;
    height: 5px;
    max-width: 140px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ep-crypto-kpi--progress .ep-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #38bdf8, #22d3ee);
}

.ep-detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.1rem;
    margin: 0 0 1rem;
    padding: 0.65rem 0.75rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.82rem;
}

.ep-detail-meta-k {
    color: rgba(255, 255, 255, 0.45);
    margin-right: 0.25rem;
}

@media (max-width: 639px) {
    .ep-crypto-card__row {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .ep-crypto-card__actions {
        justify-content: flex-start;
    }
}

/* =============================================================================
   Maquette — rendu visible (anti « pile centrée / bandeau unique »)
   Overrides page WP + thème : priorité sur centrage hérité et grilles tardives.
   ============================================================================= */

body.page-plan-de-sortie .liofo-exit-plan-surface,
body.page-plan-de-sortie .liofo-exit-plan-surface .liofo-mh-inner,
body.page-plan-de-sortie .liofo-exit-plan.ep-dash-maquette,
body.page-plan-de-sortie .liofo-exit-plan.ep-dash-maquette h1,
body.page-plan-de-sortie .liofo-exit-plan.ep-dash-maquette h2,
body.page-plan-de-sortie .liofo-exit-plan.ep-dash-maquette h3,
body.page-plan-de-sortie .liofo-exit-plan.ep-dash-maquette p,
body.page-plan-de-sortie .liofo-exit-plan.ep-dash-maquette li {
    text-align: left !important;
}

body.page-plan-de-sortie .liofo-exit-plan.ep-dash-maquette.ep-exit-visual-v3 .ep-dash-layout.ep-dash-shell.ep-exit-shell {
    max-width: 100% !important;
    width: 100% !important;
}

/* Comprendre | Transparence : deux cartes distinctes (plus un seul panneau) */
.liofo-exit-plan.ep-dash-maquette .ep-dash-insight.liofo-w-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.2rem 0 0 !important;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-insight__col {
    padding: 1.02rem 1.08rem 1.1rem;
    border-radius: var(--liofo-w-radius, 16px);
    background: rgba(12, 16, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 14px 40px rgba(0, 0, 0, 0.26);
}

@media (min-width: 720px) {
    .liofo-exit-plan.ep-dash-maquette .ep-dash-insight__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 1rem !important;
        align-items: stretch !important;
    }

    .liofo-exit-plan.ep-dash-maquette .ep-dash-insight__sep {
        display: none !important;
    }
}

/* Hero strip : kicker + titre sur une ligne (compact) — désactivé si hero centré */
@media (min-width: 560px) {
    .liofo-exit-plan.ep-dash-maquette .ep-dash-hero--strip:not(.ep-dash-hero--centered) .ep-dash-hero-slab {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        column-gap: 1rem;
        row-gap: 0.3rem;
        align-items: baseline;
    }

    .liofo-exit-plan.ep-dash-maquette .ep-dash-hero--strip:not(.ep-dash-hero--centered) .ep-dash-hero-kicker {
        margin: 0;
        grid-column: 1;
        grid-row: 1;
    }

    .liofo-exit-plan.ep-dash-maquette .ep-dash-hero--strip:not(.ep-dash-hero--centered) .ep-dash-hero-title {
        grid-column: 2;
        grid-row: 1;
        margin: 0 0 0.2rem !important;
    }

    .liofo-exit-plan.ep-dash-maquette .ep-dash-hero--strip:not(.ep-dash-hero--centered) .ep-dash-hero-line {
        grid-column: 1 / -1;
        grid-row: 2;
        margin: 0;
    }
}

/* Simulateur : « boîte » interne type widget dashboard (colonne droite historique ou inline sous le hero) */
.liofo-exit-plan.ep-dash-maquette .ep-dash-board__sim.liofo-w-card,
.liofo-exit-plan.ep-dash-maquette .ep-dash-widget--sim-inline.liofo-w-card {
    border-color: rgba(56, 189, 248, 0.22);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 16px 44px rgba(0, 0, 0, 0.28);
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-board__sim .ep-dash-sim-body,
.liofo-exit-plan.ep-dash-maquette .ep-dash-widget--sim-inline .ep-dash-sim-body {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(2, 6, 23, 0.72));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-board__sim .ep-mini-sim-grid--maquette,
.liofo-exit-plan.ep-dash-maquette .ep-dash-widget--sim-inline .ep-mini-sim-grid--maquette {
    gap: 0.55rem 0.65rem;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-board__sim .ep-input,
.liofo-exit-plan.ep-dash-maquette .ep-dash-widget--sim-inline .ep-input {
    min-height: 2.35rem;
    padding: 0.4rem 0.62rem;
    font-size: 0.82rem;
    border-radius: 10px;
}

.ep-mini-sim--compact .ep-mini-sim-grid--maquette {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 559px) {
    .ep-mini-sim--compact .ep-mini-sim-grid--maquette {
        grid-template-columns: 1fr;
    }
}

.ep-profile-sync-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.ep-cell-profile {
    position: relative;
}

.ep-save-hint-simple {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    line-height: 1.5;
}

.ep-save-strategy-footer {
    margin-top: 0.9rem;
    display: flex;
    justify-content: center;
}

.ep-save-strategy-footer .ep-btn-primary.liofo-mh-history-pill {
    min-width: min(360px, 100%);
}

.ep-start-kicker {
    margin: 0.75rem 0 0.45rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.95);
}

.ep-start-personal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.ep-start-personal-row .ep-select {
    min-width: min(360px, 100%);
    flex: 1 1 16rem;
}

.ep-select.ep-select--on-dark,
.ep-start-personal-row .ep-select.ep-select--on-dark {
    color: #0f172a;
    background: #f8fafc;
    border-color: rgba(15, 23, 42, 0.2);
}

.ep-select.ep-select--on-dark option,
.ep-start-personal-row .ep-select.ep-select--on-dark option {
    color: #0f172a;
    background: #f8fafc;
}

.ep-my-strategies__list {
    margin: 0 0 0.75rem;
}

.ep-my-strategies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.55rem;
}

.ep-my-strategies-grid--chips {
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
    gap: 0.45rem;
}

.ep-my-strategy-chip {
    text-align: left;
    padding: 0.5rem 0.62rem 0.52rem;
    border-radius: 11px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    cursor: pointer;
    font: inherit;
    min-height: 3.1rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ep-my-strategy-chip:hover {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(12, 74, 110, 0.32);
}

.ep-my-strategy-chip.is-active {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.ep-my-strategy-chip__name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #f8fafc;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ep-my-strategy-chip__meta {
    font-size: 0.65rem;
    color: rgba(148, 163, 184, 0.98);
}

/* Anciennes cartes pleine largeur (compat si markup résiduel) */
.ep-my-strategy-card {
    text-align: left;
    padding: 0.64rem 0.74rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.62);
    color: #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    cursor: pointer;
}

.ep-my-strategy-card:hover {
    border-color: rgba(56, 189, 248, 0.45);
}

.ep-my-strategy-card.is-active {
    border-color: rgba(56, 189, 248, 0.66);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.22);
    background: rgba(12, 74, 110, 0.28);
}

.ep-my-strategy-card__name {
    font-size: 0.82rem;
    font-weight: 700;
    color: #f8fafc;
}

.ep-my-strategy-card__scope {
    font-size: 0.73rem;
    color: rgba(203, 213, 225, 0.94);
    line-height: 1.35;
}

.ep-my-strategy-card__meta {
    font-size: 0.69rem;
    color: rgba(148, 163, 184, 0.95);
}

/* LIOFO_EP_UX_2026_04_24_08 — alertes paliers : cadre resserré */
.ep-paliers-alert-inline {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.45);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.ep-alerts-subtitle {
    margin: 0 0 0.15rem;
    font-size: 0.88rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.94);
    font-weight: 500;
}

.ep-paliers-toolbar--after-alerts {
    display: flex;
    justify-content: flex-start;
    margin-top: 0.15rem;
}

@media (min-width: 720px) {
    .ep-paliers-alert-inline {
        max-width: min(100%, 28rem);
        margin-left: 0;
        margin-right: auto;
    }
}

@media (min-width: 1024px) {
    .ep-paliers-alert-inline {
        max-width: 50%;
    }
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-sim-actions {
    margin-top: 0.75rem;
}

.liofo-exit-plan.ep-dash-maquette .ep-dash-sim-actions .liofo-mh-history-pill {
    width: 100%;
    justify-content: center;
}

@media (min-width: 900px) {
    .liofo-exit-plan.ep-dash-maquette .ep-dash-sim-actions .liofo-mh-history-pill {
        width: auto;
        justify-content: center;
    }
}

/* Sous-cartes stratégie : séparation plus nette vs masse unique */
.liofo-exit-plan.ep-dash-maquette .ep-premium-subcard {
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

/* ----- Tableau d’aperçu simulation (temps réel) ----- */
.ep-live-table-host {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.45);
}

.ep-live-tools {
    display: grid;
    grid-template-columns: minmax(14rem, 1.8fr) auto auto;
    gap: 0.55rem 0.8rem;
    align-items: end;
    margin: 0.4rem 0 0.75rem;
}

.ep-live-search-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.76rem;
    color: rgba(203, 213, 225, 0.95);
}

.ep-live-search-field .ep-input {
    max-width: 100%;
    min-height: 40px;
}

.ep-live-filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    font-size: 0.8rem;
    color: rgba(226, 232, 240, 0.94);
    white-space: nowrap;
}

.ep-live-unassigned-count {
    font-size: 0.76rem;
    color: rgba(186, 230, 253, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(14, 116, 144, 0.22);
    border-radius: 999px;
    padding: 0.24rem 0.52rem;
    white-space: nowrap;
}

.ep-live-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.78rem;
}

.ep-live-table thead th {
    text-align: left;
    padding: 0.55rem 0.5rem;
    background: rgba(12, 20, 32, 0.98);
    color: rgba(226, 232, 240, 0.82);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.62rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
}

.ep-asset-strategy {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.46rem;
    border-radius: 999px;
    font-size: 0.7rem;
    line-height: 1.2;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(15, 23, 42, 0.55);
    color: rgba(226, 232, 240, 0.95);
    white-space: nowrap;
}

.ep-asset-strategy--guided {
    color: rgba(187, 247, 208, 0.96);
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(22, 101, 52, 0.22);
}

.ep-asset-strategy--custom,
.ep-asset-strategy--global {
    color: rgba(186, 230, 253, 0.96);
    border-color: rgba(56, 189, 248, 0.45);
    background: rgba(14, 116, 144, 0.23);
}

.ep-asset-strategy--category {
    color: rgba(224, 242, 254, 0.96);
}

.ep-asset-strategy--none {
    color: rgba(254, 202, 202, 0.96);
    border-color: rgba(248, 113, 113, 0.4);
    background: rgba(127, 29, 29, 0.2);
}

.ep-live-table tbody td {
    padding: 0.55rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
}

.ep-live-tr {
    cursor: pointer;
}

.ep-live-tr:hover td {
    background: rgba(56, 189, 248, 0.05);
}

.ep-live-tr[data-partial="1"] td {
    background: rgba(251, 191, 36, 0.05);
}

@keyframes ep-live-row-flash {
    0% {
        box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.15);
        background: rgba(56, 189, 248, 0);
    }
    18% {
        box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.55);
        background: rgba(56, 189, 248, 0.12);
    }
    100% {
        box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0);
        background: rgba(56, 189, 248, 0);
    }
}

.ep-live-tr--flash td {
    animation: ep-live-row-flash 2.1s ease-out 1;
}

@keyframes ep-live-row-deep-focus {
    0% {
        box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.2);
        background: rgba(56, 189, 248, 0);
    }
    12% {
        box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.75);
        background: rgba(56, 189, 248, 0.14);
    }
    100% {
        box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.35);
        background: rgba(56, 189, 248, 0.06);
    }
}

.ep-live-tr--deep-focus td {
    animation: ep-live-row-deep-focus 0.85s ease-out 1;
}

.ep-exit-plan-deeplink-msg {
    margin: 0 0 0.65rem;
    padding: 0.55rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.08);
    color: #fde68a;
    font-size: 0.78rem;
    line-height: 1.35;
}

/* Ancre + mode « vue ciblée » (lien Mes wallets / Mes cryptos) */
.ep-exit-plan-table-jump {
    scroll-margin-top: clamp(3.5rem, 10vw, 5.5rem);
    outline: none;
}

.ep-crypto-focus-bar {
    margin: 0 0 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(15, 23, 42, 0.72);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

.ep-crypto-focus-bar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem 1rem;
}

.ep-crypto-focus-bar__title {
    margin: 0 0 0.25rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: #f1f5f9;
}

.ep-crypto-focus-bar__name {
    color: #7dd3fc;
}

.ep-crypto-focus-bar__strategy,
.ep-crypto-focus-bar__none {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.35;
    color: rgba(226, 232, 240, 0.92);
}

.ep-crypto-focus-bar__none {
    color: #fcd34d;
}

.ep-crypto-focus-bar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    justify-content: flex-end;
}

.ep-live-tr--focus-mode td {
    background: rgba(56, 189, 248, 0.1) !important;
    box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.45);
}

@keyframes ep-rule-focus-pulse {
    0% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35); }
    40% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.2); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.exit-plan-rule-card.ep-rule-card--focus-pulse {
    animation: ep-rule-focus-pulse 1.2s ease-out 2;
    border-color: rgba(56, 189, 248, 0.55) !important;
}

@media (max-width: 640px) {
    .ep-crypto-focus-bar__actions {
        justify-content: flex-start;
    }
}

.ep-live-name {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 6.5rem;
}

.ep-live-n {
    font-weight: 700;
    color: #f1f5f9;
}

.ep-live-sym {
    font-size: 0.66rem;
    color: rgba(148, 163, 184, 0.95);
    text-transform: uppercase;
}

.ep-live-custom-badge {
    display: inline-block;
    margin-top: 0.15rem;
    width: fit-content;
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.08rem 0.34rem;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.36);
    background: rgba(56, 189, 248, 0.12);
    color: #bae6fd;
}

.ep-alert-badge {
    display: inline-block;
    margin-right: 0.28rem;
    margin-bottom: 0.2rem;
    padding: 0.08rem 0.36rem;
    border-radius: 999px;
    font-size: 0.58rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border: 1px solid transparent;
}

.ep-alert-badge--watch {
    color: rgba(226, 232, 240, 0.92);
    background: rgba(51, 65, 85, 0.45);
    border-color: rgba(148, 163, 184, 0.3);
}

.ep-alert-badge--live {
    color: rgba(254, 243, 199, 0.95);
    background: rgba(217, 119, 6, 0.16);
    border-color: rgba(251, 191, 36, 0.4);
}

.ep-alert-badge--done {
    color: rgba(187, 247, 208, 0.95);
    background: rgba(22, 163, 74, 0.13);
    border-color: rgba(74, 222, 128, 0.32);
}

.ep-alert-badge--off,
.ep-alert-badge--none {
    color: rgba(148, 163, 184, 0.88);
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(100, 116, 139, 0.25);
}

.ep-tn {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ep-badge-partial {
    display: inline-block;
    font-size: 0.6rem;
    padding: 0.1rem 0.38rem;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.14);
    color: #fde68a;
    border: 1px solid rgba(251, 191, 36, 0.35);
}

.ep-badge-muted {
    display: inline-block;
    font-size: 0.58rem;
    padding: 0.08rem 0.34rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.32);
    background: rgba(148, 163, 184, 0.1);
    color: rgba(226, 232, 240, 0.9);
}

.ep-live-detail-inner {
    padding: 0.4rem 0 0.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ep-live-subtable-wrap {
    overflow-x: auto;
}

.ep-live-subtable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.74rem;
}

.ep-live-subtable th,
.ep-live-subtable td {
    text-align: left;
    padding: 0.42rem 0.45rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: top;
}

.ep-live-subtable thead th {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.95);
}

.ep-live-subtable tbody tr:nth-child(odd) td {
    background: rgba(15, 23, 42, 0.16);
}

.ep-live-subtable tbody tr:hover td {
    background: rgba(56, 189, 248, 0.08);
}

.ep-live-mile {
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.9);
    padding: 0.38rem 0.5rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-live-mile--empty {
    opacity: 0.75;
}

.ep-live-tag {
    font-size: 0.6rem;
    color: rgba(148, 163, 184, 0.95);
    text-transform: uppercase;
}

/* Statuts d’étape (sous-tableau paliers) — libellés FR, hiérarchie douce */
.ep-live-status {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1.25;
    border: 1px solid transparent;
    vertical-align: middle;
    white-space: nowrap;
}

.ep-live-status--preview,
.ep-live-status--unknown {
    color: rgba(148, 163, 184, 0.95);
    background: rgba(15, 23, 42, 0.55);
    border-color: rgba(148, 163, 184, 0.22);
}

.ep-live-status--watch {
    color: rgba(226, 232, 240, 0.88);
    background: rgba(51, 65, 85, 0.45);
    border-color: rgba(148, 163, 184, 0.28);
}

.ep-live-status--reached {
    color: rgba(254, 243, 199, 0.95);
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(251, 191, 36, 0.35);
}

.ep-live-status--done {
    color: rgba(187, 247, 208, 0.95);
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(74, 222, 128, 0.28);
}

.ep-live-status--skipped {
    color: rgba(148, 163, 184, 0.75);
    background: rgba(15, 23, 42, 0.35);
    border-color: rgba(100, 116, 139, 0.22);
}

.ep-live-actions {
    margin-left: 0.35rem;
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    vertical-align: middle;
}

.ep-alert-step {
    display: inline-block;
    margin: 0 0.35rem 0.28rem 0;
    padding: 0.12rem 0.42rem;
    border-radius: 999px;
    font-size: 0.6rem;
    border: 1px solid transparent;
    line-height: 1.25;
}

.ep-alert-step--watch {
    color: rgba(226, 232, 240, 0.92);
    background: rgba(51, 65, 85, 0.45);
    border-color: rgba(148, 163, 184, 0.28);
}

.ep-alert-step--live {
    color: rgba(254, 243, 199, 0.95);
    background: rgba(217, 119, 6, 0.14);
    border-color: rgba(251, 191, 36, 0.36);
}

.ep-alert-step--done {
    color: rgba(187, 247, 208, 0.95);
    background: rgba(22, 163, 74, 0.13);
    border-color: rgba(74, 222, 128, 0.3);
}

.ep-alert-step--off,
.ep-alert-step--none,
.ep-alert-step--na {
    color: rgba(148, 163, 184, 0.88);
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(100, 116, 139, 0.25);
}

.ep-alert-step--warn {
    color: rgba(254, 202, 202, 0.95);
    background: rgba(127, 29, 29, 0.2);
    border-color: rgba(248, 113, 113, 0.35);
}

.liofo-exit-plan.ep-dash-maquette .ep-input.ep-exit-input--tracked[data-ep-fill-source="profile"] {
    background: rgba(56, 189, 248, 0.1) !important;
    border-color: rgba(56, 189, 248, 0.38) !important;
}

.ep-live-table-empty.is-hidden {
    display: none !important;
}

.ep-exit-alerts {
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(2, 6, 23, 0.55);
}

.ep-alert-prep-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.92);
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: rgba(16, 185, 129, 0.12);
}

.ep-alerts-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ep-alerts-hint {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    max-width: 52rem;
}

.ep-alerts-status-panel {
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.45);
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.ep-alerts-status-panel__head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ep-alerts-badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ep-alerts-badge--on {
    color: rgba(209, 250, 229, 0.98);
    border: 1px solid rgba(52, 211, 153, 0.45);
    background: rgba(16, 185, 129, 0.2);
}

.ep-alerts-badge--off {
    color: rgba(226, 232, 240, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: rgba(30, 41, 59, 0.65);
}

.ep-alerts-badge-caption {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(203, 213, 225, 0.95);
    max-width: 40rem;
}

.ep-alerts-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
    gap: 0.65rem 1rem;
}

.ep-alerts-stat {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0.55rem;
    border-radius: 8px;
    border: 1px solid rgba(51, 65, 85, 0.55);
    background: rgba(2, 6, 23, 0.35);
}

.ep-alerts-stat--pending {
    border-color: rgba(251, 191, 36, 0.35);
    background: rgba(251, 191, 36, 0.06);
}

.ep-alerts-stat--failed {
    border-color: rgba(248, 113, 113, 0.28);
    background: rgba(127, 29, 29, 0.12);
}

.ep-alerts-stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(148, 163, 184, 0.95);
}

.ep-alerts-stat-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.98);
}

.ep-alerts-stat-value--warn {
    color: rgba(254, 202, 202, 0.98);
}

.ep-alerts-status-msg {
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    background: rgba(30, 41, 59, 0.55);
    border: 1px solid rgba(71, 85, 105, 0.35);
}

.ep-alerts-status-msg:not(.wallet-body-error) {
    border-color: rgba(52, 211, 153, 0.25);
    background: rgba(6, 78, 59, 0.15);
}

.ep-alerts-feed__err {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(254, 202, 202, 0.98);
}

.ep-alerts-feed__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.65rem;
}

.ep-alerts-feed__when {
    font-size: 0.75rem;
    color: rgba(148, 163, 184, 0.95);
}

.ep-alerts-feed__chips {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.ep-alerts-chip {
    display: inline-block;
    padding: 0.12rem 0.45rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(226, 232, 240, 0.92);
    border: 1px solid rgba(100, 116, 139, 0.45);
    background: rgba(30, 41, 59, 0.55);
}

.ep-alerts-chip--status {
    border-color: rgba(56, 189, 248, 0.35);
    background: rgba(14, 116, 144, 0.18);
}

.ep-alerts-chip--bad {
    border-color: rgba(248, 113, 113, 0.45) !important;
    background: rgba(127, 29, 29, 0.25) !important;
    color: rgba(254, 226, 226, 0.98) !important;
}

.ep-alerts-feed__sent {
    font-size: 0.72rem;
    color: rgba(167, 243, 208, 0.95);
    width: 100%;
}

.ep-alerts-channels-label {
    margin: 0 0 0.35rem;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.95);
}

.ep-alerts-channels {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ep-alerts-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.95rem;
    color: rgba(226, 232, 240, 0.95);
    cursor: pointer;
}

.ep-alerts-toggle input {
    margin-top: 0.2rem;
}

.ep-alerts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ep-alerts-status {
    margin: 0;
    font-size: 0.9rem;
}

.ep-alerts-subtitle {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.95);
}

.ep-alerts-feed {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    max-height: 16rem;
    overflow: auto;
}

@media (max-width: 760px) {
    .ep-live-table thead th,
    .ep-live-table tbody td {
        padding: 0.45rem 0.4rem;
    }

    .ep-live-subtable th,
    .ep-live-subtable td {
        padding: 0.36rem 0.36rem;
    }

    .ep-live-status {
        margin-left: 0.25rem;
        font-size: 0.58rem;
    }

    .ep-live-actions {
        margin-left: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.28rem;
    }

    .ep-live-actions .liofo-mh-history-pill {
        min-height: 30px;
        font-size: 0.74rem !important;
        padding: 0.28rem 0.58rem !important;
    }

    .ep-alerts-status-grid {
        grid-template-columns: 1fr;
    }

    .ep-alerts-feed {
        max-height: 13.5rem;
    }

    .ep-onboarding-step {
        padding: 0.4rem 0.44rem;
    }

    .ep-live-tools {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .ep-live-unassigned-count {
        justify-self: flex-start;
    }

    .liofo-quick-table-fab {
        right: 0.72rem;
        bottom: 0.72rem;
    }
}

.ep-alerts-feed__item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(15, 23, 42, 0.55);
}

.ep-alerts-feed__title {
    font-weight: 600;
    font-size: 0.92rem;
    color: rgba(248, 250, 252, 0.98);
}

.ep-alerts-feed__body {
    font-size: 0.82rem;
    color: rgba(203, 213, 225, 0.95);
    line-height: 1.4;
}

.ep-alerts-empty {
    margin: 0;
    font-size: 0.88rem;
}

.ep-palier-watch {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.08rem 0.35rem;
    border-radius: 6px;
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(125, 211, 252, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: rgba(56, 189, 248, 0.08);
}

.ep-plan-cards-host--secondary[hidden] {
    display: none !important;
}

.liofo-quick-table-fab {
    position: fixed;
    right: 1.1rem;
    bottom: 1.1rem;
    z-index: 100;
    box-shadow: 0 10px 26px rgba(2, 6, 23, 0.45);
}

.liofo-quick-table-fab[hidden] {
    display: none !important;
}

.liofo-quick-table-fab.is-visible {
    display: inline-flex !important;
}

/* ——— Workspace v1 (étape 2026-04-24-06) ——— */
/* LIOFO_EP_TABLE_FIRST_2026_05_18_01 — Mon plan de sortie : deux tableaux complets */
.ep-plan-overview--table-first {
    max-width: min(1120px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.ep-plan-overview--table-first .ep-live-tools--overview {
    margin-bottom: 0.85rem;
}

.ep-plan-table-section {
    margin-top: 1.15rem;
    padding-top: 0.15rem;
}

.ep-plan-table-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 0.75rem;
    margin-bottom: 0.55rem;
}

.ep-plan-table-section__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.96);
}

.ep-plan-table-section__count {
    font-weight: 500;
    color: rgba(148, 163, 184, 0.95);
}

.ep-plan-table-section__body--clamp {
    max-height: min(52vh, 420px);
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 14px;
}

.ep-plan-table-section__body--clamp.is-expanded {
    max-height: none;
}

.ep-plan-table-host.ep-live-table-host {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(2, 6, 23, 0.45);
}

.ep-plan-table-empty {
    margin: 0.65rem 0 0;
    font-size: 0.82rem;
}

.ep-plan-table-empty.is-hidden {
    display: none !important;
}

.ep-my-strategies-panel {
    max-width: min(920px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.ep-strategy-summary__head--centered {
    text-align: center;
}

.ep-my-strategies-panel .ep-my-strategies__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

.ep-apply-profile-tips {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
    font-size: 0.82rem;
    line-height: 1.45;
}

.ep-apply-profile-tips li[hidden] {
    display: none !important;
}

.ep-apply-profile-tips-hint {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
}

.ep-plan-overview {
    max-width: 920px;
    margin: 0 auto 1rem;
}

.ep-plan-overview__body--compact {
    max-height: 280px;
    overflow: auto;
}

.ep-plan-overview-block + .ep-plan-overview-block {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.ep-plan-overview-block__title {
    margin: 0 0 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: rgba(226, 232, 240, 0.95);
}

.ep-plan-overview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.ep-plan-overview-table th,
.ep-plan-overview-table td {
    padding: 0.35rem 0.45rem;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.ep-workspace-pilot {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin: 0 auto 1.25rem;
    max-width: 920px;
}

.ep-workspace-panel.is-hidden {
    display: none !important;
}

.ep-plan-overview-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.65rem;
}

.ep-plan-overview-expanded:not(.is-hidden) {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.ep-apply-asset-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.35rem 0.75rem;
    max-height: 220px;
    overflow: auto;
    margin: 0.5rem 0;
}

.ep-apply-asset-item {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    font-size: 0.82rem;
}

.ep-apply-section__title {
    margin: 0.75rem 0 0.35rem;
    font-size: 0.9rem;
}

.ep-profile-grid--apply {
    margin-top: 0.5rem;
}

#ep-panel-create .ep-cell-profile,
#ep-panel-create #ep-start-personal-wrap,
#ep-panel-create #ep-start-blank,
#ep-panel-create .ep-profile-grid[role="radiogroup"]:not(.ep-profile-grid--apply) {
    display: none !important;
}
