/* Cycle Tracker · fenêtre « Historique du Bitcoin » (cycle_historique.js) — version épurée du 14/10/2026.
   Une phrase-verdict, un graphique qui prend la place, une phrase de constat. */
#ct-hmodal.hx { padding: 1.4vh 1vw; }
#ct-hmodal.hx .hx-box {
  width: min(1760px, 98vw); height: min(96vh, 1200px); max-height: none;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--ct-card-solid, #13151d); border: 1px solid var(--ct-border-accent, #343b5c);
  border-radius: 16px; box-shadow: 0 30px 90px -20px rgba(0,0,0,.75);
}
#ct-hmodal.hx .hx-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 12px 18px 11px 22px; border-bottom: 1px solid var(--ct-border-soft, rgba(35,40,64,.45)); }
#ct-hmodal.hx .hx-title { font-family: "Instrument Serif", Georgia, serif; font-size: 25px; color: var(--ct-fg, #eceef2); margin-right: auto; line-height: 1.1; }
#ct-hmodal.hx .hx-title .acc { background: linear-gradient(135deg, var(--ct-blue, #5eaff6), var(--ct-purple, #a78bfa));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
#ct-hmodal.hx .hx-tabs button { font-size: 12px; padding: 8px 16px; }
#ct-hmodal.hx .hx-close { flex: none; }
#ct-hmodal.hx .hx-body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px 24px 14px; overflow: auto; }

/* ── Verdict : pastille + une phrase ── */
#ct-hmodal.hx .hx-verdict { flex: none; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
#ct-hmodal.hx .hx-phase { flex: none; font: 700 14px/1 "Inter", "DM Sans", sans-serif; color: var(--c); padding: 8px 13px; border-radius: 99px;
  background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); }
#ct-hmodal.hx .hx-phrase { flex: 1 1 420px; font: 14.5px/1.5 "Inter", "DM Sans", sans-serif; color: #b6bccf; }
#ct-hmodal.hx .hx-phrase b { color: #eceef2; font-weight: 600; }
#ct-hmodal.hx .hx-j { flex: none; display: inline-flex; flex-direction: column; gap: 5px; width: 230px; }
#ct-hmodal.hx .hx-j-l { white-space: nowrap; }
#ct-hmodal.hx .hx-j-t { position: relative; height: 6px; border-radius: 4px; background: rgba(255,255,255,.08); }
#ct-hmodal.hx .hx-j-t i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: #3aa8e0; }
#ct-hmodal.hx .hx-j-t em { position: absolute; top: -4px; width: 2px; height: 14px; margin-left: -1px; background: #eceef2; border-radius: 1px; }
#ct-hmodal.hx .hx-j-l { font: 10.5px "DM Mono", ui-monospace, monospace; color: #7f87a6; }
#ct-hmodal.hx .hx-next { flex: none; font: 11.5px "DM Mono", ui-monospace, monospace; color: #7f87a6; }
#ct-hmodal.hx .hx-next b { color: #c9cde0; font-weight: 500; }

/* ── Boutons de vue + légende (une ligne) ── */
#ct-hmodal.hx .hx-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; flex: none; min-height: 30px; }
#ct-hmodal.hx .hx-seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--ct-pill, rgba(13,17,23,.65));
  border: 1px solid var(--ct-border, #232840); border-radius: 9px; }
#ct-hmodal.hx .hx-seg button { font: 11px "DM Mono", monospace; letter-spacing: .3px; cursor: pointer; background: none; border: 0;
  color: var(--ct-fg2, #9ba1b8); padding: 6px 13px; border-radius: 7px; transition: color .15s, background .15s; }
#ct-hmodal.hx .hx-seg button:hover { color: #fff; }
#ct-hmodal.hx .hx-seg button.is-active { background: var(--ct-blue, #5eaff6); color: #04121e; font-weight: 700; }
#ct-hmodal.hx .hx-legend { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; margin-left: auto;
  font: 12px "Inter", "DM Sans", sans-serif; color: #9ba1b8; }
#ct-hmodal.hx .hx-lg { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
#ct-hmodal.hx .sw-line { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
#ct-hmodal.hx .sw-box { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ── Graphique : toute la place restante ── */
#ct-hmodal.hx .hx-chart { position: relative; flex: 1 1 auto; min-height: 380px; }
#ct-hmodal.hx .hx-chart canvas { position: absolute; inset: 0; }

/* ── Lecture au survol : bande réservée sous le graphique ── */
#ct-hmodal.hx .hx-read { flex: none; height: 26px; display: flex; align-items: center; gap: 8px 16px; overflow: hidden; white-space: nowrap;
  padding: 0 4px; font: 12px "DM Mono", monospace; color: #9ba1b8; }
#ct-hmodal.hx .hx-read-idle { color: #5b6275; }
#ct-hmodal.hx .hx-rh { color: #eceef2; font-weight: 600; }
#ct-hmodal.hx .hx-rc { display: inline-flex; align-items: center; gap: 6px; }
#ct-hmodal.hx .hx-rc i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
#ct-hmodal.hx .hx-rc b { color: #eceef2; font-weight: 600; }

/* ── Pied : une phrase + la méthode repliée ── */
#ct-hmodal.hx .hx-foot { flex: none; display: flex; align-items: baseline; gap: 8px 24px; flex-wrap: wrap;
  border-top: 1px solid var(--ct-border-soft, rgba(35,40,64,.45)); padding-top: 10px; }
#ct-hmodal.hx .hx-lead { flex: 1 1 600px; margin: 0; font: 13.5px/1.55 "Inter", "DM Sans", sans-serif; color: #9ba1b8; }
#ct-hmodal.hx .hx-lead b { color: #eceef2; font-weight: 600; }
#ct-hmodal.hx .hx-meth { flex: 0 1 auto; }
#ct-hmodal.hx .hx-meth summary { cursor: pointer; list-style: none; white-space: nowrap; font: 11px "DM Mono", monospace; color: #7f87a6; }
#ct-hmodal.hx .hx-meth summary::-webkit-details-marker { display: none; }
#ct-hmodal.hx .hx-meth summary::before { content: "▸ "; }
#ct-hmodal.hx .hx-meth[open] { flex-basis: 100%; }
#ct-hmodal.hx .hx-meth[open] summary::before { content: "▾ "; }
#ct-hmodal.hx .hx-meth-body { margin-top: 8px; max-width: 980px; font: 12.5px/1.6 "Inter", sans-serif; color: #9ba1b8; }
#ct-hmodal.hx .hx-meth-body p { margin: 0 0 8px; }
#ct-hmodal.hx .hx-meth-body b { color: #eceef2; }
#ct-hmodal.hx .hx-m-src { font-size: 11.5px; color: #6a7094; }

@media (max-width: 700px) {
  #ct-hmodal.hx { padding: 0; }
  #ct-hmodal.hx .hx-box { width: 100vw; height: 100vh; border-radius: 0; }
  #ct-hmodal.hx .hx-body { padding: 10px 12px; }
  #ct-hmodal.hx .hx-title { font-size: 20px; }
  #ct-hmodal.hx .hx-tabs { width: 100%; overflow-x: auto; }
  #ct-hmodal.hx .hx-read { height: auto; min-height: 26px; white-space: normal; flex-wrap: wrap; }
  #ct-hmodal.hx .hx-chart { min-height: 300px; }
}
