/* =====================================================================
   Hero demo: TradingView frame + faithful replica of the Terminal MT5
   side panel (rules mirrored from the extension's popup.html, scoped
   under .tm so they don't leak into the page).
   ===================================================================== */

.workspace {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px;
  grid-template-rows: minmax(0, 1fr);
  height: 720px;
  background: #fff; color: #131722;
  border-radius: 18px; overflow: hidden;
  border: 6px solid rgba(255, 255, 255, .14);
  background-clip: padding-box;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .08);
  font-family: Arial, sans-serif;
  user-select: none;
}

/* ---------- TradingView frame ---------- */
.tv { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; grid-template-rows: 40px minmax(0, 1fr); background: #0f0f0f; min-width: 0; min-height: 0; }
.tv-top { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; padding: 0 10px 0 6px; color: #d1d4dc; font-size: 12.5px; border-bottom: 1px solid #2a2e39; white-space: nowrap; overflow: hidden; }
.tv-top .sym { display: flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 4px; font-weight: 700; color: #fff; }
.tv-top .sym::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: conic-gradient(#2962ff 0 50%, #089981 0); }
.tv-top .sep { width: 1px; height: 22px; background: #2a2e39; margin: 0 6px; }
.tv-top .tf { padding: 4px 6px; border-radius: 4px; color: #b2b5be; }
.tv-top .tf.on { background: #2a2e39; color: #fff; }
.tv-top .ico { width: 30px; height: 30px; display: grid; place-items: center; color: #d1d4dc; }
.tv-top .ico svg { width: 18px; height: 18px; }
.tv-top .layout { margin-left: auto; color: #d1d4dc; padding: 0 8px; }
.tv-top .trade { background: #fff; color: #131722; font-weight: 700; border-radius: 999px; padding: 5px 12px; margin-left: 6px; }

.tv-left, .tv-right { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 8px; color: #d1d4dc; }
.tv-left { border-right: 1px solid #2a2e39; }
.tv-right { border-left: 4px solid #0f0f0f; }
.tv-left span, .tv-right span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 4px; }
.tv-left span.on { background: #2a2e39; }
.tv-left svg, .tv-right svg { width: 20px; height: 20px; }

.tv-chart { position: relative; overflow: hidden; background: linear-gradient(180deg, #e3e6ec 0%, #eef0f4 45%, #f7f8fa 100%); border-radius: 6px 6px 0 0; }
.tv-chart svg#chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tv-legend { position: absolute; left: 10px; top: 8px; font-size: 12px; color: #131722; display: flex; gap: 8px; align-items: center; z-index: 1; }
.tv-legend b { font-weight: 600; }
.tv-legend .dot { width: 8px; height: 8px; border-radius: 50%; background: #089981; }
.tv-legend .o { color: #089981; }

/* TradingView position settings dialog (simplified) */
.tv-dialog {
  position: absolute; z-index: 4; left: 50%; top: 50%; width: 270px;
  transform: translate(-82%, -50%) scale(.96); opacity: 0; pointer-events: none;
  background: #1e1e1e; color: #d1d4dc; border-radius: 8px; box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  font-size: 12px; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.tv-dialog.open { opacity: 1; transform: translate(-82%, -50%) scale(1); }
.tv-dialog header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px 6px; font-size: 15px; font-weight: 700; color: #fff; }
.tv-dialog header i { font-style: normal; color: #b2b5be; font-size: 16px; }
.tv-dialog .tabs { display: flex; gap: 14px; padding: 6px 16px 0; border-bottom: 1px solid #333; font-weight: 700; }
.tv-dialog .tabs span { padding-bottom: 7px; color: #b2b5be; }
.tv-dialog .tabs span.on { color: #fff; border-bottom: 2px solid #fff; }
.tv-dialog .rows { padding: 10px 16px 4px; display: grid; gap: 7px; }
.tv-dialog .row { display: grid; grid-template-columns: 1fr 96px; align-items: center; }
.tv-dialog .row b { font-weight: 400; }
.tv-dialog .row span { border: 1px solid #434651; border-radius: 4px; padding: 4px 8px; color: #fff; }
.tv-dialog .grp { font-size: 10px; color: #8a8d96; letter-spacing: .04em; margin-top: 4px; }
.tv-dialog footer { display: flex; justify-content: flex-end; gap: 8px; padding: 10px 16px 14px; }
.tv-dialog footer span { border: 1px solid #434651; border-radius: 4px; padding: 5px 12px; font-weight: 600; }
.tv-dialog footer span.ok { background: #fff; color: #131722; border-color: #fff; }

/* fake mouse pointer */
.demo-cursor { position: absolute; z-index: 20; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; transform: translate(60%, 70%); transition: transform .75s var(--ease-in-out), opacity .3s ease; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); opacity: 0; }
.demo-cursor.show { opacity: 1; }
.demo-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(41, 98, 255, .7); opacity: 0; transform: scale(.4); }
.demo-cursor.click::after { animation: clickRing .45s var(--ease-out); }
@keyframes clickRing { 0% { opacity: 1; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.6); } }

/* play / pause control */
.demo-toggle { position: absolute; z-index: 6; left: 12px; bottom: 36px; display: inline-flex; align-items: center; gap: 7px; background: rgba(19, 23, 34, .86); color: #fff; border: 0; border-radius: 999px; font: 600 12px/1 var(--font, Arial); padding: 8px 13px 8px 10px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); transition: background-color .2s; }
.demo-toggle:hover { background: #131722; }
.demo-toggle svg { width: 14px; height: 14px; }
.demo-toggle .i-play { display: none; }
.demo-toggle[aria-pressed="true"] .i-play { display: block; }
.demo-toggle[aria-pressed="true"] .i-pause { display: none; }

/* ---------- Chrome side panel ---------- */
.tm { background: #f8f9fa; border-left: 1px solid #dadce0; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tm-chrome { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; background: #fff; font-size: 13px; color: #1f1f1f; flex: none; }
.tm-chrome img { width: 16px; height: 16px; }
.tm-chrome .t { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tm-chrome svg { width: 16px; height: 16px; color: #5f6368; flex: none; }
.tm-body { flex: 1 1 0; min-height: 0; overflow: hidden; padding: 0 12px 12px; }
.tm .linea-division-v17 { height: 1px; background: #26a69a; margin: 0 -12px 14px; }

.tm .connection-bridge-v17 { display: flex; align-items: center; justify-content: center; max-width: 250px; margin: 4px auto 24px; padding: 0 4px; }
.tm .bridge-node { display: flex; align-items: center; position: relative; flex-grow: 1; }
.tm .bridge-node.bn-tv { justify-content: flex-start; }
.tm .bridge-node.bn-mt5 { justify-content: flex-end; flex-direction: row-reverse; }
.tm .bridge-node.bn-mid { margin: 0 8px; flex-grow: 0; }
.tm .node-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
.tm .bridge-line { height: 1px; background: #26a69a; width: 74px; max-width: 74px; margin: 0 auto; flex-grow: 1; }
.tm .bridge-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #26a69a; box-shadow: 0 0 6px #26a69a; flex-shrink: 0; }
.tm .bridge-node.bn-tv .bridge-status-dot { margin-left: 6px; }
.tm .bridge-node.bn-tv .bridge-line { margin-left: 0; }
.tm .bridge-node.bn-mt5 .bridge-status-dot { margin-right: 6px; }
.tm .bridge-node.bn-mt5 .bridge-line { margin-right: -1px; }

.tm .seccion { background: #fff; padding: 10px; border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); margin-bottom: 12px; }
.tm .titulo-seccion { font-size: 11px; font-weight: bold; color: #26a69a; text-transform: uppercase; margin: 0 0 25px; }
.tm .head-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.tm .head-row .titulo-seccion { margin-bottom: 0; }

.tm .badge-pro { background: #fff; color: #131722; border: 1px solid #c1c4cd; padding: 2px 8px; font-size: 10px; font-weight: 600; border-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); display: inline-flex; align-items: center; gap: 4px; height: 20px; box-sizing: border-box; letter-spacing: .5px; font-family: Arial, sans-serif; }
.tm .badge-pro::before { content: ""; width: 11px; height: 11px; background-color: #26a69a;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') no-repeat center / contain;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"/></svg>') no-repeat center / contain; }

/* pyramid rows */
.tm .fila-v17 { display: flex; align-items: center; width: 100%; box-sizing: border-box; margin: 0 auto 12px; }
.tm input, .tm select { padding: 4px 10px; box-sizing: border-box; border: 1px solid #c1c4cd; border-radius: 4px; font-size: 12px; height: 26px; color: #131722; font-family: Arial, sans-serif; background: #fff; pointer-events: none; }
.tm .label-inline { font-size: 12px; color: #131722; font-weight: bold; white-space: nowrap; display: inline-flex; align-items: center; flex-shrink: 0; }
.tm .requerido { color: #ef5350; font-weight: bold; margin-left: 3px; }
.tm .par-destacado { display: inline-block; width: 68px; text-align: right; font-size: 12px; font-weight: bold; color: #131722; margin-right: 3px; flex-shrink: 0; white-space: nowrap; }
.tm .fila-orden { justify-content: flex-start; position: relative; }
/* opened <select> list (drawn, since a native one can't be opened by script) */
.tm .fake-list { position: absolute; z-index: 8; left: 71px; top: 25px; width: 82px; background: #fff; border: 1px solid #767676; box-shadow: 0 4px 10px rgba(0, 0, 0, .2); padding: 2px 0; font-size: 12px; opacity: 0; transform: translateY(-3px); pointer-events: none; transition: opacity .12s, transform .12s; }
.tm .fake-list.open { opacity: 1; transform: none; }
.tm .fake-list div { padding: 2px 7px; line-height: 17px; white-space: nowrap; }
.tm .fake-list div.hl { background: #1967d2; color: #fff; }
.tm .select-tipo-orden { width: 82px; padding-left: 7px; padding-right: 2px; flex: none; }
.tm .btn-paste-v17 { width: 130px; flex: none; margin-left: 10px; background: #fff; color: #1e222d; border: 1px solid #c1c4cd; border-radius: 4px; padding: 0 8px; font-size: 11px; font-weight: bold; display: flex; align-items: center; justify-content: center; gap: 6px; height: 26px; white-space: nowrap; box-sizing: border-box; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); transition: border-color .2s, box-shadow .2s, transform .1s; }
.tm .btn-paste-v17.press { border-color: #1e222d; box-shadow: 0 2px 4px rgba(0, 0, 0, .1); transform: scale(.97); }
.tm .icon-position-tv { width: 19px; height: 19px; object-fit: contain; mix-blend-mode: multiply; }

.tm .fila-volumen { justify-content: flex-start; margin-bottom: 5px; }
.tm .fila-volumen .label-inline { margin-left: 40px; margin-right: 8px; }
.tm .fila-volumen .cuna-contenedor { width: 51px; flex: none; }
.tm .select-modo-volumen { width: 90px; flex: none; padding-left: 21px; margin-left: 10px; }

.tm .fila-precio { justify-content: flex-start; margin-bottom: 5px; }
.tm .fila-precio .label-inline { margin-left: 109px; margin-right: 13px; }
.tm .fila-precio .cuna-contenedor { width: 75px; flex: none; }
.tm .oculto { display: none !important; }

.tm .fila-sltp { gap: 10px; justify-content: center; }
.tm .mitad-v17 { flex: 1; display: flex; align-items: center; position: relative; }

/* the "cradle" fields: bottom line with raised end ticks */
.tm .cuna-contenedor { position: relative; display: inline-block; flex-grow: 1; width: 100%; }
.tm .cuna-contenedor::before, .tm .cuna-contenedor::after { content: ""; position: absolute; bottom: 0; width: 1px; height: 5px; background-color: #c1c4cd; z-index: 1; transition: background-color .2s; }
.tm .cuna-contenedor::before { left: 0; }
.tm .cuna-contenedor::after { right: 0; }
.tm .cuna-input { width: 100%; text-align: center; background: transparent; border: none; border-bottom: 1px solid #c1c4cd; border-radius: 0; padding: 4px 0; height: 26px; position: relative; z-index: 2; transition: border-color .2s, background-color .4s; }
.tm .cuna-input::placeholder { color: #8b8e97; }
.tm .cuna-contenedor.flash .cuna-input { border-bottom-color: #26a69a; background: rgba(38, 166, 154, .1); }
.tm .cuna-contenedor.flash::before, .tm .cuna-contenedor.flash::after { background-color: #26a69a; }

.tm .btn-contenedor { display: flex; gap: 10px; margin-top: 10px; }
.tm .btn-compra, .tm .btn-venta { flex: 1; padding: 10px; border: 1px solid #d0d4e0; border-radius: 4px; font-weight: bold; font-size: 14px; background: #fff; letter-spacing: 2px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); transition: opacity .2s, border-color .2s, transform .1s, box-shadow .2s; }
.tm .btn-compra { color: #2962ff; }
.tm .btn-venta { color: #ef5350; }
.tm .faded { opacity: .3; }
.tm .btn-compra.press { border-color: #2196f3; box-shadow: 0 2px 5px rgba(33, 150, 243, .25); transform: scale(.98); }

.tm #d-estado { margin: 17px 0 3px; min-height: 13px; font-size: 10.5px; text-align: center; color: #089981; font-family: Consolas, "Courier New", monospace; font-weight: 700; letter-spacing: .5px; padding: 4px 8px; }
.tm #d-estado.neutral { color: #5d606b; }

/* console */
.tm .mt5-balance-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 11px; color: #333; margin: 0 0 4px; padding: 0 2px; }
.tm .mt5-balance-row + .mt5-balance-row { margin-bottom: 16px; }
.tm .mt5-label { font-weight: bold; white-space: nowrap; }
.tm .mt5-dots { flex: 1; border-bottom: 1px dotted #d1d4dc; margin: 0 6px 3px; }
.tm .mt5-value { font-weight: bold; white-space: nowrap; font-size: 10.5px; }
.tm .subtitulo-tabla { font-size: 10px; font-weight: bold; color: #787b86; margin: 12px 0 6px; text-transform: uppercase; }
.tm .vacio { font-size: 10px; color: #80848f; text-align: center; padding: 10px 0; font-style: italic; }
.tm .btn-panico { background: #fff; color: #ff9800; border: 1px solid #d0d4e0; margin-top: 10px; margin-bottom: 4px; font-size: 14px; padding: 8px; border-radius: 4px; font-weight: bold; letter-spacing: .9px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }

/* order card */
.tm .tarjeta { background: #fff; border: 1px solid #e0e3eb; border-radius: 6px; margin-bottom: 8px; position: relative; overflow: hidden; font-size: 11px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); animation: cardIn 300ms var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.tm .tarjeta::before { content: ""; position: absolute; top: 0; left: 0; bottom: 0; width: 5px; background: #9e9e9e; z-index: 2; transition: background-color .3s; }
.tm .tarjeta.status-positivo::before { background: #26a69a; }
.tm .tarjeta.status-negativo::before { background: #ef5350; }
.tm .tarjeta::after { content: ""; position: absolute; top: 0; left: 0; width: 60%; height: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); transform: translateX(-170%) skewX(-25deg); pointer-events: none; z-index: 10; }
.tm .tarjeta.glint::after { animation: glint .65s var(--ease-in-out); }
@keyframes glint { from { transform: translateX(-170%) skewX(-25deg); } to { transform: translateX(300%) skewX(-25deg); } }
.tm .tarjeta-header { padding: 8px 10px 8px 14px; }
.tm .tarjeta-fila-sup { display: flex; justify-content: space-between; font-weight: bold; color: #131722; margin-bottom: 4px; }
.tm .tarjeta-fila-sup > div { display: flex; align-items: center; }
.tm .tarjeta-fecha { font-size: 9px; color: #787b86; font-weight: normal; }
.tm .tarjeta-fila-inf { display: flex; justify-content: space-between; align-items: center; }
.tm .tarjeta-ruta { color: #434651; font-size: 11px; }
.tm .tarjeta-profit { font-size: 13px; font-weight: bold; transition: color .3s; }
.tm .txt-profit-up { color: #26a69a; }
.tm .txt-profit-down { color: #ef5350; }
.tm .header-leds-container { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.tm .led-indicator { width: 6px; height: 6px; border-radius: 50%; background: #b0bec5; transition: background-color .3s; }
.tm .led-indicator.on { background: #26a69a; }

.tm .tarjeta-body { overflow: hidden; max-height: 0; transition: max-height var(--dur-base) var(--ease-out); }
.tm .tarjeta.open .tarjeta-body { max-height: 260px; }
.tm .tarjeta-columnas-container { padding: 4px 10px 0 14px; display: flex; gap: 7px; flex-direction: column; }
.tm .tarjeta-columna { display: flex; gap: 6px; }
.tm .tarjeta-subcampo { display: flex; align-items: center; flex: 1; }
.tm .tarjeta-subcampo label { font-size: 10px; letter-spacing: .8px; min-width: 74px; color: #555; font-weight: bold; }
.tm .tarjeta-subcampo .cuna-input, .tm .automation-group .cuna-input { font-size: 10px; height: 24px; padding: 3px 0; }
.tm .btn-modificar-activa { width: 50%; padding: 5px; border: 1px solid #d0d4e0; border-radius: 4px; font-weight: bold; color: #2962ff; font-size: 10px; background: #fff; letter-spacing: .5px; text-align: center; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }
.tm .acciones-der { display: flex; gap: 6px; align-items: center; width: 50%; }
.tm .stepper-manual { display: flex; align-items: center; justify-content: space-between; border: 1px solid #d0d4e0; border-radius: 4px; width: 68px; height: 24px; box-sizing: border-box; color: #333; font-size: 11px; font-weight: bold; }
.tm .stepper-manual i { font-style: normal; width: 18px; text-align: center; color: #666; font-size: 13px; }
.tm .btn-card-close { flex: 1; height: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid #d0d4e0; border-radius: 4px; font-weight: bold; color: #ef5350; font-size: 10px; letter-spacing: 1.5px; box-shadow: 0 1px 3px rgba(0, 0, 0, .04); }

.tm .automation-container { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; padding: 2px 10px 8px 14px; background: #f4f5f8; }
.tm .automation-header { display: flex; align-items: center; width: 100%; padding: 2px 0; }
.tm .automation-header:first-child { margin-top: 4px; }
.tm .toggle-icon-img { width: 9px; height: 9px; object-fit: contain; transition: transform var(--dur-fast) var(--ease-out); }
.tm .toggle-icon-img.rotated { transform: rotate(180deg); }
.tm .automation-title-wrapper { display: flex; align-items: center; flex-grow: 1; font-size: 9px; color: #555; font-weight: bold; }
.tm .automation-title-wrapper::before, .tm .automation-title-wrapper::after { content: ""; flex: 1; border-bottom: 1px solid rgba(0, 0, 0, .15); }
.tm .automation-title-wrapper::before { margin-left: 8px; }
.tm .automation-title-wrapper::after { margin-right: 2px; }
.tm .automation-title-text { padding: 0 8px; white-space: nowrap; }
.tm .automation-content { overflow: hidden; max-height: 0; transition: max-height var(--dur-fast) var(--ease-out); }
.tm .automation-content.expanded { max-height: 40px; }
.tm .automation-row { display: flex; width: 100%; gap: 10px; padding: 4px 2px 4px; box-sizing: border-box; }
.tm .automation-group { display: flex; flex: 1; align-items: center; height: 24px; gap: 6px; }
.tm .label-automation { font-size: 10px; letter-spacing: .8px; color: #555; font-weight: bold; white-space: nowrap; }
.tm .switch-control { position: relative; display: inline-block; width: 32px; height: 18px; flex: none; align-self: center; }
.tm .slider-round { position: absolute; inset: 0; background: #d1d4dc; border-radius: 20px; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .15); transition: background-color var(--dur-fast) var(--ease-out); }
.tm .slider-round::before { content: ""; position: absolute; width: 14px; height: 14px; left: 2px; bottom: 2px; background: #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--dur-fast) var(--ease-out); }
.tm .slider-round::after { content: ""; position: absolute; width: 4px; height: 4px; left: 7px; bottom: 7px; background: #9e9e9e; border-radius: 50%; transition: transform var(--dur-fast) var(--ease-out), background-color .25s; }
.tm .switch-control.on .slider-round { background: #26a69a; }
.tm .switch-control.on .slider-round::before, .tm .switch-control.on .slider-round::after { transform: translateX(14px); }
.tm .switch-control.on .slider-round::after { background: #26a69a; }
.tm .automation-row.locked .cuna-input { color: #9aa0a6; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 340px; }
  .tm-body { padding: 0 6px 12px; }
}
@media (max-width: 920px) {
  .workspace { grid-template-columns: 1fr; grid-template-rows: auto auto; height: auto; }
  .tv { grid-template-columns: minmax(0, 1fr); grid-template-rows: 40px 420px; }
  .tv-left, .tv-right { display: none; }
  .tv-top .tf:nth-of-type(n+4), .tv-top .ico, .tv-top .layout { display: none; }
  .tv-top .trade { margin-left: auto; }
  .tv-dialog { transform: translate(-50%, -50%) scale(.85); }
  .tv-dialog.open { transform: translate(-50%, -50%) scale(.9); }
  .tm { border-left: 0; border-top: 1px solid #dadce0; }
  .tm-body { max-width: 384px; margin: 0 auto; width: 100%; flex: none; height: 660px; }
}
@media (max-width: 420px) {
  .tm-body { padding: 0 4px 12px; }
  .tm .fila-volumen .label-inline { margin-left: 24px; }
  .tm .fila-precio .label-inline { margin-left: 92px; }
}
