/* A-08 — graphe multi-sauts Bitcoin (live Blockstream) */
.mh-hero { padding: 2.8rem 0 2rem; border-bottom: 1px solid #e2e8f0; background: #fff; }
.mh-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: .65rem; letter-spacing: .12em; text-transform: uppercase; color: #64748b; }
.mh-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.7rem, 4vw, 2.6rem); color: #0f172a; margin: .5rem 0 .55rem; line-height: 1.08; }
.mh-lede { max-width: 860px; color: #475569; font-size: .9rem; line-height: 1.65; }
.mh-run { display: flex; flex-wrap: wrap; gap: .45rem 1.1rem; margin-top: 1rem; font-size: .7rem; color: #64748b; }
.mh-run b { color: #0f172a; }
.mh-sec { padding: 1.7rem 0 0; }
.mh-sec h2 { font-family: 'Space Grotesk', sans-serif; font-size: 1.08rem; color: #0f172a; margin: 0 0 .35rem; }
.mh-sub { color: #64748b; font-size: .78rem; margin: 0 0 .9rem; line-height: 1.55; }
.mh-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; padding: 1rem; }
.mh-form { display: grid; grid-template-columns: minmax(0, 2.2fr) 120px 120px auto; gap: .6rem; align-items: end; }
.mh-field label { display: block; font-size: .63rem; text-transform: uppercase; letter-spacing: .07em; color: #64748b; margin-bottom: .25rem; }
.mh-input, .mh-select { width: 100%; box-sizing: border-box; border: 1px solid #cbd5e1; border-radius: 6px; padding: .55rem .6rem; font-size: .78rem; color: #0f172a; background: #fff; }
.mh-input:focus, .mh-select:focus { outline: 2px solid #bfdbfe; border-color: #2563eb; }
.mh-btn { border: 1px solid #cbd5e1; background: #fff; color: #0f172a; border-radius: 6px; padding: .55rem .8rem; font-size: .75rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.mh-btn:hover { border-color: #2563eb; color: #1d4ed8; }
.mh-btn.primary { background: #0f172a; border-color: #0f172a; color: #fff; }
.mh-btn.primary:hover { background: #1e293b; }
.mh-btn:disabled { opacity: .45; cursor: wait; }
.mh-examples { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.mh-ex { border: 1px dashed #cbd5e1; background: #f8fafc; color: #475569; border-radius: 999px; padding: .22rem .6rem; font-size: .66rem; cursor: pointer; }
.mh-ex:hover { border-color: #2563eb; color: #1d4ed8; }
.mh-status { margin-top: .7rem; font-size: .75rem; color: #475569; min-height: 1.2rem; }
.mh-status b { color: #0f172a; }
.mh-progress { height: 4px; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-top: .45rem; }
.mh-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #2563eb, #7c3aed); transition: width .2s; }
.mh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.mh-kpi { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: .7rem .8rem; }
.mh-kpi .l { font-family: 'JetBrains Mono', monospace; font-size: .57rem; letter-spacing: .08em; text-transform: uppercase; color: #64748b; }
.mh-kpi .v { font-family: 'Space Grotesk', sans-serif; font-size: 1.3rem; font-weight: 700; color: #0f172a; margin-top: .2rem; }
.mh-kpi .d { font-size: .65rem; color: #94a3b8; margin-top: .2rem; }
.mh-graph-wrap { background: #fff; border: 1px solid #e2e8f0; border-radius: 9px; overflow: auto; }
.mh-graph { display: block; min-width: 760px; width: 100%; height: auto; background: radial-gradient(circle at 15% 20%, #f8fafc 0, #fff 55%); }
.mh-legend { display: flex; flex-wrap: wrap; gap: .9rem; padding: .55rem .8rem; border-top: 1px solid #f1f5f9; font-size: .66rem; color: #64748b; }
.mh-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: .3rem; }
.mh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.mh-table { width: 100%; border-collapse: collapse; font-size: .71rem; }
.mh-table th { text-align: left; background: #f8fafc; color: #64748b; font-size: .59rem; text-transform: uppercase; letter-spacing: .05em; padding: .45rem .5rem; border-bottom: 1px solid #e2e8f0; }
.mh-table td { padding: .45rem .5rem; border-bottom: 1px solid #f1f5f9; color: #334155; vertical-align: top; }
.mh-table tr:last-child td { border-bottom: 0; }
.mh-table code, .mh-mono { font-family: 'JetBrains Mono', monospace; font-size: .66rem; }
.mh-tag { display: inline-block; font-family: 'JetBrains Mono', monospace; font-size: .57rem; padding: .07rem .35rem; border-radius: 999px; border: 1px solid #e2e8f0; white-space: nowrap; }
.mh-tag.sanc { color: #be123c; border-color: #fecdd3; background: #fff1f2; }
.mh-tag.root { color: #1d4ed8; border-color: #bfdbfe; background: #eff6ff; }
.mh-tag.gray { color: #475569; background: #f8fafc; }
.mh-score { font-family: 'Space Grotesk', sans-serif; font-size: 2.6rem; font-weight: 700; line-height: 1; color: #0f172a; }
.mh-score small { font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 500; color: #64748b; }
.mh-level { display: inline-block; margin-top: .35rem; padding: .2rem .55rem; border-radius: 999px; font-size: .66rem; font-weight: 700; }
.mh-level.low { background: #ecfdf5; color: #047857; }
.mh-level.mid { background: #fffbeb; color: #92400e; }
.mh-level.high { background: #fff7ed; color: #c2410c; }
.mh-level.crit { background: #fff1f2; color: #be123c; }
.mh-note { border-left: 3px solid #f59e0b; background: #fffbeb; padding: .7rem .85rem; border-radius: 0 6px 6px 0; font-size: .75rem; color: #78350f; line-height: 1.55; }
.mh-note.blue { border-left-color: #2563eb; background: #eff6ff; color: #1e3a8a; }
.mh-summary { white-space: pre-wrap; font-size: .78rem; line-height: 1.65; color: #334155; }
.mh-config { margin-top: .7rem; font-size: .72rem; color: #475569; }
.mh-config summary { cursor: pointer; color: #1d4ed8; }
.mh-config-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .55rem; }
.mh-config-grid .full { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .mh-form { grid-template-columns: 1fr 1fr; }
  .mh-form .wide { grid-column: 1 / -1; }
  .mh-kpis { grid-template-columns: 1fr 1fr; }
  .mh-grid { grid-template-columns: 1fr; }
  .mh-config-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mh-kpis { grid-template-columns: 1fr; }
  .mh-form { grid-template-columns: 1fr; }
}

/* ── A-08 Convergence — panneau de restitution ───────────────────────────── */
.cv-toolbar {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  margin: .2rem 0 .5rem;
}
.cv-toolbar .mh-status { margin: 0; }
.cv-badge {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: .58rem; letter-spacing: .09em; padding: .22rem .5rem;
  border-radius: 999px; border: 1px solid #cbd5e1; color: #64748b;
  background: #f8fafc; white-space: nowrap;
}
.cv-badge.synthetic { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.cv-badge.real { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.cv-caption {
  font-size: .68rem; color: #64748b; margin: 0 0 .7rem;
  overflow-wrap: anywhere;
}
.cv-caption code { font-family: 'JetBrains Mono', monospace; font-size: .64rem; }
.cv-capped { color: #be123c; font-weight: 700; }
.cv-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem; margin-bottom: .7rem;
}
.cv-kpi {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: .7rem .8rem; min-width: 0;
}
.cv-kpi .l {
  font-family: 'JetBrains Mono', monospace; font-size: .56rem;
  letter-spacing: .08em; text-transform: uppercase; color: #64748b;
}
.cv-kpi .v {
  font-family: 'Space Grotesk', sans-serif; font-size: 1.25rem;
  font-weight: 700; color: #0f172a; margin-top: .2rem;
}
.cv-kpi .d { font-size: .63rem; color: #94a3b8; margin-top: .2rem; }
.cv-table-wrap {
  background: #fff; border: 1px solid #e2e8f0; border-radius: 9px;
  overflow-x: auto;
}
.cv-table { min-width: 720px; }
.cv-table td { vertical-align: middle; }
.cv-table .num { text-align: right; white-space: nowrap; }
.cv-code {
  display: inline-block; font-family: 'JetBrains Mono', monospace;
  font-size: .6rem; font-weight: 700; color: #1d4ed8;
  background: #eff6ff; border: 1px solid #bfdbfe;
  border-radius: 5px; padding: .1rem .34rem;
}
.cv-target {
  font-family: 'JetBrains Mono', monospace; font-size: .58rem;
  color: #94a3b8; margin-top: .12rem; overflow-wrap: anywhere;
}
.cv-conf {
  display: inline-block; font-size: .6rem; font-weight: 700;
  border-radius: 999px; padding: .1rem .42rem; white-space: nowrap;
}
.cv-conf.low { color: #be123c; background: #fff1f2; }
.cv-conf.medium { color: #92400e; background: #fffbeb; }
.cv-conf.high { color: #047857; background: #ecfdf5; }
.cv-why {
  border: 1px solid #cbd5e1; background: #fff; color: #1d4ed8;
  border-radius: 5px; padding: .22rem .45rem; font-size: .63rem;
  font-weight: 600; cursor: pointer; white-space: nowrap;
}
.cv-why:hover { border-color: #2563eb; background: #eff6ff; }
.cv-why:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.cv-detail td {
  background: #f8fafc; border-top: 1px solid #e2e8f0;
  padding: .7rem .8rem;
}
.cv-proof { font-size: .72rem; color: #334155; line-height: 1.55; }
.cv-proof b { color: #0f172a; }
.cv-proof span {
  display: block; font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; color: #64748b; margin-top: .1rem;
}
.cv-proof p { margin: .28rem 0 .55rem; }
.cv-proof-meta { font-size: .6rem; color: #94a3b8; }
.cv-empty { color: #64748b; font-size: .72rem; padding: .9rem; text-align: center; }
.cv-annotation {
  display: flex; flex-wrap: wrap; gap: .3rem .6rem; align-items: baseline;
  border-left: 3px solid #f59e0b; background: #fffbeb;
  border-radius: 0 6px 6px 0; padding: .55rem .75rem;
  margin-top: .6rem; font-size: .7rem; color: #78350f;
}
.cv-annotation b { color: #92400e; }
.cv-limits-box { margin-top: .7rem; }
.cv-limits-box ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.cv-limits-box li { margin-bottom: .22rem; }
.cv-foot { font-size: .64rem; color: #94a3b8; line-height: 1.55; margin: .6rem 0 0; }
@media (max-width: 860px) {
  .cv-kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cv-kpis { grid-template-columns: 1fr; }
  .cv-toolbar { align-items: stretch; }
  .cv-toolbar .mh-btn { width: 100%; }
  .cv-badge { align-self: flex-start; }
}
