/* Tarjetas · estilos propios */
.top-mid { margin: 0 auto; display: flex; align-items: center; gap: 4px; }
.top-mid kbd { margin: 0 1px; }
.topbar .top-actions { margin-left: 0; }
.wrap { max-width: 1040px; margin: 0 auto; }
.view { display: grid; gap: 16px; }
.view[hidden] { display: none; }
.grow { flex: 1; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.row-btns.center { justify-content: center; }

/* Cabecera */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 20px; flex-wrap: wrap; padding: 8px 2px 4px; }
.head h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.head p { margin: 2px 0 0; }
.head-stats { display: flex; gap: 6px; }
.head-stats div { display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 6px 10px; border-radius: 10px; background: var(--sunken); }
.head-stats b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.head-stats span { font-size: 10.5px; color: var(--text-3); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.add { display: flex; gap: 6px; flex: 0 1 460px; }
.add .input { flex: 1; min-width: 0; }
.mini-field { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-2); }
.mini-field select { width: auto; height: 32px; }

/* Mazos */
.decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.deck { display: grid; gap: 10px; padding: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.deck-name { justify-self: start; max-width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.01em; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.deck-name:hover { color: var(--accent); }
.deck-counts { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; font-size: 12.5px; }
.c-due { color: var(--accent); font-weight: 600; }
.c-new { color: #16a34a; font-weight: 600; }
.deck-prog { height: 5px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.deck-prog i { display: block; height: 100%; background: #65a30d; border-radius: inherit; }
.deck-act { display: flex; gap: 6px; }
.deck-act .btn:first-child { flex: 1; }
.empty-home { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 36px 16px; border: 1px dashed var(--border-2); border-radius: 14px; color: var(--text-2); text-align: center; }
.empty-home p { margin: 0; }

/* Un mazo */
.deck-title { display: grid; justify-items: start; gap: 2px; min-width: 0; flex: 1; }
.title-in { width: 100%; max-width: 560px; margin-left: -4px; padding: 2px 4px; border: 0; border-radius: 6px; background: none; color: var(--text); font: inherit; font-size: 24px; font-weight: 600; letter-spacing: -.025em; outline: none; }
.title-in:hover, .title-in:focus { background: var(--sunken); }
.editor { display: grid; gap: 10px; padding: 14px 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; }
.ed-h { display: flex; align-items: center; gap: 10px; }
.card-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.card-form[hidden] { display: none; }
.card-form .field textarea { min-height: 70px; resize: vertical; font-family: inherit; font-size: 14px; line-height: 1.45; }
#manyForm .field { grid-column: 1 / -1; }
#manyForm textarea { font-family: var(--mono); font-size: 13px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.form-foot .check[hidden] { display: none; }
.hint-fmt kbd { font-size: 10.5px; }
.list-h { display: flex; align-items: center; gap: 12px; }
.list-h .input { max-width: 340px; }
.card-list { display: grid; gap: 6px; }
.crd { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 10px 10px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; cursor: pointer; font-size: 13.5px; line-height: 1.4; }
.crd:hover { border-color: var(--border-2); }
.crd:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.crd.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.crd-f { font-weight: 500; overflow-wrap: anywhere; }
.crd-b { color: var(--text-2); overflow-wrap: anywhere; }
.tag { justify-self: end; padding: 1px 8px; border-radius: 999px; background: var(--sunken); color: var(--text-2); font-size: 11px; white-space: nowrap; }
.tag.new { background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; }
.tag.due { background: var(--accent-soft); color: var(--accent); }
.empty-list { margin: 8px 2px; }

/* Estudiar */
.study-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.study-h b { font-size: 15px; }
.prog { height: 4px; border-radius: 2px; background: var(--sunken); overflow: hidden; }
.prog i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .25s; }
.study-count { margin: -8px 0 0; text-align: right; }
.fcard { display: grid; align-content: center; gap: 18px; min-height: 300px; padding: 34px 28px; background: var(--panel); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); text-align: center; transition: border-color .2s, box-shadow .2s; }
.fcard[hidden] { display: none; }
.fcard.enter { animation: cardIn .22s var(--ease, ease-out); }
.fcard.flipped .back { animation: backIn .25s var(--ease, ease-out); }
.fcard.right { border-color: #16a34a; box-shadow: 0 0 0 1px #16a34a; }
.fcard.wrong { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes backIn { from { opacity: 0; transform: rotateX(-70deg); } }
.side { font-size: clamp(20px, 3.2vw, 28px); font-weight: 500; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; }
.side.back { padding-top: 18px; border-top: 1px dashed var(--border-2); color: var(--text); font-weight: 600; }
.side[hidden], .answer[hidden], .quiz[hidden], .verdict[hidden] { display: none; }
.answer { display: grid; justify-items: center; gap: 8px; }
.answer .input { width: min(460px, 100%); text-align: center; }
.verdict { margin: 0; font-size: 13.5px; font-weight: 600; }
.verdict.ok { color: #16a34a; } .verdict.close { color: #d97706; } .verdict.bad { color: var(--danger); }
.quiz { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: min(640px, 100%); margin: 0 auto; }
.opt { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer; }
.opt:hover:not(:disabled) { border-color: var(--accent); }
.opt kbd { flex: none; }
.opt.right { border-color: #16a34a; background: color-mix(in srgb, #16a34a 12%, var(--bg)); }
.opt.wrong { border-color: var(--danger); background: var(--danger-soft); }
.opt:disabled { cursor: default; }
.actions { display: grid; justify-items: center; gap: 10px; }
.actions[hidden], .grades[hidden], .lg-btn[hidden] { display: none; }
.lg-btn { height: 42px; padding: 0 22px; font-size: 14px; }
.lg-btn kbd { margin-left: 8px; background: rgba(255, 255, 255, .18); border-color: transparent; color: inherit; }
.grades { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; width: min(640px, 100%); }
.grade { display: grid; justify-items: center; gap: 1px; padding: 9px 6px 8px; border: 1px solid var(--border-2); border-radius: 12px; background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: transform .1s, border-color .15s; }
.grade:hover { transform: translateY(-1px); }
.grade b { font-size: 14px; }
.grade small { color: var(--text-2); font-size: 11.5px; }
.grade kbd { margin-top: 3px; font-size: 10.5px; }
.grade.g1 b { color: var(--danger); } .grade.g2 b { color: #d97706; } .grade.g3 b { color: #16a34a; } .grade.g4 b { color: var(--accent); }
.grade.sug { border-color: currentColor; box-shadow: 0 0 0 2px var(--accent-soft); }
.grade.g1.sug { border-color: var(--danger); } .grade.g2.sug { border-color: #d97706; } .grade.g3.sug { border-color: #16a34a; }
.done { display: grid; justify-items: center; gap: 8px; padding: 40px 16px; text-align: center; }
.done[hidden] { display: none; }
.done h2 { margin: 0; font-size: 22px; }
.done p { margin: 0 0 8px; }
.done-ic { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, #16a34a 15%, transparent); color: #16a34a; font-size: 26px; font-weight: 700; }

@media (max-width: 640px) {
  .card-form { grid-template-columns: 1fr; }
  .crd { grid-template-columns: minmax(0, 1fr) auto; }
  .crd-b { grid-column: 1; grid-row: 2; }
  .crd .tag { grid-row: 1 / 3; grid-column: 2; }
  .crd .icon-btn { position: absolute; top: 4px; right: 4px; }
  .grades, .quiz { grid-template-columns: 1fr 1fr; }
  .fcard { min-height: 240px; padding: 26px 18px; }
  .head-stats div { min-width: 64px; }
}

/* Biblioteca */
.lib { display: grid; gap: 12px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border); }
.lib-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 16px; }
.lib-h h2 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.lib-h p { margin: 2px 0 0; max-width: 620px; }
.lib-h .input { width: min(320px, 100%); }
.lib-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.lib-cats button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 1px solid var(--border-2); border-radius: 999px; background: var(--panel); color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.lib-cats button:hover { color: var(--text); border-color: var(--text-3); }
.lib-cats button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.lib-cats small { color: inherit; opacity: .7; font-size: 11px; }
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
/* Colores de cada tema */
.c-geo { --c: #0284c7; } .c-lang { --c: #7c3aed; } .c-sci { --c: #059669; } .c-math { --c: #d97706; }
.c-hist { --c: #b45309; } .c-art { --c: #db2777; } .c-dev { --c: #475569; } .c-gen { --c: #0d9488; } .c-x { --c: var(--accent); }
.lib-cats button .ic { width: 14px; height: 14px; color: var(--c); }
.lib-cats button[aria-pressed="true"] .ic { color: inherit; }
/* Tarjeta de un mazo de la biblioteca */
.lib-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.lib-tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); opacity: .2; }   /* carril de la barra de progreso */
.lib-tile:hover { border-color: color-mix(in srgb, var(--c) 40%, var(--border)); box-shadow: var(--shadow-sm); }
.lt-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.lt-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.lt-ic .ic { width: 21px; height: 21px; }
.lt-tt { display: grid; min-width: 0; }
.lt-name { justify-self: start; max-width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.25; text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-name:hover { color: var(--c); }
.lt-meta { font-size: 11.5px; color: var(--text-3); }
.lt-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin: 0; min-height: calc(2 * 1.45em); overflow: hidden; color: var(--text-2); font-size: 12.5px; line-height: 1.45; }
.lt-sample { display: grid; gap: 5px; width: 100%; margin-top: auto; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; text-align: center; cursor: pointer; }
.lt-sample:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); }
.lt-q { font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-a { padding-top: 5px; border-top: 1px dashed var(--border-2); color: var(--text-2); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-act { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; }
.lt-act .btn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-del:hover { color: var(--danger); background: var(--danger-soft); }
.lt-meta { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; overflow: hidden; }
.lt-meta b { color: var(--accent); font-weight: 600; }
.lt-badge { display: inline-flex; align-items: center; gap: 3px; color: #15803d; font-weight: 600; }
.lt-badge .ic { width: 12px; height: 12px; }
.lt-prog { position: absolute; top: 0; left: 0; z-index: 1; height: 3px; background: var(--c); }
.lib-tile.added { border-color: color-mix(in srgb, #16a34a 35%, var(--border)); }
.lib-modal { display: flex; flex-direction: column; width: min(720px, 100%); max-height: calc(100dvh - 12vh - 24px); }
.lib-modal .modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lib-modal .modal-h h2 { margin: 0; }
.lib-modal > p { margin: 4px 0 10px; }
.lp-list { flex: 1; min-height: 0; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.lp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 8px 12px; border-bottom: 1px solid var(--border); font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.lp-row:last-child { border-bottom: 0; }
.lp-row span:last-child { color: var(--text-2); }
.lib-modal .modal-actions [hidden] { display: none; }
@media (max-width: 640px) { .lp-row { grid-template-columns: 1fr; gap: 2px; } }

/* Añadir un mazo: cómo estudiarlo (cada opción en una sola línea) */
.add-modal { width: min(560px, 100%); }
.add-modal .modal-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.add-modal .modal-h h2 { margin: 0; }
#adInfo { margin: 6px 0 10px; font-size: 13px; color: var(--text); font-weight: 600; }
.ad-opts { display: grid; grid-template-columns: auto max-content minmax(0, 1fr) auto; gap: 6px; }
.ad-opt { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--bg); cursor: pointer; }
.ad-opt:hover { border-color: var(--text-3); }
.ad-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--bg)); }
.ad-opt input { margin: 0; accent-color: var(--accent); }
.ad-t { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ad-rec { padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; font-size: 10.5px; font-style: normal; font-weight: 600; }
.ad-rec[hidden] { display: none; }
.ad-ex { overflow: hidden; color: var(--text-2); font-size: 13px; white-space: nowrap; text-overflow: ellipsis; }
.ad-ex i { margin: 0 5px; font-style: normal; color: var(--text-3); }
.ad-n { color: var(--text-3); font-size: 12px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ad-help { min-height: 1.45em; margin: 10px 2px 0; color: var(--text-2); line-height: 1.45; }
@media (max-width: 560px) { .ad-opts { grid-template-columns: auto minmax(0, 1fr) auto; } .ad-t { grid-column: 2 / -1; } .ad-ex { grid-column: 2; grid-row: 2; } .ad-n { grid-column: 3; grid-row: 2; } }

/* Voz: idioma de cada cara del mazo y botones para escuchar */
.voice-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; font-size: 12.5px; color: var(--text-2); }
.voice-row[hidden], .say-auto[hidden], #stHardBtn[hidden] { display: none; }
.voice-row label { display: inline-flex; align-items: center; gap: 6px; }
.voice-row select { width: auto; height: 30px; padding-right: 26px; }
.voice-ic { display: inline-flex; align-items: center; gap: 5px; color: var(--text-3); }
.voice-ic::after { content: "Voz:"; }
.voice-ic .ic { width: 16px; height: 16px; }
.say { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: 10px; padding: 0; border: 1px solid var(--border-2); border-radius: 50%; background: var(--bg); color: var(--text-2); vertical-align: middle; cursor: pointer; transition: color .15s, border-color .15s; }
.say:hover { border-color: var(--accent); color: var(--accent); }
.say .ic { width: 16px; height: 16px; }
.say-auto[aria-pressed="true"] { color: var(--accent); background: var(--accent-soft); }
.say-auto .ic { width: 15px; height: 15px; }

/* Imágenes en las tarjetas */
.card-form .field { display: grid; gap: 6px; align-content: start; }
.card-form .field.drop-on textarea { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.img-slot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 30px; }
.img-chip { position: relative; display: inline-flex; }
.img-chip img { height: 64px; max-width: 160px; object-fit: cover; border: 1px solid var(--border); border-radius: 8px; }
.img-chip .icon-btn { position: absolute; top: -8px; right: -8px; background: var(--panel); border: 1px solid var(--border-2); border-radius: 50%; }
.card-img { display: block; max-width: 100%; max-height: 260px; margin: 12px auto 0; border-radius: 10px; }
.crd-img { display: block; height: 42px; max-width: 120px; margin-top: 4px; object-fit: cover; border-radius: 6px; }

/* Estadísticas */
.st-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.st-kpis div { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.st-kpis b { font-size: 22px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.st-kpis span { font-size: 12px; color: var(--text-3); }
.st-box { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); min-width: 0; }
.st-box h2 { margin: 0; font-size: 15px; font-weight: 600; }
.st-box p { margin: 0; }
.st-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.st-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.heat { display: grid; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.heat-months { display: grid; grid-template-columns: repeat(26, minmax(9px, 1fr)); gap: 3px; min-width: 330px; font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.heat-grid { display: grid; grid-template-columns: repeat(26, minmax(9px, 1fr)); grid-template-rows: repeat(7, auto); grid-auto-flow: column; gap: 3px; min-width: 330px; }
.heat-grid i { display: block; aspect-ratio: 1; border-radius: 3px; background: var(--sunken); }
.heat-legend i { display: block; border-radius: 3px; background: var(--sunken); }
.heat-grid i.fut { background: none; }
.heat-grid i.today { outline: 1.5px solid var(--text-3); outline-offset: 1px; }
.heat .l1 { background: color-mix(in srgb, #65a30d 30%, var(--sunken)); }
.heat .l2 { background: color-mix(in srgb, #65a30d 55%, var(--sunken)); }
.heat .l3 { background: color-mix(in srgb, #65a30d 78%, var(--sunken)); }
.heat .l4 { background: #65a30d; }
.heat-legend { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-3); }
.heat-legend i { width: 12px; height: 12px; }
.st-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; height: 150px; }
.st-col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 4px; height: 100%; }
.st-col b { font-size: 12px; font-variant-numeric: tabular-nums; }
.st-col small { font-size: 11px; color: var(--text-3); }
.st-bar { display: flex; align-items: flex-end; width: 100%; max-width: 34px; height: 100%; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.st-bar i { display: block; width: 100%; background: var(--accent); border-radius: 6px 6px 0 0; }
.st-table { overflow-x: auto; }
.st-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.st-table th { padding: 6px 8px; border-bottom: 1px solid var(--border); color: var(--text-3); font-size: 11.5px; font-weight: 600; text-align: right; white-space: nowrap; }
.st-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: right; font-variant-numeric: tabular-nums; }
.st-table th:first-child, .st-table td:first-child { text-align: left; }
.st-table tr:last-child td { border-bottom: 0; }
.st-link { padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.st-link:hover { color: var(--accent); }
.st-hard { display: grid; }
.st-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.st-row:last-child { border-bottom: 0; }
.st-a { color: var(--text-2); }
@media (max-width: 760px) { .st-two { grid-template-columns: 1fr; } .st-row { grid-template-columns: 1fr; gap: 2px; } }

.voice-warn { margin: 6px 0 0; max-width: 640px; color: #b45309; line-height: 1.45; }
.voice-warn[hidden] { display: none; }
.say.off { opacity: .4; border-style: dashed; }

/* Imágenes de la biblioteca */
.lt-img { display: inline-block; height: 22px; width: auto; max-width: 60px; margin-right: 7px; vertical-align: middle; border-radius: 3px; }
.lt-sample .lt-q, .lt-sample .lt-a { display: flex; align-items: center; justify-content: center; }
.lt-hasimg { display: inline-flex; align-items: center; gap: 3px; }
.lt-hasimg .ic { width: 12px; height: 12px; }
.lp-img { display: block; height: 44px; width: auto; max-width: 90px; margin-bottom: 4px; border-radius: 4px; }
.ad-img { display: inline-block; height: 18px; width: auto; max-width: 40px; margin: 0 3px; vertical-align: middle; border-radius: 2px; }

/* ───────── Móvil: tarjeta grande y botones de respuesta abajo, al alcance del pulgar ───────── */
@media (max-width: 700px) {
  .fcard { min-height: 44vh; padding: 28px 18px; cursor: pointer; }
  .actions { position: sticky; bottom: 0; z-index: 3; padding: 14px 0 max(12px, env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 22px); }
  .actions .lg-btn { width: 100%; height: 52px; font-size: 16px; }
  .grades { gap: 6px; }
  .grade { min-height: 58px; padding: 8px 4px; }
  .grade b { font-size: 15px; }
}
