:root {
  --bg: #0b0b0f;
  --bg2: #101016;
  --panel: #15151c;
  --panel2: #1b1b24;
  --line: #2a2a36;
  --text: #f3f3f7;
  --muted: #9a9aab;
  --faint: #6c6c7c;
  --accent: #ff3347;
  --accent2: #ff6071;
  --ok: #3ddc97;
  --warn: #ffb547;
  --bad: #ff5d6c;
  --info: #6aa8ff;
  --radius: 14px;
  --radius-s: 9px;
  --nav-h: 62px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font);
  background-image: radial-gradient(900px 500px at 85% -10%, rgba(255, 51, 71, .13), transparent 60%);
  background-attachment: fixed; min-height: 100vh;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--accent2); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: .85rem; }
.nowrap { white-space: nowrap; } .grow { flex: 1 1 auto; min-width: 0; }
.row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: .6rem; }
.right { margin-left: auto; }
.sr { position: absolute; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* left:0: sin ello, un input oculto dentro de una tabla ancha agranda la página */

/* ---------- estructura ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; min-width: 0;
  padding: calc(.7rem + env(safe-area-inset-top)) max(1.2rem, env(safe-area-inset-right)) .7rem max(1.2rem, env(safe-area-inset-left));
  background: rgba(11, 11, 15, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: .55rem; font-weight: 800; letter-spacing: -.02em; font-size: 1.2rem; text-decoration: none; color: var(--text); }
.logo svg { width: 28px; height: 28px; }
.logo b { color: var(--accent); }
.tabs { display: flex; gap: .25rem; margin-left: 1rem; min-width: 0; }
.tab {
  display: flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 999px; color: var(--muted);
  text-decoration: none; font-weight: 600; font-size: .95rem; border: 1px solid transparent;
}
.tab:hover { color: var(--text); background: var(--panel); }
.tab.on { color: var(--text); background: var(--panel2); border-color: var(--line); }
.tab .dot { min-width: 1.35rem; height: 1.35rem; padding: 0 .4rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; display: grid; place-items: center; }
.tab svg { width: 20px; height: 20px; flex: none; }
.who { color: var(--muted); font-size: .85rem; max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 1040px; margin: 0 auto; padding: 1.4rem max(1.2rem, env(safe-area-inset-right)) 5rem max(1.2rem, env(safe-area-inset-left)); min-width: 0; }
img, video, canvas, svg { max-width: 100%; }
p, h1, h2, h3, .card, .toast, .banner, .motivos { overflow-wrap: anywhere; }
.banner { background: #2a1d10; border: 1px solid #5a3b14; color: #ffd9a1; padding: .7rem 1rem; border-radius: var(--radius-s); margin-bottom: 1rem; font-size: .92rem; }

/* ---------- componentes ---------- */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.card + .card { margin-top: 1rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .55rem 1.05rem;
  border-radius: 10px; border: 1px solid var(--line); background: var(--panel2); cursor: pointer; font-weight: 600; text-decoration: none; color: var(--text);
}
.btn:hover { border-color: #3b3b4b; background: #222230; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent2); border-color: var(--accent2); }
.btn.danger { color: var(--bad); border-color: #5b2630; }
.btn.danger.sure { background: var(--bad); color: #1a0a0d; border-color: var(--bad); }
.btn.small { min-height: 34px; padding: .3rem .7rem; font-size: .88rem; }
.btn.ghost { background: transparent; }
.btn svg { width: 18px; height: 18px; }
input[type=text], input[type=password], input[type=number], textarea, select {
  width: 100%; background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius-s); padding: .6rem .75rem; min-height: 42px;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent2); outline: none; }
textarea { resize: vertical; line-height: 1.55; }
label.f { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; color: var(--muted); font-weight: 600; }
label.f > span.hint { font-weight: 400; color: var(--faint); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; }
.badge::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.b-pendiente { color: var(--muted); background: #20202b; border-color: var(--line); }
.b-procesando { color: var(--info); background: #14233b; border-color: #23406b; }
.b-procesando::before { animation: pulso 1.2s ease-in-out infinite; }
.b-ok { color: var(--ok); background: #0f2a20; border-color: #1c5a41; }
.b-dudoso { color: var(--warn); background: #2b2110; border-color: #5e4616; }
.b-fallo { color: var(--bad); background: #2d1218; border-color: #63222d; }
@keyframes pulso { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.bar { height: 7px; background: #23232e; border-radius: 99px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; transition: width .5s ease; }
.bar.info > i { background: var(--info); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #33334a; border-top-color: var(--accent2); animation: giro .8s linear infinite; display: inline-block; }
@keyframes giro { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 2.2rem 1rem; }
.empty svg { width: 44px; height: 44px; opacity: .5; margin-bottom: .5rem; }
#toasts { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 14px); display: flex; flex-direction: column; gap: .5rem; width: min(92vw, 420px); pointer-events: none; }
.toast { background: #23232f; border: 1px solid var(--line); border-left: 4px solid var(--info); border-radius: 10px; padding: .7rem .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.5); pointer-events: auto; font-size: .93rem; }
.toast.ok { border-left-color: var(--ok); } .toast.err { border-left-color: var(--bad); }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 1.2rem; }
.login .card { width: min(94vw, 380px); padding: 1.6rem; }
.login .logo { justify-content: center; margin-bottom: 1.2rem; font-size: 1.6rem; }
.login .logo svg { width: 44px; height: 44px; }

/* ---------- crear ---------- */
.hero { margin-bottom: 1.2rem; }
.hero p { color: var(--muted); max-width: 60ch; }
.drop {
  display: grid; place-items: center; text-align: center; gap: .4rem; padding: 2.6rem 1rem; border: 2px dashed #3a3a4c; border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,51,71,.05), transparent); cursor: pointer; transition: border-color .15s, background .15s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(255, 51, 71, .09); }
.drop .cd { width: 64px; height: 64px; margin: 0 auto .3rem; }
.drop strong { font-size: 1.15rem; }
.drop.compact { padding: 1.2rem 1rem; }
.formats { color: var(--faint); font-size: .85rem; }
.uploads { display: flex; flex-direction: column; gap: .6rem; margin-top: 1rem; }
.up { display: grid; grid-template-columns: 1fr auto; gap: .35rem .8rem; align-items: center; padding: .7rem .9rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-s); }
.up .bar { grid-column: 1 / -1; }
.opt { margin-top: 1rem; }
.sep { display: flex; align-items: center; gap: .8rem; color: var(--faint); margin: 1.1rem 0; font-size: .85rem; }
.sep::before, .sep::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- lista de trabajos ---------- */
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin: .2rem 0 1rem; }
.chip { padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); cursor: pointer; font-size: .9rem; font-weight: 600; }
.chip.on { background: var(--panel2); color: var(--text); border-color: var(--accent); }
.chip small { opacity: .75; margin-left: .25rem; }
.jobs { display: flex; flex-direction: column; gap: .6rem; }
.job {
  display: grid; grid-template-columns: 56px 1fr auto; gap: .9rem; align-items: center; padding: .7rem .8rem;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit;
}
.job:hover { border-color: #3d3d4f; background: #181821; }
.thumb { width: 56px; height: 56px; border-radius: 10px; background: #1e1e29 center/cover no-repeat; border: 1px solid var(--line); flex: none; display: grid; place-items: center; color: var(--faint); }
.thumb svg { width: 26px; height: 26px; }
.job .t { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .s { color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .bar { margin-top: .4rem; max-width: 320px; }
.job .meta { text-align: right; display: flex; flex-direction: column; gap: .3rem; align-items: flex-end; }

/* ---------- detalle ---------- */
.crumb { margin-bottom: .8rem; }
.dgrid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.2rem; align-items: start; }
.vid { background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 9/16; display: grid; place-items: center; position: relative; max-height: 70vh; }
.vid video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.vid .ph { text-align: center; color: var(--muted); padding: 1.2rem; font-size: .92rem; }
.vid .ph .cover { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1rem; background: #1e1e29 center/cover; border: 8px solid #111; box-shadow: 0 0 0 2px var(--line); }
.vid .ph .cover.spin { animation: giro 6s linear infinite; }
.steps { display: flex; flex-direction: column; gap: .15rem; margin-top: .5rem; }
.step { display: flex; align-items: center; gap: .6rem; padding: .28rem .1rem; font-size: .93rem; color: var(--faint); }
.step i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #343446; flex: none; display: grid; place-items: center; font-style: normal; font-size: 11px; line-height: 1; }
.step.ok { color: var(--text); } .step.ok i { background: var(--ok); border-color: var(--ok); color: #0a1a12; }
.step.en_curso { color: var(--info); font-weight: 700; } .step.en_curso i { border-color: var(--info); border-top-color: transparent; animation: giro .9s linear infinite; }
.step.omitida, .step.gancho, .step.no_disponible { color: var(--muted); } .step.omitida i, .step.gancho i, .step.no_disponible i { border-style: dashed; }
.step.fallo, .step.sin_letra { color: var(--bad); } .step.fallo i, .step.sin_letra i { border-color: var(--bad); background: #2d1218; }
.step small { color: var(--faint); font-size: .78rem; margin-left: auto; text-align: right; }
.motivos { border-radius: var(--radius-s); padding: .8rem 1rem; margin: .8rem 0; font-size: .93rem; }
.motivos ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.motivos.dudoso { background: #2b2110; border: 1px solid #5e4616; color: #ffd9a1; }
.motivos.fallo { background: #2d1218; border: 1px solid #63222d; color: #ffc0c7; }
.motivos.info { background: #131a2b; border: 1px solid #25375e; color: #bcd2ff; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .25rem .9rem; font-size: .88rem; }
.kv dt { color: var(--faint); } .kv dd { margin: 0; overflow-wrap: anywhere; }
details.card > summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: .6rem; }
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
details.card[open] > summary::after { transform: rotate(180deg); }
details.card[open] > summary { margin-bottom: 1rem; }

/* ---------- editor de tramo ---------- */
.ed-wave { background: #0e0e14; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .4rem; position: relative; }
#wave { width: 100%; min-height: 128px; }
.ed-tools { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: .7rem 0; }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.dur-ok { color: var(--ok); } .dur-warn { color: var(--warn); } .dur-bad { color: var(--bad); }
.verses { max-height: 230px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--bg2); }
.verse { display: flex; gap: .5rem; align-items: center; padding: .3rem .6rem; border-bottom: 1px solid #1d1d27; font-size: .9rem; }
.verse:last-child { border: 0; }
.verse.in { background: rgba(255, 51, 71, .1); }
.verse .tt { color: var(--faint); font-variant-numeric: tabular-nums; width: 3.4rem; flex: none; cursor: pointer; }
.verse .tx { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.verse button { opacity: .0; flex: none; white-space: nowrap; } .verse:hover button, .verse:focus-within button { opacity: 1; }
@media (hover: none) { .verse button { opacity: 1; } }
.lyr2 { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.preview { background: #08080b; border: 1px solid var(--line); border-radius: var(--radius-s); padding: .7rem .9rem; min-height: 120px; font-weight: 800; font-size: 1.05rem; line-height: 1.35; }
.preview div { margin-bottom: .55rem; }
.preview .r { color: #ff1a1a; }
.preview .ad { opacity: .85; }
.hl { font-size: .8rem; color: var(--faint); margin-top: .3rem; }

/* ---------- originales y lotes ---------- */
.files { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); overflow: hidden; }
.file { display: grid; grid-template-columns: 34px 1fr auto; gap: .7rem; align-items: center; padding: .6rem .85rem; border-bottom: 1px solid #1f1f29; }
.file:last-child { border: 0; }
.file:hover { background: #181821; }
.file .ic { width: 34px; height: 34px; border-radius: 8px; background: #20202c; display: grid; place-items: center; color: var(--muted); }
.file .ic svg { width: 19px; height: 19px; }
.file .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; cursor: pointer; background: none; border: 0; padding: 0; text-align: left; color: inherit; }
.file .ac { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.crumbs { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; color: var(--muted); }
.crumbs button { background: none; border: 0; color: var(--accent2); cursor: pointer; padding: .2rem .3rem; font-weight: 600; }
.player { position: sticky; bottom: calc(var(--nav-h) + 8px); margin-top: 1rem; background: #1a1a24; border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; display: flex; gap: .7rem; align-items: center; z-index: 5; }
.player audio { flex: 1; min-width: 0; height: 36px; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; color: var(--faint); font-weight: 600; padding: .35rem .5rem; border-bottom: 1px solid var(--line); }
table.t td { padding: .45rem .5rem; border-bottom: 1px solid #1d1d27; vertical-align: middle; }
.tablewrap { overflow-x: auto; position: relative; max-width: 100%; }
.modal { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, .65); display: grid; place-items: center; padding: 1rem; }
.modal > .card { width: min(94vw, 560px); max-height: 82vh; display: flex; flex-direction: column; }
.modal .files { overflow: auto; }

/* ---------- navegación adaptable ----------
   >= 861 px: barra superior (logo · pestañas · usuario · Salir).
   <= 860 px: arriba solo logo + Salir; las pestañas pasan a una barra inferior fija tipo app (icono + texto corto).
   IMPORTANTE: el .topbar NO puede tener backdrop-filter en estrecho: un ancestro con backdrop-filter/transform/filter se convierte en
   el bloque contenedor de los hijos `position: fixed`, y la barra inferior quedaba atrapada y recortada dentro de la cabecera. */
@media (max-width: 1000px) { .who { display: none; } }
@media (max-width: 860px) {
  .topbar { padding: calc(.35rem + env(safe-area-inset-top)) max(.9rem, env(safe-area-inset-right)) .35rem max(.9rem, env(safe-area-inset-left));
    background: rgba(11, 11, 15, .97); -webkit-backdrop-filter: none; backdrop-filter: none; justify-content: space-between; }
  .logo { min-height: 44px; }
  .tabs { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; margin: 0; justify-content: stretch; gap: 0;
    padding: .25rem max(.3rem, env(safe-area-inset-right)) calc(.25rem + env(safe-area-inset-bottom)) max(.3rem, env(safe-area-inset-left));
    height: calc(var(--nav-h) + env(safe-area-inset-bottom)); background: rgba(14, 14, 20, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line); }
  .tab { flex: 1 1 0; min-width: 0; min-height: 48px; flex-direction: column; justify-content: center; gap: .1rem; border-radius: 10px;
    font-size: .72rem; line-height: 1.15; padding: .25rem .15rem; position: relative; text-align: center; }
  .tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tab .dot { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 1.1rem; height: 1.1rem; font-size: .65rem; padding: 0 .3rem; }
  main { padding: 1rem max(.9rem, env(safe-area-inset-right)) calc(var(--nav-h) + env(safe-area-inset-bottom) + 3rem) max(.9rem, env(safe-area-inset-left)); }
  .dgrid { grid-template-columns: minmax(0, 1fr); }
  .side { order: -1; }
  .vid { max-height: 62vh; }
  .job { grid-template-columns: 48px minmax(0, 1fr); }
  .thumb { width: 48px; height: 48px; }
  .job .meta { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; text-align: left; }
  .times { grid-template-columns: 1fr 1fr; }
  .lyr2 { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
  .file { grid-template-columns: 34px minmax(0, 1fr); } .file .ac { grid-column: 1 / -1; justify-content: flex-start; }
  #toasts { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 12px); }
  .player { bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 6px); flex-wrap: wrap; }
  .modal { padding: max(1rem, env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
  .kv { grid-template-columns: minmax(0, auto) minmax(0, 1fr); }
  .card { padding: .95rem; }
  .drop { padding: 2rem .8rem; }
  .vid { margin-left: auto; margin-right: auto; max-width: 100%; }
  /* versos del editor: texto arriba (hasta 3 líneas) y los botones Inicio/Fin debajo, a tamaño táctil */
  .verse { flex-wrap: wrap; padding: .3rem .5rem; row-gap: .15rem; }
  .verse .tt { min-height: 44px; display: inline-flex; align-items: center; }
  .verse .tx { flex: 1 1 calc(100% - 4.2rem); white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; }
  .verse button { opacity: 1; }
  .verse button:first-of-type { margin-left: 3.9rem; }
  .verse { min-height: 0; }
  /* nombres largos: hasta 2 líneas en vez de cortarlos con «…» */
  .job .t, .job .s, .file .nm { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
  .job .s { -webkit-line-clamp: 2; }
  /* tablas (lotes): cada fila pasa a ser una tarjeta apilada */
  .tablewrap { overflow: visible; }
  table.t, table.t tbody, table.t tr, table.t td { display: block; width: 100%; }
  table.t thead { display: none; }
  table.t tr { padding: .75rem .1rem; border-bottom: 1px solid #1d1d27; }
  table.t tr:last-child { border-bottom: 0; }
  table.t td { border: 0; padding: .15rem .2rem; overflow-wrap: anywhere; word-break: normal; }
  table.t td:nth-child(2)::before { content: "Artistas: "; color: var(--faint); }
  table.t td:nth-child(3)::before { content: "Tramo: "; color: var(--faint); }
  table.t td:nth-child(4)::before { content: "Estado: "; color: var(--faint); }
  table.t td:nth-child(5) { padding-top: .45rem; }
  table.t td .small.faint { max-width: 100% !important; white-space: normal; overflow-wrap: anywhere; }
}
/* teléfono apaisado (poca altura): barra inferior más baja y pestañas en fila */
@media (max-width: 860px) and (max-height: 480px) {
  :root { --nav-h: 46px; }
  .tab { flex-direction: row; gap: .4rem; font-size: .8rem; min-height: 44px; }
  .tab .dot { position: static; }
  .vid { max-height: 80vh; }
}
@media (max-width: 380px) {
  .tab { font-size: .68rem; padding: .25rem .05rem; }
  .tab svg { width: 18px; height: 18px; }
  main { padding-left: max(.7rem, env(safe-area-inset-left)); padding-right: max(.7rem, env(safe-area-inset-right)); }
  .topbar { gap: .5rem; }
  .btn { padding-left: .8rem; padding-right: .8rem; }
  h1 { font-size: 1.25rem; }
  .times { grid-template-columns: 1fr; }
  .chips { gap: .3rem; }
  .chip { padding: .4rem .65rem; }
}

/* ---------- objetivos táctiles >= 44 px (estrecho o puntero táctil) ---------- */
@media (max-width: 860px), (pointer: coarse) {
  .btn, .btn.small { min-height: 44px; }
  .btn.small { padding: .4rem .85rem; }
  .chip { min-height: 44px; display: inline-flex; align-items: center; }
  input[type=text], input[type=password], input[type=number], textarea, select { min-height: 44px; }
  details.card > summary { min-height: 44px; }
  .crumbs button { min-height: 44px; padding: .5rem .6rem; }
  .crumb a, .crumbline a { display: inline-flex; align-items: center; min-height: 44px; }
  .file .nm { min-height: 44px; display: inline-flex; align-items: center; }
  .verse { min-height: 44px; }
  input[type=checkbox], input[type=radio] { width: 24px; height: 24px; }
}

.vid.vacio { aspect-ratio: auto; min-height: 0; }
.vid.vacio .ph { padding: 1.4rem 1rem; }
@media (max-width: 860px) { .vid.vacio .ph .cover { width: 96px; height: 96px; margin-bottom: .6rem; } }
.crumbline { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; margin: 1rem 0 .6rem; }
.crumbline .crumbs { margin: 0; flex: 1 1 200px; }
.crumbline .nueva { display: flex; gap: .5rem; align-items: center; flex: 0 1 auto; flex-wrap: wrap; min-width: 0; max-width: 100%; }
.crumbline .nueva input { width: 200px; max-width: 100%; min-width: 0; flex: 1 1 140px; }
@media (max-width: 860px) { .crumbline .nueva { flex: 1 1 100%; } }
