/* CL_RQ_VNEXT_STEP3_BLUE_BLOB_FIX_V1 */

/* Neutralise les décors agressifs du panneau preuve sans toucher au JS */
.cl-p1-panel--proof,
#cl-p1-proof-panel{
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

#cl-p1-proof-panel::before,
#cl-p1-proof-panel::after,
.cl-p1-panel--proof::before,
.cl-p1-panel--proof::after,
#cl-p1-proof-panel .rightTop::before,
#cl-p1-proof-panel .rightTop::after,
#cl-p1-proof-panel .chartBox::before,
#cl-p1-proof-panel .chartBox::after{
  content: none !important;
  display: none !important;
}

#cl-p1-proof-panel .rightTop,
#cl-p1-proof-panel .chartBox,
#cl-p1-proof-panel .note,
#cl-p1-proof-panel .cl-p1-summary-card{
  position: relative;
  isolation: isolate;
  overflow: hidden !important;
  background-clip: padding-box !important;
}

/* Thème sombre : on garde un rendu premium, mais sans halo/forme géante */
html[data-theme="dark"] .cl-p1-panel--proof,
html[data-theme="dark"] #cl-p1-proof-panel{
  background: linear-gradient(180deg, rgba(8,18,38,.96), rgba(5,15,32,.94)) !important;
  background-image: none !important;
}

html[data-theme="dark"] #cl-p1-proof-panel .rightTop,
html[data-theme="dark"] #cl-p1-proof-panel .chartBox,
html[data-theme="dark"] #cl-p1-proof-panel .note,
html[data-theme="dark"] #cl-p1-proof-panel .cl-p1-summary-card{
  background: rgba(10,22,45,.78) !important;
  background-image: none !important;
  border-color: rgba(145,170,255,.14) !important;
}

/* Thème clair : même logique, neutre et stable */
html[data-theme="light"] .cl-p1-panel--proof,
html[data-theme="light"] #cl-p1-proof-panel{
  background: #fbfbfa !important;
  background-image: none !important;
}

html[data-theme="light"] #cl-p1-proof-panel .rightTop,
html[data-theme="light"] #cl-p1-proof-panel .chartBox,
html[data-theme="light"] #cl-p1-proof-panel .note,
html[data-theme="light"] #cl-p1-proof-panel .cl-p1-summary-card{
  background: #ffffff !important;
  background-image: none !important;
  border-color: rgba(15,23,42,.10) !important;
}

/* Le graphe doit rester lisible */
#cl-p1-proof-panel .tv-wrap,
#cl-p1-proof-panel #tvchart,
#cl-p1-proof-panel .tvchart,
#cl-p1-proof-panel #chart,
#cl-p1-proof-panel #candles_panel{
  position: relative;
  z-index: 1;
  overflow: hidden !important;
  border-radius: 16px !important;
}

#cl-p1-proof-panel canvas{
  background: transparent !important;
}
