/**
 * Widgets dashboard Liofo — réutilisables (.liofo-w-*)
 * Module « Santé du marché » : .liofo-mh-v2
 */

/* ----- Scope & carte racine ----- */
.liofo-w-scope {
  --liofo-w-surface: rgba(12, 16, 24, 0.65);
  --liofo-w-border: rgba(255, 255, 255, 0.1);
  --liofo-w-muted: rgba(255, 255, 255, 0.58);
  --liofo-w-text: rgba(255, 255, 255, 0.92);
  --liofo-w-radius: 16px;
  --liofo-w-radius-sm: 12px;
}

/* Fond section « scores » volontairement neutre : les cartes / briques gardent leur surface lisible */
.liofo-market-health.liofo-mh-v2 {
  margin: 0 0 2.25rem;
  padding: 0.5rem 0 1.6rem;
  border-radius: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.liofo-mh-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

.liofo-mh-header {
  margin-bottom: 1.35rem;
}

.liofo-mh-title {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.liofo-mh-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--liofo-w-muted);
  line-height: 1.5;
  max-width: 36rem;
}

.liofo-mh-block-title {
  margin: 1.5rem 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.45);
}

/* ----- Bannière mock ----- */
.liofo-w-banner {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--liofo-w-radius-sm);
  font-size: 0.88rem;
  line-height: 1.45;
}

.liofo-w-banner--mock {
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.38);
  color: #ede9fe;
}

/* ----- Notices liste ----- */
.liofo-w-notice-list {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.liofo-w-notice {
  margin: 0;
  padding: 0.55rem 0.85rem;
  border-radius: 10px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.liofo-w-notice--warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: #fef3c7;
}

.liofo-w-notice--info {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.32);
  color: #dbeafe;
}

.liofo-w-notice--positive {
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.32);
  color: #d1fae5;
}

/* ----- Carte héros ----- */
.liofo-w-card {
  background: var(--liofo-w-surface);
  border: 1px solid var(--liofo-w-border);
  border-radius: var(--liofo-w-radius);
}

.liofo-w-card--hero {
  padding: 1.25rem 1.2rem 1.35rem;
  position: relative;
  overflow: hidden;
}

/* Deux lectures : crypto (principal) + traditionnel / macro (secondaire) */
.liofo-mh-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: start;
}

@media (min-width: 720px) {
  .liofo-mh-hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 0.5rem 1.5rem;
  }

  .liofo-mh-hero-trad {
    padding-left: 1.15rem;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }
}

.liofo-mh-hero-crypto {
  min-width: 0;
}

.liofo-mh-hero-trad {
  min-width: 0;
}

.liofo-mh-hero-trad-tagline {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.72rem;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.42);
  font-weight: 500;
}

.liofo-mh-hero-trad-score {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin: 0.05rem 0 0.45rem;
}

.liofo-mh-trad-num {
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #bae6fd;
}

.liofo-mh-trad-suffix {
  font-size: 0.95rem;
  font-weight: 600;
}

.liofo-mh-hero-trad-muted {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.48);
}

.liofo-mh-hero-trad--empty .liofo-mh-trad-num {
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: normal;
}

.liofo-mh-hero-trad--empty .liofo-w-meter--trad {
  opacity: 0.42;
}

.liofo-w-card--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background: radial-gradient(ellipse 80% 60% at 20% 0%, currentColor, transparent 70%);
}

.liofo-mh-hero--risk {
  color: #fb7185;
}

.liofo-mh-hero--neutral {
  color: #94a3b8;
}

.liofo-mh-hero--positive {
  color: #34d399;
}

.liofo-mh-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.liofo-mh-regime-line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  font-size: 0.82rem;
  color: var(--liofo-w-muted);
}

.liofo-mh-hero > .liofo-mh-regime-line {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.liofo-w-badge--regime {
  border-color: rgba(56, 189, 248, 0.4);
  color: #bae6fd;
  background: rgba(56, 189, 248, 0.1);
}

.liofo-mh-confidence {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
}

.liofo-mh-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.45);
}

.liofo-mh-hero-score {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin: 0.15rem 0 0.65rem;
}

.liofo-mh-score-num {
  font-size: clamp(2.75rem, 8vw, 3.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #e0f2fe;
  text-shadow: 0 0 32px rgba(56, 189, 248, 0.25);
}

.liofo-mh-score-suffix {
  font-size: 1.1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}

.liofo-mh-hero-hint {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 40rem;
}

.liofo-mh-hero-detail-wrap {
  margin: 0.75rem 0 0;
}

.liofo-mh-detail-trigger {
  margin: 0;
  padding: 0.35rem 0;
  background: transparent;
  border: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 500;
  color: rgba(147, 197, 253, 0.95);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  border-radius: 4px;
}

.liofo-mh-detail-trigger:hover {
  color: #e0f2fe;
}

.liofo-mh-detail-trigger:focus {
  outline: none;
}

.liofo-mh-detail-trigger:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.85);
  outline-offset: 3px;
}

/* Lecture croisée — compact ; détail macro aussi dans la grille indicateurs */
.liofo-mh-insight-strip {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: var(--liofo-w-radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.liofo-mh-insight-strip-kicker {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: rgba(255, 255, 255, 0.42);
}

.liofo-mh-insight-strip-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.5rem 1rem;
}

.liofo-mh-macro-line {
  margin: 0.2rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.35rem;
}

.liofo-mh-macro-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #bae6fd;
  letter-spacing: -0.02em;
}

.liofo-mh-macro-suffix {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
}

.liofo-mh-macro-tier {
  font-size: 0.78rem;
  color: var(--liofo-w-muted);
}

.liofo-mh-insight-col {
  min-width: 0;
}

.liofo-mh-insight-strip-main .liofo-mh-insight-badge {
  display: inline-flex;
  margin-bottom: 0;
  flex: 0 0 auto;
  border-color: rgba(167, 139, 250, 0.4);
  color: #e9d5ff;
  background: rgba(167, 139, 250, 0.1);
}

.liofo-mh-insight-message {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.liofo-mh-insight-methodology {
  flex: 1 1 100%;
  width: 100%;
  margin: 0.15rem 0 0;
}

.liofo-mh-insight-note {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
}

.liofo-mh-insight-note:first-child {
  margin-top: 0.25rem;
}

/* Badges état (héros) */
.liofo-w-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  color: #fef9c3;
}

.liofo-w-state-badge.liofo-w-hero-badge--risk {
  border-color: rgba(251, 113, 133, 0.45);
  color: #fecdd3;
  background: rgba(251, 113, 133, 0.12);
}

.liofo-w-state-badge.liofo-w-hero-badge--neutral {
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
}

.liofo-w-state-badge.liofo-w-hero-badge--positive {
  border-color: rgba(52, 211, 153, 0.45);
  color: #d1fae5;
  background: rgba(52, 211, 153, 0.1);
}

/* ----- Mètres / barres ----- */
.liofo-w-meter {
  width: 100%;
}

.liofo-w-meter-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.liofo-w-meter--hero .liofo-w-meter-track {
  height: 10px;
}

.liofo-w-meter--trad .liofo-w-meter-track {
  height: 6px;
}

.liofo-w-meter--trad .liofo-w-meter-fill {
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.78), rgba(129, 140, 248, 0.78));
}

.liofo-w-meter-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #818cf8);
  transition: width 0.45s ease;
}

.liofo-mh-hero--risk .liofo-mh-hero-crypto .liofo-w-meter-fill {
  background: linear-gradient(90deg, #fb7185, #f97316);
}

.liofo-mh-hero--positive .liofo-mh-hero-crypto .liofo-w-meter-fill {
  background: linear-gradient(90deg, #34d399, #22d3ee);
}

.liofo-mh-hero--neutral .liofo-mh-hero-crypto .liofo-w-meter-fill {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.liofo-w-meter--thin .liofo-w-meter-track {
  height: 4px;
}

/* ----- Partial bandeau ----- */
.liofo-w-partial {
  margin: 0 0 0.5rem;
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  font-size: 0.85rem;
  color: #fde68a;
  line-height: 1.45;
}

/* ----- Alertes (pills) ----- */
.liofo-mh-alerts-section {
  margin-top: 0.25rem;
}

.liofo-mh-alerts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.liofo-w-alert {
  margin: 0;
  padding: 0.65rem 0.9rem;
  border-radius: var(--liofo-w-radius-sm);
  font-size: 0.9rem;
  line-height: 1.45;
  border: 1px solid transparent;
}

.liofo-w-alert--warning {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.32);
  color: #fecaca;
}

.liofo-w-alert--info {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(96, 165, 250, 0.3);
  color: #dbeafe;
}

.liofo-w-alert--positive {
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #d1fae5;
}

/* ----- Grille widgets ----- */
.liofo-w-widgets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.75rem;
}

/* Santé du marché : 6 briques — 2 colonnes mobile, 3 colonnes à partir de ~700px (2×3 équilibré, pas d’orphelin) */
.liofo-mh-grid.liofo-w-widgets-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  align-items: stretch;
}

@media (min-width: 700px) {
  .liofo-mh-grid.liofo-w-widgets-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.95rem;
  }
}

.liofo-w-widget {
  position: relative;
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-left: 3px solid rgba(148, 163, 184, 0.5);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 5.75rem;
}

/* Briques cliquables — léger relief, hint visuel discret */
.liofo-mh-brick.liofo-w-widget {
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.18s ease;
}

.liofo-mh-brick.liofo-w-widget:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.34);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.liofo-mh-brick.liofo-w-widget:focus {
  outline: none;
}

.liofo-mh-brick.liofo-w-widget:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: 2px;
}

.liofo-mh-brick.liofo-w-widget::after {
  content: '';
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.5px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.28);
  transform: rotate(-45deg);
  opacity: 0.55;
  pointer-events: none;
}

.liofo-w-widget-title {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

/* Titre + score 0–100 sur une ligne (hiérarchie : libellé qualitatif sous le titre) */
.liofo-mh-brick-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  margin-bottom: 0.35rem;
}

.liofo-mh-brick-head .liofo-w-widget-title {
  flex: 1;
  min-width: 0;
}

.liofo-mh-brick-score-wrap {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 0.06rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.liofo-mh-brick-score-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: #bae6fd;
  letter-spacing: -0.03em;
}

.liofo-mh-brick-score-suffix {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.32);
}

.liofo-mh-brick--no-score .liofo-mh-brick-score-num {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.38);
}

.liofo-mh-brick--no-score .liofo-mh-brick-score-suffix {
  display: none;
}

.liofo-w-widget-value {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
}

.liofo-w-widget-caption {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.5);
  flex: 1;
}

.liofo-w-widget-badge {
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: rgba(167, 139, 250, 0.15);
  color: #ede9fe;
}

/* États visuels cartes */
.liofo-w-state--positive {
  border-left-color: #34d399;
}

.liofo-w-state--neutral {
  border-left-color: #94a3b8;
}

.liofo-w-state--caution {
  border-left-color: #fbbf24;
}

.liofo-w-state--risk {
  border-left-color: #fb7185;
}

.liofo-w-state--simulated {
  border-left-color: #a78bfa;
}

.liofo-w-state--fallback {
  border-left-color: #64748b;
}

.liofo-w-state--unavailable {
  border-left-color: #64748b;
  opacity: 0.92;
}

.liofo-w-meter--unavailable .liofo-w-meter-track {
  opacity: 0.35;
}

.liofo-w-meter-fill--empty {
  opacity: 0;
}

.liofo-w-widget-badge--unavailable {
  border-color: rgba(148, 163, 184, 0.5);
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
}

/* ----- Transparence ----- */
.liofo-w-transparency {
  margin-top: 0.5rem;
}

.liofo-w-transparency-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.65rem;
}

.liofo-w-transparency-card {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  line-height: 1.45;
}

.liofo-w-transparency-card h4 {
  margin: 0 0 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.5);
}

.liofo-w-transparency-card--real h4 {
  color: #6ee7b7;
}

.liofo-w-transparency-card--mock h4 {
  color: #c4b5fd;
}

.liofo-w-transparency-card--fallback h4 {
  color: #fcd34d;
}

.liofo-w-transparency-card--unavailable h4 {
  color: #94a3b8;
}

.liofo-w-transparency-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
}

.liofo-w-transparency-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
}

/* ----- Debug ----- */
.liofo-w-debug {
  margin-top: 1.35rem;
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.liofo-w-debug-summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  list-style: none;
}

.liofo-w-debug summary::-webkit-details-marker {
  display: none;
}

.liofo-w-debug-pre {
  margin: 0.65rem 0 0;
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  line-height: 1.35;
  color: #a5f3fc;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
}

@media (min-width: 900px) {
  .liofo-mh-alerts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }
}

/* ----- Modale détail (brique / score global) ----- */
.liofo-mh-modal[hidden] {
  display: none !important;
}

.liofo-mh-modal {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.liofo-mh-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.75);
  backdrop-filter: blur(5px);
}

.liofo-mh-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26.5rem;
  max-height: min(88vh, 680px);
  overflow: auto;
  padding: 1.35rem 1.4rem 1.45rem;
  border-radius: 18px;
  background: linear-gradient(165deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 72px rgba(0, 0, 0, 0.55);
  -webkit-overflow-scrolling: touch;
}

.liofo-mh-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liofo-mh-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.liofo-mh-modal__close:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.9);
  outline-offset: 2px;
}

.liofo-mh-modal__title {
  margin: 0 2rem 0.85rem 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  line-height: 1.35;
  padding-right: 0.25rem;
}

.liofo-mh-modal__body {
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.92);
}

.liofo-mh-modal__section {
  margin: 0 0 1rem;
}

.liofo-mh-modal__section:last-child {
  margin-bottom: 0;
}

.liofo-mh-modal__section h3 {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: rgba(148, 163, 184, 0.95);
}

.liofo-mh-modal__section p {
  margin: 0;
  color: rgba(226, 232, 240, 0.88);
}

.liofo-mh-modal__muted {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.82rem;
}

.liofo-mh-modal__sources {
  list-style: none;
  margin: 0;
  padding: 0;
}

.liofo-mh-modal__sources li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.84rem;
}

.liofo-mh-modal__sources li:last-child {
  border-bottom: none;
}

.liofo-mh-modal__pill {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  background: rgba(52, 211, 153, 0.12);
  color: #a7f3d0;
}

.liofo-mh-modal__pill--off {
  border-color: rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.1);
  color: #cbd5e1;
}

.liofo-mh-modal__table-wrap {
  overflow-x: auto;
  margin: 0.35rem 0 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.liofo-mh-modal__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.liofo-mh-modal__table th,
.liofo-mh-modal__table td {
  padding: 0.4rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.liofo-mh-modal__table th {
  color: rgba(148, 163, 184, 0.95);
  font-weight: 600;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.liofo-mh-modal__table tr:last-child td {
  border-bottom: none;
}

.liofo-mh-modal__table tr.is-excluded td {
  opacity: 0.65;
}

body.liofo-mh-modal-open {
  overflow: hidden;
}
