/* Trebe · Hizkuntzak — paleta del manual de marca */
:root {
  --cyan: #00EAFF;
  --cyan-deep: #00B4C8;
  --blue: #1D3960;
  --orange: #F7931E;
  --orange-hover: #E8851A;
  --navy: #031F46;
  --navy-2: #0A2C57;
  --paper: #F6F8FB;
  --mist: #ECEFF4;
  --cloud: #DCE2EA;
  --slate: #7C8AA0;
  --steel: #4A5C75;
  --white: #FFFFFF;
  --eu: #00B4C8;
  --eu-soft: #D5F7FB;
  --es: #F7931E;
  --es-soft: #FDE7CB;
  --danger: #C8384B;
  --ok: #1F9D6B;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(3, 31, 70, .06), 0 6px 24px rgba(3, 31, 70, .06);
  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--steel);
  background: var(--paper);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
.hidden { display: none !important; }
h1, h2, h3 { color: var(--blue); margin: 0; font-weight: 600; }
button { font-family: inherit; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 24px;
  background: var(--navy);
  border-bottom: 3px solid var(--cyan);
}
.brand { display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand-logo { height: 46px; margin-left: -10px; }
.brand-sep { width: 1px; height: 30px; background: rgba(255,255,255,.18); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-name { color: #fff; font-weight: 600; font-size: 16px; letter-spacing: .02em; }
.brand-sub { color: #9DB0CC; font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; cursor: pointer;
  padding: 9px 18px; font-size: 13px; font-weight: 500; letter-spacing: .03em;
  transition: background .15s, color .15s, box-shadow .15s, transform .05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-hover); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--mist); }
.btn-outline { background: #fff; color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--cloud); }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--blue); }
.btn-lg { padding: 12px 28px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }

/* ---------- Layout ---------- */
.layout { display: grid; grid-template-columns: 290px 1fr; min-height: calc(100vh - 64px); }
.sidebar {
  background: #fff; border-right: 1px solid var(--mist);
  padding: 22px 14px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.side-title, .eyebrow {
  font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--slate);
}
.side-title { padding: 0 10px 10px; }
.side-empty { padding: 10px; color: var(--slate); font-size: 13px; }
.job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.job {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center;
  padding: 10px 12px; border-radius: 10px; cursor: pointer; position: relative;
}
.job:hover { background: var(--paper); }
.job.active { background: var(--blue); }
.job.active .job-name { color: #fff; }
.job.active .job-sub { color: #9DB0CC; }
.job-name { color: var(--blue); font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-sub { grid-column: 1 / -1; font-size: 11.5px; color: var(--slate); }
.job-del {
  opacity: 0; border: 0; background: transparent; color: var(--slate); cursor: pointer;
  width: 22px; height: 22px; border-radius: 6px; font-size: 15px; line-height: 1;
}
.job:hover .job-del { opacity: 1; }
.job-del:hover { background: rgba(200,56,75,.12); color: var(--danger); }
.chip {
  display: inline-block; font-size: 10.5px; font-weight: 500; letter-spacing: .04em;
  padding: 1px 8px; border-radius: 999px; margin-right: 6px;
}
.chip-run { background: var(--cyan); color: var(--navy); }
.chip-queue { background: var(--mist); color: var(--steel); }
.chip-err { background: rgba(200,56,75,.12); color: var(--danger); }

.main { padding: 32px 40px 120px; min-width: 0; }
.view { max-width: 1180px; margin: 0 auto; }

/* ---------- Nuevo ---------- */
.hero { max-width: 760px; margin: 12px 0 26px; }
.hero h1 { font-size: 34px; line-height: 1.15; margin: 8px 0 10px; letter-spacing: -.01em; }
.lead { font-size: 15.5px; color: var(--steel); margin: 0; }
.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 230px; border-radius: 20px; cursor: pointer; text-align: center; padding: 24px;
  background: #fff; border: 2px dashed var(--cloud);
  transition: border-color .15s, background .15s;
}
.drop input { display: none; }
.drop:hover, .drop.over { border-color: var(--cyan-deep); background: #F7FDFF; }
.drop-icon { color: var(--cyan-deep); margin-bottom: 6px; }
.drop-title { color: var(--blue); font-size: 18px; font-weight: 600; }
.drop-sub { color: var(--slate); font-size: 13px; }
.picked {
  display: flex; align-items: center; gap: 12px; margin-top: 16px;
  background: #fff; border-radius: var(--radius); padding: 14px 16px 14px 22px; box-shadow: var(--shadow);
  border-left: 4px solid var(--orange);
}
.picked-info { flex: 1; min-width: 0; }
.picked-name { color: var(--blue); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picked-size { color: var(--slate); font-size: 12.5px; }
.upload { margin-top: 16px; }
.upload-label { font-size: 13px; margin-bottom: 6px; color: var(--blue); }
.steps {
  list-style: none; padding: 0; margin: 34px 0 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: s;
}
.steps li {
  counter-increment: s; background: #fff; border-radius: 12px; padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--mist);
}
.steps li::before { content: "0" counter(s); font-size: 11px; color: var(--orange); font-weight: 600; letter-spacing: .1em; }
.steps b { color: var(--blue); font-weight: 600; font-size: 13.5px; }
.steps span { font-size: 12px; color: var(--slate); }

/* ---------- Barras ---------- */
.bar { height: 6px; background: var(--mist); border-radius: 999px; overflow: hidden; }
.bar-lg { height: 10px; }
.bar-fill {
  height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan));
  transition: width .35s ease;
}

/* ---------- Progreso ---------- */
.file-title { font-size: 24px; margin: 6px 0 2px; word-break: break-word; }
.prog-meta, .res-meta { color: var(--slate); font-size: 13px; }
.overall { background: #fff; border-radius: var(--radius); padding: 18px 22px; margin: 22px 0 14px; box-shadow: var(--shadow); }
.overall-row { display: flex; justify-content: space-between; color: var(--blue); font-weight: 500; margin-bottom: 10px; }
.phases { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.phase {
  display: grid; grid-template-columns: 36px 1fr 90px; gap: 4px 14px; align-items: center;
  padding: 14px 22px; border-bottom: 1px solid var(--mist);
}
.phase:last-child { border-bottom: 0; }
.ph-icon {
  grid-row: span 2; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
  background: var(--mist); color: var(--slate);
}
.phase.running .ph-icon { background: var(--cyan); color: var(--navy); }
.phase.running .ph-icon::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid transparent; border-top-color: var(--cyan-deep); animation: spin 1s linear infinite;
}
.phase.done .ph-icon { background: var(--blue); color: #fff; }
.ph-icon { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }
.ph-label { color: var(--blue); font-weight: 500; }
.phase.pending .ph-label { color: var(--slate); }
.ph-time { text-align: right; font-size: 12px; color: var(--slate); font-variant-numeric: tabular-nums; }
.ph-detail { font-size: 12px; color: var(--slate); min-height: 18px; }
.ph-bar { grid-column: 3; }
.prog-actions { margin-top: 14px; display: flex; justify-content: flex-end; }
.error-box {
  margin-top: 14px; padding: 14px 18px; border-radius: 12px;
  background: rgba(200,56,75,.08); color: var(--danger); border-left: 4px solid var(--danger);
  white-space: pre-wrap;
}

/* ---------- Resultado ---------- */
.res-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 18px; }
.export { position: relative; }
.export-pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 320px;
  background: #fff; border-radius: var(--radius); box-shadow: 0 12px 40px rgba(3,31,70,.18); padding: 18px;
}
.pop-title { color: var(--blue); font-weight: 600; margin-bottom: 10px; }
.pop-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.pop-row b { color: var(--blue); font-weight: 500; text-align: right; }
.pop-hint { font-size: 11.5px; color: var(--slate); margin: 2px 0 12px; }
.pop-actions { display: flex; gap: 8px; margin-top: 14px; }
.pop-actions .btn { flex: 1; justify-content: center; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--steel); cursor: pointer; }
.check input { accent-color: var(--orange); width: 15px; height: 15px; }
.check.small { font-size: 12px; white-space: nowrap; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cloud); margin-bottom: 22px; }
.tab {
  background: none; border: 0; padding: 10px 16px; cursor: pointer; font-size: 13.5px; font-weight: 500;
  color: var(--slate); border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: var(--blue); }
.tab.active { color: var(--blue); border-bottom-color: var(--orange); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); border-top: 3px solid var(--navy); }
.kpi.eu { border-top-color: var(--eu); }
.kpi.es { border-top-color: var(--es); }
.kpi-l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 500; }
.kpi-v { font-size: 26px; color: var(--navy); font-weight: 600; line-height: 1.25; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-s { font-size: 12px; color: var(--slate); }
.kpi-split { display: flex; height: 6px; border-radius: 999px; overflow: hidden; margin-top: 10px; background: var(--mist); }
.kpi-split i { display: block; height: 100%; }

.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-head h3 { font-size: 16px; }
.card-tools { display: flex; gap: 10px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 3px; }
.seg button {
  border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  font-size: 12.5px; font-weight: 500; color: var(--steel);
}
.seg button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 3px rgba(3,31,70,.15); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--slate); margin: 12px 0 8px; }
.lg { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 10px; }
.lg:first-child { margin-left: 0; }
.lg-eu { background: var(--eu); }
.lg-es { background: var(--es); }

.bars { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.brow { display: grid; grid-template-columns: 200px 1fr 120px; gap: 14px; align-items: center; }
.brow-name { color: var(--blue); font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 8px; }
.brow-name small { color: var(--slate); font-weight: 400; }
.brow-track { height: 22px; background: var(--paper); border-radius: 6px; overflow: hidden; display: flex; }
.brow-track span { display: block; height: 100%; position: relative; transition: width .4s ease; }
.brow-track .eu { background: var(--eu); }
.brow-track .es { background: var(--es); }
.brow-track span b {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 600; overflow: hidden; white-space: nowrap;
}
.brow-val { font-size: 12px; color: var(--steel); text-align: right; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th {
  text-align: right; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  color: var(--slate); padding: 8px 10px; border-bottom: 1px solid var(--cloud); white-space: nowrap;
}
table.data th:first-child, table.data td:first-child, table.data th.l, table.data td.l { text-align: left; }
table.data td { padding: 9px 10px; border-bottom: 1px solid var(--mist); text-align: right; white-space: nowrap; }
table.data td.name { color: var(--blue); font-weight: 500; }
table.data tr.total td { font-weight: 600; color: var(--navy); border-top: 2px solid var(--cloud); border-bottom: 0; }
td .pct-eu { color: var(--eu); font-weight: 600; }
td .pct-es { color: var(--orange-hover); font-weight: 600; }

/* ---------- Hablantes ---------- */
.hint { margin: 0 0 16px; color: var(--steel); }
.spk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; }
.spk {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px;
  border-left: 5px solid var(--c, var(--blue)); display: flex; flex-direction: column; gap: 10px;
}
.spk-top { display: flex; align-items: center; gap: 10px; }
.spk-id { font-size: 11px; color: var(--slate); letter-spacing: .1em; }
.spk-play { margin-left: auto; }
.field { display: flex; flex-direction: column; gap: 3px; }
.field label { font-size: 11px; color: var(--slate); letter-spacing: .08em; text-transform: uppercase; }
.input, .select {
  font-family: inherit; font-size: 13.5px; color: var(--blue);
  border: 1.5px solid var(--cloud); border-radius: 10px; padding: 7px 11px; background: #fff; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus { border-color: var(--cyan-deep); box-shadow: 0 0 0 3px rgba(0,234,255,.18); }
.spk-fields { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }
.spk-stats { display: flex; gap: 16px; font-size: 12px; color: var(--slate); flex-wrap: wrap; }
.spk-stats b { color: var(--blue); font-weight: 600; }
.mini-split { display: flex; height: 5px; border-radius: 999px; overflow: hidden; background: var(--mist); }
.mini-split i { display: block; height: 100%; }
.icon-btn {
  border: 0; background: var(--mist); color: var(--blue); width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
}
.icon-btn:hover { background: var(--cyan); color: var(--navy); }

/* ---------- Transcripción ---------- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.filters .input { flex: 1; min-width: 180px; }
.filter-summary { font-size: 12.5px; color: var(--slate); margin-bottom: 14px; }
.filter-summary b { color: var(--blue); font-weight: 600; }
.transcript { display: flex; flex-direction: column; gap: 10px; }
.iv {
  background: #fff; border-radius: 12px; box-shadow: var(--shadow);
  border-left: 4px solid var(--c, var(--blue)); padding: 12px 16px 10px;
}
.iv-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.iv-name { color: var(--navy); font-weight: 600; font-size: 13.5px; }
.iv-group { font-size: 11.5px; color: var(--steel); background: var(--mist); border-radius: 999px; padding: 1px 9px; }
.iv-time { font-size: 12px; color: var(--slate); font-variant-numeric: tabular-nums; }
.iv-words { margin-left: auto; font-size: 11.5px; color: var(--slate); }
.iv-spk { font-size: 11.5px; padding: 2px 6px; border-radius: 6px; border: 1px solid var(--cloud); color: var(--steel); background: #fff; }
.sent {
  display: grid; grid-template-columns: 112px 34px 1fr auto; gap: 10px; align-items: baseline;
  padding: 4px 6px; margin: 0 -6px; border-radius: 8px;
}
.sent:hover { background: var(--paper); }
.sent.playing { background: #E9FCFF; box-shadow: inset 3px 0 0 var(--cyan); }
.s-time {
  border: 0; background: none; padding: 0; cursor: pointer; text-align: left;
  font-size: 11.5px; color: var(--slate); font-variant-numeric: tabular-nums;
}
.s-time:hover { color: var(--orange); }
.badge {
  border: 0; cursor: pointer; font-size: 10.5px; font-weight: 600; letter-spacing: .05em;
  padding: 2px 0; width: 32px; border-radius: 6px; text-align: center;
}
.badge.eu { background: var(--eu-soft); color: #007C8C; }
.badge.es { background: var(--es-soft); color: #A85B06; }
.badge.inferred { outline: 1px dashed currentColor; outline-offset: -1px; }
.s-text { color: #23344d; font-size: 14px; line-height: 1.55; }
.s-text mark { background: #FFF1C2; color: inherit; border-radius: 3px; }
.s-words { font-size: 11px; color: var(--slate); white-space: nowrap; }
.more { align-self: center; margin-top: 6px; }
.empty-msg { padding: 30px; text-align: center; color: var(--slate); background: #fff; border-radius: var(--radius); }

/* ---------- Player ---------- */
.player {
  position: fixed; left: 290px; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; gap: 16px; padding: 10px 40px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(6px);
  border-top: 1px solid var(--mist); box-shadow: 0 -4px 20px rgba(3,31,70,.06);
}
.player audio { flex: 1; height: 36px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: var(--navy); color: #fff; padding: 10px 20px; border-radius: 999px; font-size: 13px;
  box-shadow: 0 8px 30px rgba(3,31,70,.3);
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--mist); }
  .player { left: 0; padding: 10px 16px; }
  .main { padding: 24px 16px 120px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .brow { grid-template-columns: 120px 1fr 80px; }
  .brand-sub { display: none; }
  .sent { grid-template-columns: 1fr auto; }
  .sent .s-text { grid-column: 1 / -1; }
  .res-head { flex-direction: column; align-items: stretch; }
}

/* ---------- Selector de idioma ---------- */
.top-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; background: rgba(255,255,255,.08); border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; color: #9DB0CC; cursor: pointer;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; padding: 5px 11px; border-radius: 999px;
}
.lang-switch button:hover { color: #fff; }
.lang-switch button.active { background: var(--cyan); color: var(--navy); }

/* ---------- Huellas de voz ---------- */
.side-sep { height: 1px; background: var(--mist); margin: 14px 8px; }
.side-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  color: var(--blue); font-weight: 500; font-size: 13px; text-decoration: none;
}
.side-link:hover { background: var(--paper); color: var(--blue); }
.side-link.active { background: var(--blue); color: #fff; }
.side-link b { margin-left: auto; font-size: 11px; font-weight: 600; background: var(--mist); color: var(--steel); border-radius: 999px; padding: 0 8px; }
.side-link.active b { background: rgba(255,255,255,.18); color: #fff; }
.inst-pick {
  display: grid; grid-template-columns: auto minmax(220px, 360px) 1fr; gap: 8px 14px; align-items: center;
  margin-top: 12px; background: #fff; border-radius: var(--radius); padding: 12px 18px; box-shadow: var(--shadow);
}
.inst-pick label { color: var(--blue); font-weight: 500; font-size: 13px; }
.inst-hint { font-size: 12px; color: var(--slate); }
.btn-block { width: 100%; justify-content: center; margin-top: 8px; }
.vp-bar { display: flex; flex-direction: column; gap: 12px; padding: 16px 20px; }
.vp-row { display: grid; grid-template-columns: 1fr minmax(200px, 320px) auto; gap: 12px; align-items: center; }
.vp-label { display: flex; flex-direction: column; line-height: 1.35; }
.vp-label b { color: var(--blue); font-weight: 600; font-size: 13.5px; }
.vp-label span { font-size: 12px; color: var(--slate); }
.spk-badge { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.spk-badge.ok { background: #DDF6EC; color: var(--ok); }
.spk-badge.sug { background: var(--es-soft); color: #A85B06; cursor: pointer; border: 0; font-family: inherit; }
.spk-vp { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--steel); }
.spk-vp input { accent-color: var(--orange); }
.spk-vp.disabled { color: var(--slate); opacity: .7; }
.vp-inst { margin-bottom: 16px; }
.vp-inst-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.vp-inst-head h3 { font-size: 16px; }
.vp-inst-head .meta { font-size: 12px; color: var(--slate); }
.vp-inst-head .btn { margin-left: auto; }
.btn-danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1.5px rgba(200,56,75,.35); }
.btn-danger:hover { background: rgba(200,56,75,.08); }
.btn-sm { padding: 5px 12px; font-size: 12px; }
table.data td.src { white-space: normal; font-size: 12px; color: var(--slate); text-align: left; }
@media (max-width: 1000px) {
  .inst-pick, .vp-row { grid-template-columns: 1fr; }
}

/* ---------- Género y Excel ---------- */
/* Ficha de hablante: Nombre a todo el ancho; Grupo y Género debajo, a partes iguales.
   minmax(0, 1fr) + min-width: 0 permiten que los campos encojan con la ficha
   (por defecto un input no baja de su ancho intrínseco y se sale de la tarjeta). */
.spk-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
.spk-fields .field { min-width: 0; }
.spk-fields .field:first-child { grid-column: 1 / -1; }
.spk-fields .input, .spk-fields .select { width: 100%; min-width: 0; box-sizing: border-box; }
.spk-fields .select { text-overflow: ellipsis; }
.table-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.gender-chip { font-size: 11px; color: var(--steel); background: var(--mist); border-radius: 999px; padding: 1px 8px; }
@media (max-width: 480px) { .spk-fields { grid-template-columns: minmax(0, 1fr); } }
