/* Menú ☰ que entra desde la izquierda (menu-lateral.js): /v, preguntas y textos legales. Usa los colores de base.css. */
.ml-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 40px; height: 40px; margin-left: -8px; padding: 0;
  border: 0; border-radius: 10px; background: none; color: var(--ink); cursor: pointer;
}
.ml-btn svg { width: 22px; height: 22px; }
.ml-btn:hover { background: var(--paper-2); }
.ml-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.ml-bg { position: fixed; inset: 0; z-index: 90; background: rgba(21, 20, 18, .38); opacity: 0; transition: opacity .22s ease; }
.ml-bg.on { opacity: 1; }
.ml {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 91;
  display: flex; flex-direction: column; width: min(300px, 86vw);
  padding: 0 14px calc(18px + env(safe-area-inset-bottom));
  background: var(--paper); box-shadow: 18px 0 50px -20px rgba(21, 20, 18, .45);
  transform: translateX(-102%); transition: transform .24s cubic-bezier(.2, .7, .3, 1);
  overflow-y: auto; overscroll-behavior: contain;
}
.ml.on { transform: none; }
.ml-top { display: flex; align-items: center; gap: 8px; height: 64px; flex: none; padding-left: 8px; }
.ml-marca { font-size: 28px; }
.ml-cuerpo { display: flex; flex-direction: column; flex: 1; min-height: 0; padding-top: 10px; }
.ml-nav, .ml-pie { display: flex; flex-direction: column; gap: 2px; }
.ml-pie { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.ml-it {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; text-decoration: none;
  font: 500 15px/1.25 var(--sans); cursor: pointer;
}
.ml-it svg { flex: none; width: 20px; height: 20px; color: var(--ink-soft); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } /* los íconos de iconos.svg (en la app los pinta app.css) */
.ml-it:hover, .ml-it:focus-visible { background: var(--paper-2); }
.ml-it:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.ml-carpeta:not(:empty) { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.ml-volver { min-height: 48px; padding: 8px 12px; font-size: 14px; color: var(--ink-soft); }
.ml-volver span { min-width: 0; overflow-wrap: anywhere; }
.ml-volver b { color: var(--ink); font-weight: 600; }
/* sin cuenta */
.ml-inv { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px 8px; }
.ml-inv-tx { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.ml-crear { width: 100%; height: 46px; }
html.ml-abierto { overflow: hidden; }

@media (max-width: 640px) {
  .ml-top { height: 56px; padding-left: 2px; }
  .ml-btn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .ml, .ml-bg { transition: none; }
}
