/* ==========================================================================
   JAYU v19.1.0 · EVOLUTION LAYER · Obsidian Universe, refinado
   Capa final, aditiva y reversible. Solo presentación.
   - Todas las reglas dependen de html.jx (lo añade jayu-evolution-1910.js).
   - ?jx=off desactiva la capa en el dispositivo; quitar el <link> la elimina.
   - No altera auth, OWNER, Stripe, push, agentes, datos ni lógica.
   Prefijo de especificidad: "html.jx body:not(#jx0)" supera a la capa
   spatial 18.0.14 (que usa :is() con un ID) sin tocar su archivo.
   ========================================================================== */

html.jx {
  --jx-space: #03050c;
  --jx-ink: #eceaf9;
  --jx-ink-2: #c3c6dd;
  --jx-muted: #8f97b3;
  --jx-violet: #8b5cf6;
  --jx-lavender: #b9a5ff;
  --jx-cyan: #5ee6e0;
  --jx-gold: #f3c777;
  --jx-up: #3ee0a1;
  --jx-down: #ff6f8a;
  --jx-line: rgba(185, 165, 255, .15);
  --jx-line-strong: rgba(185, 165, 255, .32);
  --jx-glass: linear-gradient(180deg, rgba(24, 20, 48, .58), rgba(9, 10, 22, .54));
  --jx-glass-solid: linear-gradient(180deg, rgba(20, 17, 40, .94), rgba(9, 10, 21, .94));
  --jx-radius: 20px;
  --jx-radius-sm: 12px;
  --jx-shadow: inset 0 1px 0 rgba(255, 255, 255, .045), 0 30px 70px -38px rgba(0, 0, 0, .85);
  --jx-ease: cubic-bezier(.16, 1, .3, 1);
  --jx-safe-b: env(safe-area-inset-bottom, 0px);
  --jx-dock: 0px;
}
@media (max-width: 760px) {
  html.jx body:has(.jayu-mobile-dock.is-visible) { --jx-dock: 76px; }
}

/* --------------------------------------------------------------------------
   1. Tipografía y ritmo base
   -------------------------------------------------------------------------- */
html.jx body:not(#jx0) { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.jx body:not(#jx0) :is(h1, h2) { text-wrap: balance; }
html.jx body:not(#jx0) p { text-wrap: pretty; }
html.jx ::selection { background: rgba(139, 92, 246, .55); color: #fff; }

/* --------------------------------------------------------------------------
   2. Sistema de controles flotantes (Voz · Radio · Risk · Campana · Historial)
   Escritorio: columna ordenada. Móvil: botones orbitales compactos de 46 px,
   apilados sin solaparse y siempre por encima del dock inferior.
   -------------------------------------------------------------------------- */
html.jx body:not(#jx0) .jayu-neural-voice-toggle,
html.jx body:not(#jx0) .jayu-market-radio > summary,
html.jx body:not(#jx0) :is(.obsidian-controls > a, .obsidian-risk-float:not([open]) > summary) {
  background: rgba(13, 11, 28, .72) !important;
  border: 1px solid var(--jx-line) !important;
  border-radius: 999px !important;
  color: var(--jx-ink) !important;
  text-shadow: none !important;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .9) !important;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color .2s, transform .2s var(--jx-ease), background .2s;
}
html.jx body:not(#jx0) .jayu-neural-voice-toggle:hover,
html.jx body:not(#jx0) .jayu-market-radio > summary:hover,
html.jx body:not(#jx0) :is(.obsidian-controls > a, .obsidian-risk-float > summary):hover { border-color: var(--jx-line-strong) !important; }
html.jx body:not(#jx0) .jayu-neural-voice-toggle[aria-pressed="true"] {
  color: #fff !important;
  border-color: rgba(185, 165, 255, .6) !important;
  box-shadow: 0 0 0 3px rgba(139, 92, 246, .18), 0 0 22px rgba(139, 92, 246, .45) !important;
}

@media (min-width: 761px) {
  html.jx body:not(#jx0) .jayu-neural-voice-toggle { right: 20px !important; bottom: calc(20px + 104px) !important; padding: 9px 14px !important; min-height: 40px; font-size: 12.5px !important; }
  html.jx body:not(#jx0) .jayu-market-radio { right: 20px !important; bottom: calc(20px + 56px) !important; }
  html.jx body:not(#jx0) .jayu-market-radio > summary { padding: 9px 14px !important; min-height: 40px; font-size: 12.5px; text-align: center; }
  html.jx body:not(#jx0) .obsidian-controls { right: 20px !important; bottom: 20px !important; }
  html.jx body:not(#jx0) .obsidian-risk-float:not([open]) { right: 20px !important; bottom: 20px !important; }
  html.jx body:not(#jx0) :is(.obsidian-controls > a, .obsidian-risk-float:not([open]) > summary) { min-height: 40px !important; padding: 9px 16px !important; font-size: 12.5px !important; }
}

/* Iconos (máscaras SVG: nítidas, monocromas, sin dependencias) */
html.jx {
  --jx-ico-voice: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 10v4M8 7v10M12 4v16M16 8v8M20 11v2'/%3E%3C/svg%3E");
  --jx-ico-radio: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M7.8 7.8a6 6 0 0 0 0 8.4M16.2 7.8a6 6 0 0 1 0 8.4M4.9 4.9a10 10 0 0 0 0 14.2M19.1 4.9a10 10 0 0 1 0 14.2'/%3E%3C/svg%3E");
  --jx-ico-risk: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.5'/%3E%3Cpath d='M8.5 7h7M8.5 11h1M12 11h0M15.5 11h0M8.5 14.5h1M12 14.5h0M15.5 14.5v3M8.5 17.5h1M12 17.5h0'/%3E%3C/svg%3E");
}

@media (max-width: 760px) {
  html.jx body:not(#jx0) {
    --jx-fb: calc(max(12px, var(--jx-safe-b)) + var(--jx-dock));
  }
  html.jx body:not(#jx0) :is(.jayu-neural-voice-toggle, .jayu-market-radio, .obsidian-controls, .obsidian-risk-float:not([open]), .jayu-notifications, #jayu-global-history) {
    transition: bottom .28s var(--jx-ease);
  }
  /* botones orbitales */
  html.jx body:not(#jx0) .jayu-neural-voice-toggle,
  html.jx body:not(#jx0) .jayu-market-radio > summary,
  html.jx body:not(#jx0) :is(.obsidian-controls > a, .obsidian-risk-float:not([open]) > summary) {
    position: relative;
    display: grid !important;
    place-items: center;
    width: 46px !important;
    height: 46px !important;
    min-height: 46px !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    overflow: hidden;
  }
  html.jx body:not(#jx0) .obsidian-risk-float:not([open]) > summary > span { display: none !important; }
  html.jx body:not(#jx0) .jayu-neural-voice-toggle::before,
  html.jx body:not(#jx0) .jayu-market-radio > summary::before,
  html.jx body:not(#jx0) :is(.obsidian-controls > a, .obsidian-risk-float:not([open]) > summary)::before {
    content: "";
    width: 20px;
    height: 20px;
    background: var(--jx-lavender);
    -webkit-mask: var(--jx-ico) center / contain no-repeat;
    mask: var(--jx-ico) center / contain no-repeat;
  }
  html.jx body:not(#jx0) .jayu-neural-voice-toggle { --jx-ico: var(--jx-ico-voice); }
  html.jx body:not(#jx0) .jayu-neural-voice-toggle[aria-pressed="true"]::before { background: #fff; }
  html.jx body:not(#jx0) .jayu-neural-voice-toggle[aria-pressed="true"]::after {
    content: ""; position: absolute; top: 9px; right: 9px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--jx-up); box-shadow: 0 0 8px var(--jx-up);
  }
  html.jx body:not(#jx0) .jayu-market-radio > summary { --jx-ico: var(--jx-ico-radio); }
  html.jx body:not(#jx0) .jayu-market-radio[open] > summary { border-color: rgba(185, 165, 255, .6) !important; }
  html.jx body:not(#jx0) :is(.obsidian-controls > a, .obsidian-risk-float:not([open]) > summary) { --jx-ico: var(--jx-ico-risk); }

  /* pila derecha: Risk (abajo) · Radio · Voz (arriba) */
  html.jx body:not(#jx0) .obsidian-controls,
  html.jx body:not(#jx0) .obsidian-risk-float:not([open]) {
    position: fixed !important; right: 12px !important; left: auto !important;
    bottom: var(--jx-fb) !important; width: auto !important; z-index: 115 !important;
  }
  html.jx body:not(#jx0) .jayu-market-radio {
    right: 12px !important; bottom: calc(var(--jx-fb) + 54px) !important; max-width: none !important;
  }
  html.jx body:not(#jx0) .jayu-neural-voice-toggle {
    right: 12px !important; bottom: calc(var(--jx-fb) + 108px) !important;
  }
  /* pila izquierda: campana · historial solo en la app instalada (sin barra del navegador) */
  html.jx body:not(#jx0) .jayu-notifications { left: 12px !important; bottom: var(--jx-fb) !important; }
  html.jx body:not(#jx0) .jayu-notifications .jayu-bell { width: 46px; height: 46px; }
  html.jx:not(.jx-standalone) body:not(#jx0) #jayu-global-history { display: none !important; }
  html.jx.jx-standalone body:not(#jx0) #jayu-global-history { left: 8px !important; bottom: calc(var(--jx-fb) + 54px) !important; transform: scale(.9); transform-origin: left bottom; }

  /* menú de Radio como hoja inferior legible */
  html.jx body:not(#jx0) .jayu-market-radio[open] .jayu-radio-menu {
    position: fixed !important;
    left: 10px !important; right: 10px !important; width: auto !important;
    bottom: calc(var(--jx-fb) + 112px) !important;
    max-height: min(62svh, 30rem) !important;
    border: 1px solid var(--jx-line) !important;
    border-radius: 18px !important;
    background: var(--jx-glass-solid) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7) !important;
    padding: 18px !important;
  }
  html.jx body:not(#jx0) .jayu-radio-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  html.jx body:not(#jx0) .jayu-radio-actions button { min-height: 40px; flex: 1 1 auto; }

  /* Risk Tools abierto: hoja inferior a pantalla casi completa */
  html.jx body:not(#jx0) .obsidian-risk-float[open] {
    position: fixed !important; left: 8px !important; right: 8px !important; width: auto !important;
    bottom: max(8px, var(--jx-safe-b)) !important; top: auto !important;
    max-height: calc(100svh - 84px) !important; z-index: 9991 !important;
    border: 1px solid var(--jx-line) !important; border-radius: 20px !important;
    background: var(--jx-glass-solid) !important;
  }

  /* toasts de flujo: arriba, compactos, sin tapar controles ni dock */
  html.jx body:not(#jx0) .obsidian-event-toast {
    inset: calc(env(safe-area-inset-top, 0px) + 66px) 12px auto 12px !important;
    max-width: none !important;
    padding: .55rem .8rem !important;
    font-size: 12.5px !important;
    line-height: 1.35 !important;
    border-radius: 14px !important;
    background: rgba(10, 9, 22, .9) !important;
    border: 1px solid var(--jx-line) !important;
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    pointer-events: none;
  }

  /* dock inferior: más táctil y legible */
  html.jx body:not(#jx0) .jayu-mobile-dock.is-visible {
    left: 10px !important; right: 10px !important;
    bottom: max(10px, var(--jx-safe-b)) !important;
    border-radius: 18px !important;
    border: 1px solid var(--jx-line) !important;
  }
  html.jx body:not(#jx0) .jayu-mobile-dock a { min-height: 52px; font-size: 10.5px !important; letter-spacing: .06em; }
}

/* --------------------------------------------------------------------------
   3. Cabecera móvil del Home en una sola fila
   -------------------------------------------------------------------------- */
@media (max-width: 560px) {
  html.jx body.jayu-v14-home:not(#jx0) header.topbar {
    display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
    gap: 8px !important; min-height: 60px; padding: 8px 12px !important;
  }
  html.jx body.jayu-v14-home:not(#jx0) header.topbar .brand { flex: 0 0 auto !important; width: auto !important; min-width: 0; max-width: 52px; }
  html.jx body.jayu-v14-home:not(#jx0) header.topbar .nav-actions { flex: 0 0 auto !important; }
  html.jx body.jayu-v14-home:not(#jx0) header.topbar .brand-copy { display: none !important; }
  html.jx body.jayu-v14-home:not(#jx0) header.topbar .brand-mark { width: 40px !important; height: 40px !important; border-radius: 12px !important; }
  html.jx body.jayu-v14-home:not(#jx0) header.topbar .nav-actions {
    margin-left: auto !important; display: flex !important; flex-wrap: nowrap !important;
    align-items: center !important; gap: 6px !important; width: auto !important; min-width: 0;
  }
}

/* --------------------------------------------------------------------------
   4. Home · Universe: el orbe como centro gravitatorio
   -------------------------------------------------------------------------- */
html.jx body:not(#jx0) #jayu-universe .jayu-universe-copy h1 { letter-spacing: -.045em; }
html.jx body:not(#jx0) #jayu-universe .jayu-hero-lead { color: var(--jx-ink-2); }
/* El orbe de ORION se conserva tal cual: ya tiene sus propias órbitas. */
html.jx body:not(#jx0) .obsidian-quant-caption { letter-spacing: .32em; color: rgba(185, 165, 255, .82); }

/* CTA del hero: jerarquía clara (primario · secundario · terciario) */
html.jx body:not(#jx0) #jayu-universe .hero-cta { gap: 10px !important; }
html.jx body:not(#jx0) #jayu-universe .hero-cta > a {
  min-height: 44px; border-radius: 12px !important; transition: transform .2s var(--jx-ease), box-shadow .2s, border-color .2s;
}
html.jx body:not(#jx0) #jayu-universe .hero-cta > a:first-child {
  background: linear-gradient(135deg, #7c4dff, #9d6bff 55%, #7c3aed) !important;
  border-color: transparent !important; color: #fff !important;
  box-shadow: 0 12px 34px -12px rgba(124, 77, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25) !important;
}
html.jx body:not(#jx0) #jayu-universe .hero-cta > a:hover { transform: translateY(-2px); }
@media (max-width: 560px) {
  html.jx body:not(#jx0) #jayu-universe .hero-cta { display: grid !important; grid-template-columns: 1fr 1fr; width: 100%; max-width: 360px; margin-inline: auto; }
  html.jx body:not(#jx0) #jayu-universe .hero-cta > a { width: 100% !important; justify-content: center; padding-inline: 10px !important; font-size: 13px !important; white-space: normal !important; text-align: center; }
  html.jx body:not(#jx0) #jayu-universe .hero-cta > a:first-child { grid-column: 1 / -1; }
  html.jx body:not(#jx0) #jayu-universe .jy-secondary { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; }
}

/* Encabezados de etapa: numeración y regla luminosa */
html.jx body:not(#jx0) .obsidian-stage-heading { position: relative; }
html.jx body:not(#jx0) .obsidian-stage-heading::after {
  content: ""; display: block; height: 1px; margin-top: 14px; width: min(260px, 60%);
  background: linear-gradient(90deg, rgba(185, 165, 255, .55), transparent);
}

/* --------------------------------------------------------------------------
   5. Superficies selectivas para módulos densos (lectura, no cajas sin alma)
   El universo sigue abierto; solo los bloques de datos ganan un vidrio sutil.
   -------------------------------------------------------------------------- */
html.jx body:not(#jx0) :is(
  #global-order-flow.jayu-global-flow,
  #levels .jpm-card,
  .jayu-sentiment-panel,
  .agents-observatory section.chat,
  #jayuAutoBrief.agent-auto-brief,
  .jt-chart-card,
  .jayu-strategies,
  .jt-ai-card,
  .jrb-card,
  .jec-card,
  .jt-right-card
) {
  background: var(--jx-glass) !important;
  border: 1px solid var(--jx-line) !important;
  border-radius: var(--jx-radius) !important;
  box-shadow: var(--jx-shadow) !important;
}
html.jx body:not(#jx0) :is(#global-order-flow.jayu-global-flow, #levels .jpm-card, .jayu-sentiment-panel, .agents-observatory section.chat, .jayu-strategies, .jt-ai-card, .jrb-card, .jec-card, .jt-right-card) {
  padding: clamp(18px, 3vw, 32px) !important;
}
@media (min-width: 761px) {
  html.jx body:not(#jx0) :is(#global-order-flow.jayu-global-flow, #levels .jpm-card, .agents-observatory section.chat, .jt-chart-card) {
    -webkit-backdrop-filter: blur(10px) saturate(115%); backdrop-filter: blur(10px) saturate(115%);
  }
}

/* filas de datos: separación fina y legible */
html.jx body:not(#jx0) :is(.gf-row, .jpm-row, .jpm-level, .auto-brief-group > *) {
  border-bottom: 1px solid rgba(185, 165, 255, .08) !important;
}
html.jx body:not(#jx0) .gf-row { padding-block: 8px; font-variant-numeric: tabular-nums; }
html.jx body:not(#jx0) #jayu-public-market :is(button, [role=tab]) { min-height: 36px; }
html.jx body:not(#jx0) :is(#global-order-flow, #jayu-public-market) :is(h2, h3) { letter-spacing: -.02em; }

/* --------------------------------------------------------------------------
   6. Living Agents: legibilidad y presencia
   -------------------------------------------------------------------------- */
html.jx body:not(#jx0) .obsidian-constellation :is(strong, b) { letter-spacing: .01em; }
html.jx body:not(#jx0) .obsidian-constellation :is(small, span) { text-shadow: 0 1px 6px #03050c, 0 0 14px #03050c; }
html.jx body:not(#jx0) .agents-observatory .intro h1 em {
  background: linear-gradient(100deg, #c4b5fd, #8b5cf6 45%, #5ee6e0);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html.jx body:not(#jx0) .agents-observatory .intro-tags > * {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px;
  border: 1px solid var(--jx-line); border-radius: 999px; background: rgba(13, 11, 28, .55);
}
html.jx body:not(#jx0) .agents-observatory #ask textarea {
  border-radius: 14px !important; border: 1px solid var(--jx-line-strong) !important;
  background: rgba(6, 7, 16, .72) !important; padding: 14px !important; font-size: 15px;
}
html.jx body:not(#jx0) .agents-observatory #prompts :is(button, a) {
  border: 1px solid var(--jx-line) !important; border-radius: 999px !important;
  background: rgba(13, 11, 28, .6) !important; padding: 7px 13px !important; min-height: 36px;
}

/* Destello de gran ejecución: se conserva el pulso vivo, pero como viñeta
   en los bordes; el centro queda limpio y el texto siempre legible. */
html.jx[data-obs-wave] body:not(#jx0) .obsidian-event-wash {
  mix-blend-mode: screen;
  animation-duration: 1.5s !important;
}
html.jx[data-obs-wave=buy] body:not(#jx0) .obsidian-event-wash {
  background: radial-gradient(ellipse at center, transparent 0 46%, rgba(52, 211, 153, .14) 72%, rgba(16, 185, 129, .26) 100%) !important;
}
html.jx[data-obs-wave=sell] body:not(#jx0) .obsidian-event-wash {
  background: radial-gradient(ellipse at center, transparent 0 46%, rgba(248, 113, 113, .13) 72%, rgba(220, 38, 38, .24) 100%) !important;
}
html.jx[data-obs-wave] body:not(#jx0) .obsidian-event-wash::after { border-width: 1px !important; opacity: .55; }
@media (max-width: 760px) {
  html.jx[data-obs-wave] body:not(#jx0) .obsidian-event-wash { opacity: .7; }
  html.jx[data-obs-wave] body:not(#jx0) .obsidian-event-wash::after { display: none !important; }
}

/* --------------------------------------------------------------------------
   7. Terminal / Market Intelligence
   -------------------------------------------------------------------------- */
html.jx body:not(#jx0) .jt-chart-card { padding: 14px !important; }
html.jx body:not(#jx0) .jt-chart-wrap { border-radius: 14px !important; overflow: hidden; border: 1px solid rgba(185, 165, 255, .10) !important; }
html.jx body:not(#jx0) .jt-timeframes { gap: 4px !important; padding: 4px; border-radius: 12px; background: rgba(6, 7, 16, .5); width: fit-content; max-width: 100%; }
html.jx body:not(#jx0) .jt-timeframes .jt-tf {
  min-height: 34px; min-width: 44px; border-radius: 9px !important; font-variant-numeric: tabular-nums;
  border: 1px solid transparent !important; background: transparent !important;
}
html.jx body:not(#jx0) .jt-timeframes .jt-tf.active {
  background: rgba(139, 92, 246, .22) !important; border-color: rgba(185, 165, 255, .45) !important; color: #fff !important;
}
html.jx body:not(#jx0) .jt-asset-icon { box-shadow: 0 0 0 1px rgba(243, 199, 119, .35), 0 0 22px rgba(243, 199, 119, .25); }
html.jx body:not(#jx0) .jt-sidebar a { border-radius: 10px; }

/* botón del informe vigente: pastilla con etiqueta, no losa vacía */
html.jx body:not(#jx0) #jt-current-report-btn {
  display: inline-flex !important; align-items: center !important; justify-content: center !important; gap: 8px;
  min-height: 40px !important; height: auto !important; padding: 8px 16px !important;
  border-radius: 12px !important; font-weight: 700; letter-spacing: .04em;
  background: linear-gradient(135deg, #6d3ff0, #8b5cf6) !important; color: #fff !important;
  box-shadow: 0 10px 28px -14px rgba(124, 77, 255, .95) !important;
}
html.jx body:not(#jx0) #jt-current-report-btn::before {
  content: attr(data-jx-label) " ·"; font-weight: 500; opacity: .82; letter-spacing: .02em;
}

@media (max-width: 760px) {
  /* el gráfico entra antes en pantalla: controles en carriles horizontales */
  html.jx body:not(#jx0) .jt-mobile-top {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important;
    scroll-snap-type: x proximity; scrollbar-width: none; gap: 6px !important; padding-inline: 10px !important;
    -webkit-mask: linear-gradient(90deg, #000 88%, transparent); mask: linear-gradient(90deg, #000 88%, transparent);
  }
  html.jx body:not(#jx0) .jt-mobile-top::-webkit-scrollbar { display: none; }
  html.jx body:not(#jx0) .jt-mobile-top > * { flex: 0 0 auto !important; scroll-snap-align: start; }
  html.jx body:not(#jx0) .jt-mobile-top button { min-height: 38px !important; padding: 6px 14px !important; font-size: 13px !important; }

  html.jx body:not(#jx0) .jt-chart-card { padding: 10px !important; border-radius: 16px !important; }
  html.jx body:not(#jx0) .jayu-neural-follow {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 6px !important;
    scrollbar-width: none; padding-bottom: 2px;
  }
  html.jx body:not(#jx0) .jayu-neural-follow::-webkit-scrollbar { display: none; }
  html.jx body:not(#jx0) .jayu-neural-follow > button {
    flex: 0 0 auto !important; min-height: 38px !important; padding: 6px 12px !important; font-size: 12.5px !important;
    border: 1px solid var(--jx-line) !important; border-radius: 999px !important; background: rgba(13, 11, 28, .6) !important;
    white-space: nowrap !important;
  }
  html.jx body:not(#jx0) .jayu-neural-follow > small { display: none !important; }

  html.jx body:not(#jx0) .jt-chart-head { gap: 8px !important; }
  html.jx body:not(#jx0) .jt-asset-title { gap: 10px !important; align-items: center !important; }
  html.jx body:not(#jx0) .jt-price-meta { font-size: 10px !important; line-height: 1.35 !important; opacity: .75; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  html.jx body:not(#jx0) .jt-chart-account-status { display: flex !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; }
  html.jx body:not(#jx0) .jt-chart-account-status .jayu-auth-trigger { min-height: 38px !important; padding: 6px 14px !important; }
  html.jx body:not(#jx0) .jt-status time { font-size: 11px; opacity: .8; }
  html.jx body:not(#jx0) .jt-chart-actions {
    display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 6px !important;
    scrollbar-width: none; grid-template-columns: none !important; justify-content: flex-start !important;
  }
  html.jx body:not(#jx0) .jt-chart-actions::-webkit-scrollbar { display: none; }
  html.jx body:not(#jx0) .jt-chart-actions > :is(.jt-btn, a, button) {
    flex: 0 0 auto !important; width: auto !important; min-height: 40px !important; white-space: nowrap !important;
    padding: 8px 14px !important; font-size: 12.5px !important;
  }
  html.jx body:not(#jx0) .jt-chart-actions > .jt-chart-history-slot:empty { display: none !important; }
  html.jx body:not(#jx0) #jt-current-report-btn { order: -1; }

  html.jx body:not(#jx0) .jt-timeframes { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
  html.jx body:not(#jx0) .jt-timeframes > span { display: none !important; }
  html.jx body:not(#jx0) .jt-chart-wrap,
  html.jx body:not(#jx0) #jt-chart-host { height: clamp(360px, 64svh, 560px) !important; min-height: 0 !important; }
  html.jx body:not(#jx0) .jt-level-strip { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  html.jx body:not(#jx0) :is(.jt-ai-metrics, .jec-pipeline) { gap: 8px !important; }
  html.jx body:not(#jx0) :is(.jrb-toolbar, .jec-head-actions) > button { min-height: 42px; }
}

/* --------------------------------------------------------------------------
   8. Tienda ORION: vitrina premium (mismos productos, precios y enlaces)
   -------------------------------------------------------------------------- */
html.jx[data-jx-route="store"] body:not(#jx0) .store-hero {
  max-width: none !important; padding-block: clamp(48px, 8vw, 96px) 24px !important;
  background: transparent !important;
}
html.jx[data-jx-route="store"] body:not(#jx0) .store-hero h1 span {
  background: linear-gradient(100deg, #c4b5fd, #8b5cf6 40%, #5ee6e0 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
}
html.jx[data-jx-route="store"] body:not(#jx0) .store-hero .eyebrow { color: var(--jx-lavender) !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .trust-strip span {
  border-color: var(--jx-line) !important; background: rgba(13, 11, 28, .55); color: var(--jx-ink-2) !important;
}
/* aviso ORION superior */
html.jx[data-jx-route="store"] body:not(#jx0) .store-shell > :is(section, aside, div):first-of-type:not(.product-grid):not(.store-top) a[href*="orion"],
html.jx[data-jx-route="store"] body:not(#jx0) a[href*="orion"]:is(.primary-btn, .orion-cta) {
  background: linear-gradient(135deg, #6d3ff0, #8b5cf6) !important; color: #fff !important; border: 0 !important;
}

html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-filter-wrap {
  position: sticky; top: 8px; z-index: 40; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin: 8px 0 6px; padding: 8px; border-radius: 16px;
  background: rgba(8, 8, 18, .82); border: 1px solid var(--jx-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-filter { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-filter::-webkit-scrollbar { display: none; }
html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-filter button {
  display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; min-height: 40px; padding: 6px 14px;
  border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--jx-ink-2);
  font: 600 13px/1 inherit; cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-filter button small {
  min-width: 22px; padding: 3px 6px; border-radius: 999px; background: rgba(185, 165, 255, .12); color: var(--jx-lavender); font-size: 11px;
}
html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-filter button:hover { color: #fff; }
html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-filter button[aria-pressed="true"] {
  background: rgba(139, 92, 246, .22); border-color: rgba(185, 165, 255, .45); color: #fff;
}
html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-count { margin: 0 8px 0 0; color: var(--jx-muted); font-size: 12px; white-space: nowrap; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-card.jx-hidden { display: none !important; }

html.jx[data-jx-route="store"] body:not(#jx0) .product-grid { gap: clamp(14px, 2vw, 24px) !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-card {
  display: flex !important; flex-direction: column;
  background: var(--jx-glass) !important;
  border: 1px solid var(--jx-line) !important;
  border-radius: 22px !important;
  box-shadow: var(--jx-shadow) !important;
  overflow: hidden !important;
  transition: transform .35s var(--jx-ease), border-color .3s, box-shadow .35s !important;
}
html.jx[data-jx-route="store"] body:not(#jx0) .product-card:hover {
  transform: translateY(-4px);
  border-color: var(--jx-line-strong) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 40px 80px -40px rgba(124, 77, 255, .55) !important;
}
html.jx[data-jx-route="store"] body:not(#jx0) .product-card figure {
  position: relative; margin: 10px 10px 0 !important; border-radius: 14px !important; overflow: hidden;
  border: 1px solid rgba(185, 165, 255, .10) !important; background: #070812 !important;
}
/* capturas claras de TradingView: atenuadas e integradas en el universo oscuro */
html.jx[data-jx-route="store"] body:not(#jx0) .product-card figure img { filter: saturate(.92) brightness(.86) contrast(1.04); transition: transform .5s var(--jx-ease), filter .4s !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-card:hover figure img { filter: none; transform: scale(1.03) !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-card figure::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(5, 6, 14, .55)), radial-gradient(120% 90% at 50% 0%, transparent 60%, rgba(5, 6, 14, .35));
}
html.jx[data-jx-route="store"] body:not(#jx0) .product-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-num span:first-child { color: var(--jx-lavender) !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .tag { border-color: var(--jx-line) !important; background: rgba(13, 11, 28, .6) !important; color: var(--jx-ink-2) !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-card h2 { font-size: clamp(20px, 2vw, 24px) !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-card .hook { color: var(--jx-gold) !important; font-size: 14px; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-card p { color: var(--jx-muted) !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .price-row { margin-top: auto; padding-top: 14px !important; border-top: 1px solid rgba(185, 165, 255, .08); }
html.jx[data-jx-route="store"] body:not(#jx0) .price strong { font-size: 28px !important; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #fff; }
html.jx[data-jx-route="store"] body:not(#jx0) .product-card[data-jx-tags~="free"] .price strong { color: var(--jx-up) !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .card-actions { gap: 8px !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .card-actions > a { min-height: 44px; flex: 1 1 140px; border-radius: 12px !important; }
html.jx[data-jx-route="store"] body:not(#jx0) .card-actions .primary-btn {
  background: linear-gradient(135deg, #6d3ff0, #8b5cf6) !important; color: #fff !important; border: 0 !important;
  box-shadow: 0 10px 26px -14px rgba(124, 77, 255, .95);
}
html.jx[data-jx-route="store"] body:not(#jx0) .card-actions .contact-btn {
  background: rgba(13, 11, 28, .55) !important; color: var(--jx-ink) !important; border: 1px solid var(--jx-line-strong) !important;
}
/* producto destacado: ancho completo en escritorio */
@media (min-width: 900px) {
  html.jx[data-jx-route="store"] body:not(#jx0) .product-card.featured-pro { grid-column: 1 / -1; display: grid !important; grid-template-columns: 1.25fr 1fr; align-items: stretch; }
  html.jx[data-jx-route="store"] body:not(#jx0) .product-card.featured-pro figure { margin: 12px !important; aspect-ratio: auto !important; min-height: 100%; }
  html.jx[data-jx-route="store"] body:not(#jx0) .product-card.featured-pro figure img { height: 100% !important; object-fit: cover; }
  html.jx[data-jx-route="store"] body:not(#jx0) .product-card.featured-pro .product-body { padding: 32px 30px 28px 14px !important; justify-content: center; }
  html.jx[data-jx-route="store"] body:not(#jx0) .product-card.featured-pro h2 { font-size: 34px !important; }
}
html.jx[data-jx-route="store"] body:not(#jx0) .product-card.featured-pro {
  border-color: rgba(243, 199, 119, .38) !important;
  background: radial-gradient(120% 120% at 100% 0%, rgba(243, 199, 119, .08), transparent 50%), var(--jx-glass) !important;
}
html.jx[data-jx-route="store"] body:not(#jx0) .buy-flow,
html.jx[data-jx-route="store"] body:not(#jx0) .legal-box {
  border: 1px solid var(--jx-line) !important; border-radius: var(--jx-radius) !important; background: var(--jx-glass) !important; padding: 24px !important;
}
html.jx[data-jx-route="store"] body:not(#jx0) .flow-step { border-left-color: var(--jx-violet) !important; }
@media (max-width: 760px) {
  html.jx[data-jx-route="store"] body:not(#jx0) .product-grid { grid-template-columns: 1fr !important; }
  html.jx[data-jx-route="store"] body:not(#jx0) .jx-store-count { display: none; }
  html.jx[data-jx-route="store"] body:not(#jx0) .flow-grid { grid-template-columns: 1fr !important; }
}

/* fichas de producto */
html.jx[data-jx-route="product"] body:not(#jx0) :is(.product-shot, .content-panel, .side-panel, .product-buybox) {
  border: 1px solid var(--jx-line) !important; border-radius: var(--jx-radius) !important; background: var(--jx-glass) !important;
}
html.jx[data-jx-route="product"] body:not(#jx0) .product-buybox .contact-btn { background: linear-gradient(135deg, #6d3ff0, #8b5cf6) !important; color: #fff !important; border: 0 !important; min-height: 44px; }

/* --------------------------------------------------------------------------
   9. Archivo de informes y barra de lectura
   -------------------------------------------------------------------------- */
html.jx[data-jx-route="archive"] body:not(#jx0) .report-card {
  border: 1px solid var(--jx-line) !important; border-radius: 16px !important; background: var(--jx-glass) !important;
  transition: border-color .2s, transform .25s var(--jx-ease);
}
html.jx[data-jx-route="archive"] body:not(#jx0) .report-card:hover { border-color: var(--jx-line-strong) !important; transform: translateY(-2px); }
html.jx .jx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 10000; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #8b5cf6, #5ee6e0); box-shadow: 0 0 10px rgba(139, 92, 246, .8); pointer-events: none;
}

/* --------------------------------------------------------------------------
   10. Accesibilidad y rendimiento
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html.jx body:not(#jx0) :is(.product-card, .report-card, .hero-cta > a) { transition: none !important; }
}
@media (hover: none) {
  html.jx[data-jx-route="store"] body:not(#jx0) .product-card:hover { transform: none; }
}
@media print {
  html.jx .jx-progress, html.jx .jx-store-filter-wrap { display: none !important; }
}
