/* HI809 Bandas — estándar visual HI809: verde #01a982 acción, ciruela #614767 acento, barras #1b2229 */
:root {
    --hi-verde: #01a982; --hi-verde-osc: #018a6a; --hi-boton: #01a982; --hi-boton-osc: #018a6a; --hi-ciruela: #614767; --hi-pizarra: #425563;
    --hi-barra: #1b2229; --hi-fondo: #f3f5f7; --hi-carta: #ffffff; --hi-borde: #dde2e7;
    --hi-texto: #1f2a33; --hi-mut: #6b7785; --hi-ok: #01a982; --hi-medio: #e0a100; --hi-mal: #d64545;
    --hi-suave: #f7f9fa; --hi-suave2: #eef1f4; --hi-enlace: #018a6a; --hi-sombra: rgba(0,0,0,.04);
    --hi-peligro-borde: #f1c4c4; --hi-peligro-fondo: #fdf6f6; --hi-aviso: #fff3cd;
}
/* Modo oscuro: mismas variables, otros valores (Bootstrap 5.3 data-bs-theme="dark") */
[data-bs-theme="dark"] {
    /* Paleta oscura moderna (2026-11-19): grises casi negros con un toque azul, acento violeta, estados claros */
    --hi-fondo: #0e1116; --hi-carta: #161a21; --hi-borde: #2a313d; --hi-texto: #e7eaf0; --hi-mut: #98a2b3;
    --hi-barra: #0a0c10; --hi-suave: #1c212a; --hi-suave2: #222833; --hi-enlace: #c9d1dc; --hi-sombra: rgba(0,0,0,.45);
    --hi-verde: #01a982; --hi-verde-osc: #018a6a; --hi-ciruela: #9aa3b2; /* acentos: verde de siempre; lo que era morado, gris */
    --hi-boton: #5b4a8b; --hi-boton-osc: #4c3d78; /* botones: morado apagado (el violeta brillante queda para acentos) */
    --hi-ok: #22c55e; --hi-medio: #f59e0b; --hi-mal: #ef4444;
    --hi-peligro-borde: #6b2e35; --hi-peligro-fondo: #2a1a1f; --hi-aviso: #3d3417;
    --bs-body-bg: var(--hi-fondo); --bs-body-color: var(--hi-texto); --bs-border-color: var(--hi-borde);
    --bs-link-color: #c9d1dc; --bs-link-hover-color: #ffffff;
    color-scheme: dark;
}
[data-bs-theme="dark"] .text-bg-light { background: var(--hi-suave2) !important; color: var(--hi-texto) !important; }
[data-bs-theme="dark"] .alert-danger { --bs-alert-bg: #2a1d1f; --bs-alert-color: #ffb3b3; --bs-alert-border-color: #6b2e2e; }
html, body { background: var(--hi-fondo); color: var(--hi-texto); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--hi-enlace); }
h1:focus { outline: none; }

/* Barra superior */
.hi-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
    background: var(--hi-barra); color: #fff; padding: 10px 28px 10px 144px; }
.hi-marca { color: #fff; text-decoration: none; font-size: 1.15rem; white-space: nowrap; }
.hi-marca b, .login-marca b { color: var(--hi-verde); }
.hi-marca i { color: var(--hi-verde); margin-right: 4px; }
.hi-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; margin-left: var(--hi-corrido, 0px); } /* menú corrido ~200 px a la derecha del logo (no centrado) */
.hi-nav a { color: #c9d1d9; text-decoration: none; padding: 6px 12px; border-radius: 6px; font-size: .95rem; }
.hi-nav a:hover { background: #2a333c; color: #fff; }
.hi-nav a.active { background: var(--hi-boton); color: #fff; }
.hi-usuario { display: flex; align-items: center; gap: 8px; color: #c9d1d9; font-size: .9rem; }
.hi-usuario form { margin: 0; }
.hi-icono { background: none; border: 0; color: #c9d1d9; padding: 4px 8px; border-radius: 6px; }
.hi-icono:hover { background: #2a333c; color: #fff; }
/* pie: ocupa el espacio que antes era margen de abajo (no agrega scroll) */
.hi-main { width: 100%; padding: 18px 24px 24px; min-height: calc(100vh - 36px - var(--hi-top-h, 78px)); }
.hi-pie { height: 36px; line-height: 30px; text-align: center; font-size: .78rem; color: var(--hi-mut); }

/* Barra estándar de herramientas */
.hi-barra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--hi-barra); color: #fff;
    border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; }
.hi-barra h1 { font-size: 1.1rem; margin: 0; font-weight: 600; }
.hi-barra .espacio { flex: 1; }
.hi-cuenta { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px;
    padding: 0 10px; border-radius: 19px; background: var(--hi-boton); color: #fff; font-weight: 700; }
.hi-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; padding: 4px 10px; border-radius: 14px;
    background: #2a333c; color: #c9d1d9; }
.hi-chip.ok { background: rgba(1,169,130,.2); color: #5fe0bf; }
.hi-chip.mal { background: rgba(214,69,69,.25); color: #ff9c9c; }
.hi-chip.grabando { background: var(--hi-mal); color: #fff; animation: latido 1.4s infinite; }
@keyframes latido { 50% { opacity: .55; } }
.hi-barra input.form-control, .hi-barra select.form-select { background: #2a333c; border-color: #3a444e; color: #fff; max-width: 260px; }

/* Botones */
.btn-hi { background: var(--hi-boton); border: 1px solid var(--hi-boton); color: #fff; }
.btn-hi:hover, .btn-hi:focus { background: var(--hi-boton-osc); border-color: var(--hi-boton-osc); color: #fff; }
.btn-hi-sec { background: transparent; border: 1px solid #5a6672; color: #e6ebef; }
.btn-hi-sec:hover { background: #2a333c; color: #fff; }
.btn-hi-claro { background: var(--hi-carta); border: 1px solid var(--hi-borde); color: var(--hi-texto); }
.btn-hi-claro:hover { border-color: var(--hi-verde); color: var(--hi-verde-osc); }
.btn-peligro { background: var(--hi-mal); border: 1px solid var(--hi-mal); color: #fff; }
.btn-peligro:hover { background: #b83636; color: #fff; }

/* Tarjetas */
.hi-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.hi-carta { background: var(--hi-carta); border: 1px solid var(--hi-borde); border-radius: 12px; padding: 16px;
    box-shadow: 0 1px 2px var(--hi-sombra); }
.hi-carta h2 { font-size: 1rem; margin: 0 0 10px; }
.etiqueta { color: var(--hi-ciruela); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.mut { color: var(--hi-mut); font-size: .875rem; }

/* Músico en vivo */
.musico { position: relative; display: flex; flex-direction: column; gap: 8px; border-top: 4px solid var(--hi-borde); }
.musico.q-ok { border-top-color: var(--hi-ok); }
.musico.q-medio { border-top-color: var(--hi-medio); }
.musico.q-mal { border-top-color: var(--hi-mal); }
.musico-cab { display: flex; gap: 12px; align-items: center; }
.musico-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--hi-ciruela); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.musico-nombre { font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.musico-sub { color: var(--hi-mut); font-size: .85rem; }
.musico-datos { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: .85rem; }
.musico-datos dt { color: var(--hi-mut); font-weight: 400; }
.musico-datos dd { margin: 0; font-variant-numeric: tabular-nums; }
.calidad { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.calidad .punto { width: 10px; height: 10px; border-radius: 50%; }
.q-ok .calidad .punto { background: var(--hi-ok); } .q-medio .calidad .punto { background: var(--hi-medio); } .q-mal .calidad .punto { background: var(--hi-mal); }
.sin-asociar { font-size: .75rem; color: var(--hi-medio); }
.vacio { text-align: center; padding: 50px 20px; color: var(--hi-mut); }
.vacio i { font-size: 2.4rem; color: var(--hi-borde); margin-bottom: 10px; display: block; }

/* Tablas */
.hi-tabla { width: 100%; background: var(--hi-carta); color: var(--hi-texto); border: 1px solid var(--hi-borde); border-radius: 10px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.hi-tabla th { background: var(--hi-suave); color: var(--hi-mut); font-weight: 600; font-size: .8rem; text-transform: uppercase; }
.hi-tabla th, .hi-tabla td { padding: 9px 12px; border-bottom: 1px solid var(--hi-borde); vertical-align: middle; }
.hi-tabla tr:last-child td { border-bottom: 0; }
.tabla-scroll { overflow-x: auto; }

/* Ventana (detalles) */
.hi-velo { position: fixed; inset: 0; background: rgba(15,20,25,.55); z-index: 50; display: flex; align-items: flex-start;
    justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.hi-ventana { background: var(--hi-carta); color: var(--hi-texto); border-radius: 12px; width: 100%; max-width: 720px; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hi-ventana-cab { display: flex; align-items: center; gap: 10px; background: var(--hi-barra); color: #fff; padding: 12px 16px; border-radius: 12px 12px 0 0; }
.hi-ventana-cab h2 { font-size: 1.05rem; margin: 0; flex: 1; }
.hi-ventana-cuerpo { padding: 16px; }

/* Login */
.auth-fondo { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: linear-gradient(135deg, var(--hi-barra), var(--hi-ciruela)); }
.login-card { background: var(--hi-carta); color: var(--hi-texto); border-radius: 14px; padding: 28px; width: 100%; max-width: 400px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.login-marca { font-size: 1.5rem; margin-bottom: 4px; }
.login-marca i { color: var(--hi-verde); }
.login-sub { color: var(--hi-mut); font-size: .9rem; }

.valid.modified:not([type=checkbox]) { outline: 1px solid var(--hi-verde); }
.invalid { outline: 1px solid var(--hi-mal); }
.validation-message { color: var(--hi-mal); }
#blazor-error-ui { background: var(--hi-aviso); color: var(--hi-texto); bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem; position: fixed; width: 100%; z-index: 1000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
@media (max-width: 760px) {
    .hi-usuario-nombre { display: none; }
    .hi-main { padding: 14px 12px 40px; }
    .hi-top { gap: 8px 12px; padding: 8px 12px; }
    .hi-marca { order: 1; flex: 1; }
    .hi-engranaje { order: 2; }
    .hi-usuario { order: 3; }
    .hi-nav { order: 4; flex: 0 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
    .hi-nav::-webkit-scrollbar { display: none; }
    .hi-nav a { white-space: nowrap; flex-shrink: 0; }
    .hi-barra { padding: 8px 10px; }
    .hi-barra input.form-control, .hi-barra select.form-select { max-width: none; flex: 1 1 140px; }
}
.hi-icono-claro { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--hi-mut); padding: 4px 6px; border-radius: 6px; }
.hi-icono-claro:hover { background: var(--hi-fondo); color: var(--hi-verde-osc); }
.musico .btn { align-self: flex-start; }

/* Maestro-detalle a pantalla completa */
.maestro-detalle { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.md-lista { background: var(--hi-carta); border: 1px solid var(--hi-borde); border-radius: 12px; overflow: hidden; position: sticky; top: 74px; max-height: calc(100vh - 160px); overflow-y: auto; }
.md-item { display: block; width: 100%; text-align: left; background: var(--hi-carta); color: var(--hi-texto); border: 0; border-bottom: 1px solid var(--hi-borde); padding: 10px 14px; }
.md-item:hover { background: var(--hi-suave); }
.md-item.activo { background: rgba(1,169,130,.08); box-shadow: inset 4px 0 0 var(--hi-verde); }
.md-titulo { font-weight: 600; }
.md-sub { color: var(--hi-mut); font-size: .82rem; }
.md-chips { display: flex; gap: 8px; align-items: center; margin-top: 4px; color: var(--hi-ciruela); font-size: .85rem; }
.md-detalle { min-width: 0; }
.pestanas { display: flex; gap: 4px; flex-wrap: wrap; }
.pestanas button { border: 1px solid var(--hi-borde); border-bottom: 0; background: var(--hi-suave2); color: var(--hi-texto); padding: 7px 14px; border-radius: 10px 10px 0 0; font-size: .9rem; }
.pestanas button.activa { background: var(--hi-carta); color: var(--hi-verde-osc); font-weight: 600; }
.pestana-cuerpo { border-top-left-radius: 0; }
.zona-subida input[type=file] { display: none; }
.zona-subida label { display: flex; flex-direction: column; align-items: center; gap: 4px; border: 2px dashed var(--hi-borde); border-radius: 12px; padding: 22px; cursor: pointer; text-align: center; }
.zona-subida label:hover { border-color: var(--hi-verde); background: rgba(1,169,130,.04); }
.zona-subida label i { font-size: 1.8rem; color: var(--hi-verde); }
.zona-subida label.deshabilitada { opacity: .5; pointer-events: none; }
@media (max-width: 900px) { .maestro-detalle { grid-template-columns: 1fr; } .md-lista { position: static; max-height: 40vh; } }
.zona-peligro { border: 1px solid var(--hi-peligro-borde); background: var(--hi-peligro-fondo); border-radius: 10px; padding: 12px 14px; }
.hi-engranaje { font-size: 1.1rem; text-decoration: none; }
.hi-engranaje.active { background: var(--hi-boton); color: #fff; }
.migas { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--hi-mut); margin-bottom: 10px; }
.migas a { color: var(--hi-ciruela); text-decoration: none; font-weight: 600; }
.migas .fa-chevron-right { font-size: .7rem; }
.grupo-admin { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hi-ciruela); font-weight: 700; margin: 8px 0 10px; }
.opcion-admin { display: flex; gap: 14px; align-items: flex-start; text-decoration: none; color: var(--hi-texto); transition: border-color .15s, transform .15s; }
.opcion-admin:hover { border-color: var(--hi-verde); transform: translateY(-1px); color: var(--hi-texto); }
.opcion-admin > i { font-size: 1.6rem; color: var(--hi-verde); width: 32px; text-align: center; }
.fila-yo td { background: rgba(1,169,130,.06); }

/* Interruptor de tema */
.hi-tema { background: none; border: 0; color: #c9d1d9; width: 36px; height: 36px; border-radius: 8px; }
.hi-tema:hover { background: #2a333c; color: #fff; }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background-color: var(--hi-suave); border-color: var(--hi-borde); color: var(--hi-texto); }
/* Textos en ciruela: más claros sobre fondo oscuro */
[data-bs-theme="dark"] .etiqueta, [data-bs-theme="dark"] .md-chips, [data-bs-theme="dark"] .migas a,
[data-bs-theme="dark"] .grupo-admin, [data-bs-theme="dark"] .vd-cancion > i { color: #c9a3d1; }
/* Pastillas de estado */
.hi-pastilla { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 12px; white-space: nowrap; }
.hi-pastilla.ok { background: rgba(1,169,130,.15); color: var(--hi-verde-osc); }
.hi-pastilla.mal { background: rgba(214,69,69,.15); color: var(--hi-mal); }
[data-bs-theme="dark"] .hi-pastilla.ok { color: #3fd1aa; }

/* Cola de trabajos universal (barra superior) */
.hi-trabajos { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 3px; }
.hi-trabajos b { font-size: .72rem; }
.hi-trabajos.activo { color: #e0a100; }
.hi-trabajos.activo i { animation: hi-pulso 1.6s ease-in-out infinite; }
@keyframes hi-pulso { 50% { opacity: .45; } }
.vd-trabajos-global { position: fixed; top: 58px; right: 16px; z-index: 2500; width: 420px; max-height: 70vh; overflow: auto; padding: 8px;
    background: var(--hi-carta); color: var(--hi-texto); border: 1px solid var(--hi-borde); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.vd-tg-cab { display: flex; align-items: center; gap: 10px; padding: 4px 6px 8px; border-bottom: 1px solid var(--hi-borde); }
.vd-tg-cab b { flex: 1; }
.vd-tg-cab a { font-size: .82rem; text-decoration: none; }
.vd-tg-cerrar, .vd-tg-b { width: 30px; height: 30px; border: 1px solid var(--hi-borde); border-radius: 7px; background: var(--hi-suave); color: var(--hi-texto);
    display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.vd-tg-b:hover, .vd-tg-cerrar:hover { border-color: var(--hi-verde); color: var(--hi-verde); }
.vd-tg { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--hi-borde); }
.vd-tg:last-child { border-bottom: 0; }
.vd-tg > div { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.vd-tg small { color: var(--hi-mut); font-size: .76rem; overflow-wrap: anywhere; }
.vd-tg-cuando { font-size: .7rem !important; opacity: .8; }
.vd-tg.est-running > i, .vd-tg.est-completed > i { color: var(--hi-verde); } .vd-tg.est-failed > i { color: var(--hi-mal); } .vd-tg.est-pending > i, .vd-tg.est-cancelled > i { color: var(--hi-mut); }
.vd-tg-vacio { color: var(--hi-mut); padding: 10px; margin: 0; }
.vd-tostada { position: fixed; right: 18px; bottom: 18px; z-index: 3500; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 10px; cursor: pointer;
    background: var(--hi-carta); color: var(--hi-texto); border: 1px solid var(--hi-borde); border-left: 5px solid var(--hi-verde); box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: 420px; }
.vd-tostada.mal { border-left-color: var(--hi-mal); }
.vd-tostada.ok > i { color: var(--hi-verde); } .vd-tostada.mal > i { color: var(--hi-mal); }

/* Galería */
.gal-filtros { display: flex; gap: 4px; flex-wrap: wrap; }
.gal-filtro { border: 1px solid #3a444e; background: #2a333c; color: #c9d1d9; border-radius: 16px; padding: 4px 12px; font-size: .82rem; }
.gal-filtro.on, .gal-filtro:hover { background: var(--hi-boton); border-color: var(--hi-boton); color: #fff; }
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.gal-carta { display: flex; flex-direction: column; background: var(--hi-carta); border: 1px solid var(--hi-borde); border-radius: 12px; overflow: hidden; }
.gal-carta:hover { border-color: var(--hi-verde); }
.gal-miniatura { position: relative; aspect-ratio: 16/9; border: 0; padding: 0; background: #0f1418; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #3fe0b5; text-decoration: none; }
.gal-miniatura img { width: 100%; height: 100%; object-fit: cover; }
.gal-miniatura > i { font-size: 3rem; }
.gal-miniatura.sin-video { background: linear-gradient(135deg, #1b2229, #2c2236); }
.gal-play { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: rgba(1,169,130,.9); color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; opacity: 0; transition: opacity .15s; }
.gal-miniatura:hover .gal-play { opacity: 1; }
.gal-tipo, .gal-dur { position: absolute; bottom: 8px; font: 600 .72rem system-ui; padding: 2px 8px; border-radius: 10px; background: rgba(0,0,0,.65); color: #fff; }
.gal-tipo { left: 8px; } .gal-dur { right: 8px; }
.gal-info { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 4px; min-width: 0; }
.gal-info b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gal-info small { font-size: .8rem; }
.gal-acciones { display: flex; gap: 6px; justify-content: flex-end; padding: 6px 12px 12px; margin-top: auto; }
.gal-ventana { max-width: 1100px; }
.gal-video { display: block; width: 100%; max-height: 75vh; background: #000; border-radius: 0 0 12px 12px; }
.gal-audio { padding: 24px; } .gal-audio audio { width: 100%; }
.gal-confirmar { max-width: 520px; }

/* Logo VirtualDaw */
.hi-logo { height: 58px; width: auto; display: block; margin-right: 18px; }
.login-logo { height: 96px; width: auto; display: block; margin: 0 auto 6px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.25)); }
[data-bs-theme="light"] .login-card .login-logo { background: #1b2229; border-radius: 12px; padding: 8px 14px; height: 110px; }
.hi-ventana-cab .espacio { flex: 1; }
.gal-ventana .hi-ventana-cab { gap: 8px; }

/* En pantallas chicas no se desplaza tanto la barra */
@media (max-width: 900px) { .hi-top { padding-left: 20px !important; } }

/* Artistas */
.art-inactivos { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.art-carta { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; background: var(--hi-carta); color: var(--hi-texto); border: 1px solid var(--hi-borde); border-radius: 12px; cursor: pointer; text-align: center; }
.art-carta:hover { border-color: var(--hi-verde); }
.art-carta.inactivo { opacity: .55; }
.art-carta small { color: var(--hi-mut); font-size: .78rem; }
.art-foto { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--c); color: #fff; font-weight: 700; font-size: 1.5rem; flex: none; }
.art-foto img { width: 100%; height: 100%; object-fit: cover; }
.art-foto.grande { width: 120px; height: 120px; font-size: 2rem; }
.art-ventana { max-width: 820px; }
.art-cuerpo { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.art-ficha { display: flex; gap: 16px; align-items: flex-start; }
.art-campos { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.art-cuerpo label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; }
.art-fila { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.art-fila > label { flex: 1; min-width: 140px; }
.art-cuerpo label.art-check { flex-direction: row; align-items: center; gap: 6px; flex: none; min-width: 0; font-weight: 400; padding-bottom: 8px; }
.art-pie { display: flex; justify-content: flex-end; gap: 8px; }
.art-sub { font-size: 1rem; margin: 8px 0 0; border-top: 1px solid var(--hi-borde); padding-top: 12px; }
.art-modelo { border: 1px solid var(--hi-borde); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.art-modelo.principal { border-color: var(--hi-verde); }
.art-modelo summary { cursor: pointer; font-size: .85rem; font-weight: 600; }
.art-ajustes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
@media (max-width: 600px) { .art-ficha { flex-direction: column; align-items: center; } }

/* Entrenamiento de voces */
.ent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ent-carta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; background: var(--hi-carta); color: var(--hi-texto); border: 1px solid var(--hi-borde); border-radius: 12px; text-align: left; cursor: pointer; }
.ent-carta:hover { border-color: var(--hi-verde); }
.ent-carta small { font-size: .8rem; }
.ent-estado { display: inline-block; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--hi-borde); color: var(--hi-texto); }
.ent-estado.ok, .ok > .ent-estado { background: rgba(1,169,130,.18); color: var(--hi-verde); }
.ent-estado.mal, .mal > .ent-estado { background: rgba(214,69,69,.18); color: #e05555; }
.ent-estado.activo, .activo > .ent-estado { background: rgba(240,170,30,.2); color: #d08b00; }
.ent-lista { margin-bottom: 16px; }
.ent-fila { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--hi-borde); }
.ent-fila:first-of-type { border-top: 0; }
.ent-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ent-info small { font-size: .8rem; }
.ent-barra { height: 6px; margin-top: 4px; max-width: 420px; }
.ent-ventana { max-width: 980px; }
.ent-audios { display: flex; flex-direction: column; gap: 4px; }
.ent-audio { display: flex; align-items: center; gap: 8px; padding: 4px 8px; border: 1px solid var(--hi-borde); border-radius: 8px; }
.ent-nombre { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .88rem; }
.ent-pistas { display: flex; flex-wrap: wrap; gap: 6px; max-height: 180px; overflow-y: auto; }
.ent-pista { border: 1px dashed var(--hi-borde); background: none; color: inherit; border-radius: 8px; padding: 4px 10px; font-size: .82rem; }
.ent-pista:hover { border-color: var(--hi-verde); }
.ent-pista small { color: var(--hi-mut); }
.ent-acciones { align-items: center; }
.ent-grupo { display: flex; flex-direction: column; gap: 4px; }
.ent-clips { display: flex; flex-wrap: wrap; gap: 6px; }
.ent-clip { display: flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid var(--hi-verde); border-radius: 8px; font-size: .78rem; }
.ent-clip.fuera { border-color: var(--hi-borde); opacity: .5; text-decoration: line-through; }
.ent-clip .form-check-input { margin: 0; }
.ent-play { border: 0; background: none; color: var(--hi-verde); padding: 0 2px; }
.ent-log { margin: 0; padding: 12px 16px; max-height: 70vh; overflow: auto; font-size: .75rem; white-space: pre-wrap; background: #0f1419; color: #cfd8dc; border-radius: 0 0 12px 12px; }

/* Gestor RVC: sub-menú y pasos */
.rvc-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.rvc-nav-titulo { font-weight: 700; margin-right: 10px; color: var(--hi-texto); }
.rvc-nav a { text-decoration: none; padding: 5px 12px; border-radius: 16px; border: 1px solid var(--hi-borde); color: var(--hi-texto); font-size: .9rem; }
.rvc-nav a:hover { border-color: var(--hi-verde); }
.rvc-nav a.active { background: var(--hi-boton); border-color: var(--hi-boton); color: #fff; }
.ent-carta { text-decoration: none; }
.ent-carta-cab { display: flex; gap: 6px; align-items: baseline; }
a.ent-fila { color: inherit; text-decoration: none; }
.rvc-pasos { list-style: none; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; counter-reset: paso; }
.rvc-paso { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--hi-carta); border: 1px solid var(--hi-borde); border-radius: 12px; position: relative; }
.rvc-paso-num { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--hi-borde); color: var(--hi-texto); }
.rvc-paso-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rvc-paso-txt small { color: var(--hi-mut); font-size: .78rem; line-height: 1.2; }
.rvc-paso.is-completed .rvc-paso-num { background: var(--hi-boton); color: #fff; }
.rvc-paso.is-active { border-color: var(--hi-verde); box-shadow: 0 0 0 2px rgba(1,169,130,.2); }
.rvc-paso.is-active .rvc-paso-num { background: rgba(1,169,130,.18); color: var(--hi-verde); }
.rvc-paso.is-running .rvc-paso-num { background: #d08b00; color: #fff; }
.rvc-paso.is-error { border-color: #e05555; } .rvc-paso.is-error .rvc-paso-num { background: #e05555; color: #fff; }
.rvc-paso.is-pending { opacity: .6; }
.rvc-progreso { margin-bottom: 14px; }
.rvc-columnas { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; }
.rvc-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--hi-boton); color: #fff; font-size: .75rem; margin-right: 4px; }
.rvc-ayuda { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; font-size: .82rem; margin: 0; padding: 10px; border-radius: 8px; background: rgba(1,169,130,.08); }
.rvc-ayuda dt { font-weight: 600; } .rvc-ayuda dd { margin: 0; color: var(--hi-mut); }
.rvc-versiones { display: flex; flex-wrap: wrap; gap: 8px; max-height: 260px; overflow-y: auto; }
.rvc-version { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--hi-borde); border-radius: 8px; font-weight: 400 !important; }
.rvc-version.on { border-color: var(--hi-verde); }
.ent-pistas-lista { display: flex; flex-direction: column; gap: 2px; max-height: 50vh; overflow-y: auto; }
.art-cuerpo label.ent-pista-fila { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 400; padding: 5px 8px; border-radius: 6px; }
.ent-pista-fila:hover { background: rgba(1,169,130,.08); }
@media (max-width: 900px) { .rvc-pasos { grid-template-columns: 1fr 1fr; } .rvc-columnas { grid-template-columns: 1fr; } }

/* ── Barras secundarias: estilo moderno (vidrio oscuro, bordes suaves, controles tipo píldora) ── */
.hi-barra {
    position: relative; gap: 10px; padding: 12px 16px; border-radius: 16px; margin-bottom: 18px;
    background:
        radial-gradient(120% 160% at 0% 0%, rgba(1,169,130,.22) 0%, transparent 45%),
        radial-gradient(120% 160% at 100% 100%, rgba(97,71,103,.30) 0%, transparent 50%),
        linear-gradient(135deg, #1d252d 0%, #151b21 100%);
    border: 1px solid rgba(255,255,255,.06);
    box-shadow: 0 10px 30px -12px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
}
[data-bs-theme="dark"] .hi-barra { border-color: rgba(255,255,255,.08); box-shadow: 0 12px 34px -14px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.04); }
.hi-barra h1 { font-size: 1.15rem; font-weight: 650; letter-spacing: .2px; }
.hi-cuenta { height: 34px; min-width: 34px; border-radius: 12px; font-size: .9rem;
    background: linear-gradient(135deg, #02c496, var(--hi-verde-osc)); box-shadow: 0 4px 14px -4px rgba(1,169,130,.7); }
.hi-chip { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #d5dde3; padding: 5px 12px;
    border-radius: 999px; backdrop-filter: blur(6px); text-decoration: none; transition: background .15s, border-color .15s; }
a.hi-chip:hover { background: rgba(255,255,255,.12); border-color: rgba(1,169,130,.6); color: #fff; }
.hi-barra input.form-control, .hi-barra select.form-select {
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: #fff; border-radius: 999px; padding-left: 16px; transition: border-color .15s, background .15s; }
.hi-barra input.form-control::placeholder { color: rgba(255,255,255,.45); }
.hi-barra input.form-control:focus, .hi-barra select.form-select:focus { background: rgba(255,255,255,.1); border-color: var(--hi-verde); box-shadow: 0 0 0 3px rgba(1,169,130,.25); }
.hi-barra .btn { border-radius: 10px; }
.hi-barra .btn-hi { box-shadow: 0 6px 18px -8px rgba(1,169,130,.9); }
[data-bs-theme="dark"] .hi-barra .btn-hi { box-shadow: 0 6px 16px -10px rgba(91,74,139,.9); }
.hi-barra .btn-outline-light { border-color: rgba(255,255,255,.15); background: rgba(255,255,255,.05); color: #e6ebef; }
.hi-barra .btn-outline-light:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.hi-barra .ent-estado { border-radius: 999px; padding: 4px 10px; }

/* Sub-menú tipo control segmentado */
.rvc-nav { display: inline-flex; gap: 2px; padding: 4px; margin-bottom: 14px; border-radius: 14px;
    background: var(--hi-carta); border: 1px solid var(--hi-borde); box-shadow: 0 2px 10px -6px var(--hi-sombra); }
.rvc-nav-titulo { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 8px; margin-right: 2px; font-size: .9rem;
    color: var(--hi-mut); border-right: 1px solid var(--hi-borde); }
.rvc-nav-titulo i { color: var(--hi-verde); }
.rvc-nav a { border: 0; border-radius: 10px; padding: 7px 16px; font-size: .9rem; font-weight: 500; color: var(--hi-mut); transition: background .15s, color .15s; }
.rvc-nav a:hover { background: var(--hi-suave2); color: var(--hi-texto); }
.rvc-nav a.active { background: linear-gradient(135deg, #02c496, var(--hi-verde-osc)); color: #fff; box-shadow: 0 4px 12px -5px rgba(1,169,130,.8); }
.rvc-nav a.active:hover { color: #fff; }

/* Tarjetas de pasos más limpias */
.rvc-paso { border-radius: 14px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rvc-paso.is-active { transform: translateY(-1px); box-shadow: 0 8px 22px -12px rgba(1,169,130,.7), 0 0 0 1px var(--hi-verde); }

/* ── Reproductor universal (barra flotante abajo, como AudioMixia/LVO de Intranet10) ── */
.vd-repro { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 2600; width: min(96vw, 1040px);
    display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(135deg, rgba(27,34,41,.97), rgba(17,22,28,.97)); color: #f1f5f9; box-shadow: 0 10px 30px rgba(0,0,0,.35);
    backdrop-filter: blur(8px); --vd-repro-resto: rgba(148,163,184,.45); }
.vd-repro[hidden] { display: none; }
.vd-repro-play { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--hi-boton); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vd-repro-play:hover { filter: brightness(1.1); }
.vd-repro-meta { flex: 0 1 220px; min-width: 120px; display: grid; }
.vd-repro-meta b, .vd-repro-meta small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-repro-meta small { color: #94a3b8; font-size: .76rem; }
.vd-repro-onda { flex: 1 1 auto; min-width: 120px; width: 100%; height: 44px; cursor: pointer; }
.vd-repro-tiempo { flex: 0 0 auto; color: #cbd5e1; font-size: .75rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vd-repro-vol { flex: 0 0 auto; display: flex; align-items: center; gap: 6px; color: #cbd5e1; margin: 0; }
.vd-repro-vol input { width: 80px; accent-color: var(--hi-verde); }
.vd-repro-bajar, .vd-repro-cerrar { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: #cbd5e1; display: grid; place-items: center; text-decoration: none; cursor: pointer; }
.vd-repro-bajar:hover, .vd-repro-cerrar:hover { background: rgba(255,255,255,.1); color: #fff; }
body.vd-repro-abierto { padding-bottom: 76px; }
@media (max-width: 680px) { .vd-repro { flex-wrap: wrap; } .vd-repro-meta { flex: 1 1 auto; } .vd-repro-onda { order: 6; flex-basis: 100%; } .vd-repro-vol { display: none; } }
body.vd-repro-abierto .vd-tostada { bottom: 92px; }

/* Menú superior en mayúsculas */
.hi-nav a { text-transform: uppercase; letter-spacing: .03em; }

/* Un solo scroll vertical en toda la app (preferencia del usuario): la lista lateral ya no tiene barra propia */
.md-lista { position: static; max-height: none; overflow: hidden; }

/* ── Estudio (generadores + bandeja única) ── */
.est-ref { display: flex; align-items: center; gap: 8px; color: #cbd5e1; margin: 0; }
.est-ref select { min-width: 260px; }
.est-tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 14px; }
.est-tarjeta { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; gap: 2px 10px; text-align: left; padding: 12px;
    border: 1px solid var(--hi-borde); border-radius: 12px; background: var(--hi-carta); color: var(--hi-texto); cursor: pointer; transition: transform .12s, box-shadow .12s; }
.est-tarjeta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.est-tarjeta.on { border-color: var(--hi-verde); box-shadow: 0 0 0 2px var(--hi-verde) inset; }
.est-tarjeta.caido { opacity: .6; }
.est-tarjeta > i { grid-row: 1 / span 2; font-size: 1.4rem; color: var(--hi-verde); align-self: center; }
.est-tarjeta b { font-size: .95rem; }
.est-tarjeta small { grid-column: 1 / -1; color: var(--hi-mut); font-size: .75rem; line-height: 1.2; }
.est-tarjeta .est-sigla { position: absolute; top: 8px; right: 8px; }
.est-estado { grid-column: 1 / -1; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hi-verde); }
.est-tarjeta.caido .est-estado { color: #c0392b; }
.est-n { position: absolute; bottom: 8px; right: 8px; min-width: 22px; padding: 0 6px; border-radius: 11px; background: var(--hi-boton); color: #fff; font-size: .72rem; text-align: center; }
.est-sigla { display: inline-block; padding: 1px 7px; border-radius: 6px; background: #1b2229; color: #3fe0b5; font: 700 .72rem ui-monospace, monospace; letter-spacing: .05em; }
.est-panel { margin-bottom: 14px; }
.est-bandeja-cab { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.est-bandeja-cab h2 { margin: 0; font-size: 1.1rem; }
.est-lista { display: flex; flex-direction: column; gap: 4px; }
.est-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--hi-borde); border-radius: 8px; background: var(--hi-carta); }
/* enviadas al DAW: atenuadas sin opacity en la fila (crearía otra capa y el menú ⋮ quedaría debajo de las filas siguientes) */
.est-item.enviado > :not(.est-menu) { opacity: .65; }
/* la fila con el menú abierto queda por encima de las demás */
.est-item:has(.est-menu-lista) { z-index: 45; }
.est-nombre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: .85rem ui-monospace, monospace; }
.est-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 14px; }
.est-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; margin: 0; }
.est-form .ancho { grid-column: 1 / -1; }
.est-form .est-letra { font: .85rem ui-monospace, monospace; }
.est-pie { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }

/* ── Estudio · ML · editor de corrección ── */
.ml-onda-carta { margin-bottom: 12px; }
.ml-onda-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ml-onda-caja { position: relative; height: 150px; border-radius: 8px; overflow: hidden; }
.ml-onda { display: block; cursor: crosshair; touch-action: none; }
.ml-columnas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
@media (max-width: 1000px) { .ml-columnas { grid-template-columns: 1fr; } }
.ml-letra { font: .85rem ui-monospace, monospace; }
.ml-trabajo { margin-bottom: 12px; border-left: 4px solid var(--hi-verde); }
.ml-trabajo.mal { border-left-color: #e5484d; }
.ml-cands { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ml-cand { display: inline-flex; gap: 4px; }
.ml-cands .btn.on { box-shadow: 0 0 0 2px #f2c94c; }
.ml-versiones { display: flex; flex-direction: column; gap: 4px; }
.ml-version { display: grid; grid-template-columns: 26px 40px 1fr auto auto; gap: 10px; align-items: center; padding: 5px 8px; border: 1px solid var(--hi-borde); border-radius: 8px; }
.ml-version.on { border-color: var(--hi-verde); background: rgba(1,169,130,.07); }
.ml-aviso:empty { display: none; }
.ml-aviso { margin-bottom: 10px; padding: 8px 12px; border-radius: 8px; font-size: .9rem; }
.ml-aviso.ok { background: rgba(1,169,130,.12); }
.ml-aviso.mal { background: rgba(229,72,77,.14); color: #b42318; }
.est-tarjeta b { padding-right: 38px; }
/* Listas desplegables de las barras oscuras: el navegador abre las opciones sobre fondo blanco → texto oscuro */
.hi-barra select.form-select option, .hi-barra select.form-select optgroup { color: #1f2933; background: #ffffff; }
[data-bs-theme="dark"] .hi-barra select.form-select option, [data-bs-theme="dark"] .hi-barra select.form-select optgroup { color: #e6ebef; background: #1b2229; }
.vd-select option, .vd-select optgroup { color: #e6ebef; background: #1b2229; }
/* ¿está aprendiendo? curva de error + diagnóstico (entrenamiento de voces) */
.apr { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 10px 0 6px; }
.apr-grafica { grid-row: span 1; border: 1px solid var(--hi-borde); border-radius: 12px; padding: 10px 12px; background: var(--hi-carta); min-width: 0; }
.apr-titulo { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; font-size: .85rem; margin-bottom: 4px; }
.apr-titulo b { font-size: .95rem; }
.apr-pasos { margin-left: auto; }
.apr svg { width: 100%; height: auto; display: block; }
.apr-rejilla { stroke: rgba(127,127,127,.18); stroke-width: 1; }
.apr-eje { fill: var(--hi-mut); font-size: 15px; }
.apr-l1 { fill: none; stroke: #3b82f6; stroke-width: 3.5; stroke-linejoin: round; }
.apr-l2 { fill: none; stroke: #f59e0b; stroke-width: 3.5; stroke-linejoin: round; }
.apr-mejor { fill: #f59e0b; stroke: #fff; stroke-width: 2; }
.apr-leyenda { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .76rem; color: var(--hi-mut); align-items: center; }
.apr-leyenda i { display: inline-block; width: 18px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.apr-c1 { background: #3b82f6; } .apr-c2 { background: #f59e0b; } .apr-c3 { background: #f59e0b; width: 9px !important; height: 9px !important; border-radius: 50% !important; }
.apr-bajo { margin-left: auto; padding: 1px 8px; border-radius: 10px; background: rgba(34,197,94,.15); color: #16a34a; font-weight: 600; }
.apr-casos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.apr-caso { flex: 1; border-radius: 12px; padding: 9px 12px; border: 1px solid; opacity: .45; display: flex; flex-direction: column; gap: 2px; transition: opacity .2s; }
.apr-caso b { font-size: .9rem; } .apr-caso small { color: var(--hi-mut); font-size: .76rem; }
.apr-caso.on { opacity: 1; box-shadow: 0 0 0 2px currentColor inset; }
.apr-caso.ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.08); color: #16a34a; }
.apr-caso.mal { border-color: rgba(229,72,77,.45); background: rgba(229,72,77,.08); color: #e5484d; }
.apr-caso.info { border-color: rgba(59,130,246,.45); background: rgba(59,130,246,.08); color: #3b82f6; }
.apr-caso b, .apr-caso.on small { color: inherit; } .apr-caso small { color: var(--hi-mut) !important; }
.apr-resumen { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 12px; background: rgba(139,92,246,.10); border: 1px solid rgba(139,92,246,.35); }
.apr-resumen > i { font-size: 1.5rem; color: #8b5cf6; }
.apr-resumen div { display: flex; flex-direction: column; gap: 2px; font-size: .85rem; }
.apr-resumen.sobre { background: rgba(229,72,77,.10); border-color: rgba(229,72,77,.4); } .apr-resumen.sobre > i { color: #e5484d; }
.apr-resumen.sigue, .apr-resumen.bien { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.4); } .apr-resumen.sigue > i, .apr-resumen.bien > i { color: #16a34a; }
.apr-resumen.no { background: rgba(59,130,246,.10); border-color: rgba(59,130,246,.4); } .apr-resumen.no > i { color: #3b82f6; }
@media (max-width: 560px) { .apr-casos { grid-template-columns: 1fr; } }

/* Estudio: pestañas de generadores + dos columnas (formulario | generaciones), como en Intranet10 */
.est-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.est-tab { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--hi-borde); border-radius: 999px; background: var(--hi-carta); color: var(--hi-texto); font-size: .85rem; cursor: pointer; }
.est-tab:hover { border-color: var(--hi-verde); }
.est-tab.on { border-color: var(--hi-verde); box-shadow: 0 0 0 2px var(--hi-verde) inset; font-weight: 600; }
.est-tab.caido { opacity: .65; }
.est-punto { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; flex: none; }
.est-tab.caido .est-punto { background: #e5484d; }
.est-tab .est-n { position: static; }
.est-trabajo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 14px; align-items: start; }
.est-trabajo .est-panel, .est-trabajo .est-bandeja { margin: 0; }
.est-buscar { width: 180px; }
.est-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.est-txt .est-nombre { flex: none; cursor: text; }
.est-renombrar { font: .85rem ui-monospace, monospace; min-width: 0; }
.est-txt small { font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-encurso { margin-bottom: 8px; }
.est-encurso .est-item { border-style: dashed; }
.est-encurso .est-item > i { color: var(--hi-verde); }
@media (max-width: 1100px) { .est-trabajo { grid-template-columns: 1fr; } }

/* servicios (barra superior, uno solo para todo el producto) */
.hi-servicios { display: inline-flex; align-items: center; gap: 4px; color: #22c55e; }
.hi-servicios b { font-size: .72rem; color: inherit; }
.hi-servicios.alguno-caido { color: #e0a100; }
.hi-servicios.todos-caidos { color: #e5484d; }
.vd-servicios-global { width: 380px; }
.vd-sg { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-bottom: 1px solid var(--hi-borde); font-size: .84rem; }
.vd-sg-punto { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.vd-sg-punto.ok { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); } .vd-sg-punto.mal { background: #e5484d; }
.vd-sg-revisar { border: 0; background: none; color: inherit; cursor: pointer; }

/* Estudio: barra vertical fina de generadores (solo ícono + punto de estado) */
.est-trabajo { grid-template-columns: 46px minmax(0, 5fr) minmax(0, 6fr); }
.est-barra { display: flex; flex-direction: column; gap: 6px; padding: 6px 4px; border: 1px solid var(--hi-borde); border-radius: 12px; background: var(--hi-carta); position: sticky; top: calc(var(--hi-top-h, 60px) + 8px); }
.est-barra .espacio { flex: 1; min-height: 10px; }
.est-ico { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 9px; background: none; color: var(--hi-texto); cursor: pointer; font-size: 1.05rem; }
.est-ico:hover { border-color: var(--hi-borde); background: var(--hi-suave2, rgba(127,127,127,.08)); }
.est-ico.on { border-color: var(--hi-verde); background: rgba(1,169,130,.14); color: var(--hi-verde); }
.est-ico .est-punto { position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; }
.est-ico.caido { opacity: .7; } .est-ico.caido .est-punto { background: #e5484d; }
.est-ico .est-n { position: absolute; bottom: -2px; right: -4px; min-width: 16px; padding: 0 4px; font-size: .62rem; line-height: 14px; }
.est-ayuda { color: var(--hi-mut); }
.hi-barra .est-buscar { width: 240px; }
.est-ayuda-ventana { width: min(720px, 96vw); }
.est-ayuda-lista { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.est-ayuda-fila { display: flex; gap: 10px; align-items: flex-start; }
.est-ayuda-fila .est-ico { flex: none; cursor: default; border-color: var(--hi-borde); }
.est-ayuda-fila div { display: flex; flex-direction: column; font-size: .85rem; } .est-ayuda-fila span { color: var(--hi-mut); font-size: .8rem; }
@media (max-width: 1100px) { .est-trabajo { grid-template-columns: 46px minmax(0, 1fr); } .est-der { grid-column: 2; } .est-ayuda-lista { grid-template-columns: 1fr; } }
.hi-servicios { width: auto !important; padding: 0 8px; margin-right: 4px; white-space: nowrap; }
/* barra principal: un poco más compacta para que entren los indicadores en una sola línea */
.hi-top { gap: 10px; }
.hi-nav { gap: 2px; }
.hi-nav a { padding: 6px 9px; }
.hi-servicios { padding: 0 6px; margin-right: 0; }

/* formulario del Estudio: campos con título a la izquierda y acción a la derecha */
.est-campo { display: flex; flex-direction: column; gap: 4px; }
.est-campo-cab { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.est-campo-cab b { margin-right: auto; font-weight: 600; }
.est-campo-acc { display: inline-flex; align-items: center; gap: 6px; }
.est-ico-btn { width: 30px; height: 28px; display: inline-grid; place-items: center; border: 1px solid var(--hi-borde); border-radius: 7px; background: none; color: var(--hi-verde); cursor: pointer; }
.est-ico-btn:hover { border-color: var(--hi-verde); } .est-ico-btn:disabled { color: var(--hi-mut); cursor: default; opacity: .6; }
.est-estilos { position: relative; width: 340px; max-width: 65%; }
.est-estilos-lista { position: absolute; z-index: 30; top: calc(100% + 4px); right: 0; width: min(560px, 90vw); max-height: 380px; overflow-y: auto;
    background: var(--hi-carta); border: 1px solid var(--hi-borde); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); padding: 4px 0; }
.est-estilos-grupo { position: sticky; top: -4px; padding: 6px 12px 3px; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--hi-verde); background: var(--hi-carta); }
.est-estilos-item { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--hi-texto); padding: 5px 12px; cursor: pointer; }
.est-estilos-item b { display: block; font-weight: 600; font-size: .86rem; }
.est-estilos-item small { display: block; color: var(--hi-mut); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-estilos-item:hover { background: var(--hi-suave2); }
.est-estilos-vacio { padding: 10px 12px; color: var(--hi-mut); font-size: .85rem; }
.est-hr { margin: 4px 0; border-color: var(--hi-borde); opacity: 1; }
.est-panel-cab { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: -16px -16px 12px; padding: 10px 16px; border-bottom: 1px solid var(--hi-borde); background: rgba(1,169,130,.08); border-radius: 12px 12px 0 0; }
.est-panel-cab b { font-size: 1.05rem; }

/* barra del Estudio: canción a la izquierda, mensaje al centro, buscador a la derecha */
.est-barra-top .est-msg { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.est-barra-top .est-msg.ok { color: #3fe0b5; } .est-barra-top .est-msg.mal { color: #ff8a8a; }
.est-barra-top .est-msg button { border: 0; background: none; color: inherit; cursor: pointer; }
.est-barra-top .est-buscar { margin-left: auto; }

/* corrector (ML): barra con íconos, transporte+tramo pegado a la onda, ventanas flotantes */
.ml-barra h1 { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-chip { border: 0; cursor: pointer; }
.ml-msg { flex: 1; min-width: 0; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ml-msg.ok { color: #3fe0b5; } .ml-msg.mal { color: #ff8a8a; }
.ml-ico { width: 34px; height: 32px; display: inline-grid; place-items: center; border: 1px solid #3a444e; border-radius: 8px; background: #222b33; color: #e6ebef; cursor: pointer; }
.ml-ico:hover:not(:disabled) { border-color: var(--hi-verde); } .ml-ico.on { background: rgba(1,169,130,.2); border-color: var(--hi-verde); color: #3fe0b5; } .ml-ico:disabled { opacity: .45; cursor: default; }
.ml-sep { width: 1px; height: 22px; background: var(--hi-borde); margin: 0 4px; }
.ml-transporte { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-bottom: 8px; }
.ml-transporte .ml-ico { background: none; color: var(--hi-texto); border-color: var(--hi-borde); }
.ml-reloj { font-variant-numeric: tabular-nums; min-width: 52px; }
.ml-num { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .82rem; white-space: nowrap; }
.ml-num input { width: 84px; } .ml-num select { width: auto; }
.ml-transporte > select { width: auto; }
.ml-franja { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; padding: 8px 10px; border: 1px dashed var(--hi-borde); border-radius: 10px; font-size: .86rem; }
.ml-franja > i { color: var(--hi-verde); } .ml-franja.mal { border-color: rgba(229,72,77,.6); } .ml-franja.mal > i { color: #e5484d; }
.ml-franja.listo { border-style: solid; border-color: rgba(1,169,130,.5); }
.ml-cands { display: inline-flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ml-flot { position: fixed; z-index: 2200; width: min(520px, calc((100vw - 64px) / 3)); background: var(--hi-carta); color: var(--hi-texto); border: 1px solid var(--hi-borde); border-radius: 12px; box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.ml-velo-letra { z-index: 2300; align-items: center; }
.ml-ventana-letra { max-width: min(1000px, calc(100vw - 32px)); height: 75vh; display: flex; flex-direction: column; }
.ml-ventana-letra .hi-ventana-cab h2 { flex: none; }
.ml-letra-chip { margin-right: auto; max-width: 50%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-letra-cuerpo { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px 18px 16px; }
.ml-letra-cuerpo .ml-letra.form-control { flex: 1; min-height: 0; height: auto; font: 1.05rem/1.65 system-ui, sans-serif; resize: none; }
.ml-letra-hr { margin: 2px 0; }
.ml-letra-pie { display: flex; align-items: center; gap: 8px; }
.ml-letra-pie .espacio { flex: 1; }
.ml-letra-aviso { font-size: .85rem; min-height: 1.2em; margin-top: -4px; }
.ml-ventana-alt { max-width: min(820px, calc(100vw - 32px)); max-height: 75vh; display: flex; flex-direction: column; }
.ml-alt-cuerpo { overflow: auto; }
.ml-alt-datos { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ml-alt-datos .hi-chip { background: var(--hi-fondo); border: 1px solid var(--hi-borde); color: var(--hi-texto); }
.ml-alt-datos .ml-alt-cambios { border-color: #b07cf0; }
.ml-alt-sub { font-size: .95rem; font-weight: 600; margin: 6px 0 0; }
.ml-alt-campo { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; flex: 1; }
.ml-alt-fila { display: flex; gap: 12px; } .ml-alt-fila .ml-alt-campo:first-child { flex: 2; }
.ml-pista-alt .ml-pista-cab { padding-right: 46px; }
.ml-alt-sel { width: 100%; font-size: .75rem; padding: 1px 22px 1px 6px; margin-top: 2px; }
.ml-alt-botones { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; }
.ml-pista-cab .ml-alt-botones .ml-ico { position: static; transform: none; }
.ml-ico.con-texto { width: auto; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ml-orto-signos { display: flex; align-items: center; gap: 6px; margin: 0 4px; font-size: .9rem; white-space: nowrap; }
.ml-orto-lista { flex: none; max-height: 32%; overflow: auto; border: 1px solid var(--hi-borde); border-radius: 8px; }
.ml-orto-item { display: grid; grid-template-columns: 110px 1fr auto; gap: 10px; align-items: center; padding: 7px 10px; border-bottom: 1px solid var(--hi-borde); }
.ml-orto-item:last-child { border-bottom: 0; }
.ml-orto-tipo { font-size: .78rem; font-weight: 600; color: var(--hi-mut); white-space: nowrap; }
.ml-orto-item.ortografia .ml-orto-tipo { color: #d9534f; } .ml-orto-item.signos .ml-orto-tipo { color: #01a982; } .ml-orto-item.gramatica .ml-orto-tipo { color: #c98a00; }
.ml-orto-texto { display: flex; flex-direction: column; min-width: 0; }
.ml-orto-linea { border: 0; background: none; padding: 0; text-align: left; color: inherit; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ml-orto-linea mark { background: #ffe08a; color: #222; padding: 0 2px; border-radius: 3px; }
.ml-orto-acciones { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ml-flot-cab { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--hi-barra, #1b2229); color: #fff; border-radius: 12px 12px 0 0; cursor: move; user-select: none; }
.ml-flot-cab .espacio { flex: 1; }
.ml-flot-cab button { border: 0; background: none; color: inherit; cursor: pointer; }
.ml-flot-cuerpo { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; }
.ml-flot-cuerpo .ml-letra { font: .85rem ui-monospace, monospace; min-height: 300px; }
.ml-campo { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 600; margin: 0; }

/* corrector: dos pistas (Original arriba, Nueva abajo) */
.ml-pistas { display: flex; flex-direction: column; gap: 6px; }
.ml-pista { display: grid; grid-template-columns: 150px 1fr; gap: 0; border: 1px solid var(--hi-borde); border-radius: 10px; overflow: hidden; }
.ml-pista.suena { border-color: var(--hi-verde); box-shadow: 0 0 0 1px var(--hi-verde) inset; }
.ml-pista-nueva.suena { border-color: #4aa3ff; box-shadow: 0 0 0 1px #4aa3ff inset; }
.ml-pista-alt.suena { border-color: #b07cf0; box-shadow: 0 0 0 1px #b07cf0 inset; } .ml-pista-alt .ml-pista-cab > i { color: #b07cf0; }
.ml-pista-cab { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 8px 10px; background: rgba(127,127,127,.06); border-right: 1px solid var(--hi-borde); position: relative; }
.ml-pista-cab > i { color: var(--hi-verde); } .ml-pista-nueva .ml-pista-cab > i { color: #4aa3ff; }
.ml-pista-cab small { font-size: .74rem; }
.ml-pista-cab .ml-ico { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 28px; background: none; color: var(--hi-texto); border-color: var(--hi-borde); }
.ml-pista .ml-onda-caja { height: 130px; border-radius: 0; }
.ml-pistas { position: relative; user-select: none; }
.ml-pista-regla { border-color: transparent; }
.ml-pista-regla .ml-pista-cab { background: none; border-right-color: transparent; padding: 0 10px; }
.ml-pista-regla small { font-size: .72rem; line-height: 1.15; }
.ml-regla-caja { position: relative; height: 26px; cursor: ew-resize; border-radius: 6px; overflow: hidden; }
.ml-regla { display: block; }
.ml-hscroll { overflow-x: auto; overflow-y: hidden; height: 14px; margin-right: 1px; scrollbar-width: thin; scrollbar-color: #5b6874 #1b2229; }
.ml-hscroll::-webkit-scrollbar { height: 10px; } .ml-hscroll::-webkit-scrollbar-track { background: #1b2229; border-radius: 6px; } .ml-hscroll::-webkit-scrollbar-thumb { background: #5b6874; border-radius: 6px; }
.ml-hscroll-esp { height: 1px; }
.ml-cabezal { position: absolute; top: 0; bottom: 20px; width: 2px; margin-left: -1px; background: #d64545; pointer-events: none; z-index: 5; }
.ml-cabezal-zona { position: absolute; top: 0; bottom: 0; left: -6px; width: 14px; pointer-events: auto; cursor: ew-resize; }
.ml-cabezal-manija { position: absolute; top: 0; left: -7px; width: 16px; height: 18px; pointer-events: auto; cursor: ew-resize; background: #d64545; clip-path: polygon(0 0, 100% 0, 100% 55%, 50% 100%, 0 55%); }
.ml-cabezal-manija:hover, body.vd-arrastrando .ml-cabezal-manija { background: #ff6b6b; }
.ml-cabezal:has(.ml-cabezal-zona:hover), body.vd-arrastrando .ml-cabezal { width: 3px; }
.ml-flot-revisar { width: min(600px, calc((100vw - 64px) / 2.4)); }
.ml-rev-cab { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ml-rev-cab .espacio { flex: 1; }
.ml-rev-filtro { display: inline-flex; align-items: center; gap: 4px; margin: 0; font-size: .82rem; cursor: pointer; }
.ml-rev-mal { color: #ff8a8a; } .ml-rev-ok { color: #3fe0b5; }
.ml-rev-vieja { color: #f2c94c; margin: 0; }
.ml-rev-lista { display: flex; flex-direction: column; gap: 3px; max-height: 58vh; overflow: auto; padding-right: 4px; }
.ml-rev-titulo { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--hi-texto-2, #9aa7b3); margin: 8px 0 2px; }
.ml-rev-l { display: grid; grid-template-columns: 26px 40px 1fr auto; gap: 6px; align-items: start; padding: 5px 6px; border-radius: 8px; border-left: 3px solid transparent; cursor: pointer; font-size: .9rem; }
.ml-rev-l:hover { background: rgba(127,127,127,.10); }
.ml-rev-l.ok { border-left-color: rgba(1,169,130,.55); }
.ml-rev-l.mal { border-left-color: #e5484d; background: rgba(229,72,77,.07); }
.ml-rev-l.sel { box-shadow: 0 0 0 1px #e5484d inset; background: rgba(229,72,77,.16); }
.ml-rev-l.suena { background: rgba(1,169,130,.16); }
.ml-rev-t { font-variant-numeric: tabular-nums; font-size: .78rem; color: #9aa7b3; padding-top: 2px; }
.ml-rev-txt span.no { color: #ff8a8a; text-decoration: underline wavy #e5484d; text-underline-offset: 3px; }
.ml-rev-oido { display: block; color: #9aa7b3; font-style: italic; }
.ml-rev-n { min-width: 22px; text-align: center; border-radius: 10px; background: #e5484d; color: #fff; font-size: .75rem; font-weight: 700; padding: 1px 6px; }
.ml-rev-okic { color: var(--hi-verde); padding-top: 3px; }
.ml-rev-play { border: 0; background: none; color: inherit; opacity: .7; padding: 2px; cursor: pointer; }
.ml-rev-play:hover { opacity: 1; color: var(--hi-verde); }
.ml-rev-editor { margin: 0 0 6px 34px; padding: 10px; border: 1px solid #e5484d; border-top: 0; border-radius: 0 0 8px 8px; background: rgba(229,72,77,.06); display: flex; flex-direction: column; gap: 8px; cursor: default; }
.ml-rev-campo { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.ml-rev-campo small { font-size: .74rem; color: #9aa7b3; }
.ml-rev-tiempos { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .82rem; }
.ml-rev-tiempos label { display: inline-flex; align-items: center; gap: 4px; margin: 0; }
.ml-rev-tiempos input { width: 86px; }
.ml-rev-tiempos .ml-ico { width: 30px; height: 28px; background: none; color: var(--hi-texto); }
.ml-rev-pie { display: flex; align-items: center; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.ml-rev-editada { color: #f2c94c; }
.ml-rev-l.sel { border-radius: 8px 8px 0 0; }
.ml-hr { margin: 2px 0 10px; border-color: var(--hi-borde); opacity: 1; }
.ml-pista-tramos { border-color: transparent; }
.ml-pista-tramos .ml-pista-cab { background: none; border-right-color: transparent; padding: 0 10px; flex-direction: row; align-items: center; justify-content: space-between; }
.ml-pista-tramos .ml-pista-cab b { font-size: .78rem; color: #f2c94c; }
.ml-tramos-caja { position: relative; height: 26px; border-radius: 6px; overflow: hidden; }
.ml-tramos { display: block; }
.ml-salir-comp { border: 1px solid #f2c94c; background: none; color: #f2c94c; border-radius: 6px; padding: 0 6px; font-size: .75rem; cursor: pointer; }
.ml-pistas.comparando .ml-pista-actual .ml-pista-cab > i, .ml-pistas.comparando .ml-pista-nueva .ml-pista-cab > i { color: #f2c94c; }
.ml-grupo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border: 1px solid var(--hi-borde); border-radius: 10px; background: rgba(127,127,127,.07); }
.ml-grupo .ml-ico { width: 32px; height: 30px; }
.ml-grupo-reloj { padding: 4px 12px; background: #11161b; font-size: 1.05rem; }
.ml-grupo-reloj small { font-size: .8rem; }
.ml-grupo .form-select, .ml-grupo .form-control { background-color: transparent; }
.ml-transporte { gap: 10px !important; }
.ml-vol { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 6px; }
.ml-vol input { width: 90px; accent-color: var(--hi-verde); }

/* Nueva canción (lista del DAW) */
.vd-nueva { width: min(720px, 94vw); }
.vd-nueva-cuerpo { display: flex; flex-direction: column; gap: 12px; }
.vd-nueva-campo { display: flex; flex-direction: column; gap: 4px; font-weight: 600; margin: 0; }
.vd-nueva-vacia { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 14px; }
.vd-nueva-vacia .vd-nueva-campo { width: 120px; }
.vd-nueva-vacia small { flex: 1 1 100%; }
.vd-nueva-zona { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 2px dashed var(--hi-borde); border-radius: 12px; cursor: pointer; margin: 0; text-align: center; }
.vd-nueva-zona:hover { border-color: var(--hi-verde); }
.vd-nueva-zona > i { font-size: 1.8rem; color: var(--hi-verde); }
.vd-nueva-zona input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.vd-nueva-lista { display: flex; flex-direction: column; gap: 6px; max-height: 40vh; overflow: auto; }
.vd-nueva-fila { display: grid; grid-template-columns: 22px 1fr auto 110px auto; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid var(--hi-borde); border-radius: 8px; }
.vd-nueva-fila > i { color: var(--hi-verde); }
.vd-nueva-nombre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-nueva-error { color: #ff8a8a; margin: 0; }
.vd-nueva-pie { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--hi-borde); padding-top: 12px; }
.vd-nueva-pie .espacio { flex: 1; }

/* Estudio · partes de la canción para el cover */
.est-partes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.est-parte { border: 1px solid var(--hi-borde); border-left: 4px solid var(--c, var(--hi-borde)); border-radius: 7px; background: var(--hi-carta); color: var(--hi-texto); padding: 3px 9px; font-size: .82rem; cursor: pointer; }
.est-parte small { color: var(--hi-mut); margin-left: 4px; font-variant-numeric: tabular-nums; }
.est-parte:hover { border-color: var(--c, var(--hi-verde)); }
.est-parte.on { background: var(--hi-suave2); font-weight: 600; box-shadow: inset 0 0 0 1px var(--c, var(--hi-verde)); }
.est-parte.auto { border-top-style: dashed; border-right-style: dashed; border-bottom-style: dashed; font-weight: 400; }

/* corrector · melodía por línea (♪ %) */
.ml-rev-fin { display: inline-flex; align-items: center; gap: 6px; }
.ml-rev-mel { font-size: .75rem; padding: 1px 6px; border-radius: 10px; background: rgba(1,169,130,.15); color: #3fe0b5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ml-rev-mel.mal { background: rgba(229,72,77,.18); color: #ff8a8a; font-weight: 600; }
/* el play de cada generación se distingue de los demás botones (redondo y de color) */
.est-item .est-play { width: 34px; height: 34px; border-radius: 50%; padding: 0; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.est-item.sonando { border-color: var(--hi-verde, var(--hi-verde)); box-shadow: inset 4px 0 0 var(--hi-verde, var(--hi-verde)); background: color-mix(in srgb, var(--hi-verde, var(--hi-verde)) 10%, var(--hi-carta)); }
/* Generaciones: casilla + play + nombre + ⋮ (las acciones van en el menú; las de varias, en la barra de selección) */
.est-sel-barra { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 34px; margin-bottom: 6px; }
.est-sel-barra .form-check { margin: 0 6px 0 0; }
.est-item { position: relative; }
.est-item.marcada { background: color-mix(in srgb, var(--hi-verde, var(--hi-verde)) 6%, var(--hi-carta)); }
.est-check { flex: none; margin: 0; width: 18px; height: 18px; cursor: pointer; }
.est-fav { border: 0; background: none; color: #f5b301; padding: 2px 4px; flex: none; }
.est-fav.no { color: #9aa5b1; opacity: .7; } .est-fav.no:hover { color: #f5b301; opacity: 1; } .est-fav { cursor: pointer; font-size: 1.05rem; }
.est-menu { position: relative; flex: none; }
.est-menu-velo { position: fixed; inset: 0; z-index: 40; }
.est-menu-lista { position: absolute; right: 0; top: calc(100% + 4px); z-index: 41; min-width: 200px; display: flex; flex-direction: column; padding: 4px;
  background: var(--hi-carta); border: 1px solid var(--hi-borde); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.est-menu-lista > button, .est-menu-lista > a { display: flex; align-items: center; gap: 10px; border: 0; background: none; color: inherit; text-decoration: none;
  text-align: left; padding: 8px 10px; border-radius: 6px; font-size: .9rem; }
.est-menu-lista > button:hover, .est-menu-lista > a:hover { background: color-mix(in srgb, var(--hi-verde, var(--hi-verde)) 12%, transparent); }
.est-menu-lista i { width: 16px; text-align: center; }
.est-menu-lista .fuerte { font-weight: 600; color: var(--hi-verde, var(--hi-verde)); }
.est-menu-lista .peligro { color: #dc3545; border-top: 1px solid var(--hi-borde); border-radius: 0 0 6px 6px; margin-top: 2px; }
/* orden del cover (Partes): fichas arrastrables con número y × */
.est-parte-n { margin-left: 4px; font-size: .72rem; color: var(--c, var(--hi-verde)); }
.est-orden { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--hi-borde); }
.est-orden-item { display: inline-flex; align-items: center; gap: 4px; cursor: grab; user-select: none; }
.est-orden-item.moviendo { opacity: .4; }
.est-orden-item button { border: 0; background: none; color: var(--hi-mut); padding: 0 0 0 4px; font-size: .75rem; }
.est-orden-item button:hover { color: #dc3545; }
.est-orden-n { color: var(--hi-mut); font-variant-numeric: tabular-nums; margin: 0 !important; }
.est-aviso-partes { display: block; flex-basis: 100%; color: #b7791f; font-size: .78rem; margin-top: 2px; }
.est-campo-cab:has(.est-aviso-partes) { flex-wrap: wrap; } .est-aviso-partes { order: 9; }
.hi-ventana .ml-radio { flex-direction: row !important; justify-content: flex-start !important; text-align: left; }
.ml-radio { display: flex; align-items: center; gap: 8px; margin: 6px 0; font-weight: 600; cursor: pointer; } .ml-radio .form-check-input { margin: 0; float: none; }
.can-lista { color: var(--hi-verde, var(--hi-verde)); font-size: .85em; margin-left: 4px; }
.gal-lista { color: var(--hi-verde, var(--hi-verde)); margin-right: 3px; }
.ml-letra-cancion { display: flex; gap: 6px; align-items: center; margin-top: 8px; } .ml-letra-cancion select { flex: 1; min-width: 0; }
/* corrimiento a la derecha del menú superior y del reproductor/pestañas del DAW (~200 px en pantalla ancha) */
:root { --hi-corrido: 0px; }
@media (min-width: 1200px) { :root { --hi-corrido: 90px; } }
@media (min-width: 1500px) { :root { --hi-corrido: 200px; } }

/* Íconos de la barra superior a 24 px; Volver en un círculo, siempre el último a la derecha */
.hi-top .hi-tema, .hi-top .hi-icono { width: auto; min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.hi-top .hi-tema > i, .hi-top .hi-icono > i, .hi-top .hi-usuario > i { font-size: 24px; }
.hi-top .hi-engranaje { font-size: 24px; }
.hi-usuario { font-size: 1rem; }
.hi-volver { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #3a4452; background: #1c212a; color: #e7eaf0; padding: 0; }
.hi-volver i { font-size: 24px; }
.hi-volver:hover { background: var(--hi-boton); border-color: var(--hi-boton); color: #fff; }
/* Menú superior: ícono grande (24 px) arriba y el nombre abajo, todo en una línea */
.hi-nav { align-items: stretch; gap: 2px; flex-wrap: nowrap; }
.hi-nav a { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 76px; padding: 6px 10px; font-size: .72rem; letter-spacing: .05em; border-radius: 10px; line-height: 1; white-space: nowrap; }
.hi-nav a i { font-size: 24px; }
@media (max-width: 1200px) { .hi-nav { flex-wrap: wrap; } .hi-nav a { min-width: 64px; } }
/* que la barra superior quepa en una línea: corrimiento del menú según el ancho; en pantallas medianas, el usuario solo con su ícono */
@media (min-width: 1500px) { :root { --hi-corrido: 40px; } }
@media (min-width: 1800px) { :root { --hi-corrido: 200px; } }
@media (max-width: 1749px) { .hi-usuario-nombre { display: none; } }
.hi-top { flex-wrap: nowrap; }
@media (max-width: 1200px) { .hi-top { flex-wrap: wrap; } }
/* logo nuevo (DAW HI809, más ancho): misma altura, sin fondo */
.hi-logo { height: 54px; width: auto; }
.login-logo { height: 110px; }
[data-bs-theme="light"] .login-card .login-logo { height: 120px; }
/* logo «HI809 DAW» con audífonos (más cuadrado) */
.hi-logo { height: 58px; }

/* indicador de trabajo sobre la pista (Nueva / Alternativa) */
.ml-cargando { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17,22,27,.72); pointer-events: none; }
.ml-cargando-barra { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(255,255,255,.08); overflow: hidden; }
.ml-cargando-barra::after { content: ""; position: absolute; top: 0; bottom: 0; width: 35%; background: var(--c); border-radius: 3px; animation: ml-barrido 1.6s ease-in-out infinite; }
.ml-cargando::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, color-mix(in srgb, var(--c) 22%, transparent) 50%, transparent 80%); background-size: 200% 100%; animation: ml-brillo 2.2s linear infinite; }
.ml-cargando-txt { position: relative; display: flex; align-items: center; gap: 14px; padding: 10px 18px; border-radius: 12px; background: rgba(0,0,0,.45); border: 1px solid var(--c); color: #fff; box-shadow: 0 0 24px color-mix(in srgb, var(--c) 35%, transparent); }
.ml-cargando-txt > i { font-size: 1.9rem; color: var(--c); }
.ml-cargando-txt b { display: block; font-size: 1.05rem; }
.ml-cargando-txt span { font-size: .85rem; color: #cfd6dd; }
.ml-cargando-reloj { font: 600 1.1rem ui-monospace, monospace; color: var(--c) !important; min-width: 3.2em; text-align: right; }
@keyframes ml-barrido { 0% { left: -35%; } 100% { left: 100%; } }
@keyframes ml-brillo { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .ml-cargando::before, .ml-cargando-barra::after { animation: none; } .ml-cargando-txt > i { animation: none; } }

.ml-alt-destinos { display: flex; flex-direction: column; gap: 6px; }
.ml-alt-dest { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--hi-borde); border-radius: 8px; cursor: pointer; }
.ml-alt-dest:has(input:checked) { border-color: #b07cf0; background: color-mix(in srgb, #b07cf0 8%, transparent); }
.ml-alt-dest input { margin-top: 4px; } .ml-alt-dest b { display: block; font-size: .92rem; } .ml-alt-dest small { font-size: .8rem; }
.ml-pista-alt .ml-alt-botones { gap: 4px; } .ml-pista-alt .ml-alt-botones .ml-ico { height: 26px; }

.ml-estrella { border: 0; background: none; padding: 0 2px; color: #8a96a3; cursor: pointer; font-size: 1rem; line-height: 1; }
.ml-estrella:hover:not(:disabled) { color: #f2c94c; } .ml-estrella.on { color: #f2c94c; } .ml-estrella:disabled { opacity: .4; cursor: default; }
.ml-version.fav { border-color: #f2c94c; }
.ml-estrella-chip { color: #f2c94c; margin-left: 6px; } .ml-fav-cuenta { color: #f2c94c; }
.ml-alt-titulo { display: flex; align-items: center; gap: 8px; } .ml-alt-titulo > i { color: #b07cf0; }
