/* TESSIRVE 5.19.352 · accesos discretos y Calculadora por fecha. */
.ms-competition-profile .ms-calc-access-list{display:flex;flex-wrap:wrap;gap:7px;align-items:center;margin:10px 0 12px;padding:0 3px;font-family:Nunito,system-ui,sans-serif}
.ms-competition-profile .ms-calc-access{display:inline-flex;align-items:center;min-height:32px;padding:6px 11px;border:1px solid var(--tl,#b6c3d0);background:var(--tb,#f7f8fb);border-radius:9px;color:var(--tx,#25354a);text-decoration:none!important;font:850 .72rem/1.2 Nunito,system-ui,sans-serif!important;transition:filter .15s ease,transform .15s ease}
.ms-calc-access:hover{filter:brightness(.97);transform:translateY(-1px)}
.ms-calc-access:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.ms-calc-access.is-averages{--tb:#eef1ff;--tl:#acbce9;--tx:#3155a3}
.ms-calc-access.is-survival{--tb:#fff7de;--tl:#decf96;--tx:#8b6c1f}
.ms-calc-access.is-calculator{--tb:#f4efff;--tl:#c6b6e8;--tx:#7052a5}
.ms-competition-profile .ms-calc-root{--cb:#f6f2ff;--cs:#ffffff;--cl:#c9b8eb;--ct:#35274e;--cm:#6d588a;--ca:#7352af;margin:0 0 14px;padding:0;background:var(--cb);border:1px solid var(--cl);border-left:4px solid var(--ca);border-radius:13px;color:var(--ct);font-family:Nunito,system-ui,sans-serif!important;box-shadow:0 6px 17px rgba(83,63,29,.045)}
.ms-calc-root *{box-sizing:border-box}
.ms-calc-summary{list-style:none;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 15px;cursor:pointer}
.ms-calc-summary::-webkit-details-marker{display:none}.ms-calc-summary::marker{content:''}
.ms-calc-summary>span:first-child{display:flex;flex-direction:column;gap:3px}
.ms-calc-summary small{font:900 .65rem/1.2 Nunito,system-ui,sans-serif;color:var(--ca);letter-spacing:.05em}
.ms-calc-summary strong{font:950 1.05rem/1.22 Nunito,system-ui,sans-serif;color:var(--ct)}
.ms-calc-summary em{font:750 .74rem/1.3 Nunito,system-ui,sans-serif;color:var(--cm);font-style:normal}
.ms-calc-chevron{display:grid;place-items:center;flex:0 0 34px;border:1px solid var(--cl);background:var(--cs);border-radius:10px;height:34px;width:34px;color:var(--ca)}
.ms-calc-chevron svg{display:block;transition:transform .18s ease}
.ms-calc-disclosure[open] .ms-calc-chevron svg{transform:rotate(180deg)}
.ms-calc-body{padding:13px 15px 16px;border-top:1px solid var(--cl)}
.ms-calc-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ms-calc-fields label{display:grid;gap:4px;font:850 .76rem/1.2 Nunito,system-ui,sans-serif}
.ms-calc-fields select{width:100%;min-width:0;min-height:38px;border:1px solid var(--cl);background:var(--cs);color:var(--ct);border-radius:8px;padding:7px 9px;font:800 .79rem Nunito,system-ui,sans-serif}
.ms-calc-help,.ms-calc-warning{color:var(--cm);font:700 .72rem/1.4 Nunito,system-ui,sans-serif;margin:10px 0}
.ms-calc-body [data-ms-calc-matches]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.ms-calc-match{border:1px solid var(--cl);border-radius:11px;padding:10px;background:var(--cs);display:grid;gap:7px;min-width:0}
.ms-calc-match-names{display:grid;grid-template-columns:minmax(0,1fr) 28px minmax(0,1fr);align-items:center;gap:7px}
.ms-calc-match-club{display:inline-flex;align-items:center;gap:5px;min-width:0;font:900 .78rem/1.2 Nunito,system-ui,sans-serif;color:var(--ct)!important;text-decoration:none;overflow-wrap:anywhere}
.ms-calc-match-club:last-child{text-align:right;justify-content:flex-end}
.ms-calc-vs{text-align:center;color:var(--cm);font:.65rem Nunito,system-ui,sans-serif}
.ms-calc-date,.ms-calc-exact-label{font:750 .67rem/1.2 Nunito,system-ui,sans-serif;color:var(--cm)}
.ms-calc-match-options{display:flex;gap:5px}
.ms-calc-choice{flex:1;min-height:32px;border:1px solid var(--cl);border-radius:8px;color:var(--ct);background:var(--cb);cursor:pointer;font:950 .83rem Nunito,system-ui,sans-serif}
.ms-calc-choice[aria-pressed="true"]{background:var(--ca);color:#fff;border-color:var(--ca)}
.ms-calc-exact{display:flex;justify-content:center;align-items:center;gap:7px}
.ms-calc-exact input{width:58px;height:33px;min-width:0;appearance:textfield;text-align:center;border:1px solid var(--cl);background:var(--cs);color:var(--ct);border-radius:7px;font:900 .86rem Nunito,system-ui,sans-serif}
.ms-calc-real-match{font:800 .67rem Nunito,system-ui,sans-serif;color:var(--ca)!important}
.ms-calc-actions{display:flex;justify-content:flex-end;align-items:center;gap:7px;flex-wrap:wrap;margin:11px 0}
.ms-calc-actions span{margin-right:auto;font:750 .73rem/1.2 Nunito,system-ui,sans-serif;color:var(--cm)}
.ms-calc-actions button,.ms-calc-presagio button{border:1px solid var(--cl);padding:7px 10px;background:var(--cs);color:var(--ct);border-radius:8px;font:850 .7rem Nunito,system-ui,sans-serif;cursor:pointer}
.ms-calc-body h3{font:950 .97rem Nunito,system-ui,sans-serif;color:var(--ct);margin:15px 0 9px}
.ms-calc-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--cl);border-radius:10px}
.ms-calc-table{border-collapse:collapse;width:100%;font:750 .75rem Nunito,system-ui,sans-serif}
.ms-calc-table th,.ms-calc-table td{padding:8px 10px;border-bottom:1px solid var(--cl);text-align:left;color:var(--ct)}
.ms-calc-table th{font-weight:950;background:var(--cb)}
.ms-calc-table tr:last-child td{border-bottom:none}
.ms-calc-table td.ms-calc-number{text-align:center;font-variant-numeric:tabular-nums;font-weight:900}
.ms-calc-table a{color:var(--ct)!important;text-decoration:none}
.ms-calc-table .is-direct{box-shadow:inset 3px 0 #367aba}.ms-calc-table .is-playoff{box-shadow:inset 3px 0 #dba04d}.ms-calc-table .is-out{box-shadow:inset 3px 0 #b86c6c}
.ms-calc-presagio{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px;border:1px solid var(--cl);border-radius:10px;background:var(--cs)}
.ms-calc-presagio>div{display:grid;gap:3px}
.ms-calc-presagio strong{font:950 .84rem Nunito,system-ui,sans-serif;color:var(--ct)}
.ms-calc-presagio small{font:750 .68rem Nunito,system-ui,sans-serif;color:var(--cm)}
.ms-calc-presagio button{background:var(--ca);color:#fff;border-color:var(--ca);white-space:nowrap}
.ms-calc-message{font:850 .72rem/1.3 Nunito,system-ui,sans-serif;color:var(--ct)}
html[data-tessirve-color-mode="dark"] .ms-competition-profile .ms-calc-root{--cb:#29233d;--cs:#352d4a;--cl:#786a9b;--ct:#f5edff;--cm:#d2c4e7;--ca:#c5a5ff}
html[data-tessirve-color-mode="dark"] .ms-calc-access.is-averages{--tb:#252f4b;--tl:#667ab7;--tx:#e1e8ff}
html[data-tessirve-color-mode="dark"] .ms-calc-access.is-survival{--tb:#3e3620;--tl:#847448;--tx:#fff3c6}
html[data-tessirve-color-mode="dark"] .ms-calc-access.is-calculator{--tb:#29233d;--tl:#786a9b;--tx:#eee0ff}
html[data-tessirve-color-mode="dark"] .ms-calc-choice[aria-pressed="true"],html[data-tessirve-color-mode="dark"] .ms-calc-presagio button{color:#30200b}
@media(max-width:720px){.ms-competition-profile .ms-calc-access-list{gap:5px;margin:8px 0 10px}.ms-competition-profile .ms-calc-access{padding:6px 8px;font-size:.65rem!important;min-height:30px}.ms-calc-fields{grid-template-columns:1fr}.ms-calc-body{padding:10px}.ms-calc-body [data-ms-calc-matches]{grid-template-columns:1fr}.ms-calc-summary{padding:10px}.ms-calc-table th,.ms-calc-table td{padding:6px 5px;font-size:.69rem}.ms-calc-table th:nth-child(4),.ms-calc-table td:nth-child(4){display:none}.ms-calc-presagio{align-items:flex-start;flex-direction:column}.ms-calc-presagio button{width:100%}}
@media(max-width:340px){.ms-competition-profile .ms-calc-access{flex:1 1 auto;justify-content:center;text-align:center}}

.ms-calc-crest{width:21px;height:21px;max-width:21px;flex:0 0 21px;object-fit:contain}
.ms-calc-table .ms-calc-club-cell a{display:inline-flex;align-items:center;gap:6px;min-width:0}
@media(max-width:720px){.ms-calc-crest{width:17px;height:17px;max-width:17px;flex-basis:17px}.ms-calc-table th:nth-child(4),.ms-calc-table td:nth-child(4){display:table-cell}.ms-calc-table th:nth-child(5),.ms-calc-table td:nth-child(5){display:none}}

.ms-calc-table .ms-calc-knockout-pair{font-weight:850}.ms-calc-table .ms-calc-knockout-result{font-size:.74rem;color:var(--cm);line-height:1.25}.ms-calc-table .ms-calc-knockout-result:first-letter{text-transform:uppercase}


/* 5.19.354 — Calculadora: escudos protagonistas y casilleros sin 1/X/2.
   Ganador ✓ verde, perdedor ✕ rojo, empate = azul. Accesible por nombre completo. */
.ms-calc-match-names{grid-template-columns:minmax(0,1fr) 34px minmax(0,1fr);gap:10px;min-height:50px}
.ms-calc-match-names .ms-calc-match-club,
.ms-calc-match-names .ms-calc-match-club:last-child{
  display:flex;position:relative;justify-content:center;align-items:center;
  text-align:center;min-height:46px;min-width:0;padding:2px;
  border-radius:9px;text-decoration:none!important;
}
.ms-calc-match-names .ms-calc-match-club:hover{background:color-mix(in srgb,var(--cb) 75%,transparent)}
.ms-calc-match-names .ms-calc-match-club:focus-visible{outline:2px solid var(--ca);outline-offset:2px}
.ms-calc-match-names .ms-calc-crest{width:43px!important;height:43px!important;max-width:43px!important;flex:0 0 43px!important;object-fit:contain!important}
.ms-calc-match-names .ms-calc-crest-fallback{display:grid;place-items:center;min-width:43px;height:43px;border-radius:50%;border:1px solid var(--cl);font:900 .7rem Nunito,system-ui,sans-serif;color:var(--ct);background:var(--cb)}
.ms-calc-match-names .ms-calc-team-name{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
.ms-calc-match-options{gap:8px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.ms-calc-match-options .ms-calc-choice{display:grid;place-items:center;min-width:0;min-height:46px;padding:0!important;border:1px solid var(--cl)!important;border-radius:10px;background:var(--cb)!important;color:var(--ct)!important;transition:background .12s ease,border-color .12s ease,color .12s ease}
.ms-calc-match-options .ms-calc-choice[data-state="win"]{background:#e5f7ec!important;border-color:#35a66b!important;color:#147947!important}
.ms-calc-match-options .ms-calc-choice[data-state="lose"]{background:#ffebeb!important;border-color:#d85b5b!important;color:#bd2f32!important}
.ms-calc-match-options .ms-calc-choice[data-state="draw"]{background:#eaf2ff!important;border-color:#6b9fe0!important;color:#2861b3!important}
.ms-calc-match-options .ms-calc-choice-icon{font:1000 1.34rem/1 Nunito,system-ui,sans-serif!important;color:inherit!important}
.ms-calc-match-options .ms-calc-choice:focus-visible{outline:2px solid var(--ca)!important;outline-offset:2px!important}
html[data-tessirve-color-mode="dark"] .ms-calc-match-options .ms-calc-choice[data-state="win"]{background:#183f30!important;border-color:#5db98c!important;color:#a1ecc2!important}
html[data-tessirve-color-mode="dark"] .ms-calc-match-options .ms-calc-choice[data-state="lose"]{background:#4d272e!important;border-color:#d77980!important;color:#ffc1c5!important}
html[data-tessirve-color-mode="dark"] .ms-calc-match-options .ms-calc-choice[data-state="draw"]{background:#263f64!important;border-color:#83afe4!important;color:#c8e1ff!important}
@media(max-width:720px){
  .ms-calc-match-names{min-height:48px;gap:8px}
  .ms-calc-match-names .ms-calc-crest{width:39px!important;height:39px!important;max-width:39px!important;flex-basis:39px!important}
  .ms-calc-match-names .ms-calc-crest-fallback{min-width:39px;height:39px}
  .ms-calc-match-options .ms-calc-choice{min-height:44px}
}

.ms-calc-match-names .ms-calc-team-mark{position:relative!important;display:grid!important;place-items:center!important;width:43px!important;height:43px!important;flex:0 0 43px!important}
.ms-calc-match-names .ms-calc-team-mark .ms-calc-crest{position:absolute!important;inset:0!important;width:43px!important;height:43px!important;object-fit:contain!important}
.ms-calc-match-names .ms-calc-crest-fallback[hidden]{display:none!important}
@media(max-width:720px){.ms-calc-match-names .ms-calc-team-mark{width:39px!important;height:39px!important;flex-basis:39px!important}.ms-calc-match-names .ms-calc-team-mark .ms-calc-crest{width:39px!important;height:39px!important}}


/* 5.19.355 — tarjetas compactas de la Calculadora, escudos desde rutas locales.
   Solo presentación; se conservan el cálculo y los casilleros ✓ / ✕ / =. */
.ms-calc-body [data-ms-calc-matches]{gap:7px!important}
.ms-calc-body .ms-calc-match{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:"clubs clubs" "date link" "choices choices" "exact-label exact-score"!important;
  align-items:center!important;
  column-gap:8px!important;
  row-gap:5px!important;
  padding:9px 11px!important;
}
.ms-calc-match .ms-calc-match-names{grid-area:clubs!important;min-height:36px!important;gap:7px!important}
.ms-calc-match .ms-calc-date{grid-area:date!important;margin:0!important;font-size:.66rem!important}
.ms-calc-match .ms-calc-real-match{grid-area:link!important;margin:0!important;text-align:right!important;white-space:nowrap!important;font-size:.67rem!important}
.ms-calc-match .ms-calc-match-options{grid-area:choices!important;gap:7px!important;margin:0!important}
.ms-calc-match .ms-calc-match-options .ms-calc-choice{min-height:40px!important;border-radius:9px!important}
.ms-calc-match .ms-calc-exact-label{grid-area:exact-label!important;margin:0!important;line-height:1.25!important}
.ms-calc-match .ms-calc-exact{grid-area:exact-score!important;justify-content:flex-end!important;gap:6px!important}
.ms-calc-match .ms-calc-exact input{width:48px!important;height:34px!important}
.ms-calc-match-names .ms-calc-match-club,
.ms-calc-match-names .ms-calc-match-club:last-child{min-height:36px!important;padding:0!important}
.ms-calc-match-names .ms-calc-team-mark{
  width:35px!important;height:35px!important;flex:0 0 35px!important
}
.ms-calc-match-names .ms-calc-team-mark .ms-calc-crest,
.ms-calc-match-names .ms-calc-crest{
  width:35px!important;height:35px!important;max-width:35px!important;
  flex:0 0 35px!important
}
.ms-calc-match-names .ms-calc-crest-fallback{
  min-width:35px!important;width:35px!important;height:35px!important;font-size:.62rem!important
}
@media(max-width:720px){
  .ms-calc-body .ms-calc-match{padding:8px 9px!important;row-gap:5px!important}
  .ms-calc-match .ms-calc-match-names{min-height:34px!important}
  .ms-calc-match-names .ms-calc-match-club,
  .ms-calc-match-names .ms-calc-match-club:last-child{min-height:34px!important}
  .ms-calc-match-names .ms-calc-team-mark,
  .ms-calc-match-names .ms-calc-team-mark .ms-calc-crest,
  .ms-calc-match-names .ms-calc-crest{
    width:33px!important;height:33px!important;max-width:33px!important;
    flex:0 0 33px!important
  }
  .ms-calc-match-names .ms-calc-crest-fallback{
    min-width:33px!important;width:33px!important;height:33px!important
  }
  .ms-calc-match .ms-calc-match-options .ms-calc-choice{min-height:40px!important}
  .ms-calc-match .ms-calc-exact-label{font-size:.62rem!important}
  .ms-calc-match .ms-calc-exact input{width:46px!important;height:33px!important}
}
@media(max-width:360px){
  .ms-calc-body .ms-calc-match{padding:8px!important;column-gap:5px!important}
  .ms-calc-match .ms-calc-exact{gap:4px!important}
  .ms-calc-match .ms-calc-exact input{width:42px!important}
  .ms-calc-match .ms-calc-date,.ms-calc-match .ms-calc-real-match{font-size:.62rem!important}
}


/* Core 5.19.357 — un solo acceso a las herramientas, centrado y cerrado
   por defecto. Las tarjetas y los colores originales quedan dentro. */
.ms-competition-profile .ms-calc-tools-menu{
  --ms-calc-tools-bg:#fff;
  --ms-calc-tools-border:#cfd8db;
  --ms-calc-tools-text:#324750;
  display:block!important;
  width:fit-content!important;
  max-width:100%!important;
  margin:10px auto 12px!important;
  text-align:center!important;
  font-family:Nunito,system-ui,sans-serif!important;
  box-sizing:border-box!important;
}
.ms-competition-profile .ms-calc-tools-menu>summary.ms-calc-tools-toggle{
  display:inline-flex!important;
  justify-content:center!important;
  align-items:center!important;
  gap:8px!important;
  min-height:36px!important;
  padding:7px 13px!important;
  list-style:none!important;
  cursor:pointer!important;
  user-select:none!important;
  background:var(--ms-calc-tools-bg)!important;
  color:var(--ms-calc-tools-text)!important;
  border:1px solid var(--ms-calc-tools-border)!important;
  border-radius:10px!important;
  font:850 .78rem/1.25 Nunito,system-ui,sans-serif!important;
  transition:border-color .16s ease,background .16s ease!important;
}
.ms-competition-profile .ms-calc-tools-menu>summary::-webkit-details-marker{display:none!important}
.ms-competition-profile .ms-calc-tools-menu>summary::marker{content:""!important}
.ms-competition-profile .ms-calc-tools-menu>summary:hover,
.ms-competition-profile .ms-calc-tools-menu[open]>summary{
  background:color-mix(in srgb,var(--ms-calc-tools-bg),var(--ms-calc-tools-text) 5%)!important;
  border-color:var(--ms-calc-tools-text)!important;
}
.ms-competition-profile .ms-calc-tools-menu>summary:focus-visible{
  outline:2px solid var(--ms-calc-tools-text)!important;
  outline-offset:3px!important;
}
.ms-calc-tools-icon,.ms-calc-tools-chevron{display:block!important;flex:none!important}
.ms-calc-tools-chevron{transition:transform .18s ease!important}
.ms-calc-tools-menu[open] .ms-calc-tools-chevron{transform:rotate(180deg)!important}
.ms-competition-profile .ms-calc-tools-menu:not([open]) .ms-calc-access-list{display:none!important}
.ms-competition-profile .ms-calc-tools-menu .ms-calc-access-list{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:7px!important;
  max-width:min(100%,850px)!important;
  margin:10px auto 0!important;
  padding:0 2px!important;
}
html[data-tessirve-color-mode="dark"] .ms-competition-profile .ms-calc-tools-menu{
  --ms-calc-tools-bg:#222c2b;
  --ms-calc-tools-border:#647c79;
  --ms-calc-tools-text:#e2f1eb;
}
@media(max-width:720px){
  .ms-competition-profile .ms-calc-tools-menu{margin:9px auto 10px!important}
  .ms-competition-profile .ms-calc-tools-menu>summary.ms-calc-tools-toggle{
    min-height:35px!important;padding:7px 11px!important;font-size:.74rem!important;
  }
  .ms-competition-profile .ms-calc-tools-menu .ms-calc-access-list{
    gap:6px!important;margin-top:8px!important;max-width:100%!important;
  }
}


/* Core 5.19.360 — Calculadora mobile: 2 partidos por renglón.
   Sin cambios a hipótesis, tablas, lógica de partidos ni escritorio. */
.ms-calc-score-controls{display:contents}
.ms-calc-score-toggle{display:none}
.ms-calc-date-short{display:none}
@media (max-width:720px){
  .ms-calc-body [data-ms-calc-matches]{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:6px!important;
  }
  .ms-calc-body .ms-calc-match{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-areas:"clubs clubs" "date link" "choices choices" "score score"!important;
    align-content:start!important;
    column-gap:4px!important;
    row-gap:6px!important;
    padding:7px 6px!important;
    min-width:0!important;
  }
  .ms-calc-match .ms-calc-match-names{
    grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr)!important;
    min-height:33px!important;
    gap:3px!important;
  }
  .ms-calc-match-names .ms-calc-match-club,
  .ms-calc-match-names .ms-calc-match-club:last-child{min-height:32px!important}
  .ms-calc-match-names .ms-calc-team-mark,
  .ms-calc-match-names .ms-calc-team-mark .ms-calc-crest,
  .ms-calc-match-names .ms-calc-crest{
    width:29px!important;height:29px!important;max-width:29px!important;flex:0 0 29px!important;
  }
  .ms-calc-match-names .ms-calc-crest-fallback{
    min-width:29px!important;width:29px!important;height:29px!important;
  }
  .ms-calc-match-names .ms-calc-vs{font-size:.59rem!important}
  .ms-calc-match .ms-calc-date{
    font-size:.61rem!important;
    white-space:nowrap!important;
    align-self:center!important;
  }
  .ms-calc-date-full{display:none!important}
  .ms-calc-date-short{display:inline!important}
  .ms-calc-match .ms-calc-real-match{
    font-size:.61rem!important;
    white-space:nowrap!important;
    align-self:center!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
  }
  .ms-calc-match .ms-calc-match-options{gap:4px!important}
  .ms-calc-match .ms-calc-match-options .ms-calc-choice{
    min-height:38px!important;
    border-radius:7px!important;
  }
  .ms-calc-match .ms-calc-match-options .ms-calc-choice-icon{font-size:1.17rem!important}
  .ms-calc-match .ms-calc-score-controls{
    grid-area:score!important;
    display:grid!important;
    gap:5px!important;
    min-width:0!important;
  }
  .ms-calc-match .ms-calc-exact-label{display:none!important}
  .ms-calc-match .ms-calc-score-toggle{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    gap:5px!important;
    min-height:29px!important;
    padding:5px 0 0!important;
    border:0!important;
    border-top:1px solid var(--cl)!important;
    background:transparent!important;
    color:var(--cm)!important;
    font:850 .63rem/1.2 Nunito,system-ui,sans-serif!important;
    cursor:pointer!important;
  }
  .ms-calc-match .ms-calc-score-toggle::after{content:'⌄';font-size:.92rem;line-height:1}
  .ms-calc-match.is-score-open .ms-calc-score-toggle::after{content:'⌃'}
  .ms-calc-match .ms-calc-score-toggle:focus-visible{outline:2px solid var(--ca)!important;outline-offset:2px!important}
  .ms-calc-match .ms-calc-exact{
    display:none!important;
    grid-area:auto!important;
    justify-content:center!important;
    gap:4px!important;
    margin:1px 0 3px!important;
  }
  .ms-calc-match.is-score-open .ms-calc-exact{display:flex!important}
  .ms-calc-match .ms-calc-exact input{
    width:39px!important;
    height:34px!important;
  }
}
@media (max-width:330px){
  .ms-calc-body .ms-calc-match{padding:6px 4px!important}
  .ms-calc-match .ms-calc-match-options .ms-calc-choice{min-height:36px!important}
  .ms-calc-match .ms-calc-match-names{gap:1px!important}
  .ms-calc-match .ms-calc-real-match,.ms-calc-match .ms-calc-date{font-size:.57rem!important}
}

/* 5.19.362 — Tabla proyectada como la tabla real: SOLO una marca lateral
   violeta para 1.º a 8.º de cada zona; nunca pintar toda la fila.
   DG visible también en celulares, puntos destacados y PJ normal. */
.ms-competition-profile .ms-calc-table{font-family:Nunito,system-ui,sans-serif!important;}
.ms-competition-profile .ms-calc-table tbody tr.is-lpf-playoff>td{background:transparent!important;border-bottom-color:var(--cl)!important;}
.ms-competition-profile .ms-calc-table tbody tr.is-lpf-playoff>td:first-child{
  position:relative!important;box-shadow:none!important;
  color:var(--ct)!important;font-weight:750!important;
}
.ms-competition-profile .ms-calc-table tbody tr.is-lpf-playoff>td:first-child::before{
  content:'';position:absolute;top:7px;bottom:7px;left:2px;width:3px;
  border-radius:999px;background:var(--ca);
}
.ms-competition-profile .ms-calc-table td.ms-calc-points{font-weight:950!important;}
.ms-competition-profile .ms-calc-table td.ms-calc-played{font-weight:600!important;}
.ms-competition-profile .ms-calc-table td.ms-calc-diff{font-weight:850!important;}
.ms-competition-profile .ms-calc-table td.ms-calc-diff.is-positive{color:#168047!important;}
.ms-competition-profile .ms-calc-table td.ms-calc-diff.is-negative{color:#c23845!important;}
.ms-competition-profile .ms-calc-table td.ms-calc-diff.is-neutral{color:var(--cm)!important;}
/* Una leyenda discreta DEBAJO de la tabla, en violeta como la Calculadora. */
.ms-competition-profile .ms-calc-root .ms-calc-qualification-legend{
  display:flex;align-items:flex-start;gap:6px;
  margin:7px 3px 2px;padding:0;border:0;background:transparent;
  color:var(--cm);font:750 .67rem/1.4 Nunito,system-ui,sans-serif!important;
}
.ms-competition-profile .ms-calc-root .ms-calc-qualification-legend[hidden]{display:none!important;}
.ms-competition-profile .ms-calc-root .ms-calc-qualification-swatch{
  display:block;flex:0 0 3px;width:3px;height:14px;margin:2px 2px 0 0;
  background:var(--ca);border-radius:999px;
}
html[data-tessirve-color-mode="dark"] .ms-competition-profile .ms-calc-table td.ms-calc-diff.is-positive{color:#83dfa9!important;}
html[data-tessirve-color-mode="dark"] .ms-competition-profile .ms-calc-table td.ms-calc-diff.is-negative{color:#ff9ca8!important;}
@media(max-width:720px){
  .ms-competition-profile .ms-calc-table{width:100%;table-layout:fixed;}
  .ms-competition-profile .ms-calc-table th,.ms-competition-profile .ms-calc-table td{
    padding:7px 3px!important;font-size:.67rem!important;
  }
  .ms-competition-profile .ms-calc-table th:nth-child(1),
  .ms-competition-profile .ms-calc-table td:nth-child(1){width:8%;text-align:center;}
  .ms-competition-profile .ms-calc-table th:nth-child(2),
  .ms-competition-profile .ms-calc-table td:nth-child(2){width:52%;}
  .ms-competition-profile .ms-calc-table th:nth-child(3),
  .ms-competition-profile .ms-calc-table td:nth-child(3){width:13%;text-align:center;}
  .ms-competition-profile .ms-calc-table th:nth-child(4),
  .ms-competition-profile .ms-calc-table td:nth-child(4){width:12%;text-align:center;display:table-cell!important;}
  .ms-competition-profile .ms-calc-table th:nth-child(5),
  .ms-competition-profile .ms-calc-table td:nth-child(5){width:15%;text-align:center;display:table-cell!important;}
  .ms-competition-profile .ms-calc-table .ms-calc-club-cell{min-width:0;}
  .ms-competition-profile .ms-calc-table .ms-calc-club-cell a{min-width:0;max-width:100%;overflow:hidden;gap:4px;}
  .ms-competition-profile .ms-calc-table .ms-calc-club-cell a>span{min-width:0;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
  .ms-competition-profile .ms-calc-table .ms-calc-crest{width:16px;height:16px;max-width:16px;flex:0 0 16px;}
}
@media(max-width:350px){
  .ms-competition-profile .ms-calc-table th,.ms-competition-profile .ms-calc-table td{font-size:.63rem!important;padding-left:2px!important;padding-right:2px!important;}
}

/* 5.19.509: sólo el próximo cruce hipotético, sin modificar playoffs oficiales. */
.ms-calc-next-preview{margin:16px 0 10px;padding:12px;border:1px solid var(--cl,#c5b7f0);border-radius:11px;background:var(--cb,#f8f5ff)}
.ms-calc-next-preview[hidden]{display:none!important}
.ms-calc-next-heading{font:800 15px Nunito,sans-serif;margin:0 0 11px;color:var(--ct,inherit)}
.ms-calc-next-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ms-calc-next-card{min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 26px minmax(0,1fr);align-items:center;gap:6px;padding:9px;background:var(--cs,#fff);border:1px solid var(--cl,#d8d0ed);border-radius:9px}
.ms-calc-next-team{display:flex;align-items:center;gap:6px;min-width:0}
.ms-calc-next-mark{display:flex;width:26px;height:26px;min-width:26px;align-items:center;justify-content:center;font-size:12px;color:var(--cm,#777)}
.ms-calc-next-mark img{width:100%;height:100%;object-fit:contain}
.ms-calc-next-name{font:700 12px Nunito,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ms-calc-next-versus{text-align:center;font:700 11px Nunito,sans-serif;opacity:.6}
.ms-calc-next-note{display:block;font:600 11px Nunito,sans-serif;opacity:.7;margin-top:9px}
@media(max-width:720px){.ms-calc-next-grid{grid-template-columns:minmax(0,1fr)}.ms-calc-next-preview{padding:9px}.ms-calc-next-card{padding:8px}}
