/* Metodologías (web/metodos.js): stack 3D tipo Time Machine */
.mt-btn { gap: 6px; }
.mt-btn svg { color: #a78bfa; }
.mt-btn.on { color: #c4b5fd; border-color: rgba(167, 139, 250, .5); background: rgba(167, 139, 250, .12); }
@media (max-width: 1600px) { .mt-btn span { display: none; } }

#mtWrap { position: fixed; inset: 0; z-index: 90; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .28s ease;
  background: rgba(3, 4, 10, .6); backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15); }
#mtWrap.on { opacity: 1; pointer-events: auto; }
#mtWrap.closing { opacity: 0; transition: opacity .3s ease .1s; }

.mt-top { position: absolute; top: 14px; left: 20px; right: 20px; z-index: 300; display: flex; align-items: center; gap: 16px; }
.mt-brand { display: flex; align-items: center; gap: 10px; color: #c4b5fd; }
.mt-brand svg { width: 26px; height: 26px; filter: drop-shadow(0 0 10px rgba(167, 139, 250, .8)); }
.mt-brand b { display: block; font: 800 17px var(--mono); color: #fff; letter-spacing: -.01em; }
.mt-tf { margin-left: 18px; background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); }
.mt-at { color: rgba(255, 255, 255, .45); font: 11.5px var(--mono); margin-left: auto; }
.mt-x { width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); color: #fff; cursor: pointer; font-size: 15px; }
.mt-x:hover { background: rgba(255, 255, 255, .12); }
.mt-load { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); color: rgba(255, 255, 255, .7); display: flex; gap: 12px; align-items: center; font-size: 14px; }
.mt-load i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(167, 139, 250, .3); border-top-color: #a78bfa; animation: rsSpin .8s linear infinite; }

/* la tarjeta activa (con su gráfico) y atrás las siguientes, livianas */
.mt-stage { position: absolute; inset: 108px 230px 40px 40px; display: grid; place-items: center; z-index: 10;
  transform: scale(.55); opacity: 0; }
#mtWrap.on .mt-stage { transform: none; opacity: 1; transition: transform .62s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease; }   /* entra elástica */
#mtWrap.closing .mt-stage { transform: scale(.6); opacity: 0; transition: transform .38s cubic-bezier(.36, 0, .66, -.56), opacity .3s ease .08s; }   /* sale elástica */
.mt-slot, .mt-ghosts { grid-area: 1 / 1; width: min(1140px, 100%); height: min(640px, 100%); position: relative; }
.mt-slot { z-index: 2; }
.mt-card { position: absolute; inset: 0; border-radius: 26px; overflow: hidden;
  background: rgb(var(--float-rgb)); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 40px 110px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .07);
  transition: opacity .28s ease, transform .34s cubic-bezier(.2, .9, .3, 1); }
.mt-card.compra { border-color: color-mix(in srgb, var(--up) 40%, transparent); }
.mt-card.venta { border-color: color-mix(in srgb, var(--down) 45%, transparent); }
.mt-ghost { position: absolute; inset: 0; border-radius: 26px; padding: 10px 26px; display: flex; align-items: baseline; gap: 12px; pointer-events: auto; cursor: pointer;
  background: rgb(var(--float-rgb)); border: 1px solid rgba(255, 255, 255, .08);
  transform: translateY(calc(var(--k) * -34px)) scale(calc(1 - var(--k) * .045)); transform-origin: 50% 0;
  opacity: calc(1 - var(--k) * .22); filter: brightness(calc(1 - var(--k) * .2)); transition: transform .34s ease, opacity .34s ease; }
.mt-ghost b { font-size: 14px; font-weight: 800; color: var(--muted); }
.mt-ghost:hover { opacity: 1; }
.mt-ghost.compra { border-color: color-mix(in srgb, var(--up) 25%, transparent); }
.mt-ghost.venta { border-color: color-mix(in srgb, var(--down) 28%, transparent); }

.mt-sheen { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 90% at 10% -20%, rgba(var(--acc-rgb), .18), transparent 70%), radial-gradient(40% 80% at 95% -15%, rgba(167, 139, 250, .16), transparent 70%); }
.mt-card .mt-sheen::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .06) 50%, transparent 65%);
  transform: translateX(-100%); animation: mtSheen 1.4s .2s ease-out forwards; }
@keyframes mtSheen { to { transform: translateX(100%); } }
.mt-in { position: relative; display: grid; grid-template-columns: minmax(330px, 38%) 1fr; height: 100%; }
.mt-l { padding: 22px 22px 20px 26px; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid rgba(255, 255, 255, .06); }
.mt-l h2 { margin: 2px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.mt-l h4 { margin: 10px 0 2px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--faint); }
.mt-bias { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.mt-bias b { font: 800 13px var(--mono); letter-spacing: .1em; padding: 5px 12px; border-radius: 9px; }
.mt-bias.compra b { color: var(--up); background: color-mix(in srgb, var(--up) 14%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--up) 30%, transparent); }
.mt-bias.venta b { color: var(--down); background: color-mix(in srgb, var(--down) 16%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--down) 30%, transparent); }
.mt-bias.neutral b { color: var(--muted); background: rgba(148, 163, 184, .12); }
.mt-meter { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.mt-meter i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, rgba(var(--acc-rgb), .4), var(--acc)); transition: width 1s .3s cubic-bezier(.2, 1, .3, 1); }
.mt-card.active .mt-meter i { width: var(--w); }
.mt-bias.compra .mt-meter i { background: linear-gradient(90deg, color-mix(in srgb, var(--up) 30%, transparent), var(--up)); }
.mt-bias.venta .mt-meter i { background: linear-gradient(90deg, color-mix(in srgb, var(--down) 30%, transparent), var(--down)); }
.mt-bias em { font: 700 12px var(--mono); font-style: normal; color: var(--muted); }
.mt-ve { margin: 0; padding-left: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; line-height: 1.45; color: var(--text); }
.mt-ve li::marker { color: var(--acc); }
.mt-haria { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--text); padding: 9px 12px; border-radius: 12px; background: rgba(var(--acc-rgb), .07); border: 1px solid rgba(var(--acc-rgb), .18); }
.mt-plan { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 4px; }
.mt-plan > div { display: flex; flex-direction: column; gap: 1px; padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); }
.mt-plan span { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); }
.mt-plan b { font: 700 13px var(--mono); color: var(--text); }
.mt-plan b.up { color: var(--up); } .mt-plan b.dn { color: var(--down); } .mt-plan b.acc { color: var(--acc); }
.mt-noplan { color: var(--faint); font-size: 12.5px; padding: 8px 2px; }
.mt-r { position: relative; min-height: 0; background: rgb(var(--float-rgb)); }
.mt-cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; user-select: none; }
.mt-cv.grab { cursor: grabbing; }
.mt-leg { position: absolute; left: 14px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; max-width: 80%; pointer-events: none; }
.mt-leg span { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: rgba(6, 8, 14, .6); border: 1px solid currentColor; backdrop-filter: blur(4px); }
.c-up { color: var(--up); } .c-down { color: var(--down); } .c-acc { color: var(--acc); } .c-gold { color: var(--gold); } .c-warn { color: var(--warn); } .c-info { color: var(--info); } .c-faint { color: var(--faint); }
.mt-hint { position: absolute; right: 14px; bottom: 10px; font-size: 10.5px; color: rgba(255, 255, 255, .3); pointer-events: none; }

/* consenso */
.mt-ring { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; margin: 8px 0 2px; position: relative; }
.mt-ring svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.mt-ring circle { fill: none; stroke-width: 13; stroke-linecap: butt; transition: stroke-dasharray 1.2s cubic-bezier(.2, 1, .3, 1); }
.mt-ring circle.bg { stroke: rgba(255, 255, 255, .06); }
.mt-ring circle.up { stroke: var(--up); filter: drop-shadow(0 0 6px var(--up)); }
.mt-ring circle.dn { stroke: var(--down); filter: drop-shadow(0 0 6px var(--down)); }
.mt-ring circle.neu { stroke: rgba(148, 163, 184, .45); }
.mt-ring-c { position: absolute; left: 0; top: 0; width: 130px; height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.mt-ring-c b { font: 800 30px var(--mono); letter-spacing: -.03em; text-shadow: 0 0 24px currentColor; }
.mt-ring-c b.compra { color: var(--up); } .mt-ring-c b.venta { color: var(--down); } .mt-ring-c b.neutral { color: var(--muted); }
.mt-ring-c span { font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--faint); }
.mt-split { display: flex; flex-direction: column; gap: 6px; }
.mt-split div { display: flex; align-items: baseline; gap: 8px; }
.mt-split b { font: 800 18px var(--mono); min-width: 64px; }
.mt-split span { font-size: 12px; color: var(--muted); }
.mt-split .up b { color: var(--up); } .mt-split .dn b { color: var(--down); } .mt-split .neu b { color: var(--muted); }
.mt-votes > div { display: flex; flex-wrap: wrap; gap: 5px; }
.mt-chip { border-radius: 99px; padding: 3px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer; border: 1px solid; background: none; }
.mt-chip i { font: 700 10px var(--mono); font-style: normal; opacity: .7; }
.mt-chip.compra { color: var(--up); border-color: color-mix(in srgb, var(--up) 40%, transparent); background: color-mix(in srgb, var(--up) 8%, transparent); }
.mt-chip.venta { color: var(--down); border-color: color-mix(in srgb, var(--down) 45%, transparent); background: color-mix(in srgb, var(--down) 9%, transparent); }
.mt-chip.neutral { color: var(--muted); border-color: rgba(148, 163, 184, .3); }
.mt-chip:hover { filter: brightness(1.3); }
.mt-ia { margin-top: 10px; }
.mt-ia button { border: 1px solid rgba(167, 139, 250, .5); background: linear-gradient(90deg, rgba(167, 139, 250, .18), rgba(var(--acc-rgb), .14)); color: #ddd6fe;
  border-radius: 10px; padding: 7px 14px; font-weight: 700; font-size: 12.5px; cursor: pointer; box-shadow: 0 0 24px rgba(167, 139, 250, .2); }
.mt-ia button:disabled { opacity: .6; }
.mt-iatxt { font-size: 13px; line-height: 1.5; color: var(--text); margin-top: 8px; }
.mt-iatxt p { margin: 0 0 6px; } .mt-iatxt ul { margin: 2px 0 8px; padding-left: 18px; }
.mt-dots { display: inline-flex; gap: 4px; }
.mt-dots i { width: 6px; height: 6px; border-radius: 50%; background: #a78bfa; animation: iaDot 1s infinite ease-in-out; }
.mt-dots i:nth-child(2) { animation-delay: .15s; } .mt-dots i:nth-child(3) { animation-delay: .3s; }

/* línea de tiempo (derecha) y flechas */
.mt-time { position: absolute; right: 18px; top: 74px; bottom: 120px; z-index: 300; display: flex; flex-direction: column-reverse; justify-content: center; gap: 2px; }
.mt-time button:focus, .mt-nav button:focus, .mt-x:focus { outline: none; }
.mt-time button { --mag: 0; display: flex; align-items: center; justify-content: flex-end; gap: 8px; background: none; border: 0; padding: 1px 0; cursor: pointer; color: rgba(255, 255, 255, .4); }
.mt-time button span { font-size: calc(10px + var(--mag) * 3px); font-weight: 600; opacity: calc(.35 + var(--mag) * .65); transition: font-size .25s, opacity .25s; white-space: nowrap; }
.mt-time button i { width: calc(10px + var(--mag) * 16px); height: 3px; border-radius: 2px; background: currentColor; transition: width .25s; }
.mt-time button.compra { color: color-mix(in srgb, var(--up) 80%, white); }
.mt-time button.venta { color: color-mix(in srgb, var(--down) 80%, white); }
.mt-time button.cons i { height: 5px; }
.mt-time button.on span { color: #fff; text-shadow: 0 0 12px currentColor; }
.mt-time button.on i { box-shadow: 0 0 12px currentColor; }
.mt-time button:hover span { opacity: 1; }
.mt-nav { position: absolute; right: 26px; bottom: 34px; z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.mt-nav button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; font-size: 18px; cursor: pointer;
  background: radial-gradient(circle at 50% 30%, rgba(255, 255, 255, .22), rgba(255, 255, 255, .04)); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 24px rgba(var(--acc-rgb), .25), inset 0 1px 0 rgba(255, 255, 255, .3); transition: transform .15s, box-shadow .2s; }
.mt-nav button:hover:not(:disabled) { transform: scale(1.08); box-shadow: 0 10px 30px rgba(0, 0, 0, .5), 0 0 36px rgba(var(--acc-rgb), .55), inset 0 1px 0 rgba(255, 255, 255, .3); }
.mt-nav button:active:not(:disabled) { transform: scale(.95); }
.mt-nav button:disabled { opacity: .3; cursor: default; }
.mt-nav span { font: 700 12px var(--mono); color: rgba(255, 255, 255, .7); }
.mt-foot { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; z-index: 300; font-size: 11px; color: rgba(255, 255, 255, .35); pointer-events: none; }
/* celular / pantalla angosta: barra de arriba en dos filas, la tarjeta a todo el ancho (texto arriba con scroll, gráfico
   abajo), sin las tarjetas fantasma de atrás ni la línea de tiempo, y las flechas en una fila abajo que no tapa el texto */
@media (max-width: 900px) {
  .mt-top { top: max(10px, env(safe-area-inset-top)); left: 12px; right: 12px; gap: 8px 10px; flex-wrap: wrap; }
  .mt-brand svg { width: 20px; height: 20px; }
  .mt-brand b { font-size: 15px; }
  .mt-brand .rs-kick { font-size: 9px; }
  .mt-at { display: none; }
  .mt-x { margin-left: auto; width: 36px; height: 36px; }
  .mt-tf { order: 3; margin-left: 0; flex: 1 1 100%; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  .mt-tf::-webkit-scrollbar { display: none; }
  .mt-tf button { flex: none; }
  .mt-stage { inset: 104px 10px calc(66px + env(safe-area-inset-bottom)) 10px; }
  .mt-slot, .mt-ghosts { width: 100%; height: 100%; }
  .mt-ghosts { display: none; }
  .mt-card { inset: 0; width: auto; height: auto; top: 0; border-radius: 20px; }
  .mt-in { display: flex; flex-direction: column; }
  .mt-l { flex: 1 1 auto; min-height: 0; padding: 16px 16px 14px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .mt-l h2 { font-size: 22px; }
  .mt-r { flex: 0 0 38%; min-height: 170px; }
  .mt-plan { grid-template-columns: repeat(2, 1fr); }
  .mt-ring { grid-template-columns: 104px 1fr; }
  .mt-ring svg, .mt-ring-c { width: 104px; height: 104px; }
  .mt-ring-c b { font-size: 24px; }
  .mt-bias { flex-wrap: wrap; }
  .mt-time { display: none; }
  .mt-nav { left: 0; right: 0; bottom: calc(12px + env(safe-area-inset-bottom)); flex-direction: row; justify-content: center; gap: 18px; }
  .mt-nav button { width: 44px; height: 44px; font-size: 15px; }
  .mt-foot { display: none; }
  .mt-hint { display: none; }
}

/* el trader de cada escuela (app/traders.py) */
.mt-trader { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 11px 12px; border-radius: 14px;
  background: linear-gradient(120deg, rgba(167, 139, 250, .12), rgba(var(--acc-rgb), .06)); border: 1px solid rgba(167, 139, 250, .25); animation: mtIn .5s ease-out; }
.mt-trader span { display: block; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #c4b5fd; }
.mt-trader q { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.45; color: var(--text); font-style: italic; quotes: "“" "”"; }
.mt-av { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 800 13px var(--sans); color: #fff;
  background: conic-gradient(from 200deg, #a78bfa, var(--acc), #f472b6, #a78bfa); box-shadow: 0 0 18px rgba(167, 139, 250, .55), inset 0 0 0 2px rgba(0, 0, 0, .35); }
.mt-av.sm { width: 26px; height: 26px; font-size: 10px; animation: mtPulse 1.4s ease-in-out infinite; }
@keyframes mtPulse { 50% { box-shadow: 0 0 26px rgba(167, 139, 250, .9), inset 0 0 0 2px rgba(0, 0, 0, .35); } }
@keyframes mtIn { from { opacity: 0; transform: translateY(6px); } }
.mt-think { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 12px; font-size: 12.5px; color: #ddd6fe;
  background: rgba(167, 139, 250, .08); border: 1px dashed rgba(167, 139, 250, .4); }
.mt-think.err { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 8%, transparent); }
.mt-prog { flex-basis: 100%; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.mt-prog i { display: block; height: 100%; background: linear-gradient(90deg, #a78bfa, var(--acc)); transition: width .4s; box-shadow: 0 0 10px #a78bfa; }
.mt-bias.dim { opacity: .55; }
.mt-acc { margin-left: 4px; font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 8px; white-space: nowrap; border: 1px solid; }
.mt-acc.go { color: var(--acc); border-color: rgba(var(--acc-rgb), .5); background: rgba(var(--acc-rgb), .1); box-shadow: 0 0 14px rgba(var(--acc-rgb), .3); }
.mt-acc.pend { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); background: color-mix(in srgb, var(--gold) 10%, transparent); }
.mt-acc.wait, .mt-acc.no { color: var(--muted); border-color: rgba(148, 163, 184, .35); }
.mt-gat { font-size: 12.5px; line-height: 1.45; color: var(--text); padding: 8px 11px; border-radius: 10px; border-left: 3px solid var(--gold); background: color-mix(in srgb, var(--gold) 7%, transparent); }
.mt-gat span { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.mt-plan i { font: 600 10.5px var(--mono); font-style: normal; color: var(--muted); }
.mt-auto { margin-top: 8px; font-size: 12px; color: var(--muted); }
.mt-auto summary { cursor: pointer; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); list-style: none; }
.mt-auto summary::before { content: "▸ "; } .mt-auto[open] summary::before { content: "▾ "; }
.mt-auto .mt-ve { margin-top: 6px; font-size: 12px; color: var(--muted); }
.mt-chip.ya { box-shadow: 0 0 0 1px currentColor inset, 0 0 12px color-mix(in srgb, currentColor 40%, transparent); }
.mt-lean { font-size: 12.5px; font-weight: 700; } .mt-lean.compra { color: var(--up); } .mt-lean.venta { color: var(--down); }


/* el trader analizando: pasos de su escuela */
.mt-think.anim { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 12px; padding: 12px 14px;
  background: linear-gradient(110deg, rgba(167, 139, 250, .1), rgba(var(--acc-rgb), .06), rgba(167, 139, 250, .1)); background-size: 220% 100%;
  animation: mtShimmer 2.4s linear infinite; border-style: solid; }
@keyframes mtShimmer { to { background-position: -220% 0; } }
.mt-steps { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mt-steps b { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c4b5fd; }
.mt-step { font-size: 13.5px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mt-step.in { animation: mtStep .45s cubic-bezier(.2, 1, .3, 1); }
@keyframes mtStep { from { opacity: 0; transform: translateY(8px); filter: blur(3px); } }
.mt-sec { font: 700 11px var(--mono); font-style: normal; color: rgba(255, 255, 255, .45); }
.mt-ticks { grid-column: 1 / -1; display: flex; gap: 4px; margin-top: 6px; }
.mt-ticks i { flex: 1; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .08); transition: background .3s, box-shadow .3s; }
.mt-ticks i.ok { background: rgba(167, 139, 250, .65); }
.mt-ticks i.on { background: linear-gradient(90deg, #a78bfa, var(--acc)); box-shadow: 0 0 10px #a78bfa; animation: mtTick 1s ease-in-out infinite; }
@keyframes mtTick { 50% { opacity: .55; } }
.mt-think.roll { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.mt-think.roll .mt-step { white-space: normal; }
.mt-roll { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.mt-roll button { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 8px; font-size: 10.5px; font-weight: 700; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .03); color: rgba(255, 255, 255, .35); transition: all .3s; }
.mt-roll button i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mt-roll button.busy { color: #ddd6fe; border-color: rgba(167, 139, 250, .6); box-shadow: 0 0 12px rgba(167, 139, 250, .35); }
.mt-roll button.busy i { animation: mtTick .7s ease-in-out infinite; }
.mt-roll button.compra { color: var(--up); border-color: color-mix(in srgb, var(--up) 45%, transparent); }
.mt-roll button.venta { color: var(--down); border-color: color-mix(in srgb, var(--down) 50%, transparent); }
.mt-roll button.neutral { color: var(--muted); border-color: rgba(148, 163, 184, .4); }
.mt-roll button.err { color: var(--warn); }
.mt-time button.busy i { background: linear-gradient(90deg, #a78bfa, var(--acc)); animation: mtTick .8s ease-in-out infinite; }
.mt-l.fresh > * { animation: mtFresh .5s cubic-bezier(.2, 1, .3, 1) both; }
.mt-l.fresh > *:nth-child(n+3) { animation-delay: .05s; } .mt-l.fresh > *:nth-child(n+5) { animation-delay: .1s; } .mt-l.fresh > *:nth-child(n+7) { animation-delay: .15s; }
@keyframes mtFresh { from { opacity: 0; transform: translateY(6px); } }

/* transición entre tarjetas: la actual se va al fondo del stack y la nueva sube (o al revés si volvés) */
.mt-card.leave { pointer-events: none; z-index: 0; }
.mt-card.leave.to-up { animation: mtToUp .32s cubic-bezier(.4, 0, .7, .2) forwards; }
.mt-card.leave.to-dn { animation: mtToDn .32s cubic-bezier(.4, 0, .7, .2) forwards; }
.mt-card.from-dn { animation: mtFromDn .5s cubic-bezier(.2, 1.05, .3, 1) both; }
.mt-card.from-up { animation: mtFromUp .5s cubic-bezier(.2, 1.05, .3, 1) both; }
.mt-card.from-pop { animation: mtPop .5s cubic-bezier(.2, 1.05, .3, 1) both; }
@keyframes mtToUp { to { opacity: 0; transform: translateY(-34px) scale(.95); } }
@keyframes mtToDn { to { opacity: 0; transform: translateY(46px) scale(1.02); } }
@keyframes mtFromDn { from { opacity: 0; transform: translateY(46px) scale(.97); } }
@keyframes mtFromUp { from { opacity: 0; transform: translateY(-34px) scale(.95); } }
@keyframes mtPop { from { opacity: 0; transform: scale(.97); } }
.mt-ghosts.shift .mt-ghost { animation: mtGhost .45s cubic-bezier(.2, 1, .3, 1) both; }
.mt-ghosts.shift .mt-ghost:nth-last-child(2) { animation-delay: .04s; } .mt-ghosts.shift .mt-ghost:nth-last-child(3) { animation-delay: .08s; }
@keyframes mtGhost { from { opacity: 0; transform: translateY(calc(var(--k) * -34px + 14px)) scale(calc(1 - var(--k) * .045)); } }

/* bordes redondeados aunque el tema sea «recto» (body.ui-sharp pone radius 0 a todo) */
#mtWrap :is(.mt-card, .mt-ghost) { border-radius: 26px !important; }
#mtWrap :is(.mt-trader, .mt-think, .mt-haria, .mt-gat, .mt-plan > div, .mt-x, .mt-tf, .mt-tf button) { border-radius: 12px !important; }
#mtWrap :is(.mt-chip, .mt-roll button, .mt-leg span, .mt-acc, .mt-bias b, .mt-meter, .mt-meter i, .mt-prog, .mt-prog i, .mt-ticks i, .mt-time button i) { border-radius: 999px !important; }
#mtWrap :is(.mt-av, .mt-nav button, .mt-dots i, .mt-load i) { border-radius: 50% !important; }

/* botón de la lectura IA */
.mt-ia { margin-top: 14px; }
#mtWrap .mt-ia button { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px 0 14px; border-radius: 999px !important;
  border: 1px solid transparent; cursor: pointer; overflow: hidden; color: #f5f3ff; font: 700 13.5px var(--sans);
  background: linear-gradient(rgb(var(--float-rgb)), rgb(var(--float-rgb))) padding-box, linear-gradient(110deg, #a78bfa, var(--acc), #f472b6) border-box;
  box-shadow: 0 8px 30px rgba(167, 139, 250, .25), inset 0 1px 0 rgba(255, 255, 255, .08); transition: transform .18s ease, box-shadow .25s ease; }
#mtWrap .mt-ia button::before { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(167, 139, 250, .16), rgba(var(--acc-rgb), .1), rgba(244, 114, 182, .12)); pointer-events: none; }
#mtWrap .mt-ia button::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .18), transparent);
  transform: skewX(-18deg); pointer-events: none; }
#mtWrap .mt-ia button:hover { transform: translateY(-1px); box-shadow: 0 12px 38px rgba(167, 139, 250, .4), inset 0 1px 0 rgba(255, 255, 255, .1); }
#mtWrap .mt-ia button:hover::after { animation: mtShine .9s ease; }
@keyframes mtShine { to { left: 120%; } }
#mtWrap .mt-ia button svg { position: relative; color: #c4b5fd; filter: drop-shadow(0 0 6px rgba(167, 139, 250, .9)); flex: none; }
#mtWrap .mt-ia button span { position: relative; letter-spacing: .01em; }
#mtWrap .mt-ia button em { position: relative; font: 600 10px var(--mono); font-style: normal; color: rgba(255, 255, 255, .5); padding: 2px 7px; border-radius: 999px !important; background: rgba(255, 255, 255, .07); }
#mtWrap .mt-ia button.busy svg { animation: rsSpin 1.2s linear infinite; }
#mtWrap .mt-ia button.busy::after { animation: mtShine 1.1s ease infinite; }
#mtWrap .mt-ia button:disabled { cursor: default; }
.mt-iatxt:not(:empty) { margin-top: 12px; padding: 12px 14px; border-radius: 14px !important; background: rgba(167, 139, 250, .07); border: 1px solid rgba(167, 139, 250, .22); }
#mtWrap .mt-ia button { max-width: 100%; white-space: nowrap; }
#mtWrap .mt-ia button span { overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 380px) { #mtWrap .mt-ia button em { display: none; } }
.mt-l { container-type: inline-size; }
