/* ═══════════════════════════════════════════════════════════════════
 * STK-SHEETS-SINGLE-MOBILE.CSS v1.0.5 — Editor movil de HOJAS INDIVIDUALES
 *
 * v1.0.5: fuera el estilo del boton "Cambiar diseno" en la fila de arriba
 *         (el boton se queda en la barra de compra).
 *
 * v1.0.4: fila sobre la hoja (#stkmi-bar): recuento gris oscuro + boton
 *         "Cambiar diseno"; tamano en texto sobre la pegatina principal.
 *
 * v1.0.3: tooltip de consejo en gris claro con borde fino (solo en este
 *         editor; el de hojas de varios disenos sigue oscuro).
 *
 * v1.0.2: el recuento es una barra oscura sobre la hoja (ya no un tooltip).
 *         El consejo de calidad usa #stkms-tip de stk-sheets-mobile.css.
 *
 * v1.0.1: linea de corte discontinua y animada ("hormigas").
 *
 * Solo lo propio de este editor (#stk-mobile.stkmi). La hoja, los handles,
 * el spinner, el dialogo y los drawers reutilizan stk-sheets-mobile.css
 * (.stkms-*) y stk-mobile-beta.css (.stkmb-*), que se cargan antes.
 * ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Copias del diseno ── */
  .stkmi-tile > img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; pointer-events: none;
  }
  .stkmi-main { z-index: 5; }

  /* ── v1.0.1: linea de corte tipo seleccion (blanca debajo + guiones negros en marcha) ── */
  .stkmi-cut {
    position: absolute; inset: 0; width: 100%; height: 100%;
    display: block; overflow: visible; pointer-events: none;
  }
  #stkmi-cutpath { vector-effect: non-scaling-stroke; }
  .stkmi-cut use { fill: none; stroke-width: 1px; }
  .stkmi-cut .a { stroke: #ffffff; }
  .stkmi-cut .b {
    stroke: #141416;
    stroke-dasharray: 4 4;
    animation: stkmi-ants 0.7s linear infinite;
  }
  @keyframes stkmi-ants { to { stroke-dashoffset: -8; } }
  .stkmi-drag .stkmi-cut .b { animation-play-state: paused; }
  @media (prefers-reduced-motion: reduce) { .stkmi-cut .b { animation: none; } }
  /* recentrado suave de la cuadricula al soltar */
  .stkmi-anim .stkmi-tile { transition: left 0.2s ease, top 0.2s ease; }

  /* ── Cargando (sobre la hoja) ── */
  #stkmi-busy {
    display: none;
    position: absolute; inset: 0; z-index: 30;
    background: rgba(255,255,255,0.6);
  }

  /* ── v1.0.2: barra del recuento, encima de la hoja y de su mismo ancho ── */
#stkmi-bar {
    position: absolute; left: 0; top: 0; z-index: 20;
    display: flex; gap: 6px; height: 36px; box-sizing: border-box;
  }
  #stkmi-count {
    display: none; flex: 1 1 auto; min-width: 0;
    align-items: center; justify-content: center;
    box-sizing: border-box; padding: 0 8px;
    border-radius: 10px;
    background: #4A4A50; color: #fff;
    font: 700 12px/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* tamano de la pegatina principal: solo texto, como en hojas */
  .stkmi-size {
    position: absolute; left: 50%; bottom: 100%; transform: translateX(-50%);
    margin-bottom: 2px;
    color: #6C5CE7; font: 700 11px/1 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    white-space: nowrap; pointer-events: none;
  }

  /* ── v1.0.3: consejo de calidad en gris claro con borde fino ── */
  .stkmi #stkms-tip {
    background: #EFEFF1; color: #55555A;
    border: 0.5px solid #B4B4BA;
    box-shadow: 0 4px 14px rgba(0,0,0,0.14);
  }
  .stkmi #stkms-tip b { color: #141416; }
  .stkmi #stkms-tip > i { background: #EFEFF1; box-sizing: border-box; }
  .stkmi #stkms-tip.down > i { top: -6px; border-left: 0.5px solid #B4B4BA; border-top: 0.5px solid #B4B4BA; }
  .stkmi #stkms-tip.up > i { bottom: -6px; border-right: 0.5px solid #B4B4BA; border-bottom: 0.5px solid #B4B4BA; }

  /* ── Pestana Forma: 4 tarjetas de texto, sin cinta TOP ── */
  .stkmb-shapes.stkmi-shapes { grid-template-columns: repeat(4, 1fr); }
  .stkmi-shapes .stkmb-shape-card { padding: 16px 4px; justify-content: center; }
  .stkmi-shapes .stkmb-shape-card::before { display: none !important; content: none !important; }

  /* ── 4 pestanas repartidas por igual ── */
  .stkmi .stkmb-tabs .stkmb-tab { flex: 1 1 0; min-width: 0; }
}
