.lm-pantalla { width: 100%; max-width: 800px; margin: auto; overflow-wrap: anywhere; position: relative; }
.lm-pantalla button, .lm-entrada { min-width: 44px; min-height: 44px; }
.lm-entrada { display: inline-flex; align-items: center; gap: 8px; }
.lm-entrada svg { width: 24px; height: 24px; flex: none; }
.lm-pantalla progress { width: 100%; }
.lm-rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.lm-celda { position: relative; border-radius: 12px; overflow: hidden; }
.lm-foto {
  display: block; width: 100%; padding: 0; border: 0; background: transparent; border-radius: 12px; overflow: hidden; min-height: 44px;
  touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.lm-foto img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.lm-x {
  position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; min-width: 28px; min-height: 28px;
  padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff;
  font-size: 20px; line-height: 28px; display: grid; place-items: center;
}
.lm-enviar { width: 100%; }
.lm-grande {
  position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .85);
  display: flex; flex-direction: column; align-items: stretch; padding: 16px;
}
.lm-grande img { flex: 1; width: 100%; object-fit: contain; border-radius: 12px; }
.lm-grande .btn { align-self: flex-start; margin-bottom: 12px; color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.4); }
.lm-dialog { box-sizing: border-box; width: calc(100% - 24px); max-width: 840px; max-height: calc(100dvh - 24px); padding: 16px; border: 0; border-radius: 16px; background: var(--bg); color: var(--text); overflow-y: auto; }
@media (min-width: 700px) { .lm-rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .lm-pantalla *, .lm-entrada { animation: none !important; transition: none !important; } }
