/* Interactive indicator demo on /indicator. CSP: style-src 'self' — all
   presentation lives here; the JS only toggles data-attributes and positions
   overlays via CSS custom properties set per element (style attribute is
   forbidden — positions are applied through element.style.setProperty on
   `top`, which CSP does not block since it is a CSSOM write, not inline
   markup). Colors mirror the real extension palette. */
.idemo { max-width: 1080px; margin: 26px auto 8px; padding: 0 20px; }
.idemo__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.idemo__title { font-size: 22px; font-weight: 800; color: #ecedef; margin: 0; }
.idemo__note { color: #9c9fa8; font-size: 13px; }

.idemo__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.idemo__chip { border: 1px solid #26221b; background: #18130c; color: #9c9fa8; border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: all .15s ease; }
.idemo__chip:hover { color: #ecedef; border-color: #3a342a; }
.idemo__chip[aria-pressed="true"] { color: #1a1408; background: #c8a878; border-color: #c8a878; }
.idemo__chip--adv[aria-pressed="true"] { background: #69c2ff; border-color: #69c2ff; }

.idemo__stage { position: relative; height: 440px; border: 1px solid #26221b; border-radius: 14px; overflow: hidden; background: #0d1117; }
.idemo__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.idemo__line { position: absolute; left: 0; right: 0; height: 0; border-top: 1.6px solid; pointer-events: none; }
.idemo__line--dashed { border-top-style: dashed; }
.idemo__label { position: absolute; right: 8px; transform: translateY(-50%); font: 600 11px/1.4 -apple-system, "Segoe UI", Roboto, sans-serif; padding: 1px 7px; border-radius: 4px; background: rgba(9,14,22,.88); border: 1px solid; pointer-events: none; white-space: nowrap; }
.idemo__zone { position: absolute; left: 0; right: 0; pointer-events: none; }
.idemo__zone--battle { background: rgba(246,180,95,.10); border-top: 1px dashed rgba(246,180,95,.45); border-bottom: 1px dashed rgba(246,180,95,.45); }
.idemo__zone--void { background: repeating-linear-gradient(135deg, rgba(246,180,95,.14) 0 6px, transparent 6px 12px); border-top: 1px dashed rgba(246,180,95,.5); border-bottom: 1px dashed rgba(246,180,95,.5); }

.idemo [hidden] { display: none; }

.idemo__foot { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: #9c9fa8; font-size: 13px; }
.idemo__foot a { color: #e0c79a; font-weight: 700; }
@media (max-width: 640px) { .idemo__stage { height: 360px; } }

/* ===== GEX THEMES (GENERATED - do not edit, run scripts/gen-themes.py) ===== */
/* -- theme dark -- */
html[data-theme="dark"] .idemo__title { color: #e8edf2; }
html[data-theme="dark"] .idemo__note { color: #8f97a3; }
html[data-theme="dark"] .idemo__chip { background: #0a0b0d; }
html[data-theme="dark"] .idemo__chip { color: #8f97a3; }
html[data-theme="dark"] .idemo__chip { border-color: #1b1d22; }
html[data-theme="dark"] .idemo__chip:hover { color: #e8edf2; }
html[data-theme="dark"] .idemo__chip:hover { border-color: #14120f; }
html[data-theme="dark"] .idemo__chip[aria-pressed="true"] { color: #050506; }
html[data-theme="dark"] .idemo__stage { background: #050608; }
html[data-theme="dark"] .idemo__stage { border-color: #1b1d22; }
html[data-theme="dark"] .idemo__label { background: rgba(4, 5, 7, .88); }
html[data-theme="dark"] .idemo__foot { color: #8f97a3; }
/* -- theme white -- */
html[data-theme="white"] .idemo__title { color: #211d16; }
html[data-theme="white"] .idemo__note { color: #6c675d; }
html[data-theme="white"] .idemo__chip { background: #ffffff; }
html[data-theme="white"] .idemo__chip { color: #6c675d; }
html[data-theme="white"] .idemo__chip { border-color: #e3dccd; }
html[data-theme="white"] .idemo__chip:hover { color: #211d16; }
html[data-theme="white"] .idemo__chip:hover { border-color: #f5f4f2; }
html[data-theme="white"] .idemo__chip[aria-pressed="true"] { color: #fdfbf7; }
html[data-theme="white"] .idemo__chip[aria-pressed="true"] { background: #9a7434; }
html[data-theme="white"] .idemo__chip[aria-pressed="true"] { border-color: #9a7434; }
html[data-theme="white"] .idemo__chip--adv[aria-pressed="true"] { background: #1f78c0; }
html[data-theme="white"] .idemo__chip--adv[aria-pressed="true"] { border-color: #1f78c0; }
html[data-theme="white"] .idemo__stage { background: #f1f3f6; }
html[data-theme="white"] .idemo__stage { border-color: #e3dccd; }
html[data-theme="white"] .idemo__label { background: rgba(241, 243, 246, .88); }
html[data-theme="white"] .idemo__zone--battle { background: rgba(200, 134, 47, .10); }
html[data-theme="white"] .idemo__zone--battle { border-top-color: rgba(200, 134, 47, .45); }
html[data-theme="white"] .idemo__zone--battle { border-bottom-color: rgba(200, 134, 47, .45); }
html[data-theme="white"] .idemo__zone--void { background: repeating-linear-gradient(135deg, rgba(200, 134, 47, .14) 0 6px, transparent 6px 12px); }
html[data-theme="white"] .idemo__zone--void { border-top-color: rgba(200, 134, 47, .5); }
html[data-theme="white"] .idemo__zone--void { border-bottom-color: rgba(200, 134, 47, .5); }
html[data-theme="white"] .idemo__foot { color: #6c675d; }
html[data-theme="white"] .idemo__foot a { color: #b08a45; }
/* ===== END GEX THEMES ===== */









































/* ===== GEX THEMES MANUAL ===== */
/* Le mock de chart /indicator est peint en JS (couleurs des familles posees en
   style inline) : la SCENE et les pastilles restent sombres dans tous les
   themes, les encres inline (vert call / rouge put) restent lisibles dessus. */
html[data-theme="white"] .idemo__stage, html[data-theme="dark"] .idemo__stage { background: #101114 !important; }
html[data-theme="white"] .idemo__label, html[data-theme="dark"] .idemo__label { background: rgba(24, 19, 12, .9) !important; border-color: rgba(200, 168, 120, .35) !important; }
html[data-theme="white"] .idemo__chip { background: #18130c !important; color: #c6cedc !important; border-color: #26221b !important; }
html[data-theme="dark"] .idemo__chip { background: #18130c !important; color: #9c9fa8 !important; }
