/* Lumcards · Objetivos (r106): la pestaña «Objetivos» de Mazos, el menú de cada objetivo y el diálogo para crearlo o
   cambiarlo (dist/objetivos.js). Usa las variables de la app: vale en tema claro y oscuro, en el celular y en la PC.
   El movimiento es solo de transform y opacity, y se quita con prefers-reduced-motion. */

/* ── Tres pestañas en Mazos: «Mis mazos · Objetivos · Tienda» ── */
.lm-pestanas.lm-pestanas-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 520px; }
.lm-pestanas.lm-pestanas-3 button { min-width: 0; padding: 0 4px; gap: 5px; }
.lm-pestanas.lm-pestanas-3 button span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) {
  .lm-pestanas.lm-pestanas-3 button { font-size: 14px; }
  .lm-pestanas.lm-pestanas-3 button .ic3d { width: 20px; height: 20px; }
}

/* ── La lista ── */
.lo-lista { display: grid; gap: 12px; margin-top: 4px; max-width: 720px; }
.lo-obj { position: relative; display: grid; gap: 12px; padding: 16px 12px 16px 16px; border-radius: var(--r-card, 20px); background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.lo-obj.es-principal { background: var(--accent-soft, #fff0f2); border: 1.5px solid var(--accent-button, #a92238); box-shadow: none; }
.lo-obj-cab { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; }
.lo-obj-cab .ic3d { width: 44px; height: 44px; }
.lo-obj-nombre { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 18px; line-height: 24px; font-weight: 650; letter-spacing: -.01em; overflow-wrap: anywhere; color: var(--text); }
.lo-obj-sub { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.lo-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px 0 6px; border-radius: 99px; background: var(--accent-button, #a92238); color: #fff; font-size: 12px; line-height: 22px; font-weight: 600; letter-spacing: 0; white-space: nowrap; }
.lo-chip .icon { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.lo-obj .lm-mas { inline-size: 44px; block-size: 44px; min-inline-size: 44px; }
.lo-prog { height: 8px; margin-right: 4px; border-radius: 99px; background: var(--soft-2, #ece7e0); overflow: hidden; }
.lo-prog > i { display: block; height: 100%; border-radius: 99px; background: var(--accent-button, #a92238); }
.lo-obj.es-principal .lo-prog, .lo-obj.es-principal .lo-semana i:not(.si) { background: color-mix(in srgb, var(--accent-button, #a92238) 18%, transparent); }
.lo-semana { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; margin-right: 4px; }
.lo-semana i { height: 8px; border-radius: 99px; background: var(--soft-2, #ece7e0); }
.lo-semana i.si { background: var(--accent-button, #a92238); }
.lo-obj-pie { margin: 0 4px 0 0; display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; color: var(--muted); }
.lo-obj-pie strong { color: var(--text); font-weight: 650; }
.lo-obj-pie > span { min-width: 0; overflow-wrap: anywhere; }
.lo-obj-pie > span + span { flex: 0 1 auto; text-align: right; }
.lo-obj.es-principal .lo-obj-sub, .lo-obj.es-principal .lo-obj-pie { color: color-mix(in srgb, var(--text) 72%, var(--accent-button, #a92238)); }
.lo-nota { margin: -2px 4px 4px; font-size: 14px; line-height: 20px; color: var(--muted); }
.lo-nuevo { width: 100%; justify-content: center; min-height: 50px; margin-top: 6px; }

/* Un objetivo con la fecha pasada pregunta qué hacer */
.lo-vencido { display: grid; gap: 10px; min-width: 0; padding: 14px 16px; border-radius: var(--r-card, 20px); border: 1px solid color-mix(in srgb, var(--lumi-oro, #f5b301) 55%, var(--line)); background: color-mix(in srgb, var(--lumi-oro, #f5b301) 12%, var(--panel)); color: var(--text); }
.lo-vencido p { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.lo-vencido-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.lo-vencido-acciones .btn { min-height: 44px; }

/* El menú «···» */
.lo-menu { position: absolute; top: 60px; right: 12px; z-index: 30; display: grid; min-width: 224px; padding: 6px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--sh-3); }
.lo-menu[hidden] { display: none; }
.lo-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 12px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 500; text-align: left; cursor: pointer; }
.lo-menu button:hover, .lo-menu button:focus-visible { background: var(--soft); }
.lo-menu button:focus-visible { outline: 2px solid var(--focus-ring, var(--accent-button, #a92238)); outline-offset: -2px; }
.lo-menu button .icon { width: 20px; height: 20px; flex: none; color: var(--muted); }
.lo-menu button.peligro, .lo-menu button.peligro .icon { color: var(--danger, #b3261e); }

/* Sin objetivos */
.lo-vacio { display: grid; justify-items: center; text-align: center; padding: 30px 12px 8px; }
.lo-vacio .lumi-img, .lo-vacio .ic3d { width: 148px; height: 148px; object-fit: contain; }
.lo-vacio h2 { margin: 14px 0 6px; font-size: 22px; line-height: 28px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.lo-vacio p { margin: 0 0 22px; max-width: 300px; font-size: 16px; line-height: 24px; color: var(--muted); }
.lo-vacio .btn { min-height: 52px; padding: 0 24px; }

/* ── El diálogo: elegir el tipo y llenar su formulario ── */
#modal.dialog-objetivo { box-sizing: border-box; width: min(520px, calc(100vw - 32px)); max-width: 520px; }
#modal.dialog-objetivo .dialog-head h2 { display: flex; align-items: center; gap: 12px; min-width: 0; }
#modal.dialog-objetivo .dialog-head h2 .ic3d { width: 40px; height: 40px; flex: none; }
#modal.dialog-objetivo .dialog-intro { margin-bottom: 18px; }
/* En el celular el título va con su icono en una sola línea (solo «Mantener lo aprendido» ocupa dos). */
@media (max-width: 480px) {
  #modal.dialog-objetivo-form .dialog-head h2 { gap: 10px; font-size: 21px !important; line-height: 26px !important; letter-spacing: -.02em; }
  #modal.dialog-objetivo-form .dialog-head h2 .ic3d { width: 36px; height: 36px; }
}
.lo-tipos { display: grid; gap: 10px; }
.lo-tipo { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 14px; align-items: center; min-height: 72px; padding: 12px 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 16px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lo-tipo:hover { background: var(--soft); }
.lo-tipo:focus-visible, .lo-selector:focus-visible, .lo-opcion:focus-visible, .lo-paso button:focus-visible { outline: 3px solid var(--focus-ring, var(--accent-button, #a92238)); outline-offset: 2px; }
.lo-tipo .ic3d { width: 40px; height: 40px; }
.lo-tipo > span { display: grid; gap: 2px; min-width: 0; }
.lo-tipo strong { font-size: 16px; line-height: 22px; font-weight: 600; }
.lo-tipo small { font-size: 14px; line-height: 20px; color: var(--muted); }
.lo-tipo > .icon { width: 18px; height: 18px; color: var(--muted); }

.lo-form { display: grid; gap: 18px; margin: 0; }
.lo-campo { display: grid; gap: 8px; margin: 0; min-width: 0; }
.lo-rot { display: flex; align-items: center; gap: 8px; font-size: 14px; line-height: 18px; font-weight: 600; color: var(--text); }
.lo-rot .icon { width: 18px; height: 18px; flex: none; color: var(--accent-text, var(--accent-button, #a92238)); }
#modal .lo-form input[type="text"], #modal .lo-form input[type="date"] { box-sizing: border-box; width: 100%; min-height: 52px; margin: 0; padding: 0 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 14px; background: var(--soft); color: var(--text); font: inherit; font-size: 16px; }
#modal .lo-form input[type="date"] { -webkit-appearance: none; appearance: none; text-align: left; }
#modal .lo-form [aria-invalid="true"] { border-color: var(--danger, #b3261e); }
.lo-pista { margin: 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.lo-pista:empty { display: none; }
.lo-pista.es-error { color: var(--danger, #b3261e); }
.lo-pista-suelta { margin-top: -6px; }
/* El aviso del examen que se reemplaza: vacío sigue en el árbol de accesibilidad (región viva) sin ocupar lugar. */
.lo-aviso { margin: 0; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, #d97706 55%, var(--panel)); background: color-mix(in srgb, #f59e0b 12%, var(--panel)); color: var(--text); font-size: 14px; line-height: 1.45; }
.lo-aviso:empty { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* «Qué entra»: la fila que abre la hoja, con el dibujo y el color de la carpeta o el mazo */
.lo-selector { display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; gap: 12px; align-items: center; width: 100%; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 14px; background: var(--soft); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lo-selector-texto { display: grid; min-width: 0; }
.lo-selector strong, .lo-opcion strong { font-size: 16px; line-height: 22px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lo-selector small, .lo-opcion small { font-size: 13px; line-height: 18px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lo-selector > .icon { width: 18px; height: 18px; color: var(--muted); }
.lo-mazo-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--mazo-bg, var(--soft-2, #ece7e0)); color: var(--mazo-color, var(--muted)); font-size: 20px; line-height: 1; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .06); }
.lo-mazo-ic .icon { width: 22px; height: 22px; }
.lo-mazo-ic.es-carpeta { background: linear-gradient(145deg, #ffd978, #f2a93b); color: #6b3f00; }
.lo-mazo-ic.es-todo { background: var(--accent-soft, #fff0f2); color: var(--accent-button, #a92238); }
.lo-mazo-ic.es-vacio { background: none; border: 1.5px dashed var(--line-strong, var(--line)); color: var(--muted); box-shadow: none; }

/* Más y menos */
.lo-paso { display: grid; grid-template-columns: 56px minmax(0, 1fr) 56px; align-items: center; height: 56px; border: 1px solid var(--line-strong, var(--line)); border-radius: 14px; background: var(--soft); overflow: hidden; }
.lo-paso button { height: 100%; margin: 0; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 24px; font-weight: 500; line-height: 1; cursor: pointer; }
.lo-paso button:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.lo-paso-valor { display: flex; align-items: baseline; justify-content: center; gap: 6px; min-width: 0; }
#modal .lo-paso input { box-sizing: content-box; width: 3ch; min-height: 0; height: 54px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; color: var(--text); font: inherit; font-size: 20px; font-weight: 650; text-align: center; -moz-appearance: textfield; appearance: textfield; }
.lo-paso input::-webkit-outer-spin-button, .lo-paso input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.lo-paso:focus-within { outline: 2px solid var(--focus-ring, var(--accent-button, #a92238)); outline-offset: 2px; }
.lo-paso[aria-invalid="true"], .lo-paso:has([aria-invalid="true"]) { border-color: var(--danger, #b3261e); }
.lo-paso-valor small { font-size: 14px; font-weight: 500; color: var(--muted); }

/* «Meta para ese día» del examen, plegada */
.lo-meta-dia { min-width: 0; }
.lo-meta-dia > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; list-style: none; cursor: pointer; }
.lo-meta-dia > summary::-webkit-details-marker { display: none; }
.lo-meta-dia > summary > .icon { width: 18px; height: 18px; color: var(--muted); transform: rotate(90deg); }
.lo-meta-dia[open] > summary > .icon { transform: rotate(-90deg); }
.lo-meta-dia .segmented { margin: 4px 0 8px; }

/* «Objetivo principal» */
.lo-int-fila { display: flex; align-items: center; gap: 16px; min-height: 56px; padding-top: 14px; border-top: 1px solid var(--line); cursor: pointer; }
.lo-int-texto { display: grid; gap: 2px; flex: 1; min-width: 0; }
.lo-int-texto small { font-size: 14px; line-height: 20px; color: var(--muted); }
.lo-int { position: relative; flex: none; width: 52px; height: 44px; }
.lo-int input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.lo-int i { position: absolute; top: 6px; left: 0; width: 52px; height: 32px; border-radius: 99px; background: var(--switch-off, #767f90); }
.lo-int i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform var(--dur-2, 180ms) var(--ease-out, ease-out); }
.lo-int input:checked + i { background: var(--switch-on, #a92238); }
.lo-int input:checked + i::after { transform: translateX(20px); }
.lo-int input:focus-visible + i { outline: 3px solid var(--focus-ring, var(--accent-button, #a92238)); outline-offset: 2px; }
.lo-int input:disabled { cursor: default; }
.lo-int input:disabled + i { opacity: .6; }
#modal.dialog-objetivo .form-footer { margin-top: 4px; }
#modal.dialog-objetivo .form-footer .btn { min-height: 48px; }
#modal.dialog-objetivo .form-error:empty { display: none; }

/* ── La hoja para elegir qué entra: ocupa el lugar del formulario dentro del mismo diálogo ── */
#modal.dialog-objetivo.lo-eligiendo > .dialog-head, #modal.dialog-objetivo.lo-eligiendo > .dialog-intro, #modal.dialog-objetivo.lo-eligiendo > .lo-form { display: none; }
.lo-hoja { display: grid; gap: 12px; min-width: 0; animation: lo-sube .22s var(--ease-out, ease-out); }
.lo-hoja[hidden] { display: none; }
@keyframes lo-sube { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.lo-hoja-cab { display: flex; align-items: center; gap: 8px; }
.lo-hoja-cab h3 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 650; letter-spacing: -.01em; color: var(--text); }
.lo-hoja-buscar { display: flex; align-items: center; gap: 10px; min-height: 50px; margin: 0; padding: 0 14px; border: 1px solid var(--line-strong, var(--line)); border-radius: 14px; background: var(--soft); color: var(--muted); }
.lo-hoja-buscar .icon { width: 20px; height: 20px; flex: none; }
#modal .lo-hoja-buscar input { flex: 1; min-width: 0; min-height: 48px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; outline: none; color: var(--text); font: inherit; font-size: 16px; }
.lo-hoja-buscar:focus-within { outline: 2px solid var(--focus-ring, var(--accent-button, #a92238)); outline-offset: 2px; }
.lo-hoja-lista { display: grid; gap: 4px; max-height: min(54dvh, 480px); margin: 0; padding: 2px; list-style: none; overflow: auto; overscroll-behavior: contain; }
.lo-opcion { display: grid; grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 12px; align-items: center; width: 100%; min-height: 60px; padding: 8px 12px 8px calc(12px + var(--nivel, 0) * 18px); border: 1.5px solid transparent; border-radius: 14px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lo-opcion:hover { background: var(--soft); }
.lo-opcion[aria-pressed="true"] { background: var(--accent-soft, #fff0f2); border-color: var(--accent-button, #a92238); }
.lo-opcion > span:nth-child(2) { display: grid; min-width: 0; }
.lo-opcion .lo-marca { width: 22px; height: 22px; color: var(--accent-button, #a92238); visibility: hidden; }
.lo-opcion[aria-pressed="true"] .lo-marca { visibility: visible; }
.lo-hoja-nada { margin: 8px 6px; font-size: 15px; line-height: 22px; color: var(--muted); }

/* En oscuro, el dibujo del mazo conserva su color claro y la sombra corta separa los iconos 3D del fondo. */
.dark .lo-obj-cab .ic3d, .dark .lo-tipo .ic3d, .dark #modal.dialog-objetivo .dialog-head h2 .ic3d { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }

@media (prefers-reduced-motion: reduce) {
  .lo-hoja { animation: none; }
  .lo-int i::after { transition: none; }
}

/* ══ Objetivos 2 ══ */
/* ── Inicio: la tarjeta de hoy sale del objetivo principal (objetivos.js, tarjetaHoy). Nombre arriba, «Faltan N días»
   debajo, las dos cifras con «Empezar» al lado y la barra con su avance. Texto blanco sobre el degradado del acento,
   como la tarjeta «Repaso del día» (4,8:1 o más con los 8 colores, r88). ── */
.lumi-home .study-companion.lh-hoy.lh-hoy-objetivo { grid-template-areas: "cab deco" "nums acc" "copy copy" "avance avance" "mas mas"; }
.lumi-home .study-companion.lh-hoy.lh-hoy-objetivo.lh-hoy-aldia { grid-template-areas: "cab deco" "copy copy" "acc acc" "avance avance" "mas mas"; }
.lumi-home .lh-hoy.lh-hoy-objetivo #lh-hoy-t { margin: 0; overflow-wrap: anywhere; }
.lumi-home .lh-hoy.lh-hoy-objetivo .lh-hoy-kicker { margin: 4px 0 0; font-size: 16px; line-height: 22px; font-weight: 600; }
.lumi-home .lh-hoy.lh-hoy-objetivo .companion-actions { align-self: end; }
.lumi-home .lh-hoy.lh-hoy-objetivo.lh-hoy-aldia .companion-actions { justify-self: start; }
.lumi-home .lh-hoy .lh-hoy-avance { grid-area: avance; min-width: 0; margin: 16px 0 0; }
.lumi-home .lh-hoy .lh-hoy-barra { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .28); }
.lumi-home .lh-hoy .lh-hoy-barra i { display: block; height: 100%; min-width: 0; border-radius: 999px; background: #fff; }
.lumi-home .lh-hoy .lh-hoy-avance p { margin: 8px 0 0; font-size: 14px; line-height: 20px; }
.lumi-home .lh-hoy .lh-hoy-avance strong { font-weight: 750; }
@media (min-width: 651px) {
  .lumi-home .study-companion.lh-hoy.lh-hoy-objetivo { grid-template-areas: "cab deco" "nums deco" "copy deco" "acc deco" "avance avance" "mas mas"; }
  .lumi-home .study-companion.lh-hoy.lh-hoy-objetivo.lh-hoy-aldia { grid-template-areas: "cab deco" "copy deco" "acc deco" "avance avance" "mas mas"; }
  .lumi-home .lh-hoy.lh-hoy-objetivo .companion-actions { align-self: auto; }
}
@media (max-width: 650px) {
  /* «Seguir con 10 más» no cabe al lado de las cifras: baja a su fila (como r93). */
  .lumi-home .study-companion.lh-hoy.lh-hoy-objetivo.lh-hoy-sigue { grid-template-areas: "cab deco" "nums nums" "copy copy" "acc acc" "avance avance" "mas mas"; }
}
@media (max-width: 360px) {
  .lumi-home .study-companion.lh-hoy.lh-hoy-objetivo { grid-template-areas: "cab deco" "nums nums" "copy copy" "acc acc" "avance avance" "mas mas"; }
}
/* ── Inicio: «Tus otros objetivos» (en el lugar de «Tus exámenes» de r96) ── */
.lumi-home .lh-objetivo-item { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-width: 0; min-height: 64px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--lumi-radio, 18px); background: var(--panel); color: var(--text); box-shadow: var(--shadow);
  font: inherit; text-align: left; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.lumi-home .lh-objetivo-item:hover { transform: translateY(-1px); box-shadow: var(--sh-3, var(--shadow)); }
.lumi-home .lh-objetivo-item .ic3d { width: 40px; height: 40px; }
.lumi-home .lh-objetivo-texto { display: grid; gap: 2px; min-width: 0; }
.lumi-home .lh-objetivo-texto strong { font-size: 16px; line-height: 22px; font-weight: 700; overflow-wrap: anywhere; }
.lumi-home .lh-objetivo-texto small { font-size: 14px; line-height: 20px; color: var(--muted); overflow-wrap: anywhere; }
.lumi-home .lh-objetivo-valor { font-size: 16px; line-height: 22px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lumi-home .lh-grid .lh-objetivo-item:focus-visible, .lumi-home .lh-objetivos .lh-link:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.dark .lumi-home .lh-objetivo-item .ic3d { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }
/* Los enlaces de la sección, con la tinta del acento (con rosa palo en claro, el acento solo queda en 4,36:1 sobre el fondo). */
.lumi-home .lh-objetivos .lh-link { color: var(--accent-ink, var(--studio-accent, #e8344b)); }
/* Sin objetivos: una línea para crear el primero, sin caja. */
.lumi-home .lh-objetivos-vacio { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 2px; }
.lumi-home .lh-objetivos-vacio .lh-examenes-vacio { flex: 1 1 220px; margin: 0; font-size: 14px; line-height: 20px; }
.lumi-home .lh-objetivos-vacio .lh-link { min-height: 44px; }
@media (prefers-reduced-motion: reduce) { .lumi-home .lh-objetivo-item { transition: none; } .lumi-home .lh-objetivo-item:hover { transform: none; } }

/* ── Bienvenida: «¿Para qué vas a usar Lumcards?» (objetivos.js, bvPaso) ── */
.lo-bv-tipos { display: grid; gap: 8px; width: 100%; text-align: left; }
.lo-bv-tipo { display: grid; grid-template-columns: 44px minmax(0, 1fr) 24px; gap: 12px; align-items: center; min-height: 64px; padding: 8px 12px; border: 1px solid var(--line-strong, var(--line));
  border-radius: 16px; background: var(--panel); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.lo-bv-tipo:hover { background: var(--soft); }
.lo-bv-tipo .ic3d { width: 44px; height: 44px; }
.lo-bv-tipo > span { display: grid; gap: 2px; min-width: 0; }
.lo-bv-tipo strong { font-size: 16px; line-height: 22px; font-weight: 600; }
.lo-bv-tipo small { font-size: 14px; line-height: 20px; color: var(--muted); }
.lo-bv-marca { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong, var(--line)); box-sizing: border-box; }
.lo-bv-marca .icon { width: 14px; height: 14px; color: #fff; stroke: currentColor; opacity: 0; }
.lo-bv-tipo[aria-checked="true"] { border-color: var(--accent-button, #c81a33); box-shadow: inset 0 0 0 1px var(--accent-button, #c81a33); background: color-mix(in srgb, var(--accent-button, #c81a33) 6%, var(--panel)); }
.lo-bv-tipo[aria-checked="true"] .lo-bv-marca { border-color: transparent; background: var(--accent-button, #c81a33); }
.lo-bv-tipo[aria-checked="true"] .lo-bv-marca .icon { opacity: 1; }
.lo-bv-tipo:focus-visible { outline: 3px solid var(--focus-ring, var(--accent-button, #a92238)); outline-offset: 2px; }
.lo-bv-elegido { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 10px 12px; border-radius: 16px; background: var(--soft); text-align: left; box-sizing: border-box; }
.lo-bv-elegido .ic3d { width: 44px; height: 44px; }
.lo-bv-elegido > span { display: grid; gap: 2px; min-width: 0; }
.lo-bv-elegido strong { font-size: 16px; line-height: 22px; font-weight: 600; }
.lo-bv-elegido small { font-size: 14px; line-height: 20px; color: var(--muted); }
.lm-bienv .lo-bv-form { width: 100%; text-align: left; }
.lm-bienv #bienv-error:empty { display: none; }
.dark .lo-bv-tipo .ic3d, .dark .lo-bv-elegido .ic3d { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .45)); }

/* ── Mi progreso: «Tus partidas», al final (app.js, partidasSeccion; la lista es de practice.js) ── */
.partidas-card .lp-history { margin: 0; }
.partidas-card .lp-history-table { box-shadow: none; }
