/* TESSIRVE Vitrina 5.19.160 — compacta, adaptada al switch, sin tocar Theme. */
.ms-team-profile .tv-root{
  --tv-ink:var(--ms-ink,#182230);
  --tv-muted:var(--ms-muted,#667085);
  --tv-bg:var(--ms-card,#fff);
  --tv-line:var(--ms-line,#e4e7ec);
  --tv-primary:var(--tsv-readable-link,var(--theme-primary,#137b58));
  --tv-secondary:var(--ms-ink,#13493a);
  color:var(--tv-ink);font-family:inherit;font-size:inherit;
  max-width:100%;margin:0 auto;padding:10px;border-radius:13px;
  border:1px solid var(--tv-line);background:var(--tv-bg);box-sizing:border-box;
}
.ms-team-profile .tv-root *,
.ms-team-profile .tv-root *::before,
.ms-team-profile .tv-root *::after{box-sizing:border-box}
.ms-team-profile .tv-hero{
  display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;
  padding:12px 14px;border:1px solid var(--tv-line);border-radius:12px;
  background:linear-gradient(110deg,color-mix(in srgb,var(--tv-primary),var(--tv-bg) 93%),var(--tv-bg));
}
.ms-team-profile .tv-hero-intro{min-width:0}
.ms-team-profile .tv-eyebrow{display:block;color:var(--tv-secondary);font-size:10px;font-weight:850;letter-spacing:.09em}
.ms-team-profile .tv-hero h2{font-size:clamp(21px,2.5vw,27px);font-weight:850;line-height:1.15;color:var(--tv-ink);margin:3px 0}
.ms-team-profile .tv-hero h2 span{font-size:.8em}
.ms-team-profile .tv-hero p{color:var(--tv-muted);margin:0;font-size:12px;line-height:1.4}
.ms-team-profile .tv-totals{
  display:flex;align-items:center;gap:10px;padding:8px 12px;border-radius:10px;
  border:1px solid color-mix(in srgb,var(--tv-primary),var(--tv-line) 60%);
  background:var(--tv-bg);max-width:100%;
}
.ms-team-profile .tv-totals strong{font-size:clamp(24px,3vw,34px);line-height:1;color:var(--tv-primary);font-variant-numeric:tabular-nums}
.ms-team-profile .tv-totals>span{font-size:12px;font-weight:750;line-height:1.4;color:var(--tv-ink)}
.ms-team-profile .tv-totals small{display:block;color:var(--tv-muted);font-size:10px;font-weight:550;line-height:1.4}
.ms-team-profile .tv-totals .tv-totals-eras{font-size:10px;margin-top:1px}
.ms-team-profile .tv-controls{
  display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;
  padding:5px 0 4px;margin:4px 0 7px;
}
.ms-team-profile .tv-check{
  display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:32px;
  cursor:pointer;user-select:none;padding:6px 11px;border:1px solid var(--tv-line);
  border-radius:9px;background:color-mix(in srgb,var(--tv-primary),var(--tv-bg) 93%);
  color:var(--tv-ink);font-size:12px;font-weight:750;
}
.ms-team-profile .tv-check:has(input:not(:checked)){background:var(--tv-bg);color:var(--tv-muted)}
.ms-team-profile .tv-check input{accent-color:var(--tv-primary);width:15px;height:15px;cursor:pointer;margin:0}
.ms-team-profile .tv-section{
  min-width:0;background:var(--tv-bg);border:1px solid var(--tv-line);
  border-radius:12px;padding:10px 12px;margin:0 0 9px;
}
.ms-team-profile .tv-section:last-child{margin-bottom:0}
.ms-team-profile .tv-section-heading{
  display:flex;align-items:center;justify-content:center;gap:6px;
  padding:1px 0 7px;margin:0;border-bottom:1px solid var(--tv-line);text-align:center;
}
.ms-team-profile .tv-section-heading h3{font-size:clamp(17px,2vw,21px);line-height:1.25;color:var(--tv-ink);margin:0;font-weight:850}
.ms-team-profile .tv-section-counter{color:var(--tv-primary);font-size:.83em;font-weight:800;font-variant-numeric:tabular-nums}
.ms-team-profile .tv-era{min-width:0;opacity:1;transform:translateY(0);transition:opacity var(--tv-fade,180ms) ease,transform var(--tv-fade,180ms) ease}
.ms-team-profile .tv-era.is-hiding{opacity:0;transform:translateY(-3px);pointer-events:none}
.ms-team-profile .tv-era[hidden]{display:none!important}
.ms-team-profile .tv-era h4{text-align:center;font-size:12px;color:var(--tv-secondary);font-weight:800;letter-spacing:.01em;margin:9px 0 7px}
.ms-team-profile .tv-shelf{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,148px));
  justify-content:center;justify-items:stretch;align-items:stretch;
  gap:9px;margin:0 auto 6px;max-width:100%;
}
.ms-team-profile .tv-trophy{
  min-width:0;max-width:148px;display:flex;flex-direction:column;overflow:hidden;
  border:1px solid var(--tv-line);border-radius:10px;background:var(--tv-bg);
  box-shadow:0 2px 7px rgba(16,24,40,.06);
}
.ms-team-profile .tv-photo{
  height:104px;display:grid;place-items:center;position:relative;
  background:linear-gradient(145deg,color-mix(in srgb,var(--tv-primary),var(--tv-bg) 94%),var(--tv-bg));
  border-bottom:1px solid var(--tv-line)
}
.ms-team-profile .tv-photo img{width:100%;height:100%;object-fit:contain;padding:5px}
.ms-team-profile .tv-no-photo{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;color:var(--tv-muted);font-size:9px;text-align:center;padding:8px;line-height:1.25}
.ms-team-profile .tv-no-photo svg{height:42px;width:42px;opacity:.55}
.ms-team-profile .tv-trophy-body{display:flex;flex:1;flex-direction:column;align-items:center;gap:6px;padding:8px 6px 9px;text-align:center}
.ms-team-profile .tv-cup-name{color:var(--tv-ink);font-weight:800;line-height:1.25;font-size:11px;text-decoration:none!important;overflow-wrap:anywhere}
.ms-team-profile a.tv-cup-name:hover{color:var(--tv-primary);text-decoration:underline!important}
.ms-team-profile .tv-trophy-count{font-size:10px;font-weight:800;color:var(--tv-secondary);margin-top:auto}
.ms-team-profile .tv-years{display:flex;flex-wrap:wrap;gap:3px;justify-content:center;align-items:center}
.ms-team-profile .tv-year{
  font-size:10px;line-height:1.35;color:var(--tv-primary);
  background:color-mix(in srgb,var(--tv-primary),var(--tv-bg) 93%);
  border:1px solid color-mix(in srgb,var(--tv-primary),var(--tv-line) 60%);
  border-radius:999px;padding:2px 5px;text-decoration:none!important;font-variant-numeric:tabular-nums
}
.ms-team-profile a.tv-year:hover{background:var(--tv-primary);color:#fff}
.ms-team-profile .tv-year.is-static{color:var(--tv-muted);background:var(--tv-bg);border-color:var(--tv-line)}
.ms-team-profile .tv-more-years{margin-top:0;max-width:100%;font-size:10px}
.ms-team-profile .tv-more-years>summary{list-style:none;cursor:pointer;color:var(--tv-primary);display:inline-block;padding:3px 7px;border:1px solid var(--tv-line);border-radius:20px}
.ms-team-profile .tv-more-years>summary::-webkit-details-marker{display:none}
.ms-team-profile .tv-more-years .tv-years{margin-top:6px;max-height:122px;overflow:auto;justify-content:center}
.ms-team-profile .tv-card-edit{position:absolute;right:4px;top:4px;z-index:2;display:grid;place-items:center;width:25px;height:25px;color:var(--tv-ink);background:var(--tv-bg);border-radius:50%;border:1px solid var(--tv-line);text-decoration:none!important;font-size:14px}
@media (max-width:680px){
  .ms-team-profile .tv-root{padding:7px;border-radius:10px}
  .ms-team-profile .tv-hero{padding:10px;gap:9px;border-radius:9px}
  .ms-team-profile .tv-hero h2{font-size:22px}
  .ms-team-profile .tv-totals{padding:6px 9px}
  .ms-team-profile .tv-section{padding:9px 7px;border-radius:10px}
  .ms-team-profile .tv-controls{margin:5px 0 7px;gap:6px}
  .ms-team-profile .tv-check{min-height:33px;padding:6px 8px;font-size:11px}
  .ms-team-profile .tv-shelf{grid-template-columns:repeat(2,minmax(0,145px));gap:8px}
  .ms-team-profile .tv-trophy{max-width:145px;width:100%;justify-self:center}
  .ms-team-profile .tv-photo{height:98px}
}
@media(max-width:360px){.ms-team-profile .tv-shelf{grid-template-columns:repeat(2,minmax(0,132px))}.ms-team-profile .tv-check{font-size:10px}}
@media(prefers-reduced-motion:reduce){.ms-team-profile .tv-era{transition:none!important}}
/* El switch del Theme controla la paleta real. Nunca forzamos la vitrina oscura en modo claro. */
html[data-tessirve-color-mode="dark"] .ms-team-profile .tv-root{
  --tv-ink:var(--ms-ink,#f2f4f7);
  --tv-muted:var(--ms-muted,#aeb9c9);
  --tv-bg:var(--ms-card,#161d27);
  --tv-line:var(--ms-line,#303947);
  --tv-secondary:color-mix(in srgb,var(--theme-primary,#7fb7ff),#fff 45%);
}
html[data-tessirve-color-mode="dark"] .ms-team-profile .tv-hero{
  background:linear-gradient(115deg,color-mix(in srgb,var(--tv-primary),var(--tv-bg) 83%),var(--tv-bg));
}
html[data-tessirve-color-mode="dark"] .ms-team-profile .tv-check input{accent-color:var(--tv-primary)}
html[data-tessirve-color-mode="dark"] .ms-team-profile .tv-year{color:var(--tv-ink)}
